|
|
!(function(){var s2=Object.defineProperty,a2=Object.defineProperties;var l2=Object.getOwnPropertyDescriptors;var vv=Object.getOwnPropertySymbols;var Cw=Object.prototype.hasOwnProperty,Bw=Object.prototype.propertyIsEnumerable;var Sw=(ui,Cn,Bt)=>Cn in ui?s2(ui,Cn,{enumerable:!0,configurable:!0,writable:!0,value:Bt}):ui[Cn]=Bt,Sg=(ui,Cn)=>{for(var Bt in Cn||(Cn={}))Cw.call(Cn,Bt)&&Sw(ui,Bt,Cn[Bt]);if(vv)for(var Bt of vv(Cn))Bw.call(Cn,Bt)&&Sw(ui,Bt,Cn[Bt]);return ui},Iy=(ui,Cn)=>a2(ui,l2(Cn));var Pw=(ui,Cn)=>{var Bt={};for(var bt in ui)Cw.call(ui,bt)&&Cn.indexOf(bt)<0&&(Bt[bt]=ui[bt]);if(ui!=null&&vv)for(var bt of vv(ui))Cn.indexOf(bt)<0&&Bw.call(ui,bt)&&(Bt[bt]=ui[bt]);return Bt};(self.webpackChunk=self.webpackChunk||[]).push([[342],{27812:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return kt}});var bt=Bt(72308),ge=Bt(59301),se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},Me=se,ie=Bt(7657),ae=function(St,Wt){return ge.createElement(ie.Z,(0,bt.Z)({},St,{ref:Wt,icon:Me}))},Lt=ge.forwardRef(ae),kt=Lt},89489:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return kt}});var bt=Bt(72308),ge=Bt(59301),se={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"},Me=se,ie=Bt(7657),ae=function(St,Wt){return ge.createElement(ie.Z,(0,bt.Z)({},St,{ref:Wt,icon:Me}))},Lt=ge.forwardRef(ae),kt=Lt},59477:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return kt}});var bt=Bt(72308),ge=Bt(59301),se={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"},Me=se,ie=Bt(7657),ae=function(St,Wt){return ge.createElement(ie.Z,(0,bt.Z)({},St,{ref:Wt,icon:Me}))},Lt=ge.forwardRef(ae),kt=Lt},40001:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return kt}});var bt=Bt(72308),ge=Bt(59301),se={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"},Me=se,ie=Bt(7657),ae=function(St,Wt){return ge.createElement(ie.Z,(0,bt.Z)({},St,{ref:Wt,icon:Me}))},Lt=ge.forwardRef(ae),kt=Lt},26227:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return kt}});var bt=Bt(72308),ge=Bt(59301),se={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"},Me=se,ie=Bt(7657),ae=function(St,Wt){return ge.createElement(ie.Z,(0,bt.Z)({},St,{ref:Wt,icon:Me}))},Lt=ge.forwardRef(ae),kt=Lt},49198:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return kt}});var bt=Bt(72308),ge=Bt(59301),se={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"},Me=se,ie=Bt(7657),ae=function(St,Wt){return ge.createElement(ie.Z,(0,bt.Z)({},St,{ref:Wt,icon:Me}))},Lt=ge.forwardRef(ae),kt=Lt},87169:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return kt}});var bt=Bt(72308),ge=Bt(59301),se={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"},Me=se,ie=Bt(7657),ae=function(St,Wt){return ge.createElement(ie.Z,(0,bt.Z)({},St,{ref:Wt,icon:Me}))},Lt=ge.forwardRef(ae),kt=Lt},73331:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return kt}});var bt=Bt(72308),ge=Bt(59301),se={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"},Me=se,ie=Bt(7657),ae=function(St,Wt){return ge.createElement(ie.Z,(0,bt.Z)({},St,{ref:Wt,icon:Me}))},Lt=ge.forwardRef(ae),kt=Lt},15277:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return kt}});var bt=Bt(72308),ge=Bt(59301),se={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"},Me=se,ie=Bt(7657),ae=function(St,Wt){return ge.createElement(ie.Z,(0,bt.Z)({},St,{ref:Wt,icon:Me}))},Lt=ge.forwardRef(ae),kt=Lt},52671:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return kt}});var bt=Bt(72308),ge=Bt(59301),se={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"},Me=se,ie=Bt(7657),ae=function(St,Wt){return ge.createElement(ie.Z,(0,bt.Z)({},St,{ref:Wt,icon:Me}))},Lt=ge.forwardRef(ae),kt=Lt},8657:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return kt}});var bt=Bt(72308),ge=Bt(59301),se={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"},Me=se,ie=Bt(7657),ae=function(St,Wt){return ge.createElement(ie.Z,(0,bt.Z)({},St,{ref:Wt,icon:Me}))},Lt=ge.forwardRef(ae),kt=Lt},56082:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return kt}});var bt=Bt(72308),ge=Bt(59301),se={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"},Me=se,ie=Bt(7657),ae=function(St,Wt){return ge.createElement(ie.Z,(0,bt.Z)({},St,{ref:Wt,icon:Me}))},Lt=ge.forwardRef(ae),kt=Lt},33853:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return kt}});var bt=Bt(72308),ge=Bt(59301),se={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"},Me=se,ie=Bt(7657),ae=function(St,Wt){return ge.createElement(ie.Z,(0,bt.Z)({},St,{ref:Wt,icon:Me}))},Lt=ge.forwardRef(ae),kt=Lt},15075:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return kt}});var bt=Bt(72308),ge=Bt(59301),se={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"},Me=se,ie=Bt(7657),ae=function(St,Wt){return ge.createElement(ie.Z,(0,bt.Z)({},St,{ref:Wt,icon:Me}))},Lt=ge.forwardRef(ae),kt=Lt},43531:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return kt}});var bt=Bt(72308),ge=Bt(59301),se={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"},Me=se,ie=Bt(7657),ae=function(St,Wt){return ge.createElement(ie.Z,(0,bt.Z)({},St,{ref:Wt,icon:Me}))},Lt=ge.forwardRef(ae),kt=Lt},61485:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return kt}});var bt=Bt(72308),ge=Bt(59301),se={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"},Me=se,ie=Bt(7657),ae=function(St,Wt){return ge.createElement(ie.Z,(0,bt.Z)({},St,{ref:Wt,icon:Me}))},Lt=ge.forwardRef(ae),kt=Lt},38819:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return kt}});var bt=Bt(72308),ge=Bt(59301),se={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"},Me=se,ie=Bt(7657),ae=function(St,Wt){return ge.createElement(ie.Z,(0,bt.Z)({},St,{ref:Wt,icon:Me}))},Lt=ge.forwardRef(ae),kt=Lt},47472:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return kt}});var bt=Bt(72308),ge=Bt(59301),se={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"},Me=se,ie=Bt(7657),ae=function(St,Wt){return ge.createElement(ie.Z,(0,bt.Z)({},St,{ref:Wt,icon:Me}))},Lt=ge.forwardRef(ae),kt=Lt},95869:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return kt}});var bt=Bt(72308),ge=Bt(59301),se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 264c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48zm-8 136H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM480 544H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 308H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm356.8-74.4c29-26.3 47.2-64.3 47.2-106.6 0-79.5-64.5-144-144-144s-144 64.5-144 144c0 42.3 18.2 80.3 47.2 106.6-57 32.5-96.2 92.7-99.2 162.1-.2 4.5 3.5 8.3 8 8.3h48.1c4.2 0 7.7-3.3 8-7.6C564 871.2 621.7 816 692 816s128 55.2 131.9 124.4c.2 4.2 3.7 7.6 8 7.6H880c4.6 0 8.2-3.8 8-8.3-2.9-69.5-42.2-129.6-99.2-162.1zM692 591c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z"}}]},name:"solution",theme:"outlined"},Me=se,ie=Bt(7657),ae=function(St,Wt){return ge.createElement(ie.Z,(0,bt.Z)({},St,{ref:Wt,icon:Me}))},Lt=ge.forwardRef(ae),kt=Lt},37036:function(){"use strict"},88010:function(ui,Cn){"use strict";Cn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},74413:function(){"use strict";function ui(wt,et,tt,lt){tt===void 0&&(tt=0),lt===void 0&&(lt=1/0),this._name=wt,this._defaultValue=et,this._minimum=tt,this._maximum=lt}Object.defineProperty(ui.prototype,"name",{get:function(){return this._name},set:function(wt){if(typeof wt!="string"||wt==="")throw new Error("Shape name must be a valid string.");this._name=wt}}),Object.defineProperty(ui.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(wt){if(typeof wt!="number"||isNaN(wt))throw new Error("The default value must be a real number, not: "+wt);this._defaultValue=wt}}),Object.defineProperty(ui.prototype,"minimum",{get:function(){return this._minimum},set:function(wt){if(typeof wt!="number"||isNaN(wt))throw new Error("Minimum must be a real number, not: "+wt);this._minimum=wt}}),Object.defineProperty(ui.prototype,"maximum",{get:function(){return this._maximum},set:function(wt){if(typeof wt!="number"||isNaN(wt))throw new Error("Maximum must be a real number, not: "+wt);this._maximum=wt}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(wt,et){var tt=go.Shape._FigureParameters[wt];return tt?tt[et]:null},go.Shape.setFigureParameter=function(wt,et,tt){if(!(tt instanceof ui))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+tt);if(tt.defaultValue<tt.minimum||tt.defaultValue>tt.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+tt.defaultValue);var lt=go.Shape._FigureParameters[wt];lt||(lt=[],go.Shape._FigureParameters[wt]=lt),lt[et]=tt};var Cn=[];function Bt(wt,et){var tt=Cn.pop();return tt===void 0?new go.Point(wt,et):(tt.x=wt,tt.y=et,tt)}function bt(){var wt=Cn.pop();return wt===void 0?new go.Point:wt}function ge(wt){Cn.push(wt)}function se(wt,et,tt,lt,rt,ut,dt,pt,Ft){Ft||(Ft=new go.Point);var Tt=wt-tt,_t=rt-dt,re=NaN,he=NaN;if(Tt===0)if(_t===0)wt===tt&&(re=wt,he=et);else{var Ae=(ut-pt)/_t,Fe=ut-Ae*rt;re=wt,he=Ae*re+Fe}else if(_t===0){var ee=(et-lt)/Tt,We=et-ee*wt;re=rt,he=ee*re+We}else{var ee=(et-lt)/Tt,Ae=(ut-pt)/_t,We=et-ee*wt,Fe=ut-Ae*rt;re=(Fe-We)/(ee-Ae),he=ee*re+We}return Ft.x=re,Ft.y=he,Ft}function Me(wt,et,tt,lt,rt,ut,dt,pt,Ft,Tt,_t,re,he,Ae){var Fe=1-Ft,ee=Ft,We=wt*Fe+tt*ee,Yt=et*Fe+lt*ee,qe=tt*Fe+rt*ee,Ge=lt*Fe+ut*ee,Oe=rt*Fe+dt*ee,Ze=ut*Fe+pt*ee,Qe=We*Fe+qe*ee,we=Yt*Fe+Ge*ee,oe=qe*Fe+Oe*ee,Pe=Ge*Fe+Ze*ee,En=Qe*Fe+oe*ee,Nn=we*Fe+Pe*ee;Tt.x=We,Tt.y=Yt,_t.x=Qe,_t.y=we,re.x=En,re.y=Nn,he.x=oe,he.y=Pe,Ae.x=Oe,Ae.y=Ze}var ie=new go.Spot(.156,.156),ae=new go.Spot(.844,.844),Lt=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new ui("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=5),lt=Math.min(lt,et/3),lt=Math.min(lt,tt/3);var rt=lt*Lt,ut=new go.Geometry().add(new go.PathFigure(lt,0,!0).add(new go.PathSegment(go.PathSegment.Line,et-lt,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,lt,et-rt,0,et,rt)).add(new go.PathSegment(go.PathSegment.Line,et,tt-lt)).add(new go.PathSegment(go.PathSegment.Bezier,et-lt,tt,et,tt-rt,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,lt,tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,tt-lt,rt,tt,0,tt-rt)).add(new go.PathSegment(go.PathSegment.Line,0,lt)).add(new go.PathSegment(go.PathSegment.Bezier,lt,0,0,rt,rt,0).close()));return rt>1&&(ut.spot1=new go.Spot(0,0,rt,rt),ut.spot2=new go.Spot(1,1,-rt,-rt)),ut}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(et,tt).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(et,tt).add(new go.PathSegment(go.PathSegment.Line,0,tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(.5*et,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(wt,et,tt){var lt=new go.Geometry(go.Geometry.Line);return lt.startX=0,lt.startY=tt/2,lt.endX=et,lt.endY=tt/2,lt}),go.Shape.defineFigureGenerator("LineV",function(wt,et,tt){var lt=new go.Geometry(go.Geometry.Line);return lt.startX=et/2,lt.startY=0,lt.endX=et/2,lt.endY=tt,lt}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,tt/2,!1).add(new go.PathSegment(go.PathSegment.Line,et,tt/2)).add(new go.PathSegment(go.PathSegment.Move,et/2,0)).add(new go.PathSegment(go.PathSegment.Line,et/2,tt)))}),go.Shape.defineFigureGenerator("XLine",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)))}),go.Shape.defineFigureGenerator("LineRight",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(.25*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.25*et,tt)))}),go.Shape.defineFigureGenerator("LineDown",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,.25*tt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,.75*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)))}),go.Shape.defineFigureGenerator("LineLeft",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(.75*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.75*et,tt)))}),go.Shape.defineFigureGenerator("LineUp",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,.75*tt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,.25*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.75*tt)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(wt,et,tt){var lt=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(lt*et,(1-lt)*tt,!1).add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,lt*tt)).add(new go.PathSegment(go.PathSegment.Move,lt*et,lt*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,(1-lt)*tt)).add(new go.PathSegment(go.PathSegment.Move,0,tt/2)).add(new go.PathSegment(go.PathSegment.Line,et,tt/2)).add(new go.PathSegment(go.PathSegment.Move,et/2,0)).add(new go.PathSegment(go.PathSegment.Line,et/2,tt)))}),go.Shape.defineFigureGenerator("CircleLine",function(wt,et,tt){var lt=et/2,rt=new go.Geometry().add(new go.PathFigure(et,et/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,lt,lt,lt,lt).close()));return rt.spot1=ie,rt.spot2=ae,rt.defaultStretch=go.GraphObject.Uniform,rt}),go.Shape.defineFigureGenerator("Line1",function(wt,et,tt){var lt=new go.Geometry(go.Geometry.Line);return lt.startX=0,lt.startY=0,lt.endX=et,lt.endY=tt,lt}),go.Shape.defineFigureGenerator("Line2",function(wt,et,tt){var lt=new go.Geometry(go.Geometry.Line);return lt.startX=et,lt.startY=0,lt.endX=0,lt.endY=tt,lt}),go.Shape.defineFigureGenerator("Curve1",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,tt,Lt*et,0,et,(1-Lt)*tt)))}),go.Shape.defineFigureGenerator("Curve2",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,tt,0,Lt*tt,(1-Lt)*et,tt)))}),go.Shape.defineFigureGenerator("Curve3",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,et,Lt*tt,Lt*et,tt)))}),go.Shape.defineFigureGenerator("Curve4",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,(1-Lt)*et,0,0,(1-Lt)*tt)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(et,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new ui("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)?lt=.1:lt<-1?lt=-1:lt>1&&(lt=1);var rt=Math.abs(lt)*et;if(lt===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return lt>0?ut.add(new go.PathFigure(rt,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):ut.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-rt,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,tt).close())),rt<et/2&&ut.setSpots(rt/et,0,(et-rt)/et,1),ut}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new ui("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)?lt=10:lt<-et?lt=-et:lt>et&&(lt=et);var rt=Math.abs(lt);if(lt===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return lt>0?ut.add(new go.PathFigure(rt,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):ut.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-rt,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,tt).close())),rt<et/2&&ut.setSpots(rt/et,0,(et-rt)/et,1),ut}}),go.Shape.setFigureParameter("Trapezoid1",0,new ui("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)?lt=.2:lt<.5?lt=-.5:lt>.5&&(lt=.5);var rt=Math.abs(lt)*et;if(lt===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return lt>0?ut.add(new go.PathFigure(rt,0).add(new go.PathSegment(go.PathSegment.Line,et-rt,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):ut.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,tt).close())),rt<et/2&&ut.setSpots(rt/et,0,(et-rt)/et,1),ut}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new ui("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)?lt=20:lt<-et?lt=-et/2:lt>et&&(lt=et/2);var rt=Math.abs(lt);if(lt===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return lt>0?ut.add(new go.PathFigure(rt,0).add(new go.PathSegment(go.PathSegment.Line,et-rt,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):ut.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,tt).close())),rt<et/2&&ut.setSpots(rt/et,0,(et-rt)/et,1),ut}}),go.Shape.setFigureParameter("ManualOperation",0,new ui("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)?lt=10:lt<-et?lt=-et/2:lt>et&&(lt=et/2);var rt=Math.abs(lt);if(lt===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return lt>0?ut.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,tt).close())):ut.add(new go.PathFigure(rt,0).add(new go.PathSegment(go.PathSegment.Line,et-rt,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())),rt<et/2&&ut.setSpots(rt/et,0,(et-rt)/et,1),ut}});var kt=[];function Jt(){var wt=kt.pop();return wt===void 0?[]:wt}function St(wt){wt.length=0,kt.push(wt)}function Wt(wt){for(var et=Jt(),tt=.5,lt=.5,rt=Math.PI*1.5,ut=0,dt=0;dt<wt;dt++)ut=2*Math.PI/wt*dt+rt,et[dt]=new go.Point(lt+tt*Math.cos(ut),lt+tt*Math.sin(ut));return et.push(et[0]),et}function Gt(wt){var et=qt(wt),tt=Jt();tt[0]=et[0];for(var lt=1,rt=1;lt<et.length;lt+=2,rt+=3)tt[rt]=et[lt],tt[rt+1]=et[lt],tt[rt+2]=et[lt+1];return St(et),tt}function qt(wt){for(var et=Wt(wt),tt=Jt(),lt=Math.floor(et.length/2),rt=et.length-1,ut=wt%2===0?2:1,dt=0;dt<rt;dt++){var pt=et[dt],Ft=et[dt+1],Tt=et[(lt+dt-1)%rt],_t=et[(lt+dt+ut)%rt];tt[dt*2]=pt,tt[dt*2+1]=se(pt.x,pt.y,Tt.x,Tt.y,Ft.x,Ft.y,_t.x,_t.y,new go.Point)}return tt[tt.length]=tt[0],St(et),tt}go.Shape.defineFigureGenerator("Pentagon",function(wt,et,tt){var lt=Wt(5),rt=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ut);for(var dt=1;dt<5;dt++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),St(lt),rt.spot1=new go.Spot(.2,.22),rt.spot2=new go.Spot(.8,.9),rt}),go.Shape.defineFigureGenerator("Hexagon",function(wt,et,tt){var lt=Wt(6),rt=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ut);for(var dt=1;dt<6;dt++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),St(lt),rt.spot1=new go.Spot(.07,.25),rt.spot2=new go.Spot(.93,.75),rt}),go.Shape.defineFigureGenerator("Heptagon",function(wt,et,tt){var lt=Wt(7),rt=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ut);for(var dt=1;dt<7;dt++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),St(lt),rt.spot1=new go.Spot(.2,.15),rt.spot2=new go.Spot(.8,.85),rt}),go.Shape.defineFigureGenerator("Octagon",function(wt,et,tt){var lt=Wt(8),rt=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ut);for(var dt=1;dt<8;dt++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),St(lt),rt.spot1=new go.Spot(.15,.15),rt.spot2=new go.Spot(.85,.85),rt}),go.Shape.defineFigureGenerator("Nonagon",function(wt,et,tt){var lt=Wt(9),rt=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ut);for(var dt=1;dt<9;dt++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),St(lt),rt.spot1=new go.Spot(.17,.13),rt.spot2=new go.Spot(.82,.82),rt}),go.Shape.defineFigureGenerator("Decagon",function(wt,et,tt){var lt=Wt(10),rt=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ut);for(var dt=1;dt<10;dt++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),St(lt),rt.spot1=new go.Spot(.16,.16),rt.spot2=new go.Spot(.84,.84),rt}),go.Shape.defineFigureGenerator("Dodecagon",function(wt,et,tt){var lt=Wt(12),rt=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ut);for(var dt=1;dt<12;dt++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),St(lt),rt.spot1=new go.Spot(.16,.16),rt.spot2=new go.Spot(.84,.84),rt}),go.Shape.defineFigureGenerator("FivePointedStar",function(wt,et,tt){var lt=qt(5),rt=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ut);for(var dt=1;dt<10;dt++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),St(lt),rt.spot1=new go.Spot(.266,.333),rt.spot2=new go.Spot(.733,.733),rt}),go.Shape.defineFigureGenerator("SixPointedStar",function(wt,et,tt){var lt=qt(6),rt=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ut);for(var dt=1;dt<12;dt++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),St(lt),rt.spot1=new go.Spot(.17,.25),rt.spot2=new go.Spot(.83,.75),rt}),go.Shape.defineFigureGenerator("SevenPointedStar",function(wt,et,tt){var lt=qt(7),rt=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ut);for(var dt=1;dt<14;dt++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),St(lt),rt.spot1=new go.Spot(.222,.277),rt.spot2=new go.Spot(.777,.666),rt}),go.Shape.defineFigureGenerator("EightPointedStar",function(wt,et,tt){var lt=qt(8),rt=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ut);for(var dt=1;dt<16;dt++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),St(lt),rt.spot1=new go.Spot(.25,.25),rt.spot2=new go.Spot(.75,.75),rt}),go.Shape.defineFigureGenerator("NinePointedStar",function(wt,et,tt){var lt=qt(9),rt=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ut);for(var dt=1;dt<18;dt++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),St(lt),rt.spot1=new go.Spot(.222,.277),rt.spot2=new go.Spot(.777,.666),rt}),go.Shape.defineFigureGenerator("TenPointedStar",function(wt,et,tt){var lt=qt(10),rt=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ut);for(var dt=1;dt<20;dt++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),St(lt),rt.spot1=new go.Spot(.281,.261),rt.spot2=new go.Spot(.723,.748),rt}),go.Shape.defineFigureGenerator("FivePointedBurst",function(wt,et,tt){var lt=Gt(5),rt=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ut);for(var dt=1;dt<lt.length;dt+=3)ut.add(new go.PathSegment(go.PathSegment.Bezier,lt[dt+2].x*et,lt[dt+2].y*tt,lt[dt].x*et,lt[dt].y*tt,lt[dt+1].x*et,lt[dt+1].y*tt));return ut.segments.last().close(),St(lt),rt.spot1=new go.Spot(.222,.277),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.defineFigureGenerator("SixPointedBurst",function(wt,et,tt){var lt=Gt(6),rt=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ut);for(var dt=1;dt<lt.length;dt+=3)ut.add(new go.PathSegment(go.PathSegment.Bezier,lt[dt+2].x*et,lt[dt+2].y*tt,lt[dt].x*et,lt[dt].y*tt,lt[dt+1].x*et,lt[dt+1].y*tt));return ut.segments.last().close(),St(lt),rt.spot1=new go.Spot(.17,.222),rt.spot2=new go.Spot(.833,.777),rt}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(wt,et,tt){var lt=Gt(7),rt=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ut);for(var dt=1;dt<lt.length;dt+=3)ut.add(new go.PathSegment(go.PathSegment.Bezier,lt[dt+2].x*et,lt[dt+2].y*tt,lt[dt].x*et,lt[dt].y*tt,lt[dt+1].x*et,lt[dt+1].y*tt));return ut.segments.last().close(),St(lt),rt.spot1=new go.Spot(.222,.222),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.defineFigureGenerator("EightPointedBurst",function(wt,et,tt){var lt=Gt(8),rt=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ut);for(var dt=1;dt<lt.length;dt+=3)ut.add(new go.PathSegment(go.PathSegment.Bezier,lt[dt+2].x*et,lt[dt+2].y*tt,lt[dt].x*et,lt[dt].y*tt,lt[dt+1].x*et,lt[dt+1].y*tt));return ut.segments.last().close(),St(lt),rt.spot1=new go.Spot(.222,.222),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.defineFigureGenerator("NinePointedBurst",function(wt,et,tt){var lt=Gt(9),rt=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ut);for(var dt=1;dt<lt.length;dt+=3)ut.add(new go.PathSegment(go.PathSegment.Bezier,lt[dt+2].x*et,lt[dt+2].y*tt,lt[dt].x*et,lt[dt].y*tt,lt[dt+1].x*et,lt[dt+1].y*tt));return ut.segments.last().close(),St(lt),rt.spot1=new go.Spot(.222,.222),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.defineFigureGenerator("TenPointedBurst",function(wt,et,tt){var lt=Gt(10),rt=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ut);for(var dt=1;dt<lt.length;dt+=3)ut.add(new go.PathSegment(go.PathSegment.Bezier,lt[dt+2].x*et,lt[dt+2].y*tt,lt[dt].x*et,lt[dt].y*tt,lt[dt+1].x*et,lt[dt+1].y*tt));return ut.segments.last().close(),St(lt),rt.spot1=new go.Spot(.222,.222),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.setFigureParameter("FramedRectangle",0,new ui("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new ui("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(wt,et,tt){var lt=wt?wt.parameter1:NaN,rt=wt?wt.parameter2:NaN;isNaN(lt)&&(lt=8),isNaN(rt)&&(rt=8);var ut=new go.Geometry,dt=new go.PathFigure(0,0,!0);return ut.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt<et/2&&rt<tt/2&&(dt.add(new go.PathSegment(go.PathSegment.Move,lt,rt)),dt.add(new go.PathSegment(go.PathSegment.Line,lt,tt-rt)),dt.add(new go.PathSegment(go.PathSegment.Line,et-lt,tt-rt)),dt.add(new go.PathSegment(go.PathSegment.Line,et-lt,rt).close())),ut.setSpots(0,0,1,1,lt,rt,-lt,-rt),ut}),go.Shape.setFigureParameter("Ring",0,new ui("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=8);var rt=et/2,ut=new go.Geometry,dt=new go.PathFigure(et,et/2,!0);ut.add(dt),dt.add(new go.PathSegment(go.PathSegment.Arc,0,360,rt,rt,rt,rt).close());var pt=Math.max(rt-lt,0);return pt>0&&(dt.add(new go.PathSegment(go.PathSegment.Move,et/2+pt,et/2)),dt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,rt,rt,pt,pt).close())),ut.spot1=ie,ut.spot2=ae,ut.defaultStretch=go.GraphObject.Uniform,ut}),go.Shape.defineFigureGenerator("Cloud",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(.08034461*et,.1944299*tt,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*et,.05349299*tt,-.09239631*et,.07836421*tt,.1406031*et,-.0542823*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*et,.074219*tt,.2450511*et,-.00697547*tt,.3776197*et,-.01112067*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*et,.07004196*tt,.4539471*et,0,.6066018*et,-.02526587*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*et,.08370865*tt,.6914277*et,-.01904177*tt,.8921095*et,-.01220843*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*et,.3194596*tt,1.036446*et,.04105738*tt,1.020377*et,.3022052*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*et,.562044*tt,1.04448*et,.360238*tt,.992256*et,.5219009*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*et,.8217117*tt,1.032337*et,.5771781*tt,1.018411*et,.8120651*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*et,.9156953*tt,1.028411*et,.9571472*tt,.8556702*et,1.052487*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*et,.9310455*tt,.7431877*et,1.009325*tt,.5624123*et,1.021761*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*et,.9344623*tt,.4820677*et,1.031761*tt,.3030112*et,1.002796*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*et,.870098*tt,.2329994*et,1.01518*tt,.03213784*et,1.01518*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*et,.6545475*tt,-.02812061*et,.9032597*tt,-.01205169*et,.6835638*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*et,.4265613*tt,-.01812061*et,.6089503*tt,-.00606892*et,.4555777*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*et,.1944299*tt,-.01606892*et,.3892545*tt,-.01205169*et,.1944299*tt))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(wt,et,tt){var lt=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(lt*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,lt*tt)).add(new go.PathSegment(go.PathSegment.Line,et,(1-lt)*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,tt)).add(new go.PathSegment(go.PathSegment.Line,lt*et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,(1-lt)*tt)).add(new go.PathSegment(go.PathSegment.Line,0,lt*tt).close())).setSpots(lt/2,lt/2,1-lt/2,1-lt/2)}),go.Shape.setFigureParameter("Pie",0,new ui("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new ui("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(wt,et,tt){var lt=wt?wt.parameter1:NaN,rt=wt?wt.parameter2:NaN;isNaN(lt)&&(lt=0),isNaN(rt)&&(rt=315);var ut=lt%360;ut<0&&(ut+=360);var dt=rt%360,pt=Math.min(et,tt)/2;return new go.Geometry().add(new go.PathFigure(pt,pt).add(new go.PathSegment(go.PathSegment.Arc,ut,dt,pt,pt,pt,pt).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(wt,et,tt){var lt=Lt/Math.SQRT2*.5,rt=Math.SQRT2/2,ut=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(et,tt,!0).add(new go.PathSegment(go.PathSegment.Bezier,rt*et,ut*tt,et,(1-lt)*tt,(rt+lt)*et,(ut+lt)*tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close()))}),go.Shape.setFigureParameter("ThickCross",0,new ui("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=30);var rt=Math.min(lt,et)/2,ut=et/2,dt=tt/2;return new go.Geometry().add(new go.PathFigure(ut-rt,0,!0).add(new go.PathSegment(go.PathSegment.Line,ut+rt,0)).add(new go.PathSegment(go.PathSegment.Line,ut+rt,dt-rt)).add(new go.PathSegment(go.PathSegment.Line,et,dt-rt)).add(new go.PathSegment(go.PathSegment.Line,et,dt+rt)).add(new go.PathSegment(go.PathSegment.Line,ut+rt,dt+rt)).add(new go.PathSegment(go.PathSegment.Line,ut+rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ut-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ut-rt,dt+rt)).add(new go.PathSegment(go.PathSegment.Line,0,dt+rt)).add(new go.PathSegment(go.PathSegment.Line,0,dt-rt)).add(new go.PathSegment(go.PathSegment.Line,ut-rt,dt-rt).close()))}),go.Shape.setFigureParameter("ThinCross",0,new ui("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=10);var rt=Math.min(lt,et)/2,ut=et/2,dt=tt/2;return new go.Geometry().add(new go.PathFigure(ut-rt,0,!0).add(new go.PathSegment(go.PathSegment.Line,ut+rt,0)).add(new go.PathSegment(go.PathSegment.Line,ut+rt,dt-rt)).add(new go.PathSegment(go.PathSegment.Line,et,dt-rt)).add(new go.PathSegment(go.PathSegment.Line,et,dt+rt)).add(new go.PathSegment(go.PathSegment.Line,ut+rt,dt+rt)).add(new go.PathSegment(go.PathSegment.Line,ut+rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ut-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ut-rt,dt+rt)).add(new go.PathSegment(go.PathSegment.Line,0,dt+rt)).add(new go.PathSegment(go.PathSegment.Line,0,dt-rt)).add(new go.PathSegment(go.PathSegment.Line,ut-rt,dt-rt).close()))}),go.Shape.setFigureParameter("ThickX",0,new ui("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;if((isNaN(lt)||lt<0)&&(lt=30),et===0||tt===0){var rt=new go.Geometry(go.Geometry.Rectangle);return rt.startX=0,rt.startY=0,rt.endX=et,rt.endY=tt,rt}else{var ut=et/2,dt=tt/2,pt=Math.atan2(tt,et),Ft=lt-Math.min(Math.cos(pt)*lt/2,ut),Tt=lt-Math.min(Math.sin(pt)*lt/2,dt),rt=new go.Geometry,_t=new go.PathFigure(Ft,0,!0);return rt.add(_t),_t.add(new go.PathSegment(go.PathSegment.Line,ut,.2*tt)),_t.add(new go.PathSegment(go.PathSegment.Line,et-Ft,0)),_t.add(new go.PathSegment(go.PathSegment.Line,et,Tt)),_t.add(new go.PathSegment(go.PathSegment.Line,.8*et,dt)),_t.add(new go.PathSegment(go.PathSegment.Line,et,tt-Tt)),_t.add(new go.PathSegment(go.PathSegment.Line,et-Ft,tt)),_t.add(new go.PathSegment(go.PathSegment.Line,ut,.8*tt)),_t.add(new go.PathSegment(go.PathSegment.Line,Ft,tt)),_t.add(new go.PathSegment(go.PathSegment.Line,0,tt-Tt)),_t.add(new go.PathSegment(go.PathSegment.Line,.2*et,dt)),_t.add(new go.PathSegment(go.PathSegment.Line,0,Tt).close()),rt}}),go.Shape.setFigureParameter("ThinX",0,new ui("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=10);var rt=new go.Geometry,ut=new go.PathFigure(.1*et,0,!0);return rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.9*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt).close()),rt}),go.Shape.setFigureParameter("SquareIBeam",0,new ui("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)&&(lt=.2);var rt=new go.Geometry,ut=new go.PathFigure(0,0,!0);return rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,lt*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(.5+lt/2)*et,lt*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(.5+lt/2)*et,(1-lt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,(1-lt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,(1-lt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(.5-lt/2)*et,(1-lt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(.5-lt/2)*et,lt*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,lt*tt).close()),rt}),go.Shape.setFigureParameter("RoundedIBeam",0,new ui("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)&&(lt=.5);var rt=new go.Geometry,ut=new go.PathFigure(0,0,!0);return rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,et,tt,Math.abs(1-lt)*et,.25*tt,Math.abs(1-lt)*et,.75*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,0,lt*et,.75*tt,lt*et,.25*tt).close()),rt}),go.Shape.defineFigureGenerator("HalfEllipse",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,Lt*et,0,et,(.5-Lt/2)*tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,et,(.5+Lt/2)*tt,Lt*et,tt).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,et,0,et,tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*et,.75*tt,.5*et,.25*tt).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(.5*et,tt,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*tt,.1*et,.8*tt,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*tt,0,0,.45*et,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,.3*tt,.55*et,0,et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,.5*tt,.9*et,.8*tt).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(.5*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*et,.01*tt)).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,.6*et,.2*tt,et,.25*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.7*tt,et,.8*tt,.6*et,.8*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.75*et,tt,.5*et,.75*tt,.55*et,.95*tt)).add(new go.PathSegment(go.PathSegment.Line,.25*et,tt)).add(new go.PathSegment(go.PathSegment.Bezier,.45*et,.7*tt,.45*et,.95*tt,.5*et,.75*tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,.4*et,.8*tt,0,.8*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.49*et,.01*tt,0,.25*tt,.4*et,.2*tt).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.4*et,.6*tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,.15*et,tt,.5*et,.75*tt,.45*et,.95*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.85*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.6*et,.6*tt,.55*et,.95*tt,.5*et,.75*tt));var ut=.2,dt=.3,pt=0,Ft=ut*Lt;return rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+dt)*et,(.5+ut+pt)*tt,(.5-ut+dt)*et,(.5+Ft+pt)*tt,(.5-Ft+dt)*et,(.5+ut+pt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ut+dt)*et,(.5+pt)*tt,(.5+Ft+dt)*et,(.5+ut+pt)*tt,(.5+ut+dt)*et,(.5+Ft+pt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+dt)*et,(.5-ut+pt)*tt,(1-.5+ut+dt)*et,(.5-Ft+pt)*tt,(.5+Ft+dt)*et,(.5-ut+pt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.65*et,.36771243*tt,(.5-Ft+dt)*et,(.5-ut+pt)*tt,(.5-ut+dt+.05)*et,(.5-Ft+pt-.02)*tt)),ut=.2,dt=0,pt=-.3,Ft=ut*Lt,rt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ut+dt)*et,(.5+pt)*tt,(.5+Ft+dt)*et,(.5+ut+pt)*tt,(.5+ut+dt)*et,(.5+Ft+pt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+dt)*et,(.5-ut+pt)*tt,(1-.5+ut+dt)*et,(.5-Ft+pt)*tt,(.5+Ft+dt)*et,(.5-ut+pt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ut+dt)*et,(.5+pt)*tt,(.5-Ft+dt)*et,(.5-ut+pt)*tt,(.5-ut+dt)*et,(.5-Ft+pt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Ft+dt)*et,(.5+ut+pt)*tt,(.5-ut+dt)*et,(.5+Ft+pt)*tt,(.5-Ft+dt)*et,(.5+ut+pt)*tt)),ut=.2,dt=-.3,pt=0,Ft=ut*Lt,rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+dt)*et,(.5-ut+pt)*tt,(1-.5+ut+dt-.05)*et,(.5-Ft+pt-.02)*tt,(.5+Ft+dt)*et,(.5-ut+pt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ut+dt)*et,(.5+pt)*tt,(.5-Ft+dt)*et,(.5-ut+pt)*tt,(.5-ut+dt)*et,(.5-Ft+pt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+dt)*et,(.5+ut+pt)*tt,(.5-ut+dt)*et,(.5+Ft+pt)*tt,(.5-Ft+dt)*et,(.5+ut+pt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.6*tt,(.5+Ft+dt)*et,(.5+ut+pt)*tt,(.5+ut+dt)*et,(.5+Ft+pt)*tt).close()),lt.setSpots(.06,.33,.93,.68),lt}),go.Shape.defineFigureGenerator("YinYang",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*.5,0,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,270,180,et*.5,et*.5,et*.5,et*.5)),rt.add(new go.PathSegment(go.PathSegment.Arc,90,-180,et*.5,et*.75,et*.25,et*.25)),rt.add(new go.PathSegment(go.PathSegment.Arc,90,180,et*.5,et*.25,et*.25,et*.25));var ut=.1,dt=.5,pt=.25;return rt.add(new go.PathSegment(go.PathSegment.Move,(dt+ut)*et,pt*tt)),rt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,et*dt,tt*pt,ut*et,ut*et).close()),rt=new go.PathFigure(et*.5,0,!1),lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*.5,et*.5,et*.5,et*.5)),pt=.75,rt=new go.PathFigure((dt+ut)*et,pt*tt,!0),lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,0,360,et*dt,tt*pt,ut*et,ut*et).close()),lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("Peace",function(wt,et,tt){var lt=.8535533905932737,rt=.5*et,ut=.5*tt;return new go.Geometry().add(new go.PathFigure(rt,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,rt,ut,rt,ut)).add(new go.PathSegment(go.PathSegment.Line,rt,tt)).add(new go.PathSegment(go.PathSegment.Move,rt,ut)).add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,lt*tt)).add(new go.PathSegment(go.PathSegment.Move,rt,ut)).add(new go.PathSegment(go.PathSegment.Line,lt*et,lt*tt)))}),go.Shape.defineFigureGenerator("NotAllowed",function(wt,et,tt){var lt=new go.Geometry,rt=Lt*.5,ut=.5,dt=.5,pt=.5,Ft=new go.PathFigure(dt*et,(pt-ut)*tt);lt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ut)*et,pt*tt,(dt-rt)*et,(pt-ut)*tt,(dt-ut)*et,(pt-rt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(pt+ut)*tt,(dt-ut)*et,(pt+rt)*tt,(dt-rt)*et,(pt+ut)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ut)*et,pt*tt,(dt+rt)*et,(pt+ut)*tt,(dt+ut)*et,(pt+rt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(pt-ut)*tt,(dt+ut)*et,(pt-rt)*tt,(dt+rt)*et,(pt-ut)*tt)),ut=.4,rt=Lt*.4;var Tt=bt(),_t=bt(),re=bt(),he=bt();Me(dt,pt-ut,dt+rt,pt-ut,dt+ut,pt-rt,dt+ut,pt,.42,Tt,_t,re,he,he);var Ae=bt(),Fe=bt(),ee=bt();Me(dt,pt-ut,dt+rt,pt-ut,dt+ut,pt-rt,dt+ut,pt,.58,he,he,ee,Ae,Fe);var We=bt(),Yt=bt(),qe=bt();Me(dt,pt+ut,dt-rt,pt+ut,dt-ut,pt+rt,dt-ut,pt,.42,We,Yt,qe,he,he);var Ge=bt(),Oe=bt(),Ze=bt();return Me(dt,pt+ut,dt-rt,pt+ut,dt-ut,pt+rt,dt-ut,pt,.58,he,he,Ze,Ge,Oe),Ft.add(new go.PathSegment(go.PathSegment.Move,Ze.x*et,Ze.y*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ut)*et,pt*tt,Ge.x*et,Ge.y*tt,Oe.x*et,Oe.y*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(pt-ut)*tt,(dt-ut)*et,(pt-rt)*tt,(dt-rt)*et,(pt-ut)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,re.x*et,re.y*tt,Tt.x*et,Tt.y*tt,_t.x*et,_t.y*tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,Ze.x*et,Ze.y*tt).close()),Ft.add(new go.PathSegment(go.PathSegment.Move,qe.x*et,qe.y*tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,ee.x*et,ee.y*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ut)*et,pt*tt,Ae.x*et,Ae.y*tt,Fe.x*et,Fe.y*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(pt+ut)*tt,(dt+ut)*et,(pt+rt)*tt,(dt+rt)*et,(pt+ut)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,qe.x*et,qe.y*tt,We.x*et,We.y*tt,Yt.x*et,Yt.y*tt).close()),ge(Tt),ge(_t),ge(re),ge(he),ge(Ae),ge(Fe),ge(ee),ge(We),ge(Yt),ge(qe),ge(Ge),ge(Oe),ge(Ze),lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("Fragile",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*et,0)).add(new go.PathSegment(go.PathSegment.Line,.2*et,.15*tt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.25*tt)).add(new go.PathSegment(go.PathSegment.Line,.29*et,.33*tt)).add(new go.PathSegment(go.PathSegment.Line,.35*et,.25*tt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.15*tt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.5*tt,et,.25*tt,.75*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.45*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.5*tt,0,.25*tt).close()))}),go.Shape.setFigureParameter("HourGlass",0,new ui("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=30),lt>et&&(lt=et);var rt=(et-lt)/2,ut=rt+lt;return new go.Geometry().add(new go.PathFigure(ut,.5*tt).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,et,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,.55*tt).add(new go.PathSegment(go.PathSegment.Line,.6*et,0)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.45*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.45*tt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.55*tt).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(wt,et,tt){var lt=new go.Geometry,rt=Lt*.4,ut=.4,dt=.5,pt=.5,Ft=bt(),Tt=bt(),_t=bt(),re=bt(),he=new go.PathFigure((dt-ut)*et,pt*tt,!1);lt.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(pt-ut)*tt,(dt-ut)*et,(pt-rt)*tt,(dt-rt)*et,(pt-ut)*tt)),Me(dt,pt-ut,dt+rt,pt-ut,dt+ut,pt-rt,dt+ut,pt,.44,_t,re,Tt,Ft,Ft),he.add(new go.PathSegment(go.PathSegment.Bezier,Tt.x*et,Tt.y*tt,_t.x*et,_t.y*tt,re.x*et,re.y*tt));var Ae=Bt(Tt.x,Tt.y);Me(dt,pt-ut,dt+rt,pt-ut,dt+ut,pt-rt,dt+ut,pt,.56,Ft,Ft,Tt,_t,re);var Fe=Bt(Tt.x,Tt.y);he.add(new go.PathSegment(go.PathSegment.Line,(Ae.x*.1+.95*.9)*et,Ae.y*.1*tt)),he.add(new go.PathSegment(go.PathSegment.Line,.85*et,Ae.y*.1*tt)),he.add(new go.PathSegment(go.PathSegment.Line,.85*et,0)),he.add(new go.PathSegment(go.PathSegment.Line,et,0)),he.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),he.add(new go.PathSegment(go.PathSegment.Line,(Fe.x*.1+.9)*et,.15*tt)),he.add(new go.PathSegment(go.PathSegment.Line,(Fe.x*.1+.9)*et,(Fe.y*.1+.05*.9)*tt)),he.add(new go.PathSegment(go.PathSegment.Line,Fe.x*et,Fe.y*tt)),he.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ut)*et,pt*tt,_t.x*et,_t.y*tt,re.x*et,re.y*tt)),he.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(pt+ut)*tt,(dt+ut)*et,(pt+rt)*tt,(dt+rt)*et,(pt+ut)*tt)),he.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ut)*et,pt*tt,(dt-rt)*et,(pt+ut)*tt,(dt-ut)*et,(pt+rt)*tt)),ut=.35,rt=Lt*.35;var ee=new go.PathFigure(dt*et,(pt-ut)*tt,!1);lt.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ut)*et,pt*tt,(dt-rt)*et,(pt-ut)*tt,(dt-ut)*et,(pt-rt)*tt)),ee.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(pt+ut)*tt,(dt-ut)*et,(pt+rt)*tt,(dt-rt)*et,(pt+ut)*tt)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ut)*et,pt*tt,(dt+rt)*et,(pt+ut)*tt,(dt+ut)*et,(pt+rt)*tt)),ee.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(pt-ut)*tt,(dt+ut)*et,(pt-rt)*tt,(dt+rt)*et,(pt-ut)*tt));var We=new go.PathFigure((dt-ut)*et,pt*tt,!1);return lt.add(We),ge(Ft),ge(Tt),ge(_t),ge(re),ge(Ae),ge(Fe),lt.spot1=new go.Spot(.202,.257),lt.spot2=new go.Spot(.792,.739),lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("GenderFemale",function(wt,et,tt){var lt=new go.Geometry,rt=.375,ut=0,dt=-.125,pt=rt*Lt,Ft=new go.PathFigure((.525+ut)*et,(.5+rt+dt)*tt,!1);lt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+rt+ut)*et,(.5+dt)*tt,(.5+pt+ut)*et,(.5+rt+dt)*tt,(.5+rt+ut)*et,(.5+pt+dt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*et,(.5-rt+dt)*tt,(1-.5+rt+ut)*et,(.5-pt+dt)*tt,(.5+pt+ut)*et,(.5-rt+dt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(.5-rt+ut)*et,(.5+dt)*tt,(.5-pt+ut)*et,(.5-rt+dt)*tt,(.5-rt+ut)*et,(.5-pt+dt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(.475+ut)*et,(.5+rt+dt)*tt,(.5-rt+ut)*et,(.5+pt+dt)*tt,(.5-pt+ut)*et,(.5+rt+dt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.475*et,.85*tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.425*et,.85*tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.425*et,.9*tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.475*et,.9*tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.475*et,tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.525*et,tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.525*et,.9*tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.575*et,.9*tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.575*et,.85*tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*tt).close()),rt=.325,ut=0,dt=-.125,pt=rt*Lt;var Ft=new go.PathFigure((1-.5+rt+ut)*et,(.5+dt)*tt,!1);lt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*et,(.5+rt+dt)*tt,(.5+rt+ut)*et,(.5+pt+dt)*tt,(.5+pt+ut)*et,(.5+rt+dt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(.5-rt+ut)*et,(.5+dt)*tt,(.5-pt+ut)*et,(.5+rt+dt)*tt,(.5-rt+ut)*et,(.5+pt+dt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*et,(.5-rt+dt)*tt,(.5-rt+ut)*et,(.5-pt+dt)*tt,(.5-pt+ut)*et,(.5-rt+dt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+rt+ut)*et,(.5+dt)*tt,(.5+pt+ut)*et,(.5-rt+dt)*tt,(1-.5+rt+ut)*et,(.5-pt+dt)*tt));var Ft=new go.PathFigure((.525+ut)*et,(.5+rt+dt)*tt,!1);return lt.add(Ft),lt.spot1=new go.Spot(.232,.136),lt.spot2=new go.Spot(.682,.611),lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("LogicImplies",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;return isNaN(lt)&&(lt=.2),new go.Geometry().add(new go.PathFigure((1-lt)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,tt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;return isNaN(lt)&&(lt=.2),new go.Geometry().add(new go.PathFigure((1-lt)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,tt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Move,lt*et,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,lt*et,tt))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)))}),go.Shape.defineFigureGenerator("LogicAnd",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Line,et,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(wt,et,tt){var lt=new go.Geometry().add(new go.PathFigure(.5*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*et,.5*tt,.5*et,.5*tt)));return lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("LogicTruth",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,.5*et,0)).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Move,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Move,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt)))}),go.Shape.defineFigureGenerator("LogicForAll",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*tt))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Move,0,tt)).add(new go.PathSegment(go.PathSegment.Line,et,tt))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(wt,et,tt){var lt=.5;return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,0,lt*tt)).add(new go.PathSegment(go.PathSegment.Arc,180,180,lt*et,lt*tt,lt*et,lt*tt)).add(new go.PathSegment(go.PathSegment.Line,et,tt))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(wt,et,tt){var lt=.5;return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,lt*tt)).add(new go.PathSegment(go.PathSegment.Arc,0,180,lt*et,lt*tt,lt*et,lt*tt)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new ui("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new ui("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)&&(lt=.3);var rt=wt?wt.parameter2:NaN;isNaN(rt)&&(rt=.3);var ut=(1-lt)*et,dt=(.5-rt/2)*tt,pt=(.5+rt/2)*tt,Ft=new go.Geometry,Tt=new go.PathFigure(0,dt,!0);Ft.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Line,ut,dt)),Tt.add(new go.PathSegment(go.PathSegment.Line,ut,0)),Tt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),Tt.add(new go.PathSegment(go.PathSegment.Line,ut,tt)),Tt.add(new go.PathSegment(go.PathSegment.Line,ut,pt)),Tt.add(new go.PathSegment(go.PathSegment.Line,0,pt).close()),Ft.spot1=new go.Spot(0,dt/tt);var _t=se(0,pt/tt,1,pt/tt,ut/et,1,1,.5,bt());return Ft.spot2=new go.Spot(_t.x,_t.y),ge(_t),Ft}),go.Shape.setFigureParameter("Arrow2",0,new ui("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new ui("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)&&(lt=30),lt>et&&(lt=et);var rt=wt?wt.parameter2:NaN;isNaN(rt)&&(rt=30),rt=Math.min(rt,tt/2);var ut=et-lt,dt=(tt-rt)/2,pt=dt+rt,Ft=new go.Geometry,Tt=new go.PathFigure(0,dt,!0);Ft.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Line,ut,dt)),Tt.add(new go.PathSegment(go.PathSegment.Line,ut,0)),Tt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),Tt.add(new go.PathSegment(go.PathSegment.Line,ut,tt)),Tt.add(new go.PathSegment(go.PathSegment.Line,ut,pt)),Tt.add(new go.PathSegment(go.PathSegment.Line,0,pt).close()),Ft.spot1=new go.Spot(0,dt/tt);var _t=se(0,pt/tt,1,pt/tt,ut/et,1,1,.5,bt());return Ft.spot2=new go.Spot(_t.x,_t.y),ge(_t),Ft}),go.Shape.defineFigureGenerator("Chevron",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt).close()),lt}),go.Shape.defineFigureGenerator("DoubleArrow",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.214*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,1*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.786*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,1*tt).close()),lt}),go.Shape.setFigureParameter("DoubleEndArrow",0,new ui("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)&&(lt=.3);var rt=(.5-lt/2)*tt,ut=(.5+lt/2)*tt,dt=new go.Geometry,pt=new go.PathFigure(et,.5*tt,!0);dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),pt.add(new go.PathSegment(go.PathSegment.Line,.3*et,ut)),pt.add(new go.PathSegment(go.PathSegment.Line,.3*et,tt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.3*et,rt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close());var Ft=se(0,.5,.3,0,0,rt/tt,.1,rt/tt,bt());return dt.spot1=new go.Spot(Ft.x,Ft.y),Ft=se(.7,1,1,.5,0,ut/tt,1,ut/tt,Ft),dt.spot2=new go.Spot(Ft.x,Ft.y),ge(Ft),dt}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new ui("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new ui("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)&&(lt=40);var rt=wt?wt.parameter2:NaN;isNaN(rt)&&(rt=100);var ut=(tt-lt)/2,dt=ut+lt,pt=(tt-rt)/2,Ft=pt+rt;(lt>tt||rt>tt)&&(rt>lt?(lt=lt*tt/rt,ut=(tt-lt)/2,dt=ut+lt,pt=0,Ft=tt):(ut=0,dt=tt,pt=0,Ft=tt));var Tt=new go.Geometry,_t=new go.PathFigure(et,.5*tt,!0);Tt.add(_t),_t.add(new go.PathSegment(go.PathSegment.Line,.7*et,Ft)),_t.add(new go.PathSegment(go.PathSegment.Line,.7*et,dt)),_t.add(new go.PathSegment(go.PathSegment.Line,.3*et,dt)),_t.add(new go.PathSegment(go.PathSegment.Line,.3*et,Ft)),_t.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),_t.add(new go.PathSegment(go.PathSegment.Line,.3*et,pt)),_t.add(new go.PathSegment(go.PathSegment.Line,.3*et,ut)),_t.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),_t.add(new go.PathSegment(go.PathSegment.Line,.7*et,pt).close());var re=se(0,.5,.3,pt/tt,0,ut/tt,1,ut/tt,bt());return Tt.spot1=new go.Spot(re.x,re.y),re=se(.7,Ft/tt,1,.5,0,dt/tt,1,dt/tt,re),Tt.spot2=new go.Spot(re.x,re.y),ge(re),Tt}),go.Shape.setFigureParameter("IBeamArrow",0,new ui("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)&&(lt=.3);var rt=(.5-lt/2)*tt,ut=(.5+lt/2)*tt,dt=new go.Geometry,pt=new go.PathFigure(et,.5*tt,!0);dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ut)),pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,rt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),dt.spot1=new go.Spot(0,rt/tt);var Ft=se(.7,1,1,.5,0,ut/tt,1,ut/tt,bt());return dt.spot2=new go.Spot(Ft.x,Ft.y),ge(Ft),dt}),go.Shape.setFigureParameter("IBeamArrow2",0,new ui("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new ui("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)&&(lt=40);var rt=wt?wt.parameter2:NaN;isNaN(rt)&&(rt=100);var ut=(tt-lt)/2,dt=ut+lt,pt=(tt-rt)/2,Ft=pt+rt;(lt>tt||rt>tt)&&(rt>lt?(lt=lt*tt/rt,ut=(tt-lt)/2,dt=ut+lt,pt=0,Ft=tt):(ut=0,dt=tt,pt=0,Ft=tt));var Tt=new go.Geometry,_t=new go.PathFigure(et,.5*tt,!0);Tt.add(_t),_t.add(new go.PathSegment(go.PathSegment.Line,.7*et,Ft)),_t.add(new go.PathSegment(go.PathSegment.Line,.7*et,dt)),_t.add(new go.PathSegment(go.PathSegment.Line,.2*et,dt)),_t.add(new go.PathSegment(go.PathSegment.Line,.2*et,Ft)),_t.add(new go.PathSegment(go.PathSegment.Line,0,Ft)),_t.add(new go.PathSegment(go.PathSegment.Line,0,pt)),_t.add(new go.PathSegment(go.PathSegment.Line,.2*et,pt)),_t.add(new go.PathSegment(go.PathSegment.Line,.2*et,ut)),_t.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),_t.add(new go.PathSegment(go.PathSegment.Line,.7*et,pt).close()),Tt.spot1=new go.Spot(0,ut/tt);var re=se(.7,Ft/tt,1,.5,0,dt/tt,1,dt/tt,bt());return Tt.spot2=new go.Spot(re.x,re.y),ge(re),Tt}),go.Shape.setFigureParameter("Pointer",0,new ui("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)&&(lt=.1);var rt=new go.Geometry,ut=new go.PathFigure(et,.5*tt,!0);rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,lt*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),rt.spot1=new go.Spot(lt,.35);var dt=se(.2,.65,1,.65,0,1,1,.5,bt());return rt.spot2=new go.Spot(dt.x,dt.y),ge(dt),rt}),go.Shape.setFigureParameter("RoundedPointer",0,new ui("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)&&(lt=.3);var rt=new go.Geometry,ut=new go.PathFigure(et,.5*tt,!0);rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,0,lt*et,.75*tt,lt*et,.25*tt).close()),rt.spot1=new go.Spot(lt,.35);var dt=se(0,.65,1,.65,0,1,1,.5,bt());return rt.spot2=new go.Spot(dt.x,dt.y),ge(dt),rt}),go.Shape.setFigureParameter("SplitEndArrow",0,new ui("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)&&(lt=.4);var rt=(.5-lt/2)*tt,ut=(.5+lt/2)*tt,dt=new go.Geometry,pt=new go.PathFigure(et,.5*tt,!0);dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),pt.add(new go.PathSegment(go.PathSegment.Line,0,ut)),pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,rt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),dt.spot1=new go.Spot(.2,.3);var Ft=se(.7,1,1,.5,0,ut/tt,1,ut/tt,bt());return dt.spot2=new go.Spot(Ft.x,Ft.y),ge(Ft),dt}),go.Shape.setFigureParameter("SplitEndArrow2",0,new ui("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)&&(lt=50);var rt=(tt-lt)/2,ut=rt+lt;lt>tt&&(rt=0,ut=tt);var dt=new go.Geometry,pt=new go.PathFigure(et,.5*tt,!0);dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),pt.add(new go.PathSegment(go.PathSegment.Line,0,ut)),pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,rt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),dt.spot1=new go.Spot(.2,rt/tt);var Ft=se(.7,1,1,.5,0,ut/tt,1,ut/tt,bt());return dt.spot2=new go.Spot(Ft.x,Ft.y),ge(Ft),dt}),go.Shape.setFigureParameter("SquareArrow",0,new ui("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)&&(lt=.7);var rt=new go.Geometry,ut=new go.PathFigure(et,.5*tt,!0);return rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,lt*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,0)),ut.add(new go.PathSegment(go.PathSegment.Line,lt*et,0).close()),rt.spot1=go.Spot.TopLeft,rt.spot2=new go.Spot(lt,1),rt}),go.Shape.defineFigureGenerator("Cone1",function(wt,et,tt){var lt=new go.Geometry,rt=Lt*.5,ut=Lt*.1,dt=new go.PathFigure(0,.9*tt,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.9+ut)*tt,(.5+rt)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-rt)*et,tt,0,(.9+ut)*tt).close()),lt.spot1=new go.Spot(.25,.5),lt.spot2=new go.Spot(.75,.97),lt}),go.Shape.defineFigureGenerator("Cone2",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.9*tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*tt,(1-.85/.9)*et,tt,.85/.9*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.9*tt).close());var ut=new go.PathFigure(0,.9*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*tt,(1-.85/.9)*et,.8*tt,.85/.9*et,.8*tt)),lt.spot1=new go.Spot(.25,.5),lt.spot2=new go.Spot(.75,.82),lt}),go.Shape.defineFigureGenerator("Cube1",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.5*et,tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.15*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.85*tt).close());var ut=new go.PathFigure(.5*et,tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.15*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.5*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),lt.spot1=new go.Spot(0,.3),lt.spot2=new go.Spot(.5,.85),lt}),go.Shape.defineFigureGenerator("Cube2",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.3*tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0).close());var ut=new go.PathFigure(0,.3*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.7*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Move,.7*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),lt.spot1=new go.Spot(0,.3),lt.spot2=new go.Spot(.7,1),lt}),go.Shape.defineFigureGenerator("Cylinder1",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)&&(lt=5),lt=Math.min(lt,tt/3);var rt=new go.Geometry,ut=Lt*.5,dt=new go.PathFigure(0,lt,!0);rt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,Lt*lt,(.5-ut)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,1*et,lt,(.5+ut)*et,0,1*et,Lt*lt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,tt-lt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,1*tt,1*et,tt-Lt*lt,(.5+ut)*et,1*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-lt,(.5-ut)*et,1*tt,0,tt-Lt*lt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,lt));var pt=new go.PathFigure(et,lt,!1);return rt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,2*lt,1*et,2*lt-Lt*lt,(.5+ut)*et,2*lt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,lt,(.5-ut)*et,2*lt,0,2*lt-Lt*lt)),rt.spot1=new go.Spot(0,0,0,2*lt),rt.spot2=new go.Spot(1,1),rt}),go.Shape.defineFigureGenerator("Cylinder2",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)&&(lt=5),lt=Math.min(lt,tt/3);var rt=new go.Geometry,ut=Lt*.5,dt=new go.PathFigure(0,tt-lt,!0);rt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,0,lt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,Lt*lt,(.5-ut)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,lt,(.5+ut)*et,0,et,Lt*lt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,tt-lt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,tt-Lt*lt,(.5+ut)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-lt,(.5-ut)*et,tt,0,tt-Lt*lt));var pt=new go.PathFigure(0,tt-lt,!1);return rt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt-2*lt,0,tt-lt-Lt*lt,(.5-ut)*et,tt-2*lt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,et,tt-lt,(.5+ut)*et,tt-2*lt,et,tt-lt-Lt*lt)),rt.spot1=new go.Spot(0,0),rt.spot2=new go.Spot(1,1,0,-2*lt),rt}),go.Shape.defineFigureGenerator("Cylinder3",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)&&(lt=5),lt=Math.min(lt,et/3);var rt=new go.Geometry,ut=Lt*.5,dt=new go.PathFigure(lt,0,!0);rt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et-lt,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,et-Lt*lt,0,et,(.5-ut)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,tt,et,(.5+ut)*tt,et-Lt*lt,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,lt,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,Lt*lt,tt,0,(.5+ut)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,lt,0,0,(.5-ut)*tt,Lt*lt,0));var pt=new go.PathFigure(lt,0,!1);return rt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,2*lt,.5*tt,lt+Lt*lt,0,2*lt,(.5-ut)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,lt,tt,2*lt,(.5+ut)*tt,lt+Lt*lt,tt)),rt.spot1=new go.Spot(0,0,2*lt,0),rt.spot2=new go.Spot(1,1),rt}),go.Shape.defineFigureGenerator("Cylinder4",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)&&(lt=5),lt=Math.min(lt,et/3);var rt=new go.Geometry,ut=Lt*.5,dt=new go.PathFigure(et-lt,0,!0);rt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,et-Lt*lt,0,et,(.5-ut)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,tt,et,(.5+ut)*tt,et-Lt*lt,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,lt,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,Lt*lt,tt,0,(.5+ut)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,lt,0,0,(.5-ut)*tt,Lt*lt,0)),dt.add(new go.PathSegment(go.PathSegment.Line,et-lt,0));var pt=new go.PathFigure(et-lt,0,!1);return rt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,et-2*lt,.5*tt,et-lt-Lt*lt,0,et-2*lt,(.5-ut)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,tt,et-2*lt,(.5+ut)*tt,et-lt-Lt*lt,tt)),rt.spot1=new go.Spot(0,0),rt.spot2=new go.Spot(1,1,-2*lt,0),rt}),go.Shape.defineFigureGenerator("Prism1",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.25*et,.25*tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ut=new go.PathFigure(.25*et,.25*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),lt.spot1=new go.Spot(.408,.172),lt.spot2=new go.Spot(.833,.662),lt}),go.Shape.defineFigureGenerator("Prism2",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.25*tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ut=new go.PathFigure(0,tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,0,.25*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*tt)),lt.spot1=new go.Spot(.25,.5),lt.spot2=new go.Spot(.75,.75),lt}),go.Shape.defineFigureGenerator("Pyramid1",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.5*et,0,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.75*tt).close());var ut=new go.PathFigure(.5*et,0,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),lt.spot1=new go.Spot(.25,.367),lt.spot2=new go.Spot(.75,.875),lt}),go.Shape.defineFigureGenerator("Pyramid2",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.5*et,0,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.85*tt).close());var ut=new go.PathFigure(.5*et,0,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.85*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.85*tt)),lt.spot1=new go.Spot(.25,.367),lt.spot2=new go.Spot(.75,.875),lt}),go.Shape.defineFigureGenerator("Actor",function(wt,et,tt){var lt=new go.Geometry,rt=.2,ut=.1,dt=Lt*rt,pt=Lt*ut,Ft=.5,Tt=.1,_t=new go.PathFigure(Ft*et,(Tt+ut)*tt,!0);lt.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-rt)*et,Tt*tt,(Ft-dt)*et,(Tt+ut)*tt,(Ft-rt)*et,(Tt+pt)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Tt-ut)*tt,(Ft-rt)*et,(Tt-pt)*tt,(Ft-dt)*et,(Tt-ut)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+rt)*et,Tt*tt,(Ft+dt)*et,(Tt-ut)*tt,(Ft+rt)*et,(Tt-pt)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Tt+ut)*tt,(Ft+rt)*et,(Tt+pt)*tt,(Ft+dt)*et,(Tt+ut)*tt));var re=.05,he=Lt*re;Ft=.05,Tt=.25;var Ae=new go.PathFigure(.5*et,.2*tt,!0);return lt.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,.95*et,.2*tt)),Ft=.95,Tt=.25,Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+re)*et,Tt*tt,(Ft+he)*et,(Tt-re)*tt,(Ft+re)*et,(Tt-he)*tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,et,.6*tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,.85*et,.35*tt)),re=.025,he=Lt*re,Ft=.825,Tt=.35,Ae.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Tt-re)*tt,(Ft+re)*et,(Tt-he)*tt,(Ft+he)*et,(Tt-re)*tt)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-re)*et,Tt*tt,(Ft-he)*et,(Tt-re)*tt,(Ft-re)*et,(Tt-he)*tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,.8*et,tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,.55*et,tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*tt)),re=.05,he=Lt*re,Ft=.5,Tt=.7,Ae.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Tt-re)*tt,(Ft+re)*et,(Tt-he)*tt,(Ft+he)*et,(Tt-re)*tt)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-re)*et,Tt*tt,(Ft-he)*et,(Tt-re)*tt,(Ft-re)*et,(Tt-he)*tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,.45*et,tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,.2*et,.35*tt)),re=.025,he=Lt*re,Ft=.175,Tt=.35,Ae.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Tt-re)*tt,(Ft+re)*et,(Tt-he)*tt,(Ft+he)*et,(Tt-re)*tt)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-re)*et,Tt*tt,(Ft-he)*et,(Tt-re)*tt,(Ft-re)*et,(Tt-he)*tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),re=.05,he=Lt*re,Ft=.05,Tt=.25,Ae.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Tt-re)*tt,(Ft-re)*et,(Tt-he)*tt,(Ft-he)*et,(Tt-re)*tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*tt)),lt.spot1=new go.Spot(.2,.2),lt.spot2=new go.Spot(.8,.65),lt}),go.Shape.setFigureParameter("Card",0,new ui("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)&&(lt=.2);var rt=new go.Geometry,ut=new go.PathFigure(et,0,!0);return rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,lt*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,lt*et,0).close()),rt.spot1=new go.Spot(0,lt),rt.spot2=go.Spot.BottomRight,rt}),go.Shape.defineFigureGenerator("Collate",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.5*et,.5*tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt));var ut=new go.PathFigure(.5*et,.5*tt,!0);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),lt.spot1=new go.Spot(.25,0),lt.spot2=new go.Spot(.75,.25),lt}),go.Shape.defineFigureGenerator("CreateRequest",function(wt,et,tt){var lt=new go.Geometry,rt=wt?wt.parameter1:NaN;isNaN(rt)&&(rt=.1);var ut=new go.PathFigure(0,0,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var dt=new go.PathFigure(0,rt*tt,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,rt*tt)),dt.add(new go.PathSegment(go.PathSegment.Move,0,(1-rt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,(1-rt)*tt)),lt}),go.Shape.defineFigureGenerator("Database",function(wt,et,tt){var lt=new go.Geometry,rt=Lt*.5,ut=Lt*.1,dt=new go.PathFigure(et,.1*tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.9+ut)*tt,(.5+rt)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-rt)*et,tt,0,(.9+ut)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-ut)*tt,(.5-rt)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*tt,(.5+rt)*et,0,et,(.1-ut)*tt));var pt=new go.PathFigure(et,.1*tt,!1);return lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,et,(.1+ut)*tt,(.5+rt)*et,.2*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*tt,(.5-rt)*et,.2*tt,0,(.1+ut)*tt)),pt.add(new go.PathSegment(go.PathSegment.Move,et,.2*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*tt,et,(.2+ut)*tt,(.5+rt)*et,.3*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*tt,(.5-rt)*et,.3*tt,0,(.2+ut)*tt)),pt.add(new go.PathSegment(go.PathSegment.Move,et,.3*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.4*tt,et,(.3+ut)*tt,(.5+rt)*et,.4*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*tt,(.5-rt)*et,.4*tt,0,(.3+ut)*tt)),lt.spot1=new go.Spot(0,.4),lt.spot2=new go.Spot(1,.9),lt}),go.Shape.defineFigureGenerator("DataStorage",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,tt,et,0,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.9*tt,.25*et,.1*tt).close()),lt.spot1=new go.Spot(.226,0),lt.spot2=new go.Spot(.81,1),lt}),go.Shape.defineFigureGenerator("DiskStorage",function(wt,et,tt){var lt=new go.Geometry,rt=Lt*.5,ut=Lt*.1,dt=new go.PathFigure(et,.1*tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.9+ut)*tt,(.5+rt)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-rt)*et,tt,0,(.9+ut)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-ut)*tt,(.5-rt)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*tt,(.5+rt)*et,0,et,(.1-ut)*tt));var pt=new go.PathFigure(et,.1*tt,!1);return lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,et,(.1+ut)*tt,(.5+rt)*et,.2*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*tt,(.5-rt)*et,.2*tt,0,(.1+ut)*tt)),pt.add(new go.PathSegment(go.PathSegment.Move,et,.2*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*tt,et,(.2+ut)*tt,(.5+rt)*et,.3*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*tt,(.5-rt)*et,.3*tt,0,(.2+ut)*tt)),lt.spot1=new go.Spot(0,.3),lt.spot2=new go.Spot(1,.9),lt}),go.Shape.defineFigureGenerator("Display",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.25*et,0,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,tt,et,0,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.25*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt).close()),lt.spot1=new go.Spot(.25,0),lt.spot2=new go.Spot(.75,1),lt}),go.Shape.defineFigureGenerator("DividedEvent",function(wt,et,tt){var lt=new go.Geometry,rt=wt?wt.parameter1:NaN;isNaN(rt)?rt=.2:rt<.15&&(rt=.15);var ut=Lt*.2,dt=new go.PathFigure(0,.2*tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,0,(.2-ut)*tt,(.2-ut)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,.2*tt,(.8+ut)*et,0,et,(.2-ut)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,tt,et,(.8+ut)*tt,(.8+ut)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*tt,(.2-ut)*et,tt,0,(.8+ut)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt));var pt=new go.PathFigure(0,rt*tt,!1);return lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,rt*tt)),lt}),go.Shape.defineFigureGenerator("DividedProcess",function(wt,et,tt){var lt=new go.Geometry,rt=wt?wt.parameter1:NaN;(isNaN(rt)||rt<.1)&&(rt=.1);var ut=new go.PathFigure(0,0,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var dt=new go.PathFigure(0,rt*tt,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,rt*tt)),lt}),go.Shape.defineFigureGenerator("Document",function(wt,et,tt){var lt=new go.Geometry;tt=tt/.8;var rt=new go.PathFigure(0,.7*tt,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.5*et,.4*tt,.5*et,tt).close()),lt.spot1=go.Spot.TopLeft,lt.spot2=new go.Spot(1,.6),lt}),go.Shape.defineFigureGenerator("ExternalOrganization",function(wt,et,tt){var lt=new go.Geometry,rt=wt?wt.parameter1:NaN;(isNaN(rt)||rt<.2)&&(rt=.2);var ut=new go.PathFigure(0,0,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var dt=new go.PathFigure(rt*et,0,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,0,rt*tt)),dt.add(new go.PathSegment(go.PathSegment.Move,et,rt*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,(1-rt)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Move,0,(1-rt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Move,(1-rt)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,(1-rt)*tt)),lt}),go.Shape.defineFigureGenerator("ExternalProcess",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.5*et,0,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt).close());var ut=new go.PathFigure(.1*et,.4*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.9*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.6*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.4*et,.9*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,.9*tt)),lt.spot1=new go.Spot(.25,.25),lt.spot2=new go.Spot(.75,.75),lt}),go.Shape.defineFigureGenerator("File",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ut=new go.PathFigure(.75*et,0,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),lt.spot1=new go.Spot(0,.25),lt.spot2=go.Spot.BottomRight,lt}),go.Shape.defineFigureGenerator("Interrupt",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et,.5*tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt));var ut=new go.PathFigure(et,.5*tt,!1);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt));var dt=new go.PathFigure(et,.5*tt,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.spot1=new go.Spot(0,.25),lt.spot2=new go.Spot(.5,.75),lt}),go.Shape.defineFigureGenerator("InternalStorage",function(wt,et,tt){var lt=new go.Geometry,rt=wt?wt.parameter1:NaN,ut=wt?wt.parameter2:NaN;isNaN(rt)&&(rt=.1),isNaN(ut)&&(ut=.1);var dt=new go.PathFigure(0,0,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var pt=new go.PathFigure(rt*et,0,!1);return lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),pt.add(new go.PathSegment(go.PathSegment.Move,0,ut*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,ut*tt)),lt}),go.Shape.defineFigureGenerator("Junction",function(wt,et,tt){var lt=new go.Geometry,rt=1/Math.SQRT2,ut=(1-1/Math.SQRT2)/2,dt=Lt*.5,pt=.5,Ft=new go.PathFigure(et,pt*tt,!0);lt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,tt,et,(pt+dt)*tt,(pt+dt)*et,tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,0,pt*tt,(pt-dt)*et,tt,0,(pt+dt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,0,0,(pt-dt)*tt,(pt-dt)*et,0)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,et,pt*tt,(pt+dt)*et,0,et,(pt-dt)*tt));var Tt=new go.PathFigure((ut+rt)*et,(ut+rt)*tt,!1);return lt.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Line,ut*et,ut*tt)),Tt.add(new go.PathSegment(go.PathSegment.Move,ut*et,(ut+rt)*tt)),Tt.add(new go.PathSegment(go.PathSegment.Line,(ut+rt)*et,ut*tt)),lt}),go.Shape.defineFigureGenerator("LinedDocument",function(wt,et,tt){var lt=new go.Geometry;tt=tt/.8;var rt=new go.PathFigure(0,.7*tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.5*et,.4*tt,.5*et,tt).close());var ut=new go.PathFigure(.1*et,0,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,.75*tt)),lt.spot1=new go.Spot(.1,0),lt.spot2=new go.Spot(1,.6),lt}),go.Shape.defineFigureGenerator("LoopLimit",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,tt,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.25*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt).close()),lt.spot1=new go.Spot(0,.25),lt.spot2=go.Spot.BottomRight,lt}),go.Shape.defineFigureGenerator("MagneticTape",function(wt,et,tt){var lt=new go.Geometry,rt=Lt*.5,ut=.5,dt=new go.PathFigure(.5*et,tt,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,ut*tt,(ut-rt)*et,tt,0,(ut+rt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,0,0,(ut-rt)*tt,(ut-rt)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,ut*tt,(ut+rt)*et,0,et,(ut-rt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+.1)*et,.9*tt,et,(ut+rt)*tt,(ut+rt)*et,.9*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),lt.spot1=new go.Spot(.15,.15),lt.spot2=new go.Spot(.85,.8),lt}),go.Shape.defineFigureGenerator("ManualInput",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et,0,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt).close()),lt.spot1=new go.Spot(0,.25),lt.spot2=go.Spot.BottomRight,lt}),go.Shape.defineFigureGenerator("MessageFromUser",function(wt,et,tt){var lt=new go.Geometry,rt=wt?wt.parameter1:NaN;isNaN(rt)&&(rt=.7);var ut=new go.PathFigure(0,0,!0);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,rt*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt.spot1=go.Spot.TopLeft,lt}),go.Shape.defineFigureGenerator("MicroformProcessing",function(wt,et,tt){var lt=new go.Geometry,rt=wt?wt.parameter1:NaN;isNaN(rt)&&(rt=.25);var ut=new go.PathFigure(0,0,!0);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,rt*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,(1-rt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt}),go.Shape.defineFigureGenerator("MicroformRecording",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt.spot1=new go.Spot(0,.25),lt.spot2=new go.Spot(1,.75),lt}),go.Shape.defineFigureGenerator("MultiDocument",function(wt,et,tt){var lt=new go.Geometry;tt=tt/.8;var rt=new go.PathFigure(et,0,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.44*tt,.96*et,.47*tt,.93*et,.45*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.54*tt,.86*et,.57*tt,.83*et,.55*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.4*et,.4*tt,.4*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,0).close());var ut=new go.PathFigure(.1*et,.2*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.54*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.44*tt)),lt.spot1=new go.Spot(0,.25),lt.spot2=new go.Spot(.8,.77),lt}),go.Shape.defineFigureGenerator("MultiProcess",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.1*et,.1*tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*tt).close());var ut=new go.PathFigure(.2*et,.1*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.1*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*tt)),lt.spot1=new go.Spot(0,.2),lt.spot2=new go.Spot(.8,1),lt}),go.Shape.defineFigureGenerator("OfflineStorage",function(wt,et,tt){var lt=new go.Geometry,rt=wt?wt.parameter1:NaN;isNaN(rt)&&(rt=.1);var ut=1-rt,dt=new go.PathFigure(0,0,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt).close());var pt=new go.PathFigure(.5*rt*et,rt*tt,!1);return lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,(1-.5*rt)*et,rt*tt)),lt}),go.Shape.defineFigureGenerator("OffPageConnector",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt.spot1=go.Spot.TopLeft,lt.spot2=new go.Spot(.75,1),lt}),go.Shape.defineFigureGenerator("Or",function(wt,et,tt){var lt=new go.Geometry,rt=Lt*.5,ut=.5,dt=new go.PathFigure(et,ut*tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,tt,et,(ut+rt)*tt,(ut+rt)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,ut*tt,(ut-rt)*et,tt,0,(ut+rt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,0,0,(ut-rt)*tt,(ut-rt)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,ut*tt,(ut+rt)*et,0,et,(ut-rt)*tt));var pt=new go.PathFigure(et,.5*tt,!1);return lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),pt.add(new go.PathSegment(go.PathSegment.Move,.5*et,tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt}),go.Shape.defineFigureGenerator("PaperTape",function(wt,et,tt){var lt=new go.Geometry;tt=tt/.8;var rt=new go.PathFigure(0,.7*tt,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.3*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,.3*tt,.5*et,.6*tt,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.5*et,.4*tt,.5*et,tt).close()),lt.spot1=new go.Spot(0,.49),lt.spot2=new go.Spot(1,.75),lt}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(wt,et,tt){var lt=new go.Geometry,rt=wt?wt.parameter1:NaN,ut=wt?wt.parameter2:NaN;isNaN(rt)&&(rt=.1),isNaN(ut)&&(ut=.3);var dt=new go.PathFigure(0,0,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,(1-ut)*et,.5*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(wt,et,tt){var lt=new go.Geometry,rt=wt?wt.parameter1:NaN,ut=wt?wt.parameter2:NaN;isNaN(rt)&&(rt=.1),isNaN(ut)&&(ut=.3);var dt=new go.PathFigure(0,0,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,(1-ut)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,(1-ut)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt}),go.Shape.defineFigureGenerator("Procedure",function(wt,et,tt){var lt=new go.Geometry,rt=wt?wt.parameter1:NaN;isNaN(rt)&&(rt=.1);var ut=new go.PathFigure(0,0,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var dt=new go.PathFigure((1-rt)*et,0,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,(1-rt)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Move,rt*et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),lt}),go.Shape.defineFigureGenerator("Process",function(wt,et,tt){var lt=new go.Geometry,rt=wt?wt.parameter1:NaN;isNaN(rt)&&(rt=.1);var ut=new go.PathFigure(0,0,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var dt=new go.PathFigure(rt*et,0,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),lt.spot2=go.Spot.BottomRight,lt}),go.Shape.defineFigureGenerator("Sort",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.5*et,0,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt).close());var ut=new go.PathFigure(0,.5*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),lt.spot1=new go.Spot(.25,.25),lt.spot2=new go.Spot(.75,.5),lt}),go.Shape.defineFigureGenerator("Start",function(wt,et,tt){var lt=new go.Geometry,rt=wt?wt.parameter1:NaN;isNaN(rt)&&(rt=.25);var ut=new go.PathFigure(rt*et,0,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*tt,.25*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*tt,.25*et,.5*tt));var dt=new go.PathFigure(rt*et,0,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Move,(1-rt)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,(1-rt)*et,tt)),lt.spot1=new go.Spot(rt,0),lt.spot2=new go.Spot(1-rt,1),lt}),go.Shape.defineFigureGenerator("Terminator",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.25*et,0,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*tt,.25*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*tt,.25*et,.5*tt)),lt.spot1=new go.Spot(.23,0),lt.spot2=new go.Spot(.77,1),lt}),go.Shape.defineFigureGenerator("TransmittalTape",function(wt,et,tt){var lt=new go.Geometry,rt=wt?wt.parameter1:NaN;isNaN(rt)&&(rt=.1);var ut=new go.PathFigure(0,0,!0);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.75*et,(1-rt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,(1-rt)*tt).close()),lt.spot1=go.Spot.TopLeft,lt}),go.Shape.defineFigureGenerator("AndGate",function(wt,et,tt){var lt=new go.Geometry,rt=Lt*.5,ut=new go.PathFigure(0,0,!0);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(.5+rt)*et,0,et,(.5-rt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.5+rt)*tt,(.5+rt)*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt.spot1=go.Spot.TopLeft,lt.spot2=new go.Spot(.55,1),lt}),go.Shape.defineFigureGenerator("Buffer",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt.spot1=new go.Spot(0,.25),lt.spot2=new go.Spot(.5,.75),lt}),go.Shape.defineFigureGenerator("Clock",function(wt,et,tt){var lt=new go.Geometry,rt=Lt*.5,ut=.5,dt=new go.PathFigure(et,ut*tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,tt,et,(ut+rt)*tt,(ut+rt)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,ut*tt,(ut-rt)*et,tt,0,(ut+rt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,0,0,(ut-rt)*tt,(ut-rt)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,ut*tt,(ut+rt)*et,0,et,(ut-rt)*tt));var pt=new go.PathFigure(et,ut*tt,!1);lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,ut*tt));var Ft=new go.PathFigure(.8*et,.75*tt,!1);return lt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Line,.8*et,.25*tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.6*et,.25*tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.6*et,.75*tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.4*et,.75*tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.4*et,.25*tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,.25*tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,.75*tt)),lt}),go.Shape.defineFigureGenerator("Ground",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.5*et,0,!1);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.3*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.4*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,tt)),lt}),go.Shape.defineFigureGenerator("Inverter",function(wt,et,tt){var lt=new go.Geometry,rt=Lt*.1,ut=.1,dt=.9,pt=.5,Ft=new go.PathFigure(.8*et,.5*tt,!0);lt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Line,0,tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ft.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*tt));var Tt=new go.PathFigure((dt+ut)*et,pt*tt,!0);return lt.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(pt+ut)*tt,(dt+ut)*et,(pt+rt)*tt,(dt+rt)*et,(pt+ut)*tt)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ut)*et,pt*tt,(dt-rt)*et,(pt+ut)*tt,(dt-ut)*et,(pt+rt)*tt)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(pt-ut)*tt,(dt-ut)*et,(pt-rt)*tt,(dt-rt)*et,(pt-ut)*tt)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ut)*et,pt*tt,(dt+rt)*et,(pt-ut)*tt,(dt+ut)*et,(pt-rt)*tt)),lt.spot1=new go.Spot(0,.25),lt.spot2=new go.Spot(.4,.75),lt}),go.Shape.defineFigureGenerator("NandGate",function(wt,et,tt){var lt=new go.Geometry,rt=Lt*.5,ut=Lt*.4,dt=Lt*.1,pt=.1,Ft=.9,Tt=.5,_t=new go.PathFigure(.8*et,.5*tt,!0);lt.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,tt,.8*et,(.5+ut)*tt,(.4+rt)*et,tt)),_t.add(new go.PathSegment(go.PathSegment.Line,0,tt)),_t.add(new go.PathSegment(go.PathSegment.Line,0,0)),_t.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),_t.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(.4+rt)*et,0,.8*et,(.5-ut)*tt));var re=new go.PathFigure((Ft+pt)*et,Tt*tt,!0);return lt.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Tt+pt)*tt,(Ft+pt)*et,(Tt+dt)*tt,(Ft+dt)*et,(Tt+pt)*tt)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-pt)*et,Tt*tt,(Ft-dt)*et,(Tt+pt)*tt,(Ft-pt)*et,(Tt+dt)*tt)),re.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Tt-pt)*tt,(Ft-pt)*et,(Tt-dt)*tt,(Ft-dt)*et,(Tt-pt)*tt)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+pt)*et,Tt*tt,(Ft+dt)*et,(Tt-pt)*tt,(Ft+pt)*et,(Tt-dt)*tt)),lt.spot1=new go.Spot(0,.05),lt.spot2=new go.Spot(.55,.95),lt}),go.Shape.defineFigureGenerator("NorGate",function(wt,et,tt){var lt=new go.Geometry,rt=.5,ut=Lt*rt,dt=0,pt=.5,Ft=new go.PathFigure(.8*et,.5*tt,!0);lt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.7*et,(pt+ut)*tt,(dt+ut)*et,(pt+rt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*tt,.25*et,.25*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(dt+ut)*et,(pt-rt)*tt,.7*et,(pt-ut)*tt)),rt=.1,ut=Lt*.1,dt=.9,pt=.5;var Tt=new go.PathFigure((dt-rt)*et,pt*tt,!0);return lt.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(pt-rt)*tt,(dt-rt)*et,(pt-ut)*tt,(dt-ut)*et,(pt-rt)*tt)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+rt)*et,pt*tt,(dt+ut)*et,(pt-rt)*tt,(dt+rt)*et,(pt-ut)*tt)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(pt+rt)*tt,(dt+rt)*et,(pt+ut)*tt,(dt+ut)*et,(pt+rt)*tt)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(dt-rt)*et,pt*tt,(dt-ut)*et,(pt+rt)*tt,(dt-rt)*et,(pt+ut)*tt)),lt.spot1=new go.Spot(.2,.25),lt.spot2=new go.Spot(.6,.75),lt}),go.Shape.defineFigureGenerator("OrGate",function(wt,et,tt){var lt=new go.Geometry,rt=.5,ut=Lt*rt,dt=0,pt=.5,Ft=new go.PathFigure(0,0,!0);return lt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(dt+ut+ut)*et,(pt-rt)*tt,.8*et,(pt-ut)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.8*et,(pt+ut)*tt,(dt+ut+ut)*et,(pt+rt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*tt,.25*et,.25*tt).close()),lt.spot1=new go.Spot(.2,.25),lt.spot2=new go.Spot(.75,.75),lt}),go.Shape.defineFigureGenerator("XnorGate",function(wt,et,tt){var lt=new go.Geometry,rt=.5,ut=Lt*rt,dt=.2,pt=.5,Ft=new go.PathFigure(.1*et,0,!1);lt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,tt,.35*et,.25*tt,.35*et,.75*tt));var Tt=new go.PathFigure(.8*et,.5*tt,!0);lt.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,tt,.7*et,(pt+ut)*tt,(dt+ut)*et,(pt+rt)*tt)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*tt,.45*et,.25*tt)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(dt+ut)*et,(pt-rt)*tt,.7*et,(pt-ut)*tt)),rt=.1,ut=Lt*.1,dt=.9,pt=.5;var _t=new go.PathFigure((dt-rt)*et,pt*tt,!0);return lt.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(pt-rt)*tt,(dt-rt)*et,(pt-ut)*tt,(dt-ut)*et,(pt-rt)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(dt+rt)*et,pt*tt,(dt+ut)*et,(pt-rt)*tt,(dt+rt)*et,(pt-ut)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(pt+rt)*tt,(dt+rt)*et,(pt+ut)*tt,(dt+ut)*et,(pt+rt)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(dt-rt)*et,pt*tt,(dt-ut)*et,(pt+rt)*tt,(dt-rt)*et,(pt+ut)*tt)),lt.spot1=new go.Spot(.4,.25),lt.spot2=new go.Spot(.65,.75),lt}),go.Shape.defineFigureGenerator("XorGate",function(wt,et,tt){var lt=new go.Geometry,rt=.5,ut=Lt*rt,dt=.2,pt=.5,Ft=new go.PathFigure(.1*et,0,!1);lt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,tt,.35*et,.25*tt,.35*et,.75*tt));var Tt=new go.PathFigure(.2*et,0,!0);return lt.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(dt+ut)*et,(pt-rt)*tt,.9*et,(pt-ut)*tt)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,tt,.9*et,(pt+ut)*tt,(dt+ut)*et,(pt+rt)*tt)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*tt,.45*et,.25*tt).close()),lt.spot1=new go.Spot(.4,.25),lt.spot2=new go.Spot(.8,.75),lt}),go.Shape.defineFigureGenerator("Capacitor",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!1);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),lt}),go.Shape.defineFigureGenerator("Resistor",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.5*tt,!1);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.5*tt)),lt}),go.Shape.defineFigureGenerator("Inductor",function(wt,et,tt){var lt=new go.Geometry,rt=Lt*.1,ut=.1,dt=.1,pt=.5,Ft=new go.PathFigure((dt-rt*.5)*et,tt,!1);return lt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ut)*et,0,(dt-rt)*et,tt,(dt-ut)*et,0)),dt=.3,Ft.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,tt,(dt+ut)*et,0,(dt+rt)*et,tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ut)*et,0,(dt-rt)*et,tt,(dt-ut)*et,0)),dt=.5,Ft.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,tt,(dt+ut)*et,0,(dt+rt)*et,tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ut)*et,0,(dt-rt)*et,tt,(dt-ut)*et,0)),dt=.7,Ft.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,tt,(dt+ut)*et,0,(dt+rt)*et,tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ut)*et,0,(dt-rt)*et,tt,(dt-ut)*et,0)),dt=.9,Ft.add(new go.PathSegment(go.PathSegment.Bezier,(dt+rt*.5)*et,tt,(dt+ut)*et,0,(dt+rt)*et,tt)),lt}),go.Shape.defineFigureGenerator("ACvoltageSource",function(wt,et,tt){var lt=new go.Geometry,rt=Lt*.5,ut=.5,dt=.5,pt=.5,Ft=new go.PathFigure((dt-ut)*et,pt*tt,!1);return lt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(pt-ut)*tt,(dt-ut)*et,(pt-rt)*tt,(dt-rt)*et,(pt-ut)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ut)*et,pt*tt,(dt+rt)*et,(pt-ut)*tt,(dt+ut)*et,(pt-rt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(pt+ut)*tt,(dt+ut)*et,(pt+rt)*tt,(dt+rt)*et,(pt+ut)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ut)*et,pt*tt,(dt-rt)*et,(pt+ut)*tt,(dt-ut)*et,(pt+rt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Move,(dt-ut+.1)*et,pt*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ut-.1)*et,pt*tt,dt*et,(pt-ut)*tt,dt*et,(pt+ut)*tt)),lt}),go.Shape.defineFigureGenerator("DCvoltageSource",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.75*tt,!1);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),lt}),go.Shape.defineFigureGenerator("Diode",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et,0,!1);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),lt.spot1=new go.Spot(0,.25),lt.spot2=new go.Spot(.5,.75),lt}),go.Shape.defineFigureGenerator("Wifi",function(wt,et,tt){var lt=new go.Geometry,rt=et,ut=tt;et=et*.38,tt=tt*.6;var dt=Lt*.8,pt=.8,Ft=0,Tt=.5,_t=(rt-et)/2,re=(ut-tt)/2,he=new go.PathFigure(Ft*et+_t,(Tt+pt)*tt+re,!0);lt.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-pt)*et+_t,Tt*tt+re,(Ft-dt)*et+_t,(Tt+pt)*tt+re,(Ft-pt)*et+_t,(Tt+dt)*tt+re)),he.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+_t,(Tt-pt)*tt+re,(Ft-pt)*et+_t,(Tt-dt)*tt+re,(Ft-dt)*et+_t,(Tt-pt)*tt+re)),he.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-pt+dt*.5)*et+_t,Tt*tt+re,Ft*et+_t,(Tt-pt)*tt+re,(Ft-pt+dt*.5)*et+_t,(Tt-dt)*tt+re)),he.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+_t,(Tt+pt)*tt+re,(Ft-pt+dt*.5)*et+_t,(Tt+dt)*tt+re,Ft*et+_t,(Tt+pt)*tt+re).close()),dt=Lt*.4,pt=.4,Ft=.2,Tt=.5;var Ae=new go.PathFigure(Ft*et+_t,(Tt+pt)*tt+re,!0);lt.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-pt)*et+_t,Tt*tt+re,(Ft-dt)*et+_t,(Tt+pt)*tt+re,(Ft-pt)*et+_t,(Tt+dt)*tt+re)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+_t,(Tt-pt)*tt+re,(Ft-pt)*et+_t,(Tt-dt)*tt+re,(Ft-dt)*et+_t,(Tt-pt)*tt+re)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-pt+dt*.5)*et+_t,Tt*tt+re,Ft*et+_t,(Tt-pt)*tt+re,(Ft-pt+dt*.5)*et+_t,(Tt-dt)*tt+re)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+_t,(Tt+pt)*tt+re,(Ft-pt+dt*.5)*et+_t,(Tt+dt)*tt+re,Ft*et+_t,(Tt+pt)*tt+re).close()),dt=Lt*.2,pt=.2,Ft=.5,Tt=.5;var Fe=new go.PathFigure((Ft-pt)*et+_t,Tt*tt+re,!0);lt.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+_t,(Tt-pt)*tt+re,(Ft-pt)*et+_t,(Tt-dt)*tt+re,(Ft-dt)*et+_t,(Tt-pt)*tt+re)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+pt)*et+_t,Tt*tt+re,(Ft+dt)*et+_t,(Tt-pt)*tt+re,(Ft+pt)*et+_t,(Tt-dt)*tt+re)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+_t,(Tt+pt)*tt+re,(Ft+pt)*et+_t,(Tt+dt)*tt+re,(Ft+dt)*et+_t,(Tt+pt)*tt+re)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-pt)*et+_t,Tt*tt+re,(Ft-dt)*et+_t,(Tt+pt)*tt+re,(Ft-pt)*et+_t,(Tt+dt)*tt+re)),dt=Lt*.4,pt=.4,Ft=.8,Tt=.5;var ee=new go.PathFigure(Ft*et+_t,(Tt-pt)*tt+re,!0);lt.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+pt)*et+_t,Tt*tt+re,(Ft+dt)*et+_t,(Tt-pt)*tt+re,(Ft+pt)*et+_t,(Tt-dt)*tt+re)),ee.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+_t,(Tt+pt)*tt+re,(Ft+pt)*et+_t,(Tt+dt)*tt+re,(Ft+dt)*et+_t,(Tt+pt)*tt+re)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+pt-dt*.5)*et+_t,Tt*tt+re,Ft*et+_t,(Tt+pt)*tt+re,(Ft+pt-dt*.5)*et+_t,(Tt+dt)*tt+re)),ee.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+_t,(Tt-pt)*tt+re,(Ft+pt-dt*.5)*et+_t,(Tt-dt)*tt+re,Ft*et+_t,(Tt-pt)*tt+re).close()),dt=Lt*.8,pt=.8,Ft=1,Tt=.5;var We=new go.PathFigure(Ft*et+_t,(Tt-pt)*tt+re,!0);return lt.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+pt)*et+_t,Tt*tt+re,(Ft+dt)*et+_t,(Tt-pt)*tt+re,(Ft+pt)*et+_t,(Tt-dt)*tt+re)),We.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+_t,(Tt+pt)*tt+re,(Ft+pt)*et+_t,(Tt+dt)*tt+re,(Ft+dt)*et+_t,(Tt+pt)*tt+re)),We.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+pt-dt*.5)*et+_t,Tt*tt+re,Ft*et+_t,(Tt+pt)*tt+re,(Ft+pt-dt*.5)*et+_t,(Tt+dt)*tt+re)),We.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+_t,(Tt-pt)*tt+re,(Ft+pt-dt*.5)*et+_t,(Tt-dt)*tt+re,Ft*et+_t,(Tt-pt)*tt+re).close()),lt}),go.Shape.defineFigureGenerator("Email",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ut=new go.PathFigure(0,0,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Move,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.45*et,.54*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*et,.54*tt)),lt}),go.Shape.defineFigureGenerator("Ethernet",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.35*et,0,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.65*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.35*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.35*et,0).close());var ut=new go.PathFigure(.1*et,tt,!0,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,tt).close());var dt=new go.PathFigure(.6*et,tt,!0,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.6*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.6*et,tt).close());var pt=new go.PathFigure(0,.5*tt,!1);return lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),pt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*tt)),pt.add(new go.PathSegment(go.PathSegment.Move,.75*et,.5*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.6*tt)),pt.add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.6*tt)),lt}),go.Shape.defineFigureGenerator("Power",function(wt,et,tt){var lt=new go.Geometry,rt=Lt*.4,ut=.4,dt=.5,pt=.5,Ft=bt(),Tt=bt(),_t=bt(),re=bt();Me(dt,pt-ut,dt+rt,pt-ut,dt+ut,pt-rt,dt+ut,pt,.5,Ft,Ft,Tt,_t,re);var he=Bt(Tt.x,Tt.y),Ae=new go.PathFigure(Tt.x*et,Tt.y*tt,!0);lt.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ut)*et,pt*tt,_t.x*et,_t.y*tt,re.x*et,re.y*tt)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(pt+ut)*tt,(dt+ut)*et,(pt+rt)*tt,(dt+rt)*et,(pt+ut)*tt)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ut)*et,pt*tt,(dt-rt)*et,(pt+ut)*tt,(dt-ut)*et,(pt+rt)*tt)),Me(dt-ut,pt,dt-ut,pt-rt,dt-rt,pt-ut,dt,pt-ut,.5,_t,re,Tt,Ft,Ft),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Tt.x*et,Tt.y*tt,_t.x*et,_t.y*tt,re.x*et,re.y*tt)),rt=Lt*.3,ut=.3,Me(dt-ut,pt,dt-ut,pt-rt,dt-rt,pt-ut,dt,pt-ut,.5,_t,re,Tt,Ft,Ft),Ae.add(new go.PathSegment(go.PathSegment.Line,Tt.x*et,Tt.y*tt)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ut)*et,pt*tt,re.x*et,re.y*tt,_t.x*et,_t.y*tt)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(pt+ut)*tt,(dt-ut)*et,(pt+rt)*tt,(dt-rt)*et,(pt+ut)*tt)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ut)*et,pt*tt,(dt+rt)*et,(pt+ut)*tt,(dt+ut)*et,(pt+rt)*tt)),Me(dt,pt-ut,dt+rt,pt-ut,dt+ut,pt-rt,dt+ut,pt,.5,Ft,Ft,Tt,_t,re),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Tt.x*et,Tt.y*tt,re.x*et,re.y*tt,_t.x*et,_t.y*tt).close());var Ae=new go.PathFigure(.45*et,0,!0);return lt.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,.55*et,.5*tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,.55*et,0).close()),ge(Ft),ge(Tt),ge(_t),ge(re),ge(he),lt.spot1=new go.Spot(.25,.45),lt.spot2=new go.Spot(.75,.8),lt}),go.Shape.defineFigureGenerator("Fallout",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,tt/2,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,180,360,et/2,tt/2,et/2,tt/2));function ut(dt,pt,Ft){dt.add(new go.PathSegment(go.PathSegment.Move,(.3+pt)*et,(.8+Ft)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,(.5+pt)*et,(.5+Ft)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,(.1+pt)*et,(.5+Ft)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,(.3+pt)*et,(.8+Ft)*tt).close())}return ut(rt,0,0),ut(rt,.4,0),ut(rt,.2,-.3),lt}),go.Shape.defineFigureGenerator("IrritationHazard",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.2*et,0,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt).close()),lt.spot1=new go.Spot(.3,.3),lt.spot2=new go.Spot(.7,.7),lt}),go.Shape.defineFigureGenerator("ElectricalHazard",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.37*et,0,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.11*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.77*et,.04*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.33*et,.49*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.37*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.63*et,.86*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.77*et,.91*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.34*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.34*et,.78*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.44*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.56*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.68*tt).close()),lt}),go.Shape.defineFigureGenerator("FireHazard",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.1*et,tt,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,.29*et,0,-.25*et,.63*tt,.45*et,.44*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.51*et,.42*tt,.48*et,.17*tt,.54*et,.35*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.59*et,.18*tt,.59*et,.29*tt,.58*et,.28*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,.6*tt,.8*et,.34*tt,.88*et,.43*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.88*et,.31*tt,.87*et,.48*tt,.88*et,.43*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,tt,1.17*et,.76*tt,.82*et,.8*tt).close()),lt.spot1=new go.Spot(.07,.445),lt.spot2=new go.Spot(.884,.958),lt}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(wt,et,tt){var lt=new go.Geometry,rt=.5,ut=0,dt=0,pt=rt*Lt,Ft=.4*Math.SQRT2/2+.5,Tt=.5-.5*Math.SQRT2/2,_t=1,re=.5,he=.5,Ae=0,Fe=new go.PathFigure(Ft*et,(1-Tt)*tt,!1);return lt.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,_t*et,re*tt,_t*et,.7*tt,_t*et,re*tt)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(he+ut)*et,(Ae+ut)*tt,(.5+rt+ut)*et,(.5-pt+ut)*tt,(.5+pt+ut)*et,(.5-rt+ut)*tt)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-rt+ut)*et,(.5+dt)*tt,(.5-pt+ut)*et,(.5-rt+dt)*tt,(.5-rt+ut)*et,(.5-pt+dt)*tt)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(.35+ut)*et,.9*tt,(.5-rt+ut)*et,(.5+pt+dt)*tt,(.5-pt+ut)*et,.9*tt)),Fe.add(new go.PathSegment(go.PathSegment.Move,(.25+ut)*et,.8*tt)),Fe.add(new go.PathSegment(go.PathSegment.Line,(.35+ut)*et,.9*tt)),Fe.add(new go.PathSegment(go.PathSegment.Line,(.2+ut)*et,.95*tt)),lt}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!1);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),lt}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!1);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),lt}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!1);lt.add(rt);var ut=new go.PathFigure(et,tt,!1);lt.add(ut);var dt=new go.PathFigure(0,.5*tt,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*tt,.2*et,.35*tt,.3*et,.35*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,.7*et,.65*tt,.8*et,.65*tt)),lt}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.5*tt,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt).close()),lt}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.2*tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt).close());var rt=new go.PathFigure(0,.2*tt,!1);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt)),lt}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.7*et,tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,0,.6*et,.5*tt,0,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,tt,.4*et,.5*tt,et,.5*tt).close());var ut=new go.PathFigure(.45*et,.73*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.7*et,.73*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.38*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.63*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.31*et,.27*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.56*et,.27*tt)),lt}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!1);lt.add(rt);var ut=new go.PathFigure(.335*et,(1-.555)*tt,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,et,.68*tt,(1-.12)*et,.46*tt,(1-.02)*et,.54*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.68*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.335*et,(1-.555)*tt,.02*et,.54*tt,.12*et,.46*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.365*et,(1-.595)*tt));var dt=.5-.285,pt=.5,Ft=dt,Tt=Math.PI/4,_t=4*(1-Math.cos(Tt))/(3*Math.sin(Tt)),re=_t*.5,he=dt,Ae=dt,Fe=_t*he,ee=_t*Ae;ut.add(new go.PathSegment(go.PathSegment.Bezier,(pt-he)*et,Ft*tt,(pt-(Fe+he)/2)*et,(Ft+(Ae+ee)/2)*tt,(pt-he)*et,(Ft+ee)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,(Ft-Ae)*tt,(pt-he)*et,(Ft-ee)*tt,(pt-Fe)*et,(Ft-Ae)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(pt+he)*et,Ft*tt,(pt+Fe)*et,(Ft-Ae)*tt,(pt+he)*et,(Ft-ee)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*et,(1-.595)*tt,(pt+he)*et,(Ft+ee)*tt,(pt+(Fe+he)/2)*et,(Ft+(Ae+ee)/2)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*et,(1-.595)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*tt));var We=new go.PathFigure(.2*et,tt,!1);lt.add(We),We.add(new go.PathSegment(go.PathSegment.Line,.2*et,.8*tt));var Yt=new go.PathFigure(.8*et,tt,!1);return lt.add(Yt),Yt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*tt)),lt}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.1*et,0,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,tt).close());var ut=new go.PathFigure(.2*et,.2*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*tt)),lt}),go.Shape.defineFigureGenerator("BpmnEventError",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,tt,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.33*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.66*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.66*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.33*et,.5*tt).close()),lt}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!1);lt.add(rt);var ut=new go.PathFigure(et,tt,!1);lt.add(ut);var dt=new go.PathFigure(.1*et,tt,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt).close()),lt}),go.Shape.defineFigureGenerator("Caution",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.05*et,tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,.8*tt,0,tt,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.1*tt,.5*et,0,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.95*et,.9*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,tt,et,tt,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.05*et,tt));var ut=.05;return rt.add(new go.PathSegment(go.PathSegment.Move,(.5-ut)*et,.875*tt)),rt.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*et,.875*tt,ut*et,ut*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.325*tt,.575*et,.725*tt,.625*et,.375*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.75*tt,.375*et,.375*tt,.425*et,.725*tt)),lt}),go.Shape.defineFigureGenerator("Recycle",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.45*et,.95*tt,!1);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.95*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.185*et,.85*tt,.17*et,.95*tt,.15*et,.9*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.235*et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.625*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.35*et,.65*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.275*et,.45*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.05*et,.45*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.05*et,.575*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.1875*et,.95*tt,0,.675*tt,0,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.45*et,.95*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.775*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.22*et,.775*tt));var ut=new go.PathFigure(.475*et,.2*tt,!1);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.225*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.275*et,.175*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.325*et,.05*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.05*tt,.35*et,0,.375*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.575*et,.375*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.525*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.75*et,.475*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.85*et,.315*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.32*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*et,.05*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,0,.65*et,.05*tt,.625*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.38*et,.0105*tt));var dt=new go.PathFigure(.675*et,.575*tt,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.875*et,.525*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,.775*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.85*et,.95*tt,et,.8*tt,et,.85*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.95*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.65*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.85*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.725*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.775*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.775*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,.775*tt)),dt.add(new go.PathSegment(go.PathSegment.Move,.675*et,.575*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.775*et,.775*tt)),lt}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(wt,et,tt){var lt=new go.Geometry,rt=.5,ut=Lt*.5,dt=new go.PathFigure(et,rt*tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,rt*et,tt,et,(rt+ut)*tt,(rt+ut)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,rt*tt,(rt-ut)*et,tt,0,(rt+ut)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,rt*et,0,0,(rt-ut)*tt,(rt-ut)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,rt*tt,(rt+ut)*et,0,et,(rt-ut)*tt));var pt=new go.PathFigure(rt*et,0,!1);return lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,rt*et,.15*tt)),pt.add(new go.PathSegment(go.PathSegment.Move,rt*et,tt)),pt.add(new go.PathSegment(go.PathSegment.Line,rt*et,.85*tt)),pt.add(new go.PathSegment(go.PathSegment.Move,0,rt*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.15*et,rt*tt)),pt.add(new go.PathSegment(go.PathSegment.Move,et,rt*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.85*et,rt*tt)),pt.add(new go.PathSegment(go.PathSegment.Move,rt*et,rt*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.58*et,.1*tt)),pt.add(new go.PathSegment(go.PathSegment.Move,rt*et,rt*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.78*et,.54*tt)),lt}),go.Shape.defineFigureGenerator("Package",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.15*tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ut=new go.PathFigure(0,.15*tt,!0);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*et,.15*tt).close()),lt.spot1=new go.Spot(0,.1),lt.spot2=new go.Spot(1,1),lt}),go.Shape.defineFigureGenerator("Class",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ut=new go.PathFigure(0,.2*tt,!1);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt).close());var dt=new go.PathFigure(0,.5*tt,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt).close()),lt}),go.Shape.defineFigureGenerator("Component",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et,tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.15*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.15*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt).close());var ut=new go.PathFigure(0,.2*tt,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.45*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt).close());var dt=new go.PathFigure(0,.6*tt,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.6*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.8*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt).close()),lt}),go.Shape.defineFigureGenerator("Boat Shipment",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.15*et,.6*tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.15*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.85*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*tt));var ut=new go.PathFigure(.15*et,.6*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*tt)),lt}),go.Shape.defineFigureGenerator("Customer/Supplier",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et,tt,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.66*et,.33*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.66*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.33*et,.33*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.33*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.33*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt).close()),lt}),go.Shape.defineFigureGenerator("Workcell",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,tt,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.65*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.35*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.35*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt}),go.Shape.defineFigureGenerator("Supermarket",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!1);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.33*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.33*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,et,.33*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.66*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.66*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,et,.66*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),lt}),go.Shape.defineFigureGenerator("TruckShipment",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ut=new go.PathFigure(et,.8*tt,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt).close());var dt=.1,pt=Lt*.1,Ft=.2,Tt=.9,_t=new go.PathFigure((Ft-dt)*et,Tt*tt,!0);lt.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Tt-dt)*tt,(Ft-dt)*et,(Tt-pt)*tt,(Ft-pt)*et,(Tt-dt)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+dt)*et,Tt*tt,(Ft+pt)*et,(Tt-dt)*tt,(Ft+dt)*et,(Tt-pt)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Tt+dt)*tt,(Ft+dt)*et,(Tt+pt)*tt,(Ft+pt)*et,(Tt+dt)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-dt)*et,Tt*tt,(Ft-pt)*et,(Tt+dt)*tt,(Ft-dt)*et,(Tt+pt)*tt).close()),dt=.1,pt=Lt*.1,Ft=.8,Tt=.9;var re=new go.PathFigure((Ft-dt)*et,Tt*tt,!0);return lt.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Tt-dt)*tt,(Ft-dt)*et,(Tt-pt)*tt,(Ft-pt)*et,(Tt-dt)*tt)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+dt)*et,Tt*tt,(Ft+pt)*et,(Tt-dt)*tt,(Ft+dt)*et,(Tt-pt)*tt)),re.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Tt+dt)*tt,(Ft+dt)*et,(Tt+pt)*tt,(Ft+pt)*et,(Tt+dt)*tt)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-dt)*et,Tt*tt,(Ft-pt)*et,(Tt+dt)*tt,(Ft-dt)*et,(Tt+pt)*tt).close()),lt}),go.Shape.defineFigureGenerator("KanbanPost",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.2*et,0,!1);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,tt)),lt}),go.Shape.defineFigureGenerator("Forklift",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0));var ut=new go.PathFigure(0,.5*tt,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt));var dt=new go.PathFigure(.5*et,.8*tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.1*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.1*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.8*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*tt));var pt=new go.PathFigure(.5*et,.7*tt,!1);lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt));var Ft=.1,Tt=Lt*.1,_t=.1,re=.9,he=new go.PathFigure((_t-Ft)*et,re*tt,!0);lt.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,_t*et,(re-Ft)*tt,(_t-Ft)*et,(re-Tt)*tt,(_t-Tt)*et,(re-Ft)*tt)),he.add(new go.PathSegment(go.PathSegment.Bezier,(_t+Ft)*et,re*tt,(_t+Tt)*et,(re-Ft)*tt,(_t+Ft)*et,(re-Tt)*tt)),he.add(new go.PathSegment(go.PathSegment.Bezier,_t*et,(re+Ft)*tt,(_t+Ft)*et,(re+Tt)*tt,(_t+Tt)*et,(re+Ft)*tt)),he.add(new go.PathSegment(go.PathSegment.Bezier,(_t-Ft)*et,re*tt,(_t-Tt)*et,(re+Ft)*tt,(_t-Ft)*et,(re+Tt)*tt)),Ft=.1,Tt=Lt*.1,_t=.4,re=.9;var Ae=new go.PathFigure((_t-Ft)*et,re*tt,!0);return lt.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,_t*et,(re-Ft)*tt,(_t-Ft)*et,(re-Tt)*tt,(_t-Tt)*et,(re-Ft)*tt)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(_t+Ft)*et,re*tt,(_t+Tt)*et,(re-Ft)*tt,(_t+Ft)*et,(re-Tt)*tt)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,_t*et,(re+Ft)*tt,(_t+Ft)*et,(re+Tt)*tt,(_t+Tt)*et,(re+Ft)*tt)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(_t-Ft)*et,re*tt,(_t-Tt)*et,(re+Ft)*tt,(_t-Ft)*et,(re+Tt)*tt)),lt}),go.Shape.defineFigureGenerator("RailShipment",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.1*et,.4*tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.9*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.9*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.4*tt).close());var ut=new go.PathFigure(.45*et,.7*tt,!1);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*tt));var dt=new go.PathFigure(.55*et,.4*tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.4*tt).close());var _t=.05,re=Lt*.05,he=.175,Ae=.95,pt=new go.PathFigure((he-_t)*et,Ae*tt,!0);lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,he*et,(Ae-_t)*tt,(he-_t)*et,(Ae-re)*tt,(he-re)*et,(Ae-_t)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(he+_t)*et,Ae*tt,(he+re)*et,(Ae-_t)*tt,(he+_t)*et,(Ae-re)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,he*et,(Ae+_t)*tt,(he+_t)*et,(Ae+re)*tt,(he+re)*et,(Ae+_t)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(he-_t)*et,Ae*tt,(he-re)*et,(Ae+_t)*tt,(he-_t)*et,(Ae+re)*tt));var _t=.05,re=Lt*.05,he=.375,Ae=.95,Ft=new go.PathFigure((he-_t)*et,Ae*tt,!0);lt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,he*et,(Ae-_t)*tt,(he-_t)*et,(Ae-re)*tt,(he-re)*et,(Ae-_t)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(he+_t)*et,Ae*tt,(he+re)*et,(Ae-_t)*tt,(he+_t)*et,(Ae-re)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,he*et,(Ae+_t)*tt,(he+_t)*et,(Ae+re)*tt,(he+re)*et,(Ae+_t)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(he-_t)*et,Ae*tt,(he-re)*et,(Ae+_t)*tt,(he-_t)*et,(Ae+re)*tt));var _t=.05,re=Lt*.05,he=.625,Ae=.95,Tt=new go.PathFigure((he-_t)*et,Ae*tt,!0);lt.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Bezier,he*et,(Ae-_t)*tt,(he-_t)*et,(Ae-re)*tt,(he-re)*et,(Ae-_t)*tt)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(he+_t)*et,Ae*tt,(he+re)*et,(Ae-_t)*tt,(he+_t)*et,(Ae-re)*tt)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,he*et,(Ae+_t)*tt,(he+_t)*et,(Ae+re)*tt,(he+re)*et,(Ae+_t)*tt)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(he-_t)*et,Ae*tt,(he-re)*et,(Ae+_t)*tt,(he-_t)*et,(Ae+re)*tt));var _t=.05,re=Lt*.05,he=.825,Ae=.95,Fe=new go.PathFigure((he-_t)*et,Ae*tt,!0);lt.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,he*et,(Ae-_t)*tt,(he-_t)*et,(Ae-re)*tt,(he-re)*et,(Ae-_t)*tt)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(he+_t)*et,Ae*tt,(he+re)*et,(Ae-_t)*tt,(he+_t)*et,(Ae-re)*tt)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,he*et,(Ae+_t)*tt,(he+_t)*et,(Ae+re)*tt,(he+re)*et,(Ae+_t)*tt)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(he-_t)*et,Ae*tt,(he-re)*et,(Ae+_t)*tt,(he-_t)*et,(Ae+re)*tt).close());var ee=new go.PathFigure(0,tt,!1);return lt.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,et,tt).close()),lt}),go.Shape.defineFigureGenerator("Warehouse",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ut=new go.PathFigure(0,.2*tt,!1);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt).close());var dt=new go.PathFigure(.15*et,tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.5*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.15*et,tt).close());var pt=.05,Ft=Lt*.05,Tt=.35,_t=.775,re=new go.PathFigure((Tt-pt)*et,_t*tt,!0);return lt.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,Tt*et,(_t-pt)*tt,(Tt-pt)*et,(_t-Ft)*tt,(Tt-Ft)*et,(_t-pt)*tt)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Tt+pt)*et,_t*tt,(Tt+Ft)*et,(_t-pt)*tt,(Tt+pt)*et,(_t-Ft)*tt)),re.add(new go.PathSegment(go.PathSegment.Bezier,Tt*et,(_t+pt)*tt,(Tt+pt)*et,(_t+Ft)*tt,(Tt+Ft)*et,(_t+pt)*tt)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Tt-pt)*et,_t*tt,(Tt-Ft)*et,(_t+pt)*tt,(Tt-pt)*et,(_t+Ft)*tt).close()),lt}),go.Shape.defineFigureGenerator("ControlCenter",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,tt,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.1*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt).close()),lt}),go.Shape.defineFigureGenerator("Bluetooth",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.75*tt,!1);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),lt}),go.Shape.defineFigureGenerator("Bookmark",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*tt)),lt}),go.Shape.defineFigureGenerator("Bookmark",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*tt)),lt}),go.Shape.defineFigureGenerator("Globe",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.5*et,0,!1);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,.75*et,0,et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,.75*tt,.75*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,.25*et,tt,0,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,.25*tt,.25*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,.15*et,.25*tt,.15*et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.85*et,.75*tt,.85*et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.1675*et,.15*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.8325*et,.15*tt,.35*et,.3*tt,.65*et,.3*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.1675*et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.8325*et,.85*tt,.35*et,.7*tt,.65*et,.7*tt)),lt}),go.Shape.defineFigureGenerator("Wave",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.25*tt,!1);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.25*tt,.1*et,0,.2*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,.25*tt,.425*et,.5*tt,.575*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,.25*tt,.8*et,0,.9*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,0,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.75*tt,.1*et,.5*tt,.2*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,.75*tt,.425*et,tt,.575*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,.75*tt,.8*et,.5*tt,.9*et,.5*tt)),lt}),go.Shape.defineFigureGenerator("Operator",function(wt,et,tt){var lt=new go.Geometry,rt=.3,ut=Lt*.3,dt=.5,pt=.7,Ft=new go.PathFigure((dt-rt)*et,pt*tt,!0);lt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(pt-rt)*tt,(dt-rt)*et,(pt-ut)*tt,(dt-ut)*et,(pt-rt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(dt+rt)*et,pt*tt,(dt+ut)*et,(pt-rt)*tt,(dt+rt)*et,(pt-ut)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(pt+rt)*tt,(dt+rt)*et,(pt+ut)*tt,(dt+ut)*et,(pt+rt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(dt-rt)*et,pt*tt,(dt-ut)*et,(pt+rt)*tt,(dt-rt)*et,(pt+ut)*tt));var Tt=new go.PathFigure(0,.7*tt,!1);return lt.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Bezier,et,.7*tt,0,0,et,0)),lt}),go.Shape.defineFigureGenerator("TripleFanBlades",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.5*et,0,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*tt,.65*et,.3*tt,.65*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.35*et,.5*tt,.35*et,.3*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.65*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.3*et,.6*tt,.1*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*tt,.2*et,tt,.35*et,.95*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.65*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,tt,.7*et,.6*tt,.9*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*tt,.8*et,tt,.65*et,.95*tt)),lt}),go.Shape.defineFigureGenerator("CentrifugalPump",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et,0,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,0,.075*tt,0,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,tt,0,tt,.4*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.4*tt,.8*et,tt,.85*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt}),go.Shape.defineFigureGenerator("Battery",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.4*et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.1*tt));var ut=new go.PathFigure(0,.6*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Move,0,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.4*tt)),lt}),go.Shape.defineFigureGenerator("Delete",function(wt,et,tt){var lt=new go.Geometry,rt=.5,ut=Lt*.5,dt=.5,pt=.5,Ft=new go.PathFigure((dt-rt)*et,pt*tt,!0);lt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(pt-rt)*tt,(dt-rt)*et,(pt-ut)*tt,(dt-ut)*et,(pt-rt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(dt+rt)*et,pt*tt,(dt+ut)*et,(pt-rt)*tt,(dt+rt)*et,(pt-ut)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(pt+rt)*tt,(dt+rt)*et,(pt+ut)*tt,(dt+ut)*et,(pt+rt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(dt-rt)*et,pt*tt,(dt-ut)*et,(pt+rt)*tt,(dt-rt)*et,(pt+ut)*tt));var Tt=new go.PathFigure(.15*et,.5*tt,!1);return lt.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.5*tt)),lt}),go.Shape.defineFigureGenerator("Flag",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.1*tt,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,0,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.1*tt,.15*et,0,.35*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*tt,.65*et,.2*tt,.85*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*tt,.85*et,.6*tt,.65*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,.35*et,.4*tt,.15*et,.4*tt).close()),lt}),go.Shape.defineFigureGenerator("Help",function(wt,et,tt){var lt=new go.Geometry,rt=.5,ut=Lt*.5,dt=.5,pt=.5,Ft=new go.PathFigure((dt-rt)*et,pt*tt,!1);lt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(pt-rt)*tt,(dt-rt)*et,(pt-ut)*tt,(dt-ut)*et,(pt-rt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(dt+rt)*et,pt*tt,(dt+ut)*et,(pt-rt)*tt,(dt+rt)*et,(pt-ut)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(pt+rt)*tt,(dt+rt)*et,(pt+ut)*tt,(dt+ut)*et,(pt+rt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(dt-rt)*et,pt*tt,(dt-ut)*et,(pt+rt)*tt,(dt-rt)*et,(pt+ut)*tt).close()),rt=.05,ut=Lt*.05,dt=.5,pt=.8;var Tt=new go.PathFigure((dt-rt)*et,pt*tt,!1);return lt.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(pt-rt)*tt,(dt-rt)*et,(pt-ut)*tt,(dt-ut)*et,(pt-rt)*tt)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+rt)*et,pt*tt,(dt+ut)*et,(pt-rt)*tt,(dt+rt)*et,(pt-ut)*tt)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(pt+rt)*tt,(dt+rt)*et,(pt+ut)*tt,(dt+ut)*et,(pt+rt)*tt)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(dt-rt)*et,pt*tt,(dt-ut)*et,(pt+rt)*tt,(dt-rt)*et,(pt+ut)*tt).close()),Tt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*tt)),Tt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,.75*et,.475*tt,.75*et,.225*tt)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.35*tt,.4*et,.2*tt,.3*et,.25*tt)),lt}),go.Shape.defineFigureGenerator("Location",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(.5*et,tt,!0).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.975*et,.025*tt,.5*et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*et,.5*tt,.5*et,0,.025*et,.025*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*et,.2*tt)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*et,.3*tt,.1*et,.1*tt).close()))}),go.Shape.defineFigureGenerator("Lock",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.5*tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt));var ut=new go.PathFigure(.2*et,.5*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*tt,.25*et,0,.75*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.3*tt)),lt}),go.Shape.defineFigureGenerator("Unlocked",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.5*tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt));var ut=new go.PathFigure(.2*et,.5*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*tt,.25*et,0,.75*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.35*tt)),lt}),go.Shape.defineFigureGenerator("Gear",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(.9375*et,.56246875*tt,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*et,.4375*tt)).add(new go.PathSegment(go.PathSegment.Line,.80621875*et,.4375*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.763*et,.3316875*tt,.79840625*et,.39915625*tt,.7834375*et,.3635*tt)).add(new go.PathSegment(go.PathSegment.Line,.8566875*et,.23796875*tt)).add(new go.PathSegment(go.PathSegment.Line,.76825*et,.14959375*tt)).add(new go.PathSegment(go.PathSegment.Line,.67596875*et,.24184375*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*et,.19378125*tt,.64228125*et,.2188125*tt,.603875*et,.2021875*tt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.0625*tt)).add(new go.PathSegment(go.PathSegment.Line,.4375*et,.0625*tt)).add(new go.PathSegment(go.PathSegment.Line,.4375*et,.19378125*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*et,.239375*tt,.39759375*et,.20190625*tt,.36053125*et,.2176875*tt)).add(new go.PathSegment(go.PathSegment.Line,.2379375*et,.14959375*tt)).add(new go.PathSegment(go.PathSegment.Line,.14953125*et,.2379375*tt)).add(new go.PathSegment(go.PathSegment.Line,.23934375*et,.3278125*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*et,.4375*tt,.21765625*et,.36059375*tt,.201875*et,.397625*tt)).add(new go.PathSegment(go.PathSegment.Line,.0625*et,.4375*tt)).add(new go.PathSegment(go.PathSegment.Line,.0625*et,.5625*tt)).add(new go.PathSegment(go.PathSegment.Line,.1938125*et,.5625*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*et,.67596875*tt,.20221875*et,.603875*tt,.21884375*et,.64228125*tt)).add(new go.PathSegment(go.PathSegment.Line,.1495625*et,.76825*tt)).add(new go.PathSegment(go.PathSegment.Line,.238*et,.8566875*tt)).add(new go.PathSegment(go.PathSegment.Line,.3316875*et,.76296875*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*et,.80621875*tt,.36353125*et,.78340625*tt,.3991875*et,.79840625*tt)).add(new go.PathSegment(go.PathSegment.Line,.43753125*et,.9375*tt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.9375*tt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.80621875*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*et,.760625*tt,.602375*et,.79809375*tt,.63946875*et,.78234375*tt)).add(new go.PathSegment(go.PathSegment.Line,.76828125*et,.8566875*tt)).add(new go.PathSegment(go.PathSegment.Line,.85671875*et,.76825*tt)).add(new go.PathSegment(go.PathSegment.Line,.76065625*et,.67221875*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*et,.56246875*tt,.78234375*et,.63940625*tt,.798125*et,.602375*tt)).add(new go.PathSegment(go.PathSegment.Line,.9375*et,.56246875*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*et,.6*tt)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*et,.5*tt,.1*et,.1*tt).close()))}),go.Shape.defineFigureGenerator("Hand",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.5*tt,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,.3*tt,0,.375*tt,.05*et,.325*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.45*et,.075*tt,.3*et,.225*tt,.4*et,.175*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.525*et,.075*tt,.46*et,.05*tt,.525*et,.05*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.4*tt,.525*et,.275*tt,.475*et,.325*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.55*tt,et,.4*tt,et,.55*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.55*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.55*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.6*et,.7*tt,.675*et,.55*tt,.675*et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,.85*tt,.65*et,.7*tt,.65*et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.535*et,tt,.61*et,.85*tt,.61*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,.435*et,tt,0,tt).close()),lt}),go.Shape.defineFigureGenerator("Map",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.2*tt,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.25*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),rt.add(new go.PathSegment(go.PathSegment.Move,.25*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.8*tt)),lt}),go.Shape.defineFigureGenerator("Eject",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt*.7)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*.7).close());var ut=new go.PathFigure(0,tt*.6,!0);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close()),lt}),go.Shape.defineFigureGenerator("Pencil",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*tt).close()))}),go.Shape.defineFigureGenerator("Building",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*1,tt*1,!1);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*.85)),rt.add(new go.PathSegment(go.PathSegment.Line,.046*et,tt*.85)),rt.add(new go.PathSegment(go.PathSegment.Line,.046*et,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*.3)),rt.add(new go.PathSegment(go.PathSegment.Line,.046*et,tt*.3)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,tt*.3)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt*.3)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,tt*.85)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt*.85).close());var ut=new go.PathFigure(.126*et,.85*tt,!1);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.126*et,.45*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.322*et,.45*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.322*et,.85*tt).close());var dt=new go.PathFigure(.402*et,.85*tt,!1);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.402*et,.45*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.598*et,.45*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.598*et,.85*tt).close());var pt=new go.PathFigure(.678*et,.85*tt,!1);lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.678*et,.45*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.874*et,.45*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.874*et,.85*tt).close());var Ft=new go.PathFigure(.5*et,.1*tt,!1);return lt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*et,.3*tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*et,.3*tt).close()),lt}),go.Shape.defineFigureGenerator("Staircase",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,tt*1,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.2,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.2,tt*.8)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.8)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.6)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.6)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.4)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*.4)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*.2)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.2)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.15)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.15)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.35)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.35)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.55)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*.55)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.15,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.15,tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*.95).close()),lt}),go.Shape.defineFigureGenerator("5Bars",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,tt*1,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.184,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.184,tt*(1-.184)).close());var ut=new go.PathFigure(et*.204,tt,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.204,tt*(1-.184))),ut.add(new go.PathSegment(go.PathSegment.Line,et*.388,tt*(1-.184*2))),ut.add(new go.PathSegment(go.PathSegment.Line,et*.388,tt*1).close());var dt=new go.PathFigure(et*.408,tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et*.408,tt*(1-.184*2))),dt.add(new go.PathSegment(go.PathSegment.Line,et*.592,tt*(1-.184*3))),dt.add(new go.PathSegment(go.PathSegment.Line,et*.592,tt*1).close());var pt=new go.PathFigure(et*.612,tt,!0);lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*.612,tt*(1-.184*3))),pt.add(new go.PathSegment(go.PathSegment.Line,et*.796,tt*(1-.184*4))),pt.add(new go.PathSegment(go.PathSegment.Line,et*.796,tt*1).close());var Ft=new go.PathFigure(et*.816,tt,!0);return lt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Line,et*.816,tt*(1-.184*4))),Ft.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-.184*5))),Ft.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1).close()),lt}),go.Shape.defineFigureGenerator("PC",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,0).close());var ut=new go.PathFigure(et*.055,.07*tt,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.07)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.1)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.055,tt*.1).close());var dt=new go.PathFigure(et*.055,.13*tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.13)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.16)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.055,tt*.16).close());var pt=new go.PathFigure(et*.055,.18*tt,!0);lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.18)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.21)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.055,tt*.21).close());var Ft=new go.PathFigure(et*1,0,!0);return lt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Line,et*.4,0)),Ft.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.65)),Ft.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.65).close()),lt}),go.Shape.defineFigureGenerator("Plane",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.55*et,tt,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.475*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.35*et,.525*tt,0,.4*tt,.225*et,.45*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.475*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.35*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.325*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.325*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.2*tt,.975*et,0,et,.08*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.45*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.95*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.55*et,tt).close()),lt}),go.Shape.defineFigureGenerator("Key",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*1,tt*.5,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.9,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.35*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.45,.35*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.15,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.35*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.65*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.15,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.45,.65*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.65*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.6,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.65,.55*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.7,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,.55*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.85,.575*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.9,.6*tt).close()),rt.add(new go.PathSegment(go.PathSegment.Move,.17*et,.425*tt)),rt.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*et,.5*tt,.075*et,.075*tt).close()),lt}),go.Shape.defineFigureGenerator("FilmTape",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!1);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,270,180,et*0,et*.3,et*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.08,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.08,tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*1),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*1),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*2),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*2),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*3),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*3),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*4),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*4),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*5),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*5),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*6),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*6),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*7),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*7),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*8),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*8),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*9),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*9),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*10),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*10),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*11),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*11),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*12),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*12),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*13),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*13),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*14),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*14),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*15),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*15),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1));var ut=new go.PathFigure(0,0,!1);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*0)),ut.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*1,et*.3,et*.055)),ut.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1));var dt=new go.PathFigure(et*.11,tt*.1,!1);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),tt*.1)),dt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),tt*.8)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.11,tt*.8).close());var pt=new go.PathFigure(et*(.11+.24133333*1+.028*1),tt*.1,!1);lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),tt*.1)),pt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),tt*.8)),pt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*1),tt*.8).close());var Ft=new go.PathFigure(et*(.11+.24133333*2+.028*2),tt*.1,!1);return lt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),tt*.1)),Ft.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),tt*.8)),Ft.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*2),tt*.8).close()),lt}),go.Shape.defineFigureGenerator("FloppyDisk",function(wt,et,tt){var lt=new go.Geometry,rt=8,ut=rt*Lt,dt=new go.PathFigure(rt,0,!1);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et*.86,0)),dt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.14)),dt.add(new go.PathSegment(go.PathSegment.Line,et,tt-rt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et-rt,tt,et,tt-ut,et-ut,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,rt,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-rt,ut,tt,0,tt-ut)),dt.add(new go.PathSegment(go.PathSegment.Line,0,rt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,rt,0,0,ut,ut,0).close());var pt=new go.PathFigure(et*.83,0,!1);lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*.83,tt*.3)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*.3)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*0).close());var Ft=new go.PathFigure(et*.83,tt*1,!1);lt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Line,et*.83,tt*.5)),Ft.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*.5)),Ft.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*1).close());var Tt=new go.PathFigure(et*.78,tt*.05,!1);return lt.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.05)),Tt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.25)),Tt.add(new go.PathSegment(go.PathSegment.Line,et*.78,tt*.25).close()),lt}),go.Shape.defineFigureGenerator("SpeechBubble",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=15),lt=Math.min(lt,et/3),lt=Math.min(lt,tt/3);var rt=lt*Lt,ut=tt*.8,dt=new go.Geometry,pt=new go.PathFigure(lt,0,!0);return dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et-lt,0)),pt.add(new go.PathSegment(go.PathSegment.Bezier,et,lt,et-rt,0,et,rt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,ut-lt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,ut,et,ut-rt,et-rt,ut)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.7,ut)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.55,ut)),pt.add(new go.PathSegment(go.PathSegment.Line,lt,ut)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,ut-lt,rt,ut,0,ut-rt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,lt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,lt,0,0,rt,rt,0).close()),rt>1?(dt.spot1=new go.Spot(0,0,rt,rt),dt.spot2=new go.Spot(1,.8,-rt,-rt)):(dt.spot1=go.Spot.TopLeft,dt.spot2=new go.Spot(1,.8)),dt}),go.Shape.defineFigureGenerator("Repeat",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*0,tt*.45,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*.9)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.9)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.65,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.2,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.2,tt*.45).close());var ut=new go.PathFigure(et*1,tt*.55,!0);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*1)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.55)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*.55)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*.1)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.1)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*0)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*.55).close()),lt}),go.Shape.defineFigureGenerator("Windows",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close()).add(new go.PathSegment(go.PathSegment.Move,.4*et,.4*tt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,.8*tt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*tt)).add(new go.PathSegment(go.PathSegment.Line,.2*et,.6*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.6*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.1*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.1*et,.6*tt)).add(new go.PathSegment(go.PathSegment.Line,.1*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt).close()))}),go.Shape.defineFigureGenerator("Terminal",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*0,tt*.1,!1);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.9)),rt.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*.9).close());var ut=new go.PathFigure(et*.1,tt*.2,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.1,tt*.25)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.22,tt*.285)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.1,tt*.32)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.1,tt*.37)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.275,tt*.32)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.275,tt*.25).close());var dt=new go.PathFigure(et*.28,tt*.37,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.37)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.41)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.28,tt*.41).close()),lt}),go.Shape.defineFigureGenerator("Beaker",function(wt,et,tt){var lt=new go.Geometry,rt=15,ut=rt*Lt,dt=new go.PathFigure(et*.62,tt*.475,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,tt-rt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et-rt,tt,et,tt-ut,et-ut,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,rt,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-rt,ut,tt,0,tt-ut)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.38,tt*.475)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.38,tt*.03)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.36,tt*0)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*0)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.62,tt*.03).close()),ut>1?(lt.spot1=new go.Spot(0,0,ut,ut),lt.spot2=new go.Spot(1,1,-ut,-ut)):(lt.spot1=go.Spot.TopLeft,lt.spot2=go.Spot.BottomRight),lt}),go.Shape.defineFigureGenerator("Download",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*0,tt*1,!0);lt.add(rt);var ut=.1/.3;rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.755,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.93,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.61,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.39,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.36,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.07,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*(1-ut)).close());var dt=new go.PathFigure(et*.4,tt*0,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.44)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.26,tt*.44)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.66)),dt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.26),tt*.44)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.44)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*0).close()),lt}),go.Shape.defineFigureGenerator("Bin",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*0,tt*1,!0);lt.add(rt);var ut=.1/.3;return rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.755,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.93,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.61,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.39,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.36,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.07,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*(1-ut)).close()),lt}),go.Shape.defineFigureGenerator("Upload",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*0,tt*1,!0);lt.add(rt);var ut=.1/.3;rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.755,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.93,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.61,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.39,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.36,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.07,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*(1-ut)).close());var dt=new go.PathFigure(et*.5,tt*0,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et*.26,tt*.25)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.25)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.63)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.63)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.25)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.74,tt*.25).close()),lt}),go.Shape.defineFigureGenerator("EmptyDrink",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*.15,tt*0,!1);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.85,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*1).close()),lt}),go.Shape.defineFigureGenerator("Drink",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*.15,tt*0,!1);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.85,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*1).close());var ut=new go.PathFigure(et*.235,tt*.28,!0);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.765,tt*.28)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.655,tt*.97)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.345,tt*.97).close()),lt}),go.Shape.defineFigureGenerator("4Arrows",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*.5,tt*0,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.65,tt*.25)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.25)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.35)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.5)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.65)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.55)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.55)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.65,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.55)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*.55)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*.65)),rt.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*.5)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*.35)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.25)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*.25).close()),lt}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},80727:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var ui={},Cn="5.0",Bt={},bt=null,ge=!1,se=!1,Me=null,ie=!1,ae=null,Lt=null,kt=0;kt<arguments.length;kt++){var Jt=arguments[kt];if(Jt!==null)switch(typeof Jt){case"number":Cn=Jt.toFixed(1);break;case"string":Jt.match(new RegExp("^[0-9]\\.[0-9]+$"))?Cn=Jt:Me=Jt;break;case"object":typeof Jt.is3D!="undefined"?bt=Jt:Bt=Jt;break;case"boolean":ge=Jt,se=!0;break}}bt===null&&(bt={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},Bt.material_id!==void 0&&!se&&(ge=!0)),Me!==null&&Bt.id===void 0&&(Bt.id=Me);var St="",Wt="",Gt=!1,qt=null,wt=null,et=null,tt=!1,lt=null,rt=null,ut=null,dt=null,pt=null;Bt.height!==void 0&&(Bt.height=Math.round(Bt.height)),Bt.width!==void 0&&(Bt.width=Math.round(Bt.width));var Ft=function(Xe){return parseFloat(Xe)>4?parseFloat(Xe):5};ui.setHTML5Codebase=function(Xe,kn){Lt=Xe,Pe(Xe,kn)},ui.setJavaCodebase=ui.setJavaCodebaseVersion=ui.isCompiledInstalled=ui.setPreCompiledScriptPath=ui.setPreCompiledResourcePath=function(){},ui.setHTML5CodebaseVersion=function(Xe,kn){var Vn=parseFloat(Xe);if(Vn!==NaN&&Vn<5){console.log("The GeoGebra HTML5 codebase version "+Vn+" is deprecated. Using version latest instead.");return}ae=Xe,oe(Xe,kn)},ui.getHTML5CodebaseVersion=function(){return wt},ui.getParameters=function(){return Bt},ui.setFontsCSSURL=function(Xe){dt=Xe},ui.setGiacJSURL=function(Xe){},ui.setJNLPFile=function(Xe){St=Xe},ui.setJNLPBaseDir=function(Xe){},ui.inject=function(){function Xe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var kn="auto",Vn=Bt.id,Ai,Wn=!1,Si=0;Si<arguments.length;Si++){var an=arguments[Si];typeof an=="string"?(an=an.toLowerCase(),an.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?kn=an:Vn=arguments[Si]):typeof an=="boolean"?Wn=an:an instanceof HTMLElement&&(Ai=an)}Li();function Li(){if(!ie){setTimeout(Li,200);return}kn=Qe(kn);var Oi=Ai||document.getElementById(Vn);if(!Oi){console.log("possibly bug on ajax loading? ");return}if(ui.removeExistingApplet(Oi,!1),Bt.width===void 0&&Oi.clientWidth&&(Bt.width=Oi.clientWidth),Bt.height===void 0&&Oi.clientHeight&&(Bt.height=Oi.clientHeight),!(Bt.width&&Bt.height)&&kn==="html5"&&(delete Bt.width,delete Bt.height),qt=kn,kn==="screenshot")Yt(Oi,Bt);else{var ue=!1;Bt.hasOwnProperty("playButton")&&Bt.playButton||Bt.hasOwnProperty("clickToLoad")&&Bt.clickToLoad?ue=!0:Bt.hasOwnProperty("playButtonAutoDecide")&&Bt.playButtonAutoDecide&&(ue=(!Tt()||Xe())&&_t()),ue?(qt="screenshot",Ge(Oi,Bt,Wn,kn)):We(Oi,Bt,Wn)}}};function Tt(){try{return window.self!==window.top}catch(Xe){return!0}}function _t(){return Bt.hasOwnProperty("screenshotGenerator")&&Bt.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}ui.getViews=function(){return bt},ui.isJavaInstalled=function(){return!1};var re=function(Xe){var kn=function(Si){var an=JSON.parse(Si),Li=function(Pn){return Pn.type=="G"||Pn.type=="E"},Oi=an.elements?an.elements.filter(Li)[0]:an;if(!Oi||!Oi.url){Vn();return}Bt.fileName=Oi.url,he(Oi.settings||{}),bt.is3D=!0;var ue="https://www.geogebra.org/images/";ui.setPreviewImage(lt||Oi.previewUrl,ue+"GeoGebra_loading.png",ue+"applet_play.png"),Xe()},Vn=function(){Bt.onError&&Bt.onError(),En("Error: Fetching material (id "+Bt.material_id+") failed.",Bt)},Ai=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Wn="/materials/"+Bt.material_id+"?scope=basic";Ae("https://"+Ai+"/api/proxy.php?path="+encodeURIComponent(Wn),kn,Vn)};function he(Xe){var kn=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Vn){Xe[Vn]=!!Xe[Vn]}),kn.forEach(function(Vn){Bt[Vn]===void 0&&Xe[Vn]!==void 0&&(Bt[Vn]=Xe[Vn])}),Bt.showToolBarHelp===void 0&&(Bt.showToolBarHelp=Bt.showToolBar)}function Ae(Xe,kn,Vn){var Ai=new XMLHttpRequest;Ai.open("GET",Xe),Ai.onload=function(){kn(Ai.responseText)},Ai.onerror=Vn,Ai.send()}ui.isHTML5Installed=function(){return!0},ui.getLoadedAppletType=function(){return qt},ui.setPreviewImage=function(Xe,kn,Vn){lt=Xe,rt=kn,ut=Vn},ui.removeExistingApplet=function(Xe,kn){var Vn;typeof Xe=="string"&&(Xe=document.getElementById(Xe)),qt=null;var Ai=null;for(Vn=0;Vn<Xe.childNodes.length;Vn++){var Wn=Xe.childNodes[Vn],Si=Wn.className;Si==="applet_screenshot"?kn?(Wn.style.display="block",qt="screenshot"):Wn.style.display="none":Si!=="applet_scaler prerender"&&(Xe.removeChild(Wn),Ai=Si&&Si.indexOf("appletParameters")!=-1?Wn.id:null,Vn--)}var an=Bt.id!==void 0?Bt.id:Ai,Li=window[an];Li&&typeof Li.getBase64=="function"&&(Li.remove(),window[an]=null)},ui.refreshHitPoints=function(){if(Ft(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Xe=ui.getAppletObject();return Xe&&typeof Xe.recalculateEnvironments=="function"?(Xe.recalculateEnvironments(),!0):!1},ui.startAnimation=function(){var Xe=ui.getAppletObject();return Xe&&typeof Xe.startAnimation=="function"?(Xe.startAnimation(),!0):!1},ui.stopAnimation=function(){var Xe=ui.getAppletObject();return Xe&&typeof Xe.stopAnimation=="function"?(Xe.stopAnimation(),!0):!1},ui.getAppletObject=function(){var Xe=Bt.id!==void 0?Bt.id:"ggbApplet";return window[Xe]},ui.resize=function(){};var Fe=function(Xe,kn,Vn){var Ai=document.createElement("param");Ai.setAttribute("name",kn),Ai.setAttribute("value",Vn),Xe.appendChild(Ai)},ee=function(Xe){return Xe&&Xe!=="false"},We=function(Xe,kn,Vn){Ft(wt)<=4.2&&(Vn=!0);var Ai=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==wt||ggbHTML5LoadedCodebaseIsWebSimple&&!tt)&&(Ai=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Wn=document.createElement("div");Wn.classList.add("appletParameters","notranslate");var Si=kn.width,an=kn.height;if(kn.disableAutoScale=kn.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():kn.disableAutoScale,kn.width!==void 0)if(Ft(wt)<=4.4)ee(kn.showToolBar)&&(kn.height-=7),ee(kn.showAlgebraInput)&&(kn.height-=37),kn.width<605&&ee(kn.showToolBar)&&(kn.width=605,Si=605);else{var Li=100;(ee(kn.showToolBar)||ee(kn.showMenuBar))&&(kn.hasOwnProperty("customToolBar")&&(kn.customToolbar=kn.customToolBar),Li=ee(kn.showMenuBar)?245:155),Si<Li&&(kn.width=Li,Si=Li)}Wn.style.border="none",Wn.style.display="inline-block";for(var Oi in kn)kn.hasOwnProperty(Oi)&&Oi!=="appletOnLoad"&&Wn.setAttribute("data-param-"+Oi,kn[Oi]);dt&&Wn.setAttribute("data-param-fontscssurl",dt),ui.resize=function(){GGBAppletUtils.responsiveResize(Xe,kn)},window.addEventListener("resize",function(yt){ui.resize()});var ue=typeof kn.appletOnLoad=="function"?kn.appletOnLoad:function(){};if(!Vn&&kn.width!==void 0){kn.hasOwnProperty("showSplash")||Wn.setAttribute("data-param-showSplash","false");var Pn=Xe.querySelector(".applet_scaler.prerender"),de=Pn!==null;if(de)var Dt=Pn.querySelector(".ggb_preview");else{var Dt=Ze(Si,an,kn.borderColor,!1);Pn=document.createElement("div"),Pn.className="applet_scaler",Pn.style.position="relative",Pn.style.display="block",Pn.style.width=Si+"px",Pn.style.height=an+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Pn,"66%"),Ft(wt)>=5?(kn.appletOnLoad=function(yt){var $t=Xe.querySelector(".ggb_preview");$t&&$t.parentNode.removeChild($t),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Pn),window.GGBT_wsf_view&&$(window).trigger("resize"),ue(yt)},de||Pn.appendChild(Dt)):Wn.appendChild(Dt),Pn.appendChild(Wn),de||Xe.appendChild(Pn),setTimeout(function(){ui.resize()},1)}else{var Mt=document.createElement("div");Mt.className="applet_scaler",Mt.style.position="relative",Mt.style.display="block",Mt.appendChild(Wn),Xe.appendChild(Mt),kn.appletOnLoad=function(yt){ui.resize(),ue(yt)}}function zt(yt,$t){$t&&typeof $t.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(yt,$t.appletOnLoad):renderGGBElement(yt),En("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",$t)}function be(yt,$t){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:yt,params:$t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(xe){zt(xe.article,xe.params)}),html5AppletsToProcess=null)},Ft(wt)<5&&(yt.className+=" geogebraweb")):zt(yt,$t)}if(Ai){scriptLoadStarted=!0;for(var De=0;De<Wn.childNodes.length;De++){var fe=Wn.childNodes[De].tagName;fe==="TABLE"&&(Wn.removeChild(Wn.childNodes[De]),De--)}if(ggbHTML5LoadedScript!==null){var Ce=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ce!=null&&Ce.parentNode.removeChild(Ce)}var te=document.createElement("script"),Ct=function(){be(Wn,kn)};te.src=Wt+et,ggbHTML5LoadedCodebaseIsWebSimple=tt,ggbHTML5LoadedCodebaseVersion=wt,ggbHTML5LoadedScript=te.src,En("GeoGebra HTML5 codebase loaded: '"+Wt+"'.",kn),!Lt&&(!ae||ae=="5.0")?(tt?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Ct()):Wt.requirejs?__webpack_require__.e(4184).then(function(){var yt=[__webpack_require__(74620)];Ct.apply(null,yt)}.bind(this)).catch(__webpack_require__.oe):(te.onload=Ct,Xe.appendChild(te))}else be(Wn,kn);kn.height=an,kn.width=Si},Yt=function(Xe,kn,Vn){var Ai=Ze(kn.width,kn.height,kn.borderColor,Vn),Wn=document.createElement("div");Wn.style.position="relative",Wn.style.display="block",Wn.style.width=kn.width+"px",Wn.style.height=kn.height+"px",Wn.className="applet_screenshot applet_scaler"+(Vn?" applet_screenshot_play":""),Wn.appendChild(Ai);var Si=GGBAppletUtils.getScale(kn,Xe,Vn);Vn?(Xe.appendChild(Oe()),window.GGBT_wsf_view||(Xe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Wn,"66%"),Xe.appendChild(Wn),Si!==1&&!isNaN(Si)&&(GGBAppletUtils.scaleElement(Wn,Si),Wn.style.width=kn.width+"px",Wn.style.height=kn.height+"px",Wn.parentNode.style.width=kn.width*Si+"px",Wn.parentNode.style.height=kn.height*Si+"px"),ui.resize=function(){qe(Xe,Ai,Wn,Vn)},window.addEventListener("resize",function(an){ui.resize()}),ui.resize()};function qe(Xe,kn,Vn,Ai){if(Xe.contains(kn)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Xe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Xe)}var Wn=GGBAppletUtils.getScale(Bt,Xe,Ai);Vn.parentNode!==null&&(!isNaN(Wn)&&Wn!==1?(GGBAppletUtils.scaleElement(Vn,Wn),Vn.parentNode.style.width=Bt.width*Wn+"px",Vn.parentNode.style.height=Bt.height*Wn+"px"):(GGBAppletUtils.scaleElement(Vn,1),Vn.parentNode.style.width=Bt.width+"px",Vn.parentNode.style.height=Bt.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Xe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}ui.onExitFullscreen=function(Xe,kn){kn.appendChild(Xe)};var Ge=function(Xe,kn,Vn,Ai){Yt(Xe,kn,!0);for(var Wn=function(){var Li=[];for(an=0;an<Xe.childNodes.length;an++)Li.push(Xe.childNodes[an]);if(window.GGBT_wsf_view){var Oi=window.GGBT_wsf_view.renderFullScreen(Xe,kn.id),ue=document.getElementById("fullscreencontainer"),Pn=jQuery(Xe).find(".fullscreencontent");Pn.length>0?(Oi.remove(),Pn.attr("id","fullscreencontent").show(),jQuery(ue).append(Pn),window.dispatchEvent(new Event("resize"))):We(Oi,kn,!1),window.GGBT_wsf_view.launchFullScreen(ue)}else qt=Ai,We(Xe,kn,!1);if(!window.GGBT_wsf_view)for(an=0;an<Li.length;an++)Xe.removeChild(Li[an])},Si=Xe.getElementsByClassName("ggb_preview_play"),an=0;an<Si.length;an++)Si[an].addEventListener("click",Wn,!1),Si[an].addEventListener("ontouchstart",Wn,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Xe),_t()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Oe=function(){var Xe=document.createElement("div");if(Xe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var kn='.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");}',Vn=document.createElement("style");Vn.styleSheet?Vn.styleSheet.cssText=kn:Vn.appendChild(document.createTextNode(kn)),document.getElementsByTagName("head")[0].appendChild(Vn)}return Xe},Ze=function(Xe,kn,Vn,Ai){var Wn=document.createElement("div");Wn.className="ggb_preview",Wn.style.position="absolute",Wn.style.zIndex="90",Wn.style.width=Xe-2+"px",Wn.style.height=kn-2+"px",Wn.style.top="0px",Wn.style.left="0px",Wn.style.overflow="hidden",Wn.style.backgroundColor="white";var Si="lightgrey";Vn!==void 0&&(Vn==="none"?Si="transparent":Si=Vn),Wn.style.border="1px solid "+Si;var an=document.createElement("img");if(an.style.position="relative",an.style.zIndex="1000",an.style.top="-1px",an.style.left="-1px",lt!==null&&an.setAttribute("src",lt),an.style.opacity=.7,rt!==null){var Li,Oi,ue;if(!Ai){Li=document.createElement("img"),Li.style.position="absolute",Li.style.zIndex="1001",Li.style.opacity=1,an.style.opacity=.3,Oi=360,Oi>Xe/4*3&&(Oi=Xe/4*3),ue=Oi/5.8,Li.setAttribute("src",rt),Li.setAttribute("width",Oi),Li.setAttribute("height",ue);var Pn=(Xe-Oi)/2,de=(kn-ue)/2;Li.style.left=Pn+"px",Li.style.top=de+"px",Wn.appendChild(Li)}}return Wn.appendChild(an),Wn},Qe=function(Xe){return Xe=Xe.toLowerCase(),Xe==="html5"||Xe==="screenshot"?Xe:"html5"},we=["web","webSimple","web3d","tablet","tablet3d","phone"],oe=function(Xe,kn){if(wt=Xe,kn){Pe(wt,!0);return}var Vn=!ge;if(Vn){var Ai=Ft(wt);!isNaN(Ai)&&Ai<4.4&&(Vn=!1)}var Wn,Si;window.location.protocol.substr(0,4)==="http"?Wn=window.location.protocol:Wn="http:";var an=wt.indexOf("//");an>0?Si=wt:an===0?Si=Wn+wt:Si="https://www.geogebra.org/apps/5.2.814.0/";for(var Li in we)if(wt.slice(we[Li].length*-1)===we[Li]||wt.slice((we[Li].length+1)*-1)===we[Li]+"/"){Pe(Si,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Vn&&!bt.is3D&&!bt.AV&&!bt.SV&&!bt.CV&&!bt.EV2&&!bt.CP&&!bt.PC&&!bt.DA&&!bt.FI&&!bt.PV&&!ee(Bt.showToolBar)&&!ee(Bt.showMenuBar)&&!ee(Bt.showAlgebraInput)&&!ee(Bt.enableRightClick)&&(!Bt.appName||Bt.appName=="classic")?Si+="webSimple/":Si+="web3d/",Pe(Si,!1)},Pe=function(Xe,kn){if(Xe.requirejs){Wt=Xe;return}Xe.slice(-1)!=="/"&&(Xe+="/"),Wt=Xe,kn===null&&(kn=Xe.indexOf("http")===-1),Gt=kn,et="web.nocache.js",tt=!1;var Vn=Wt.split("/");Vn.length>1&&(!kn&&Vn[Vn.length-2]==="webSimple"?(et="webSimple.nocache.js",tt=!0):we.indexOf(Vn[Vn.length-2])>=0&&(et=Vn[Vn.length-2]+".nocache.js")),Vn=Xe.split("/"),wt=Vn[Vn.length-3],wt.substr(0,4)==="test"?wt=wt.substr(4,1)+"."+wt.substr(5,1):(wt.substr(0,3)==="war"||wt.substr(0,4)==="beta")&&(wt="5.0");var Ai=parseFloat(wt);Ai!==NaN&&Ai<5&&Xe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Ai+" is deprecated. Using version latest instead."),oe("5.0",kn))},En=function(Xe,kn){window.console&&window.console.log&&(!kn||typeof kn.showLogging=="undefined"||kn.showLogging&&kn.showLogging!=="false")&&console.log(Xe)};Bt.material_id!==void 0?re(Nn):Nn();function Nn(){var Xe=Cn;ae!==null?Xe=ae:parseFloat(Xe)<5&&(Xe="5.0"),oe(Xe,!1),Lt!==null&&Pe(Lt,Gt),ie=!0}return ui},GGBAppletUtils=function(){"use strict";function ui(){return window.GGBT_wsf_edit!==void 0}function Cn(ie,ae){ae!=1?(ie.style.transformOrigin="0% 0% 0px",ie.style.webkitTransformOrigin="0% 0% 0px",ie.style.transform="scale("+ae+","+ae+")",ie.style.webkitTransform="scale("+ae+","+ae+")",ie.style.maxWidth="initial",ie.querySelector(".ggb_preview")!==null&&(ie.querySelector(".ggb_preview").style.maxWidth="initial"),ie.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ie.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ie.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ie.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ie.style.transform="none",ie.style.webkitTransform="none")}function Bt(ie,ae,Lt,kt,Jt,St){var Wt=null;if(St!=null&&St!="")for(var Gt=ie.parentNode;Gt!=null;)if((" "+Gt.className+" ").indexOf(" "+St+" ")>-1){Wt=Gt;break}else Gt=Gt.parentNode;var qt=0,wt=0,et=0,tt=0,lt=0,rt=0,ut=0;if(Wt)qt=Wt.offsetWidth,wt=Math.max(kt?Wt.offsetWidth:0,Wt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(qt=Math.min(window.innerWidth,document.documentElement.clientWidth),wt=Math.min(window.innerHeight,document.documentElement.clientHeight),et=qt):(qt=window.innerWidth,wt=window.innerHeight,et=window.innerWidth),ie){var dt=ie.getBoundingClientRect();dt.left>0&&dt.left<=qt&&(Jt===void 0||!Jt)&&(document.dir==="rtl"?(lt=qt-dt.width-dt.left,rt=et<=480?10:30):(rt=dt.left,lt=et<=480?10:30),tt=rt+lt)}if(ie&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var pt=ie.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(tt=40,ut=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(tt=0,ut=40)}}return ie&&((Lt===void 0||!Lt)&&ae>0&&ae+tt<qt?qt=ae:qt-=tt,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Lt===void 0||!Lt)&&(wt-=ut)),{width:qt,height:wt}}function bt(ie,ae,Lt,kt,Jt){if(ie.isScreenshoGenerator)return 1;var St=kt!==void 0&&kt,Wt=ie.noScaleMargin!=null&&ie.noScaleMargin,Gt=function(pt){return pt&&pt!=="false"},qt=Gt(ie.autoHeight),wt=Bt(ae,ie.width,Lt,qt,St&&window.GGBT_wsf_view||Wt,Jt),et=parseInt(wt.width),tt=ie.width,lt=ie.height;if(tt===void 0){var rt=ae.querySelector(".appletParameters");rt&&(tt=rt.offsetWidth,lt=rt.offsetHeight)}var ut=et/tt,dt=St?1:wt.height/lt;return Lt!==void 0&&!Lt&&(ut=Math.min(1,ut),dt=Math.min(1,dt)),Math.min(ut,dt)}function ge(ie,ae,Lt){var kt=1,Jt,St=!1;if(ie.hasOwnProperty("allowUpscale")&&(St=ie.allowUpscale),ie.hasOwnProperty("scale")&&(kt=parseFloat(ie.scale),(isNaN(kt)||kt===null||kt===0)&&(kt=1),kt>1&&(St=!0)),ae&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(St=!0),!(ie.hasOwnProperty("disableAutoScale")&&ie.disableAutoScale))Jt=bt(ie,ae,St,Lt,ie.scaleContainerClass);else return kt;return St&&(!ie.hasOwnProperty("scale")||kt===1)?Jt:Math.min(kt,Jt)}function se(ie){var ae=Math.min(window.innerWidth,document.documentElement.clientWidth),Lt=Math.min(window.innerHeight,document.documentElement.clientHeight),kt=ie.getBoundingClientRect(),Jt=(ae-kt.width)/2,St=(Lt-kt.height)/2;St<0&&(St=0),ie.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Jt<40?ie.style.left="40px":ie.style.left=Jt+"px",ie.style.top=St+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(St<40?ie.style.top="40px":ie.style.top=St+"px",ie.style.left=Jt+"px")}function Me(ie,ae){var Lt=ie.querySelector(".appletParameters");if(Lt){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ae.id!==Lt.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ie)}if(Lt.parentElement&&/fullscreen/.test(Lt.parentElement.className))return;var kt=ge(ae,ie);ui()&&Lt.setAttribute("data-param-scale",kt);for(var Jt=null,St=0;St<ie.childNodes.length;St++)if(ie.childNodes[St].className!==void 0&&ie.childNodes[St].className.match(/^applet_scaler/)){Jt=ie.childNodes[St];break}if(Jt!==null&&Jt.querySelector(".noscale")!==null)return;var Wt=ae.id!==void 0?ae.id:"ggbApplet",Gt=window[Wt];(Gt==null||!Gt.recalculateEnvironments)&&Jt!==null&&!Jt.className.match(/fullscreen/)&&(Jt.parentNode.style.transform="",!isNaN(kt)&&kt!==1?(Jt.parentNode.style.width=ae.width*kt+"px",Jt.parentNode.style.height=ae.height*kt+"px",Cn(Jt,kt)):(Cn(Jt,1),Jt.parentNode.style.width=ae.width+"px",Jt.parentNode.style.height=ae.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&se(ie),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Lt).parents(".content-added-content"))}}return{responsiveResize:Me,isFlexibleWorksheetEditor:ui,positionCenter:se,getScale:ge,scaleElement:Cn}}();__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 ui=n.location.search;return ui.indexOf(J)!=-1||ui.indexOf(K)!=-1}function q(ui,Cn){}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(ui){var Cn=s[L].bindings;s[L].bindings=function(){for(var Bt=Cn?Cn():{},bt=ui[webModule.__softPermutationId],ge=O;ge<bt.length;ge++){var se=bt[ge];Bt[se[O]]=se[P]}return Bt}};var t;function u(){return v(),t}function v(){if(!t){var ui=o.createElement(Q);if(ui.id=L,ui.style.cssText=R+S,ui.tabIndex=-1,o.body.appendChild(ui),t=ui.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Cn=document.compatMode==U?V:W;t.write(Cn+X),t.close()}}}function w(ui){function Cn(bt){function ge(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var se=ge();if(se){bt();return}function Me(){if(!se){if(!ge())return;se=!0,bt(),o.removeEventListener&&o.removeEventListener(Z,Me,!1),ie&&clearInterval(ie)}}o.addEventListener&&o.addEventListener(Z,Me,!1);var ie=setInterval(function(){Me()},$)}function Bt(bt){var ge=u(),se=ge.body,Me=ge.createElement(_);Me.language=ab,Me.crossOrigin=W,Me.src=bt,webModule.__errFn&&(Me.onerror=function(){webModule.__errFn(L,new Error(bb+bt))}),se.appendChild(Me)}Cn(function(){Bt(ui)})}webModule.__startLoadingFragment=function(ui){return C(ui)},webModule.__installRunAsyncCode=function(ui){var Cn=u(),Bt=Cn.body,bt=Cn.createElement(_);bt.language=ab,bt.text=ui,Bt.appendChild(bt),Bt.removeChild(bt)};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(ui){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(ui){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(ui){var Cn=c[ui];return Cn==null?null:Cn},r=d,webModule.__errFn=e}function B(){function ui(ie){var ae=ie.lastIndexOf(rb);ae==-1&&(ae=ie.length);var Lt=ie.indexOf(sb);Lt==-1&&(Lt=ie.length);var kt=ie.lastIndexOf(tb,Math.min(Lt,ae));return kt>=O?ie.substring(O,kt+P):W}function Cn(ie){if(!ie.match(/^\w+:\/\//)){var ae=o.createElement(ub);ae.src=ie+vb,ie=ui(ae.src)}return ie}function Bt(){var ie=__gwt_getMetaProperty(wb);return ie!=null?ie:W}function bt(){for(var ie=o.getElementsByTagName(_),ae=O;ae<ie.length;++ae)if(ie[ae].src.indexOf(xb)!=-1)return ui(ie[ae].src);return W}function ge(){var ie=o.getElementsByTagName(yb);return ie.length>O?ie[ie.length-P].href:W}function se(){var ie=o.location;return ie.href==ie.protocol+zb+ie.host+ie.pathname+ie.search+ie.hash}var Me=Bt();return Me==W&&(Me=bt()),Me==W&&(Me=ge()),Me==W&&se()&&(Me=ui(o.location.href)),Me=Cn(Me),Me}function C(ui){return ui.match(/^\//)||ui.match(/^[a-zA-Z]+:\/\//)?ui:webModule.__moduleBase+ui}function D(){var ui=[],Cn=O,Bt=[],bt=[];function ge(ie){var ae=bt[ie](),Lt=Bt[ie];if(ae in Lt)return ae;var kt=[];for(var Jt in Lt)kt[Lt[Jt]]=Jt;throw r&&r(ie,kt,ae),null}if(__gwt_isKnownPropertyValue=function(ie,ae){return ae in Bt[ie]},webModule.__getPropMap=function(){var ie={};for(var ae in Bt)Bt.hasOwnProperty(ae)&&(ie[ae]=ge(ae));return ie},webModule.__computePropValue=ge,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var se;try{se=Cb;var Me=se.indexOf(Db);Me!=-1&&(Cn=parseInt(se.substring(Me+P),$),se=se.substring(O,Me))}catch(ie){}return webModule.__softPermutationId=Cn,C(se+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},77903:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Ax:function(){return Me},Ds:function(){return ie},KI:function(){return Lt},SI:function(){return se},f1:function(){return ge}});var bt=Bt(3294);function ge(kt){let Jt=!0;if(kt.length>0){for(let St=0;St<kt.length;St++)if(kt[St].compile_success==0||!kt[St].compile_success){Jt=!1;break}}else Jt=!1;return Jt}function se(kt,Jt=""){let St=[];for(let Wt=0;Wt<kt.length;Wt++){let Gt=kt[Wt],qt=Jt?`${Jt}/${Gt.name}`:`${Gt.name}`;St.push({title:Gt.name,type:Gt.type,isLeaf:Gt.type!=="tree",key:qt})}return St}function Me(kt,Jt,St){for(let Wt=0;Wt<kt.length;Wt++){let Gt=kt[Wt];if(Gt.key===Jt){Gt.children=St;break}Gt.children&&Me(Gt.children,Jt,St)}return kt}function ie(kt,Jt,St){let Wt;return function(){let Gt=this,qt=arguments,wt=function(){Wt=null,St||kt.apply(Gt,qt)},et=St&&!Wt;clearTimeout(Wt),Wt=setTimeout(wt,Jt),et&&kt.apply(Gt,qt)}}const ae=!0,Lt=bt.Z.API_SERVER},41069:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{ij:function(){return ut},_s:function(){return rt},Uf:function(){return lt},ZP:function(){return pt}});var bt=Bt(59301),ge={flex_box_center:"flex_box_center___swvFl",flex_space_between:"flex_space_between___AqPFV",flex_box_vertical_center:"flex_box_vertical_center___XWInJ",flex_box_center_end:"flex_box_center_end___GB61t",flex_box_column:"flex_box_column___dJnz1",analysis:"analysis___xyV_c",title:"title___DQ3VK",itemWrap:"itemWrap___vFE5r",item:"item___NjeOt",list:"list___BbMrm",wrap:"wrap___UQTTb",img:"img___tNvUo",tips:"tips___Eu4wH",footer:"footer___ZbR9W",noData:"noData___mLlw0"},se=Bt(92310),Me=Bt.n(se),ie=Bt(42441),ae=Bt(6848),Lt=Bt(61621),kt=Bt(71418),Jt=Bt(8797),St=Bt(3294),Wt=Object.defineProperty,Gt=Object.getOwnPropertySymbols,qt=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,et=(Ft,Tt,_t)=>Tt in Ft?Wt(Ft,Tt,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Ft[Tt]=_t,tt=(Ft,Tt)=>{for(var _t in Tt||(Tt={}))qt.call(Tt,_t)&&et(Ft,_t,Tt[_t]);if(Gt)for(var _t of Gt(Tt))wt.call(Tt,_t)&&et(Ft,_t,Tt[_t]);return Ft};const lt=(Ft={})=>{var Tt,_t,re,he;let Ae=(Tt=Ft==null?void 0:Ft.emotion)==null?void 0:Tt.map(Yt=>tt({value:Yt==null?void 0:Yt.rate},Yt)),Fe=(_t=Ft==null?void 0:Ft.focus)==null?void 0:_t.map(Yt=>tt({value:Yt==null?void 0:Yt.rate},Yt)),ee=(re=Ft==null?void 0:Ft.action)==null?void 0:re.map(Yt=>tt({value:Yt==null?void 0:Yt.rate},Yt)),We=(he=Ft==null?void 0:Ft.intention)==null?void 0:he.map(Yt=>tt({value:Yt==null?void 0:Yt.rate},Yt));return[{title:"\u8868\u60C5\u5360\u6BD4",color:["#f7ca2e","#4ccf71","#3791ee","#f9ac95","#4f74ee","#f0e999"],data:Ae||[]},{title:"\u4E13\u6CE8\u5EA6\u5360\u6BD4",color:["#4f74ee","#f9ac95","#9cb5fe","#eaa170","#3791ee","#a39bed"],data:Fe||[]},{title:"\u884C\u4E3A\u5360\u6BD4\u60C5\u51B5",color:["#5eca9c","#a39bed","#f68238","#f0e999","#eaa170","#f9ac95"],data:ee||[]},{title:"\u610F\u56FE\u5360\u6BD4\u60C5\u51B5",color:["#eaa170","#739fcb","#f0e999","#f9ac95","#4f74ee","#5eca9c"],data:We||[]}]},rt=({className:Ft,dataSource:Tt=[],col:_t=4,right:re,bottom:he=23,precision:Ae=0,wrapWidth:Fe=1200})=>{const ee=(Yt="",qe,Ge="--")=>Yt?(Yt==null?void 0:Yt.length)>qe?(Yt==null?void 0:Yt.slice(0,qe-1))+"...":Yt:Ge,We=Math.floor((Fe-(_t-1)*re)/_t);return bt.createElement("div",{className:Me()(ge.list,Ft)},!!(Tt!=null&&Tt.length)&&(Tt==null?void 0:Tt.map((Yt,qe)=>{const{cover_pic:Ge,created_at:Oe,emotion:Ze,action:Qe,intention:we,focus:oe}=Yt;return bt.createElement("div",{key:qe,className:ge.wrap,style:{width:We,marginRight:(1+qe)%_t===0?0:re+Ae,marginBottom:he}},bt.createElement("div",{className:ge.img},bt.createElement("img",{src:`${St.Z.API_SERVER}${Ge}`}),bt.createElement("div",{className:ge.tips},bt.createElement("div",null,bt.createElement("i",{className:"iconfont icon-paisheshijian mr5 font14"})," \u62CD\u6444\u65F6\u95F4"),bt.createElement("span",null,Oe))),bt.createElement("div",{className:ge.footer},bt.createElement("ul",null,bt.createElement("li",null,bt.createElement("i",{className:"iconfont icon-biaoqing"}),bt.createElement("span",null,"\u8868\u60C5\uFF1A",bt.createElement(ae.Z,{title:Ze},bt.createElement("span",{className:"c-grey-333"},ee(Ze,4))))),bt.createElement("li",null,bt.createElement("i",{className:"iconfont icon-hangwei"}),bt.createElement("span",null,"\u884C\u4E3A\uFF1A",bt.createElement(ae.Z,{title:Qe},bt.createElement("span",{className:"c-grey-333"},ee(Qe,4)))))),bt.createElement("ul",null,bt.createElement("li",null,bt.createElement("i",{className:"iconfont icon-yitu"}),bt.createElement("span",null,"\u610F\u56FE\uFF1A",bt.createElement(ae.Z,{title:we},bt.createElement("span",{className:"c-grey-333"},ee(we,4))))),bt.createElement("li",null,bt.createElement("i",{className:"iconfont icon-zhuangtai"}),bt.createElement("span",null,"\u4E13\u6CE8\u5EA6\uFF1A",bt.createElement(ae.Z,{title:oe},bt.createElement("span",{className:"c-grey-333"},ee(oe,3))))))))})))},ut=({className:Ft,style:Tt,title:_t,hideBar:re=!1,children:he,customText:Ae="",noDataText:Fe="",emptyData:ee=[],loading:We,actionAnalysis:Yt})=>{var qe,Ge;const Oe=((qe=ee==null?void 0:ee[0])==null?void 0:qe.every(Qe=>{var we;return!((we=Qe==null?void 0:Qe.data)!=null&&we.length)}))&&!((Ge=ee==null?void 0:ee[1])!=null&&Ge.length)||!Yt,Ze=Yt?Fe:Ae;return bt.createElement(Lt.Z,{loading:We,active:!0},Oe&&bt.createElement("div",{className:Me()(ge.noData,Ft),style:Tt},!!_t&&bt.createElement("div",{className:ge.title},!re&&bt.createElement("b",null),bt.createElement("span",null,_t)),bt.createElement("div",{className:ge.itemWrap},bt.createElement(Jt.Z,{customText:Ze}))),!Oe&&he)};var pt=({className:Ft,style:Tt,data:_t=[],title:re,hideBar:he=!1,loading:Ae=!1})=>bt.createElement("div",{className:Me()(ge.analysis,Ft),style:Tt},!!re&&bt.createElement("div",{className:ge.title},!he&&bt.createElement("b",null),bt.createElement("span",null,re)),bt.createElement(kt.Z,{spinning:Ae},bt.createElement("div",{className:ge.itemWrap},_t==null?void 0:_t.map((Fe,ee)=>bt.createElement("div",{className:ge.item,key:ee},bt.createElement(ie.Z,{option:{tooltip:{trigger:"item",formatter:"{a} <br/>{b}: {c}%"},title:{left:"center",bottom:15,text:Fe==null?void 0:Fe.title},legend:{top:10,right:10,orient:"vertical",show:!0,align:"left",icon:"circle",itemWidth:10,itemHeight:10,formatter:function(We){for(let Yt in Fe==null?void 0:Fe.data)if(We==(Fe==null?void 0:Fe.data[Yt].name))return We+" "+(Fe==null?void 0:Fe.data[Yt].value)+"%"},textStyle:{color:"#767676",fontSize:12}},color:Fe==null?void 0:Fe.color,series:[{type:"pie",radius:["20%","35%"],center:["20%","40%"],avoidLabelOverlap:!1,label:{show:!1},labelLine:{show:!1},data:Fe==null?void 0:Fe.data}]},style:{height:145}}))))))},24544:function(ui,Cn,Bt){"use strict";var bt=Bt(86204),ge=Bt.n(bt),se=Object.defineProperty,Me=(kt,Jt,St)=>Jt in kt?se(kt,Jt,{enumerable:!0,configurable:!0,writable:!0,value:St}):kt[Jt]=St,ie=(kt,Jt,St)=>Me(kt,typeof Jt!="symbol"?Jt+"":Jt,St),ae=(kt,Jt,St)=>new Promise((Wt,Gt)=>{var qt=tt=>{try{et(St.next(tt))}catch(lt){Gt(lt)}},wt=tt=>{try{et(St.throw(tt))}catch(lt){Gt(lt)}},et=tt=>tt.done?Wt(tt.value):Promise.resolve(tt.value).then(qt,wt);et((St=St.apply(kt,Jt)).next())});class Lt extends bt.EventEmitter{constructor(Jt,St){super(),ie(this,"url"),ie(this,"body"),ie(this,"fullContent",""),ie(this,"controller",null),this.url=Jt,this.body=St}startStream(){return ae(this,null,function*(){this.controller=new AbortController;const{signal:Jt}=this.controller;try{const St=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:Jt});if(!St.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${St.status}`);const Wt=St.headers.get("content-type");if(!Wt)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(Wt.includes("application/json")){const wt=yield St.json();this.emit("error",wt);return}if(!Wt.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const Gt=St.body.getReader(),qt=new TextDecoder("utf-8");for(;;){const{done:wt,value:et}=yield Gt.read();if(wt)break;const lt=qt.decode(et,{stream:!0}).split(`
|
|
|
`);for(const rt of lt)if(rt.startsWith("data:")){const ut=rt.slice(5).trim();if(ut==="[DONE]")break;try{const dt=JSON.parse(ut);dt.data&&this.handleData(dt.data)}catch(dt){console.error("\u89E3\u6790 JSON \u5931\u8D25:",dt)}}}this.emit("done",this.fullContent)}catch(St){St.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",St.message)}})}handleData(Jt){Jt.content&&(this.fullContent+=Jt.content,this.emit("data",{chunk:Jt,full:this.fullContent}))}cancelRequest(){var Jt;(Jt=this.controller)==null||Jt.abort()}}Cn.Z=Lt},16406:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return Ce}});var bt=Bt(59301),ge={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},se=Bt(92310),Me=Bt.n(se),ie=Bt(71418);var ae=function(te,Ct){return(ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(yt,$t){yt.__proto__=$t}||function(yt,$t){for(var xe in $t)Object.prototype.hasOwnProperty.call($t,xe)&&(yt[xe]=$t[xe])})(te,Ct)};function Lt(te,Ct){function yt(){this.constructor=te}ae(te,Ct),te.prototype=Ct===null?Object.create(Ct):(yt.prototype=Ct.prototype,new yt)}function kt(te,Ct,yt,$t){return new(yt||(yt=Promise))(function(xe,Rt){function je(bn){try{jn($t.next(bn))}catch(ci){Rt(ci)}}function fn(bn){try{jn($t.throw(bn))}catch(ci){Rt(ci)}}function jn(bn){var ci;bn.done?xe(bn.value):(ci=bn.value,ci instanceof yt?ci:new yt(function(Ji){Ji(ci)})).then(je,fn)}jn(($t=$t.apply(te,Ct||[])).next())})}function Jt(te,Ct){var yt,$t,xe,Rt,je={label:0,sent:function(){if(1&xe[0])throw xe[1];return xe[1]},trys:[],ops:[]};return Rt={next:fn(0),throw:fn(1),return:fn(2)},typeof Symbol=="function"&&(Rt[Symbol.iterator]=function(){return this}),Rt;function fn(jn){return function(bn){return function(ci){if(yt)throw new TypeError("Generator is already executing.");for(;je;)try{if(yt=1,$t&&(xe=2&ci[0]?$t.return:ci[0]?$t.throw||((xe=$t.return)&&xe.call($t),0):$t.next)&&!(xe=xe.call($t,ci[1])).done)return xe;switch($t=0,xe&&(ci=[2&ci[0],xe.value]),ci[0]){case 0:case 1:xe=ci;break;case 4:return je.label++,{value:ci[1],done:!1};case 5:je.label++,$t=ci[1],ci=[0];continue;case 7:ci=je.ops.pop(),je.trys.pop();continue;default:if(xe=je.trys,!((xe=xe.length>0&&xe[xe.length-1])||ci[0]!==6&&ci[0]!==2)){je=0;continue}if(ci[0]===3&&(!xe||ci[1]>xe[0]&&ci[1]<xe[3])){je.label=ci[1];break}if(ci[0]===6&&je.label<xe[1]){je.label=xe[1],xe=ci;break}if(xe&&je.label<xe[2]){je.label=xe[2],je.ops.push(ci);break}xe[2]&&je.ops.pop(),je.trys.pop();continue}ci=Ct.call(te,je)}catch(Ji){ci=[6,Ji],$t=0}finally{yt=xe=0}if(5&ci[0])throw ci[1];return{value:ci[0]?ci[1]:void 0,done:!0}}([jn,bn])}}}function St(){for(var te=0,Ct=0,yt=arguments.length;Ct<yt;Ct++)te+=arguments[Ct].length;var $t=Array(te),xe=0;for(Ct=0;Ct<yt;Ct++)for(var Rt=arguments[Ct],je=0,fn=Rt.length;je<fn;je++,xe++)$t[xe]=Rt[je];return $t}var Wt=function(){function te(){}return te.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},te.setAttributes=function(Ct,yt){for(var $t=0,xe=yt;$t<xe.length;$t++){var Rt=xe[$t],je=Rt[0],fn=Rt[1];Ct.setAttribute(je,fn)}},te.createRect=function(Ct,yt,$t){var xe=document.createElementNS("http://www.w3.org/2000/svg","rect");return xe.setAttribute("width",Ct.toString()),xe.setAttribute("height",yt.toString()),$t&&te.setAttributes(xe,$t),xe},te.createLine=function(Ct,yt,$t,xe,Rt){var je=document.createElementNS("http://www.w3.org/2000/svg","line");return je.setAttribute("x1",Ct.toString()),je.setAttribute("y1",yt.toString()),je.setAttribute("x2",$t.toString()),je.setAttribute("y2",xe.toString()),Rt&&te.setAttributes(je,Rt),je},te.createPolygon=function(Ct,yt){var $t=document.createElementNS("http://www.w3.org/2000/svg","polygon");return $t.setAttribute("points",Ct),yt&&te.setAttributes($t,yt),$t},te.createCircle=function(Ct,yt){var $t=document.createElementNS("http://www.w3.org/2000/svg","circle");return $t.setAttribute("cx",(Ct/2).toString()),$t.setAttribute("cy",(Ct/2).toString()),$t.setAttribute("r",Ct.toString()),yt&&te.setAttributes($t,yt),$t},te.createEllipse=function(Ct,yt,$t){var xe=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return xe.setAttribute("cx",(Ct/2).toString()),xe.setAttribute("cy",(yt/2).toString()),xe.setAttribute("rx",(Ct/2).toString()),xe.setAttribute("ry",(yt/2).toString()),$t&&te.setAttributes(xe,$t),xe},te.createGroup=function(Ct){var yt=document.createElementNS("http://www.w3.org/2000/svg","g");return Ct&&te.setAttributes(yt,Ct),yt},te.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},te.createMarker=function(Ct,yt,$t,xe,Rt,je,fn){var jn=document.createElementNS("http://www.w3.org/2000/svg","marker");return te.setAttributes(jn,[["id",Ct],["orient",yt],["markerWidth",$t.toString()],["markerHeight",xe.toString()],["refX",Rt.toString()],["refY",je.toString()]]),jn.appendChild(fn),jn},te.createText=function(Ct){var yt=document.createElementNS("http://www.w3.org/2000/svg","text");return yt.setAttribute("x","0"),yt.setAttribute("y","0"),Ct&&te.setAttributes(yt,Ct),yt},te.createTSpan=function(Ct,yt){var $t=document.createElementNS("http://www.w3.org/2000/svg","tspan");return $t.textContent=Ct,yt&&te.setAttributes($t,yt),$t},te.createImage=function(Ct){var yt=document.createElementNS("http://www.w3.org/2000/svg","image");return Ct&&te.setAttributes(yt,Ct),yt},te.createPoint=function(Ct,yt){var $t=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return $t.x=Ct,$t.y=yt,$t},te.createPath=function(Ct,yt){var $t=document.createElementNS("http://www.w3.org/2000/svg","path");return $t.setAttribute("d",Ct),yt&&te.setAttributes($t,yt),$t},te}(),Gt=function(){function te(){}return te.addKey=function(Ct){te.key=Ct},Object.defineProperty(te,"isLicensed",{get:function(){return!!te.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(te.key)},enumerable:!1,configurable:!0}),te}(),qt=function(){function te(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return te.prototype.rasterize=function(Ct,yt,$t){var xe=this;return new Promise(function(Rt){var je=$t!==void 0?$t:document.createElement("canvas");Ct===null&&(xe.markersOnly=!0,xe.naturalSize=!1);var fn=document.createElementNS("http://www.w3.org/2000/svg","svg");fn.setAttribute("xmlns","http://www.w3.org/2000/svg"),fn.setAttribute("width",yt.width.baseVal.valueAsString),fn.setAttribute("height",yt.height.baseVal.valueAsString),fn.setAttribute("viewBox","0 0 "+yt.viewBox.baseVal.width.toString()+" "+yt.viewBox.baseVal.height.toString()),fn.innerHTML=yt.innerHTML,xe.naturalSize===!0?(fn.width.baseVal.value=Ct.naturalWidth,fn.height.baseVal.value=Ct.naturalHeight):xe.width!==void 0&&xe.height!==void 0&&(fn.width.baseVal.value=xe.width,fn.height.baseVal.value=xe.height),je.width=fn.width.baseVal.value,je.height=fn.height.baseVal.value;var jn=fn.outerHTML,bn=je.getContext("2d");xe.markersOnly!==!0&&bn.drawImage(Ct,0,0,je.width,je.height);var ci=window.URL,Ji=new Image(je.width,je.height);Ji.setAttribute("crossOrigin","anonymous");var zi=new Blob([jn],{type:"image/svg+xml"}),dr=ci.createObjectURL(zi);Ji.onload=function(){bn.drawImage(Ji,0,0),ci.revokeObjectURL(dr);var Fr=je.toDataURL(xe.imageType,xe.imageQuality);Rt(Fr)},Ji.src=dr})},te}(),wt=function(){},et=function(){function te(Ct){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Ct+"_"}return Object.defineProperty(te.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(te.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(te.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),te.prototype.addClass=function(Ct){return this.styleSheet===void 0&&this.addStyleSheet(),Ct.name=""+this.classNamePrefix+Ct.localName,this.classes.push(Ct),this.styleSheet.sheet.insertRule("."+Ct.name+" {"+Ct.style+"}",this.styleSheet.sheet.cssRules.length),Ct},te.prototype.addRule=function(Ct){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(Ct),this.styleSheet.sheet.insertRule(Ct.selector+" {"+Ct.style+"}",this.styleSheet.sheet.cssRules.length)},te.prototype.addStyleSheet=function(){var Ct;this.styleSheet=document.createElement("style"),((Ct=this.styleSheetRoot)!==null&&Ct!==void 0?Ct:document.head).appendChild(this.styleSheet),this.addRule(new tt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new tt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new tt("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new lt("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new lt("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},te.prototype.removeStyleSheet=function(){var Ct;this.styleSheet&&(((Ct=this.styleSheetRoot)!==null&&Ct!==void 0?Ct:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},te}(),tt=function(te,Ct){this.selector=te,this.style=Ct},lt=function(te,Ct){this.localName=te,this.style=Ct},rt=function(){function te(Ct,yt,$t,xe,Rt){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Ct,this.displayMode=yt,this.markerItems=$t,this.uiStyleSettings=xe,this.styles=Rt,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return te.prototype.show=function(Ct){var yt=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Ct,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var $t=document.createElement("div");$t.className=this.toolbarBlockStyleClass.name,$t.style.whiteSpace="nowrap",this.uiContainer.appendChild($t),this.addActionButton($t,'<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($t,'<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($t,'<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($t,'<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($t,'<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($t,'<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($t,'<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($t,'<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(Rt){var je=document.createElement("div");je.className=""+yt.toolbarButtonStyleClass.name,je.setAttribute("data-type-name",Rt.typeName),je.innerHTML=Rt.icon,je.addEventListener("click",function(){yt.markerToolbarButtonClicked(je,Rt)}),yt.buttons.push(je),yt.markerButtons.push(je)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var xe=document.createElement("div");xe.className=this.toolbarBlockStyleClass.name,xe.style.whiteSpace="nowrap",xe.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(xe),this.addActionButton(xe,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(xe,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},te.prototype.addButtonClickListener=function(Ct){this.buttonClickListeners.push(Ct)},te.prototype.removeButtonClickListener=function(Ct){this.buttonClickListeners.indexOf(Ct)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Ct),1)},te.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},te.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Ct=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var yt=0;yt<this.markerButtons.length;yt++)yt<Ct||yt===Ct&&this.markerButtons.length-1===Ct?this.markerButtonBlock.appendChild(this.markerButtons[yt]):(yt===Ct&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[yt]))}},te.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")},te.prototype.resetButtonStyles=function(){var Ct=this;this.buttons.forEach(function(yt){yt.className=yt.className.replace(Ct.uiStyleSettings.toolbarButtonStyleColorsClassName?Ct.uiStyleSettings.toolbarButtonStyleColorsClassName:Ct.toolbarButtonStyleColorsClass.name,"").trim(),yt.className=yt.className.replace(Ct.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Ct.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Ct.toolbarActiveButtonStyleColorsClass.name,"").trim(),yt.className+=" "+(Ct.uiStyleSettings.toolbarButtonStyleColorsClassName?Ct.uiStyleSettings.toolbarButtonStyleColorsClassName:Ct.toolbarButtonStyleColorsClass.name)})},te.prototype.addActionButton=function(Ct,yt,$t){var xe=this,Rt=document.createElement("div");switch(Rt.className=""+this.toolbarButtonStyleClass.name,Rt.innerHTML=yt,Rt.setAttribute("data-action",$t),Rt.addEventListener("click",function(){xe.actionToolbarButtonClicked(Rt,$t)}),$t){case"select":Rt.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Rt.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Rt.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Rt.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Rt.style.fill=this.uiStyleSettings.closeButtonColor}Ct.appendChild(Rt),this.buttons.push(Rt)},te.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new lt("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 lt("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new lt("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new lt("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 lt("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var Ct=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new lt("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*Ct)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*Ct)+`px;
|
|
|
padding: `+Ct+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new lt("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new lt("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new tt("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new tt("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},te.prototype.markerToolbarButtonClicked=function(Ct,yt){this.setActiveButton(Ct),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function($t){return $t("marker",yt)}),this.markerButtonOverflowBlock.style.display="none"},te.prototype.actionToolbarButtonClicked=function(Ct,yt){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function($t){return $t("action",yt)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},te.prototype.setActiveButton=function(Ct){this.resetButtonStyles(),Ct.className=Ct.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Ct.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},te.prototype.setActiveMarkerButton=function(Ct){var yt=this.markerButtons.find(function($t){return $t.getAttribute("data-type-name")===Ct});yt&&this.setActiveButton(yt)},te.prototype.setCurrentMarker=function(Ct){var yt=this;this.currentMarker=Ct,this.buttons.filter(function($t){return/delete|notes/.test($t.getAttribute("data-action"))}).forEach(function($t){yt.currentMarker===void 0?($t.style.fillOpacity="0.4",$t.style.pointerEvents="none"):($t.style.fillOpacity="1",$t.style.pointerEvents="all")})},te}(),ut=function(){function te(Ct,yt,$t,xe){this.panels=[],this.panelButtons=[],this.markerjsContainer=Ct,this.displayMode=yt,this.uiStyleSettings=$t,this.styles=xe,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return te.prototype.addStyles=function(){var Ct;this.toolboxStyleClass=this.styles.addClass(new lt("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 lt("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var yt=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new lt("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new lt("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new lt("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 lt("toolbox-panel-row_colors",`
|
|
|
background-color: `+((Ct=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Ct!==void 0?Ct:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new lt("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*yt)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*yt)+`px;
|
|
|
padding: `+yt+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new lt("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new lt("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new tt("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new tt("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},te.prototype.show=function(Ct){var yt;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Ct,this.uiContainer.className=this.toolboxStyleClass.name+" "+((yt=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&yt!==void 0?yt:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},te.prototype.setPanelButtons=function(Ct){var yt,$t,xe=this;this.panels=Ct,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((yt=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&yt!==void 0?yt:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+(($t=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&$t!==void 0?$t:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Rt){var je;Rt.uiStyleSettings=xe.uiStyleSettings;var fn=document.createElement("div");fn.className=xe.toolboxButtonStyleClass.name+" "+((je=xe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&je!==void 0?je:xe.toolboxButtonStyleColorsClass.name),fn.innerHTML=Rt.icon,fn.title=Rt.title,fn.addEventListener("click",function(){xe.panelButtonClick(Rt)}),xe.panelButtons.push(fn),xe.buttonRow.appendChild(fn)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},te.prototype.panelButtonClick=function(Ct){var yt=this,$t=-1;if(Ct!==this.activePanel){$t=this.panels.indexOf(Ct),this.panelRow.innerHTML="";var xe=Ct.getUi();xe.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(xe),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=Ct}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){yt.displayMode==="inline"?yt.panelRow.style.display="none":yt.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Rt,je){var fn,jn;Rt.className=yt.toolboxButtonStyleClass.name+" "+(je===$t?""+((fn=yt.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&fn!==void 0?fn:yt.toolboxActiveButtonStyleColorsClass.name):""+((jn=yt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&jn!==void 0?jn:yt.toolboxButtonStyleColorsClass.name))})},te}(),dt=function(te,Ct){this.title=te,this.icon=Ct},pt=function(te){function Ct(yt,$t,xe,Rt){var je=te.call(this,yt,Rt||'<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 je.colors=[],je.addTransparent=!1,je.colorBoxes=[],je.colors=$t,je.currentColor=xe,je.setCurrentColor=je.setCurrentColor.bind(je),je.getColorBox=je.getColorBox.bind(je),je}return Lt(Ct,te),Ct.prototype.getUi=function(){var yt=this,$t=document.createElement("div");return $t.style.overflow="hidden",$t.style.whiteSpace="nowrap",this.colors.forEach(function(xe){var Rt=yt.getColorBox(xe);$t.appendChild(Rt),yt.colorBoxes.push(Rt)}),$t},Ct.prototype.getColorBox=function(yt){var $t=this,xe=this.uiStyleSettings.toolbarHeight/4,Rt=this.uiStyleSettings.toolbarHeight-xe,je=document.createElement("div");je.style.display="inline-block",je.style.boxSizing="content-box",je.style.width=Rt-2+"px",je.style.height=Rt-2+"px",je.style.padding="1px",je.style.marginRight="2px",je.style.marginBottom="2px",je.style.borderWidth="2px",je.style.borderStyle="solid",je.style.borderRadius=(Rt+2)/2+"px",je.style.borderColor=yt===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",je.addEventListener("click",function(){$t.setCurrentColor(yt,je)});var fn=document.createElement("div");return fn.style.display="inline-block",fn.style.width=Rt-2+"px",fn.style.height=Rt-2+"px",fn.style.backgroundColor=yt,fn.style.borderRadius=Rt/2+"px",yt==="transparent"&&(fn.style.fill=this.uiStyleSettings.toolboxAccentColor,fn.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>`),je.appendChild(fn),je},Ct.prototype.setCurrentColor=function(yt,$t){var xe=this;this.currentColor=yt,this.colorBoxes.forEach(function(Rt){Rt.style.borderColor=Rt===$t?xe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(yt)},Ct}(dt),Ft=function(){function te(Ct,yt,$t){this._state="new",this._isSelected=!1,this._container=Ct,this._overlayContainer=yt,this.globalSettings=$t,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(te.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(Ct){return!1},Object.defineProperty(te.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),te.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},te.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},te.prototype.pointerDown=function(Ct,yt){},te.prototype.dblClick=function(Ct,yt){},te.prototype.manipulate=function(Ct){},te.prototype.pointerUp=function(Ct){this.stateChanged()},te.prototype.dispose=function(){},te.prototype.addMarkerVisualToContainer=function(Ct){this.container.childNodes.length>0?this.container.insertBefore(Ct,this.container.childNodes[0]):this.container.appendChild(Ct)},te.prototype.getState=function(){return{typeName:te.typeName,state:this.state,notes:this.notes}},te.prototype.restoreState=function(Ct){this._state=Ct.state,this.notes=Ct.notes},te.prototype.scale=function(Ct,yt){},te.prototype.colorChanged=function(Ct){this.onColorChanged&&this.onColorChanged(Ct),this.stateChanged()},te.prototype.fillColorChanged=function(Ct){this.onFillColorChanged&&this.onFillColorChanged(Ct),this.stateChanged()},te.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Ct=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Ct.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Ct)&&this.onStateChanged(this)}},te.typeName="MarkerBase",te}(),Tt=function(){function te(){this.findGripByVisual=this.findGripByVisual.bind(this)}return te.prototype.findGripByVisual=function(Ct){return this.topLeft.ownsTarget(Ct)?this.topLeft:this.topCenter.ownsTarget(Ct)?this.topCenter:this.topRight.ownsTarget(Ct)?this.topRight:this.centerLeft.ownsTarget(Ct)?this.centerLeft:this.centerRight.ownsTarget(Ct)?this.centerRight:this.bottomLeft.ownsTarget(Ct)?this.bottomLeft:this.bottomCenter.ownsTarget(Ct)?this.bottomCenter:this.bottomRight.ownsTarget(Ct)?this.bottomRight:void 0},te}(),_t=function(){function te(){this.GRIP_SIZE=10,this.visual=Wt.createGroup(),this.visual.appendChild(Wt.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Wt.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return te.prototype.ownsTarget=function(Ct){return Ct===this.visual||Ct===this.visual.childNodes[0]||Ct===this.visual.childNodes[1]},te}(),re=function(){function te(){}return te.toITransformMatrix=function(Ct){return{a:Ct.a,b:Ct.b,c:Ct.c,d:Ct.d,e:Ct.e,f:Ct.f}},te.toSVGMatrix=function(Ct,yt){return Ct.a=yt.a,Ct.b=yt.b,Ct.c=yt.c,Ct.d=yt.d,Ct.e=yt.e,Ct.f=yt.f,Ct},te}(),he=function(te){function Ct(yt,$t,xe){var Rt=te.call(this,yt,$t,xe)||this;return Rt.left=0,Rt.top=0,Rt.width=0,Rt.height=0,Rt.defaultSize={x:50,y:20},Rt.offsetX=0,Rt.offsetY=0,Rt.rotationAngle=0,Rt.CB_DISTANCE=10,Rt._suppressMarkerCreateEvent=!1,Rt.container.transform.baseVal.appendItem(Wt.createTransform()),Rt.setupControlBox(),Rt}return Lt(Ct,te),Object.defineProperty(Ct.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"visual",{get:function(){return this._visual},set:function(yt){this._visual=yt;var $t=Wt.createTransform();this._visual.transform.baseVal.appendItem($t)},enumerable:!1,configurable:!0}),Ct.prototype.ownsTarget=function(yt){return!!te.prototype.ownsTarget.call(this,yt)||!!(this.controlGrips.findGripByVisual(yt)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(yt))},Ct.prototype.pointerDown=function(yt,$t){te.prototype.pointerDown.call(this,yt,$t),this.state==="new"&&(this.left=yt.x,this.top=yt.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var xe=this.unrotatePoint(yt);if(this.manipulationStartX=xe.x,this.manipulationStartY=xe.y,this.offsetX=xe.x-this.left,this.offsetY=xe.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual($t),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget($t)){this.activeGrip=this.rotatorGrip;var Rt=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Rt.x-this.width/2,this.top=Rt.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var je=this.container.transform.baseVal.getItem(0);je.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(je,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Ct.prototype.pointerUp=function(yt){var $t=this.state;te.prototype.pointerUp.call(this,yt),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(yt),this._state="select",$t==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Ct.prototype.moveVisual=function(yt){this.visual.style.transform="translate("+yt.x+"px, "+yt.y+"px)"},Ct.prototype.manipulate=function(yt){var $t=this.unrotatePoint(yt);this.state==="creating"?this.resize(yt):this.state==="move"?(this.left=this.manipulationStartLeft+($t.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+($t.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize($t):this.state==="rotate"&&this.rotate(yt)},Ct.prototype.resize=function(yt){var $t=this.manipulationStartLeft,xe=this.manipulationStartWidth,Rt=this.manipulationStartTop,je=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:$t=this.manipulationStartLeft+yt.x-this.manipulationStartX,xe=this.manipulationStartWidth+this.manipulationStartLeft-$t;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:xe=this.manipulationStartWidth+yt.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Rt=this.manipulationStartTop+yt.y-this.manipulationStartY,je=this.manipulationStartHeight+this.manipulationStartTop-Rt;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:je=this.manipulationStartHeight+yt.y-this.manipulationStartY}xe>=0?(this.left=$t,this.width=xe):(this.left=$t+xe,this.width=-xe),je>=0?(this.top=Rt,this.height=je):(this.top=Rt+je,this.height=-je),this.setSize()},Ct.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Ct.prototype.rotate=function(yt){if(Math.abs(yt.x-this.centerX)>.1){var $t=Math.sign(yt.x-this.centerX);this.rotationAngle=180*Math.atan((yt.y-this.centerY)/(yt.x-this.centerX))/Math.PI+90*$t,this.applyRotation()}},Ct.prototype.applyRotation=function(){var yt=this.container.transform.baseVal.getItem(0);yt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(yt,0)},Ct.prototype.rotatePoint=function(yt){if(this.rotationAngle===0)return yt;var $t=this.container.getCTM(),xe=Wt.createPoint(yt.x,yt.y);return{x:(xe=xe.matrixTransform($t)).x,y:xe.y}},Ct.prototype.unrotatePoint=function(yt){if(this.rotationAngle===0)return yt;var $t=this.container.getCTM();$t=$t.inverse();var xe=Wt.createPoint(yt.x,yt.y);return{x:(xe=xe.matrixTransform($t)).x,y:xe.y}},Ct.prototype.select=function(){te.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Ct.prototype.deselect=function(){te.prototype.deselect.call(this),this.controlBox.style.display="none"},Ct.prototype.setupControlBox=function(){this.controlBox=Wt.createGroup();var yt=Wt.createTransform();yt.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(yt),this.container.appendChild(this.controlBox),this.controlRect=Wt.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=Wt.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 Tt,this.addControlGrips(),this.controlBox.style.display="none"},Ct.prototype.adjustControlBox=function(){var yt=this.controlBox.transform.baseVal.getItem(0);yt.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(yt,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()},Ct.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()},Ct.prototype.createGrip=function(){var yt=new _t;return yt.visual.transform.baseVal.appendItem(Wt.createTransform()),this.controlBox.appendChild(yt.visual),yt},Ct.prototype.positionGrips=function(){var yt=this.controlGrips.topLeft.GRIP_SIZE,$t=-yt/2,xe=$t,Rt=(this.width+this.CB_DISTANCE)/2-yt/2,je=(this.height+this.CB_DISTANCE)/2-yt/2,fn=this.height+this.CB_DISTANCE-yt/2,jn=this.width+this.CB_DISTANCE-yt/2;this.positionGrip(this.controlGrips.topLeft.visual,$t,xe),this.positionGrip(this.controlGrips.topCenter.visual,Rt,xe),this.positionGrip(this.controlGrips.topRight.visual,jn,xe),this.positionGrip(this.controlGrips.centerLeft.visual,$t,je),this.positionGrip(this.controlGrips.centerRight.visual,jn,je),this.positionGrip(this.controlGrips.bottomLeft.visual,$t,fn),this.positionGrip(this.controlGrips.bottomCenter.visual,Rt,fn),this.positionGrip(this.controlGrips.bottomRight.visual,jn,fn),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Rt,xe-3*this.CB_DISTANCE)},Ct.prototype.positionGrip=function(yt,$t,xe){var Rt=yt.transform.baseVal.getItem(0);Rt.setTranslate($t,xe),yt.transform.baseVal.replaceItem(Rt,0)},Ct.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Ct.prototype.showControlBox=function(){this.controlBox.style.display=""},Ct.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:re.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:re.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},te.prototype.getState.call(this))},Ct.prototype.restoreState=function(yt){te.prototype.restoreState.call(this,yt);var $t=yt;this.left=$t.left,this.top=$t.top,this.width=$t.width,this.height=$t.height,this.rotationAngle=$t.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(re.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,$t.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(re.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,$t.containerTransformMatrix))},Ct.prototype.scale=function(yt,$t){te.prototype.scale.call(this,yt,$t);var xe=this.rotatePoint({x:this.left,y:this.top}),Rt=this.unrotatePoint({x:xe.x*yt,y:xe.y*$t});this.left=Rt.x,this.top=Rt.y,this.width=this.width*yt,this.height=this.height*$t,this.adjustControlBox()},Ct}(Ft),Ae=function(te){function Ct(yt,$t,xe){var Rt=te.call(this,yt,$t,xe)||this;return Rt.fillColor="transparent",Rt.strokeColor="transparent",Rt.strokeWidth=0,Rt.strokeDasharray="",Rt.opacity=1,Rt.setStrokeColor=Rt.setStrokeColor.bind(Rt),Rt.setFillColor=Rt.setFillColor.bind(Rt),Rt.setStrokeWidth=Rt.setStrokeWidth.bind(Rt),Rt.setStrokeDasharray=Rt.setStrokeDasharray.bind(Rt),Rt.createVisual=Rt.createVisual.bind(Rt),Rt}return Lt(Ct,te),Ct.prototype.ownsTarget=function(yt){return!(!te.prototype.ownsTarget.call(this,yt)&&yt!==this.visual)},Ct.prototype.createVisual=function(){this.visual=Wt.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)},Ct.prototype.pointerDown=function(yt,$t){te.prototype.pointerDown.call(this,yt,$t),this.state==="new"&&(this.createVisual(),this.moveVisual(yt),this._state="creating")},Ct.prototype.manipulate=function(yt){te.prototype.manipulate.call(this,yt)},Ct.prototype.resize=function(yt){te.prototype.resize.call(this,yt),this.setSize()},Ct.prototype.setSize=function(){te.prototype.setSize.call(this),Wt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Ct.prototype.pointerUp=function(yt){te.prototype.pointerUp.call(this,yt),this.setSize()},Ct.prototype.setStrokeColor=function(yt){this.strokeColor=yt,this.visual&&Wt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(yt),this.stateChanged()},Ct.prototype.setFillColor=function(yt){this.fillColor=yt,this.visual&&Wt.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Ct.prototype.setStrokeWidth=function(yt){this.strokeWidth=yt,this.visual&&Wt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ct.prototype.setStrokeDasharray=function(yt){this.strokeDasharray=yt,this.visual&&Wt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Ct.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},te.prototype.getState.call(this))},Ct.prototype.restoreState=function(yt){var $t=yt;this.fillColor=$t.fillColor,this.strokeColor=$t.strokeColor,this.strokeWidth=$t.strokeWidth,this.strokeDasharray=$t.strokeDasharray,this.opacity=$t.opacity,this.createVisual(),te.prototype.restoreState.call(this,yt),this.setSize()},Ct.prototype.scale=function(yt,$t){te.prototype.scale.call(this,yt,$t),this.setSize()},Ct.title="Rectangle marker",Ct}(he),Fe=function(te){function Ct(yt,$t,xe,Rt){var je=te.call(this,yt,Rt||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return je.widths=[],je.widthBoxes=[],je.widths=$t,je.currentWidth=xe,je.setCurrentWidth=je.setCurrentWidth.bind(je),je}return Lt(Ct,te),Ct.prototype.getUi=function(){var yt=this,$t=document.createElement("div");return $t.style.display="flex",$t.style.overflow="hidden",$t.style.flexGrow="2",this.widths.forEach(function(xe){var Rt=document.createElement("div");Rt.style.display="flex",Rt.style.flexGrow="2",Rt.style.alignItems="center",Rt.style.justifyContent="space-between",Rt.style.padding="5px",Rt.style.borderWidth="2px",Rt.style.borderStyle="solid",Rt.style.borderColor=xe===yt.currentWidth?yt.uiStyleSettings.toolboxAccentColor:"transparent",Rt.addEventListener("click",function(){yt.setCurrentWidth(xe,Rt)}),$t.appendChild(Rt);var je=document.createElement("div");je.innerText=xe.toString(),je.style.marginRight="5px",Rt.appendChild(je);var fn=document.createElement("div");fn.style.minHeight="20px",fn.style.flexGrow="2",fn.style.display="flex",fn.style.alignItems="center";var jn=document.createElement("hr");jn.style.minWidth="20px",jn.style.border="0px",jn.style.borderTop=xe+"px solid "+yt.uiStyleSettings.toolboxColor,jn.style.flexGrow="2",fn.appendChild(jn),Rt.appendChild(fn),yt.widthBoxes.push(Rt)}),$t},Ct.prototype.setCurrentWidth=function(yt,$t){var xe=this;this.currentWidth=yt,this.widthBoxes.forEach(function(Rt){Rt.style.borderColor=Rt===$t?xe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Ct}(dt),ee=function(te){function Ct(yt,$t,xe,Rt){var je=te.call(this,yt,Rt||'<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 je.styles=[],je.styleBoxes=[],je.styles=$t,je.currentStyle=xe,je.setCurrentStyle=je.setCurrentStyle.bind(je),je}return Lt(Ct,te),Ct.prototype.getUi=function(){var yt=this,$t=document.createElement("div");return $t.style.display="flex",$t.style.overflow="hidden",$t.style.flexGrow="2",this.styles.forEach(function(xe){var Rt=document.createElement("div");Rt.style.display="flex",Rt.style.alignItems="center",Rt.style.justifyContent="space-between",Rt.style.padding="5px",Rt.style.borderWidth="2px",Rt.style.borderStyle="solid",Rt.style.overflow="hidden",Rt.style.maxWidth=100/yt.styles.length-5+"%",Rt.style.borderColor=xe===yt.currentStyle?yt.uiStyleSettings.toolboxAccentColor:"transparent",Rt.addEventListener("click",function(){yt.setCurrentStyle(xe,Rt)}),$t.appendChild(Rt);var je=document.createElement("div");je.style.minHeight="20px",je.style.flexGrow="2",je.style.overflow="hidden";var fn=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+yt.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(xe!==""?'stroke-dasharray="'+xe+'"':"")+` />
|
|
|
</svg>`;je.innerHTML=fn,Rt.appendChild(je),yt.styleBoxes.push(Rt)}),$t},Ct.prototype.setCurrentStyle=function(yt,$t){var xe=this;this.currentStyle=yt,this.styleBoxes.forEach(function(Rt){Rt.style.borderColor=Rt===$t?xe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Ct}(dt),We=function(te){function Ct(yt,$t,xe){var Rt=te.call(this,yt,$t,xe)||this;return Rt.strokeColor=xe.defaultColor,Rt.strokeWidth=xe.defaultStrokeWidth,Rt.strokeDasharray=xe.defaultStrokeDasharray,Rt.strokePanel=new pt("Line color",xe.defaultColorSet,xe.defaultColor),Rt.strokePanel.onColorChanged=Rt.setStrokeColor,Rt.strokeWidthPanel=new Fe("Line width",xe.defaultStrokeWidths,xe.defaultStrokeWidth),Rt.strokeWidthPanel.onWidthChanged=Rt.setStrokeWidth,Rt.strokeStylePanel=new ee("Line style",xe.defaultStrokeDasharrays,xe.defaultStrokeDasharray),Rt.strokeStylePanel.onStyleChanged=Rt.setStrokeDasharray,Rt}return Lt(Ct,te),Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var yt=te.prototype.getState.call(this);return yt.typeName=Ct.typeName,yt},Ct.typeName="FrameMarker",Ct.title="Frame marker",Ct.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Ct}(Ae),Yt=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"},qe=function(te){function Ct(yt,$t,xe){var Rt=te.call(this,yt,$t,xe)||this;return Rt.x1=0,Rt.y1=0,Rt.x2=0,Rt.y2=0,Rt.defaultLength=50,Rt.manipulationStartX=0,Rt.manipulationStartY=0,Rt.manipulationStartX1=0,Rt.manipulationStartY1=0,Rt.manipulationStartX2=0,Rt.manipulationStartY2=0,Rt.setupControlBox(),Rt}return Lt(Ct,te),Ct.prototype.ownsTarget=function(yt){return!!te.prototype.ownsTarget.call(this,yt)||!(!this.grip1.ownsTarget(yt)&&!this.grip2.ownsTarget(yt))},Ct.prototype.pointerDown=function(yt,$t){te.prototype.pointerDown.call(this,yt,$t),this.manipulationStartX=yt.x,this.manipulationStartY=yt.y,this.state==="new"&&(this.x1=yt.x,this.y1=yt.y,this.x2=yt.x,this.y2=yt.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($t)?this.activeGrip=this.grip1:this.grip2.ownsTarget($t)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Ct.prototype.pointerUp=function(yt){var $t=this.state;te.prototype.pointerUp.call(this,yt),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(yt),this._state="select",$t==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Ct.prototype.adjustVisual=function(){},Ct.prototype.manipulate=function(yt){this.state==="creating"?this.resize(yt):this.state==="move"?(this.x1=this.manipulationStartX1+yt.x-this.manipulationStartX,this.y1=this.manipulationStartY1+yt.y-this.manipulationStartY,this.x2=this.manipulationStartX2+yt.x-this.manipulationStartX,this.y2=this.manipulationStartY2+yt.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(yt)},Ct.prototype.resize=function(yt){switch(this.activeGrip){case this.grip1:this.x1=yt.x,this.y1=yt.y;break;case this.grip2:case void 0:this.x2=yt.x,this.y2=yt.y}this.adjustVisual(),this.adjustControlBox()},Ct.prototype.select=function(){te.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Ct.prototype.deselect=function(){te.prototype.deselect.call(this),this.controlBox.style.display="none"},Ct.prototype.setupControlBox=function(){this.controlBox=Wt.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Ct.prototype.adjustControlBox=function(){this.positionGrips()},Ct.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Ct.prototype.createGrip=function(){var yt=new _t;return yt.visual.transform.baseVal.appendItem(Wt.createTransform()),this.controlBox.appendChild(yt.visual),yt},Ct.prototype.positionGrips=function(){var yt=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-yt/2,this.y1-yt/2),this.positionGrip(this.grip2.visual,this.x2-yt/2,this.y2-yt/2)},Ct.prototype.positionGrip=function(yt,$t,xe){var Rt=yt.transform.baseVal.getItem(0);Rt.setTranslate($t,xe),yt.transform.baseVal.replaceItem(Rt,0)},Ct.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},te.prototype.getState.call(this))},Ct.prototype.restoreState=function(yt){te.prototype.restoreState.call(this,yt);var $t=yt;this.x1=$t.x1,this.y1=$t.y1,this.x2=$t.x2,this.y2=$t.y2},Ct.prototype.scale=function(yt,$t){te.prototype.scale.call(this,yt,$t),this.x1=this.x1*yt,this.y1=this.y1*$t,this.x2=this.x2*yt,this.y2=this.y2*$t,this.adjustVisual(),this.adjustControlBox()},Ct}(Ft),Ge=function(te){function Ct(yt,$t,xe){var Rt=te.call(this,yt,$t,xe)||this;return Rt.strokeColor="transparent",Rt.strokeWidth=0,Rt.strokeDasharray="",Rt.setStrokeColor=Rt.setStrokeColor.bind(Rt),Rt.setStrokeWidth=Rt.setStrokeWidth.bind(Rt),Rt.setStrokeDasharray=Rt.setStrokeDasharray.bind(Rt),Rt.strokeColor=xe.defaultColor,Rt.strokeWidth=xe.defaultStrokeWidth,Rt.strokeDasharray=xe.defaultStrokeDasharray,Rt.strokePanel=new pt("Line color",xe.defaultColorSet,xe.defaultColor),Rt.strokePanel.onColorChanged=Rt.setStrokeColor,Rt.strokeWidthPanel=new Fe("Line width",xe.defaultStrokeWidths,xe.defaultStrokeWidth),Rt.strokeWidthPanel.onWidthChanged=Rt.setStrokeWidth,Rt.strokeStylePanel=new ee("Line style",xe.defaultStrokeDasharrays,xe.defaultStrokeDasharray),Rt.strokeStylePanel.onStyleChanged=Rt.setStrokeDasharray,Rt}return Lt(Ct,te),Ct.prototype.ownsTarget=function(yt){return!(!te.prototype.ownsTarget.call(this,yt)&&yt!==this.visual&&yt!==this.selectorLine&&yt!==this.visibleLine)},Ct.prototype.createVisual=function(){this.visual=Wt.createGroup(),this.selectorLine=Wt.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Wt.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)},Ct.prototype.pointerDown=function(yt,$t){te.prototype.pointerDown.call(this,yt,$t),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Ct.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()),Wt.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Wt.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Wt.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Ct.prototype.setStrokeColor=function(yt){this.strokeColor=yt,this.adjustVisual(),this.colorChanged(yt)},Ct.prototype.setStrokeWidth=function(yt){this.strokeWidth=yt,this.adjustVisual()},Ct.prototype.setStrokeDasharray=function(yt){this.strokeDasharray=yt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var yt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},te.prototype.getState.call(this));return yt.typeName=Ct.typeName,yt},Ct.prototype.restoreState=function(yt){te.prototype.restoreState.call(this,yt);var $t=yt;this.strokeColor=$t.strokeColor,this.strokeWidth=$t.strokeWidth,this.strokeDasharray=$t.strokeDasharray,this.createVisual(),this.adjustVisual()},Ct.typeName="LineMarker",Ct.title="Line marker",Ct.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',Ct}(qe),Oe=function(te){function Ct(yt,$t,xe,Rt){var je=te.call(this,yt,Rt||'<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 je.fonts=[],je.fontBoxes=[],je.fonts=$t,je.currentFont=xe,je.setCurrentFont=je.setCurrentFont.bind(je),je}return Lt(Ct,te),Ct.prototype.getUi=function(){var yt=this,$t=document.createElement("div");return $t.style.overflow="hidden",$t.style.flexGrow="2",this.fonts.forEach(function(xe){var Rt=document.createElement("div");Rt.style.display="inline-block",Rt.style.alignItems="center",Rt.style.justifyContent="space-between",Rt.style.padding="5px",Rt.style.borderWidth="2px",Rt.style.borderStyle="solid",Rt.style.overflow="hidden",Rt.style.maxWidth=100/yt.fonts.length-5+"%",Rt.style.borderColor=xe===yt.currentFont?yt.uiStyleSettings.toolboxAccentColor:"transparent",Rt.addEventListener("click",function(){yt.setCurrentFont(xe,Rt)}),$t.appendChild(Rt);var je=document.createElement("div");je.style.display="flex",je.style.minHeight="20px",je.style.flexGrow="2",je.style.fontFamily=xe,je.style.overflow="hidden";var fn=document.createElement("div");fn.style.whiteSpace="nowrap",fn.style.overflow="hidden",fn.style.textOverflow="ellipsis",fn.innerHTML="The quick brown fox jumps over the lazy dog",je.appendChild(fn),Rt.appendChild(je),yt.fontBoxes.push(Rt)}),$t},Ct.prototype.setCurrentFont=function(yt,$t){var xe=this;this.currentFont=yt,this.fontBoxes.forEach(function(Rt){Rt.style.borderColor=Rt===$t?xe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Ct}(dt),Ze=function(te){function Ct(yt,$t,xe){var Rt=te.call(this,yt,$t,xe)||this;return Rt.color="transparent",Rt.padding=5,Rt.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Rt.text=Rt.DEFAULT_TEXT,Rt.isMoved=!1,Rt.color=xe.defaultColor,Rt.fontFamily=xe.defaultFontFamily,Rt.defaultSize={x:100,y:30},Rt.setColor=Rt.setColor.bind(Rt),Rt.setFont=Rt.setFont.bind(Rt),Rt.renderText=Rt.renderText.bind(Rt),Rt.sizeText=Rt.sizeText.bind(Rt),Rt.textEditDivClicked=Rt.textEditDivClicked.bind(Rt),Rt.showTextEditor=Rt.showTextEditor.bind(Rt),Rt.setSize=Rt.setSize.bind(Rt),Rt.positionTextEditor=Rt.positionTextEditor.bind(Rt),Rt.colorPanel=new pt("Color",xe.defaultColorSet,xe.defaultColor),Rt.colorPanel.onColorChanged=Rt.setColor,Rt.fontFamilyPanel=new Oe("Font",xe.defaultFontFamilies,xe.defaultFontFamily),Rt.fontFamilyPanel.onFontChanged=Rt.setFont,Rt}return Lt(Ct,te),Ct.prototype.ownsTarget=function(yt){if(te.prototype.ownsTarget.call(this,yt)||yt===this.visual||yt===this.textElement||yt===this.bgRectangle)return!0;var $t=!1;return this.textElement.childNodes.forEach(function(xe){xe===yt&&($t=!0)}),$t},Ct.prototype.createVisual=function(){this.visual=Wt.createGroup(),this.bgRectangle=Wt.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Wt.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Wt.createTransform()),this.textElement.transform.baseVal.appendItem(Wt.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Ct.prototype.pointerDown=function(yt,$t){te.prototype.pointerDown.call(this,yt,$t),this.isMoved=!1,this.pointerDownPoint=yt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(yt),this._state="creating")},Ct.prototype.renderText=function(){var yt=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($t){yt.textElement.appendChild(Wt.createTSpan($t.trim()===""?" ":$t.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Ct.prototype.getTextScale=function(){var yt=this.textElement.getBBox(),$t=1;if(yt.width>0&&yt.height>0){var xe=(1*this.width-this.width*this.padding*2/100)/yt.width,Rt=(1*this.height-this.height*this.padding*2/100)/yt.height;$t=Math.min(xe,Rt)}return $t},Ct.prototype.getTextPosition=function(yt){var $t=this.textElement.getBBox(),xe=0,Rt=0;return $t.width>0&&$t.height>0&&(xe=(this.width-$t.width*yt)/2,Rt=this.height/2-$t.height*yt/2),{x:xe,y:Rt}},Ct.prototype.sizeText=function(){var yt=this.textElement.getBBox(),$t=this.getTextScale(),xe=this.getTextPosition($t);xe.y-=yt.y*$t,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+xe.x+"px, "+xe.y+"px) scale("+$t+", "+$t+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(xe.x,xe.y),this.textElement.transform.baseVal.getItem(1).setScale($t,$t))},Ct.prototype.manipulate=function(yt){te.prototype.manipulate.call(this,yt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(yt.x-this.pointerDownPoint.x)>5||Math.abs(yt.y-this.pointerDownPoint.y)>5)},Ct.prototype.resize=function(yt){te.prototype.resize.call(this,yt),this.isMoved=!0,this.setSize(),this.sizeText()},Ct.prototype.setSize=function(){te.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Wt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Wt.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Ct.prototype.pointerUp=function(yt){var $t=this.state;$t==="creating"&&(this._suppressMarkerCreateEvent=!0),te.prototype.pointerUp.call(this,yt),this.setSize(),($t==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Ct.prototype.showTextEditor=function(){var yt=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($t){$t.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var $t=Number.parseFloat(yt.textEditor.style.fontSize);yt.textEditor.clientWidth>=Number.parseInt(yt.textEditor.style.maxWidth)&&$t>.9;)$t-=.1,yt.textEditor.style.fontSize=Math.max($t,.9)+"em"}),this.textEditor.addEventListener("keyup",function($t){$t.cancelBubble=!0}),this.textEditor.addEventListener("paste",function($t){if($t.clipboardData){var xe=$t.clipboardData.getData("text"),Rt=window.getSelection();if(!Rt.rangeCount)return!1;Rt.deleteFromDocument(),Rt.getRangeAt(0).insertNode(document.createTextNode(xe)),$t.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){yt.textEditDivClicked(yt.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Ct.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var yt=this.getTextScale(),$t=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),xe=this.textElement.getBBox(),Rt={x:xe.width*yt,y:xe.height*yt};$t.x-=Rt.x/2,$t.y-=Rt.y/2,this.textEditor.style.top=$t.y+"px",this.textEditor.style.left=$t.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-$t.x+"px",this.textEditor.style.fontSize=Math.max(16*yt,12)+"px",this.textElement.style.display="none"}},Ct.prototype.textEditDivClicked=function(yt){this.text=yt.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Ct.prototype.select=function(){te.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Ct.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),te.prototype.deselect.call(this)},Ct.prototype.dblClick=function(yt,$t){te.prototype.dblClick.call(this,yt,$t),this.showTextEditor()},Ct.prototype.setColor=function(yt){this.textElement&&Wt.setAttributes(this.textElement,[["fill",yt]]),this.color=yt,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(yt)},Ct.prototype.setFont=function(yt){this.textElement&&Wt.setAttributes(this.textElement,[["font-family",yt]]),this.fontFamily=yt,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Ct.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Ct.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var yt=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},te.prototype.getState.call(this));return yt.typeName=Ct.typeName,yt},Ct.prototype.restoreState=function(yt){var $t=yt;this.color=$t.color,this.fontFamily=$t.fontFamily,this.padding=$t.padding,this.text=$t.text,this.createVisual(),te.prototype.restoreState.call(this,yt),this.setSize()},Ct.prototype.scale=function(yt,$t){te.prototype.scale.call(this,yt,$t),this.setSize(),this.sizeText(),this.positionTextEditor()},Ct.typeName="TextMarker",Ct.title="Text marker",Ct.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>',Ct}(he),Qe=function(te){function Ct(yt,$t,xe){var Rt=te.call(this,yt,$t,xe)||this;return Rt.color="transparent",Rt.lineWidth=3,Rt.drawing=!1,Rt.pixelRatio=1,Rt.color=xe.defaultColor,Rt.lineWidth=xe.defaultStrokeWidth,Rt.pixelRatio=xe.freehandPixelRatio,Rt.setColor=Rt.setColor.bind(Rt),Rt.addCanvas=Rt.addCanvas.bind(Rt),Rt.finishCreation=Rt.finishCreation.bind(Rt),Rt.setLineWidth=Rt.setLineWidth.bind(Rt),Rt.colorPanel=new pt("Color",xe.defaultColorSet,xe.defaultColor),Rt.colorPanel.onColorChanged=Rt.setColor,Rt.lineWidthPanel=new Fe("Line width",xe.defaultStrokeWidths,xe.defaultStrokeWidth),Rt.lineWidthPanel.onWidthChanged=Rt.setLineWidth,Rt}return Lt(Ct,te),Ct.prototype.ownsTarget=function(yt){return!(!te.prototype.ownsTarget.call(this,yt)&&yt!==this.visual&&yt!==this.drawingImage)},Ct.prototype.createVisual=function(){this.visual=Wt.createGroup(),this.drawingImage=Wt.createImage(),this.visual.appendChild(this.drawingImage);var yt=Wt.createTransform();this.visual.transform.baseVal.appendItem(yt),this.addMarkerVisualToContainer(this.visual)},Ct.prototype.pointerDown=function(yt,$t){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(yt.x,yt.y),this.drawing=!0):te.prototype.pointerDown.call(this,yt,$t)},Ct.prototype.manipulate=function(yt){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(yt.x,yt.y),this.canvasContext.stroke()):te.prototype.manipulate.call(this,yt)},Ct.prototype.resize=function(yt){te.prototype.resize.call(this,yt),Wt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Wt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Ct.prototype.pointerUp=function(yt){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):te.prototype.pointerUp.call(this,yt)},Ct.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)},Ct.prototype.select=function(){this.state==="creating"&&this.finishCreation(),te.prototype.select.call(this)},Ct.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),te.prototype.deselect.call(this)},Ct.prototype.finishCreation=function(){for(var yt=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),$t=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],xe=$t[0],Rt=$t[1],je=$t[2],fn=$t[3],jn=!1,bn=0;bn<this.canvasElement.height;bn++)for(var ci=0;ci<this.canvasElement.width;ci++)yt.data[bn*this.canvasElement.width*4+4*ci+3]>0&&(jn=!0,bn<Rt&&(Rt=bn),ci<xe&&(xe=ci),bn>fn&&(fn=bn),ci>je&&(je=ci));if(jn){this.left=xe/this.pixelRatio,this.top=Rt/this.pixelRatio,this.width=(je-xe)/this.pixelRatio,this.height=(fn-Rt)/this.pixelRatio;var Ji=document.createElement("canvas");Ji.width=je-xe,Ji.height=fn-Rt,Ji.getContext("2d").putImageData(this.canvasContext.getImageData(xe,Rt,je-xe,fn-Rt),0,0),this.drawingImgUrl=Ji.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Ct.prototype.setDrawingImage=function(){Wt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Wt.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Ct.prototype.setColor=function(yt){this.color=yt,this.colorChanged(yt)},Ct.prototype.setLineWidth=function(yt){this.lineWidth=yt},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var yt=Object.assign({drawingImgUrl:this.drawingImgUrl},te.prototype.getState.call(this));return yt.typeName=Ct.typeName,yt},Ct.prototype.restoreState=function(yt){this.createVisual(),te.prototype.restoreState.call(this,yt),this.drawingImgUrl=yt.drawingImgUrl,this.setDrawingImage()},Ct.prototype.scale=function(yt,$t){te.prototype.scale.call(this,yt,$t),this.setDrawingImage()},Ct.typeName="FreehandMarker",Ct.title="Freehand marker",Ct.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>',Ct}(he),we=function(te){function Ct(yt,$t,xe){var Rt=te.call(this,yt,xe||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Rt.typeBoxes=[],Rt.currentType=$t,Rt.setCurrentType=Rt.setCurrentType.bind(Rt),Rt}return Lt(Ct,te),Ct.prototype.getUi=function(){var yt=this,$t=document.createElement("div");$t.style.display="flex",$t.style.overflow="hidden",$t.style.flexGrow="2";for(var xe=function(fn){var jn="both";switch(fn){case 0:jn="both";break;case 1:jn="start";break;case 2:jn="end";break;case 3:jn="none"}var bn=document.createElement("div");if(bn.style.display="flex",bn.style.flexGrow="2",bn.style.alignItems="center",bn.style.justifyContent="space-between",bn.style.padding="5px",bn.style.borderWidth="2px",bn.style.borderStyle="solid",bn.style.borderColor=jn===Rt.currentType?Rt.uiStyleSettings.toolboxAccentColor:"transparent",bn.addEventListener("click",function(){yt.setCurrentType(jn,bn)}),$t.appendChild(bn),jn==="both"||jn==="start"){var ci=document.createElement("div");ci.style.display="flex",ci.style.alignItems="center",ci.style.minHeight="20px",ci.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="`+(Rt.uiStyleSettings!==void 0?Rt.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,ci.style.marginLeft="5px",bn.appendChild(ci)}var Ji=document.createElement("div");Ji.style.display="flex",Ji.style.alignItems="center",Ji.style.minHeight="20px",Ji.style.flexGrow="2";var zi=document.createElement("hr");if(zi.style.minWidth="20px",zi.style.border="0px",zi.style.borderTop="3px solid "+(Rt.uiStyleSettings!==void 0?Rt.uiStyleSettings.toolboxColor:"#eeeeee"),zi.style.flexGrow="2",Ji.appendChild(zi),bn.appendChild(Ji),jn==="both"||jn==="end"){var dr=document.createElement("div");dr.style.display="flex",dr.style.alignItems="center",dr.style.minHeight="20px",dr.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="`+(Rt.uiStyleSettings!==void 0?Rt.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,dr.style.marginRight="5px",bn.appendChild(dr)}Rt.typeBoxes.push(bn)},Rt=this,je=0;je<4;je++)xe(je);return $t},Ct.prototype.setCurrentType=function(yt,$t){var xe=this;this.currentType=yt,this.typeBoxes.forEach(function(Rt){Rt.style.borderColor=Rt===$t?xe.uiStyleSettings!==void 0?xe.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Ct}(dt),oe=function(te){function Ct(yt,$t,xe){var Rt=te.call(this,yt,$t,xe)||this;return Rt.arrowType="end",Rt.arrowBaseHeight=10,Rt.arrowBaseWidth=10,Rt.getArrowPoints=Rt.getArrowPoints.bind(Rt),Rt.setArrowType=Rt.setArrowType.bind(Rt),Rt.arrowTypePanel=new we("Arrow type","end"),Rt.arrowTypePanel.onArrowTypeChanged=Rt.setArrowType,Rt}return Lt(Ct,te),Ct.prototype.ownsTarget=function(yt){return!(!te.prototype.ownsTarget.call(this,yt)&&yt!==this.arrow1&&yt!==this.arrow2)},Ct.prototype.getArrowPoints=function(yt,$t){var xe=this.arrowBaseWidth+2*this.strokeWidth,Rt=this.arrowBaseHeight+2*this.strokeWidth;return yt-xe/2+","+($t+Rt/2)+" "+yt+","+($t-Rt/2)+" "+(yt+xe/2)+","+($t+Rt/2)},Ct.prototype.createTips=function(){this.arrow1=Wt.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Wt.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Wt.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Wt.createTransform()),this.visual.appendChild(this.arrow2)},Ct.prototype.pointerDown=function(yt,$t){te.prototype.pointerDown.call(this,yt,$t),this.state==="creating"&&this.createTips()},Ct.prototype.adjustVisual=function(){if(te.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",Wt.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Wt.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var yt=0;Math.abs(this.x1-this.x2)>.1&&(yt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var $t=this.arrow1.transform.baseVal.getItem(0);$t.setRotate(yt,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem($t,0);var xe=this.arrow2.transform.baseVal.getItem(0);xe.setRotate(yt+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(xe,0)}},Ct.prototype.setArrowType=function(yt){this.arrowType=yt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var yt=Object.assign({arrowType:this.arrowType},te.prototype.getState.call(this));return yt.typeName=Ct.typeName,yt},Ct.prototype.restoreState=function(yt){te.prototype.restoreState.call(this,yt);var $t=yt;this.arrowType=$t.arrowType,this.createTips(),this.adjustVisual()},Ct.typeName="ArrowMarker",Ct.title="Arrow marker",Ct.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',Ct}(Ge),Pe=function(te){function Ct(yt,$t,xe){var Rt=te.call(this,yt,$t,xe)||this;return Rt.fillColor=xe.defaultFillColor,Rt.strokeWidth=0,Rt.fillPanel=new pt("Color",xe.defaultColorSet,xe.defaultFillColor),Rt.fillPanel.onColorChanged=Rt.setFillColor,Rt}return Lt(Ct,te),Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var yt=te.prototype.getState.call(this);return yt.typeName=Ct.typeName,yt},Ct.typeName="CoverMarker",Ct.title="Cover marker",Ct.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Ct}(Ae),En=function(te){function Ct(yt,$t,xe,Rt){var je=te.call(this,yt,Rt||'<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 je.opacities=[],je.opacityBoxes=[],je.opacities=$t,je.currentOpacity=xe,je.setCurrentOpacity=je.setCurrentOpacity.bind(je),je}return Lt(Ct,te),Ct.prototype.getUi=function(){var yt=this,$t=document.createElement("div");return $t.style.display="flex",$t.style.overflow="hidden",$t.style.flexGrow="2",$t.style.justifyContent="space-between",this.opacities.forEach(function(xe){var Rt=document.createElement("div");Rt.style.display="flex",Rt.style.alignItems="center",Rt.style.justifyContent="center",Rt.style.padding="5px",Rt.style.borderWidth="2px",Rt.style.borderStyle="solid",Rt.style.borderColor=xe===yt.currentOpacity?yt.uiStyleSettings.toolboxAccentColor:"transparent",Rt.addEventListener("click",function(){yt.setCurrentOpacity(xe,Rt)}),$t.appendChild(Rt);var je=document.createElement("div");je.innerText=100*xe+"%",Rt.appendChild(je),yt.opacityBoxes.push(Rt)}),$t},Ct.prototype.setCurrentOpacity=function(yt,$t){var xe=this;this.currentOpacity=yt,this.opacityBoxes.forEach(function(Rt){Rt.style.borderColor=Rt===$t?xe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Ct}(dt),Nn=function(te){function Ct(yt,$t,xe){var Rt=te.call(this,yt,$t,xe)||this;return Rt.setOpacity=Rt.setOpacity.bind(Rt),Rt.fillColor=xe.defaultHighlightColor,Rt.strokeWidth=0,Rt.opacity=xe.defaultHighlightOpacity,Rt.fillPanel=new pt("Color",xe.defaultColorSet,Rt.fillColor),Rt.fillPanel.onColorChanged=Rt.setFillColor,Rt.opacityPanel=new En("Opacity",xe.defaultOpacitySteps,Rt.opacity),Rt.opacityPanel.onOpacityChanged=Rt.setOpacity,Rt}return Lt(Ct,te),Ct.prototype.setOpacity=function(yt){this.opacity=yt,this.visual&&Wt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var yt=te.prototype.getState.call(this);return yt.typeName=Ct.typeName,yt},Ct.typeName="HighlightMarker",Ct.title="Highlight marker",Ct.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>',Ct}(Pe),Xe='<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>',kn='<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>',Vn=function(te){function Ct(yt,$t,xe){var Rt=te.call(this,yt,$t,xe)||this;return Rt.bgColor="transparent",Rt.tipPosition={x:0,y:0},Rt.tipBase1Position={x:0,y:0},Rt.tipBase2Position={x:0,y:0},Rt.tipMoving=!1,Rt.color=xe.defaultStrokeColor,Rt.bgColor=xe.defaultFillColor,Rt.fontFamily=xe.defaultFontFamily,Rt.defaultSize={x:100,y:30},Rt.setBgColor=Rt.setBgColor.bind(Rt),Rt.getTipPoints=Rt.getTipPoints.bind(Rt),Rt.positionTip=Rt.positionTip.bind(Rt),Rt.setTipPoints=Rt.setTipPoints.bind(Rt),Rt.colorPanel=new pt("Text color",xe.defaultColorSet,Rt.color,Xe),Rt.colorPanel.onColorChanged=Rt.setColor,Rt.bgColorPanel=new pt("Fill color",xe.defaultColorSet,Rt.bgColor,kn),Rt.bgColorPanel.onColorChanged=Rt.setBgColor,Rt.fontFamilyPanel=new Oe("Font",xe.defaultFontFamilies,xe.defaultFontFamily),Rt.fontFamilyPanel.onFontChanged=Rt.setFont,Rt.tipGrip=new _t,Rt.tipGrip.visual.transform.baseVal.appendItem(Wt.createTransform()),Rt.controlBox.appendChild(Rt.tipGrip.visual),Rt}return Lt(Ct,te),Ct.prototype.ownsTarget=function(yt){return te.prototype.ownsTarget.call(this,yt)||this.tipGrip.ownsTarget(yt)||this.tip===yt},Ct.prototype.createTip=function(){Wt.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Wt.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Ct.prototype.pointerDown=function(yt,$t){this.state==="new"&&te.prototype.pointerDown.call(this,yt,$t),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget($t)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):te.prototype.pointerDown.call(this,yt,$t)},Ct.prototype.pointerUp=function(yt){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,te.prototype.pointerUp.call(this,yt);else{var $t=this.state==="creating";te.prototype.pointerUp.call(this,yt),this.setTipPoints($t),this.positionTip()}},Ct.prototype.manipulate=function(yt){if(this.tipMoving){var $t=this.unrotatePoint(yt);this.tipPosition={x:$t.x-this.manipulationStartLeft,y:$t.y-this.manipulationStartTop},this.positionTip()}else te.prototype.manipulate.call(this,yt)},Ct.prototype.setBgColor=function(yt){this.bgRectangle&&this.tip&&(Wt.setAttributes(this.bgRectangle,[["fill",yt]]),Wt.setAttributes(this.tip,[["fill",yt]])),this.bgColor=yt,this.fillColorChanged(yt)},Ct.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},Ct.prototype.setTipPoints=function(yt){yt===void 0&&(yt=!1);var $t=Math.min(this.height/2,15),xe=this.height/5;yt&&(this.tipPosition={x:$t+xe/2,y:this.height+20});var Rt=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Rt<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(xe=this.width/5,$t=Math.min(this.width/2,15),this.tipBase1Position={x:$t,y:0},this.tipBase2Position={x:$t+xe,y:0}):(this.tipBase1Position={x:0,y:$t},this.tipBase2Position={x:0,y:$t+xe}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Rt<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(xe=this.width/5,$t=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-$t-xe,y:0},this.tipBase2Position={x:this.width-$t,y:0}):(this.tipBase1Position={x:this.width,y:$t},this.tipBase2Position={x:this.width,y:$t+xe}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Rt<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(xe=this.width/5,$t=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-$t-xe,y:this.height},this.tipBase2Position={x:this.width-$t,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-$t-xe},this.tipBase2Position={x:this.width,y:this.height-$t}):Rt<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(xe=this.width/5,$t=Math.min(this.width/2,15),this.tipBase1Position={x:$t,y:this.height},this.tipBase2Position={x:$t+xe,y:this.height}):(this.tipBase1Position={x:0,y:this.height-$t},this.tipBase2Position={x:0,y:this.height-$t-xe})},Ct.prototype.resize=function(yt){te.prototype.resize.call(this,yt),this.positionTip()},Ct.prototype.positionTip=function(){Wt.setAttributes(this.tip,[["points",this.getTipPoints()]]);var yt=this.tipGrip.visual.transform.baseVal.getItem(0);yt.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(yt,0)},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Ct.prototype.select=function(){this.positionTip(),te.prototype.select.call(this)},Ct.prototype.getState=function(){var yt=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},te.prototype.getState.call(this));return yt.typeName=Ct.typeName,yt},Ct.prototype.restoreState=function(yt){var $t=yt;this.bgColor=$t.bgColor,this.tipPosition=$t.tipPosition,te.prototype.restoreState.call(this,yt),this.createTip(),this.setTipPoints()},Ct.prototype.scale=function(yt,$t){te.prototype.scale.call(this,yt,$t),this.tipPosition={x:this.tipPosition.x*yt,y:this.tipPosition.y*$t},this.positionTip()},Ct.typeName="CalloutMarker",Ct.title="Callout marker",Ct.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>',Ct}(Ze),Ai=function(te){function Ct(yt,$t,xe){var Rt=te.call(this,yt,$t,xe)||this;return Rt.fillColor="transparent",Rt.strokeColor="transparent",Rt.strokeWidth=0,Rt.strokeDasharray="",Rt.opacity=1,Rt.strokeColor=xe.defaultColor,Rt.strokeWidth=xe.defaultStrokeWidth,Rt.strokeDasharray=xe.defaultStrokeDasharray,Rt.fillColor=xe.defaultFillColor,Rt.setStrokeColor=Rt.setStrokeColor.bind(Rt),Rt.setFillColor=Rt.setFillColor.bind(Rt),Rt.setStrokeWidth=Rt.setStrokeWidth.bind(Rt),Rt.setStrokeDasharray=Rt.setStrokeDasharray.bind(Rt),Rt.setOpacity=Rt.setOpacity.bind(Rt),Rt.createVisual=Rt.createVisual.bind(Rt),Rt.strokePanel=new pt("Line color",St(xe.defaultColorSet,["transparent"]),xe.defaultColor),Rt.strokePanel.onColorChanged=Rt.setStrokeColor,Rt.fillPanel=new pt("Fill color",St(xe.defaultColorSet,["transparent"]),Rt.fillColor,kn),Rt.fillPanel.onColorChanged=Rt.setFillColor,Rt.strokeWidthPanel=new Fe("Line width",xe.defaultStrokeWidths,xe.defaultStrokeWidth),Rt.strokeWidthPanel.onWidthChanged=Rt.setStrokeWidth,Rt.strokeStylePanel=new ee("Line style",xe.defaultStrokeDasharrays,xe.defaultStrokeDasharray),Rt.strokeStylePanel.onStyleChanged=Rt.setStrokeDasharray,Rt.opacityPanel=new En("Opacity",xe.defaultOpacitySteps,Rt.opacity),Rt.opacityPanel.onOpacityChanged=Rt.setOpacity,Rt}return Lt(Ct,te),Ct.prototype.ownsTarget=function(yt){return!(!te.prototype.ownsTarget.call(this,yt)&&yt!==this.visual)},Ct.prototype.createVisual=function(){this.visual=Wt.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)},Ct.prototype.pointerDown=function(yt,$t){te.prototype.pointerDown.call(this,yt,$t),this.state==="new"&&(this.createVisual(),this.moveVisual(yt),this._state="creating")},Ct.prototype.manipulate=function(yt){te.prototype.manipulate.call(this,yt)},Ct.prototype.resize=function(yt){te.prototype.resize.call(this,yt),this.setSize()},Ct.prototype.setSize=function(){te.prototype.setSize.call(this),Wt.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},Ct.prototype.pointerUp=function(yt){te.prototype.pointerUp.call(this,yt),this.setSize()},Ct.prototype.setStrokeColor=function(yt){this.strokeColor=yt,this.visual&&Wt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(yt),this.stateChanged()},Ct.prototype.setFillColor=function(yt){this.fillColor=yt,this.visual&&Wt.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(yt),this.stateChanged()},Ct.prototype.setStrokeWidth=function(yt){this.strokeWidth=yt,this.visual&&Wt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ct.prototype.setStrokeDasharray=function(yt){this.strokeDasharray=yt,this.visual&&Wt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Ct.prototype.setOpacity=function(yt){this.opacity=yt,this.visual&&Wt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var yt=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},te.prototype.getState.call(this));return yt.typeName=Ct.typeName,yt},Ct.prototype.restoreState=function(yt){var $t=yt;this.fillColor=$t.fillColor,this.strokeColor=$t.strokeColor,this.strokeWidth=$t.strokeWidth,this.strokeDasharray=$t.strokeDasharray,this.opacity=$t.opacity,this.createVisual(),te.prototype.restoreState.call(this,yt),this.setSize()},Ct.prototype.scale=function(yt,$t){te.prototype.scale.call(this,yt,$t),this.setSize()},Ct.typeName="EllipseMarker",Ct.title="Ellipse marker",Ct.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>',Ct}(he),Wn=function(te){function Ct(yt,$t,xe){return te.call(this,yt,$t,xe)||this}return Lt(Ct,te),Object.defineProperty(Ct.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Ct.prototype.ownsTarget=function(yt){return!(!te.prototype.ownsTarget.call(this,yt)&&yt!==this.tip1&&yt!==this.tip2)},Ct.prototype.createTips=function(){this.tip1=Wt.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(Wt.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Wt.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(Wt.createTransform()),this.visual.appendChild(this.tip2)},Ct.prototype.pointerDown=function(yt,$t){te.prototype.pointerDown.call(this,yt,$t),this.state==="creating"&&this.createTips()},Ct.prototype.adjustVisual=function(){if(te.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Wt.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()]]),Wt.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 yt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),$t=this.tip1.transform.baseVal.getItem(0);$t.setRotate(yt,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem($t,0);var xe=this.tip2.transform.baseVal.getItem(0);xe.setRotate(yt+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(xe,0)}},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var yt=te.prototype.getState.call(this);return yt.typeName=Ct.typeName,yt},Ct.prototype.restoreState=function(yt){te.prototype.restoreState.call(this,yt),this.createTips(),this.adjustVisual()},Ct.typeName="MeasurementMarker",Ct.title="Measurement marker",Ct.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>',Ct}(Ge),Si=function(te){function Ct(yt,$t,xe){var Rt=te.call(this,yt,$t,xe)||this;return Rt.strokePanel.colors=xe.defaultColorSet,Rt.fillColor="transparent",Rt}return Lt(Ct,te),Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var yt=te.prototype.getState.call(this);return yt.typeName=Ct.typeName,yt},Ct.typeName="EllipseFrameMarker",Ct.title="Ellipse frame marker",Ct.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>',Ct}(Ai),an=function(){function te(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(te.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),te.prototype.addUndoStep=function(Ct){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Ct)||(this.undoStack.push(Ct),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Ct)&&this.redoStack.splice(0,this.redoStack.length))},te.prototype.replaceLastUndoStep=function(Ct){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Ct)},te.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},te.prototype.undo=function(){if(this.undoStack.length>1){var Ct=this.undoStack.pop();return Ct!==void 0&&this.redoStack.push(Ct),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},te.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},te}(),Li=function(te){function Ct(yt,$t,xe){var Rt=te.call(this,yt,$t,xe)||this;return Rt.strokeColor="transparent",Rt.strokeWidth=0,Rt.strokeDasharray="",Rt.curveX=0,Rt.curveY=0,Rt.manipulationStartCurveX=0,Rt.manipulationStartCurveY=0,Rt.setStrokeColor=Rt.setStrokeColor.bind(Rt),Rt.setStrokeWidth=Rt.setStrokeWidth.bind(Rt),Rt.setStrokeDasharray=Rt.setStrokeDasharray.bind(Rt),Rt.positionGrips=Rt.positionGrips.bind(Rt),Rt.addControlGrips=Rt.addControlGrips.bind(Rt),Rt.adjustVisual=Rt.adjustVisual.bind(Rt),Rt.setupControlBox=Rt.setupControlBox.bind(Rt),Rt.resize=Rt.resize.bind(Rt),Rt.strokeColor=xe.defaultColor,Rt.strokeWidth=xe.defaultStrokeWidth,Rt.strokeDasharray=xe.defaultStrokeDasharray,Rt.strokePanel=new pt("Line color",xe.defaultColorSet,xe.defaultColor),Rt.strokePanel.onColorChanged=Rt.setStrokeColor,Rt.strokeWidthPanel=new Fe("Line width",xe.defaultStrokeWidths,xe.defaultStrokeWidth),Rt.strokeWidthPanel.onWidthChanged=Rt.setStrokeWidth,Rt.strokeStylePanel=new ee("Line style",xe.defaultStrokeDasharrays,xe.defaultStrokeDasharray),Rt.strokeStylePanel.onStyleChanged=Rt.setStrokeDasharray,Rt}return Lt(Ct,te),Ct.prototype.ownsTarget=function(yt){return!(!te.prototype.ownsTarget.call(this,yt)&&yt!==this.visual&&yt!==this.selectorCurve&&yt!==this.visibleCurve&&!this.curveGrip.ownsTarget(yt))},Ct.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Ct.prototype.createVisual=function(){this.visual=Wt.createGroup(),this.selectorCurve=Wt.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Wt.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)},Ct.prototype.pointerDown=function(yt,$t){te.prototype.pointerDown.call(this,yt,$t),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=yt.x,this.curveY=yt.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget($t)&&(this.activeGrip=this.curveGrip,this._state="resize")},Ct.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Wt.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Wt.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Wt.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Ct.prototype.setupControlBox=function(){te.prototype.setupControlBox.call(this),this.curveControlLine1=Wt.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Wt.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)},Ct.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,te.prototype.addControlGrips.call(this)},Ct.prototype.positionGrips=function(){te.prototype.positionGrips.call(this);var yt=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-yt/2,this.curveY-yt/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()))},Ct.prototype.manipulate=function(yt){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+yt.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+yt.y-this.manipulationStartY),te.prototype.manipulate.call(this,yt)},Ct.prototype.resize=function(yt){this.activeGrip===this.curveGrip&&(this.curveX=yt.x,this.curveY=yt.y),te.prototype.resize.call(this,yt),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Ct.prototype.setStrokeColor=function(yt){this.strokeColor=yt,this.adjustVisual(),this.colorChanged(yt)},Ct.prototype.setStrokeWidth=function(yt){this.strokeWidth=yt,this.adjustVisual()},Ct.prototype.setStrokeDasharray=function(yt){this.strokeDasharray=yt,this.adjustVisual()},Ct.prototype.scale=function(yt,$t){this.curveX=this.curveX*yt,this.curveY=this.curveY*$t,te.prototype.scale.call(this,yt,$t)},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var yt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},te.prototype.getState.call(this));return yt.typeName=Ct.typeName,yt},Ct.prototype.restoreState=function(yt){te.prototype.restoreState.call(this,yt);var $t=yt;this.strokeColor=$t.strokeColor,this.strokeWidth=$t.strokeWidth,this.strokeDasharray=$t.strokeDasharray,this.curveX=$t.curveX,this.curveY=$t.curveY,this.createVisual(),this.adjustVisual()},Ct.typeName="CurveMarker",Ct.title="Curve marker",Ct.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>',Ct}(qe),Oi=function(te){function Ct(yt,$t,xe){var Rt=te.call(this,yt,$t,xe)||this;return Rt.fillColor="transparent",Rt.strokeColor="transparent",Rt.strokeWidth=0,Rt.strokeDasharray="",Rt.textColor="transparent",Rt.fontSize="1rem",Rt.isMoved=!1,Rt.captionText="Caption",Rt.PADDING=5,Rt.captionBoxWidth=0,Rt.captionBoxHeight=0,Rt.strokeColor=xe.defaultColor,Rt.strokeWidth=xe.defaultStrokeWidth,Rt.strokeDasharray=xe.defaultStrokeDasharray,Rt.fillColor=xe.defaultFillColor,Rt.textColor=xe.defaultStrokeColor,Rt.fontFamily=xe.defaultFontFamily,Rt.fontSize=xe.defaultCaptionFontSize,Rt.captionText=xe.defaultCaptionText,Rt.setStrokeColor=Rt.setStrokeColor.bind(Rt),Rt.setFillColor=Rt.setFillColor.bind(Rt),Rt.setStrokeWidth=Rt.setStrokeWidth.bind(Rt),Rt.setStrokeDasharray=Rt.setStrokeDasharray.bind(Rt),Rt.createVisual=Rt.createVisual.bind(Rt),Rt.sizeCaption=Rt.sizeCaption.bind(Rt),Rt.setCaptionText=Rt.setCaptionText.bind(Rt),Rt.showTextEditor=Rt.showTextEditor.bind(Rt),Rt.positionTextEditor=Rt.positionTextEditor.bind(Rt),Rt.finishTextEditing=Rt.finishTextEditing.bind(Rt),Rt.setFont=Rt.setFont.bind(Rt),Rt.setTextColor=Rt.setTextColor.bind(Rt),Rt.strokePanel=new pt("Line color",St(xe.defaultColorSet,["transparent"]),Rt.strokeColor),Rt.strokePanel.onColorChanged=Rt.setStrokeColor,Rt.fillPanel=new pt("Fill color",St(xe.defaultColorSet,["transparent"]),Rt.fillColor,kn),Rt.fillPanel.onColorChanged=Rt.setFillColor,Rt.strokeWidthPanel=new Fe("Line width",xe.defaultStrokeWidths,xe.defaultStrokeWidth),Rt.strokeWidthPanel.onWidthChanged=Rt.setStrokeWidth,Rt.strokeStylePanel=new ee("Line style",xe.defaultStrokeDasharrays,xe.defaultStrokeDasharray),Rt.strokeStylePanel.onStyleChanged=Rt.setStrokeDasharray,Rt.fontFamilyPanel=new Oe("Font",xe.defaultFontFamilies,xe.defaultFontFamily),Rt.fontFamilyPanel.onFontChanged=Rt.setFont,Rt.textColorPanel=new pt("Text color",xe.defaultColorSet,Rt.textColor,Xe),Rt.textColorPanel.onColorChanged=Rt.setTextColor,Rt}return Lt(Ct,te),Ct.prototype.ownsTarget=function(yt){return!(!te.prototype.ownsTarget.call(this,yt)&&yt!==this.visual&&yt!==this.frame&&yt!==this.captionBg&&yt!==this.captionElement)},Ct.prototype.createVisual=function(){this.visual=Wt.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Wt.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Wt.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=Wt.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()},Ct.prototype.setCaptionText=function(yt){this.captionText=yt,this.captionElement.textContent=this.captionText,this.sizeCaption()},Ct.prototype.pointerDown=function(yt,$t){te.prototype.pointerDown.call(this,yt,$t),this.isMoved=!1,this.pointerDownPoint=yt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(yt),this._state="creating")},Ct.prototype.manipulate=function(yt){te.prototype.manipulate.call(this,yt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(yt.x-this.pointerDownPoint.x)>5||Math.abs(yt.y-this.pointerDownPoint.y)>5)},Ct.prototype.resize=function(yt){te.prototype.resize.call(this,yt),this.setSize()},Ct.prototype.sizeCaption=function(){var yt=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=yt.width+2*this.PADDING,this.captionBoxHeight=yt.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Wt.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')"]]),Wt.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')"]])},Ct.prototype.showTextEditor=function(){var yt=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($t){$t.stopPropagation()}),this.textEditBox.addEventListener("keypress",function($t){$t.key==="Enter"&&yt.finishTextEditing(yt.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function($t){$t.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){yt.finishTextEditing(yt.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){yt.finishTextEditing(yt.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Ct.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"))},Ct.prototype.finishTextEditing=function(yt){this.setCaptionText(yt.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Ct.prototype.setFont=function(yt){this.captionElement&&Wt.setAttributes(this.captionElement,[["font-family",yt]]),this.fontFamily=yt,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Ct.prototype.setTextColor=function(yt){this.captionElement&&Wt.setAttributes(this.captionElement,[["fill",yt]]),this.textColor=yt,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Ct.prototype.setSize=function(){te.prototype.setSize.call(this),Wt.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Ct.prototype.pointerUp=function(yt){te.prototype.pointerUp.call(this,yt),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Ct.prototype.dblClick=function(yt,$t){te.prototype.dblClick.call(this,yt,$t),this.showTextEditor()},Ct.prototype.setStrokeColor=function(yt){this.strokeColor=yt,this.frame&&Wt.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(yt),this.stateChanged()},Ct.prototype.setFillColor=function(yt){this.fillColor=yt,this.captionBg&&Wt.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(yt),this.stateChanged()},Ct.prototype.setStrokeWidth=function(yt){this.strokeWidth=yt,this.frame&&Wt.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ct.prototype.setStrokeDasharray=function(yt){this.strokeDasharray=yt,this.frame&&Wt.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var yt=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},te.prototype.getState.call(this));return yt.typeName=this.typeName,yt},Ct.prototype.restoreState=function(yt){var $t=yt;this.fillColor=$t.fillColor,this.strokeColor=$t.strokeColor,this.strokeWidth=$t.strokeWidth,this.strokeDasharray=$t.strokeDasharray,this.textColor=$t.textColor,this.fontFamily=$t.fontFamily,this.captionText=$t.captionText,this.fontSize=$t.fontSize,this.createVisual(),te.prototype.restoreState.call(this,yt),this.setSize()},Ct.prototype.scale=function(yt,$t){te.prototype.scale.call(this,yt,$t),this.setSize()},Ct.typeName="CaptionFrameMarker",Ct.title="Caption frame marker",Ct.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>',Ct}(he),ue=function(){function te(Ct,yt){yt===void 0&&(yt=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Ct,this.cancelable=yt}return Object.defineProperty(te.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),te.prototype.preventDefault=function(){this._defaultPrevented=!0},te}(),Pn=function(te){function Ct(yt,$t,xe){var Rt=te.call(this,yt,!1)||this;return Rt.dataUrl=$t,Rt.state=xe,Rt}return Lt(Ct,te),Ct}(ue),de=function(te){function Ct(yt,$t,xe){xe===void 0&&(xe=!1);var Rt=te.call(this,yt,xe)||this;return Rt.marker=$t,Rt}return Lt(Ct,te),Ct}(ue),Dt=function(){function te(){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 te.prototype.addEventListener=function(Ct,yt){this[Ct].push(yt)},te.prototype.removeEventListener=function(Ct,yt){var $t=this[Ct].indexOf(yt);$t>-1&&this[Ct].splice($t,1)},te}(),Mt=function(){function te(Ct){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Yt,this._isOpen=!1,this.undoRedoManager=new an,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 Dt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=te.instanceCounter++,this.styles=new et(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Ct,this.targetRoot=document.body,this.width=Ct.clientWidth,this.height=Ct.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(te.prototype,"ALL_MARKER_TYPES",{get:function(){return[We,Qe,oe,Ze,Si,Ai,Nn,Vn,Wn,Pe,Ge,Li,Oi]},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[We,Qe,oe,Ze,Ai,Nn,Vn]},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"BASIC_MARKER_TYPES",{get:function(){return[We,Qe,oe,Ze,Nn]},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Ct){var yt=this;this._availableMarkerTypes.splice(0),Ct.forEach(function($t){if(typeof $t=="string"){var xe=yt.ALL_MARKER_TYPES.find(function(Rt){return Rt.typeName===$t});xe!==void 0&&yt._availableMarkerTypes.push(xe)}else yt._availableMarkerTypes.push($t)})},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Ct){this._zoomLevel=Ct,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(te.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),te.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Gt.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},te.prototype.show=function(){var Ct=this;this.styles.styleSheetRoot===void 0&&wt.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=wt.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(yt){return yt(new ue(Ct))})},te.prototype.render=function(){return kt(this,void 0,void 0,function(){var Ct;return Jt(this,function(yt){switch(yt.label){case 0:return this.setCurrentMarker(),(Ct=new qt).naturalSize=this.renderAtNaturalSize,Ct.imageType=this.renderImageType,Ct.imageQuality=this.renderImageQuality,Ct.markersOnly=this.renderMarkersOnly,Ct.width=this.renderWidth,Ct.height=this.renderHeight,[4,Ct.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return yt.sent(),[4,Ct.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,yt.sent()]}})})},te.prototype.close=function(Ct){var yt=this;if(Ct===void 0&&(Ct=!1),this.isOpen){var $t=!1;Ct||this.eventListeners.beforeclose.forEach(function(xe){var Rt=new ue(yt,!0);xe(Rt),Rt.defaultPrevented&&($t=!0)}),$t||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(xe){return xe(new ue(yt))}),this.detachEvents(),this._isOpen=!1)}},te.prototype.addMarkersToToolbar=function(){for(var Ct,yt=[],$t=0;$t<arguments.length;$t++)yt[$t]=arguments[$t];(Ct=this._availableMarkerTypes).push.apply(Ct,yt)},te.prototype.addRenderEventListener=function(Ct){this.addEventListener("render",function(yt){Ct(yt.dataUrl,yt.state)})},te.prototype.removeRenderEventListener=function(Ct){},te.prototype.addCloseEventListener=function(Ct){this.addEventListener("close",function(){Ct()})},te.prototype.removeCloseEventListener=function(Ct){},te.prototype.setupResizeObserver=function(){var Ct=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){Ct.resize(Ct.target.clientWidth,Ct.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return Ct.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},te.prototype.onPopupTargetResize=function(){var Ct=1*this.target.clientWidth/this.target.clientHeight,yt=this.editorCanvas.clientWidth/Ct>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Ct:this.editorCanvas.clientWidth,$t=yt<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Ct;this.resize(yt,$t)},te.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},te.prototype.resize=function(Ct,yt){this._isResizing=!0;var $t=Ct/this.imageWidth,xe=yt/this.imageHeight;this.imageWidth=Math.round(Ct),this.imageHeight=Math.round(yt),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($t,xe),this._isResizing=!1},te.prototype.scaleMarkers=function(Ct,yt){var $t,xe=this;this._currentMarker&&this._currentMarker instanceof Ze?this._currentMarker.scale(Ct,yt):($t=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Rt){Rt!==xe._currentMarker&&Rt.scale(Ct,yt)}),$t!==void 0&&this.setCurrentMarker($t)},te.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"},te.prototype.setTopLeft=function(){var Ct=this.editingTarget.getBoundingClientRect(),yt=this.editorCanvas.getBoundingClientRect();this.left=Ct.left-yt.left,this.top=Ct.top-yt.top},te.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)},te.prototype.addDefs=function(){for(var Ct,yt=[],$t=0;$t<arguments.length;$t++)yt[$t]=arguments[$t];this.defs=Wt.createDefs(),this.addDefsToImage(),(Ct=this.defs).append.apply(Ct,yt)},te.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},te.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)},te.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},te.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},te.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)},te.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},te.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)},te.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 Ct=document.createElement("a");Ct.href="https://markerjs.com/",Ct.target="_blank",Ct.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>',Ct.title="Powered by marker.js",Ct.style.display="grid",Ct.style.alignItems="center",Ct.style.justifyItems="center",Ct.style.padding="3px",Ct.style.width="20px",Ct.style.height="20px",this.logoUI.appendChild(Ct),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},te.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")},te.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"},te.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},te.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 Ct=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=Ct+"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 rt(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 ut(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},te.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},te.prototype.removeMarker=function(Ct){this.markerImage.removeChild(Ct.container),this.markers.indexOf(Ct)>-1&&this.markers.splice(this.markers.indexOf(Ct),1),Ct.dispose()},te.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())},te.prototype.toolbarButtonClicked=function(Ct,yt){if(Ct==="marker"&&yt!==void 0)this.createNewMarker(yt);else if(Ct==="action")switch(yt){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()}},te.prototype.deleteSelectedMarker=function(){var Ct=this;if(this._currentMarker!==void 0){var yt=!1;if(this.eventListeners.markerbeforedelete.forEach(function(xe){var Rt=new de(Ct,Ct._currentMarker,!0);xe(Rt),Rt.defaultPrevented&&(yt=!0)}),!yt){var $t=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(xe){return xe(new de(Ct,$t))})}}},te.prototype.clear=function(){var Ct=this,yt=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(je){var fn=new de(Ct,void 0,!0);je(fn),fn.defaultPrevented&&(yt=!0)}),!yt)){this.setCurrentMarker();for(var $t=function(je){var fn=xe.markers[je];xe.setCurrentMarker(xe.markers[je]),xe._currentMarker.dispose(),xe.markerImage.removeChild(xe._currentMarker.container),xe.markers.splice(xe.markers.indexOf(xe._currentMarker),1),xe.eventListeners.markerdelete.forEach(function(jn){return jn(new de(Ct,fn))})},xe=this,Rt=this.markers.length-1;Rt>=0;Rt--)$t(Rt);this.addUndoStep()}},Object.defineProperty(te.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),te.prototype.showNotesEditor=function(){var Ct;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=(Ct=this._currentMarker.notes)!==null&&Ct!==void 0?Ct:"",this.overlayContainer.appendChild(this.notesArea))},te.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)},te.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},te.prototype.addUndoStep=function(){var Ct=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var yt=this.getState(),$t=this.undoRedoManager.getLastUndoStep();if(!$t||$t.width===yt.width&&$t.height===yt.height){var xe=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(yt),xe<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Rt){return Rt(new ue(Ct))})}else this.undoRedoManager.replaceLastUndoStep(yt),this.eventListeners.statechange.forEach(function(Rt){return Rt(new ue(Ct))})}},te.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},te.prototype.undoStep=function(){var Ct=this,yt=this.undoRedoManager.undo();yt!==void 0&&(this.restoreState(yt),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function($t){return $t(new ue(Ct))}))},te.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},te.prototype.redoStep=function(){var Ct=this,yt=this.undoRedoManager.redo();yt!==void 0&&(this.restoreState(yt),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function($t){return $t(new ue(Ct))}))},te.prototype.stepZoom=function(){var Ct=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Ct<this.zoomSteps.length-1?this.zoomSteps[Ct+1]:this.zoomSteps[0]},te.prototype.panTo=function(Ct){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Ct.x,top:this.prevPanPoint.y-Ct.y}),this.prevPanPoint=Ct},te.prototype.startRenderAndClose=function(){return kt(this,void 0,void 0,function(){var Ct,yt,$t=this;return Jt(this,function(xe){switch(xe.label){case 0:return[4,this.render()];case 1:return Ct=xe.sent(),yt=this.getState(),this.eventListeners.render.forEach(function(Rt){return Rt(new Pn($t,Ct,yt))}),this.close(!0),[2]}})})},te.prototype.getState=function(Ct){Ct===!0&&this.setCurrentMarker();var yt={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function($t){return yt.markers.push($t.getState())}),yt},te.prototype.restoreState=function(Ct){var yt=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Ct.markers.forEach(function($t){var xe=yt._availableMarkerTypes.find(function(je){return je.typeName===$t.typeName});if(xe!==void 0){var Rt=yt.addNewMarker(xe);Rt.restoreState($t),yt.markers.push(Rt)}}),Ct.width&&Ct.height&&(Ct.width!==this.imageWidth||Ct.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/Ct.width,this.imageHeight/Ct.height),this.eventListeners.restorestate.forEach(function($t){return $t(new ue(yt))})},te.prototype.addNewMarker=function(Ct){var yt=Wt.createGroup();return this.markerImage.appendChild(yt),new Ct(yt,this.overlayContainer,this.settings)},te.prototype.createNewMarker=function(Ct){var yt,$t=this;(yt=typeof Ct=="string"?this._availableMarkerTypes.find(function(xe){return xe.typeName===Ct}):Ct)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(yt),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(yt.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(xe){return xe(new de($t,$t._currentMarker))}))},te.prototype.markerCreated=function(Ct){var yt=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Ct),this.setCurrentMarker(Ct),Ct instanceof Qe&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Qe):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function($t){return $t(new de(yt,yt._currentMarker))})},te.prototype.colorChanged=function(Ct){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Ct,this.settings.defaultStrokeColor=Ct)},te.prototype.fillColorChanged=function(Ct){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Ct)},te.prototype.markerStateChanged=function(Ct){var yt=this;this.eventListeners.markerchange.forEach(function($t){return $t(new de(yt,Ct))})},te.prototype.setCurrentMarker=function(Ct){var yt=this;this._currentMarker!==Ct&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function($t){return $t(new de(yt,yt._currentMarker))})),this._currentMarker=Ct,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($t){return $t(new de(yt,yt._currentMarker))}))},te.prototype.onPointerDown=function(Ct){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||Ct.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var yt=this.markers.find(function($t){return $t.ownsTarget(Ct.target)});yt!==void 0?(this.setCurrentMarker(yt),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Ct.clientX,Ct.clientY),Ct.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:Ct.clientX,y:Ct.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Ct.clientX,Ct.clientY))},te.prototype.onDblClick=function(Ct){if(this._isFocused||this.focus(),this.mode==="select"){var yt=this.markers.find(function($t){return $t.ownsTarget(Ct.target)});yt!==void 0&&yt!==this._currentMarker&&this.setCurrentMarker(yt),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Ct.clientX,Ct.clientY),Ct.target):this.setCurrentMarker()}},te.prototype.onPointerMove=function(Ct){this.touchPoints!==1&&Ct.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||Ct.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(Ct.clientX,Ct.clientY)):this.zoomLevel>1&&this.panTo({x:Ct.clientX,y:Ct.clientY}))},te.prototype.onPointerUp=function(Ct){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Ct.clientX,Ct.clientY)),this.isDragging=!1,this.addUndoStep()},te.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},te.prototype.onKeyUp=function(Ct){this._currentMarker===void 0||this.notesArea!==void 0||Ct.key!=="Delete"&&Ct.key!=="Backspace"||this.deleteSelectedMarker()},te.prototype.clientToLocalCoordinates=function(Ct,yt){var $t=this.markerImage.getBoundingClientRect();return{x:(Ct-$t.left)/this.zoomLevel,y:(yt-$t.top)/this.zoomLevel}},te.prototype.onWindowResize=function(){this.positionUI()},te.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Ct=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Ct+"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()},te.prototype.addLicenseKey=function(Ct){Gt.addKey(Ct)},te.prototype.addEventListener=function(Ct,yt){this.eventListeners.addEventListener(Ct,yt)},te.prototype.removeEventListener=function(Ct,yt){this.eventListeners.removeEventListener(Ct,yt)},te.prototype.renderState=function(Ct){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Ct),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(te.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),te.prototype.focus=function(){var Ct=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(yt){return yt(new ue(Ct))}))},te.prototype.blur=function(){var Ct=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(yt){return yt(new ue(Ct))}))},te.instanceCounter=0,te}(),zt=Bt(99064),be=Bt(955),De=(te,Ct,yt)=>new Promise(($t,xe)=>{var Rt=jn=>{try{fn(yt.next(jn))}catch(bn){xe(bn)}},je=jn=>{try{fn(yt.throw(jn))}catch(bn){xe(bn)}},fn=jn=>jn.done?$t(jn.value):Promise.resolve(jn.value).then(Rt,je);fn((yt=yt.apply(te,Ct)).next())}),Ce=({data:te,className:Ct,fullWidth:yt,style:$t={},onClose:xe,onOk:Rt,showFullTools:je,noAssociationId:fn})=>{const jn=(0,bt.useRef)(null),bn=(0,bt.useRef)(null),ci=(0,bt.useRef)(null),Ji=(0,bt.useRef)(null),[zi,dr]=(0,bt.useState)(!1),[Fr,oo]=(0,bt.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,bt.useEffect)(()=>(ci.current||(ci.current=document.createElement("style"),document.head.appendChild(ci.current)),te!=null&&te.visible?(document.body.setAttribute("data-custom","y-hidden"),ci.current.innerHTML=" html { overflow-y: hidden; }",te!=null&&te.src&&Jr()):(document.body.removeAttribute("data-custom"),ci.current&&(document.head.removeChild(ci.current),ci.current=null)),()=>{document.body.removeAttribute("data-custom"),ci.current&&(document.head.removeChild(ci.current),ci.current=null)}),[te==null?void 0:te.visible]);const Jr=()=>De(void 0,null,function*(){dr(!0),oo("\u6B63\u5728\u52A0\u8F7D\u4E2D");const hr=yield(0,be.ZJ)(te==null?void 0:te.src);jn.current.src="",jn.current.src=hr,jn.current.onload=function(){Kr()},dr(!1),oo("")}),zr=hr=>De(void 0,null,function*(){dr(!0),oo("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Mo=yield(0,zt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:te.title,file:hr.dataUrl}});Mo!=null&&Mo.id&&!fn?(yield(0,zt.ZP)(`/api/attachments/${te.id}/add_subitem.json`,{method:"post",body:{subitem_id:Mo==null?void 0:Mo.id,settings:JSON.stringify(hr.state)}})).status===0&&Rt():Mo!=null&&Mo.id&&Rt(Mo),dr(!1),oo("")}),pr=()=>{const hr=document.querySelector('a[href="https://markerjs.com/"]');hr&&hr.parentNode&&(hr.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(Xo=>{const mo=document.querySelector(Xo.name);mo&&mo.setAttribute("title",Xo.title)})},Kr=()=>{bn.current=new Mt(jn.current),bn.current.targetRoot=Ji.current,bn.current.addEventListener("render",zr),bn.current.addEventListener("beforeclose",xe),je&&(bn.current.availableMarkerTypes=bn.current.ALL_MARKER_TYPES,bn.current.uiStyleSettings.redoButtonVisible=!0,bn.current.uiStyleSettings.notesButtonVisible=!0,bn.current.uiStyleSettings.zoomButtonVisible=!0,bn.current.uiStyleSettings.zoomOutButtonVisible=!0,bn.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=bn.current.uiStyleSettings,bn.current.show(),te!=null&&te.snapshotData&&bn.current.restoreState(te.snapshotData),setTimeout(()=>{window.scrollTo(0,0),pr()},300)};return bt.createElement(bt.Fragment,null,(te==null?void 0:te.visible)&&bt.createElement(ie.Z,{spinning:zi,tip:Fr,style:{position:"absolute",width:"100vw"}},bt.createElement("div",{ref:Ji,className:Me()(ge.imageDimensions,Ct,yt?ge.fullWidth:""),style:$t},bt.createElement("img",{className:ge.img,ref:jn}))))}},41588:function(ui,Cn,Bt){"use strict";var bt=Bt(59301),ge=Bt(95237),se=Bt(43604),Me=Bt(99313),ie=Bt(3113),ae=Bt(85149),Lt=Bt(88010),kt=Bt(48136),Jt=Bt(59301);const St=(0,bt.forwardRef)(({callback:Wt,showSaveButton:Gt,value:qt=""},wt)=>{const et=(0,bt.useRef)(),tt=[{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 "}]}]}],lt=[{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}`}]}]}],rt=pt=>{et.current.setValue(et.current.getValue()+" "+pt.value+" ")},ut=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Jt.createElement(ge.Z,{className:Lt.Z.lists,gutter:[10,10]},tt.map((pt,Ft)=>Jt.createElement(se.Z,{flex:"110px",className:Lt.Z.item},Jt.createElement("div",null,Jt.createElement(ae.Z,{value:`$$${pt.value}$$`}),pt.name),Jt.createElement("div",{className:Lt.Z.children},pt.children.map((Tt,_t)=>Jt.createElement("div",{key:_t},Jt.createElement("h1",null,Tt.name),Jt.createElement(ge.Z,{gutter:[10,10]},Tt.data.map((re,he)=>Jt.createElement(se.Z,{key:he,onClick:()=>rt(re),className:Lt.Z.diamond},Jt.createElement(ae.Z,{value:"`$$"+re.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Jt.createElement(ge.Z,{className:Lt.Z.lists,gutter:[10,10]},lt.map((pt,Ft)=>Jt.createElement(se.Z,{flex:"110px",className:Lt.Z.item},Jt.createElement("div",null,Jt.createElement(ae.Z,{value:"`$$"+pt.value+"$$`"}),pt.name),Jt.createElement("div",{className:Lt.Z.children},pt.children.map((Tt,_t)=>Jt.createElement("div",{key:_t},Tt.name&&Jt.createElement("h1",null,Tt.name),Jt.createElement(ge.Z,{gutter:[10,10]},Tt.data.map((re,he)=>Jt.createElement(se.Z,{key:he,onClick:()=>rt(re),className:Lt.Z.diamond},Jt.createElement(ae.Z,{value:"`$$"+re.value+"$$`"}))))))))))}],dt=()=>{var pt=document.createElement("div");pt.innerHTML=et.current.getValue();var Ft=pt.innerText;return Wt&&Wt(Ft),Ft};return(0,bt.useImperativeHandle)(wt,()=>({getData:dt})),Jt.createElement("div",{className:Lt.Z.mathWrap},Jt.createElement(Me.default,{defaultActiveKey:"1",items:ut}),Jt.createElement("math-field",{locale:"zh_cn",className:Lt.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:et,style:{width:800,marginTop:30,fontSize:18}},qt||""),Gt&&Jt.createElement("div",{className:Lt.Z.button},Jt.createElement(ie.ZP,{size:"large",onClick:dt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Cn.Z=St},8797:function(ui,Cn,Bt){"use strict";var bt=Bt(59301),ge=Bt(93314),se=Bt(3113),Me=Object.defineProperty,ie=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,Lt=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,Jt=Object.prototype.propertyIsEnumerable,St=(wt,et,tt)=>et in wt?Me(wt,et,{enumerable:!0,configurable:!0,writable:!0,value:tt}):wt[et]=tt,Wt=(wt,et)=>{for(var tt in et||(et={}))kt.call(et,tt)&&St(wt,tt,et[tt]);if(Lt)for(var tt of Lt(et))Jt.call(et,tt)&&St(wt,tt,et[tt]);return wt},Gt=(wt,et)=>ie(wt,ae(et));const qt=({img:wt,buttonProps:et={},styles:tt={},customText:lt,ButtonText:rt,ButtonClick:ut,Buttonclass:dt,ButtonTwo:pt,imgStyles:Ft,loading:Tt=!1,className:_t=""})=>bt.createElement("section",{className:`tc animated fadeIn ${_t}`,style:Wt({color:"#999",margin:"100px auto",visibility:Tt?"hidden":"visible"},tt)},bt.createElement("img",{src:wt||ge,style:Gt(Wt({},Ft),{pointerEvents:"none",userSelect:"none"})}),bt.createElement("p",{className:"mt20 font14"},lt||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),rt&&bt.createElement(se.ZP,Wt({className:dt,onClick:ut},et),rt),pt&&pt);Cn.Z=qt},23210:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return dt}});var bt=Bt(59301),ge={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},se=Bt(3113),Me=Bt(70557),ie=Bt(23954),ae=Bt(6848),Lt=Bt(955),kt=Bt(94941),Jt=Bt(8797),St=Bt(3294),Wt=Bt(19381),Gt=Bt(59301),qt=Object.defineProperty,wt=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,lt=(pt,Ft,Tt)=>Ft in pt?qt(pt,Ft,{enumerable:!0,configurable:!0,writable:!0,value:Tt}):pt[Ft]=Tt,rt=(pt,Ft)=>{for(var Tt in Ft||(Ft={}))et.call(Ft,Tt)&<(pt,Tt,Ft[Tt]);if(wt)for(var Tt of wt(Ft))tt.call(Ft,Tt)&<(pt,Tt,Ft[Tt]);return pt},ut=(pt,Ft,Tt)=>new Promise((_t,re)=>{var he=ee=>{try{Fe(Tt.next(ee))}catch(We){re(We)}},Ae=ee=>{try{Fe(Tt.throw(ee))}catch(We){re(We)}},Fe=ee=>ee.done?_t(ee.value):Promise.resolve(ee.value).then(he,Ae);Fe((Tt=Tt.apply(pt,Ft)).next())}),dt=({editOffice:pt="view",data:Ft,theme:Tt,type:_t,filename:re,monacoEditor:he,className:Ae,style:Fe,close:ee,onClose:We,hasMask:Yt,disabledDownload:qe,onImgDimensions:Ge,showNodata:Oe,recordInfo:Ze})=>{const[Qe,we]=(0,bt.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[oe,Pe]=(0,bt.useState)(""),[En,Nn]=(0,bt.useState)(),Xe=window.ENV==="build"?"/react/build":"",kn=location.host.startsWith("localhost")?St.Z.PROXY_SERVER:St.Z.API_SERVER,Ai=10*(1024*1024),Wn=(0,bt.useRef)();Ft!=null&&Ft.startsWith("/api")&&_t!=="txt"&&(Ft=St.Z.API_SERVER+Ft);const Si=ue=>ue.substring(ue.lastIndexOf("/")+1).split(".").pop();re&&he&&(he.filename=re),(0,bt.useEffect)(()=>{var ue,Pn;const de=(Pn=(ue=document.cookie)==null?void 0:ue.replace(/\s/g,""))==null?void 0:Pn.split(";");de==null||de.map(Dt=>{let Mt=Dt.split("=");Mt[0]==="_educoder_session"&&Pe(Mt[1])})},[]),(0,bt.useEffect)(()=>{_t==="office"&&(Ft.indexOf("bigfilescdn.")>-1||Ft.indexOf("bigfiles1")>-1?Nn({url:Ft,fileType:Si(Ft),model:Ft.indexOf("model=edit")?"edit":"view"}):an())},[_t,Ft]);const an=()=>ut(void 0,null,function*(){console.log("data:",Ft);let ue=Ft;Ft.startsWith("http")||(ue=location.origin+ue);let Pn=new URL(ue).pathname.split("/").pop();const de=yield(0,kt.gJ)({attachment_id:Pn});de.url=kn+de.url,Nn(de)}),Li=()=>{if(Ft.startsWith("http")||Ft.startsWith("blob:")){Oi();return}(0,Lt.Sv)(re||"educoder",Ft,re)},Oi=()=>{Ze&&(0,Wt.fc)({id:Ze==null?void 0:Ze.id,watch_type:1,course_id:Ze==null?void 0:Ze.course_id}),(0,Lt.Nd)(re||"educoder",decodeURIComponent(Ft))};return Gt.createElement("div",{style:rt({},Fe||{}),className:`${Yt&&ge.bgBlack} ${_t?ge.wrp:"hide"}`},ee&&Gt.createElement("div",{className:ge.close,ref:Wn},!!Ge&&Gt.createElement(ae.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Wn.current},Gt.createElement("span",{onClick:()=>{We(),Ge()}},Gt.createElement("i",{className:"icon-yulanpizhu"}))),!qe&&Gt.createElement(ae.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Wn.current},Gt.createElement("span",{onClick:Oi},Gt.createElement("i",{className:"icon-quxiaozhiding"}))),Gt.createElement(ae.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Wn.current},Gt.createElement("span",{className:"",onClick:We},Gt.createElement("i",{className:"icon-guanbi1"})))),Gt.createElement("div",{className:`${ge[Ae]} ${Ae} ${ge.monaco} ${_t==="txt"?"show":"hide"}`},_t==="txt"&&Gt.createElement(Gt.Fragment,null,Gt.createElement(ie.ZP,rt({},he)))),_t==="audio"&&Gt.createElement("audio",{src:`${(Ft==null?void 0:Ft.indexOf("http://"))>-1||(Ft==null?void 0:Ft.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Ft}`,autoPlay:!0}),_t==="video"&&Gt.createElement(Gt.Fragment,null,(Ft==null?void 0:Ft.indexOf("http"))>-1?Gt.createElement("video",{controls:!0,src:`${Ft}`,autoPlay:!0}):Gt.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Ft}`,autoPlay:!0})),_t==="office"&&En&&Gt.createElement("iframe",{src:`${Xe}/office.html?key=${En.key}&url=${btoa(En.url)}&callbackUrl=${kn+(En.callbackUrl||"")}&fileType=${En.fileType}&title=${En.title||""}&model=${pt}&officeServer=${St.Z.ONLYOFFICE}&disabledDownload=${!!qe}`}),_t==="html"&&Gt.createElement("iframe",{src:Ft+"&disposition=inline"}),_t==="pdf"&&Gt.createElement("iframe",{src:`${Xe}/js/pdfview/index.html?filename=${re||"educoder.pdf"}&url=${encodeURIComponent(Ft)}&disabledDownload=${!!qe}`}),_t==="image"&&Gt.createElement("img",{src:`${(Ft==null?void 0:Ft.indexOf("http://"))>-1||(Ft==null?void 0:Ft.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Ft}`}),(_t==="other"||_t==="download")&&Gt.createElement(Gt.Fragment,null,Oe?Gt.createElement(Jt.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Gt.createElement(se.ZP,{icon:Gt.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Li,disabled:qe},"\u4E0B\u8F7D")}):Gt.createElement(se.ZP,{type:"primary",size:"middle",onClick:Li,disabled:qe},Gt.createElement(Me.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{z:function(){return _t},Z:function(){return re}});var bt=Bt(59301),ge=Bt(50304),se=Bt(24768),Me=Bt(64018),ie=Bt(65157),ae=Bt(3294),Lt=Bt(955),kt=Bt(15342),Jt=Bt(1012),St=Bt(23210),Wt=Bt(59301),qt=({html:he})=>{const Ae=(0,bt.useRef)(null),Fe=(0,bt.useRef)(null),ee=`.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,bt.useEffect)(()=>{const We=Ae.current.attachShadow({mode:"open"});Fe.current=document.createElement("div"),Fe.current.className="markdown-body",Fe.current.innerHTML=he,We.appendChild(Fe.current);const Yt=document.createElement("style");return Yt.textContent=ee,We.appendChild(Yt),()=>{We.innerHTML=""}},[]),(0,bt.useEffect)(()=>{Fe.current&&(Fe.current.innerHTML=he)},[he]),Wt.createElement("div",{ref:Ae})},wt=Object.defineProperty,et=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,rt=(he,Ae,Fe)=>Ae in he?wt(he,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):he[Ae]=Fe,ut=(he,Ae)=>{for(var Fe in Ae||(Ae={}))tt.call(Ae,Fe)&&rt(he,Fe,Ae[Fe]);if(et)for(var Fe of et(Ae))lt.call(Ae,Fe)&&rt(he,Fe,Ae[Fe]);return he};const dt="@\u2581\u2581@",pt="@\u2581@",Ft=/<pre[^>]*>/g;function Tt(he){let Ae=document.createElement("div");return Ae.innerHTML=he,Ae.childNodes.length===0?"":Ae.childNodes[0].nodeValue}const _t=(he,Ae)=>{he=he||"";const Fe=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ee=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,We=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Yt=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ae?he.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Fe,(qe,Ge,Oe,Ze,Qe,we,oe)=>{const Pe=Ge||Ze||we,En=Oe||Qe||oe||"?";return ae.Z.API_SERVER+"/api/attachments/"+Pe+En+"&t="+(0,Lt.Jn)(Pe,Date.now())+(qe.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(he=he.replace(Yt,(qe,Ge,Oe,Ze,Qe,we,oe)=>{const Pe=Ge||Ze||we,En=Oe||Qe||oe||"?";return ae.Z.API_SERVER+"/attachments/download/"+Pe+En+"&t="+(0,Lt.Jn)(Pe,Date.now())+(qe.indexOf(")")>-1?")":"&")}).replace(Fe,(qe,Ge,Oe,Ze,Qe,we,oe)=>{const Pe=Ge||Ze||we,En=Oe||Qe||oe||"?";return ae.Z.API_SERVER+"/api/attachments/"+Pe+En+"&t="+(0,Lt.Jn)(Pe,Date.now())+(qe.indexOf(")")>-1?")":"&")}).replace(ee,(qe,Ge,Oe,Ze,Qe)=>{const we=Ge||Ze,oe=Oe||Qe||"";return'"'+ae.Z.API_SERVER+"/api/attachments/"+we+oe+we+oe+"&t="+(0,Lt.Jn)(we,Date.now())}).replace(We,(qe,Ge,Oe,Ze,Qe)=>{const we=Ge||Ze,oe=Oe||Qe||"";return"("+ae.Z.API_SERVER+"/files/uploads/"+we+oe+we+oe+"&t="+(0,Lt.Jn)(we,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,`
|
|
|
`),he)};var re=({value:he="",className:Ae,showTextOnly:Fe,showLines:ee,style:We={},stylesPrev:Yt={},highlightKeywords:qe,showProgramFill:Ge,isProgramFill:Oe,disabledFill:Ze=!1,programFillValue:Qe,onFillChange:we=En=>{},onFillBlur:oe=()=>{},onFillFocus:Pe=()=>{}})=>{let En=String(he);const[Nn,Xe]=(0,bt.useState)(""),[kn,Vn]=(0,bt.useState)("office"),[Ai,Wn]=(0,bt.useState)([]),Si=(0,bt.useRef)("a"+(0,Jt.Z)()),an={},Li=(te,Ct,yt)=>{const $t=document.createElement(te===pt?"input":"textarea");$t.style.width="100%",$t.style.height=te===pt?"40px":"151px",$t.rows=5,$t.spellcheck=!1,$t.name="edu-program-fill",$t.placeholder="\u8BF7\u8F93\u5165",$t.dataset.id=Ct;const xe=Object.keys(an).length;return an[xe]=$t,`<span class="edu-program-fill-wrap ${te===pt?"":"show"}" style="width:${te===pt?"400px":"100%"}" title=${yt||""}><span>${$t.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Oi(te){return te=te.replace(/!\[.*?\]\(.*?\)/g,""),te=te.replace(/\[.*?\]\(.*?\)/g,""),te=te.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),te=te.replace(/<embed.*?>/g,""),te=te.replace(/<img.*?>/g,""),te=te.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),te=te.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),te=te.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),te=te.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),te}const ue=te=>te.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Ct,yt){let $t=yt.replace(/(\n|\r)/g,"").split("}"),xe=[];return $t.map(Rt=>{Rt!=""&&xe.push(`.${Si.current} ${Rt}`)}),`<style>${xe.join("}")}</style>`}),Pn=(0,bt.useMemo)(()=>{try{const $t=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,xe=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Rt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,je=/\(\/attachments\/download\//g;En=En.replace(je,"("+ae.Z.API_SERVER+"/attachments/download/").replace($t,"("+ae.Z.API_SERVER+"/api/attachments/").replace(xe,'"'+ae.Z.API_SERVER+"/api/attachments/").replace(Rt,'"'+ae.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($t){}if(Ge){let $t=-1;return En=En.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(xe,Rt,je){var fn;return++$t,Li(xe,$t,(fn=Qe==null?void 0:Qe[$t])==null?void 0:fn.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${ue(En||"")}</pre>`}let te=ue(En);te=(0,se.ZP)(te);const Ct=(0,se.ez)();En.match(/\[TOC\]/)&&(te=te.replace("<p>[TOC]</p>",(0,se.Qv)()),(0,se.Iy)()),te=te.replace(/(__special_katext_id_\d+__)/g,($t,xe)=>{const{type:Rt,expression:je}=Ct[xe];return(0,kt.renderToString)(Tt(je)||"",{displayMode:Rt==="block",throwOnError:!1,output:"html"})}),te=te.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,se.AL)();const yt=document.createElement("div");if(yt.innerHTML=te,Fe)return yt.innerText;if(qe){const $t=qe.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return zt(yt,$t),yt.innerHTML}return setTimeout(()=>fe(),500),yt.innerHTML},[En,qe]);(0,bt.useEffect)(()=>{be.current&&be.current.querySelectorAll(["input","textarea"]).forEach(Ct=>{Ct.oninput=de,Ct.onblur=Dt,Ct.onfocus=Mt})},[Ai]),(0,bt.useEffect)(()=>{var te,Ct,yt,$t,xe;if(Qe!=null&&Qe.length)try{const Rt=be.current.querySelectorAll(".edu-program-fill-score"),je=be.current.querySelectorAll('[name="edu-program-fill"]');for(const[fn,jn]of je.entries())jn.value=((te=Qe==null?void 0:Qe[fn])==null?void 0:te.value)||"",((Ct=Qe==null?void 0:Qe[fn])==null?void 0:Ct.type)==="warning"?jn.className="program-fill-warning":((yt=Qe==null?void 0:Qe[fn])==null?void 0:yt.type)==="success"?jn.className="program-fill-success":jn.className="";for(const[fn,jn]of Rt.entries())jn.innerHTML=($t=Qe==null?void 0:Qe[fn])!=null&&$t.score?`${(xe=Qe==null?void 0:Qe[fn])==null?void 0:xe.score}\u5206`:"";Wn(Qe)}catch(Rt){console.log(Rt,"error")}},[Qe]);const de=te=>{Ai[te.target.dataset.id]=Ai[te.target.dataset.id]||{},Ai[te.target.dataset.id].value=te.target.value,Wn([...Ai]),we(Ai,te.target.dataset.id)},Dt=te=>{Ai[te.target.dataset.id]=Ai[te.target.dataset.id]||{},Ai[te.target.dataset.id].value=te.target.value,Wn([...Ai]),oe(Ai,te.target.dataset.id)},Mt=te=>{Ai[te.target.dataset.id]=Ai[te.target.dataset.id]||{},Ai[te.target.dataset.id].value=te.target.value,Wn([...Ai]),Pe(Ai,te.target.dataset.id)};function zt(te,Ct){return te.childNodes.forEach(yt=>{var $t;if(yt.childNodes.length>0)zt(yt,Ct);else if(yt.nodeName!=="IMG")if(yt.innerHTML)yt.innerHTML=($t=yt.innerHTML)==null?void 0:$t.replace(new RegExp(Ct,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const xe=document.createElement("span");xe.innerHTML=yt.textContent.replace(new RegExp(Ct,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),yt.replaceWith(xe)}})}const be=(0,bt.useRef)();se.jb.WebkitLineClamp=ee,ee&&(We=ut(ut({},We),se.jb));function De(te){let Ct=te.target;if(Ct.tagName.toUpperCase()==="A"){let yt=Ct.getAttribute("href");if(yt.indexOf("office")>-1)te.preventDefault(),Xe(yt),Vn("office");else if(yt.indexOf("application/pdf")>-1)te.preventDefault(),Xe(yt),Vn("pdf");else if(yt.indexOf("text/html")>-1)te.preventDefault(),Xe(yt),Vn("html");else if(yt.startsWith("#")){te.preventDefault();let $t=document.getElementById(yt.replace("#",""));$t&&$t.scrollIntoView(!0)}}}const fe=()=>{var te;const Ct=(te=be.current)==null?void 0:te.querySelectorAll("video");Ct==null||Ct.forEach(yt=>{if(yt.oncontextmenu=()=>!1,yt.src.indexOf(".m3u8")>-1&&!yt.canPlayType("application/vnd.apple.mpegurl")){if(ie.ZP.isSupported()){var $t=new ie.ZP;$t.loadSource(yt.src),$t.attachMedia(yt)}}})};(0,bt.useEffect)(()=>{if(be.current&&Pn&&Pn.match(Ft)&&window.PR.prettyPrint(),be.current)return be.current.addEventListener("click",De),()=>{var te;(te=be.current)==null||te.removeEventListener("click",De),(0,se.AL)(),(0,se.Iy)()}},[Pn,be.current,De]),(0,bt.useEffect)(()=>{var te;const Ct=yt=>{yt.preventDefault(),yt.clipboardData.setData("text",window.getSelection().toString())};return(te=be.current)==null||te.addEventListener("copy",Ct),()=>{var yt;(yt=be.current)==null||yt.removeEventListener("copy",Ct)}},[be.current]);const Ce=te=>/<style[\s\S]*?>/i.test(te||"");return bt.createElement(bt.Fragment,null,Fe&&bt.createElement("div",{ref:be},Pn),!Fe&&!Ce(Pn)&&bt.createElement("div",{ref:be,style:ut({},We),className:`${Ae||""} ${Ze?"disabled-fill":""} markdown-body ${Si.current}`,dangerouslySetInnerHTML:{__html:Pn}}),!Fe&&Ce(Pn)&&bt.createElement(qt,{html:Pn}),bt.createElement(St.Z,{close:!0,data:Nn,type:Nn!=null&&Nn.length?kn:"",style:ut({},Yt),onClose:()=>Xe("")}))}},30917:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return We}});var bt=Bt(59301),ge=Bt(89070),se=Bt(43418),Me=Bt(78241),ie=Bt(8591),ae=Bt(71418),Lt=Bt(17574),kt=Bt(95237),Jt=Bt(43604),St=Bt(6848),Wt=Bt(92832),Gt={currentPrimary:"currentPrimary___NPWiR",currentDelete:"currentDelete___UEfhf",DirectoryTree:"DirectoryTree___xPxCY",EditDom:"EditDom___seNxC"},qt=Bt(83312),wt=Bt(24780),et=Bt(8797),tt=Bt(85057),lt=Object.defineProperty,rt=Object.defineProperties,ut=Object.getOwnPropertyDescriptors,dt=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable,Tt=(Yt,qe,Ge)=>qe in Yt?lt(Yt,qe,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Yt[qe]=Ge,_t=(Yt,qe)=>{for(var Ge in qe||(qe={}))pt.call(qe,Ge)&&Tt(Yt,Ge,qe[Ge]);if(dt)for(var Ge of dt(qe))Ft.call(qe,Ge)&&Tt(Yt,Ge,qe[Ge]);return Yt},re=(Yt,qe)=>rt(Yt,ut(qe)),he=(Yt,qe)=>{var Ge={};for(var Oe in Yt)pt.call(Yt,Oe)&&qe.indexOf(Oe)<0&&(Ge[Oe]=Yt[Oe]);if(Yt!=null&&dt)for(var Oe of dt(Yt))qe.indexOf(Oe)<0&&Ft.call(Yt,Oe)&&(Ge[Oe]=Yt[Oe]);return Ge},Ae=(Yt,qe,Ge)=>new Promise((Oe,Ze)=>{var Qe=Pe=>{try{oe(Ge.next(Pe))}catch(En){Ze(En)}},we=Pe=>{try{oe(Ge.throw(Pe))}catch(En){Ze(En)}},oe=Pe=>Pe.done?Oe(Pe.value):Promise.resolve(Pe.value).then(Qe,we);oe((Ge=Ge.apply(Yt,qe)).next())});const Fe=(Yt=[])=>Yt==null?void 0:Yt.map(qe=>re(_t({},qe),{title:(qe==null?void 0:qe.value)||"",key:qe==null?void 0:qe.id,isLeaf:!0})),ee=Yt=>{var qe=Yt,{user:Ge,children:Oe,isShowComponent:Ze=!0,ModalProps:Qe={},onDataSelect:we}=qe,oe=he(qe,["user","children","isShowComponent","ModalProps","onDataSelect"]);const[Pe,En]=se.default.useModal(),[Nn]=Me.default.useForm(),[Xe,kn]=(0,bt.useState)([]),[Vn,Ai]=(0,bt.useState)(!1),[Wn,Si]=(0,bt.useState)(!1),[,an,Li,Oi]=(0,qt.U)(wt.qE,{page:1,limit:9999}),[,,ue]=(0,qt.U)(wt.V8,{}),[,,Pn]=(0,qt.U)(wt.B$,{}),[,,de]=(0,qt.U)(wt.DH,{}),[,,Dt]=(0,qt.U)(wt.bJ,{}),Mt=()=>{Ai(!1),Nn.resetFields(),Si(!1)},zt=De=>Ae(void 0,null,function*(){const{node:fe,dragNode:Ce,event:te}=De,Ct=De.node.pos.split("-"),yt=De.dropPosition-Number(Ct[Ct.length-1]);if(yt==0){ie.ZP.warning("\u65E0\u6CD5\u79FB\u52A8\u5230\u5185\u90E8\u4F4D\u7F6E");return}if(yt==1&&(Ce==null?void 0:Ce.item_index)==(fe==null?void 0:fe.item_index)+1){ie.ZP.warning("\u672A\u79FB\u52A8\u4F4D\u7F6E");return}const $t=yield Dt({id:Ce==null?void 0:Ce.key,position:yt==-1?1:(Ce==null?void 0:Ce.item_index)>(fe==null?void 0:fe.item_index)?(fe==null?void 0:fe.item_index)+1:fe==null?void 0:fe.item_index});($t==null?void 0:$t.status)===0&&(ie.ZP.success("\u79FB\u52A8\u6210\u529F"),Li({},!0))}),be=De=>Ae(void 0,null,function*(){let fe={};Wn?fe=yield Pn(_t({},De)):fe=yield de(_t({},De)),(fe==null?void 0:fe.status)==0&&(ie.ZP.success((fe==null?void 0:fe.message)||(Wn?"\u6DFB\u52A0\u6210\u529F":"\u66F4\u65B0\u6210\u529F")),Li({},!0),Mt())});return(0,bt.useEffect)(()=>{Qe!=null&&Qe.open&&Li({},!0)},[Qe==null?void 0:Qe.open]),(0,bt.useEffect)(()=>{var De;kn(Fe((De=Oi==null?void 0:Oi.data)==null?void 0:De.list))},[Oi]),Ze?bt.createElement(bt.Fragment,null,En,Oe,bt.createElement(se.default,_t({},_t({title:"\u5E38\u7528\u8BC4\u8BED",width:640,centered:!0,footer:null,bodyStyle:{padding:"10px 5px 25px"}},Qe)),bt.createElement(ae.Z,{spinning:an},(Xe==null?void 0:Xe.length)>0?bt.createElement(bt.Fragment,null,bt.createElement(Lt.default.DirectoryTree,{height:500,className:Gt.DirectoryTree,multiple:!0,draggable:{icon:!1},defaultExpandAll:!0,switcherIcon:!1,showIcon:!1,onSelect:we,treeData:Xe,onDrop:zt,titleRender:De=>bt.createElement(bt.Fragment,null,bt.createElement("span",{className:"multi_ellipsis1",style:{flex:1,marginRight:"32px"}},De==null?void 0:De.title),bt.createElement("div",{className:`${Gt.EditDom}`},bt.createElement(kt.Z,{wrap:!1,align:"middle",gutter:16},bt.createElement(Jt.Z,null,bt.createElement(St.Z,{title:"\u957F\u6309\u53EF\u8FDB\u884C\u62D6\u62FD\u6392\u5E8F"},bt.createElement("i",{className:`iconfont icon-tuodong1 font12 ${Gt.currentPrimary}`}))),bt.createElement(Jt.Z,null,bt.createElement(St.Z,{title:"\u7F16\u8F91"},bt.createElement("i",{className:`iconfont icon-bianji11 font12 ${Gt.currentPrimary}`,onClick:fe=>{fe.stopPropagation(),Nn.setFieldsValue(_t({},De)),Ai(!0)}}))),bt.createElement(Jt.Z,null,bt.createElement(St.Z,{title:"\u5220\u9664"},bt.createElement("i",{className:`iconfont icon-shanchu14 font12 ${Gt.currentDelete}`,onClick:fe=>{fe.stopPropagation(),Pe.confirm({icon:null,title:"\u5220\u9664\u5E38\u7528\u8BC4\u8BED",centered:!0,content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u5E38\u7528\u8BC4\u8BED\u5417\uFF1F",onOk:()=>Ae(void 0,null,function*(){const Ce=yield ue({id:De==null?void 0:De.key});(Ce==null?void 0:Ce.status)==0&&(ie.ZP.success((Ce==null?void 0:Ce.message)||"\u5220\u9664\u6210\u529F"),Li({},!0))})})}}))))))}),bt.createElement(tt.op,{className:"ml20 mt20",icon:bt.createElement("i",{className:"iconfont icon-xiaojiahao"}),style:{borderRadius:"4px"},onClick:()=>{Si(!0),Ai(!0)}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED")):bt.createElement(et.Z,{styles:{margin:"30px auto"},customText:bt.createElement("span",null,"\u6682\u65E0\u5E38\u7528\u8BC4\u8BED\uFF0C\u4F60\u53EF\u4EE5",bt.createElement("a",{onClick:()=>{Si(!0),Ai(!0)}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED"))}))),bt.createElement(se.default,{title:Wn?"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED":"\u7F16\u8F91\u5E38\u7528\u8BC4\u8BED",open:Vn,okText:Wn?"\u6DFB\u52A0":"\u786E\u5B9A",onCancel:()=>{Mt()},onOk:()=>{Nn.submit()}},bt.createElement(Me.default,{form:Nn,onFinish:be},Wn&&bt.createElement("span",{className:"font14",style:{color:"#191919"}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED\uFF0C\u53EF\u4EE5\u5E2E\u52A9\u4F60\u63D0\u9AD8\u8BC4\u9605\u4F5C\u4E1A\u7684\u6548\u7387"),bt.createElement(Me.default.Item,{hidden:!0,name:"id"}),bt.createElement(Me.default.Item,{className:"mt10",name:"value"},bt.createElement(Wt.default.TextArea,{placeholder:"\u8F93\u5165\u5E38\u7528\u8BC4\u8BED\u3002\u4F8B\u5982\uFF1A\u4F60\u7684\u7F16\u7A0B\u4F5C\u4E1A\u6574\u4F53\u8868\u73B0\u826F\u597D\uFF0C\u4F46\u4ECD\u6709\u4E00\u4E9B\u5C0F\u7684\u6539\u8FDB\u7A7A\u95F4\u3002",autoSize:{minRows:8,maxRows:9},maxLength:100,showCount:!0}))))):null};var We=(0,ge.connect)(({loading:Yt,user:qe})=>({user:qe,loading:Yt.effects}))(ee)},53932:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{h:function(){return pt},Z:function(){return dt}});var bt=Bt(59301),ge=Bt(57809),se=Bt(78241),Me=Bt(3113),ie=Bt(89780),ae=Bt.n(ie),Lt=Bt(37036),kt=Object.defineProperty,Jt=Object.defineProperties,St=Object.getOwnPropertyDescriptors,Wt=Object.getOwnPropertySymbols,Gt=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable,wt=(Ft,Tt,_t)=>Tt in Ft?kt(Ft,Tt,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Ft[Tt]=_t,et=(Ft,Tt)=>{for(var _t in Tt||(Tt={}))Gt.call(Tt,_t)&&wt(Ft,_t,Tt[_t]);if(Wt)for(var _t of Wt(Tt))qt.call(Tt,_t)&&wt(Ft,_t,Tt[_t]);return Ft},tt=(Ft,Tt)=>Jt(Ft,St(Tt));const lt=ge.default.Option,rt={labelCol:{span:4},wrapperCol:{span:20}},ut={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};var dt=({callback:Ft,onCancel:Tt})=>{const[_t,re]=(0,bt.useState)("python");function he(Fe){re(ut[Fe][1])}function Ae(Fe){Ft(Fe)}return bt.createElement(se.default,tt(et({},rt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ae,style:{width:500}}),bt.createElement(se.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},bt.createElement(ge.default,{getPopupContainer:Fe=>Fe.parentNode,onChange:he},Object.keys(ut).map(Fe=>bt.createElement(lt,{key:Fe,value:Fe},ut[Fe][0])))),bt.createElement(se.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},bt.createElement(pt,{mode:_t})),bt.createElement("div",{className:"flex-container flex-end"},bt.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),bt.createElement(Me.ZP,{type:"ghost",onClick:Tt},"\u53D6\u6D88")))};function pt({value:Ft,onChange:Tt,mode:_t,options:re={}}){const he=(0,bt.useRef)(),[Ae,Fe]=(0,bt.useState)();return(0,bt.useEffect)(()=>{if(Ae){let ee=function(We){const Yt=We.getValue();Tt&&Tt(Yt)};return Ae.on("change",ee),()=>{Ae.off("change",ee)}}},[Ae,Tt]),(0,bt.useEffect)(()=>{Ae&&Ae.setOption("mode",_t)},[Ae,_t]),(0,bt.useEffect)(()=>{Ae&&(Ft!==Ae.getValue()||Ft==="")&&setTimeout(()=>{Ae.setValue(Ft||"")},300)},[Ae,Ft]),(0,bt.useEffect)(()=>{if(he.current&&!Ae){const ee=ae().fromTextArea(he.current,et({mode:_t,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},re));Fe(ee)}},[he.current,Ae]),bt.createElement("div",{className:"my-codemirror-container"},bt.createElement("textarea",{ref:he}))}},12290:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return br}});var bt=Bt(59301),ge=Bt(89780),se=Bt.n(ge),Me=Bt(76374),ie=Bt(37036),ae=Bt(6313),Lt=Bt(25717),kt=Bt(99498),Jt=Bt(25419),St=Bt(67549),Wt=Bt(85149),Gt=({value:Un="",className:On,showTextOnly:Re,showLines:hi,style:en={}})=>{const gn=(0,bt.useMemo)(()=>"",[Un]);return bt.createElement(bt.Fragment,null,bt.createElement("div",{dangerouslySetInnerHTML:{__html:gn}}))},qt=Bt(59301),wt=Object.defineProperty,et=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,dt=(Un,On,Re)=>On in Un?wt(Un,On,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Un[On]=Re,pt=(Un,On)=>{for(var Re in On||(On={}))rt.call(On,Re)&&dt(Un,Re,On[Re]);if(lt)for(var Re of lt(On))ut.call(On,Re)&&dt(Un,Re,On[Re]);return Un},Ft=(Un,On)=>et(Un,tt(On));let Tt=[{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 _t({onActionCallback:Un,title:On,icon:Re,actionName:hi,className:en="",children:gn}){function Ve(){Un(hi)}return qt.createElement("a",{title:On,className:en,onClick:Ve},qt.createElement("i",{className:`${Re}`}),gn)}var re=({watch:Un,showNullButton:On,showNullProgramButton:Re,onActionCallback:hi,fullScreen:en,insertTemp:gn,hidetoolBar:Ve,extraUse:ni})=>{const Bi=[...Tt,{title:`${Un?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Un?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return qt.createElement("ul",{className:"markdown-toolbar-container"},!Ve&&Bi.map((_i,tr)=>qt.createElement("li",{key:tr},_i.actionName?qt.createElement(_t,Ft(pt({},_i),{onActionCallback:hi})):qt.createElement("span",{className:"v-line"}))),On?qt.createElement("li",null,qt.createElement(_t,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:hi},qt.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Re?qt.createElement(qt.Fragment,null,qt.createElement("li",null,qt.createElement(_t,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:hi},qt.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),qt.createElement("li",null,qt.createElement(_t,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:hi},qt.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,gn&&qt.createElement("li",null,qt.createElement(_t,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${gn}`,onActionCallback:hi},qt.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),ni&&qt.createElement("li",null,ni),qt.createElement("li",{className:"btn-full-screen"},qt.createElement(_t,{icon:`${en?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:en?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:hi})))},he=Bt(79346),Ae=Bt(78241),Fe=Bt(92832),ee=Bt(3113),We=Object.defineProperty,Yt=Object.defineProperties,qe=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,Qe=(Un,On,Re)=>On in Un?We(Un,On,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Un[On]=Re,we=(Un,On)=>{for(var Re in On||(On={}))Oe.call(On,Re)&&Qe(Un,Re,On[Re]);if(Ge)for(var Re of Ge(On))Ze.call(On,Re)&&Qe(Un,Re,On[Re]);return Un},oe=(Un,On)=>Yt(Un,qe(On));const Pe={labelCol:{span:4},wrapperCol:{span:20}};var En=({callback:Un,onCancel:On})=>{function Re(hi){Un(hi)}return bt.createElement(Ae.default,oe(we({},Pe),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Re,style:{width:500}}),bt.createElement(Ae.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},bt.createElement(Fe.default,null)),bt.createElement(Ae.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},bt.createElement(Fe.default,null)),bt.createElement("div",{className:"flex-container flex-end"},bt.createElement(ee.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),bt.createElement(ee.ZP,{type:"ghost",onClick:On},"\u53D6\u6D88")))},Nn=Bt(53932),Xe=Bt(28451),kn=Bt(43418),Vn=Bt(95237),Ai=Bt(16406),Wn=Bt(59301),Si=({callback:Un,onCancel:On})=>{const Re=document.createElement("canvas"),hi=Re.getContext("2d");Re.width=1e3,Re.height=800,hi.fillStyle="#ffffff",hi.fillRect(0,0,Re.width,Re.height);const en=Re.toDataURL("image/png");return Wn.createElement(kn.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Wn.createElement(Vn.Z,{style:{height:"100vh"}},Wn.createElement(Ai.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:en,visible:!0,title:String(Date.now())},onOk:gn=>{Un({src:gn.url})},onClose:On})))},an=Bt(12378);function Li(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Li,go.CommandHandler),Li.prototype.canAlignSelection=function(){var Un=this.diagram;return!(Un===null||Un.isReadOnly||Un.isModelReadOnly||Un.selection.count<2)},Li.prototype.alignLeft=function(){var Un=this.diagram;Un.startTransaction("aligning left");var On=1/0;Un.selection.each(function(Re){Re instanceof go.Link||(On=Math.min(Re.position.x,On))}),Un.selection.each(function(Re){Re instanceof go.Link||Re.move(new go.Point(On,Re.position.y))}),Un.commitTransaction("aligning left")},Li.prototype.alignRight=function(){var Un=this.diagram;Un.startTransaction("aligning right");var On=-1/0;Un.selection.each(function(Re){if(!(Re instanceof go.Link)){var hi=Re.actualBounds.x+Re.actualBounds.width;On=Math.max(hi,On)}}),Un.selection.each(function(Re){Re instanceof go.Link||Re.move(new go.Point(On-Re.actualBounds.width,Re.position.y))}),Un.commitTransaction("aligning right")},Li.prototype.alignTop=function(){var Un=this.diagram;Un.startTransaction("alignTop");var On=1/0;Un.selection.each(function(Re){Re instanceof go.Link||(On=Math.min(Re.position.y,On))}),Un.selection.each(function(Re){Re instanceof go.Link||Re.move(new go.Point(Re.position.x,On))}),Un.commitTransaction("alignTop")},Li.prototype.alignBottom=function(){var Un=this.diagram;Un.startTransaction("aligning bottom");var On=-1/0;Un.selection.each(function(Re){if(!(Re instanceof go.Link)){var hi=Re.actualBounds.y+Re.actualBounds.height;On=Math.max(hi,On)}}),Un.selection.each(function(Re){Re instanceof go.Link||Re.move(new go.Point(Re.actualBounds.x,On-Re.actualBounds.height))}),Un.commitTransaction("aligning bottom")},Li.prototype.alignCenterX=function(){var Un=this.diagram,On=Un.selection.first();if(On){Un.startTransaction("aligning Center X");var Re=On.actualBounds.x+On.actualBounds.width/2;Un.selection.each(function(hi){hi instanceof go.Link||hi.move(new go.Point(Re-hi.actualBounds.width/2,hi.actualBounds.y))}),Un.commitTransaction("aligning Center X")}},Li.prototype.alignCenterY=function(){var Un=this.diagram,On=Un.selection.first();if(On){Un.startTransaction("aligning Center Y");var Re=On.actualBounds.y+On.actualBounds.height/2;Un.selection.each(function(hi){hi instanceof go.Link||hi.move(new go.Point(hi.actualBounds.x,Re-hi.actualBounds.height/2))}),Un.commitTransaction("aligning Center Y")}},Li.prototype.alignColumn=function(Un){var On=this.diagram;On.startTransaction("align Column"),Un===void 0&&(Un=0),Un=parseFloat(Un);var Re=new Array;On.selection.each(function(ni){ni instanceof go.Link||Re.push(ni)});for(var hi=0;hi<Re.length-1;hi++){var en=Re[hi],gn=en.actualBounds.y+en.actualBounds.height+Un,Ve=Re[hi+1];Ve.move(new go.Point(en.actualBounds.x,gn))}On.commitTransaction("align Column")},Li.prototype.alignRow=function(Un){Un===void 0&&(Un=0),Un=parseFloat(Un);var On=this.diagram;On.startTransaction("align Row");var Re=new Array;On.selection.each(function(ni){ni instanceof go.Link||Re.push(ni)});for(var hi=0;hi<Re.length-1;hi++){var en=Re[hi],gn=en.actualBounds.x+en.actualBounds.width+Un,Ve=Re[hi+1];Ve.move(new go.Point(gn,en.actualBounds.y))}On.commitTransaction("align Row")},Li.prototype.canRotate=function(Un){var On=this.diagram;return!(On===null||On.isReadOnly||On.isModelReadOnly||On.selection.count<1)},Li.prototype.rotate=function(Un){Un===void 0&&(Un=90);var On=this.diagram;On.startTransaction("rotate "+Un.toString());var On=this.diagram;On.selection.each(function(Re){Re instanceof go.Link||Re instanceof go.Group||(Re.angle+=Un)}),On.commitTransaction("rotate "+Un.toString())},Li.prototype.pullToFront=function(){var Un=this.diagram;Un.startTransaction("pullToFront");var On=new go.Map;Un.selection.each(function(Re){On.set(Re.layer,0)}),On.iteratorKeys.each(function(Re){var hi=0;Re.parts.each(function(en){if(!en.isSelected){var gn=en.zOrder;isNaN(gn)?en.zOrder=0:hi=Math.max(hi,gn)}}),On.set(Re,hi)}),Un.selection.each(function(Re){Li._assignZOrder(Re,On.get(Re.layer)+1)}),Un.commitTransaction("pullToFront")},Li.prototype.pushToBack=function(){var Un=this.diagram;Un.startTransaction("pushToBack");var On=new go.Map;Un.selection.each(function(Re){On.set(Re.layer,0)}),On.iteratorKeys.each(function(Re){var hi=0;Re.parts.each(function(en){if(!en.isSelected){var gn=en.zOrder;isNaN(gn)?en.zOrder=0:hi=Math.min(hi,gn)}}),On.set(Re,hi)}),Un.selection.each(function(Re){Li._assignZOrder(Re,On.get(Re.layer)-1-Li._findGroupDepth(Re))}),Un.commitTransaction("pushToBack")},Li._assignZOrder=function(Un,On,Re){Re===void 0&&(Re=Un),Un.layer===Re.layer&&(Un.zOrder=On),Un instanceof go.Group&&Un.memberParts.each(function(hi){Li._assignZOrder(hi,On+1,Re)})},Li._findGroupDepth=function(Un){if(Un instanceof go.Group){var On=0;return Un.memberParts.each(function(Re){On=Math.max(On,Li._findGroupDepth(Re))}),On+1}else return 0},Li.prototype.doKeyDown=function(){var Un=this.diagram;if(Un!==null){var On=Un.lastInput;if(On.key==="Up"||On.key==="Down"||On.key==="Left"||On.key==="Right"){var Re=this.arrowKeyBehavior;if(Re==="none")return;if(Re==="select"){this._arrowKeySelect();return}else if(Re==="move"){this._arrowKeyMove();return}else if(Re==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Li.prototype._getAllParts=function(){var Un=new Array;return this.diagram.nodes.each(function(On){Un.push(On)}),this.diagram.parts.each(function(On){Un.push(On)}),Un},Li.prototype._arrowKeyMove=function(){var Un=this.diagram,On=Un.lastInput,Re=0,hi=0;if(On.control||On.meta)Re=1,hi=1;else if(Un.grid!==null){var en=Un.grid.gridCellSize;hi=en.width,Re=en.height}Un.startTransaction("arrowKeyMove"),Un.selection.each(function(gn){On.key==="Up"?gn.move(new go.Point(gn.actualBounds.x,gn.actualBounds.y-Re)):On.key==="Down"?gn.move(new go.Point(gn.actualBounds.x,gn.actualBounds.y+Re)):On.key==="Left"?gn.move(new go.Point(gn.actualBounds.x-hi,gn.actualBounds.y)):On.key==="Right"&&gn.move(new go.Point(gn.actualBounds.x+hi,gn.actualBounds.y))}),Un.commitTransaction("arrowKeyMove")},Li.prototype._arrowKeySelect=function(){var Un=this.diagram,On=Un.lastInput,Re=null;On.key==="Up"?Re=this._findNearestPartTowards(270):On.key==="Down"?Re=this._findNearestPartTowards(90):On.key==="Left"?Re=this._findNearestPartTowards(180):On.key==="Right"&&(Re=this._findNearestPartTowards(0)),Re!==null&&(On.shift?Re.isSelected=!0:On.control||On.meta?Re.isSelected=!Re.isSelected:Un.select(Re))},Li.prototype._findNearestPartTowards=function(Un){var On=this.diagram.selection.first();if(On===null)return null;for(var Re=On.actualBounds.center,hi=this._getAllParts(),en=1/0,gn=On,Ve=0;Ve<hi.length;Ve++){var ni=hi[Ve];if(ni!==On&&ni.canSelect()){var Bi=ni.actualBounds.center,_i=Re.directionPoint(Bi),tr=this._angleCloseness(_i,Un);if(tr<=45){var sn=Re.distanceSquaredPoint(Bi);sn*=1+Math.sin(tr*Math.PI/180),sn<en&&(en=sn,gn=ni)}}}return gn},Li.prototype._angleCloseness=function(Un,On){return Math.min(Math.abs(On-Un),Math.min(Math.abs(On+360-Un),Math.abs(On-360-Un)))},Li.prototype._arrowKeyTree=function(){var Un=this.diagram,On=Un.selection.first();if(On instanceof go.Node){var Re=Un.lastInput;if(Re.key==="Right"){if(!On.isTreeLeaf)if(!On.isTreeExpanded)Un.commandHandler.canExpandTree(On)&&Un.commandHandler.expandTree(On);else{var hi=this._sortTreeChildrenByY(On).first();hi!==null&&Un.select(hi)}}else if(Re.key==="Left")if(!On.isTreeLeaf&&On.isTreeExpanded)Un.commandHandler.canCollapseTree(On)&&Un.commandHandler.collapseTree(On);else{var en=On.findTreeParentNode();en!==null&&Un.select(en)}else if(Re.key==="Up"){var en=On.findTreeParentNode();if(en!==null){var gn=this._sortTreeChildrenByY(en),Ve=gn.indexOf(On);if(Ve>0){for(var ni=gn.elt(Ve-1);ni!==null&&ni.isTreeExpanded&&!ni.isTreeLeaf;){var Bi=this._sortTreeChildrenByY(ni);ni=Bi.last()}ni!==null&&Un.select(ni)}else Un.select(en)}}else if(Re.key==="Down")if(On.isTreeExpanded&&!On.isTreeLeaf){var hi=this._sortTreeChildrenByY(On).first();hi!==null&&Un.select(hi)}else for(;On!==null;){var en=On.findTreeParentNode();if(en===null)break;var gn=this._sortTreeChildrenByY(en),Ve=gn.indexOf(On);if(Ve<gn.length-1){Un.select(gn.elt(Ve+1));break}else On=en}var _i=Un.selection.first();_i!==null&&Un.scrollToRect(_i.actualBounds)}},Li.prototype._sortTreeChildrenByY=function(Un){var On=new go.List().addAll(Un.findTreeChildrenNodes());return On.sort(function(Re,hi){var en=Re.location,gn=hi.location;return en.y<gn.y?-1:en.y>gn.y?1:en.x<gn.x?-1:en.x>gn.x?1:0}),On},Li.prototype.copyToClipboard=function(Un){go.CommandHandler.prototype.copyToClipboard.call(this,Un),this._lastPasteOffset.set(this.pasteOffset)},Li.prototype.pasteFromClipboard=function(){var Un=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Un,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Un},Object.defineProperty(Li.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Un){if(Un!=="move"&&Un!=="select"&&Un!=="scroll"&&Un!=="tree"&&Un!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Un);this._arrowKeyBehavior=Un}}),Object.defineProperty(Li.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Un){if(!(Un instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Un);this._pasteOffset.set(Un)}});var Oi=Li,ue=Bt(74413),Pn=Bt(43604),de=Bt(99064),Dt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Mt=Bt(24065),zt=Bt(59301),be=(Un,On,Re)=>new Promise((hi,en)=>{var gn=Bi=>{try{ni(Re.next(Bi))}catch(_i){en(_i)}},Ve=Bi=>{try{ni(Re.throw(Bi))}catch(_i){en(_i)}},ni=Bi=>Bi.done?hi(Bi.value):Promise.resolve(Bi.value).then(gn,Ve);ni((Re=Re.apply(Un,On)).next())});function De({onCancel:Un,callback:On}){let Re=(0,bt.useRef)(),hi=(0,bt.useRef)(),en=(0,bt.useRef)(),gn=(0,bt.useRef)(!1);const Ve=(0,bt.useRef)(!1),[ni,Bi]=(0,bt.useState)(0);function _i(){const sn=an.bx.make,fi={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"};Re.current=new an.S0(hi.current,{padding:20,grid:sn(an.s_,"Grid",sn(an.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),sn(an.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:or=>{var Er=or.diagram.commandHandler.addTopLevelParts(or.diagram.selection,!0);Er||or.diagram.currentTool.doCancel()},commandHandler:sn(Oi),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:or=>{var Er=or.subject;Er.location=Er.location.copy().snapToGridPoint(or.diagram.grid.gridOrigin,or.diagram.grid.gridCellSize),setTimeout(()=>{or.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:or=>{var Er=or.subject;setTimeout(()=>{or.diagram.commandHandler.editTextBlock()})},LinkRelinked:or=>{var Er=or.parameter.part;Er.invalidateConnectedLinks();var no=or.subject;or.diagram.toolManager.linkingTool.isForwards?no.toNode.invalidateConnectedLinks():no.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Re.current.nodeTemplate=sn(an.NB,"Auto",{locationSpot:an.z6.Center,locationObjectName:"SHAPE",desiredSize:new an.$u(120,60),minSize:new an.$u(40,40),resizable:!0,resizeCellSize:new an.$u(10,10),rotatable:!0},new an.KX("location","loc",an.E9.parse).makeTwoWay(an.E9.stringify),new an.KX("desiredSize","size",an.$u.parse).makeTwoWay(an.$u.stringify),sn(an.bn,{name:"SHAPE",fill:fi.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:an.z6.AllSides,toSpot:an.z6.AllSides},new an.KX("figure"),new an.KX("fill"),new an.KX("stroke","borderColor"),new an.KX("strokeWidth","thickness"),new an.KX("strokeDashArray","dash")),sn(an.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),sn(an.al,{margin:1,textAlign:"center",overflow:an.al.OverflowEllipsis,editable:!0},new an.KX("text").makeTwoWay(),new an.KX("stroke","color"))),Re.current.nodeTemplate.toolTip=sn("ToolTip",sn(an.s_,"Vertical",{maxSize:new an.$u(200,NaN)},sn(an.al,{font:"bold 10pt sans-serif",textAlign:"center"},new an.KX("text")),sn(an.al,{font:"10pt sans-serif",textAlign:"center"},new an.KX("text","details"))));function Zi(or,Er){var no=(Lr,Wr)=>{Lr.handled=!0,Lr.diagram.model.commit(wo=>{var fo=Wr.part.adornedPart,xo=new an.E9().setRectSpot(fo.actualBounds,or);xo.subtract(fo.location),xo.scale(2,2),xo.x+=Math.sign(xo.x)*130,xo.y+=Math.sign(xo.y)*130,xo.add(fo.location),xo.snapToGridPoint(Lr.diagram.grid.gridOrigin,Lr.diagram.grid.gridCellSize);var _r=wo.copyNodeData(fo.data);wo.setGroupKeyForNodeData(_r,wo.getGroupKeyForNodeData(fo.data)),wo.addNodeData(_r);var Ci={from:fo.key,to:wo.getKeyForNodeData(_r)};wo.addLinkData(Ci);var Qo=Lr.diagram.findNodeForData(_r);Qo.location=xo,Lr.diagram.select(Qo),setTimeout(()=>{Lr.diagram.commandHandler.editTextBlock()},20)})};return sn(an.bn,{figure:Er,alignment:or,alignmentFocus:or.opposite(),width:or.equals(an.z6.Top)||or.equals(an.z6.Bottom)?25:18,height:or.equals(an.z6.Top)||or.equals(an.z6.Bottom)?18:25,fill:"orange",stroke:fi.white,strokeWidth:4,mouseEnter:(Lr,Wr)=>Wr.fill="dodgerblue",mouseLeave:(Lr,Wr)=>Wr.fill="orange",isActionable:!0,click:no,contextClick:no})}function Tr(or){return sn(an.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:(Er,no)=>no.fill="dodgerblue",mouseLeave:(Er,no)=>no.fill="orange",click:(Er,no)=>{Er.diagram.commandHandler.showContextMenu(no.part.adornedPart)}},or||{})}Re.current.nodeTemplate.selectionAdornmentTemplate=sn(an.uz,"Spot",sn(an.Vm,{padding:10}),Zi(an.z6.Top,"TriangleUp"),Zi(an.z6.Left,"TriangleLeft"),Zi(an.z6.Right,"TriangleRight"),Zi(an.z6.Bottom,"TriangleDown"),Tr({alignment:new an.z6(.75,0)}));function ii(or,Er){return(no,Lr)=>{no.handled=!0,no.diagram.model.commit(Wr=>{Wr.set(Lr.part.adornedPart.data,or,Er)})}}function xi(or,Er){return Er||(Er="color"),sn(an.bn,{width:16,height:16,stroke:"lightgray",fill:or,margin:1,background:"transparent",mouseEnter:(no,Lr)=>Lr.stroke="dodgerblue",mouseLeave:(no,Lr)=>Lr.stroke="lightgray",click:ii(Er,or),contextClick:ii(Er,or)})}function fr(){return[sn("ContextMenuButton",sn(an.s_,"Horizontal",xi(fi.white,"fill"),xi(fi.beige,"fill"),xi(fi.extralightblue,"fill"),xi(fi.extralightred,"fill"))),sn("ContextMenuButton",sn(an.s_,"Horizontal",xi(fi.lightgray,"fill"),xi(fi.lightgreen,"fill"),xi(fi.lightblue,"fill"),xi(fi.lightred,"fill")))]}function mi(){return[sn("ContextMenuButton",sn(an.s_,"Horizontal",xi(fi.black),xi(fi.green),xi(fi.blue),xi(fi.red))),sn("ContextMenuButton",sn(an.s_,"Horizontal",xi(fi.white),xi(fi.magenta),xi(fi.purple),xi(fi.orange)))]}function wi(or,Er){return Er||(Er="thickness"),sn(an.bn,"LineH",{width:16,height:16,strokeWidth:or,margin:1,background:"transparent",mouseEnter:(no,Lr)=>Lr.background="dodgerblue",mouseLeave:(no,Lr)=>Lr.background="transparent",click:ii(Er,or),contextClick:ii(Er,or)})}function yi(or,Er){return Er||(Er="dash"),sn(an.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:or,margin:1,background:"transparent",mouseEnter:(no,Lr)=>Lr.background="dodgerblue",mouseLeave:(no,Lr)=>Lr.background="transparent",click:ii(Er,or),contextClick:ii(Er,or)})}function nr(){return[sn("ContextMenuButton",sn(an.s_,"Horizontal",wi(1),wi(2),wi(3),wi(4))),sn("ContextMenuButton",sn(an.s_,"Horizontal",yi(null),yi([2,4]),yi([4,4])))]}function sr(or,Er){return Er||(Er="figure"),sn(an.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:or,margin:1,background:"transparent",mouseEnter:(no,Lr)=>Lr.fill="dodgerblue",mouseLeave:(no,Lr)=>Lr.fill="lightgray",click:ii(Er,or),contextClick:ii(Er,or)})}Re.current.nodeTemplate.contextMenu=sn("ContextMenu",sn("ContextMenuButton",sn(an.s_,"Horizontal",sr("Rectangle"),sr("RoundedRectangle"),sr("Ellipse"),sr("Diamond"))),sn("ContextMenuButton",sn(an.s_,"Horizontal",sr("Parallelogram2"),sr("ManualOperation"),sr("Procedure"),sr("Cylinder1"))),sn("ContextMenuButton",sn(an.s_,"Horizontal",sr("Terminator"),sr("CreateRequest"),sr("Document"),sr("TriangleDown"))),fr(),mi(),nr()),Re.current.groupTemplate=sn(an.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:an.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(or,Er)=>{var no=Er.addMembers(Er.diagram.selection,!0);no||Er.diagram.currentTool.doCancel()},avoidable:!1},new an.KX("location","loc",an.E9.parse).makeTwoWay(an.E9.stringify),sn(an.s_,"Auto",{name:"BODY"},sn(an.bn,{parameter1:10,fill:fi.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:an.z6.AllSides,toSpot:an.z6.AllSides},new an.KX("fill"),new an.KX("stroke","color"),new an.KX("strokeWidth","thickness"),new an.KX("strokeDashArray","dash")),sn(an.Vm,{background:"transparent",margin:20})),sn(an.al,{alignment:an.z6.Top,alignmentFocus:an.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new an.KX("text"),new an.KX("stroke","color"))),Re.current.groupTemplate.selectionAdornmentTemplate=sn(an.uz,"Spot",sn(an.s_,"Auto",sn(an.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),sn(an.Vm,{margin:1.5})),Tr({alignment:an.z6.TopRight,alignmentFocus:an.z6.BottomRight})),Re.current.groupTemplate.contextMenu=sn("ContextMenu",fr(),mi(),nr()),Re.current.linkTemplate=sn(an.rU,{layerName:"Foreground",routing:an.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new an.KX("fromSpot","fromSpot",an.z6.parse),new an.KX("toSpot","toSpot",an.z6.parse),new an.KX("fromShortLength","dir",or=>or>=1?10:0),new an.KX("toShortLength","dir",or=>or>=1?10:0),new an.KX("points").makeTwoWay(),sn(an.bn,{strokeWidth:2},new an.KX("stroke","color"),new an.KX("strokeWidth","thickness"),new an.KX("strokeDashArray","dash")),sn(an.bn,{segmentIndex:0,segmentOffset:new an.E9(15,0),segmentOrientation:an.rU.OrientAlong,alignmentFocus:an.z6.Right,figure:"circle",width:10,strokeWidth:0},new an.KX("fill","color"),new an.KX("visible","dir",or=>or===1)),sn(an.bn,{segmentIndex:-1,segmentOffset:new an.E9(-10,6),segmentOrientation:an.rU.OrientPlus90,alignmentFocus:an.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new an.KX("fill","color"),new an.KX("visible","dir",or=>or>=1),new an.KX("width","thickness",or=>7+3*or),new an.KX("height","thickness",or=>7+3*or),new an.KX("segmentOffset","thickness",or=>new an.E9(-15,4+1.5*or))),sn(an.bn,{segmentIndex:0,segmentOffset:new an.E9(15,-6),segmentOrientation:an.rU.OrientMinus90,alignmentFocus:an.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new an.KX("fill","color"),new an.KX("visible","dir",or=>or===2),new an.KX("width","thickness",or=>7+3*or),new an.KX("height","thickness",or=>7+3*or),new an.KX("segmentOffset","thickness",or=>new an.E9(-15,4+1.5*or))),sn(an.al,{alignmentFocus:new an.z6(0,1,-4,0),editable:!0},new an.KX("text").makeTwoWay(),new an.KX("stroke","color"))),Re.current.linkTemplate.selectionAdornmentTemplate=sn(an.uz,sn(an.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Rr(2)},new an.KX("pathPattern","thickness",Rr)),Tr({alignmentFocus:new an.z6(0,0,-6,-4)}));function Rr(or){return sn(an.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(or+4).toString()+" H3"})}function Zr(or){var Er="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return or===0?Er="M0 0 M16 16 M0 8 L16 8":or===2&&(Er="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),sn(an.bn,{geometryString:Er,margin:2,background:"transparent",mouseEnter:(no,Lr)=>Lr.background="dodgerblue",mouseLeave:(no,Lr)=>Lr.background="transparent",click:ii("dir",or),contextClick:ii("dir",or)})}function Xr(or){var Er=(no,Lr)=>{no.handled=!0,no.diagram.model.commit(Wr=>{var wo=Lr.part.adornedPart;Wr.set(wo.data,or?"toSpot":"fromSpot",an.z6.stringify(an.z6.AllSides)),(or?wo.toNode:wo.fromNode).invalidateConnectedLinks()})};return sn(an.bn,{width:12,height:12,fill:"transparent",mouseEnter:(no,Lr)=>Lr.background="dodgerblue",mouseLeave:(no,Lr)=>Lr.background="transparent",click:Er,contextClick:Er})}function ei(or,Er){var no=0,Lr=an.z6.RightSide;or.equals(an.z6.Top)?(no=270,Lr=an.z6.TopSide):or.equals(an.z6.Left)?(no=180,Lr=an.z6.LeftSide):or.equals(an.z6.Bottom)&&(no=90,Lr=an.z6.BottomSide),Er||(no-=180);var Wr=(wo,fo)=>{wo.handled=!0,wo.diagram.model.commit(xo=>{var _r=fo.part.adornedPart;xo.set(_r.data,Er?"toSpot":"fromSpot",an.z6.stringify(Lr)),(Er?_r.toNode:_r.fromNode).invalidateConnectedLinks()})};return sn(an.bn,{alignment:or,alignmentFocus:or.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:no,background:"transparent",mouseEnter:(wo,fo)=>fo.background="dodgerblue",mouseLeave:(wo,fo)=>fo.background="transparent",click:Wr,contextClick:Wr})}Re.current.linkTemplate.contextMenu=sn("ContextMenu",mi(),nr(),sn("ContextMenuButton",sn(an.s_,"Horizontal",Zr(0),Zr(1),Zr(2))),sn("ContextMenuButton",sn(an.s_,"Horizontal",sn(an.s_,"Spot",Xr(!1),ei(an.z6.Top,!1),ei(an.z6.Left,!1),ei(an.z6.Right,!1),ei(an.z6.Bottom,!1)),sn(an.s_,"Spot",{margin:new an.Zt(0,0,0,2)},Xr(!0),ei(an.z6.Top,!0),ei(an.z6.Left,!0),ei(an.z6.Right,!0),ei(an.z6.Bottom,!0)))));const Ho=`{ "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 Zo=["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 cs(or){return console.log("shapeName:",or),Zo.indexOf(or)>=0}var ri=new an.YI(en.current,{maxSelectionCount:1,linkTemplate:sn(an.rU,{locationSpot:an.z6.Center,selectionAdornmentTemplate:sn(an.uz,"Link",{locationSpot:an.z6.Center},sn(an.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),sn(an.bn,{toArrow:"Standard",stroke:null}))},{routing:an.rU.AvoidsNodes,curve:an.rU.JumpOver,corner:5,toShortLength:4},new an.KX("points"),sn(an.bn,{isPanelMain:!0,strokeWidth:2}),sn(an.bn,{toArrow:"Standard",stroke:null})),model:new an.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...an.bn.getFigureGenerators().toArray().map(or=>({text:"\u672A\u547D\u540D",size:"100 100",figure:or.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Re.current.addDiagramListener("TextEdited",function(or){var Er;const no=or.subject.part;var Lr=(Er=document.activeElement)==null?void 0:Er.value;typeof Lr=="string"&&Lr.trim()===""&&Re.current.model.commit(function(Wr){Wr.set(no.data,"text","\u672A\u547D\u540D"),Re.current.commandHandler.stopCommand()},"increment")}),ri.nodeTemplate=sn(an.NB,"Auto",{locationSpot:an.z6.Center},new an.KX("location","location",an.E9.parse).makeTwoWay(an.E9.stringify),sn(an.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 an.KX("stroke").makeTwoWay(),new an.KX("fill").makeTwoWay(),new an.KX("figure")),sn(an.al,{margin:new an.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new an.$u(16,16),maxSize:new an.$u(10,NaN),textAlign:"center",editable:!0},new an.KX("key").makeTwoWay())),setTimeout(()=>{Re.current.grid=sn(an.s_,"Grid",sn(an.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),sn(an.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Re.current.grid.visible=!0,Re.current.grid.gridCellStroke="darkgray",Re.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Re.current,Re.current}const tr=()=>be(this,null,function*(){var sn,fi=Re.current.makeImage();const Zi=yield(0,de.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:fi.src,file_data:JSON.stringify({login:(sn=(0,Mt.eY)())==null?void 0:sn.login,data:JSON.parse(Re.current.model.toJson())})}});On({src:Zi.url})});return(0,bt.useEffect)(()=>(setTimeout(()=>{_i()},500),Bi(ni+1),()=>{Re.current=null}),[]),zt.createElement("div",{ref:Ve,className:gn.current?`${Dt.maxH60} body-overflow-initial`:"body-overflow-initial"},zt.createElement(kn.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!ni,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:zt.createElement(Vn.Z,null,zt.createElement(Pn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),zt.createElement(Pn.Z,{onClick:()=>{var sn,fi,Zi=Re.current.selection.first();if(gn.current=!gn.current,document.activeElement&&Zi){let Tr=(fi=(sn=document.activeElement)==null?void 0:sn.value)==null?void 0:fi.trim();typeof Tr=="string"&&Re.current.model.commit(function(ii){ii.set(Zi.data,"text",Tr||"\u672A\u547D\u540D"),Re.current.commandHandler.stopCommand()},"increment")}Bi(ni+1)}},zt.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Un},zt.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Dt.flowChartWrp},zt.createElement("div",{style:{display:"flex",height:"100%"}},zt.createElement("div",{style:{width:"300px",height:"100%"}},zt.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),zt.createElement("div",{style:{height:"calc(100% - 50px)"},className:Dt.myPaletteDiv,ref:en})),zt.createElement("div",{style:{flex:1,position:"relative"}},zt.createElement("div",{ref:hi,style:{height:"80vh"}}))),zt.createElement("div",{className:"tr"},zt.createElement(ee.ZP,{size:"large",onClick:tr,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var fe=De,Ce=Bt(5112),te=Bt(5871);const Ct=Ce.ZP.Group,yt={margin:"0 8px"};var $t=({callback:Un,onCancel:On})=>{function Re(hi){Un(hi)}return bt.createElement(Ae.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Re},bt.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},bt.createElement("span",{style:yt},"\u5355\u5143\u683C\u6570\uFF1A"),bt.createElement("span",{style:yt},"\u884C\u6570"),bt.createElement(Ae.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},bt.createElement(te.Z,null)),bt.createElement("span",{style:yt},"\u5217\u6570"),bt.createElement(Ae.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},bt.createElement(te.Z,null))),bt.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},bt.createElement("span",{style:yt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),bt.createElement(Ae.default.Item,{name:"align"},bt.createElement(Ct,null,bt.createElement(Ce.ZP,{value:"default"},bt.createElement("i",{className:"fa fa-align-justify"})),bt.createElement(Ce.ZP,{value:"left"},bt.createElement("i",{className:"fa fa-align-left"})),bt.createElement(Ce.ZP,{value:"center"},bt.createElement("i",{className:"fa fa-align-center"})),bt.createElement(Ce.ZP,{value:"right"},bt.createElement("i",{className:"fa fa-align-right"}))))),bt.createElement("div",{className:"flex-container flex-end"},bt.createElement(ee.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),bt.createElement(ee.ZP,{type:"ghost",onClick:On},"\u53D6\u6D88")))},xe=Bt(78673),Rt=Bt(80727),je=Bt.n(Rt),jn=(0,bt.forwardRef)(({use3d:Un,width:On,height:Re,callback:hi,showSaveButton:en},gn)=>{const Ve=(0,bt.useRef)(),ni=(0,bt.useRef)(),[Bi,_i]=(0,bt.useState)(!1),tr=(0,bt.useRef)({id:Ve,appName:"graphing",width:On||1e3,height:Re||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,bt.useEffect)(()=>{ni.current=new(je())(tr.current,!0),window.onload=function(){ni.current.inject("applet_container")}},[]);const sn=()=>{var fi=window.ggbApplet.getPNGBase64(1,!0,72);return hi&&hi(fi),fi};return(0,bt.useEffect)(()=>{tr.current.appName=Bi?"3D":"graphing",ni.current.inject("applet_container")},[Bi]),(0,bt.useEffect)(()=>{_i(Un)},[Un]),(0,bt.useImperativeHandle)(gn,()=>({getImgData:sn})),bt.createElement(bt.Fragment,null,bt.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Ve}),bt.createElement(Vn.Z,{align:"middle"},bt.createElement(Pn.Z,{flex:1},bt.createElement(xe.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Bi,onChange:fi=>_i(fi)})),bt.createElement(Pn.Z,null,bt.createElement(ee.ZP,{size:"large",onClick:sn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),bn=Bt(41588),ci=Bt(8591);const Ji="link",zi="upload-image",dr="add-flowchart",Fr="draw-image",oo="add-flowchart",Jr="code-block",zr="add-table",pr="------------",Kr={default:pr,left:`:${pr}`,center:`:${pr}:`,right:`${pr}:`};var hr=Bt(58856);function Mo(){}let Xo=0;const mo=1e4,Ts="\u2581",ws="@\u2581\u2581@",Vt="@\u2581@",xs=`
|
|
|
**\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`,Ss=["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 Ms(Un){return/^\d+$/.test(Un)?`${Un}px`:Un}const Ea=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",oa={[Ea+"-B"]:"bold",[Ea+"-I"]:"italic"},ao={[Ji]:"\u6DFB\u52A0\u94FE\u63A5",[Jr]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[zi]:"\u6DFB\u52A0\u56FE\u7247",[Fr]:"\u6DFB\u52A0\u753B\u56FE",[dr]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[zr]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var br=({defaultValue:Un="",onChange:On,width:Re="100%",height:hi=400,miniToolbar:en=!1,isFocus:gn=!1,watch:Ve,insertTemp:ni,mode:Bi="markdown",id:_i="markdown-editor-id",showResizeBar:tr=!1,noStorage:sn=!1,showNullButton:fi=!1,showNullProgramButton:Zi=!1,hidetoolBar:Tr=!1,fullScreen:ii=!1,onBlur:xi,onCMBeforeChange:fr,onFullScreen:mi,className:wi="",disablePaste:yi=!1,disabled:nr=!1,disabledFill:sr=!1,placeholder:Rr="",values:Zr="",extraUse:Xr})=>{const[ei,Ho]=(0,bt.useState)(null),[Zo,cs]=(0,bt.useState)(Un),[ri,or]=(0,bt.useState)(Ve),[Er,no]=(0,bt.useState)(ii),[Lr,Wr]=(0,bt.useState)(""),[wo,fo]=(0,bt.useState)(0),[xo,_r]=(0,bt.useState)(hi),[Ci,Qo]=(0,bt.useState)(!1),[bi,ns]=(0,bt.useState)(0),[qs,fs]=(0,bt.useState)(0),Hs=(0,bt.useRef)(),Gs=(0,bt.useRef)(),si=(0,bt.useRef)(),To=(0,bt.useRef)();(0,bt.useEffect)(()=>{const lo=window.scrollY||window.pageYOffset;cs(Zr),ei==null||ei.setValue(Zr),window.scrollTo(0,lo)},[Zr]),(0,bt.useEffect)(()=>{mi==null||mi(Er)},[Er]),(0,bt.useEffect)(()=>{if(Hs.current){let lo=function(Ki,Eo){var Es;if(yi){Eo.preventDefault();return}const la=Eo.clipboardData;if(la){const ca=la.types.toString(),zo=la.items;if(ca==="Files"||la.types.indexOf("Files")>-1){if(Eo.preventDefault(),Bi=="stex")return;try{let Vs=zo[1];((Es=zo[0])==null?void 0:Es.kind)==="file"&&(Vs=zo[0]);const Ka=Vs.getAsFile(),Wl=Ka.name.split(".").pop();(0,Xe.I)(Ka,La=>{var vs,ai,Ta;La.id?((vs=Ka==null?void 0:Ka.type)==null?void 0:vs.indexOf("image"))>-1?vo.replaceSelection(`<img width="100%" src="/api/attachments/${La.id}?type=${La.content_type})" alt="" />`):((ai=Ka==null?void 0:Ka.type)==null?void 0:ai.indexOf("video"))>-1?vo.replaceSelection(`<video width="100%" controls src="/api/attachments/${La.id}"></video>`):((Ta=Ka==null?void 0:Ka.type)==null?void 0:Ta.indexOf("pdf"))>-1?vo.replaceSelection(`<a href="/api/attachments/${La.id}?type=${Ka.type}&disposition=inline" target="_blank">${Ka.name}</a>`):Ss.includes(Wl)?vo.replaceSelection(`<a href="/api/attachments/${La.id}?type=office&disposition=inline" target="_blank">${Ka.name}</a>`):vo.replaceSelection(`[${Ka.name}](/api/attachments/${La.id}?type=${La.content_type})`):(La==null?void 0:La.status)===401&&(document.location.href="/user/login")})}catch(Vs){ci.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const vo=se().fromTextArea(Hs.current,{mode:Bi,lineNumbers:!en,lineWrapping:!0,value:Un,autoCloseTags:!0,autoCloseBrackets:!0});return vo.on("keyup",function(Ki,Eo){Eo.keyCode===8&&(Ki.getValue()==""?vo.setOption("placeholder",Rr):vo.setOption("placeholder",null))}),vo.on("keydown",function(Ki,Eo){if(Eo.keyCode===8){var Es=rs(Ki);Es&&Eo.preventDefault()}}),gn&&vo.focus(),vo.on("paste",lo),nr&&vo.on("beforeChange",function(Ki,Eo){(Eo.origin==="paste"||Eo.origin==="+input")&&Eo.cancel()}),Ho(vo),()=>{vo.off("paste",lo)}}},[]);const us=(0,bt.useCallback)(()=>{if(Gs.current)try{}catch(lo){console.log(lo,"---- to set md editor body height")}},[xo,Gs,Er]);(0,bt.useEffect)(()=>{function lo(){let vo=new Me.Z(Ki=>{for(let Eo of Ki)(Eo.target.offsetHeight>0||Eo.target.offsetWidth>0)&&(us(),ei.setSize("100%","100%"),ei.refresh())});return vo.observe(Hs.current.parentElement),vo}if(ei){const vo=lo();return()=>{var Ki,Eo;(Ki=Hs.current)!=null&&Ki.parentElement&&vo.unobserve((Eo=Hs.current)==null?void 0:Eo.parentElement)}}},[ei,us]),(0,bt.useEffect)(()=>{if(ei){let lo=[];for(const[vo,Ki]of Object.entries(oa)){let Eo={[vo]:()=>{Cr(Ki)}};lo.push(Eo),ei.addKeyMap(Eo)}return()=>{for(let vo of lo)ei.removeKeyMap(vo)}}},[ei]),(0,bt.useEffect)(()=>{ii!==Er&&no(ii)},[ii]),(0,hr.Z)(()=>{if(!sn&&wo>0){let lo=new Date().getTime(),vo=window.sessionStorage.getItem(_i);lo>=wo+mo&&(!vo||vo!==Zo)&&(window.sessionStorage.setItem(_i,Zo),Qo(!0))}},mo),(0,bt.useEffect)(()=>{or(Ve)},[ei,Ve]),(0,bt.useEffect)(()=>{ei&&gn&&ei.focus()},[ei,gn]),(0,bt.useEffect)(()=>{if(ri&&ei){let lo=function(Ki){let Eo=Ki.target;if(To.current){let Es=Eo.scrollTop/Eo.scrollHeight;To.current.scrollTop=To.current.scrollHeight*Es}};const vo=ei.getScrollerElement();return vo.addEventListener("scroll",lo),()=>{vo.removeEventListener("scroll",lo)}}},[ei,ri]),(0,bt.useEffect)(()=>{if(ei&&fr){let lo=function(vo,Ki){fr(vo,Ki)};return ei.on("beforeChange",lo),()=>{ei.off("beforeChange",lo)}}},[ei,fr]),(0,bt.useEffect)(()=>{if(ei&&xi){let lo=function(){xi(ei.getValue())};return ei.on("blur",lo),()=>{ei.off("blur",lo)}}},[ei,xi]);function rs(lo,vo){var Ki=lo.getDoc(),Eo=Ki.getCursor(),Es=Ki.getLine(Eo.line),la=Es.charAt(Eo.ch-1),ca=Es.lastIndexOf("@\u2581@",Eo.ch),zo=Es.lastIndexOf("@\u2581\u2581@",Eo.ch),Vs=ca>zo?ca:zo,Ka=ca>zo?3:4;if(ws.indexOf(la)===-1)return null;if(console.log("change1:",vo,lo,Es,Eo,Vs,ca,zo,la),Vs>=0&&Eo.ch-Vs<5){var Wl=Vs+Ka;return Ki.replaceRange("",{line:Eo.line,ch:Vs},{line:Eo.line,ch:Wl}),{line:Eo.line,ch:Wl}}return null}(0,bt.useEffect)(()=>{if(ei){let lo=function(vo,Ki){const Eo=vo.getValue();cs(Eo),fo(new Date().getTime()),vo.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),On&&(Zi?On(Eo,$r(Eo)):On(Eo))};return ei.on("change",lo),()=>{ei.off("change",lo)}}},[ei,On]),(0,bt.useEffect)(()=>{if(ei)if(Un==null)ei.setValue(""),cs("");else{const lo=window.scrollY||window.pageYOffset;Un!==ei.getValue()&&(ei.setValue(Un),cs(Un),ei.setCursor(nr?1:ei.lineCount(),0),window.scrollTo(0,lo))}},[ei,Un]);const Cr=(0,bt.useCallback)(lo=>{const vo=ei.getCursor(),Ki=ei.getSelection();let Eo=Ki.split(`
|
|
|
`);switch(lo){case"bold":return ei.replaceSelection("**"+Ki+"**"),Ki===""&&ei.setCursor(vo.line,vo.ch+2),ei.focus();case"italic":return ei.replaceSelection("*"+Ki+"*"),Ki===""&&ei.setCursor(vo.line,vo.ch+1),ei.focus();case"code":return ei.replaceSelection("`"+Ki+"`"),Ki===""&&ei.setCursor(vo.line,vo.ch+1),ei.focus();case"inline-latex":return Wr("inline-latex"),ei.focus();case"latex":return ei.replaceSelection("```latex\n"+Ki+"\n```"),ei.setCursor(vo.line+1,Ki.length+1),ei.focus();case"line-break":return ei.replaceSelection(`<br/>
|
|
|
`),ei.focus();case"list-ul":return Ki===""?ei.replaceSelection("- "+Ki):ei.replaceSelection(Eo.map(Es=>Es===""?"":`- ${Es}`).join(`
|
|
|
`)),ei.focus();case"list-ol":return Ki===""?ei.replaceSelection("1. "+Ki):ei.replaceSelection(Eo.map((Es,la)=>Es===""?"":`${la+1}. ${Es}`).join(`
|
|
|
`)),ei.focus();case"add-null-ch":return Ki===""&&ei.setCursor(vo.line,vo.ch),ei.replaceSelection(Ts),ei.focus();case"add-signal":return Ki===""&&ei.setCursor(vo.line,vo.ch),ei.replaceSelection(Vt),ei.focus();case"add-multiple":return Ki===""&&ei.setCursor(vo.line,vo.ch),ei.replaceSelection(ws),ei.focus();case"inster-template-1":return Ki===""&&ei.setCursor(vo.line,vo.ch),ei.replaceSelection(xs),ei.focus();case"eraser":return ei.setValue(""),ei.focus();case"trigger-watch":return or(!ri),ei.focus();case"trigger-full-screen":return no(!Er),ei.focus();case Ji:Wr(Ji);return;case Jr:Wr(Jr);return;case zi:Wr(zi);return;case Fr:Wr(Fr);return;case"maths-latex":Wr("maths-latex");return;case dr:Wr(dr);return;case zr:Wr(zr);return;default:throw new Error}},[ei,ri,Er]),ke=(0,bt.useCallback)((lo,vo)=>{var Ki,Eo,Es,la,ca,zo;switch(Wr(""),Lr){case Ji:const{title:vs,link:ai}=lo;return ei.replaceSelection(`[${vs}](${ai})`),ei.focus();case Jr:const{language:Ta,content:bc}=lo;return ei.replaceSelection(["```"+Ta,bc,"```"].join(`
|
|
|
`)),ei.focus();case"maths-latex":for(var Vs=atob(lo),Ka=new Uint8Array(Vs.length),Wl=0;Wl<Vs.length;Wl++)Ka[Wl]=Vs.charCodeAt(Wl);var La=new Blob([Ka],{type:"image/png"});(0,Xe.I)(La,is=>{is.id?ei.replaceSelection(``):(is==null?void 0:is.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":ei.replaceSelection("`$$"+lo+"$$`");break;case zi:case Fr:case oo:const{src:Vl,alt:Th}=lo,sl=vo,Wc=(Es=(Eo=(Ki=sl==null?void 0:sl.name)==null?void 0:Ki.split("."))==null?void 0:Eo.pop)==null?void 0:Es.call(Eo);return((la=sl==null?void 0:sl.type)==null?void 0:la.indexOf("image"))>-1||!(sl!=null&&sl.type)?sl!=null&&sl.align||sl!=null&&sl.width?ei.replaceSelection(`<p style="text-align:${sl.align||"initial"}"><img width="${sl.width?sl.width+"%":"initial"}" src="${Vl}" alt="${Th||""}" /></p>`):ei.replaceSelection(`<img width="100%" src="${Vl}" alt="${Th||""}" />`):((ca=sl==null?void 0:sl.type)==null?void 0:ca.indexOf("video"))>-1?ei.replaceSelection(`<video width="100%" controls src="${Vl}"></video>`):((zo=sl==null?void 0:sl.type)==null?void 0:zo.indexOf("pdf"))>-1?ei.replaceSelection(`<a href="${Vl}?type=${sl.type}&disposition=inline" target="_blank">${sl.name}</a>`):Ss.includes(Wc)?ei.replaceSelection(`<a href="${Vl}?type=office&disposition=inline" target="_blank">${sl.name}</a>`):ei.replaceSelection(`[${sl.name}](${Vl})`),ei.focus();case zr:const{row:Fl,col:Is,align:ia}=lo;let Ph=`
|
|
|
`;for(let is=0;is<Fl;is++){let Zs=[],ys=[];for(let Hr=0;Hr<Is;Hr++)is===1&&ys.push(Kr[ia]),Zs.push(" ");is===1&&(Ph+=`| ${ys.join(" | ")} |
|
|
|
`),Ph+=`| ${Zs.join(Is===1?"":" | ")} |
|
|
|
`}return ei.replaceSelection(Ph+`
|
|
|
`),ei.focus();default:throw new Error}},[ei,Lr]),ts=(0,bt.useMemo)(()=>{switch(Lr){case Ji:return bt.createElement(En,{callback:ke,onCancel:ta});case Jr:return bt.createElement(Nn.Z,{callback:ke,onCancel:ta});case zi:return bt.createElement(Xe.Z,{callback:ke,onCancel:ta});case dr:return bt.createElement(fe,{callback:ke,onCancel:ta});case zr:return bt.createElement($t,{callback:ke,onCancel:ta});case"maths-latex":return bt.createElement(jn,{showSaveButton:!0,callback:ke});case"inline-latex":return bt.createElement(bn.Z,{showSaveButton:!0,callback:ke});default:return null}},[Lr]);function ta(){Wr("")}(0,bt.useEffect)(()=>{if(si.current){let lo=function(ca){Es=!0,la=ca.pageY},vo=function(){Es=!1},Ki=function(ca){if(Es){let zo=ca.pageY-la;zo<0&&(zo=0),zo>300&&(zo=300);let Vs=hi+zo+"px";_r(Vs)}},Eo=si.current,Es=!1,la=0;return Eo.addEventListener("mousedown",lo),document.addEventListener("mousemove",Ki),document.addEventListener("mouseup",vo),()=>{Eo.removeEventListener("mousedown",lo),document.removeEventListener("mousemove",Ki),document.removeEventListener("mouseup",vo)}}},[ei,si]),(0,bt.useEffect)(()=>{_r(hi)},[hi]);const qa=Ms(Re),ol=Ms(xo),ml={width:qa,height:ol},yr=(0,bt.useMemo)(()=>{if(wo){let lo=new Date(wo),vo=lo.getHours(),Ki=lo.getMinutes(),Eo=lo.getSeconds();return vo=vo<10?"0"+vo:vo,Ki=Ki<10?"0"+Ki:Ki,Eo=Eo<10?"0"+Eo:Eo,`${vo}:${Ki}:${Eo}`}return 0},[wo]),$r=lo=>{const vo=[];if(Zi){let Ki=-1;lo=lo.replace(/(@▁▁@|@▁@)/g,function(Eo,Es,la){vo.push({multiLine:Eo!==Vt})})}return vo};function Jo(){window.sessionStorage.removeItem(_i),Qo(!1),fo(0)}function Lo(){Qo(!1),fo(0),ei.setValue(window.sessionStorage.getItem(_i))}(0,bt.useEffect)(()=>{ao[Lr]&&Lr!==Fr&&Lr!==dr&&setTimeout(()=>{const lo=document.getElementsByClassName("markdown-popup-form")[0],vo=window.innerWidth/2-lo.offsetWidth/2,Ki=window.innerHeight/2-lo.offsetHeight/2;ns(vo),fs(Ki)},0)},[Lr]);const os=lo=>{lo.preventDefault();const vo=lo.clientX-bi,Ki=lo.clientY-qs;document.body.onmousemove=Eo=>{let Es=Eo.clientX-vo,la=Eo.clientY-Ki;const ca=document.getElementsByClassName("markdown-popup-form")[0],zo=window.innerWidth-ca.offsetWidth,Vs=window.innerHeight-ca.offsetHeight;Es=Math.max(0,Math.min(Es,zo)),la=Math.max(0,Math.min(la,Vs)),Fa(Eo.clientX,Eo.clientY,vo,Ki)&&(ns(Es),fs(la))},document.body.onmouseup=function(){document.body.onmousemove=null}},Fa=(lo,vo,Ki,Eo)=>{const Es=document.body.clientHeight,la=document.body.clientWidth;return lo<20&&Ki>lo||lo>la-20&&Ki<lo||vo<20&&Eo>vo||vo>Es-20&&Eo<vo?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return bt.createElement(bt.Fragment,null,bt.createElement("div",{className:"markdown-editor-wrapper",ref:Gs},bt.createElement("div",{className:`markdown-editor-container ${wi} ${ri?"on-preview":""} ${en?"mini":""} ${Er?"full-screen":""}`,style:ml},bt.createElement(re,{insertTemp:ni,watch:ri,fullScreen:Er,showNullButton:fi,showNullProgramButton:Zi,onActionCallback:Cr,hidetoolBar:Tr,extraUse:Xr}),bt.createElement("div",{className:"markdown-editor-body"},bt.createElement("div",{className:"codemirror-container"},bt.createElement("textarea",{ref:Hs,placeholder:Rr})),ri?bt.createElement("div",{ref:To,className:"preview-container"},Bi==="stex"&&bt.createElement(Gt,{value:Zo}),Bi!=="stex"&&bt.createElement(Wt.Z,{disabledFill:sr,showProgramFill:Zi,value:Zo})):null))),tr?bt.createElement("a",{ref:si,className:"editor-resize"}):null,Lr===Fr&&bt.createElement(Si,{callback:ke,onCancel:ta}),Lr===dr&&bt.createElement(fe,{callback:ke,onCancel:ta}),bt.createElement(he.Z,null,ao[Lr]&&Lr!==Fr&&Lr!==dr?bt.createElement(kn.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:bi,top:qs},title:bt.createElement("div",{style:{cursor:"move"},onMouseDown:os},ao[Lr]),open:!0,onCancel:ta,footer:null,destroyOnClose:!0,width:Lr===dr?"1200px":null,height:Lr===dr?"80vh":null,className:"markdown-popup-form"},ts):null))}},28451:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return Tt},I:function(){return re}});var bt=Bt(78241),ge=Bt(8591),se=Bt(92832),Me=Bt(81327),ie=Bt(5871),ae=Bt(5112),Lt=Bt(3113),kt=Bt(77903),Jt=Bt(59301),St=Bt(59301),Wt=Object.defineProperty,Gt=Object.defineProperties,qt=Object.getOwnPropertyDescriptors,wt=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,lt=(he,Ae,Fe)=>Ae in he?Wt(he,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):he[Ae]=Fe,rt=(he,Ae)=>{for(var Fe in Ae||(Ae={}))et.call(Ae,Fe)&<(he,Fe,Ae[Fe]);if(wt)for(var Fe of wt(Ae))tt.call(Ae,Fe)&<(he,Fe,Ae[Fe]);return he},ut=(he,Ae)=>Gt(he,qt(Ae));const{useForm:dt}=bt.default,pt={width:280,marginRight:10},Ft={labelCol:{span:5},wrapperCol:{span:19}};var Tt=({callback:he,onCancel:Ae})=>{const[Fe]=dt();let ee=(0,Jt.useRef)();function We(Ge){ee.current.width=Fe.getFieldValue("width"),ee.current.align=Fe.getFieldValue("align"),he(Ge,ee.current)}function Yt(Ge,Oe){if(Ge.status===-1){ge.ZP.error(Ge.message);return}Fe.setFieldsValue({src:`/api/attachments/${Ge.id}`,type:Oe.type})}function qe(Ge){let Oe=Ge.target.files[0];ee.current=Oe,re(Oe,Yt)}return St.createElement(bt.default,ut(rt({form:Fe},Ft),{className:"upload-image-panel",onFinish:We,style:{width:470,overflow:"hidden"}}),St.createElement(bt.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},St.createElement("div",{className:"flex-container"},St.createElement(bt.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},St.createElement(se.default,{style:pt})),St.createElement(_t,{onFileChange:qe}))),St.createElement(bt.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},St.createElement(se.default,{style:{width:264}})),St.createElement(bt.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},St.createElement(Me.Z,null,St.createElement(bt.default.Item,{name:"width",style:{margin:0}},St.createElement(ie.Z,{style:{width:264}})),St.createElement("span",{className:"ml8"},"%"))),St.createElement(bt.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},St.createElement(ae.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"}]})),St.createElement("aside",null,St.createElement(bt.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},St.createElement(Lt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),St.createElement(Lt.ZP,{type:"default",onClick:Ae},"\u53D6\u6D88"))))};function _t({onFileChange:he}){return St.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",St.createElement("input",{type:"file",onChange:he}))}function re(he,Ae){if(!he)throw new String("\u6CA1\u6709\u6587\u4EF6");let Fe=new FormData;Fe.append("editormd-image-file",he),Fe.append("file_param_name","editormd-image-file"),Fe.append("byxhr","true");var ee=new window.XMLHttpRequest;ee.withCredentials=!0,ee.addEventListener("load",function(We){Ae(JSON.parse(We.target.responseText),he)},!1),ee.addEventListener("error",function(We){console.error(We)},!1),ee.open("POST",`${kt.KI}/api/attachments.json`),ee.send(Fe)}},79346:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return se}});var bt=Bt(59301),ge=Bt(4676);class se extends bt.Component{constructor(ie){super(ie);const ae=window.document;this.node=ae.createElement("div"),ae.body.appendChild(this.node)}render(){const{children:ie}=this.props;return(0,ge.createPortal)(ie,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23954:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{SV:function(){return be},ZP:function(){return zt}});var bt=Bt(59301),ge=Bt(76374);const se={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"]},Me={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
|
|
|
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
|
|
|
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
|
|
|
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},ie={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
|
|
|
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
|
|
|
`)},{label:"if",content:["if () {"," $0","}"].join(`
|
|
|
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
|
|
|
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
|
|
|
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
|
|
|
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
|
|
|
`)},{label:"include <vector>",content:["#include <vector>"].join(`
|
|
|
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
|
|
|
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
|
|
|
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
|
|
|
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
|
|
|
`)},{label:"include <map>",content:["#include <map>"].join(`
|
|
|
`)},{label:"include <string>",content:["#include <string>"].join(`
|
|
|
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
|
|
|
`)}]},ae={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(`
|
|
|
`)}]},Lt={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 kt=Bt(53184),Jt=Bt.n(kt),St=Object.defineProperty,Wt=Object.defineProperties,Gt=Object.getOwnPropertyDescriptors,qt=Object.getOwnPropertySymbols,wt=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,tt=(De,fe,Ce)=>fe in De?St(De,fe,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):De[fe]=Ce,lt=(De,fe)=>{for(var Ce in fe||(fe={}))wt.call(fe,Ce)&&tt(De,Ce,fe[Ce]);if(qt)for(var Ce of qt(fe))et.call(fe,Ce)&&tt(De,Ce,fe[Ce]);return De},rt=(De,fe)=>Wt(De,Gt(fe)),ut=(De,fe,Ce)=>new Promise((te,Ct)=>{var yt=Rt=>{try{xe(Ce.next(Rt))}catch(je){Ct(je)}},$t=Rt=>{try{xe(Ce.throw(Rt))}catch(je){Ct(je)}},xe=Rt=>Rt.done?te(Rt.value):Promise.resolve(Rt.value).then(yt,$t);xe((Ce=Ce.apply(De,fe)).next())});const dt={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"]}},pt=(De,fe)=>fe.map(Ce=>({label:Ce,kind:De.languages.CompletionItemKind.Keyword,insertText:Ce})),Ft=De=>Object.keys(dt.tables).map(fe=>({label:fe,kind:De.languages.CompletionItemKind.Variable,insertText:fe})),Tt=(De,fe)=>{const Ce=dt.tables[De];return Ce?Ce.map(te=>({label:te,kind:fe.languages.CompletionItemKind.Field,insertText:te})):[]};function _t(De,fe,Ce,te,Ct){let yt=fe.getWordUntilPosition(Ce),$t={startLineNumber:Ce.lineNumber,endLineNumber:Ce.lineNumber,startColumn:yt.startColumn,endColumn:yt.endColumn},xe=te.map(Rt=>({label:Rt,kind:De.languages.CompletionItemKind.Keyword,insertText:Rt,insertTextRules:De.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:$t}));return Ct.map(Rt=>{xe.push(rt(lt({},Rt),{range:$t}))}),xe}var re=De=>{dt.languages.map(Ct=>(De.languages.registerDocumentFormattingEditProvider(Ct,{provideDocumentFormattingEdits(yt,$t,xe){return ut(this,null,function*(){const Rt=Jt()(yt.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:yt.getFullModelRange(),text:Rt}]})}}),Ct));const fe=ie.quickKey.map(Ct=>({label:Ct.label,kind:De.languages.CompletionItemKind.Method,insertText:Ct.content,insertTextRules:De.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Ce=ae.quickKey.map(Ct=>({label:Ct.label,kind:De.languages.CompletionItemKind.Method,insertText:Ct.content,insertTextRules:De.languages.CompletionItemInsertTextRule.InsertAsSnippet})),te=Me.quickKey.map(Ct=>({label:Ct.label,kind:De.languages.CompletionItemKind.Method,insertText:Ct.content,insertTextRules:De.languages.CompletionItemInsertTextRule.InsertAsSnippet}));De.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Ct,yt){var $t=Ct.getWordUntilPosition(yt),xe={startLineNumber:yt.lineNumber,endLineNumber:yt.lineNumber,startColumn:$t.startColumn,endColumn:$t.endColumn},Rt=Ct.getLineContent(yt.lineNumber).substring($t.startColumn-2,$t.endColumn);return{suggestions:[...ie.keywords.map(je=>({label:je,kind:De.languages.CompletionItemKind.Function,documentation:je,insertText:je,insertTextRules:De.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:xe})),...ie.quickKey.map(je=>({label:je.label,kind:De.languages.CompletionItemKind.Function,documentation:je.content,insertText:Rt.startsWith("#")?je.content.replace(/#/,""):je.content,insertTextRules:De.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:xe}))]}}}),De.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Ct,yt){var $t=Ct.getWordUntilPosition(yt),xe={startLineNumber:yt.lineNumber,endLineNumber:yt.lineNumber,startColumn:$t.startColumn,endColumn:$t.endColumn};return{suggestions:[...se.keywords.map(Rt=>({label:Rt,kind:De.languages.CompletionItemKind.Function,documentation:Rt,insertText:Rt,insertTextRules:De.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:xe}))]}}}),De.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Ct,yt){var $t=Ct.getWordUntilPosition(yt),xe={startLineNumber:yt.lineNumber,endLineNumber:yt.lineNumber,startColumn:$t.startColumn,endColumn:$t.endColumn},Rt=Ct.getLineContent(yt.lineNumber).substring($t.startColumn-2,$t.endColumn);return{suggestions:[...Me.keywords.map(je=>({label:je,kind:De.languages.CompletionItemKind.Function,documentation:je,insertText:je,insertTextRules:De.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:xe})),...Me.quickKey.map(je=>({label:je.label,kind:De.languages.CompletionItemKind.Function,documentation:je.content,insertText:Rt.startsWith("#")?je.content.replace(/#/,""):je.content,insertTextRules:De.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:xe}))]}}}),De.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Ct,yt){var $t=Ct.getWordUntilPosition(yt),xe={startLineNumber:yt.lineNumber,endLineNumber:yt.lineNumber,startColumn:$t.startColumn,endColumn:$t.endColumn},Rt=Ct.getLineContent(yt.lineNumber).substring($t.startColumn-2,$t.endColumn);return{suggestions:[...Lt.keywords.map(je=>({label:je,kind:De.languages.CompletionItemKind.Function,documentation:je,insertText:je,insertTextRules:De.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:xe})),...Lt.quickKey.map(je=>({label:je.label,kind:De.languages.CompletionItemKind.Function,documentation:je.content,insertText:Rt.startsWith("#")?je.content.replace(/#/,""):je.content,insertTextRules:De.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:xe}))]}}}),De.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Ct,yt){var $t=Ct.getWordUntilPosition(yt),xe={startLineNumber:yt.lineNumber,endLineNumber:yt.lineNumber,startColumn:$t.startColumn,endColumn:$t.endColumn},Rt=Ct.getLineContent(yt.lineNumber).substring($t.startColumn-2,$t.endColumn);return{suggestions:[...ae.keywords.map(je=>({label:je,kind:De.languages.CompletionItemKind.Function,documentation:je,insertText:je,insertTextRules:De.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:xe})),...ae.quickKey.map(je=>({label:je.label,kind:De.languages.CompletionItemKind.Function,documentation:je.content,insertText:Rt.startsWith("#")?je.content.replace(/#/,""):je.content,insertTextRules:De.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:xe}))]}}})};const he="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ae=Object.defineProperty,Fe=(De,fe,Ce)=>fe in De?Ae(De,fe,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):De[fe]=Ce,ee=(De,fe,Ce)=>Fe(De,typeof fe!="symbol"?fe+"":fe,Ce);const We=class bw{constructor(fe,Ce,te){this.placeholder=fe,this.editor=Ce,this.monaco=te,Ce.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return bw.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};ee(We,"ID","editor.widget.placeholderHint");var qe=We,Ge=Bt(96236),Oe=Bt(8591),Ze=Bt(6848),Qe=Bt(89392),we=Bt(34604),oe=Bt(56102),Pe=Object.defineProperty,En=Object.defineProperties,Nn=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertySymbols,kn=Object.prototype.hasOwnProperty,Vn=Object.prototype.propertyIsEnumerable,Ai=(De,fe,Ce)=>fe in De?Pe(De,fe,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):De[fe]=Ce,Wn=(De,fe)=>{for(var Ce in fe||(fe={}))kn.call(fe,Ce)&&Ai(De,Ce,fe[Ce]);if(Xe)for(var Ce of Xe(fe))Vn.call(fe,Ce)&&Ai(De,Ce,fe[Ce]);return De},Si=(De,fe)=>En(De,Nn(fe)),an=(De,fe)=>{var Ce={};for(var te in De)kn.call(De,te)&&fe.indexOf(te)<0&&(Ce[te]=De[te]);if(De!=null&&Xe)for(var te of Xe(De))fe.indexOf(te)<0&&Vn.call(De,te)&&(Ce[te]=De[te]);return Ce},Li=(De,fe,Ce)=>new Promise((te,Ct)=>{var yt=Rt=>{try{xe(Ce.next(Rt))}catch(je){Ct(je)}},$t=Rt=>{try{xe(Ce.throw(Rt))}catch(je){Ct(je)}},xe=Rt=>Rt.done?te(Rt.value):Promise.resolve(Rt.value).then(yt,$t);xe((Ce=Ce.apply(De,fe)).next())});function Oi(De){return/^\d+$/.test(De)?`${De}px`:De}function ue(){}let Pn=!1;const de={"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 Dt(De=[]){let fe=De;if(Array.isArray(De)){for(let Ce=0;Ce<De.length;Ce++){let te=de[De[Ce]];if(te)return te}return fe[0]}return de[fe]||fe}let Mt=null;var zt=De=>{var fe=De,{width:Ce="100%",height:te="100%",value:Ct,language:yt="javascript",style:$t={},options:xe={},overrideServices:Rt={},theme:je="vs-dark",onEditBlur:fn,isCopy:jn=!1,onSave:bn,autoHeight:ci=!1,forbidCopy:Ji=!1,onChange:zi=ue,editorDidMount:dr=ue,onFocus:Fr=ue,onBreakPoint:oo=ue,breakPointValue:Jr=[],filename:zr="educoder.txt",errorLine:pr,errorContent:Kr="",highlightLine:hr,openBreakPoint:Mo=!1,placeholder:Xo="",showMiniMap:mo=!0}=fe,Ts=an(fe,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const ws=(0,bt.useRef)(),Vt=(0,bt.useRef)({}),xs=(0,bt.useRef)(),Ss=(0,bt.useRef)(),Ms=(0,bt.useRef)([]),ma=(0,bt.useRef)(!1),Ea=(0,bt.useRef)(),oa=(0,bt.useRef)(),ao=(0,bt.useRef)(!1),[br,Un]=(0,bt.useState)(!1);function On(){let xi;return ws.current&&(xi=new ge.Z(fr=>{for(let mi of fr)(mi.target.offsetHeight>0||mi.target.offsetWidth>0)&&Vt.current.instance.layout()}),xi.observe(ws.current)),xi}function Re(){Oe.ZP.warning({content:decodeURIComponent(he),key:"monaco-editor-tip"})}const hi=()=>{let xi=Vt.current.instance;if(Ct!=null&&xi&&br){const fr=xi.getModel();fr&&Ct!==fr.getValue()&&(Pn=!0,fr.setValue(Ct),xi.layout(),Pn=!1)}};(0,bt.useEffect)(()=>{const xi=we.Z.subscribe("formatDocument",fr=>{var mi;let wi=Vt.current.instance;(mi=wi==null?void 0:wi.getAction)==null||mi.call(wi,"editor.action.formatDocument").run()});return window.updateMonacoValue=fr=>{zi(fr)},xi},[]),(0,bt.useEffect)(()=>{var xi;let fr=Vt.current.instance;Ss.current&&clearTimeout(Ss.current),Ss.current=setTimeout(()=>{hi()},500),Ct&&(Ct!=null&&Ct.length)&&((xi=fr==null?void 0:fr.updateOptions)==null||xi.call(fr,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Ct.split(/\r\n|\r|\n/g).length))+3,5)}))},[Ct,br,Vt.current]),(0,bt.useEffect)(()=>{if(pr&&Vt.current&&Vt.current.instance){let fr=Vt.current.instance;fr.changeViewZones(function(mi){var wi=document.createElement("div");wi.style.padding="10px 20px",wi.style.width="calc(100% - 20px)",wi.className="my-error-line-wrp",wi.innerHTML=Kr,mi.addZone({afterLineNumber:pr||11,heightInLines:3,domNode:wi})});var xi={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}};fr.addOverlayWidget(xi),fr.revealPositionInCenter({lineNumber:20,column:1})}},[pr,Vt.current,br]);const en=(xi="",fr)=>{if(!xi||xi.trim()==="")return!0;const wi=Vt.current.instance.getModel().getLineTokens(fr);let yi=!1;for(let nr=0;nr<2;nr++)wi.getStandardTokenType(nr)===1&&(yi=!0);return yi};(0,bt.useEffect)(()=>{var xi;const fr=(xi=Vt.current)==null?void 0:xi.instance;if(fr&&br&&Ji){const mi=fr.onDidBlurEditorWidget(()=>{ao.current=!1}),wi=fr.onDidFocusEditorText(()=>{ao.current=!0});return()=>{mi.dispose(),wi.dispose()}}},[Vt.current,br,Ji]),(0,bt.useEffect)(()=>{var xi;if((xi=Vt.current)!=null&&xi.instance&&br&&Mo){let fr=Vt.current.instance,mi=fr.getModel();if(!mi)return;(()=>{var ri;let or=[],Er=[];const no=mi.getAllDecorations();for(let Wr of no)Wr.options.className==="highlighted-line"&&(or.push((ri=Wr==null?void 0:Wr.range)==null?void 0:ri.startLineNumber),Er.push(Wr==null?void 0:Wr.id));if(hr===or[0])return;mi.deltaDecorations(Er,[]);const Lr=mi.getLineCount();hr&&hr<=Lr&&(fr.deltaDecorations([],[{range:new Mt.Range(hr,1,hr,mi.getLineMaxColumn(hr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),fr.revealLineInCenter(hr))})();const yi=(ri=!1)=>{var or;let Er=[],no=[];const Lr=mi.getAllDecorations();for(let Wr of Lr)Wr.options.linesDecorationsClassName==="breakpoints-select"&&(Er.push((or=Wr==null?void 0:Wr.range)==null?void 0:or.startLineNumber),no.push(Wr==null?void 0:Wr.id));if(ri)return{lines:Er,ids:no};oo(Er)},nr=ri=>Li(void 0,null,function*(){let or={range:new Mt.Range(ri,1,ri,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield mi.deltaDecorations([],[or]),yi()}),sr=ri=>Li(void 0,null,function*(){let or=[];const Er=fr.getLineDecorations(ri);for(let no of Er)no.options.linesDecorationsClassName==="breakpoints-select"&&or.push(no.id);yield mi.deltaDecorations(or,[]),yi()}),Rr=ri=>{let or=fr.getLineDecorations(ri);for(let Er of or)if(Er.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Qe.isEqual)(Jr,yi(!0).lines)){mi.deltaDecorations(yi(!0).ids,[]);const ri=Jr.map(or=>({range:new Mt.Range(or,1,or,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));mi.deltaDecorations([],ri)}const Zr=fr.onDidChangeModelContent(ri=>{let or=fr.getPosition();if(or){let Er=or.lineNumber;clearTimeout(oa.current),oa.current=setTimeout(()=>{en(mi.getLineContent(Er),Er)?sr(Er):Rr(Er)?(sr(Er),nr(Er)):yi()},100)}}),Xr=fr.onMouseDown(ri=>{var or,Er,no;if(ri.target.detail&&((no=(Er=(or=ri.target)==null?void 0:or.element)==null?void 0:Er.className)!=null&&no.includes("line-numbers"))){let Lr=ri.target.position.lineNumber;if(en(mi.getLineContent(Lr),Lr))return;Rr(Lr)?sr(Lr):nr(Lr)}}),ei=ri=>{let or={range:new Mt.Range(ri,1,ri,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Ms.current=fr.deltaDecorations(Ms.current,[or])},Ho=()=>{Ms.current=fr.deltaDecorations(Ms.current,[])},Zo=fr.onMouseMove(ri=>{var or,Er,no;if(Ho(),ri.target.detail&&((no=(Er=(or=ri.target)==null?void 0:or.element)==null?void 0:Er.className)!=null&&no.includes("line-numbers"))){let Lr=ri.target.position.lineNumber;if(en(mi.getLineContent(Lr),Lr))return;ei(Lr)}}),cs=fr.onMouseLeave(()=>{Ho()});return()=>{Zr.dispose(),Xr.dispose(),Zo.dispose(),cs.dispose()}}},[Vt.current,br,Jr,hr,Mo,yt]),(0,bt.useEffect)(()=>{var xi;(xi=Vt.current)!=null&&xi.instance&&Mo&&Vt.current.instance.setPosition({lineNumber:0,column:0})},[hr]);function gn(){let xi=Vt.current.instance;if(xi){const fr=xi.getSelection(),mi=Vt.current.pastePos||{},wi=new Mt.Range(mi.startLineNumber||fr.endLineNumber,mi.startColumn||fr.endColumn,mi.endLineNumber||fr.endLineNumber,mi.endColumn||fr.endColumn);setTimeout(()=>{xi.executeEdits("",[{range:wi,text:""}])},300)}}function Ve(xi){(window.navigator.platform.match("Mac")?xi.metaKey:xi.ctrlKey)&&xi.keyCode==83&&(xi.preventDefault(),bn())}const ni=()=>{if(ci&&Vt.current.instance){const xi=Vt.current.instance.getContentHeight();Tr(xi<te?te:xi)}else Tr(te)};function Bi(xi){var fr=document.createEvent("MouseEvents");fr.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),xi.dispatchEvent(fr)}const _i=xi=>{if(!ao.current)return;const{keyCode:fr,ctrlKey:mi,metaKey:wi,target:yi,type:nr}=xi;return(nr==="paste"||(fr===67||fr===86)&&(wi||mi))&&yi.nodeName==="TEXTAREA"&&(Re(),xi.preventDefault()),!1};function tr(xi,fr){var mi=window.URL||window.webkitURL||window,wi=new Blob([fr]),yi=document.createElementNS("http://www.w3.org/1999/xhtml","a");yi.href=mi.createObjectURL(wi),yi.download=xi,Bi(yi)}(0,bt.useEffect)(()=>{ni()},[ni]),(0,bt.useEffect)(()=>{ws.current&&!br&&Promise.all([Bt.e(8909),Bt.e(3267)]).then(Bt.bind(Bt,71448)).then(xi=>{try{Mt=xi,Vt.current.instance=Mt.editor.create(ws.current,{value:Ct,language:Dt(yt),theme:je,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:mo||!1}},Rt);const fr=Vt.current.instance;let yi=[...Ge.BH._menuItems].find(Zr=>Zr[0]._debugName=="EditorContext")[1],nr=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],sr=(Zr,Xr)=>{var ei,Ho;let Zo=Zr._first;do Xr.includes((Ho=(ei=Zo.element)==null?void 0:ei.command)==null?void 0:Ho.id)&&Zr._remove(Zo);while(Zo=Zo.next)};if(dr(fr,Mt),setTimeout(()=>{ni(),Vt.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{tr(zr||"educoder.txt",fr.getValue())}})},500),Vt.current.subscription=fr.onDidChangeModelContent(Zr=>{ma.current?clearTimeout(Ea.current):(ni(),zi(fr.getValue(),Zr)),Ea.current=setTimeout(()=>{ma.current=!1},500)}),window.Monaco||re(Mt,Dt(yt)),Ji&&(sr(yi,nr),ws.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",_i),window.removeEventListener("paste",_i),window.addEventListener("keydown",_i),window.addEventListener("paste",_i)),window.Monaco=Mt,fn&&fr.onDidBlurEditorWidget(()=>{fn(fr.getValue())}),Fr&&fr.onDidFocusEditorText(()=>{Fr(fr.getValue())}),Ji)try{fr.onDidPaste(Zr=>{const Xr=fr.getSelection(),ei=Vt.current.pastePos||{},Ho=new Mt.Range(ei.startLineNumber||Xr.endLineNumber,ei.startColumn||Xr.endColumn,ei.endLineNumber||Xr.endLineNumber,ei.endColumn||Xr.endColumn);fr.executeEdits("",[{range:Zr.range,text:""}])})}catch(Zr){}let Rr=On();return Xo&&typeof Xo=="string"&&new qe(Xo,fr,Mt),Un(!0),()=>{const Zr=Vt.current.instance;Zr.dispose();const Xr=Zr.getModel();Xr&&Xr.dispose(),Vt.current.subscription&&Vt.current.subscription.dispose(),Rr.unobserve(ws.current)}}catch(fr){}})},[]),(0,bt.useEffect)(()=>{if(Vt.current.instance&&br)return document.addEventListener("keydown",Ve,!1),()=>{document.removeEventListener("keydown",Ve)}},[bn,br]),(0,bt.useEffect)(()=>{let xi=Vt.current.instance;if(xi&&br){let fr=Dt(yt);Mt.editor.setModelLanguage(xi.getModel(),fr)}},[yt,br]),(0,bt.useEffect)(()=>{Vt.current.instance&&br&&Mt.editor.setTheme(je)},[je,br]),(0,bt.useEffect)(()=>{let xi=Vt.current.instance;xs.current=xe,xi&&br&&(xi.updateOptions(Wn({},xe)),setTimeout(()=>{xi.getModel().updateOptions(Wn({},xe))},200))},[JSON.stringify(xe),br]),(0,bt.useEffect)(()=>{let xi=Vt.current.instance;xi&&br&&xi.layout()},[Ce,te,br]);const[sn,fi]=(0,bt.useState)(Oi(Ce)),[Zi,Tr]=(0,bt.useState)(Oi(te)),ii=Si(Wn({},$t),{width:sn,height:Zi,position:"relative"});return bt.createElement("div",{className:"my-monaco-editor",ref:ws,style:ii},jn&&bt.createElement(oe.CopyToClipboard,{text:Ct,onCopy:()=>Oe.ZP.success("\u590D\u5236\u6210\u529F")},bt.createElement(Ze.Z,{title:"\u590D\u5236\u4EE3\u7801"},bt.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},bt.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function be({width:De="100%",height:fe="100%",original:Ce,modified:te,language:Ct,options:yt={}}){const $t=(0,bt.useRef)(),[xe,Rt]=(0,bt.useState)(null);function je(ci){let Ji;return $t.current&&(Ji=new ge.Z(zi=>{for(let dr of zi)(dr.target.offsetHeight>0||dr.target.offsetWidth>0)&&ci.layout()}),Ji.observe($t.current)),Ji}(0,bt.useEffect)(()=>($t.current&&Promise.all([Bt.e(8909),Bt.e(9404)]).then(Bt.bind(Bt,2550)).then(ci=>{Mt=ci;const Ji=Mt.editor.createDiffEditor($t.current,Si(Wn({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},yt),{wordWrap:!0}));Rt(Ji);let zi=je(Ji);return()=>{Ji.dispose();const dr=Ji.getModel();dr&&dr.dispose(),zi.unobserve($t.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,bt.useEffect)(()=>{xe&&xe.setModel({original:Mt.editor.createModel(Ce,Ct),modified:Mt.editor.createModel(te,Ct)})},[Ce,te,Ct,xe]);const fn=Oi(De),jn=Oi(fe),bn={width:fn,height:jn};return bt.createElement("div",{className:"my-diff-editor",ref:$t,style:bn})}},85057:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{jL:function(){return ie},w9:function(){return kn},QD:function(){return zi},cQ:function(){return oe},op:function(){return je},O5:function(){return oa},_b:function(){return pr},t7:function(){return rt},Gi:function(){return Li},YG:function(){return Si},qp:function(){return Wt},vr:function(){return oo},qE:function(){return bn},Je:function(){return pt},wb:function(){return Ge},cq:function(){return Mt},tp:function(){return wt}});var bt=Bt(59301),ge={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"},se="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJaZKwVGJRv1pSAJLyQ8qlwLOA4Q1us31Z58+OTj3rX/E68E3qsGbmhK/6Nt40oIFMJwZ5URFh/cZoGgHQKODeSsaUEiA5iSy6IqYRnfmPq66YojPILbYbqpGXuhRhRrFPMSUaP+6OTAtuPff8ze97xceK8KuJGG/oBl4XsaKMTTsiwDKVXZjm1qsgRBU84TXi5VXqo24/syP5ce2xEg0gBDeAZWFijo79JnpLQxXSo7iICiIyD8qUfdxuQRRx24x5MvB95uBzfW1G+XFn4GoMMojQNOYWUK45b+jG9mW+PvFNAKEkqVYgI583VZcOB7WRrCqGwiaQovU1lAlaXKM/BMQNIGbN0FLGh0lySCVv0OP3aPOnKf2a2XCm+3ghuc1AvzOdwmLSwIwkQlBoxMtgZYCkvwQLafBYo0l2v6gBcCxRxQyifwM9PckRCniXIGbjo8wiI4bgnRRFul0XAZMABbaggVoytvo12vff7Qt/Rc8LqBm5jQndrBr3MFHOwyemaJbGaaAKzMp00zV2O+6VVnSTCPcYCNdrItEGAOcKxpVUQKLjPZ6VHVgEuf3Kf/rLk0Y4ViTpiAEUYKJaEgVDg2OTq1+j3r5w68FHi7TXFDU/El1Yr8VLudDM4IjUpLVWW2Mg0GgubybATNfN/0C5+eqjQ9oO0ngAmR0ZF5X2bKjLRZBUFgNE03AKhcPqk62wJsm+qjvyM4Aa0idFN1zcmvHraq90uvObihqej4YsH6nzCEyHwRB0WFZeZJ05xupsZSp6sty+2mXX2a/5rP0fT8MAHRZpmWph48J38zi6xUF1Vqft9KAg2BES6PmyChGGFTBVJ1kb/dq7XeeuTBs0deLLxXrLhHn2nP6+4s3Gk7Yl6Q5mpZMMjAGWjT0o+dgkR6BVnUzJSW2PpzhpHVqIygdPiEET3rzwiHP2QCSlrjUm1epE0el+R1/E6SmjDa2nGEat5Bu9089bC9O7/1moDT0GJkMv5eR6f1oVY7MRfjp2SiNgOO5pkFBpnkadmD/qflRrAtiUrBhJFdPnauJhI6SU6noXSyb2BmUZUqzYKEqSSSZ6SUSU34WagYVUsg9N27R7DtkONWrmRcf8HHK1Lc4EjrqHJn6ZdxBIsXkXU2MqVZqU/ja5ZU/MyWR5/Bps1/wfD2p+G7TUy1QziWRHfZgVXsREd3H1YtnoW+vl709nSjv7f0V4MwPnRaRUGlxSm8rG7N0pAMlim/CE4Jk+tRbTxmAoYK4Qit/Mhb9/a9eze9ILW/YQwv5jvmM/fcs720YMnMDeWStabtJrmVUVaqtsy3sRqgAm+96yH85qbb4DZqWNjfi57uHlRKJViWjSCM0Wr5aDRaqDebqDeaqLkRLFugp7OIQudMrFn+JvT3z8Ee8+dgVldxp+tkpUB42ZZgqLrEnyUq89MkODkunjVVoREFMao5G367een6lZ2fejEQXrbiBgbbn+qZUbyETcWs2KZ/Ynsoi6aMgEPjLVz6Xz/B1OjT2P8tyzB7Zm/i6IMQYRghDGk2ielkLaKIPiiM4PshGk0XzWYDU40a6m6Ickmi3N2Lt+y1B5a+eQ+sXLIQM7rLxi1QiR47I2l3xPizFFyitsQnmqhq8juNks1go2BrDRG4WwMv3veItT1TLwTvZYH7w0NP9y7sn3NPqSgXMiCYRuNz1MbE9eEnRnDhpVdh1fxu7L1iCYIwghcECKMYUfaMY4Rh8jogxJgQNQjP+CECpUK4H8bwPR8tgmzW0Ao8lEsW+vrn4sA1S7Fs2VKsXDIP1UrO3BymMD7PEwvj6wJjnjTTJFAEsUJOJj4y8iMUWIfE8bp1Kzs2virgtg23PtHTV7os9JI0wASFNPWg4vI54LGBMZz/je/i71YvQv/sWXA9D2EYIooiAzCOYoRxDM/z4Xo+PC+Az2MR31NpkU4fpKGUQKRkoiSCjCSiSCAKVPLddgON9hQsK0TXjA7su3YVDjt0Hdbu82ZzbQYgVZb6OJOW0GQjZW54XtACInTkHXjt5kXr9+r4zG4Hd/bZZ8uTTz1rY7liHxiHiR9h+sFAQHNxJMulCGed/x2jtHlv6ofruogILaZpEl6MIAiML2u1XQRhaIDxeKZGqoEAObgoTkBGkUp7bvRRfC0QRpZRkYqk6SjHcYDQryNXVNj/oLX4yIc/iMULZyVVSFr0GxVmlQWDg0xSFG5j372rV1fXr1wpdhldX7Kpbn2mtbqrs7jRkqLIC6VDzgIBwZUKwGXfuwFjA49g331WoO26CSwDh/BieK6HyakaPM9LTZbv0WQJL0r2o9ioMkhN2gDka0JkDhYpExW1FtCQEMKGlg6gbWhTxjPFaKBvZgUfP/njOHz9WrRS5QXG9AkvzeXoHxXrVw0n9puxEm8+dGVlaFeqe8ngBifiT1Y65aUha7+0+M7Sj0IeeOixYXznO1fiHQfvY1REs4wiBoIAcRQZkBOTk/B9P1GSCRBBoraQn/dTmDxOiATGLV+nioxjA49wINjAY4YtIaQFwX1hQYtkn/AtW+Okfzsdf/+OA9H2Uj+XdoiZltBebaGh2a9DrONYvfdtK8q/2L3gaurXxaI4WqUJJH2ETTPltVsaX73wvzG7IjGrrwce4RhoieKCMMDY+LiBZ2AwGJjAQKg0Sx6jCrWBmQAlTJo3vx+ZvIvOXLBEEAJCMPFNQrkBBwnNfcuGMFAFlIqRyxdw+he/gv1WL0PDTftzSicd41jBYaURa/SUHLTrjc+vX9mxy47JS1LcpoGB4qKOuZvzebFMpyUPT0BoTD023P0wfvWL67DfPsvhut4O80z8Woip+hQma41UWVQRDMwEXIQ43Se4OApSYEAYeAijwADSmp1RghPGt3Kb5MMJxEx9VJ2QNu8mYNlQUYj+hUtx9nnnolIpw83KrrSSMOCURmfOQejWr37bis6P7DbFba/ptZal77SlyPFy6WC5ZedBKYWLLrkKs6oOCvl8AoR+zWwjeL6L4dFRuJ5CEGpTsEeBQBD4iFWMWEWIwjpU6Ca+kNswNll+zCgECSkcKM02CQtS/nK0oxPDFDzRIYFSfYRIcFRfzgDktRz7z5/E8Scci7ar0g4xc0aePen0VaSAiLxHutVTe6/cRfn1khQ3OBEdU6xYv4oZbzjJopJISrX96aFtuOaH12D5ogXw/QABVZQFhCDC5NQ4xienEIQCbijh+RKTvXPhVYrIPTGAXLOOOJ4AwhAxzTKomTTEdHy1l/guc5voWTmXSPWFSVAwf7FRH83YuD5jxgQooS3HqE9Bomf2fJx9wcXo7KjAp3swLSZApjPeJUvDioLBkttYvHZtf/v5VPeSwD09Fp9Z7pDnEhzvD1MEqo2d2ut+swEPbr4fM3p7jIqYbhjlBKHxdcMjQ0ZtXmjDbSsMLFqJx048AWDWv/kvWPjNy2DXB5hXAHEIpZqwZNVct1INSFkyoJRyE1g6hjaFnp2IDyrxezqFaMClHQdjsjljsrzuk8/4Cg46ZF9zPQYc05k0qpYswFH+uCW9VYcsm7F994CbiL5fKlkf4lyC1nSswnRlWcBfftVP0RgZRqGQR2jKKd/4JZrpxOQExicmEIQWvDCHhu9gyz99FN76VQCt0AZmnnUxSg/cAUuGEKoJaBdSZjVpBCk7EnDahxRlKHCfjbccNPMis29mWSGMH6TqNKQxWStJVayccQvrjv4ATj7lRLTcpL1k2kym0GUJJlASvuvo6JADV3RtfsngbtXa3gsoBA3k3Rakb8GtiuiaUtk+xveUqRjoU9gmKuYFLr/yGkwMjSBH5xrQ4dNPBaYiGBwehOu24QUCXuhgSnTjsTPOQDxvRjqjrNB31tdRfvwB5O0cEI9BaA9SVhCpGqA56+NAa/oIC5AER2XlmfdDhT60FLBoxlYAof0UnjLukAo1arPyxhev2vcAnHbWOSaJNmWe6elRCAm4TukrS0XvOGivrt+9aHDba8GaQt56r4A8XADztYIVKgimXH6M7iDUebackzJLIm8LlIsSP/jRz/HU1ieQcywDLnHwAWq1BsbGR5M6lYrzJEZmLsHw5z8LlOm0AWwfQ885X0Ol/oypHRFPwpZF2FYXwngEgoBEHpEaNwpTyJsqROsCgupMtFeshLt8Oap/ug8d998CKQgvgICfRFppm/QEBAdg1oIlOOMrF6BcLsAPlCnHIjPvClQcgW4nhFThPxy8ovPXLwjugaGh8uxyzwXlvPOxsoPC9PUaZpYoLZobHtAMtAEhoVDKSXSUHdy+YSN+d9MGFKm4NK0gwKHhUTSaNZPL+ZEFzwXGVrwNk6edlkDjHMLmrei78DzkLR8W18qoEUiRgxR5xKoJ2+ox4EJVh5B9UDqPel8vWgccAW/Naug5Myk84OkJzDn3FOTbIwacFASXJMSC/XOZhxISHTP6ceZ5F6GzuxNekEb5IKlIOvISvU7AhPiog5ZVbtgluE0DurigHPx4RnfunXQXbNJm8wEZQAYCphDs99c9YMqDKbALtjJNyNGRQVx++dWwtDA5GHMyz/ewfXAYntdE4AfwjFkINHsXY+JzXwPmdptGXunKH6D79uuRzxVhqwBKDSFnzTTRNIrHIQXz+RAxTVF1obFqPcY/ehLQVU2CLG+AApwNGzHjR99GTk0Bqg0pvCQ9sRxIY6o5aGmjWOnCmed/A70zZ8INmCpxbGwoAF0Fgd5cEBVkfNj+Szvu2CW4rUPumTN6C+faCijwxqTTeNmXssV+bM1w9oiqm2wToELgt1AtSHQULVxzzU/w5/u2mKUMcRCg3W7hmeFhBF4rKaPY6WDGJDrQnrcUrdX7wRkcQuXe22HHU7CFgDT+zE/AKR9au7CsPkSqAWWiaieG3nkCvPe9G+DSGQrqwUdRuHUjylvvQS4ahaObELoBAVqFSCsJzto4Jkg4OQdn/sd/ord/Plw/MtAIj5Y1oywxq+DXrThae8CKzq3PC+6ux4dndRZ67uut2nM68sn6jWxtx/QvZebKiWKCq7WAmtm2IZSPGR0FjI9uxxVXfB+tqTokYgNu++AQVOSZ1EErunSWRBXTyYASkLIAbdGnMBhI6Lhu5COlA61Ck39JUTHRVAtO73ej0TMbEyeeBj1vjlGauP8RVL7/A+SDQdiowVF1SN02UVaa2fAkl2NU5TNnC5z+5QswY/5iuG4EN1KmhtWxwNwuBws7w+G85S1ftaBr8nnB3f1Y8/hqtfzDzhzQU0qm0v4WOLam6ecIjl2GWhuYaFF5IcamJtFZtNDX4WDzvZvxv9dej9BzoaIIo+Oj0FEAzSxfhyYSa50W5iAU20RNafIuwmol/k0yGPAGJJ0OZSJqHkqWEcU22vPegua/nAR0dxvVWZv+iI6fXomcrsNRDWhNU9UmAWZoVVYOgsFBOCjlLXzqjC+ia+6eaHsRmp5GMScxu8NCf4eF7qKIRBQ8mnfkz4PQ/83SuX/d2BSbHmne3Fktv72vDHQUEsWxGnjuIwPH3hf93FQbGKnTXDUeGhiCFDFmVHPoKlu49dYN+O1vb4alYozXpqBjggvNBHDyYIHDhJVQ+IiSYolFuXHqBQhGT+VCWiUTGaOYQIuIhYWQ34tLcBeugH/ch4DuXmBkEJXvXoB8ewwWXGiT77GWSBoA9G9cKBcLB92dFZx02umI8r0m9Vszv4QVsx10FYUZu7GuNHeuN1XkB9FN7Xbwmb0XVh/KuIhNWwOvs2Tn+6rCZAecITezU9PWc5i0Ml0JZKbfwsTHDU0Bky6wYcs20w7qrThGeaW8xJ0bN+HW2+5Eo9k0lQT9jWkEMVHl2dnhoNp4VLBc4uI4JrKRAcgEO7HDXFLQE64oGNz0k0pUkvUhCxZDrz4A4tEHkXvwLtgihNSJa0gEQNfAXp0NZTnGVSxeuADHHHcCpJXD+9f0YcUc2zRgn6sXnr9O3yeBlqeGJyfDE1cvKlxvkuvfP6512QF6y8kCFwYHllHZsgSezAwh7ZhyPIRHH/fMJDDWAn72x8dQb7XRVbZNoKgWLBRyAvfe/wBuuf0u1CYnIWVaQ9K5pRMrdNw8v5khM2rjZ2iYVGJWfxJunJbwBGjm0kx6ohj/zQpryyS82lKQpopgI0AnLodmaop9C4rVAwTWH3wgluy9Fh/cbxbWLSqa6idbJfpcS3PNupNkQnuioVrDk976I1eV7xW3b2lvL5eKczoLQKWQrIqk6rIeWwYuWw1kymwFTLaAgQlgsK5xxa1bUGu66ChYqOSpXMss4Ms5EtsGnsatGzahMTaWhutsLWsaug2s7F5nix7S/CKZ/08L+7RlZMqpDJ4hk62JShWbLj805Ve2II9zlCbJQqW7C/sftA4HrZiPUw/vRweD7S7A0a/XXW1SsLYSeGpIbxiZeOpIccufG8dVOys/5r2o5JNVQaw9WUrxhDRbk46k62/5moobbySKu397gK/9ZgsKFlDNSZQJzhHI2xKOJVDISTRbbfzpwS0YePxxxL73rJzNwNJZ62yG2dzydNlOUqVnK4PTdpKRWLqfLe/JPpO9nuZnTFRNyFj5Apbtswr5rpn4wpELcPiyqhHKrhTHsTJ4TLnCWNdgA3Dr/lHiuo2j1XJf7x2VvNiHTbZyBs9OA8U02zcTMjKJrsNTwEgT+NE9ow9864Ytt/dVZVDNW6LsSBT5XUsgZ7P7L5BzbDPX+qeHH8HAlr+YZQeJjSWpwk4P2pdhk05mcHfHa3YyzXKa9GD6mez9hOiOhHjHwjzzOzZ65s3B/D2XolSt7nnh+5a9a0mfZcZLkTz3MrJronVxoQ+ziPEWsL3GXDZ60NjIr/6sjynk8EsHEPRxDBK8E1ztw+k+njhHFTqJCTMl4Qm21eDd/KR7+NePLt35fPnO/8fj592ljz5sPn49rwBUC4mF0bqmp2HZMguKhOC4kpPpF8fNgLEjkPzyz/qzjo3zcwKSyqOfy2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",ie=({dataSource:ao=[],img:br,imgWidth:Un=346,title:On,sunTitle:Re,bannerExtraContent:hi})=>bt.createElement("div",{className:ge.banner},bt.createElement("div",{className:ge.content},bt.createElement("aside",null,bt.createElement("p",null,bt.createElement("b",null,On),bt.createElement("span",null,Re)),ao.length>0&&bt.createElement("div",{className:ge.btns},ao.map((en,gn)=>bt.createElement("div",{key:gn,onClick:en.click},en.name,en.sign?bt.createElement("img",{src:se,width:39}):null))),hi),br&&bt.createElement("img",{style:{marginTop:33,marginRight:38},src:br,width:Un}))),ae={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"},Lt=Bt(92310),kt=Bt.n(Lt),Jt=Bt(89392),Wt=({dataSource:ao=[],value:br,onChange:Un,onTitleChange:On,className:Re,title:hi,titleWidth:en=41,style:gn={},fontColor:Ve="#6A7283",showCount:ni})=>{const[Bi,_i]=(0,bt.useState)(0),[tr,sn]=(0,bt.useState)(!1),fi=(0,bt.useRef)(null),Zi=(0,bt.useRef)(null);return(0,bt.useEffect)(()=>{var Tr;ao.length!==0&&(((Tr=fi==null?void 0:fi.current)==null?void 0:Tr.clientHeight)>97?_i(1):_i(0)),ao.length===0&&_i(0),sn(!1)},[ao]),bt.createElement("div",{className:kt()(ae.row,Re),style:gn},bt.createElement("div",{onClick:(0,Jt.throttle)(()=>On==null?void 0:On(),2e3),style:{width:en,marginTop:tr?12:4},className:`${ae.title} ${On?"current":""}`},hi),bt.createElement("div",{className:tr?`${ae.tagsWrap} ${ae.tagsBorderWrap}`:ae.tagsWrap},bt.createElement("div",{className:ae.bar,ref:Zi,style:Bi>0?{height:Bi===1?97:"auto",overflow:Bi===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},bt.createElement("div",{className:ae.tag,ref:fi},ao==null?void 0:ao.map(Tr=>bt.createElement("span",{onClick:()=>Un(Tr.id),key:Tr.id,style:{color:Ve},className:br===Tr.id?ae.active:""},bt.createElement("span",{title:Tr.name,className:ae.name},Tr.name),!!ni&&bt.createElement("span",{className:ae.num},Tr.count))))),!!Bi&&bt.createElement(bt.Fragment,null,Bi===1?bt.createElement("div",{onClick:()=>{var Tr;_i(2),((Tr=fi==null?void 0:fi.current)==null?void 0:Tr.clientHeight)>245?sn(!0):sn(!1)},className:ae.action},"\u5C55\u5F00",bt.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):bt.createElement("div",{onClick:()=>{Zi.current.scrollTop=0,_i(1),sn(!1)},className:ae.action},"\u6536\u8D77",bt.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Gt={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"},wt=({dataSource:ao=[],value:br,onChange:Un,className:On,style:Re={}})=>bt.createElement("div",{style:Re,className:kt()(Gt.tabs,On)},ao.map(hi=>bt.createElement("span",{onClick:()=>Un(hi.id),className:br===hi.id?Gt.active:"",key:hi.id},hi.name))),et={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"},tt=Bt(92832),rt=({dataSource:ao=[],value:br="",onChange:Un,onInputChange:On=()=>{},className:Re,style:hi={},placeholder:en,allowClear:gn=!1})=>{var Ve;const[ni,Bi]=(0,bt.useState)(""),[_i,tr]=(0,bt.useState)("");(0,bt.useEffect)(()=>{var Zi;let Tr=br;(Zi=JSON.stringify(br))!=null&&Zi.includes("{")&&(Bi(br.id),Tr=br.value||"");try{tr(decodeURIComponent(Tr||""))}catch(ii){tr(decodeURIComponent(Tr||""))}},[br]);const sn=()=>{Un(encodeURIComponent(_i),ni||null)},fi=Zi=>{Zi!==ni&&(Bi(Zi),Un(encodeURIComponent(_i),Zi))};return bt.createElement("div",{className:kt()(et.input,Re),style:hi},!!ao.length&&bt.createElement("div",{className:et.dropdown},bt.createElement("div",{className:et.text},(Ve=ao.find(Zi=>Zi.id===ni))==null?void 0:Ve.name,bt.createElement("i",{className:"iconfont icon-zhankai4"}),bt.createElement("b",{className:et.b1}),bt.createElement("b",{className:et.b2})),bt.createElement("div",{className:et.menu},ao.map((Zi,Tr)=>bt.createElement("div",{key:Tr,onClick:()=>fi(Zi.id)},Zi.name)))),bt.createElement(tt.default,{onPressEnter:sn,value:_i,onChange:Zi=>{tr(Zi.target.value),On(encodeURIComponent(Zi.target.value),ni||null)},bordered:!1,placeholder:en}),bt.createElement("i",{onClick:sn,className:"iconfont icon-sousuo9 font14 pl10 current"}))},ut={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"},pt=({value:ao,onChange:br,className:Un,total:On,pageSize:Re,style:hi={}})=>{const en=ao<2,gn=ao>=Math.ceil(On/Re);return On<=Re?bt.createElement(bt.Fragment,null):bt.createElement("div",{className:kt()(ut.quickPager,Un),style:hi},bt.createElement("div",{onClick:()=>{en||br(ao-1,"prev")},className:en?ut.disabled:""},"\u4E0A\u4E00\u9875"),bt.createElement("div",{onClick:()=>{gn||br(ao+1,"next")},className:gn?ut.disabled:""},"\u4E0B\u4E00\u9875"))},Ft={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"},Tt=Bt(71418),_t=Bt(6848),re=Bt(13570),he=Bt(3294),Ae=Bt(955),Fe=Bt(96908),ee=Bt(57177),We=Bt(81378),Yt=Bt(8797),Ge=({className:ao,dataSource:br=[],col:Un=4,right:On,bottom:Re=23,precision:hi=0,wrapWidth:en=1200,trackEventItems:gn,loading:Ve})=>{const ni=Math.floor((en-(Un-1)*On)/Un);return bt.createElement(Tt.Z,{spinning:Ve},bt.createElement("div",{className:kt()(Ft.list,ao)},!!br.length&&br.map((Bi,_i)=>{const{name:tr,id:sn,identifier:fi,power:Zi,cover_image_id:Tr,pic:ii}=Bi;return bt.createElement("div",{className:Ft.wrap,key:sn,style:{width:ni,marginRight:(1+_i)%Un===0?0:On+hi,marginBottom:Re}},bt.createElement("a",{target:"_blank",href:`/shixuns/${fi}/challenges`,className:Ft.li,onClick:xi=>{xi.preventDefault(),gn&&(0,Ae.L9)([gn]),Zi&&(0,Ae.xg)(`/shixuns/${fi}/challenges`)}},bt.createElement("div",{className:Ft.img},bt.createElement("img",{className:Ft.cover,src:`${ii}`}),Bi.is_jupyter&&bt.createElement("img",{className:Ft.sign,src:Fe}),Bi.is_jupyter_lab&&bt.createElement("img",{className:Ft.sign,src:ee}),Bi.is_unity_3d&&bt.createElement("img",{className:Ft.sign,src:We})),bt.createElement("div",{className:Ft.name},bt.createElement(_t.Z,{title:tr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},bt.createElement("span",{className:Ft.e},tr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),bt.createElement("div",{className:Ft.tags},bt.createElement(_t.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},bt.createElement("span",null,bt.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),bt.createElement("span",null,Bi.challenges_count))),!!Bi.myshixuns_count&&bt.createElement(_t.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},bt.createElement("span",null,bt.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),bt.createElement("span",null,Bi.myshixuns_count))),bt.createElement(_t.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},bt.createElement("span",null,bt.createElement("span",null,Bi.level))),bt.createElement("div",{className:Ft.rate},bt.createElement(re.Z,{allowHalf:!0,disabled:!0,defaultValue:Bi.score_info}),bt.createElement("span",null,"\xA0",Bi.score_info?`${Bi.score_info}\u5206`:"5\u5206")))),!Zi&&bt.createElement("div",{className:Ft.lockWrap},bt.createElement("img",{src:`${he.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),bt.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!br.length&&bt.createElement(Yt.Z,null)))},Oe={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"},Ze=Bt(24065),Qe=Bt(59301),oe=({className:ao,dataSource:br=[],col:Un=4,right:On,bottom:Re=23,precision:hi=0,wrapWidth:en=1200,trackEventItems:gn,loading:Ve,onRemove:ni=()=>{},isCurrent:Bi=!0,showAlias:_i=!1})=>{const tr=Math.floor((en-(Un-1)*On)/Un),sn=[{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 Qe.createElement(Tt.Z,{spinning:Ve},Qe.createElement("div",{className:kt()(Oe.list,ao)},!!(br!=null&&br.length)&&(br==null?void 0:br.map((fi,Zi)=>{var Tr;const{name:ii,id:xi,identifier:fr,featured:mi,school_name:wi,image_url:yi,excellent:nr,is_plan:sr}=fi;return Qe.createElement("div",{key:xi,className:Oe.wrap,style:{width:tr,marginRight:(1+Zi)%Un===0?0:On+hi,marginBottom:Re}},Qe.createElement("a",{className:Oe.li,onClick:Rr=>{Rr.preventDefault(),Rr.stopPropagation(),gn&&(0,Ae.L9)([gn]),(0,Ae.xg)(`/paths/${fr}`)}},Qe.createElement("div",{className:Oe.img},Qe.createElement("img",{className:Oe.cover,src:`${yi}`}),Bi&&(0,Ze.bg)()&&(fi==null?void 0:fi.studying)&&Qe.createElement("div",{className:`${Oe.movebq} user-path-items`,onClick:Rr=>{Rr.stopPropagation(),ni(fi)}},Qe.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Qe.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Tr=fi==null?void 0:fi.subject_tags)==null?void 0:Tr.map((Rr,Zr)=>{var Xr,ei;if(Zr===0){const Zo=(Xr=sn.find(cs=>cs.name==Rr))==null?void 0:Xr.swimg;return Qe.createElement("img",{className:Oe.sign,src:Zo,style:{left:"-4px"}})}const Ho=(ei=sn.find(Zo=>Zo.name==Rr))==null?void 0:ei.ptimg;return Qe.createElement("img",{className:Oe.sign,src:Ho,style:{left:`${48+52*(Zr-1)+2*Zr}px`}})}),Qe.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(fi==null?void 0:fi.excellent)&&Qe.createElement("div",{className:Oe.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Qe.createElement("div",{className:Oe.name},Qe.createElement(_t.Z,{title:_i&&(fi!=null&&fi.excellent_alias_name)?Qe.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${ii}`,Qe.createElement("br",null),Qe.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${fi==null?void 0:fi.excellent_alias_name}`)):ii},Qe.createElement("span",{className:Oe.e},_i&&(fi==null?void 0:fi.excellent_alias_name)||ii))),Qe.createElement(_t.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${wi}`},Qe.createElement("div",{className:Oe.unit},Qe.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),wi)),Qe.createElement("div",{className:Oe.tags},Qe.createElement("div",null,Qe.createElement(_t.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Qe.createElement("span",null,Qe.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Qe.createElement("span",null,fi.stages_count))),Qe.createElement(_t.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Qe.createElement("span",null,Qe.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Qe.createElement("span",null,fi.members_count)))))))})),!br.length&&Qe.createElement(Yt.Z,null)))},Pe={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"},En="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20P9rXcHhEmI07kdtsODasA5/OlX6gy/dfF/bbTV5GmHeL3JBLRxzttof45awCLRYo9vpuZE7YGdyG2Q0R5UvQBWxYwKwBn8pWPEPg7IlhdiKDYnrMIXAz6WDrh/mu3bXcNcEC5P7wIbrdQzH9eQCZF7+2WkrsCWPZcD/TgRbZsF1zTmrBrBX5HN3tyxwD7YTOVRy8KVL0Bd65Vmo667q2dStcdASx6rofyjouqUK/B9dsXFUohcksnenLbAMtemy1UfnrRiLE84NZ6IdqRirtvbdfi1TbA2Xz5r5j5j5Z5ehe705RMf51KRP64ncVoC2BxHLDH9/batlz2gJPnFc7PArNVgvjViABH6Zhm/ZErQoxkH7AmxYhHlsX71s7aWr9XbNek6M52HBQtA6xdflx5pldCVaEMHDuvcK5A8AjI5oB8EShXgEoZKFeBSgVQCohEgKjr/4z3AUP9gCIg7jLWpBn9fa9lsMXa5d7UqquxJYCFYrOFyk964c8V4F44oVCsEs5lgfNZIJcHPMFIk27wU0sbof/V0UcyBgz2AyMDQDQCbBzwXrtAEz2airu/3ErQQEsA5wqVT3qe93WbPKfqAS+eUsiWCWdmgJPTQLVaB2gjw6oB3U9B0azbsGz5XV6KsWFg01pAzGqXjniIua89ilZK3ZWMu99ohklTgP0YqsqLNlnz+SJh7ymF8xkf2JKEkFu+BOx1Y8CGNcBAH2P9gGe5h5VujqZTCfeKZjFeTQHO5EpfA/ApW9N5ZYYweU5h6jhwPlfHcpux5Ha/BxCLAldfBqSijMtHX2sg4x/SyejvLIXNkgAHoa07bEnNe48rnCkQDr8CFBokehh2q1ntIizYsOVG3y/g6AH7dl3gykuAvj4gAkahSihUCCVP9nryJfNgj1dguIrQ5wKJCCMZZaSjjOGEh6jV9LbuSUb2YAW+ZamQ3CUBzubLT9mKW95zTOFkhnDoqC8NL8clL0oqSYgnCSoCVIM92580axAjji+BuyqQ4RgQOq8wUKrK/0jv83Ilo8BQzMO6VBUDseWYQfM+JO46lYi8cbE7FwVYZxxUvf9u3kXzOyZnCIfPKuw/FAhSgcxTz3GbyFQLpOh6Ics877qE9AAQiZEGSyJUI6JGOT5VxlxocEWvdgTcAGQBUtQwWRTDTQTkYhXIlQnZElD2fMBjDmMizdjYX0VkhSlbOepXF/M6LQpwJl/ebiOd5FyR8PxxhQNHgGKP8+9EL04PKU2tAr5LjIQLJB0DJmswDbACpuP41KuBFYDlEwBsKFdz72ClZqvA2SJpI4yALc+PJ6rYPCDSevOXvSd3EG1PJyK/1KjthgBLIhg8frjbwYgq9MRhB5PHgXOZha01k5nq9d4FalEgowk4/UMKTp/fR59iJBX0nqkBo8ASpsGVPdYHVD7yuwY8uLcGcrAyNZCljbopZErAqQKhWPGB3pD2cEl/RUyK3S5d+88renujhLeGI8nmyv9rI8vv+aMKh6cJk8eC8Tbjye1Oi4BEkpDo91lxVDFSjghS/lVjuQZgMXc6DDdgxRrYEAWbl0GDHwC6FMBmuLkycKJAKFUJMQe4YriCwdjy6t6S1ZhKRn6l0TY37386Pxd4st21rr9fWNnTkw72HeyNnit7Z/+YAsn+CUbaBWJ68wzADbFZQ8GaJSuex6INy9ZCVmDvNkBLW2Y/DrPpxdbmTBGYLhCYCBvSVWzury4rNSvgTfX5yQsoOJMr/T2AJXWrVsDfeUThldOEoydbubu9e9wIYWBUFtJnxwPOHPuct28KyHWs1yHWVCsgCgULwAZkDXBA3ealaAdgmYWoXlNZ0vtzfx9wzUhZ97NM19fSyeinw33NA1jKJmTzlePdZtaL40Cod8+BQGq2OLtIFBgcVVrlSTiMtDPXeHgy+ndDgYFkrPfZEBUb9cgA7H8X7M/B3m0o17QXNLvkjGRsx/OkJW+R2q8erWjW3fuLZlIJdyJcTmIewPl85QNV9r7X7UD2nVTYd4wweXTplpoZNuqf7osB6WEFD4xBw5IbdFG/b8rfMlENoKZQn01rISvYg42qNPcSzLFneRH0FWL/razR6QLh7KxvNLl2tLwsUrZD6oOJhHu3Gd88gLP5skRH3tnK4Je6Z/tBBwenGkvOnbYtHqL+Nb5DeFgMFK2wPSNBB9gYdu2zaNZg14QsvZfPl6r1ixH+NFCfms3nfBk4lSdEXcK1Y2X0tTLuZo0u8T0R3ZtKRN67AGApVZQrVI52W81GDANPHnGw64XA5RcaTODsWbSswGJCthguhsYJHjNGWwXXEJ0BSChYfjdsGKzB05Qb/M/swWGVSb8MwbMycNNGeG9uhse5EnC6qLShRUAWga5Xl1T/ScbddabEU42CbbkEX55W2DtFONAg87WZltToBZAFHV4rbBkYiDASLSzOPLYUAtgA6APFvkFD2HQAvBikjSQt1C036BdAKDt4EbSEbQwjIQNIM8BEXz5fJu3Zunqkt7basCuxthbZfOm7zPjNZgNt9v3OSYWXpgjHpxf655sB3Kjt0XEhLyDpMvrrBZVGqmadXlDbPo3QFLJUacOJYuhce+NXDu4z0nRY0hbDiTgu6oWxZmsi30sXIniJk0NUKDGK9Ooiwr+kEtGPhsQGCZEpH7NRQc7sv9PnlgzA0HNrZslKpgnxftKq0FCHZkAjYEl/AkxNWBKngo4aYWxdR7h8Qr5f3AJVKDF2H/FNnZHASSHgmz26FbCkv6kcoQrCVaMVpHsUiCAV+VLJyNoawEHtxz2tDLLZPT894OClI37oTTeXcoHRCaUdBbLvLrH2S3YzT481+CrA84CKJ2oc49feRHA1T176+vlBT8eGxSJ+PJgxc7ZjmRQ9+WiOEHMJ142WemYIibqRqyVYXs8qkyv9HoCvNptgK98/+rKD3S8CxVIrdy9+z8ioguoDBiOMePO1X9hQ6JkwFcuNQkns+UaJSpnx4V8iOC28QY+/6KFSBeIxaJVHuxoDo0k7sz1bIpwrETalq5hI9oxVfzadjP6dD3C+/B9gfn87g1zs3u2HHDz9/CIGjmY8OWhUjBlD4wpR8lWijq6wcyD4XW/ZQTBfqeJHbM5WGB9/W2sA/2yvp6k+0Qckoj6rNlaxdsYoe/8reV/6u3GsBKcdFtBqR0T/kU5EPqABzuZLLzPjklafXeq+n73s4JkXgFIXFDw2IdIMMBbh1vTdRgOqM0roNQwiN8TLpcEtC6dhfPK25gCLivbALtZUm4wDcQFYjCQdbh/ioDg1q3TwwIaUfSomwqFUInqpVOiK5QqVnK16yz854OCFg/LSLBSi6nFopBaJnXlkgtBHjCEb9WVDDgPDmiVao6zBBUR4+sztPsAvHmU89KwvOMn+KuDJfhuLsLZ7y/8kPFc+ArDEZndCwWYdROAShnLjmjKUZSqWetfJuJuk7Cxfx5XyszaoV9rQQtYkMD3TWYsjYwQ3ThgV6u1k7w11G1aRTJy1sEfJnBAOU5DPLOOzd/gA//wA49+3+/ZoAU8C9hIxRqoPSCeAlAG3zwc+2uEebIaYKQPTswqbByoYj9t3L5IbuZ5s2Z/NoB9/WWH/FOHY6QZ6cIM45nAQnbQxsVHpSIzRaGcvSPgpAViANTZvEazEEWDYswB8+QTjnTdKGA7hbJbx7YeBM1mgT8CNCqjsAxuHTpOR/Ve+kxfA2LE7JT6zF8vLcs2wfeOH2KUpVyh/3vP4i90vp9/CnuMKe15pbMlqxqJF700PkdYPJSKjkyvs9dEB8SEjhuy9IgUbAeuWrcC1m+aziVKF8cOngJdPCKA8n3KjQFxYdjRwMYZiuToZqzxzukjIVwnXj5T1S2PzUoq+QNl86dvM+JithjNFwtOTCk8+17zFeqF6fK2CijLWRHyvTzeX5gwBBUs7QrkSzSl6rLDW224A1gws3snOA4xnXvapt541a0NHKOynm3FKQN+JosLGlIeJpKR22LuI8B3K5sr3M/id9pr19+Fn9/sJZK3mFkn/Gy5ROjpj1IJwpfdcAVhin4U1e6ISARMDwLbrhAqbv0FHzzCeeInR5wCpuL/v9sneKy9gyG/czdrJMEVlSrmErcN2UzwI9GPK5MuP2U7mfmZS4YVX/Bjo8LWUGizS85p1hGSdE7+txTP6bqAOCRVrlajqS83XbwbecJnOs2252fwsQ6hZ2pFMRtl/ayG3gamy5cYWufFkUYLwCTeNWbZsEe2gbK70LAPXdTvI8PPTeYKA/OTu4L9GQFzCXzgwAKSGFIYc7spnKtgZdUgAFvelsOZrNwE3X946sOH5VD3Gjn2sbdkxAdmCgBVuX9yJ58oKVw1XkLSY50zAc7IHWzNyhAf96AEH+yehpelWrjVjhGiSMBZlcR51fIUBFoFKqFcMGrddD1w63hnAMpgn93uQUCRRmbQU3aWKFJ5gvgKcLilc2l/FSMye0UOMHZTJlU/bzBw0Az+dIzx3TGHHLn8PbHZt2KSgHMZ4N+qRsVYFrFnSUWXfFYPGO28ELptYCHClyrjnCeCJF32Hxi1XAnfcLFLy/Hu37w0ADqxYhoprHqpmE1zie9HLjxUUxpNVLWzZu2iasvnyLDN3s6yLjuexgw4OHAUOmbjoJUa++RKlY5bFc9TxFQZY2HPZ/+RngXe/Hrh87UKAv79DTJDzA99Fwn7PG+ff+8huD/kS0C/6cNwXtsRUaSNiUnawyRxhKAZcNmBPHyaiUk8Bzs4SnplSePw5P5uwfgsOC12XvE7BdRgjXfDnmr3ZWKvEHBkAfMfrgS3rFgL8Z//M+gUQsIxrUSTmP//Q/Hsf2OXp+/qTvtokurCoSyaeuuOXMnjwlRwhFSVcMWRPktYA94pFmwnvO6EgyWdPPOdLtDUvf92KXHKZ7z3qxLEvL4oSyVli8uTEQckOrPgClrxYuSLjzpsJV6xfCPBf/AvrPVrAMi+gWKw+5/thatf9z3g4XwAGk0DaOBsCn7D2NNZnQrSJ+NG8H30pgpa9S7Po3ghZ4UE+dUjh+DnCzr3zSy6E77lsi9KpJ+0ArM2QoRIe2lsURGr4rkDfW5QtAu97E+HKBgDf97RIyHMAS5ti4br9pvkA3/e0h5k8MBAALGZM0Yd1THUQ01XLoOhAljteJN3ONRbjtbSQ1Qs1qf4NFIqS/fjISWDfoSDZuq6myqVbFGLi/zXSQJ3tPaxpSfvakCFxVAFXEEuV1nsFYDFJGndghZErAO+/hXDVhsZC1oPPAruP+C/LdZuBt1+3UMj6wROM0xnGQMKn4Hk26SDHycRxmQS2dijxaIEQUaQzIWxdWk2ylSbabFCirkim4akZ4NmXfBDCe/DlW5SOvdJOBpNxv0ijJiPfUKuxVA0lgY0jvgAkL4BsCcb+fOm4sNcOSCsYw6GTrL1P2gccfKTfmTxr27b8XwcAhCxcbdhTMCUsOgJcPWSRRRM9JqbKHzH49mYA2fheFuSpIw7OFYCn9wRhPQHKW7YqXdhsIsicr0VfBB2HKdgYMgyI8vKsHwLeek17Viobc2Jm7J1iZIq+AaRmp24zlMcXsoArLAJMoPutOxtaWbTnjymcLRB27YcOr5Vr6xWkY5Q3JedaMKCaMknyjfEQyXeyzwqFFivAnW/ojkJbGfdi92SLjJ0HWbsXta06FAjQChXLnCbzhOE+xusG7TkctLPBtruw1YU6lSHsP62QLQC7DwJrxhWqirFloI5FByjXtuTQPlsTpMrAb79t+anXzFWo+Me7WEd6yN4sTgmTEtMKwBL8d7ygsDZZxXqLhg7tLrTt8G8VYHPfoWmF4znC0TMKmSrwun5PmwH9sjfBj9CebGpVihnSWKlyReBTv9KhA7ndAS9y/z1PeugPoj5MOE+rEZe5ih/ZIUaOIYuJ49rhbztkp5P1kr10+wEXB2cIG/s9DPbNVa+rUYnZi4N4ZpGShTVLPctMAfjM7Z0BfOgE4+cHgfN5YP0ocOtVrbkS6+f5b9s9DKUCCTtg1SbdpdmazJT8tJZrR+xmIOqQHdtBd80ms9j3UtTkP3dHMBpnbOpnQ8C1MoXmOSMxi+QqUq2w+Ewe+My72gf4wV2Me570JV/tpPB8gH7/DmDNYHsS93d/4gNcs3QFOnIrtmrRgUWWuGmNPQm6FnQnC7ccxo5WgL/72QgqHuPGCV4ArBG05Kdmz2UgN+sDfDYL/O672wN4aprxt/fMpaEIECacdt0w8Ad3tgfwPz3kYbQfWk/WwQFBWG0zgEWNFwl6oA/YMmgT4CBsVhY+ky/fDebfaAWEXt7zyAEHR2YUbpjwEHfnDCI1cg4iNLQLMGDPYj48m2kfYKHeR3b7QpGoNgZg8TzJnv4XH5bvWgf5Hx/0MNLvmzLDADdzRuSrUqlH6XoeaxIWPUnhwHebqSvdvABTM8CDByLYMMDYPNA4jNQYLjQQs5J240dBtsuif/A4Y9+UgMFatRGAhTMUSqT39N/eBmwYaR3gbz7oYTQNDKR8Z4REf7TibZJojlmPcMOo9bzhudQVm8ln3QAsz37vWVez5zdvDAEc+tUALM53EbBmAoA//c72WPR9TzFePsma2kR/FR1cABbqPZ8nfPhWYP1wewCPpIHBNgAWs6qwZynWstWigUPWcV7ymd6HLaWPdgvwzikHe04oXD/uYbjBIXnzKLgInAsAvqtNNen+ZxiTp1mrNkJtYkcWwU24grT5628mrG0DYM2iDcChPXgpFi2hOjNlhcstq0cL0kcDQctKAni3AIv/9vu7I7rK683rF7LpBQAXgDMZ4BPvaI+CJc/o2FnW3iHRW8UTJHu7ULAIbe+5mTAx1DoFf+thD8MCcEjIMtV7Gq2JCXqX6gLXj5XbCgRstsYNE8BtlXBo1nkr3+84pPDSGQc3rfMwUkfFJq9XVCRh0YaCP/QWQryFUFjTv0RonJzxU1I0BSs/+kMoeCbruwvHW1SVJL/p7sdYAyxStE5Oa6ImCfWeLYlwVcF4wm7aSsMSDraKsLQCYLN7ciXgnr0RXQfrzZt4XtEWDXCdFC37sGQoXLe5dYr72R4PJ87DZ9GBkGUo+FweeMd1tGRgfHgOzx1mPH+E9f4rAGtX4hIAy94r3iOXCNePlawmni1ahMVn03bKKDUDsJXv/++4g+eOKlw55mHT4NwT2oMU6MEiaIkeLFQsku8Nl0jUhqScNAf68X0eTmXmwm8MixbOIJXof/kawmj/0u3kZhn7p4Bdh31hTbPn4IURgBfLPJR0lUyZsGWwiuG4RdXIP1upcRklWcKVtkuHgfc8xg/3RFGsspaoE0G2gzZ0BA59baoUVSnvmxoF5GyBtIVL9nJxRsglViqxb+uEMskUjPvClXwkPEe8P1pNEs9UYB0TKpb2MtKelA4O0l5M6SVxKMjeLWqWBOJJW8LujbNBUk8bxWsVKuJYIKTlqAGL0Rtm7ZYshGarlGErFNrKPScyhAdecrXA9cYNfhlgk60gYMii66C6or93SuSGRD4KSKUKaVYuFK9LFjoCJOv9Viq362zBIM9Xx2OJqTJg/aYt+SltSx+Vqm9OlMu0pdNLg7YkXlpKOwi7X6x+R1lYc9Yv43PDSFn7j+1eTUoZSme2ipHaGviuowq7TzgYTTJuWucLI8Yebfbi2QBUne8rlBscpCXgGoAFZDE8SByVpj5x64XSQOV7aVf2YT8x3P+ISVTUJ+nLpLqatvTBXAElS1smrSVc+9Ksg6mwU2afNY9YZs26H6X+Ph13PxNe+wWbjK1ywrYAFl/rAy9FcSoHbB5kbBllDZpJKtPpoKGUUJGEBSShNh35EQiopui3T30+0Pr0tKDAmc4hDgQ4kw1hgJW/dX9BrrGpVGteGOEAus0glMcUSgvXddHFSSukzZGXWXTqh9e5pXLCWtiyVBDcFsiywD960UVmlnDNuIe16YCKg2o5RjfWe7MAEQBsYrfmFSM1Vd5DZYRN8W8twAVCnGlT/5T4MX34g++gNtXwxN+rSz0EFfG0V6pW8HRu9lKUVFyCUuXuqhH75Rq0nNFqQXDNpi2V9LcFsLQjqtOPX3Qhhca3jjHWpX1nhA7eC1ixYd36b3koFCigIx39lai5B8Phrvr2IGHcsHbNBYLgwHDYkC6FGDows1Yhvu5QD2nTgCv7vtTFsl2Lo7bG7ZT01yBbOpTDJsiZWeDhgxEtSIlDQth1GBQTqFeLugx1HsSm+1uVsOPQWQ4B7r7TKngpwjU9arFhcxWF5yrBm1LFQQeGLcvzx/KEfIV0wtq1wz0sDE70WDoReUujtV5U0bN5rI5NkCUT75EDEQjYw3HGNeNz0nWAT8jP2KDnYMZm4o1ipswLop9eysgUqsUVbsdUs9NV36OMa0Z7w5bN7Do6VkfvxRYPxrIJsuzJ2w9HcCLrn4N07bicUGazh87bkvpXx3JySAhhPCkCVaV3bNk3bHR2MJZM0fbRdp0vW+Mnxeu055QDqTa1cRDYNMAd17TsdmyyX5+UksEl2eMJW4aqGLPpwG/EjLo92k7vxZYPp+x2Ieufl1NOdr7i4lxRLEuMSwcYo6mFZxzZ7te0J3vtzKwvTMk5iAMxxpXDlR4YMRrOoLvDKX3J0v7xsrYXW3Rl8T7tOen4xUIjrIWwsYSd/N1G4xXVSYA9UyRUPKkeC1w+WMVo74qL1g3D0vGy0upqciUu9XJIwN6+0w4OTit9rI2rWLsb1yQZ6b7OSxKbPkVHlvMLZ2ZJq23i55LDpzcNVrE26fV0r62ft7UDogMq7tkR77apWdqrMuPwjMLhGQdydqI2TijW8dZyVKzYjyWoT2zBi1URFtYrOrcOrq+I98ePwxbmLwYNOdlsfdrDaHx5D7/S62X7iHdf4OKNVa4804t6Hr0A2bQpOvPRjIOTOYWzRd/VOFel3a9ma8yYNcNJrQSir0zJ/RHJXY5D25BFOhYz5cpcNO2Qe1MiQQ1OxVg4ouaO09AzuWLlDvb4XlsHRi/3AklJ4POzCjkpyD0rjgmlvUQV5uBsYXHC+6BHHKF01npsqo+RtFCcrdv5yoHQpOjOZMy9r9W22gJYGs3my3/FzH/UagcX77O3AkT016lE5I/babFtgJnZzRYqP7VdHa+dQV+Q9xLtSMXdtxJRW+kPbQMc7MfrPZR3MGPjBbnYyzxpIkwqRG5JJGiq3a47Alg68YPlK4++2oSudhdo5e+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Nn=Bt(59301),kn=({className:ao,dataSource:br=[],col:Un=4,right:On,bottom:Re=23,precision:hi=0,wrapWidth:en=1200,trackEventItems:gn,loading:Ve,handleVery:ni=()=>!0})=>{const Bi=Math.floor((en-(Un-1)*On)/Un);return Nn.createElement(Tt.Z,{spinning:Ve},Nn.createElement("div",{className:kt()(Pe.list,ao)},!!br.length&&br.map((_i,tr)=>{const{subject_identifier:sn,id:fi,identifier:Zi,power:Tr}=_i,ii=_i.is_public!=0&&_i.is_public;return Nn.createElement("div",{className:Pe.wrap,key:fi,style:{width:Bi,marginRight:(1+tr)%Un===0?0:On+hi,marginBottom:Re}},Nn.createElement("a",{className:Pe.li,onClick:xi=>{xi.preventDefault(),ni(_i==null?void 0:_i.first_category_url)&&(gn&&(0,Ae.L9)([gn]),(0,Ae.xg)(_i.first_category_url))}},Nn.createElement("div",{className:Pe.top},Nn.createElement(_t.Z,{title:_i.name},Nn.createElement("div",{className:Pe.name},_i.name)),Nn.createElement("img",{className:Pe.img,src:he.Z.IMG_SERVER+"/images/"+_i.avatar_url}),Nn.createElement("div",{className:Pe.text,title:_i.creator},_i.creator),sn&&Nn.createElement("div",{className:Pe.btns},Nn.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Nn.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),ii&&Nn.createElement("div",{className:Pe.sign},"\u516C\u5F00")),Nn.createElement("div",{className:Pe.bottom},_i.visits>0&&Nn.createElement(_t.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Nn.createElement("span",null,Nn.createElement("i",{className:"iconfont icon-liulanyan"}),Nn.createElement("span",null,_i.visits))),_i.course_members_count>0&&Nn.createElement(_t.Z,{title:"\u6210\u5458",placement:"bottom"},Nn.createElement("span",null,Nn.createElement("i",{className:"iconfont icon-chengyuan"}),_i.course_members_count)),_i.tasks_count>0&&Nn.createElement(_t.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Nn.createElement("span",null,Nn.createElement("i",{className:"iconfont icon-zuoye"}),_i.tasks_count)),_i.is_end?Nn.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Nn.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!_i.is_accessible&&Nn.createElement("div",{className:Pe.lockWrap},Nn.createElement("img",{src:`${he.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Nn.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!br.length&&Nn.createElement(Yt.Z,null)))},Vn={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"},Ai=Bt(89070),Si=({dataSource:ao=[],value:br,onChange:Un,className:On,style:Re={},tabBarExtraContent:hi})=>bt.createElement("div",{className:kt()(Vn.tabs,On),style:Re},bt.createElement("div",{className:Vn.tabsWrap},ao.map((en,gn)=>!(en!=null&&en.hide)&&bt.createElement("aside",{className:Vn.tab,onClick:()=>{Un(en.id),en.link&&Ai.history.push(en.link)},key:gn},bt.createElement("div",{className:br===en.id?Vn.active:""},en.name),(en==null?void 0:en.resetCount)==null&&(en==null?void 0:en.total)!==void 0&&bt.createElement("span",null,"\uFF08",en==null?void 0:en.total,"\uFF09"),(en==null?void 0:en.resetCount)!==void 0&&(en==null?void 0:en.total)!==void 0&&bt.createElement(_t.Z,{title:(en==null?void 0:en.tip)!=null?en==null?void 0:en.tip:""},bt.createElement("span",{style:{color:"#9096A3"}},"\uFF08",bt.createElement("span",{style:{color:"#000"}},en==null?void 0:en.resetCount),"/",bt.createElement("span",null,en==null?void 0:en.total),"\uFF09"))))),bt.createElement("div",{className:Vn.tabBar},hi)),Li=({className:ao,style:br={},children:Un})=>bt.createElement("div",{className:kt()(ao),style:br},Un),Oi={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"},ue=Bt(38854),Pn=Bt(20834);const de=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Mt=({sortValue:ao,dropValue:br,className:Un,onSort:On,onDrop:Re,dataSource:hi=de})=>{var en;return bt.createElement("div",{className:kt()(Oi.orderWrap,Un)},bt.createElement(ue.Z,{dropdownRender:()=>bt.createElement(Pn.default,null,hi.map((gn,Ve)=>bt.createElement(Pn.default.Item,{key:Ve,onClick:()=>Re(gn.id)},gn.name)))},bt.createElement("span",{className:Oi.orderTextWrap},(en=hi.find(gn=>br===gn.id))==null?void 0:en.name)),bt.createElement("span",{className:Oi.orderIconWrap},bt.createElement("span",{className:Oi.orderAsc},bt.createElement("i",{className:ao==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Oi.cursorPointer} ${Oi.active}`:`iconfont icon-sanjiaoxing-up font12 ${Oi.cursorPointer}`,onClick:()=>On(ao==="asc"?"desc":"asc")})),bt.createElement("span",{className:Oi.orderDesc},bt.createElement("i",{className:ao==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Oi.cursorPointer} ${Oi.active}`:`iconfont icon-sanjiaoxing-down font12 ${Oi.cursorPointer}`,onClick:()=>On(ao==="asc"?"desc":"asc")}))))},zt={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"},be=Bt(3113),De=Object.defineProperty,fe=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,Ct=(ao,br,Un)=>br in ao?De(ao,br,{enumerable:!0,configurable:!0,writable:!0,value:Un}):ao[br]=Un,yt=(ao,br)=>{for(var Un in br||(br={}))Ce.call(br,Un)&&Ct(ao,Un,br[Un]);if(fe)for(var Un of fe(br))te.call(br,Un)&&Ct(ao,Un,br[Un]);return ao},$t=(ao,br)=>{var Un={};for(var On in ao)Ce.call(ao,On)&&br.indexOf(On)<0&&(Un[On]=ao[On]);if(ao!=null&&fe)for(var On of fe(ao))br.indexOf(On)<0&&te.call(ao,On)&&(Un[On]=ao[On]);return Un},xe=(ao,br,Un)=>new Promise((On,Re)=>{var hi=Ve=>{try{gn(Un.next(Ve))}catch(ni){Re(ni)}},en=Ve=>{try{gn(Un.throw(Ve))}catch(ni){Re(ni)}},gn=Ve=>Ve.done?On(Ve.value):Promise.resolve(Ve.value).then(hi,en);gn((Un=Un.apply(ao,br)).next())}),je=ao=>{var br=ao,{className:Un,style:On,children:Re,loading:hi=!1,openLoading:en,onClick:gn=()=>{},size:Ve="middle",shape:ni="round"}=br,Bi=$t(br,["className","style","children","loading","openLoading","onClick","size","shape"]);const[_i,tr]=(0,bt.useState)(!1);return bt.createElement(be.ZP,yt({onClick:(0,Jt.throttle)(sn=>xe(void 0,null,function*(){en&&tr(!0);try{yield gn(sn)}catch(fi){console.log("error",fi)}en&&tr(!1)}),2e3,{leading:!0,trailing:!1}),className:kt()(zt.btn,zt[`${Ve}-${ni}`],Un),style:On,size:Ve,shape:ni,loading:_i||hi},Bi),Re)},fn={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"},bn=({className:ao,style:br,children:Un=null,onClick:On,title:Re})=>bt.createElement("div",{className:kt()(fn.head,ao),style:br},bt.createElement("span",{className:"primary-hover",onClick:On},bt.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),bt.createElement("b",{title:Re},Re),bt.createElement("div",{className:fn.node},Un)),ci={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"},zi=({confirmShow:ao=!0,confirmTitle:br,confirmClick:Un,cancelShow:On=!0,cancelTitle:Re,cancelClick:hi,className:en,style:gn,confirmLoading:Ve=!1})=>bt.createElement("div",{className:kt()(ci.btns,en),style:gn},ao&&bt.createElement(be.ZP,{loading:Ve,onClick:Un,type:"primary",className:ci.confirm},br),On&&bt.createElement(be.ZP,{onClick:hi,className:ci.cancel},Re)),dr={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"},oo=({className:ao,style:br={},LeftContent:Un,children:On,RightContent:Re})=>bt.createElement("div",{className:kt()(dr.fixedBottom,ao),style:br},bt.createElement("div",{className:dr.wrap},bt.createElement("div",{className:dr.left},Un),bt.createElement("div",{className:dr.center},On),bt.createElement("div",{className:dr.right},Re))),Jr={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"},pr=({className:ao,style:br={},dataSource:Un=[]})=>bt.createElement("div",{className:kt()(Jr.crumbs,ao),style:br},Un.map((On,Re)=>Re<Un.length-1?bt.createElement(bt.Fragment,{key:Re},On.path||On.onClick?bt.createElement("span",{className:Jr.hover,onClick:On!=null&&On.onClick?On.onClick:()=>Ai.history.push(On.path)},On.name):bt.createElement("span",null,On.name),bt.createElement("span",null,"\xA0",">","\xA0")):bt.createElement("span",{key:Re,style:{color:"#5F6368"}},On.name))),Kr=Bt(31797),hr=Object.defineProperty,Mo=Object.defineProperties,Xo=Object.getOwnPropertyDescriptors,mo=Object.getOwnPropertySymbols,Ts=Object.prototype.hasOwnProperty,ws=Object.prototype.propertyIsEnumerable,Vt=(ao,br,Un)=>br in ao?hr(ao,br,{enumerable:!0,configurable:!0,writable:!0,value:Un}):ao[br]=Un,xs=(ao,br)=>{for(var Un in br||(br={}))Ts.call(br,Un)&&Vt(ao,Un,br[Un]);if(mo)for(var Un of mo(br))ws.call(br,Un)&&Vt(ao,Un,br[Un]);return ao},Ss=(ao,br)=>Mo(ao,Xo(br)),Ms=(ao,br)=>{var Un={};for(var On in ao)Ts.call(ao,On)&&br.indexOf(On)<0&&(Un[On]=ao[On]);if(ao!=null&&mo)for(var On of mo(ao))br.indexOf(On)<0&&ws.call(ao,On)&&(Un[On]=ao[On]);return Un};const{Countdown:ma}=Kr.default;var oa=ao=>{var br=ao,{onChange:Un}=br,On=Ms(br,["onChange"]);const[Re,hi]=(0,bt.useState)(null);(0,bt.useEffect)(()=>{typeof Re=="number"&&Re>=0&&Un(Re)},[Re]);const en=gn=>{const Ve=Math.floor(gn/1e3);hi(Ve)};return bt.createElement(ma,Ss(xs({},On),{onChange:en}))}},58856:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return ge}});var bt=Bt(59301);function ge(se,Me){const ie=(0,bt.useRef)();(0,bt.useEffect)(()=>{ie.current=se}),(0,bt.useEffect)(()=>{function ae(){ie.current()}if(Me!==null){let Lt=setInterval(ae,Me);return()=>clearInterval(Lt)}},[Me])}},12383:function(ui,Cn,Bt){"use strict";Bt.r(Cn),Bt.d(Cn,{default:function(){return fr}});var bt=Bt(59301),ge=Bt(61186),se=Bt.n(ge),Me=Bt(86129),ie=Bt.n(Me),ae=Bt(99064),Lt=Bt(89070),kt=Bt(43418),Jt=Bt(8591),St=Bt(61621),Wt=Bt(66104),Gt=Bt(95237),qt=Bt(43604),wt=Bt(3113),et=Bt(6848),tt=Bt(28103),lt=Bt(92832),rt=Bt(1710),ut=Bt(57809),dt=Bt(58421),pt=Bt(27812),Ft=Bt(95869),Tt=Bt(87169),_t=Bt(26227),re=Bt(3294),he=Bt(24065),Ae=Bt(955),Fe=Bt(42441),ee={flex_box_center:"flex_box_center___KJUhi",flex_space_between:"flex_space_between____N4uH",flex_box_vertical_center:"flex_box_vertical_center___yOdsz",flex_box_center_end:"flex_box_center_end___seJB9",flex_box_column:"flex_box_column___ihHC5",title:"title___JSmnB",score:"score___ERcuI",export:"export___pgR1H",title1_right:"title1_right___MdWJo",userPic:"userPic___UeG3e",userInfo:"userInfo___TNu6l",listItem:"listItem___wdbM_",rightInfo:"rightInfo___Swqk5",shixunTitle:"shixunTitle___L2Tc4",shixunWrp:"shixunWrp___ZoaTc",footerBar:"footerBar___QW5rq",footerBarStatic:"footerBarStatic___CRq8b",exitComment:"exitComment___u4Rqt",nextComment:"nextComment___lvaID",modal:"modal___g3B3L",footer:"footer___eJCnt",pingjia:"pingjia___X_ooM",pj_close:"pj_close___PHP4h",pj_save:"pj_save___COfQy"},We={normal:{opacity:.8,shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",color:"#2e65ad"}};const Yt=({shixunHomeworks:mi,data:wi,globalSetting:yi,loading:nr,dispatch:sr})=>{var Rr;const{shixunWorkReport:Zr}=mi;let Xr=((Rr=wi==null?void 0:wi.efficiency_list)==null?void 0:Rr.length)-parseInt(wi==null?void 0:wi.myself_eff[0]);const ei=()=>({title:{text:"\u5B66\u4E60\u6548\u7387",subtext:"\u5B66\u4E60\u6548\u7387=log(\u5B9E\u8BAD\u603B\u5F97\u5206/\u5B9E\u8BAD\u603B\u8017\u65F6)"},backgroundColor:"#fff",color:["#dd4444","#fec42c","#80F1BE"],grid:{left:"3%",right:"9%",bottom:"3%",containLabel:!0},tooltip:{showDelay:0,formatter:function(Zo){return Zo.name===Zr.username?"\u59D3\u540D\uFF1A"+Zr.username+"<br/>\u5B66\u53F7\uFF1A "+Zr.user_id+"<br/>\u6548\u7387\uFF1A"+(wi==null?void 0:wi.myself_eff[1]):Zo.name+":"+Zo.value+" "},axisPointer:{show:!0,type:"cross",lineStyle:{type:"dashed",width:1}}},xAxis:[{type:"value",name:"\u5B66\u751F\u4F4D\u7F6E",nameTextStyle:{color:"#000",fontSize:12},scale:!0,axisLabel:{formatter:""},axisTick:{show:!1},splitLine:{show:!1}}],yAxis:[{type:"value",name:" ",nameGap:20,nameTextStyle:{color:"#000",fontSize:12},scale:!0,axisLabel:{formatter:"{value}"},splitLine:{show:!1}}],series:[{name:"",type:"scatter",data:wi==null?void 0:wi.efficiency_list,itemStyle:{normal:{color:"#2e65ad"}},markArea:{silent:!0,itemStyle:{normal:{color:"transparent",borderWidth:1,borderType:"dashed"}},data:[[{name:"\u5B66\u4E60\u6548\u7387\u5206\u5E03\u533A\u95F4",xAxis:"min",yAxis:"min"},{xAxis:"max",yAxis:"max"}]]},markPoint:{data:[{name:Zr.username,xAxis:Xr,yAxis:wi==null?void 0:wi.myself_eff[1],value:wi==null?void 0:wi.myself_eff[1]}],itemStyle:{normal:{color:"#c23531"}}},markLine:{lineStyle:{normal:{type:"solid",color:"#ff6800"}},data:[{type:"average",name:"\u4E2D\u4F4D\u503C"}]}}]}),Ho=()=>({title:{text:"\u80FD\u529B\u503C",subtext:"\u80FD\u529B\u503C\uFF08\u5B9E\u8BAD\u83B7\u5F97\u7ECF\u9A8C\u503C/\u5B9E\u8BAD\u8BC4\u6D4B\u6B21\u6570\uFF09"},backgroundColor:"#fff",color:["#dd4444","#fec42c","#80F1BE"],grid:{x:"10%",x2:150,y:"18%",y2:"10%"},tooltip:{padding:10,backgroundColor:"#222",borderColor:"#777",borderWidth:1,formatter:function(Zo){var cs=Zo.value;if(Zo.name===Zr.username)return"\u59D3\u540D\uFF1A"+Zr.username+"<br/>\u5B66\u53F7\uFF1A "+Zr.user_id+"<br/>\u5F97\u5206\uFF1A"+(wi==null?void 0:wi.myself_object[1])}},xAxis:{type:"value",name:"log(\u5B9E\u8BAD\u7684\u603B\u65F6\u95F4)",nameGap:16,nameTextStyle:{color:"#000",fontSize:14},splitLine:{show:!1},axisLine:{lineStyle:{color:"#000"}}},yAxis:{type:"value",name:" ",nameLocation:"end",nameGap:20,nameTextStyle:{color:"#000",fontSize:12},axisLine:{lineStyle:{color:"#000"}},splitLine:{show:!1}},series:[{name:"\u80FD\u529B",type:"scatter",itemStyle:We,data:wi==null?void 0:wi.consume_list,symbolSize:function(Zo){return Math.round(Zo[2])},markPoint:{data:[{name:Zr.username,xAxis:wi==null?void 0:wi.myself_object[0],yAxis:wi==null?void 0:wi.myself_object[1],value:wi==null?void 0:wi.myself_object[1]}],itemStyle:{normal:{color:"#c23531"}}}}]});return bt.createElement(bt.Fragment,null,bt.createElement("aside",{className:"ml60 pr30"},bt.createElement(Gt.Z,null,bt.createElement(qt.Z,{flex:"800px"},bt.createElement(Fe.Z,{style:{width:750,height:580},option:ei()})),bt.createElement(qt.Z,{flex:"1"},bt.createElement("aside",{className:ee.rightInfo},bt.createElement("ul",null,bt.createElement("li",null,bt.createElement("span",null,"\u59D3\u540D")," ",bt.createElement("span",{className:"ml30"},Zr.username)),bt.createElement("li",null,bt.createElement("span",null,"\u5B66\u53F7")," ",bt.createElement("span",{className:"ml30"},Zr.student_id||"--")),bt.createElement("li",null,bt.createElement("span",null,"\u5B66\u4E60\u6548\u7387")," ",bt.createElement("span",{className:"ml30 c-orange"},wi==null?void 0:wi.myself_eff[1])),bt.createElement("li",null,bt.createElement("span",null,"\u5F53\u524D\u6392\u540D")," ",bt.createElement("span",{className:"ml30 c-orange"},wi==null?void 0:wi.myself_eff[0]))),bt.createElement("p",null,"1\u4E2A\u5C0F\u5706\u70B9\u4EE3\u88681\u4E2A\u5B66\u751F\u7684\u5B66\u4E60\u6548\u7387",bt.createElement("br",null),"\u7EA2\u8272\u6C34\u6EF4\u8868\u793A\u5F53\u524D\u5B66\u751F\u7684\u5B66\u4E60\u6548\u7387\u503C",bt.createElement("br",null),"\u5C0F\u5706\u70B9\u8D8A\u9AD8\uFF0C\u5B66\u4E60\u6548\u7387\u8D8A\u9AD8",bt.createElement("br",null),"\u6A59\u8272\u6A2A\u5411\u7BAD\u5934\uFF1A\u4E2D\u4F4D\u503C\uFF0C\u8868\u793A\u6574\u4E2A\u8BFE\u5802\u5B66\u751F\u8868\u73B0\u7684\u5E73\u5747\u503C"))))),bt.createElement("aside",{className:"ml60 pr30"},bt.createElement(Gt.Z,null,bt.createElement(qt.Z,{flex:"800px"},bt.createElement(Fe.Z,{style:{width:750,height:580},option:Ho()})),bt.createElement(qt.Z,{flex:"1"},bt.createElement("aside",{className:ee.rightInfo},bt.createElement("ul",null,bt.createElement("li",null,bt.createElement("span",null,"\u59D3\u540D")," ",bt.createElement("span",{className:"ml30"},Zr.username)),bt.createElement("li",null,bt.createElement("span",null,"\u5B66\u53F7")," ",bt.createElement("span",{className:"ml30"},Zr.student_id||"--")),bt.createElement("li",null,bt.createElement("span",null,"\u80FD\u529B")," ",bt.createElement("span",{className:"ml30 c-orange"},wi==null?void 0:wi.myself_object[1]))),bt.createElement("p",null,"1\u4E2A\u5C0F\u5706\u70B9\u4EE3\u88681\u4E2A\u5B66\u751F\u7684\u80FD\u529B\u503C",bt.createElement("br",null),"\u7EA2\u8272\u6C34\u6EF4\u8868\u793A\u5F53\u524D\u5B66\u751F\u7684\u80FD\u529B\u503C",bt.createElement("br",null),"\u5C0F\u5706\u5708\u8D8A\u5927\uFF0C\u8BC4\u6D4B\u6B21\u6570\u8D8A\u5C11",bt.createElement("br",null)))))))};var qe=(0,Lt.connect)(({shixunHomeworks:mi,loading:wi,globalSetting:yi})=>({shixunHomeworks:mi,globalSetting:yi,loading:wi.effects}))(Yt),Ge=Bt(23954),Oe=Bt(5871),Ze=({defaultValue:mi,onBlur:wi,max:yi,className:nr="game-score"})=>{const[sr,Rr]=(0,bt.useState)(mi);(0,bt.useEffect)(()=>{Rr(mi)},[mi]);function Zr(ei){Rr(ei)}function Xr(){sr!==mi&&wi(sr>yi?yi:sr)}return bt.createElement(Oe.Z,{max:yi,min:0,className:nr,value:sr,onChange:Zr,onBlur:Xr})},Qe=Bt(12290),we={md:"md___TEmcT"},oe=Bt(59301),Pe=Object.defineProperty,En=Object.defineProperties,Nn=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertySymbols,kn=Object.prototype.hasOwnProperty,Vn=Object.prototype.propertyIsEnumerable,Ai=(mi,wi,yi)=>wi in mi?Pe(mi,wi,{enumerable:!0,configurable:!0,writable:!0,value:yi}):mi[wi]=yi,Wn=(mi,wi)=>{for(var yi in wi||(wi={}))kn.call(wi,yi)&&Ai(mi,yi,wi[yi]);if(Xe)for(var yi of Xe(wi))Vn.call(wi,yi)&&Ai(mi,yi,wi[yi]);return mi},Si=(mi,wi)=>En(mi,Nn(wi));const an=ut.default.Option,Li={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,enableSplitViewResizing:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1};var Oi=(mi=>(mi[mi.SET_PATH=0]="SET_PATH",mi[mi.GET_PASSED_CONTENT=1]="GET_PASSED_CONTENT",mi))(Oi||{});function ue(mi,wi){switch(wi.type){case 0:return Si(Wn({},mi),{selectedPath:wi.payload});case 1:return Si(Wn({},mi),{passedContent:wi.payload});default:throw new Error}}var Pn=({path:mi,game_id:wi,onPathChange:yi,autoHeight:nr,diff_code_count:sr,data:Rr,game_codes_cn:Zr})=>{var Xr,ei,Ho,Zo;const cs=mi.split("\uFF1B").filter(wo=>!!wo),[ri,or]=(0,bt.useReducer)(ue,{selectedPath:cs[0],passedContent:{language:"python",content:""}}),{selectedPath:Er,passedContent:no}=ri;function Lr(wo){or({type:0,payload:wo})}const Wr={\u6700\u540E\u901A\u5173\u4EE3\u7801:"\u901A\u8FC7\u4E86\u672C\u9898\uFF0C\u5728\u4F5C\u4E1A\u65F6\u95F4\u5185\u6700\u540E\u4E00\u6B21\u63D0\u4EA4\u7684\u901A\u5173\u4EE3\u7801",\u6700\u65B0\u4EE3\u7801:"\u672A\u901A\u8FC7\u672C\u9898\uFF0C\u5C55\u793A\u6700\u65B0\u7F16\u5199\u7684\u4EE3\u7801\u8BE6\u60C5",\u622A\u6B62\u540E\u901A\u5173\u4EE3\u7801:"\u5728\u4F5C\u4E1A\u65F6\u95F4\u7ED3\u675F\u540E\u901A\u5173\u8BE5\u9898\u7684\u4EE3\u7801\u8BE6\u60C5"};return oe.createElement(oe.Fragment,null,oe.createElement("h2",null," ",oe.createElement("span",null,Zr,oe.createElement(et.Z,{title:oe.createElement("div",null,oe.createElement("div",null,"\u4EE3\u7801\u5C55\u793A\u89C4\u5219\uFF1A"),oe.createElement("div",null,"1.\u5C55\u793A\u5B66\u5458\u5728\u4F5C\u4E1A\u622A\u6B62\u524D\u5F97\u5206\u6700\u9AD8\u7684\u4EE3\u7801\u7248\u672C\u3002"),oe.createElement("div",null," 2.\u82E5\u6709\u591A\u4E2A\u6700\u9AD8\u5206\u7248\u672C\uFF0C\u5C55\u793A\u63D0\u4EA4\u65F6\u95F4\u6700\u665A\u7684\u7248\u672C\u3002"),oe.createElement("div",null," 3.\u4F5C\u4E1A\u622A\u6B62\u540E\u63D0\u4EA4\u7684\u4EE3\u7801\u5C06\u4E0D\u4E88\u5C55\u793A\u3002"))},oe.createElement("i",{style:{marginLeft:10,color:"#3061D0",fontSize:16},className:"iconfont icon-tishixiaowenhao"}))),sr&&oe.createElement("span",{style:{marginLeft:"50px"}},"\u4EE3\u7801\u4FEE\u6539\u884C\u6570 ",sr),oe.createElement("span",null,oe.createElement(ut.default,{style:{width:200},value:Er,onChange:Lr}," ",cs.map(wo=>oe.createElement(an,{key:wo,value:wo},wo))," "))," "),(Er==null?void 0:Er.split(".")[1])==="md"&&oe.createElement(Qe.Z,{height:300,autoHeight:nr,defaultValue:((ei=(Xr=Rr==null?void 0:Rr.filter(wo=>wo.path===Er))==null?void 0:Xr[0])==null?void 0:ei.content)||"",className:we.md}),(Er==null?void 0:Er.split(".")[1])!=="md"&&oe.createElement(Ge.ZP,{height:300,language:no.language,value:((Zo=(Ho=Rr==null?void 0:Rr.filter(wo=>wo.path===Er))==null?void 0:Ho[0])==null?void 0:Zo.content)||"",autoHeight:nr,theme:"default",isCopy:!0,options:Li}))},de=Bt(92365),Dt=Bt(12911),Mt=Bt.n(Dt),zt=Object.defineProperty,be=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,Ce=(mi,wi,yi)=>wi in mi?zt(mi,wi,{enumerable:!0,configurable:!0,writable:!0,value:yi}):mi[wi]=yi,te=(mi,wi)=>{for(var yi in wi||(wi={}))De.call(wi,yi)&&Ce(mi,yi,wi[yi]);if(be)for(var yi of be(wi))fe.call(wi,yi)&&Ce(mi,yi,wi[yi]);return mi};const Ct=mi=>React.createElement("svg",te({className:"scai_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:16,height:16},mi),React.createElement("path",{d:"M512 327.68c245.76 0 445.44 153.6 445.44 348.16C957.44 870.4 757.76 1024 512 1024c-245.76-5.12-445.44-153.6-445.44-348.16 0-194.56 199.68-348.16 445.44-348.16z",fill:"#DBDCFF"}),React.createElement("path",{d:"M645.12 947.2c117.76-10.24 158.72-143.36 163.84-266.24 0-128-128-174.08-291.84-174.08-163.84 0-291.84 46.08-291.84 174.08 0 112.64 35.84 240.64 143.36 261.12 30.72 5.12 261.12 10.24 276.48 5.12z",fill:"#111ACC"}),React.createElement("path",{d:"M404.48 686.08c15.36 0 25.6 10.24 25.6 25.6v61.44c0 15.36-10.24 25.6-25.6 25.6-15.36 0-25.6-10.24-25.6-25.6v-61.44c-5.12-10.24 10.24-25.6 25.6-25.6zm220.16 0c15.36 0 25.6 10.24 25.6 25.6v61.44c0 15.36-10.24 25.6-25.6 25.6-15.36 0-25.6-10.24-25.6-25.6v-61.44c0-10.24 10.24-25.6 25.6-25.6z",fill:"#FFF"}),React.createElement("path",{d:"M916.48 527.36c56.32 0 107.52 71.68 107.52 153.6 0 87.04-61.44 153.6-117.76 153.6 0 0 51.2-76.8 51.2-158.72s-40.96-148.48-40.96-148.48zm-808.96 5.12-5.12 5.12c-10.24 20.48-35.84 76.8-35.84 138.24 0 76.8 35.84 138.24 51.2 158.72C61.44 834.56 0 768 0 680.96c0-81.92 51.2-148.48 107.52-148.48z",fill:"#8187FF"}),React.createElement("path",{d:"M512 0c20.48 0 30.72 15.36 30.72 30.72v220.16c0 20.48-15.36 30.72-30.72 30.72s-30.72-10.24-30.72-30.72V30.72C481.28 15.36 496.64 0 512 0z",fill:"#701CDC"}),React.createElement("path",{d:"M384 46.08c20.48 0 30.72 15.36 30.72 30.72v133.12c0 20.48-15.36 30.72-30.72 30.72s-35.84-15.36-35.84-30.72V76.8c0-20.48 15.36-30.72 35.84-30.72z",fill:"#371CDC"}),React.createElement("path",{d:"M645.12 46.08c20.48 0 30.72 15.36 30.72 30.72v133.12c0 20.48-15.36 30.72-30.72 30.72s-30.72-15.36-30.72-30.72V76.8c0-20.48 15.36-30.72 30.72-30.72z",fill:"#AB2FF0"}),React.createElement("path",{d:"M250.88 87.04c20.48 0 30.72 15.36 30.72 30.72v46.08c0 20.48-15.36 30.72-30.72 30.72s-35.84-10.24-35.84-30.72v-40.96c0-20.48 15.36-35.84 35.84-35.84z",fill:"#6D57F2"}),React.createElement("path",{d:"M778.24 87.04c20.48 0 30.72 15.36 30.72 30.72v46.08c0 20.48-15.36 30.72-30.72 30.72s-30.72-15.36-30.72-30.72v-40.96c0-20.48 15.36-35.84 30.72-35.84z",fill:"#C86FFA"}));var yt="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik01MTIgMzI3LjY4YzI0NS43NiAwIDQ0NS40NCAxNTMuNiA0NDUuNDQgMzQ4LjE2Qzk1Ny40NCA4NzAuNCA3NTcuNzYgMTAyNCA1MTIgMTAyNGMtMjQ1Ljc2LTUuMTItNDQ1LjQ0LTE1My42LTQ0NS40NC0zNDguMTYgMC0xOTQuNTYgMTk5LjY4LTM0OC4xNiA0NDUuNDQtMzQ4LjE2eiIgZmlsbD0iI0RCRENGRiIvPjxwYXRoIGQ9Ik02NDUuMTIgOTQ3LjJjMTE3Ljc2LTEwLjI0IDE1OC43Mi0xNDMuMzYgMTYzLjg0LTI2Ni4yNCAwLTEyOC0xMjgtMTc0LjA4LTI5MS44NC0xNzQuMDgtMTYzLjg0IDAtMjkxLjg0IDQ2LjA4LTI5MS44NCAxNzQuMDggMCAxMTIuNjQgMzUuODQgMjQwLjY0IDE0My4zNiAyNjEuMTIgMzAuNzIgNS4xMiAyNjEuMTIgMTAuMjQgMjc2LjQ4IDUuMTJ6IiBmaWxsPSIjMTExQUNDIi8+PHBhdGggZD0iTTQwNC40OCA2ODYuMDhjMTUuMzYgMCAyNS42IDEwLjI0IDI1LjYgMjUuNnY2MS40NGMwIDE1LjM2LTEwLjI0IDI1LjYtMjUuNiAyNS42LTE1LjM2IDAtMjUuNi0xMC4yNC0yNS42LTI1LjZ2LTYxLjQ0Yy01LjEyLTEwLjI0IDEwLjI0LTI1LjYgMjUuNi0yNS42em0yMjAuMTYgMGMxNS4zNiAwIDI1LjYgMTAuMjQgMjUuNiAyNS42djYxLjQ0YzAgMTUuMzYtMTAuMjQgMjUuNi0yNS42IDI1LjYtMTUuMzYgMC0yNS42LTEwLjI0LTI1LjYtMjUuNnYtNjEuNDRjMC0xMC4yNCAxMC4yNC0yNS42IDI1LjYtMjUuNnoiIGZpbGw9IiNGRkYiLz48cGF0aCBkPSJNOTE2LjQ4IDUyNy4zNmM1Ni4zMiAwIDEwNy41MiA3MS42OCAxMDcuNTIgMTUzLjYgMCA4Ny4wNC02MS40NCAxNTMuNi0xMTcuNzYgMTUzLjYgMCAwIDUxLjItNzYuOCA1MS4yLTE1OC43MnMtNDAuOTYtMTQ4LjQ4LTQwLjk2LTE0OC40OHptLTgwOC45NiA1LjEyLTUuMTIgNS4xMmMtMTAuMjQgMjAuNDgtMzUuODQgNzYuOC0zNS44NCAxMzguMjQgMCA3Ni44IDM1Ljg0IDEzOC4yNCA1MS4yIDE1OC43MkM2MS40NCA4MzQuNTYgMCA3NjggMCA2ODAuOTZjMC04MS45MiA1MS4yLTE0OC40OCAxMDcuNTItMTQ4LjQ4eiIgZmlsbD0iIzgxODdGRiIvPjxwYXRoIGQ9Ik01MTIgMGMyMC40OCAwIDMwLjcyIDE1LjM2IDMwLjcyIDMwLjcydjIyMC4xNmMwIDIwLjQ4LTE1LjM2IDMwLjcyLTMwLjcyIDMwLjcycy0zMC43Mi0xMC4yNC0zMC43Mi0zMC43MlYzMC43MkM0ODEuMjggMTUuMzYgNDk2LjY0IDAgNTEyIDB6IiBmaWxsPSIjNzAxQ0RDIi8+PHBhdGggZD0iTTM4NCA0Ni4wOGMyMC40OCAwIDMwLjcyIDE1LjM2IDMwLjcyIDMwLjcydjEzMy4xMmMwIDIwLjQ4LTE1LjM2IDMwLjcyLTMwLjcyIDMwLjcycy0zNS44NC0xNS4zNi0zNS44NC0zMC43MlY3Ni44YzAtMjAuNDggMTUuMzYtMzAuNzIgMzUuODQtMzAuNzJ6IiBmaWxsPSIjMzcxQ0RDIi8+PHBhdGggZD0iTTY0NS4xMiA0Ni4wOGMyMC40OCAwIDMwLjcyIDE1LjM2IDMwLjcyIDMwLjcydjEzMy4xMmMwIDIwLjQ4LTE1LjM2IDMwLjcyLTMwLjcyIDMwLjcycy0zMC43Mi0xNS4zNi0zMC43Mi0zMC43MlY3Ni44YzAtMjAuNDggMTUuMzYtMzAuNzIgMzAuNzItMzAuNzJ6IiBmaWxsPSIjQUIyRkYwIi8+PHBhdGggZD0iTTI1MC44OCA4Ny4wNGMyMC40OCAwIDMwLjcyIDE1LjM2IDMwLjcyIDMwLjcydjQ2LjA4YzAgMjAuNDgtMTUuMzYgMzAuNzItMzAuNzIgMzAuNzJzLTM1Ljg0LTEwLjI0LTM1Ljg0LTMwLjcydi00MC45NmMwLTIwLjQ4IDE1LjM2LTM1Ljg0IDM1Ljg0LTM1Ljg0eiIgZmlsbD0iIzZENTdGMiIvPjxwYXRoIGQ9Ik03NzguMjQgODcuMDRjMjAuNDggMCAzMC43MiAxNS4zNiAzMC43MiAzMC43MnY0Ni4wOGMwIDIwLjQ4LTE1LjM2IDMwLjcyLTMwLjcyIDMwLjcycy0zMC43Mi0xNS4zNi0zMC43Mi0zMC43MnYtNDAuOTZjMC0yMC40OCAxNS4zNi0zNS44NCAzMC43Mi0zNS44NHoiIGZpbGw9IiNDODZGRkEiLz48L3N2Zz4=",$t=Bt(24544),xe=Bt(85149),Rt=Object.defineProperty,je=Object.defineProperties,fn=Object.getOwnPropertyDescriptors,jn=Object.getOwnPropertySymbols,bn=Object.prototype.hasOwnProperty,ci=Object.prototype.propertyIsEnumerable,Ji=(mi,wi,yi)=>wi in mi?Rt(mi,wi,{enumerable:!0,configurable:!0,writable:!0,value:yi}):mi[wi]=yi,zi=(mi,wi)=>{for(var yi in wi||(wi={}))bn.call(wi,yi)&&Ji(mi,yi,wi[yi]);if(jn)for(var yi of jn(wi))ci.call(wi,yi)&&Ji(mi,yi,wi[yi]);return mi},dr=(mi,wi)=>je(mi,fn(wi)),Fr=(mi,wi,yi)=>new Promise((nr,sr)=>{var Rr=ei=>{try{Xr(yi.next(ei))}catch(Ho){sr(Ho)}},Zr=ei=>{try{Xr(yi.throw(ei))}catch(Ho){sr(Ho)}},Xr=ei=>ei.done?nr(ei.value):Promise.resolve(ei.value).then(Rr,Zr);Xr((yi=yi.apply(mi,wi)).next())});const oo=({shixunHomeworks:mi,autoHeight:wi,classroomList:yi,dispatch:nr})=>{var sr,Rr,Zr,Xr,ei,Ho,Zo,cs;const{shixunWorkReport:ri}=mi,{stage_list:or,work_id:Er}=ri,[no,Lr]=(0,bt.useState)(!1),[Wr,wo]=(0,bt.useState)(!0),[fo,xo]=(0,bt.useState)({left:0,top:0,bottom:0,right:0}),_r=(0,bt.useRef)(null),[Ci,Qo]=(0,bt.useState)(!1),[bi,ns]=(0,bt.useState)(""),qs=(0,bt.useRef)(null),fs=(yr,$r)=>{var Jo;const{clientWidth:Lo,clientHeight:os}=window.document.documentElement,Fa=(Jo=_r.current)==null?void 0:Jo.getBoundingClientRect();Fa&&xo({left:-Fa.left+$r.x,right:Lo-(Fa.right-$r.x),top:-Fa.top+$r.y,bottom:os-(Fa.bottom-$r.y)})},Hs=(0,Lt.useParams)(),Gs=(0,he.GJ)(),si={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};(0,bt.useEffect)(()=>{console.log(Hs)},[]);const To=[{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"position",width:"100px"},{title:"\u8BE6\u7EC6\u4FE1\u606F",dataIndex:"output_detail",render:(yr,$r,Jo)=>bt.createElement("div",null,yr,$r.is_work_end_evaluate&&bt.createElement(Ae.vA,{status:5}))},{title:"\u8BC4\u6D4B\u8017\u65F6(S)",dataIndex:"ts_time",width:"130px"},{title:"\u5185\u5B58\u6D88\u8017(MB)",width:"150px",dataIndex:"ts_mem"},{title:"\u8BC4\u6D4B\u65F6\u95F4",width:"170px",dataIndex:"created_at",render:yr=>se()(yr).format("YYYY-MM-DD HH:mm")},{title:"\u64CD\u4F5C",width:"80px",dataIndex:"query_index",render:(yr,$r)=>bt.createElement("span",{className:"c-blue current",onClick:()=>Fr(void 0,null,function*(){var Jo,Lo;const os=yield(0,de.Lk)($r.game_identifier,{path:(Lo=(Jo=$r.path)==null?void 0:Jo.replace(/\;/g,";"))==null?void 0:Lo.split(";")[0],query_index:$r.query_index,homework_common_id:Hs.categoryId});(os==null?void 0:os.status)===0&&(Qo(os),Lr(!0))})},$r.query_index?"\u67E5\u770B\u4EE3\u7801":"")}],us=[{title:"\u8C03\u5206\u7528\u6237",dataIndex:["user","name"],width:350,render:(yr,$r)=>{var Jo;return bt.createElement("span",null,bt.createElement("img",{width:30,height:30,style:{borderRadius:"50%",marginRight:"10px"},src:re.Z.IMG_SERVER+"/images/"+((Jo=$r==null?void 0:$r.user)==null?void 0:Jo.image_url)}),yr)}},{title:"\u8C03\u5206\u524D",dataIndex:"old_score",width:270,render:yr=>bt.createElement("span",null,"\u4FEE\u6B63\u524D\u5206\u6570\uFF1A",yr,"\u5206")},{title:"\u8C03\u5206\u540E",dataIndex:"score",width:270,render:yr=>bt.createElement("span",null,"\u4FEE\u6B63\u540E\u5206\u6570\uFF1A",yr,"\u5206")},{title:"\u8C03\u5206\u65F6\u95F4",dataIndex:"created_at",align:"right",render:yr=>bt.createElement("span",null,"\u4FEE\u6B63\u65F6\u95F4\uFF1A",yr?se()(yr).format("YYYY-MM-DD HH:mm"):"--")}];function rs(yr,$r){return Fr(this,null,function*(){const{challenge_id:Jo}=or[yr],Lo=yield nr({type:"shixunHomeworks/changeScore",payload:{categoryId:Hs.homeworkId,type:"report",score:$r,challenge_id:Jo}});yield nr({type:"shixunHomeworks/getShixunWorkReport",payload:zi({},Hs)}),Lo.status===0&&Jt.ZP.success("\u64CD\u4F5C\u6210\u529F")})}function Cr(yr,$r){return(0,ae.U2)(`student_works/${Er}/rep_passed_content.json`,{path:$r,game_id:yr})}const[ke,ts]=(0,bt.useState)((sr=ri==null?void 0:ri.shixun_detail)==null?void 0:sr.map(yr=>dr(zi({},yr),{commentEdit:!1}))),ta=yr=>yr.replace(/\\\(([\s\S]*?)\\\)/g,"<mathx data-text='$1'>$$$$$1$$$$</mathx>").replace(/\\\[([\s\S]*?)\\\]/g,"<mathx data-text='$1'>$$$$$1$$$$</mathx>").replace(/`(\$\$.*?\$\$)`/g,"<mathx data-text='$1'>$$$$$1$$$$</mathx>").replace(/_{2,}/g,"`$&`"),[qa,ol]=(0,bt.useState)(!1),ml=(yr,$r)=>Fr(void 0,null,function*(){var Jo,Lo;ol(!0),qs.current=new $t.Z(re.Z.API_SERVER+"/api/stream/intelligent_imports/chat_messages.json",{response_mode:"streaming",model:"qwen-max",scene_awareness:!1,thinking_enabled:!1,image_generator:!1,file_ids:[],history:[],prompt:"",shixun_id:ri==null?void 0:ri.myshixun_identifier,game_id:yr==null?void 0:yr.id,source:"shixun",is_chat:!1,type:9,description:yr==null?void 0:yr.challenge_description,query:(Lo=(Jo=yr==null?void 0:yr.game_codes)==null?void 0:Jo[0])==null?void 0:Lo.content,homework_common_id:Hs.categoryId}),yield new Promise((os,Fa)=>{qs.current.on("data",lo=>{const vo=[...ke];vo[$r].comment=ta(lo==null?void 0:lo.full),ts(vo)}),qs.current.on("done",()=>Fr(void 0,null,function*(){var lo;ol(!1);const vo=[...ke],Ki=yield(0,ae.ZP)(`/api/student_works/${Hs==null?void 0:Hs.homeworkId}/challenge_comment`,{method:"put",body:{challenge_id:yr==null?void 0:yr.challenge_id,comment:vo[$r].comment}});if((Ki==null?void 0:Ki.status)==0){Jt.ZP.success("\u8BC4\u4EF7\u6210\u529F");const Eo=[...ke];Eo[$r].comment_updated_at=(lo=Ki==null?void 0:Ki.data)==null?void 0:lo.comment_updated_at,ts(Eo)}})),qs.current.startStream()})});return bt.createElement(bt.Fragment,null,ke==null?void 0:ke.map(function(yr,$r){var Jo,Lo;return bt.createElement("div",{key:$r},bt.createElement("aside",{className:"pl30 pr30",key:$r},bt.createElement("div",{className:`${ee.shixunTitle} mt10`},bt.createElement("div",null,bt.createElement("span",{className:"fa fa-code "}),bt.createElement("strong",{className:"c-black"},"\u7B2C",$r+1,"\u5173 ",bt.createElement(Lt.Link,{className:"c-black",target:"_blank",to:`/tasks/${Hs.coursesId}/${Hs.categoryId}/${yr.game_identifier}`},yr.subject))),Gs?bt.createElement("span",null,"\u8C03\u5206\uFF1A",bt.createElement(Ze,{className:"game-score",max:or[$r].game_score_full,defaultValue:or[$r].game_score,onBlur:os=>{var Fa;if((0,he.Rm)()&&!((Fa=yi.AssistantObject.practice)!=null&&Fa.can_appraise)){Jt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}rs($r,os)}})):null),bt.createElement("div",{className:"font16 mt10"},yr.st===0&&(yr.path?typeof(yr==null?void 0:yr.game_codes_cn)=="string"?bt.createElement("aside",{className:ee.shixunWrp},bt.createElement(Pn,{game_codes_cn:yr==null?void 0:yr.game_codes_cn,autoHeight:wi,path:yr.path,game_id:yr.id,data:yr.game_codes,diff_code_count:yr.diff_code_count,onPathChange:Cr})):bt.createElement("div",{className:"font14",style:{border:"1px solid #d9d9d9",padding:"6px 10px"}}," \u63D0\u793A\uFF1A\u7EAF\u56FE\u5F62\u5316\u3001\u547D\u4EE4\u884C\u7684\u5B9E\u8BAD\u4E0D\u5C55\u793A\u901A\u5173\u4EE3\u7801\uFF0C\u5982\u9700\u67E5\u770B\u5B66\u751F\u4EE3\u7801\u8BF7\u524D\u5F80\u4F5C\u4E1A\u5217\u8868\u5BFC\u51FA\u5B9E\u9A8C\u6587\u4EF6\u3002"):"\u76EE\u524D\u56FE\u5F62\u5316\u3001\u547D\u4EE4\u884C\u3001Vscode\u7F16\u8F91\u5668\u3001\u7406\u8BBA\u9898\u6A21\u5F0F\u7684\u5B9E\u9A8C\uFF0C\u6682\u65F6\u65E0\u6CD5\u4F7F\u7528\u6B64\u529F\u80FD"),yr.st===1&&(yr.complete_status===0?"\u672C\u5173\u6682\u672A\u901A\u8FC7\uFF0C\u65E0\u901A\u5173\u4EE3\u7801":"\u76EE\u524D\u56FE\u5F62\u5316\u3001\u547D\u4EE4\u884C\u3001Vscode\u7F16\u8F91\u5668\u3001\u7406\u8BBA\u9898\u6A21\u5F0F\u7684\u5B9E\u9A8C\uFF0C\u6682\u65F6\u65E0\u6CD5\u4F7F\u7528\u6B64\u529F\u80FD")),bt.createElement("aside",{className:"mt10 font16"},(Jo=yr.outputs)!=null&&Jo.length?bt.createElement(rt.default,{columns:To,pagination:{hideOnSinglePage:!0},dataSource:yr.outputs.map(os=>zi(zi({},yr),os))}):"\u672C\u5173\u65E0\u8BC4\u6D4B\u8BB0\u5F55"),bt.createElement("aside",{className:"mt10"},bt.createElement("div",null,bt.createElement("div",{style:{display:"flex",alignItems:"center"}},bt.createElement("strong",{className:"c-black font14"},"\u4EE3\u7801\u8BC4\u4EF7"),!(yr!=null&&yr.commentEdit)&&!(0,he.dE)()&&(yr!=null&&yr.comment?bt.createElement(bt.Fragment,null,bt.createElement("div",{style:{color:"#666666",fontSize:"12px",marginLeft:"auto"}},"\u6700\u65B0\u8BC4\u4EF7\u65F6\u95F4\uFF1A",yr!=null&&yr.comment_updated_at?se()(yr==null?void 0:yr.comment_updated_at).format("YYYY-MM-DD HH:mm:ss"):"--"),bt.createElement("div",{style:{color:"#3061D0",fontSize:"14px",marginLeft:"40px",cursor:"pointer"},onClick:()=>Fr(this,null,function*(){qa?Jt.ZP.warning("\u6B63\u5728\u751F\u6210\u8BC4\u8BBA\u4E2D\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002"):kt.default.confirm({title:"\u63D0\u793A",content:"\u786E\u8BA4\u662F\u5426\u91CD\u65B0\u751F\u6210\u8BC4\u8BBA\uFF1F",okText:"\u786E\u8BA4",icon:null,cancelText:"\u53D6\u6D88",onOk:()=>Fr(this,null,function*(){ml(yr,$r)})})})},bt.createElement("i",{className:"iconfont icon-zhongxinshengcheng1 mr8 font14"}),"\u91CD\u65B0\u751F\u6210")):bt.createElement("div",{style:{color:"#3061D0",fontSize:"14px",marginLeft:"auto",cursor:"pointer"},onClick:()=>Fr(this,null,function*(){qa?Jt.ZP.warning("\u6B63\u5728\u751F\u6210\u8BC4\u8BBA\u4E2D\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002"):ml(yr,$r)})},bt.createElement("img",{src:yt,className:"mr8"}),"\u4E00\u952EAI\u751F\u6210")),!(yr!=null&&yr.commentEdit)&&!(0,he.dE)()&&bt.createElement("div",{style:{color:"#3061D0",fontSize:"14px",marginLeft:"20px",cursor:"pointer"},onClick:()=>{const os=[...ke];os[$r].commentEdit=!0,ts(os),ns(yr==null?void 0:yr.comment)}},bt.createElement("i",{className:"iconfont icon-bianji-moren mr8 font14"}),"\u7F16\u8F91"),(yr==null?void 0:yr.commentEdit)&&bt.createElement(bt.Fragment,null,bt.createElement("div",{className:ee.pj_close,onClick:()=>{const os=[...ke];os[$r].commentEdit=!1,ts(os)}},"\u53D6\u6D88"),bt.createElement("div",{className:ee.pj_save,onClick:()=>Fr(this,null,function*(){var os;const Fa=yield(0,ae.ZP)(`/api/student_works/${Hs==null?void 0:Hs.homeworkId}/challenge_comment`,{method:"put",body:{challenge_id:yr==null?void 0:yr.challenge_id,comment:bi}});if((Fa==null?void 0:Fa.status)==0){Jt.ZP.success("\u8BC4\u4EF7\u6210\u529F");const lo=[...ke];lo[$r].commentEdit=!1,lo[$r].comment=bi,lo[$r].comment_updated_at=(os=Fa==null?void 0:Fa.data)==null?void 0:os.comment_updated_at,ts(lo)}})},"\u4FDD\u5B58"))),!(yr!=null&&yr.commentEdit)&&bt.createElement("div",{className:ee.pingjia},yr!=null&&yr.comment?bt.createElement(xe.Z,{value:yr==null?void 0:yr.comment,style:{fontSize:"14px"}}):"\u6682\u65E0\u8BC4\u4EF7~"),(yr==null?void 0:yr.commentEdit)&&bt.createElement(lt.default.TextArea,{defaultValue:bi,style:{borderRadius:"5px",marginTop:"10px"},rows:5,onChange:os=>ns(os.target.value)}))),bt.createElement("aside",{className:"mt10 font16"},((Lo=yr==null?void 0:yr.adjust_review_score_list)==null?void 0:Lo.length)>0&&(0,he.GJ)()&&bt.createElement("div",null,bt.createElement("strong",{className:"c-black font14"},"\u8C03\u5206\u8BB0\u5F55"),bt.createElement(rt.default,{columns:us,pagination:{hideOnSinglePage:!0},dataSource:yr.adjust_review_score_list,showHeader:!1})))))}),bt.createElement(kt.default,{open:no,width:900,okText:"\u5173\u95ED",cancelButtonProps:{style:{display:"none"}},onOk:()=>{Qo({}),Lr(!1)},onCancel:()=>{Qo({}),Lr(!1)},title:bt.createElement("div",{style:{width:"100%",cursor:"move"},onMouseOver:()=>{Wr&&wo(!1)},onMouseOut:()=>{wo(!0)},onFocus:()=>{},onBlur:()=>{}},"\u4EE3\u7801\u5185\u5BB9"),modalRender:yr=>bt.createElement(Mt(),{disabled:Wr,bounds:fo,nodeRef:_r,onStart:($r,Jo)=>fs($r,Jo)},bt.createElement("div",{ref:_r},yr))},bt.createElement("div",{style:{background:"#F6F7F9",padding:"30px 20px",marginBottom:20}},bt.createElement("div",{style:{display:"flex",alignItems:"center"}},((Rr=Ci==null?void 0:Ci.data)==null?void 0:Rr.output_detail)==="\u8BC4\u6D4B\u901A\u8FC7"?bt.createElement("i",{style:{color:"#0B9953",fontSize:18,marginRight:10},className:"iconfont icon-duigou1"}):bt.createElement("i",{style:{color:"#E21010",fontSize:18,marginRight:10},className:"iconfont icon-jinggao1"}),bt.createElement("div",{style:{color:((Zr=Ci==null?void 0:Ci.data)==null?void 0:Zr.output_detail)==="\u8BC4\u6D4B\u901A\u8FC7"?"#0B9953":"#E21010",fontSize:16,fontWeight:600}},(Xr=Ci==null?void 0:Ci.data)==null?void 0:Xr.output_detail)),bt.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginTop:20}},bt.createElement("div",null,bt.createElement("span",{style:{color:"#6A7283"}},"\u8BC4\u6D4B\u65F6\u95F4"),bt.createElement("span",{style:{marginLeft:8,color:"#232B40"}},se()((ei=Ci==null?void 0:Ci.data)==null?void 0:ei.created_at).format("YYYY-MM-DD HH:mm:ss"))),bt.createElement("div",null,bt.createElement("span",{style:{color:"#6A7283"}},"\u7528\u65F6"),bt.createElement("span",{style:{marginLeft:8,color:"#232B40"}},(Ho=Ci==null?void 0:Ci.data)==null?void 0:Ho.ts_time,"s")),bt.createElement("div",null,bt.createElement("span",{style:{color:"#6A7283"}},"\u5185\u5B58"),bt.createElement("span",{style:{marginLeft:8,color:"#232B40"}},(Zo=Ci==null?void 0:Ci.data)==null?void 0:Zo.ts_mem,"mb")),bt.createElement("div",null,bt.createElement("span",{style:{color:"#6A7283"}},"\u7528\u4F8B\u901A\u8FC7\u7387"),bt.createElement("span",{style:{marginLeft:8,color:"#232B40"}},((cs=Ci==null?void 0:Ci.data)==null?void 0:cs.test_set_passed_rate)*100,"%")))),bt.createElement(Ge.ZP,{height:500,autoHeight:wi,language:"python",theme:"default",isCopy:!0,value:decodeURIComponent(escape(window.atob((Ci==null?void 0:Ci.content)||""))),options:si})))};var Jr=(0,Lt.connect)(({shixunHomeworks:mi,loading:wi,globalSetting:yi,classroomList:nr})=>({shixunHomeworks:mi,globalSetting:yi,loading:wi.effects,classroomList:nr}))(oo),zr=Bt(78241),pr={greyText:"greyText___nOpNq",info:"info___nBB3c",label:"label___P6my8",blackContent:"blackContent___O4HnS",orangeContent:"orangeContent___JBF44",inputLabel:"inputLabel___B2GAs",tableTitle:"tableTitle___IqAxM",scoreTable:"scoreTable___RJvpU"},Kr=Bt(30917),hr=Bt(59301),Mo=Object.defineProperty,Xo=Object.getOwnPropertySymbols,mo=Object.prototype.hasOwnProperty,Ts=Object.prototype.propertyIsEnumerable,ws=(mi,wi,yi)=>wi in mi?Mo(mi,wi,{enumerable:!0,configurable:!0,writable:!0,value:yi}):mi[wi]=yi,Vt=(mi,wi)=>{for(var yi in wi||(wi={}))mo.call(wi,yi)&&ws(mi,yi,wi[yi]);if(Xo)for(var yi of Xo(wi))Ts.call(wi,yi)&&ws(mi,yi,wi[yi]);return mi},xs=(mi,wi,yi)=>new Promise((nr,sr)=>{var Rr=ei=>{try{Xr(yi.next(ei))}catch(Ho){sr(Ho)}},Zr=ei=>{try{Xr(yi.throw(ei))}catch(Ho){sr(Ho)}},Xr=ei=>ei.done?nr(ei.value):Promise.resolve(ei.value).then(Rr,Zr);Xr((yi=yi.apply(mi,wi)).next())});const Ss=({shixunHomeworks:mi,dispatch:wi,classroomList:yi})=>{const{shixunWorkReport:nr}=mi,sr=(0,Lt.useParams)(),[Rr,Zr]=(0,bt.useState)(!1),[Xr]=zr.default.useForm(),[ei,Ho]=kt.default.useModal(),[Zo,cs]=(0,bt.useState)(!1),[ri,or]=(0,bt.useState)(!1);(0,bt.useEffect)(()=>{var Lr,Wr,wo,fo;mi.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4"&&Xr.setFieldsValue({comment:(Wr=(Lr=mi.actionTabs.selectArrs)==null?void 0:Lr.data)==null?void 0:Wr.work_comment,hidden_comment:(fo=(wo=mi.actionTabs.selectArrs)==null?void 0:wo.data)==null?void 0:fo.work_comment_hidden})},[mi.actionTabs.key]);const Er=()=>xs(void 0,null,function*(){const Lr=Xr.getFieldsValue();(yield(0,ae.ZP)(`/api/student_works/${sr.homeworkId}/shixun_work_comment.json`,{method:"post",body:{hidden_comment:Lr.hidden_comment,comment:Lr.comment}})).status===0&&(Jt.ZP.success("\u8BC4\u9605\u6210\u529F"),Xr.resetFields(),wi({type:"shixunHomeworks/setActionTabs",payload:{}}),wi({type:"shixunHomeworks/getShixunWorkReport",payload:Vt({},sr)}))}),no=[{title:"\u5173\u5361",dataIndex:"name",render:(Lr,Wr,wo)=>wo+1},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",render:(Lr,Wr,wo)=>hr.createElement("div",null,Lr,Wr.complete_status===4&&hr.createElement(Ae.vA,{status:Wr.complete_status}))},{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"open_time"},{title:"\u5B8C\u6210\u65F6\u95F4",dataIndex:"finished_time"},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",align:"center"},{title:"\u5B9E\u8BAD\u8017\u65F6",dataIndex:"time_consuming"},{title:"\u662F\u5426\u67E5\u770B\u7B54\u6848",dataIndex:"view_answer",align:"center",render:Lr=>Lr?"\u662F":"\u5426"},{title:"\u5173\u5361\u5F97\u5206",dataIndex:"game_score",align:"center",render:(Lr,Wr)=>hr.createElement("div",null,hr.createElement("span",{style:{color:parseFloat(Wr.game_score_full)!==parseFloat(Lr)?"#E30000":"#53C41B"}},Lr),"/",Wr.game_score_full)},{title:"\u8C03\u5206",dataIndex:"game_score",align:"center",fixed:"right",render:(Lr,Wr)=>(0,he.GJ)()?hr.createElement(Ze,{max:Wr.game_score_full,defaultValue:parseFloat(Lr),onBlur:wo=>xs(void 0,null,function*(){var fo,xo;if((0,he.Rm)()&&!((fo=yi.AssistantObject.practice)!=null&&fo.can_appraise)){Jt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const _r=yield wi({type:"shixunHomeworks/changeScore",payload:{categoryId:sr.homeworkId,type:"report",score:wo,challenge_id:Wr.challenge_id}});(xo=mi==null?void 0:mi.actionTabs)==null||xo.fn(),yield wi({type:"shixunHomeworks/getShixunWorkReport",payload:Vt({},sr)}),_r.status===0&&Jt.ZP.success("\u64CD\u4F5C\u6210\u529F")})}):Lr}];return hr.createElement(hr.Fragment,null,Ho,hr.createElement(kt.default,{centered:!0,width:1080,title:"\u70B9\u8BC4\u4F5C\u4E1A",open:mi.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>xs(void 0,null,function*(){var Lr;if((0,he.Rm)()&&!((Lr=yi.AssistantObject.practice)!=null&&Lr.can_appraise)){Jt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const Wr=Xr.getFieldsValue();JSON.stringify(Wr)==="{}"||Wr.hidden_comment===""&&Wr.comment===""?Zr(!0):Er()}),onCancel:()=>{wi({type:"shixunHomeworks/setActionTabs",payload:{}})}},hr.createElement(Gt.Z,{justify:"space-between",className:pr.info},hr.createElement(qt.Z,null,hr.createElement("span",{className:`${pr.label} ${pr.greyText}`},"\u59D3\u540D"),hr.createElement("span",{className:pr.blackContent},nr==null?void 0:nr.username)),hr.createElement(qt.Z,null,hr.createElement("span",{className:`${pr.label} ${pr.greyText}`},"\u5B66\u53F7"),hr.createElement("span",{className:pr.blackContent},(nr==null?void 0:nr.student_id)||"--")),hr.createElement(qt.Z,null,hr.createElement("span",{className:`${pr.label} ${pr.greyText}`},"\u73ED\u7EA7"),hr.createElement("span",{className:pr.blackContent},(nr==null?void 0:nr.group_name)||"--")),hr.createElement(qt.Z,null,hr.createElement("span",{className:`${pr.label} ${pr.greyText}`},"\u5173\u5361\u5F97\u5206"),hr.createElement("span",{className:pr.orangeContent},(nr==null?void 0:nr.challenge_score)||"--")),hr.createElement(qt.Z,null,hr.createElement("span",{className:`${pr.label} ${pr.greyText}`},"\u6548\u7387\u5206"),hr.createElement("span",{className:pr.orangeContent},(nr==null?void 0:nr.eff_score)||"--")),hr.createElement(qt.Z,null,hr.createElement("span",{className:`${pr.label} ${pr.greyText}`},"\u8865\u4EA4\u6263\u5206"),hr.createElement("span",{className:pr.orangeContent},(nr==null?void 0:nr.late_penalty)||"--")),hr.createElement(qt.Z,null,hr.createElement("span",{className:`${pr.label} ${pr.greyText}`},"\u6700\u7EC8\u6210\u7EE9"),hr.createElement("span",{className:pr.orangeContent},(nr==null?void 0:nr.work_score)||"--"))),hr.createElement(zr.default,{form:Xr,onChange:()=>{Rr&&Zr(!1)}},hr.createElement(Gt.Z,{wrap:!1,align:"middle",justify:"space-between"},hr.createElement(qt.Z,null,hr.createElement("div",{className:`${pr.inputLabel} ${pr.greyText}`},"\u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1")),hr.createElement(qt.Z,null,hr.createElement(Kr.Z,{isShowComponent:(0,he.G5)(),ModalProps:{open:Zo,onCancel:()=>{cs(!1)}},onDataSelect:(Lr,Wr)=>xs(void 0,[Lr,Wr],function*(wo,{node:fo}){const xo=()=>{Xr.setFieldsValue({comment:fo==null?void 0:fo.value}),cs(!1)};if(Xr.getFieldValue("comment")){ei.confirm({icon:null,title:"\u63D0\u793A",centered:!0,content:"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8BC4\u8BED\u8F93\u5165\u6846\u4E2D\u5DF2\u6709\u5185\u5BB9\uFF0C\u4F7F\u7528\u5E38\u7528\u8BC4\u8BED\u5C06\u4F1A\u8986\u76D6\u539F\u6709\u5185\u5BB9\u3002\u662F\u5426\u4F7F\u7528\uFF1F",okText:"\u4F7F\u7528",onOk:xo});return}xo()})},hr.createElement(wt.ZP,{style:{padding:0,height:"auto"},icon:hr.createElement("i",{className:"iconfont icon-changyongpingyu"}),type:"link",onClick:Lr=>{cs(!0)}},"\u5E38\u7528\u8BC4\u8BED")))),hr.createElement(zr.default.Item,{name:"comment"},hr.createElement(lt.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3})),hr.createElement(Gt.Z,{wrap:!1,align:"middle",justify:"space-between"},hr.createElement(qt.Z,null,hr.createElement("div",{className:`${pr.inputLabel} ${pr.greyText}`},"\u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1")),hr.createElement(qt.Z,null,hr.createElement(Kr.Z,{isShowComponent:(0,he.G5)(),ModalProps:{open:ri,onCancel:()=>{or(!1)}},onDataSelect:(Lr,Wr)=>xs(void 0,[Lr,Wr],function*(wo,{node:fo}){const xo=()=>{Xr.setFieldsValue({hidden_comment:fo==null?void 0:fo.value}),or(!1)};if(Xr.getFieldValue("hidden_comment")){ei.confirm({icon:null,title:"\u63D0\u793A",centered:!0,content:"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8BC4\u8BED\u8F93\u5165\u6846\u4E2D\u5DF2\u6709\u5185\u5BB9\uFF0C\u4F7F\u7528\u5E38\u7528\u8BC4\u8BED\u5C06\u4F1A\u8986\u76D6\u539F\u6709\u5185\u5BB9\u3002\u662F\u5426\u4F7F\u7528\uFF1F",okText:"\u4F7F\u7528",onOk:xo});return}xo()})},hr.createElement(wt.ZP,{style:{padding:0,height:"auto"},icon:hr.createElement("i",{className:"iconfont icon-changyongpingyu"}),type:"link",onClick:Lr=>{or(!0)}},"\u5E38\u7528\u8BC4\u8BED")))),hr.createElement(zr.default.Item,{name:"hidden_comment"},hr.createElement(lt.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3}))),Rr&&hr.createElement("p",{className:"c-red"},"\u8BC4\u9605\u5185\u5BB9\u81F3\u5C11\u6709\u4E00\u4E2A\u4E0D\u4E3A\u7A7A"),hr.createElement("div",{className:pr.tableTitle},"\u5173\u5361\u6210\u7EE9"),hr.createElement(rt.default,{className:pr.scoreTable,dataSource:nr.stage_list,rowKey:"challenge_id",pagination:!1,columns:no,scroll:{x:"max-content"}})))};var Ms=(0,Lt.connect)(({shixunHomeworks:mi,classroomList:wi})=>({shixunHomeworks:mi,classroomList:wi}))(Ss),ma=Bt(68971),Ea=Bt(36708),oa=Bt(44164),ao=Bt.n(oa),br={wrap:"wrap___LZOi9",line:"line___oju0L"},Un=Bt(41069),Re=({detailData:mi})=>{var wi;return bt.createElement("div",{className:br.wrap},bt.createElement(Un.ij,{hideBar:!0,actionAnalysis:!0,loading:!1,emptyData:[(0,Un.Uf)(mi),(mi==null?void 0:mi.photos)||[]],title:"\u5B9E\u8BAD\u5B66\u4E60\u5206\u6790",noDataText:"\u8BE5\u5B66\u751F\u65E0\u5B66\u4E60\u884C\u4E3A\u5206\u6790\u6570\u636E"},bt.createElement(Un.ZP,{hideBar:!0,title:"\u5B9E\u8BAD\u5B66\u4E60\u5206\u6790",data:(0,Un.Uf)(mi)}),!!((wi=mi==null?void 0:mi.photos)!=null&&wi.length)&&bt.createElement(bt.Fragment,null,bt.createElement("div",{className:br.line}),bt.createElement(Un._s,{dataSource:mi==null?void 0:mi.photos,right:21,col:4,wrapWidth:1140}))))},hi=Bt(78297),en=Bt(59301),gn=Object.defineProperty,Ve=Object.defineProperties,ni=Object.getOwnPropertyDescriptors,Bi=Object.getOwnPropertySymbols,_i=Object.prototype.hasOwnProperty,tr=Object.prototype.propertyIsEnumerable,sn=(mi,wi,yi)=>wi in mi?gn(mi,wi,{enumerable:!0,configurable:!0,writable:!0,value:yi}):mi[wi]=yi,fi=(mi,wi)=>{for(var yi in wi||(wi={}))_i.call(wi,yi)&&sn(mi,yi,wi[yi]);if(Bi)for(var yi of Bi(wi))tr.call(wi,yi)&&sn(mi,yi,wi[yi]);return mi},Zi=(mi,wi)=>Ve(mi,ni(wi)),Tr=(mi,wi)=>{var yi={};for(var nr in mi)_i.call(mi,nr)&&wi.indexOf(nr)<0&&(yi[nr]=mi[nr]);if(mi!=null&&Bi)for(var nr of Bi(mi))wi.indexOf(nr)<0&&tr.call(mi,nr)&&(yi[nr]=mi[nr]);return yi},ii=(mi,wi,yi)=>new Promise((nr,sr)=>{var Rr=ei=>{try{Xr(yi.next(ei))}catch(Ho){sr(Ho)}},Zr=ei=>{try{Xr(yi.throw(ei))}catch(Ho){sr(Ho)}},Xr=ei=>ei.done?nr(ei.value):Promise.resolve(ei.value).then(Rr,Zr);Xr((yi=yi.apply(mi,wi)).next())});const xi=mi=>{var wi=mi,{shixunHomeworks:yi,classroomList:nr,globalSetting:sr,loading:Rr,user:Zr,dispatch:Xr}=wi,ei=Tr(wi,["shixunHomeworks","classroomList","globalSetting","loading","user","dispatch"]),Ho,Zo,cs;const[ri,or]=(0,bt.useState)(fi({},(0,Lt.useParams)())),Er=(0,Lt.useParams)(),[no,Lr]=(0,bt.useState)({page:1,page_size:10}),Wr=(0,Lt.useLocation)(),[]=(0,bt.useState)([]),[wo,fo]=(0,bt.useState)(),xo=(0,bt.useRef)(),_r=(0,bt.useRef)(),[Ci,Qo]=(0,bt.useState)(!1),[bi,ns]=(0,bt.useState)(!0),[qs,fs]=(0,bt.useState)(!1),[Hs,Gs]=(0,bt.useState)(!1),{shixunWorkReport:si}=yi,[To,us]=(0,bt.useState)(),[rs,Cr]=(0,bt.useState)([]),[ke,ts]=(0,bt.useState)(),[ta,qa]=(0,bt.useState)("all"),ol=(0,he.GJ)(),[ml,yr]=(0,bt.useState)(new(ie())),[$r,Jo]=(0,bt.useState)(0),[Lo,os]=(0,bt.useState)(!1),[Fa,lo]=(0,bt.useState)(!1),[vo,Ki]=(0,bt.useState)(!1),[Eo,Es]=(0,bt.useState)(""),[la,ca]=(0,bt.useState)(!1),[zo,Vs]=(0,bt.useState)(!0),[Ka,Wl]=(0,bt.useState)(0),La=(0,bt.useRef)(JSON.parse(sessionStorage.all_student_works_params||"{}")),vs=(0,bt.useRef)(),ai=()=>ii(void 0,null,function*(){(Zr.userInfo.is_teacher||Zr.userInfo.admin)&&(ca(!0),Vs(!1))});(0,bt.useEffect)(()=>{var Ao;(0,he.Rm)()&&nr.AssistantObject.practice&&!((Ao=nr.AssistantObject.practice)!=null&&Ao.can_view)&&Lt.history.replace("/403")},[(Ho=nr.AssistantObject.practice)==null?void 0:Ho.can_view]),(0,bt.useEffect)(()=>{ai(),console.log("\u6253\u5370\u7684------",si),vs.current=si==null?void 0:si.next_student_work_id,Es(si.repeat_minus_score)},[si,Zr]),(0,bt.useEffect)(()=>{console.log("\u89E6\u53D1\u8FD9",si.work_score),Wl(si.work_score)},[si.work_score,Eo]),(0,bt.useEffect)(()=>(Xr({type:"globalSetting/footerToggle",payload:!1}),()=>{Xr({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,bt.useEffect)(()=>{var Ao;if(si){let Ns=[];(Ao=si==null?void 0:si.target_test_sets)==null||Ao.map((da,xr)=>{var Ma;(Ma=da==null?void 0:da.targets)==null||Ma.map((Oa,Bl)=>{var su;Oa.name=da==null?void 0:da.name,Oa.total_target_score=da==null?void 0:da.total_target_score,Oa.actual_target_score=da==null?void 0:da.actual_target_score,Oa.rowSpan=Bl===0?(su=da==null?void 0:da.targets)==null?void 0:su.length:0,Oa.order=xr+1,Ns.push(Oa)})}),us(Ns),(0,he.Rm)()&&Xr({type:"classroomList/getAssistantPermissions",payload:{course_id:ri.coursesId}})}},[si]),(0,bt.useEffect)(()=>{yi.actionTabs.key==="\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"&&(si==null?void 0:si.students_count)>0&&!bi&&setTimeout(()=>{Is("all")},800)},[si==null?void 0:si.homework_common_id,bi]),(0,bt.useEffect)(()=>{or(fi({},Er))},[Wr.pathname]);const Ta=()=>{document.body.scrollIntoView()},bc=Ao=>{no.page=Ao,Lr(fi({},no)),Vl(no,ta)},Vl=(Ao,Ns)=>ii(void 0,null,function*(){fs(!0);const da=yield(0,ae.ZP)(`/api/student_works/${ri==null?void 0:ri.homeworkId}/adjust_review_score_histories.json`,{method:"get",params:Zi(fi({},Ao),{challenge_id:Ns=="all"?null:Ns})});(da==null?void 0:da.status)===0&&(Cr(da==null?void 0:da.list),ts(da==null?void 0:da.count)),fs(!1)});function Th(){return ii(this,null,function*(){La.current=JSON.parse(sessionStorage.all_student_works_params||"{}")})}const sl=()=>{document.querySelectorAll("canvas").forEach(Ao=>{(!Ao.clientWidth||!Ao.clientHeight)&&Ao.remove()})},Wc=()=>{xo.current.offsetHeight>62e3?Gs(!1):Gs(!0)},Fl=Ao=>ii(void 0,null,function*(){const Ns=yield(0,Ea.t1)({homeworkId:Ao||ri.homeworkId});fo(Ns==null?void 0:Ns.data)}),Is=Ao=>ii(void 0,null,function*(){var Ns,da,xr,Ma;let Oa=0,Bl;Bl=kt.default.info({width:460,title:en.createElement("div",null,"\u6B63\u5728\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A,",en.createElement("span",{className:"c-red"},"\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3")),content:en.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",en.createElement("span",{className:"c-blue"},Oa+1),"/",Ao!=="all"?1:si==null?void 0:si.students_count,en.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3"),maskClosable:!1,className:ee.modal,onOk:()=>{}});const su={margin:[0,0],filename:`${si!=null&&si.student_id&&(si==null?void 0:si.student_id)!="--"?si==null?void 0:si.student_id:""}${si.username}.pdf`,html2canvas:{useCORS:!0,letterRendering:!0},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}},au=ml.folder(si==null?void 0:si.shixun_name);function Yo(va){return ii(this,null,function*(){yield Fl(va||vs.current);const Cs=yield Xr({type:"shixunHomeworks/getShixunWorkReport",payload:fi({homeworkId:va||vs.current},La.current||{})});vs.current=Cs==null?void 0:Cs.next_student_work_id,Ta(),Oa++,setTimeout(()=>ii(this,null,function*(){var lu,Ll,Ml,tl;sl();const Pl=au.folder(`${Cs==null?void 0:Cs.group_name}`).folder(`${Cs!=null&&Cs.student_id&&(Cs==null?void 0:Cs.student_id)!="--"?Cs.student_id+"+":""}${Cs==null?void 0:Cs.username}`),Io=document.querySelector("#export-all").children;let dc=ao()();for(let al=0;al<Io.length;al++)yield dc.set(su).from(Io[al]).toContainer().toCanvas().toPdf().get("pdf").then(zu=>ii(this,null,function*(){al<Io.length-1&&(yield zu.addPage())}));if(Pl.file(`${Cs!=null&&Cs.student_id&&(Cs==null?void 0:Cs.student_id)!="--"?Cs.student_id+"+":""}${Cs==null?void 0:Cs.username}.pdf`,dc.output("blob")),((lu=Cs==null?void 0:Cs.shixun_detail)==null?void 0:lu.length)>0&&((Ml=(Ll=Cs==null?void 0:Cs.shixun_detail)==null?void 0:Ll.filter(al=>{var zu;return((zu=al==null?void 0:al.game_codes)==null?void 0:zu.length)>0}))==null?void 0:Ml.length)>0){const al=Pl.folder("\u4EE3\u7801\u6587\u4EF6");(tl=Cs==null?void 0:Cs.shixun_detail)==null||tl.map((zu,hh)=>{var dh,Ga;if(((dh=zu==null?void 0:zu.game_codes)==null?void 0:dh.length)>0){const ih=al.folder(`\u7B2C${hh+1}\u5173-${zu.subject}-${zu.id}`);(Ga=zu==null?void 0:zu.game_codes)==null||Ga.map(Ec=>{ih.file(`${Ec.filename}.txt`,Ec==null?void 0:Ec.content)})}})}Bl.update({content:en.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",en.createElement("span",{className:"c-blue"},Oa),"/",Cs==null?void 0:Cs.students_count,en.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3")}),Oa==(Cs==null?void 0:Cs.students_count)?(Bl.destroy(),ia()):Yo()}),2200)})}if(Ao!=="all"||(si==null?void 0:si.students_count)<2){sl(),Ta();const va=_r.current.children;let Cs=ao()();const Ll=au.folder(`${si==null?void 0:si.group_name}`).folder(`${si!=null&&si.student_id&&(si==null?void 0:si.student_id)!="--"?(si==null?void 0:si.student_id)+"+":""}${si==null?void 0:si.username}`);for(let Ml=0;Ml<va.length;Ml++)yield Cs.set(su).from(va[Ml]).toContainer().toCanvas().toPdf().get("pdf").then(tl=>ii(void 0,null,function*(){Ml<va.length-1&&(yield tl.addPage())}));if(Qo(!1),Ll.file(`${si!=null&&si.student_id&&(si==null?void 0:si.student_id)!="--"?(si==null?void 0:si.student_id)+"+":""}${si.username}.pdf`,Cs.output("blob"),{base64:!1}),((Ns=si==null?void 0:si.shixun_detail)==null?void 0:Ns.length)>0&&((xr=(da=si==null?void 0:si.shixun_detail)==null?void 0:da.filter(Ml=>{var tl;return((tl=Ml==null?void 0:Ml.game_codes)==null?void 0:tl.length)>0}))==null?void 0:xr.length)>0){const Ml=Ll.folder("\u4EE3\u7801\u6587\u4EF6");(Ma=si==null?void 0:si.shixun_detail)==null||Ma.map((tl,tu)=>{var Pl,Io;if(((Pl=tl==null?void 0:tl.game_codes)==null?void 0:Pl.length)>0){const dc=Ml.folder(`\u7B2C${tu+1}\u5173-${tl.subject}-${tl.id}`);(Io=tl==null?void 0:tl.game_codes)==null||Io.map(al=>{dc.file(`${al.filename}.txt`,al==null?void 0:al.content)})}})}Bl.destroy(),ia();return}else Yo(si==null?void 0:si.first_student_work_id)}),ia=()=>{ml.generateAsync({type:"blob"}).then(function(Ao){console.log(si,"shixunWorkReport");const Ns=document.createElement("a");Ns.href=window.URL.createObjectURL(Ao),Ns.download=(si==null?void 0:si.shixun_name)+".zip",document.body.appendChild(Ns);const da=document.createEvent("MouseEvents");da.initEvent("click",!1,!1),Ns.dispatchEvent(da),document.body.removeChild(Ns),yr(new(ie()))}),Gs(!1)};(0,bt.useEffect)(()=>{Ph()},[ri.homeworkId]);const Ph=()=>ii(void 0,null,function*(){ns(!0),yield Xr({type:"shixunHomeworks/getShixunWorkReport",payload:fi(fi({},ri),La.current||{})}),Fl(),(0,he.GJ)()&&Th(),ns(!1)}),is=[{title:"\u5173\u5361",dataIndex:"name",render:(Ao,Ns,da)=>da+1},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",render:(Ao,Ns,da)=>en.createElement("div",null,Ao,Ns.complete_status===4&&en.createElement(Ae.vA,{status:Ns.complete_status}))},{title:"\u5F00\u542F\u65F6\u95F4",dataIndex:"open_time"},{title:"\u4EE3\u7801\u4FEE\u6539\u884C\u6570",dataIndex:"diff_code_count",render:(Ao,Ns,da)=>Ao||"- -"},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count"},{title:"\u5B8C\u6210\u65F6\u95F4",dataIndex:"finished_time"},{title:"\u5B9E\u8BAD\u8017\u65F6",dataIndex:"time_consuming"},{title:"\u662F\u5426\u67E5\u770B\u7B54\u6848",dataIndex:"view_answer",render:Ao=>Ao?"\u662F":"\u5426"},{title:"\u7ECF\u9A8C\u503C",dataIndex:"experience",render:(Ao,Ns)=>en.createElement("div",null,en.createElement("span",{style:{color:parseFloat(Ns.myself_experience)!==parseFloat(Ao)?"red":"green"}},Ns.myself_experience),"/",Ao)},{title:"\u5173\u5361\u5F97\u5206",dataIndex:"game_score",render:(Ao,Ns)=>en.createElement("div",null,en.createElement("span",{style:{color:parseFloat(Ns.game_score_full)!==parseFloat(Ao)?"red":"green"}},Ao),"/",Ns.game_score_full)},{title:"\u8C03\u5206",dataIndex:"game_score",render:(Ao,Ns)=>ol?en.createElement(Ze,{max:Ns.game_score_full,defaultValue:parseFloat(Ao),onBlur:da=>ii(void 0,null,function*(){var xr;if((0,he.Rm)()&&!((xr=nr.AssistantObject.practice)!=null&&xr.can_appraise)){Jt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const Ma=yield Xr({type:"shixunHomeworks/changeScore",payload:{categoryId:ri.homeworkId,type:"report",score:da,challenge_id:Ns.challenge_id}});Vl({page:1,page_size:10},"all"),yield Xr({type:"shixunHomeworks/getShixunWorkReport",payload:fi(fi({},ri),La.current||{})}),Ma.status===0&&Jt.ZP.success("\u64CD\u4F5C\u6210\u529F")})}):Ao}];let Zs=[{title:"\u5173\u5361",dataIndex:"order",key:"order",render:(Ao,Ns,da)=>({children:Ao,props:{rowSpan:Ns.rowSpan}})},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",key:"name",render:(Ao,Ns,da)=>({children:Ao,props:{rowSpan:Ns.rowSpan}})},{title:"\u6307\u6807\u540D\u79F0",dataIndex:"target_name",key:"target_name"},{title:"\u6307\u6807\u9884\u671F\u7ED3\u679C",dataIndex:"output",key:"output"},{title:"\u6307\u6807\u5B9E\u9645\u7ED3\u679C",dataIndex:"actual_output",key:"actual_output"},{title:"\u6307\u6807\u5F97\u5206",dataIndex:"test_score",key:"test_score",render:(Ao,Ns,da)=>en.createElement("div",null,en.createElement("span",{style:{color:parseFloat(Ns.actual_test_score)!==parseFloat(Ao)?"red":"green"}},Ns.actual_test_score),"/",Ao)},{title:"\u6307\u6807\u603B\u5206",render:(Ao,Ns,da)=>({children:en.createElement("div",null,en.createElement("span",{style:{color:parseFloat(Ns.actual_target_score)!==parseFloat(Ao)?"red":"green"}},Ns.actual_target_score),"/",Ao),props:{rowSpan:Ns.rowSpan}}),dataIndex:"total_target_score",key:"total_target_score"}];const ys=[{title:"\u5173\u5361",dataIndex:"challenge_num",width:220},{title:"\u8C03\u5206\u7528\u6237",dataIndex:["user","name"]},{title:"\u8C03\u5206\u524D",dataIndex:"old_score"},{title:"\u8C03\u5206\u540E",dataIndex:"score"},{title:"\u8C03\u5206\u65F6\u95F4",dataIndex:"created_at",render:Ao=>en.createElement("span",null,Ao?se()(Ao).format("YYYY-MM-DD HH:mm"):"--")}],Hr=Ao=>{Xr({type:"shixunHomeworks/setActionTabs",payload:{key:"",type:2}}),setTimeout(()=>{Ao==="next"?Lt.history.push(`/classrooms/${ri.coursesId}/shixun_homework/${ri.categoryId}/${si==null?void 0:si.next_student_work_id}/comment`):Lt.history.push(`/classrooms/${ri.coursesId}/shixun_homework/${ri.categoryId}/${si==null?void 0:si.pre_student_work_id}/comment`)},200)},Tl=Ao=>{Es(""),Ao.target.value&&(console.log("\u8FDB\u6765",si),Ao.target.value=Ao.target.value>si.repeat_setting_score?si.repeat_setting_score:Ao.target.value,Es(Ao.target.value))},Ol=()=>ii(void 0,null,function*(){const Ao=yield(0,ae.ZP)(`/api/student_works/${si==null?void 0:si.work_id}/update_repeat_score`,{method:"put",body:{score:Eo}});yield Xr({type:"shixunHomeworks/getShixunWorkReport",payload:fi(fi({},ri),La.current||{})}),Ao.status===0&&Jt.ZP.info("\u64CD\u4F5C\u6210\u529F")});return en.createElement("section",{className:"bg-fafafa",style:{position:"sticky",top:0}},en.createElement("div",{className:"edu-container mt10",style:{paddingBottom:100}},en.createElement(St.Z,{loading:Rr["shixunHomeworks/getShixunWorkReport"],active:!0,avatar:{size:40},paragraph:{rows:5}},en.createElement("div",{className:"edu-container"},si.course_id&&en.createElement("section",{className:"animated fadeIn"},en.createElement("aside",{className:""},si.category&&en.createElement(Wt.Z,{separator:">"},en.createElement(Wt.Z.Item,null,en.createElement(Lt.Link,{to:`/classrooms/${si.course_id}/shixun_homework`},si.course_name)),en.createElement(Wt.Z.Item,null,en.createElement(Lt.Link,{to:`/classrooms/${si.course_id}/shixun_homework/${si.category.main?"":si.category.category_id}`},si.category.category_name)),en.createElement(Wt.Z.Item,null,en.createElement(Lt.Link,{to:`/classrooms/${si.course_id}/shixun_homework/${si.homework_common_id}/detail${(0,he.dE)()?"?tabs=1":""}`},"\u4F5C\u4E1A\u8BE6\u60C5")),en.createElement(Wt.Z.Item,null,si.username))),en.createElement("aside",{className:[ee.title1,"mt20"].join(" ")},en.createElement(Gt.Z,{align:"middle"},en.createElement(qt.Z,{flex:1},en.createElement(Lt.Link,{to:`/classrooms/${si.course_id}/shixun_homework/${si.homework_common_id}/detail`},en.createElement(pt.Z,{className:"font16 c-black"})),en.createElement("strong",{className:"font20 ml5"},si==null?void 0:si.homework_name),en.createElement(Ae.VV,{temporary:!0,status:si.homework_status})),en.createElement(qt.Z,{className:ee.title1_right},si.view_tpi&&en.createElement(wt.ZP,{onClick:()=>{var Ao,Ns;(0,Ae.xg)(`/tasks/${si==null?void 0:si.course_id}/${si==null?void 0:si.homework_common_id}/${(Ns=(Ao=si==null?void 0:si.shixun_detail)==null?void 0:Ao[0])==null?void 0:Ns.game_identifier}`)}},en.createElement("span",{className:"iconfont icon-yijiandianping mr5"}),"\u67E5\u770B\u5B66\u5458\u5B9E\u8BAD"),(0,he.GJ)()&&si.homework_end===!1&&!!si.myshixun_id&&en.createElement(wt.ZP,{className:"ml10",onClick:()=>ii(void 0,null,function*(){yield Xr({type:"shixunHomeworks/setActionTabs",payload:{key:"\u6253\u56DE\u91CD\u505A",selectArrs:{myshixun_identifier:si.myshixun_identifier},homework_common_id:Er.categoryId}})})},en.createElement("span",{className:"iconfont icon-dahuizhongzuo3x mr5"}),"\u6253\u56DE\u91CD\u505A"),en.createElement(wt.ZP,{className:"ml10",onClick:()=>{var Ao;if((0,he.Rm)()&&!((Ao=nr.AssistantObject.practice)!=null&&Ao.can_download)){Jt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Is("")},loading:Ci},en.createElement("span",{className:"iconfont icon-daochu mr5"}),"\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"),(0,he.GJ)()&&(si==null?void 0:si.students_count)>1&&en.createElement(wt.ZP,{className:"ml10",onClick:()=>{var Ao;if((0,he.Rm)()&&!((Ao=nr.AssistantObject.practice)!=null&&Ao.can_download)){Jt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}kt.default.confirm({title:"\u9009\u62E9\u5BFC\u51FA\u65B9\u5F0F",closable:!0,icon:null,centered:!0,okText:en.createElement(et.Z,{title:"\u5BFC\u51FA\u65F6\u4E0D\u80FD\u9000\u51FA\u6216\u5173\u95ED\u5BFC\u51FA\u9875\u9762\uFF0C\u53EF\u80FD\u4F1A\u5F71\u54CD\u5176\u4ED6\u64CD\u4F5C"},"\u524D\u7AEF\u5BFC\u51FA"),cancelText:en.createElement(et.Z,{title:"\u751F\u6210\u5BFC\u51FA\u4EFB\u52A1\u540E\u53EF\u5173\u95ED\u9875\u9762\uFF0C\u540E\u53F0\u5BFC\u51FA\u6210\u529F\u540E\u5728\u5386\u53F2\u5BFC\u51FA\u9875\u9762\u81EA\u884C\u4E0B\u8F7D\uFF0C\u4E0D\u5F71\u54CD\u5176\u4ED6\u64CD\u4F5C"},"\u540E\u53F0\u5BFC\u51FA"),onOk:()=>{Is("all")},onCancel:()=>{},cancelButtonProps:{onClick:()=>{(0,hi.jj)({categoryId:ri.categoryId,coursesId:ri.coursesId},"shixun_report")}}})}},en.createElement("span",{className:"iconfont icon-daochu mr5"}),"\u5BFC\u51FA\u5168\u90E8\u5B66\u751F\u5B9E\u8BAD\u62A5\u544A"))))),en.createElement("aside",{className:"mt30 relative"})),en.createElement("aside",{className:"edu-container bg-white",ref:xo},en.createElement("div",{id:"export-all",ref:_r},en.createElement("div",{id:"export-all-1"},en.createElement("div",{className:ee.title},en.createElement("h1",null,"\u603B\u4F53\u8BC4\u4EF7"),en.createElement("div",null,(0,he.GJ)()&&en.createElement(wt.ZP,{className:"mr20",type:"primary",onClick:()=>{Xr({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:si.user_id,data:fi({},si)},fn:()=>Vl({page:1,page_size:10},"all")}})}},en.createElement(Ft.Z,null),si.has_shixun_work_comment?"\u66F4\u6539\u70B9\u8BC4":"\u70B9\u8BC4\u4F5C\u4E1A"))),en.createElement(tt.Z,{style:{marginTop:0}}),en.createElement(Gt.Z,{className:"pl30 pr30"},en.createElement(qt.Z,null,en.createElement("img",{className:ee.userPic,src:`${re.Z.IMG_SERVER}/images/${si.image_url}`,alt:si.username})),en.createElement(qt.Z,null,en.createElement("span",{className:"font16 ml40"},si.username),en.createElement(Ae.vA,{status:si.compelete_status}),en.createElement("ul",{className:ee.userInfo},en.createElement("li",null,"\u5B66\u53F7\uFF1A",si.student_id||"--"),en.createElement("li",null,"\u5206\u73ED\uFF1A",si.group_name||"--"),en.createElement("br",null),en.createElement("li",null,"\u622A\u6B62\u524D\u5B8C\u6210\u5173\u5361\uFF1A",en.createElement("span",{className:"c-red"},si.complete_count),"/",en.createElement("span",{className:"c-red"},si.challenges_count)),en.createElement("li",null,"\u6700\u65B0\u5B8C\u6210\u5173\u5361\uFF1A",en.createElement("span",{className:"c-red"},si.current_complete_count||"-"),"/",en.createElement("span",{className:"c-red"},si.challenges_count)),en.createElement("li",null,"\u5B8C\u6210\u6548\u7387\uFF1A",si&&si.efficiency===null?"--":si&&si.efficiency),en.createElement("li",null,"\u8BFE\u5802\u6700\u9AD8\u5B8C\u6210\u6548\u7387\uFF1A",si&&si.max_efficiency===null?"--":si&&si.max_efficiency))),en.createElement("ul",{className:[ee.listItem,"mt10"].join(" ")},en.createElement("li",null,en.createElement("strong",null,"\u901A\u5173\u65F6\u95F4"),en.createElement("div",{className:"c-light-black mt20"},si&&si.passed_time===null||si&&si.passed_time==="--"?"--":se()(si&&si.passed_time).format("YYYY-MM-DD HH:mm"))),en.createElement("li",null,en.createElement("strong",null,"\u8BA1\u65F6\u89C4\u5219",en.createElement("i",{onClick:Ao=>{Ao.stopPropagation(),Ao.preventDefault(),os(!0)},style:{marginLeft:4,color:"#145DFF",fontSize:16,cursor:"pointer"},className:"iconfont icon-tishixiaowenhao"})),en.createElement("div",{className:"c-light-black mt20"},si==null?void 0:si.human_training_time_rules)),en.createElement("li",null,en.createElement("strong",null,"\u5B9E\u8BAD\u603B\u8017\u65F6",en.createElement("i",{onClick:Ao=>{Ao.stopPropagation(),Ao.preventDefault(),lo(!0)},style:{marginLeft:4,color:"#145DFF",fontSize:16,cursor:"pointer"},className:"iconfont icon-tishixiaowenhao"})),en.createElement("div",{className:"c-light-black mt20"},si.time_consuming)),en.createElement("li",null,en.createElement("strong",null,"\u8BC4\u6D4B\u6B21\u6570"),en.createElement("div",{className:"mt20"},si.evaluate_count)),(si==null?void 0:si.eff_score_full)&&en.createElement(en.Fragment,null,en.createElement("li",null,en.createElement("strong",null,"\u5173\u5361\u5F97\u5206"),en.createElement("div",{className:"mt20"},en.createElement("span",{className:"c-orange"},si.challenge_score),"/",en.createElement("span",{className:"c-light-black"},si.challenge_score_full))),en.createElement("li",null,en.createElement("strong",null,"\u6548\u7387\u5206"),en.createElement("div",{className:"mt20"},en.createElement("span",{className:"c-orange"},si.eff_score),"/",en.createElement("span",{className:"c-light-black"},si.eff_score_full)))),(si==null?void 0:si.have_repeat)&&(si==null?void 0:si.repeat_minus_score)!==0&&en.createElement("li",{style:{position:"relative"}},en.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},en.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),en.createElement("div",{style:{position:"absolute",fontSize:"10px",color:"white",left:"57px",width:"46px",bottom:"72px"}},si!=null&&si.review_rate?en.createElement("span",{style:{background:"#0152d9",borderRadius:"6px 6px 6px 0",cursor:"pointer"},onClick:()=>{if(si!=null&&si.review_id&&la)localStorage.setItem("studentDetial",window.location.pathname),Lt.history.push({pathname:`/classrooms/:coursesId/shixun_homework/${ri.categoryId}/review_detail/${si==null?void 0:si.review_id}`});else return}},si.review_rate.toFixed(1),"%"):en.createElement("span",{style:{background:"#0152d9",borderRadius:"6px 6px 6px 0"}},"- -"))),la?en.createElement("div",{className:"mt20"},en.createElement(lt.default,{style:{width:"45px",height:"22px"},value:Eo,onChange:Ao=>{Tl(Ao)},onBlur:Ol,disabled:zo})," / ",si==null?void 0:si.repeat_setting_score):en.createElement("div",{className:"mt20"},si==null?void 0:si.repeat_minus_score," / ",si==null?void 0:si.repeat_setting_score)),console.log("sssssssssssssssssssssss",si==null?void 0:si.have_repeat,si==null?void 0:si.repeat_minus_score),(si==null?void 0:si.have_repeat)&&(si==null?void 0:si.repeat_minus_score)===0&&en.createElement("li",null,en.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),en.createElement("div",{className:"mt20"}," - -")),!(si!=null&&si.have_repeat)&&en.createElement("li",null,en.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),en.createElement("div",{className:"mt20"}," - -")),en.createElement("li",null,en.createElement("strong",null,"\u8865\u4EA4\u6263\u5206"),en.createElement("div",{className:"mt20"},en.createElement("span",null,si.late_penalty||"- -"))),en.createElement("li",null,en.createElement("strong",null,"\u6700\u7EC8\u6210\u7EE9"),en.createElement("div",{className:"mt20"},en.createElement("span",{className:"c-orange"},Ka),"/",en.createElement("span",{className:"c-light-black"},si.all_work_score))),en.createElement("li",null,en.createElement("strong",null,"\u603B\u8BC4"),en.createElement("div",{className:"mt20"},en.createElement("span",{className:"c-orange"},si.overall_appraisal))))),en.createElement(tt.Z,{style:{margin:0}}),(si.work_comment_hidden||si.work_comment)&&en.createElement("div",null,en.createElement(Gt.Z,{align:"middle"},en.createElement(qt.Z,{flex:1},en.createElement("h1",{className:ee.title},"\u70B9\u8BC4\u5185\u5BB9")),en.createElement(qt.Z,{className:"pr30"},(0,he.GJ)()&&en.createElement(wt.ZP,{onClick:()=>ii(void 0,null,function*(){kt.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:en.createElement(Tt.Z,null),content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F",onOk(){return ii(this,null,function*(){(yield(0,Ea.gZ)({comment_id:si.comment_id,homeworkId:ri.homeworkId})).status===0&&(Jt.ZP.success("\u5220\u9664\u6210\u529F"),Xr({type:"shixunHomeworks/getShixunWorkReport",payload:fi(fi({},ri),La.current||{})}))})}})})},en.createElement(_t.Z,null),"\u5220\u9664"))),en.createElement(tt.Z,{style:{margin:0}}),si.work_comment&&en.createElement("aside",{className:"pl30 pr30 mt20"},en.createElement("span",{className:"c-light-black font12"},"# \u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),en.createElement("br",null),en.createElement(xe.Z,{value:si.work_comment})),si.work_comment_hidden&&en.createElement("aside",{className:"pl30 pr30 mt20"},en.createElement("span",{className:"c-light-black font12"},"# \u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),en.createElement("br",null),en.createElement(xe.Z,{value:si.work_comment_hidden}))),(si==null?void 0:si.action_analysis)&&en.createElement(Re,{detailData:si}),en.createElement("div",{className:ee.score},en.createElement("h1",{className:ee.title},"\u9636\u6BB5\u6210\u7EE9"),(si==null?void 0:si.adjust_review_score_count)>0&&(0,he.GJ)()&&en.createElement("div",{style:{color:"#0152d9",cursor:"pointer"},onClick:()=>{Ki(!0),Vl({page:1,page_size:10},"all")}},"\u6210\u7EE9\u8C03\u5206\u8BB0\u5F55\uFF08",si==null?void 0:si.adjust_review_score_count,"\u6B21\uFF09")),en.createElement("aside",{className:"pl30 pr30"},en.createElement(rt.default,{dataSource:si.stage_list,rowKey:Ao=>Ao==null?void 0:Ao.challenge_id,pagination:!1,columns:is})),((Zo=si==null?void 0:si.target_test_sets)==null?void 0:Zo.length)>0&&en.createElement("div",null,en.createElement("h1",{className:ee.title},"\u6307\u6807\u6210\u7EE9"),en.createElement("aside",{className:"pl30 pr30"},en.createElement(rt.default,{dataSource:To,rowKey:Ao=>Ao==null?void 0:Ao.challenge_id,pagination:!1,bordered:!0,columns:Zs}))),(si==null?void 0:si.work_description)&&en.createElement(en.Fragment,null,en.createElement("h1",{className:ee.title},"\u4E2A\u4EBA\u603B\u7ED3"),en.createElement("aside",{className:"pl30 pr30"},en.createElement(xe.Z,{value:si==null?void 0:si.work_description}))),en.createElement("h1",{className:ee.title},"\u56FE\u5F62\u7EDF\u8BA1"),en.createElement(qe,{data:wo}),en.createElement("h1",{className:ee.title},"\u5B9E\u8BAD\u8BE6\u60C5")),en.createElement(Jr,{autoHeight:Hs}))),(0,he.GJ)()&&en.createElement("aside",{className:`${ee.footerBar} ${Ci?ee.footerBarStatic:""}`},en.createElement("aside",{className:"edu-container"},en.createElement(Gt.Z,{align:"middle"},en.createElement(qt.Z,{flex:"1"},en.createElement(Lt.Link,{className:ee.exitComment,to:`/classrooms/${ri.coursesId}/shixun_homework/${ri.categoryId}/detail`},"\u8FD4\u56DE\u5217\u8868")),en.createElement(qt.Z,{flex:"1",className:"tr"},en.createElement(wt.ZP,{type:"default",disabled:!(si!=null&&si.pre_student_work_id),onClick:()=>Hr()},"\u4E0A\u4E00\u4E2A"),en.createElement(wt.ZP,{type:"default",style:{marginLeft:"20px",marginRight:"20px"},disabled:!(si!=null&&si.next_student_work_id),onClick:()=>Hr("next")},"\u4E0B\u4E00\u4E2A"),(0,he.GJ)()&&en.createElement(wt.ZP,{type:"primary",onClick:()=>ii(void 0,null,function*(){Xr({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:si.user_id,data:fi({},si)},fn:()=>Vl({page:1,page_size:10},"all")}})})},"\u70B9\u8BC4\u4F5C\u4E1A"))))))),en.createElement(Ms,null),en.createElement(ma.Z,null),en.createElement(kt.default,{open:Lo,width:860,centered:!0,onCancel:()=>{os(!1)},title:"\u8BA1\u65F6\u89C4\u5219\u8BF4\u660E",footer:null},en.createElement("div",{style:{color:"#333333",fontWeight:400}},en.createElement("span",{style:{fontWeight:500}},"1\u3001\u9875\u9762\u505C\u7559\u65F6\u957F"),en.createElement("br",null),en.createElement("span",null,"\u5B66\u751F\u8FDB\u5165\u5173\u5361\u7684\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u5B66\u751F\u5173\u5361\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\uFF1B"),en.createElement("br",null),en.createElement("span",null," \u5B66\u751F\u8FDB\u5165\u5173\u5361\u7684\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u82E5\u5B66\u751F\u5173\u95ED/\u9000\u51FA\u7B54\u9898\u9875\u9762\uFF0C\u5219\u8BA1\u65F6\u6682\u505C\uFF0C\u518D\u6B21\u8FDB\u5165\u7B54\u9898\u9875\u9762\u65F6\u5F00\u59CB\u7D2F\u8BA1\u8BA1\u65F6\u76F4\u81F3\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\uFF1B"),en.createElement("span",{style:{color:"#FA6400",display:"flex",height:34,alignItems:"center"}}," \u53EF\u80FD\u4F1A\u9020\u6210\u65F6\u957F\u8BC4\u4F30\u4E0E\u5B9E\u9645\u505A\u9898\u80FD\u529B\u4E0D\u7B26\u7684\u60C5\u51B5 "),en.createElement("span",null,"a\u3001\u5B66\u751F\u8FDB\u5165\u5173\u5361\u770B\u5B8C\u9898\u540E\uFF0C\u9000\u51FA\u7B54\u9898\u9875\u9762\u5B8C\u6210\u4EE3\u7801\u8BBE\u8BA1\uFF0C\u518D\u590D\u5236\u8FDB\u5E73\u53F0\u7B54\u9898\u9875\u9762\u8FDB\u884C\u8BC4\u6D4B\uFF0C\u65E0\u6CD5\u8BC4\u4F30\u5B66\u751F\u7684\u5B66\u4E60\u548C\u601D\u8003\u65F6\u95F4\u3002")),en.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},en.createElement("span",{style:{fontWeight:500}},"2\u3001\u5173\u5361\u603B\u8017\u65F6"),en.createElement("br",null),en.createElement("span",{style:{}},"\u5B66\u751F\u7B2C\u4E00\u6B21\u8FDB\u5165\u5173\u5361\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u8BE5\u5173\u5361\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\u3002 "),en.createElement("br",null),en.createElement("span",null," \u53E6\uFF0C\u5373\u4F7F\u5173\u5361\u95EF\u5173\u8FC7\u7A0B\u4E2D\uFF0C\u5B66\u751F\u9000\u51FA/\u5173\u95ED\u7B54\u9898\u9875\u9762\uFF0C\u4E5F\u5C06\u6301\u7EED\u8BA1\u65F6\uFF0C\u76F4\u81F3\u8BE5\u5173\u5361\u901A\u8FC7\u3002"),en.createElement("span",{style:{color:"#FA6400",display:"flex",height:44,paddingTop:10}}," \u53EF\u80FD\u4F1A\u9020\u6210\u65F6\u957F\u8BC4\u4F30\u4E0E\u5B9E\u9645\u505A\u9898\u80FD\u529B\u4E0D\u7B26\u7684\u60C5\u51B5 "),en.createElement("span",null,"a\u3001\u5B66\u751F\u4ECE\u5176\u4ED6\u540C\u5B66\u5904\u770B\u5230\u9898\u76EE\u540E\uFF0C\u5B8C\u6210\u4EE3\u7801\u8BBE\u8BA1\uFF0C\u518D\u8FDB\u5165\u5173\u5361\u7B54\u9898\u9875\u9762\uFF0C\u5C06\u5DF2\u5B8C\u6210\u7684\u4EE3\u7801\u590D\u5236\u81F3\u5E73\u53F0\u8FDB\u884C\u8BC4\u6D4B\uFF1B"),en.createElement("br",null),en.createElement("span",null,"b\u3001\u5B66\u751F\u7B2C\u4E00\u6B21\u6253\u5F00\u5173\u5361\u540E\uFF0C\u56E0\u4E3A\u67D0\u79CD\u539F\u56E0\u79BB\u5F00\u9875\u9762\uFF0C\u65F6\u9694\u591A\u65E5\u624D\u518D\u6B21\u8FDB\u5165\u5E73\u53F0\u95EF\u5173\uFF0C\u5C31\u4F1A\u5BFC\u81F4\u5B66\u751F\u5173\u5361\u603B\u8017\u65F6\u8FC7\u957F\uFF1B")),en.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},en.createElement("span",{style:{fontWeight:500}},"3\u3001\u4F5C\u4E1A\u901A\u5173\u65F6\u957F"),en.createElement("br",null),en.createElement("span",{style:{}},"\u4ECE\u8001\u5E08\u53D1\u5E03\u7684\u5B9E\u8BAD\u4F5C\u4E1A\u5F00\u59CB\u65F6\u95F4\uFF0C\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u5B66\u751F\u5B9E\u8BAD\u901A\u5173\uFF08\u5305\u62EC\u8FDF\u4EA4\u901A\u5173\uFF09\uFF0C\u7ED3\u675F\u8BA1\u65F6\u3002\u5982\u679C\u5B66\u751F\u672A\u901A\u5173\uFF0C\u5219\u8BE5\u751F\u7684\u95EF\u5173\u8017\u65F6\u4E3A\u8001\u5E08\u8BBE\u7F6E\u7684\u5B9E\u8BAD\u5F00\u59CB\u65F6\u95F4\u81F3\u5B9E\u8BAD\u622A\u6B62\u65F6\u95F4\uFF0C\u5982\u679C\u8001\u5E08\u5F00\u542F\u4E86\u8865\u4EA4\uFF0C\u5219\u8BE5\u751F\u7684\u95EF\u5173\u8017\u65F6\u4E3A\u5B9E\u8BAD\u5F00\u59CB\u65F6\u95F4\u81F3\u5B9E\u8BAD\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u3002")),en.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},en.createElement("span",{style:{fontWeight:500}},"\u89C4\u5219\u76EE\u7684"),en.createElement("br",null),en.createElement("span",{style:{}},"\u9F13\u52B1\u5B66\u751F\u5728\u5B9E\u8BAD\u4F5C\u4E1A\u53D1\u5E03\u7684\u7B2C\u4E00\u65F6\u95F4\uFF0C\u7ACB\u5373\u767B\u5F55\u5E73\u53F0\u5B8C\u6210\u5B9E\u8BAD\u4F5C\u4E1A\u7684\u901A\u5173\u3002"))),en.createElement(kt.default,{open:Fa,title:"\u5B9E\u8BAD\u603B\u8017\u65F6\u8BF4\u660E",centered:!0,footer:null,onCancel:()=>{lo(!1)},width:600},en.createElement("div",{style:{fontWeight:400,color:"#333333"}},en.createElement("div",null,"1\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",en.createElement("span",{style:{color:"#145DFF"}},"\u9875\u9762\u505C\u7559\u65F6\u957F"),"\u201D\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u6240\u6709\u5173\u5361\u8017\u65F6\u76F8\u52A0\u4E4B\u548C\uFF1B"),en.createElement("div",{style:{margin:"20px 0px"}},"2\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",en.createElement("span",{style:{color:"#145DFF"}},"\u5173\u5361\u603B\u8017\u65F6"),"\u201D\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u6240\u6709\u5173\u5361\u8017\u65F6\u76F8\u52A0\u4E4B\u548C\uFF1B"),en.createElement("div",null,"3\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",en.createElement("span",{style:{color:"#145DFF"}},"\u4F5C\u4E1A\u901A\u5173\u65F6\u957F"),"\u201D\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u5B9E\u8BAD\u53D1\u5E03\u65F6\u95F4\u81F3\u5B9E\u8BAD\u901A\u5173\u65F6\u95F4\uFF0C\u5F53\u5B66\u751F\u672A\u901A\u5173\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u5B9E\u8BAD\u53D1\u5E03\u65F6\u95F4\u81F3\u5B9E\u8BAD\u622A\u6B62\u65F6\u95F4\u3002"))),en.createElement(kt.default,{open:vo,title:"\u6210\u7EE9\u8C03\u5206\u8BB0\u5F55",centered:!0,footer:null,onCancel:()=>{qa("all"),Ki(!1)},destroyOnClose:!0,width:900},en.createElement("div",{style:{fontWeight:400,color:"#333333"}},en.createElement("div",null,en.createElement("span",null,"\u5173\u5361\uFF1A"),en.createElement(ut.default,{style:{width:300},value:ta,placeholder:"\u8BF7\u9009\u62E9\u5173\u5361",defaultValue:"all",onChange:Ao=>ii(void 0,null,function*(){qa(Ao),Vl({page:1,page_size:10},Ao)})},en.createElement(ut.default.Option,{value:"all"}," \u5168\u90E8 "),(cs=si==null?void 0:si.stage_list)==null?void 0:cs.map((Ao,Ns)=>en.createElement(ut.default.Option,{key:Ns,value:Ao==null?void 0:Ao.challenge_id},"\u7B2C",(0,Ae.EM)(Ns+1),"\u5173")))),en.createElement("div",{className:"mt20"},en.createElement(rt.default,{dataSource:rs,rowKey:Ao=>Ao==null?void 0:Ao.id,pagination:!1,columns:ys,loading:qs})),en.createElement("div",{className:ee.footer},en.createElement("div",null,en.createElement("span",{style:{color:"#656F87"}},"\u5171",en.createElement("span",{className:"c-light-primary"},ke),"\u6761\u6570\u636E")),en.createElement(dt.Z,{defaultCurrent:1,defaultPageSize:10,current:(no==null?void 0:no.page)||1,showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,total:ke,onChange:bc})))))};var fr=(0,Lt.connect)(({shixunHomeworks:mi,classroomList:wi,loading:yi,globalSetting:nr,user:sr})=>({shixunHomeworks:mi,classroomList:wi,globalSetting:nr,loading:yi.effects,user:sr}))(xi)},68971:function(ui,Cn,Bt){"use strict";var bt=Bt(43418),ge=Bt(8591),se=Bt(99064),Me=Bt(89070),ie=Bt(24065),ae=Bt(59301),Lt=(Jt,St,Wt)=>new Promise((Gt,qt)=>{var wt=lt=>{try{tt(Wt.next(lt))}catch(rt){qt(rt)}},et=lt=>{try{tt(Wt.throw(lt))}catch(rt){qt(rt)}},tt=lt=>lt.done?Gt(lt.value):Promise.resolve(lt.value).then(wt,et);tt((Wt=Wt.apply(Jt,St)).next())});const kt=({shixunHomeworks:Jt,classroomList:St,dispatch:Wt})=>{const Gt=(0,Me.useParams)();return ae.createElement(bt.default,{centered:!0,title:"\u63D0\u793A",open:Jt.actionTabs.key==="\u6253\u56DE\u91CD\u505A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Lt(void 0,null,function*(){var qt,wt,et,tt;if((0,ie.Rm)()&&!((qt=St.AssistantObject.practice)!=null&&qt.can_redo)){ge.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const lt=yield(0,se.ZP)(`/api/myshixuns/${Jt.actionTabs.selectArrs.myshixun_identifier}/reset_my_game.json`,{method:"GET",params:{course_id:Gt.coursesId,homework_common_id:Jt.actionTabs.homework_common_id}});if(lt.shixun_identifier){ge.ZP.success("\u64CD\u4F5C\u6210\u529F"),Wt({type:"shixunHomeworks/setActionTabs",payload:{}});const rt=(et=(wt=lt==null?void 0:lt.new_works)==null?void 0:wt.find(ut=>`${ut.homework_common_id}`===Gt.categoryId))==null?void 0:et.id;if((0,ie.Rm)()&&!((tt=St.AssistantObject.practice)!=null&&tt.can_view))return;Me.history.replace(`/classrooms/${Gt.coursesId}/shixun_homework/${Gt.categoryId}/${rt}/comment`)}}),onCancel:()=>{Wt({type:"shixunHomeworks/setActionTabs",payload:{}})}},ae.createElement("p",null,"\u8BE5\u4F5C\u4E1A\u5C06\u88AB\u6253\u56DE\u91CD\u505A\uFF0C\u5B66\u751F\u5B9E\u8BAD\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A!"),ae.createElement("p",null,"\u786E\u5B9A\u6253\u56DE?"))};Cn.Z=(0,Me.connect)(({shixunHomeworks:Jt,classroomList:St})=>({shixunHomeworks:Jt,classroomList:St}))(kt)},78297:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{AD:function(){return qe},D9:function(){return oe},Hp:function(){return Tt},IM:function(){return En},Iy:function(){return re},KM:function(){return Oi},MJ:function(){return _t},Ne:function(){return Pe},ON:function(){return Ai},Uj:function(){return an},VY:function(){return kn},YO:function(){return Si},YX:function(){return Wn},Zn:function(){return et},_g:function(){return dt},_k:function(){return Qe},c6:function(){return We},cr:function(){return tt},eV:function(){return Yt},fi:function(){return lt},gh:function(){return Fe},hS:function(){return Nn},iA:function(){return rt},j6:function(){return pt},je:function(){return Ze},jj:function(){return Ft},kS:function(){return Vn},o6:function(){return ee},pO:function(){return Li},rQ:function(){return Ge},sA:function(){return Ae},xm:function(){return we},xo:function(){return Xe},y8:function(){return Oe},yd:function(){return ut}});var bt=Bt(92365),ge=Bt(89070),se=Bt(955),Me=Bt(8591),ie=Bt(3294),ae=Object.defineProperty,Lt=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,Jt=Object.prototype.propertyIsEnumerable,St=(ue,Pn,de)=>Pn in ue?ae(ue,Pn,{enumerable:!0,configurable:!0,writable:!0,value:de}):ue[Pn]=de,Wt=(ue,Pn)=>{for(var de in Pn||(Pn={}))kt.call(Pn,de)&&St(ue,de,Pn[de]);if(Lt)for(var de of Lt(Pn))Jt.call(Pn,de)&&St(ue,de,Pn[de]);return ue},Gt=(ue,Pn,de)=>new Promise((Dt,Mt)=>{var zt=fe=>{try{De(de.next(fe))}catch(Ce){Mt(Ce)}},be=fe=>{try{De(de.throw(fe))}catch(Ce){Mt(Ce)}},De=fe=>fe.done?Dt(fe.value):Promise.resolve(fe.value).then(zt,be);De((de=de.apply(ue,Pn)).next())});const qt=()=>{(0,ge.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},wt=()=>{(0,ge.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},et=ue=>Gt(void 0,null,function*(){qt(),(yield(0,bt.YR)(Wt({},ue))).status===0&&(yield(0,se.QH)("",(0,se.NY)({url:ie.Z.API_SERVER+`/api/courses/${ue.coursesId}/export_couser_info.json`,query:ue}))),wt()}),tt=ue=>Gt(void 0,null,function*(){const Pn=yield(0,bt.yS)(Wt({},ue));if(Pn.status===0)Me.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ge.history.push(`/classrooms/${ue.coursesId}/exportlist/course_member_act_score`);else{if(Pn.status===-2)return Pn;Pn.status===-3&&((0,ge.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ge.history.push(`/classrooms/${ue.coursesId}/exportlist/course_member_act_score`))}}),lt=ue=>Gt(void 0,null,function*(){const Pn=yield(0,bt.W0)(Wt({},ue));if(Pn.status===0)Me.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ge.history.push(`/classrooms/${ue.coursesId}/exportlist/course_total_score`);else{if(Pn.status===-4)return Pn;Pn.status===-3&&((0,ge.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ge.history.push(`/classrooms/${ue.coursesId}/exportlist/course_total_score`))}}),rt=ue=>Gt(void 0,null,function*(){const Pn=yield(0,bt.Nl)(Wt({},ue));if(Pn.status===0)Me.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ge.history.push(`/classrooms/${ue.coursesId}/exportlist/course_total_exercise_and_other`);else{if(Pn.status===-4)return Pn;Pn.status===-3&&((0,ge.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ge.history.push(`/classrooms/${ue.coursesId}/exportlist/course_total_exercise_and_other`))}}),ut=ue=>Gt(void 0,null,function*(){const Pn=yield(0,bt.IU)(Wt({},ue));if(Pn.status===0)Me.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ge.history.push(`/classrooms/${ue.coursesId}/exportlist/export_star_user`);else{if(Pn.status===-4)return Pn;Pn.status===-3&&((0,ge.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ge.history.push(`/classrooms/${ue.coursesId}/exportlist/export_star_user`))}}),dt=ue=>Gt(void 0,null,function*(){const Pn=yield(0,bt.td)(Wt({},ue));if(Pn.status===0)Me.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ge.history.push(`/classrooms/${ue.coursesId}/exportlist/course_total_exercise_and_other`);else{if(Pn.status===-2)return Pn;if(Pn.status===-3)(0,ge.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ge.history.push(`/classrooms/${ue.coursesId}/exportlist/course_total_exercise_and_other`);else if(Pn.status===-4)return Pn}}),pt=ue=>Gt(void 0,null,function*(){const Pn=yield(0,bt.QX)(Wt({},ue));if(Pn.status===0)Me.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ge.history.push(`/classrooms/${ue.coursesId}/exportlist/course_total_homework`);else{if(Pn.status===-4)return Pn;Pn.status===-3&&((0,ge.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ge.history.push(`/classrooms/${ue.coursesId}/exportlist/course_total_homework`))}}),Ft=(ue,Pn)=>Gt(void 0,null,function*(){const de=yield(0,bt.o_)(Wt({},ue));de.status===0?(Me.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),ge.history.push(`/classrooms/${ue.coursesId}/exportlist/${Pn}`)):de.status===-3&&((0,ge.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ge.history.push(`/classrooms/${ue.coursesId}/exportlist/${Pn}`))}),Tt=(ue,Pn)=>Gt(void 0,null,function*(){const de=yield(0,bt.ZL)(Wt({},ue));de.status===0?(Me.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),ge.history.push(`/classrooms/${ue.coursesId}/exportlist/${Pn}`)):de.status===-3&&((0,ge.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ge.history.push(`/classrooms/${ue.coursesId}/exportlist/${Pn}`))}),_t=(ue,Pn)=>Gt(void 0,null,function*(){const de=yield(0,bt.vV)(Wt({},ue));de.status===0?(Me.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),ge.history.push(`/classrooms/${ue.coursesId}/exportlist/${Pn}`)):de.status===-3&&((0,ge.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ge.history.push(`/classrooms/${ue.coursesId}/exportlist/${Pn}`))}),re=(ue,Pn)=>Gt(void 0,null,function*(){const de=yield(0,bt.aP)(Wt({},ue));de.status===0?(Me.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ge.history.push(`/classrooms/${ue.coursesId}/exportlist/${Pn}`)):de.status===-3&&((0,ge.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ge.history.push(`/classrooms/${ue.coursesId}/exportlist/${Pn}`))}),he=ue=>Gt(void 0,null,function*(){qt(),(yield exportCourseWorkListAppendix(Wt({},ue))).status===0&&(yield downLoadFileIframe("",setUrlQuery({url:ENV.API_SERVER+`/api/homework_commons/${ue.categoryId}/works_list.zip`,query:ue}))),wt()}),Ae=ue=>Gt(void 0,null,function*(){qt(),yield(0,se.QH)("",ie.Z.API_SERVER+`/api/polls/${ue.categoryId}/commit_result.xlsx`),wt()}),Fe=ue=>Gt(void 0,null,function*(){yield(0,se.FH)("",(0,se.NY)({url:ie.Z.API_SERVER+`/api/courses/${ue.coursesId}/attendances/export_xlsx_data.xlsx`,query:ue}))}),ee=ue=>Gt(void 0,null,function*(){yield(0,se.FH)("",(0,se.NY)({url:ie.Z.API_SERVER+`/api/courses/${ue.coursesId}/video_study_statics.xlsx`,query:ue}))}),We=ue=>Gt(void 0,null,function*(){yield(0,se.FH)("",(0,se.NY)({url:ie.Z.API_SERVER+`/api/courses/${ue.coursesId}/export_video_study.xlsx`,query:ue}))}),Yt=ue=>Gt(void 0,null,function*(){yield(0,se.FH)("",(0,se.NY)({url:ie.Z.API_SERVER+`/api/courses/${ue.coursesId}/export_course_students_info.xlsx`,query:ue}))}),qe=ue=>Gt(void 0,null,function*(){yield(0,se.FH)("",(0,se.NY)({url:ie.Z.API_SERVER+"/api/school_manages/students.xlsx",query:ue}))}),Ge=ue=>Gt(void 0,null,function*(){yield(0,se.FH)("",(0,se.NY)({url:ie.Z.API_SERVER+"/api/item_banks/export.xlsx",query:ue}))}),Oe=ue=>Gt(void 0,null,function*(){yield(0,se.FH)("",(0,se.NY)({url:ie.Z.API_SERVER+"/api/competitions/region_reports.xlsx",query:ue}))}),Ze=ue=>Gt(void 0,null,function*(){const Pn=yield(0,bt.Uy)(Wt({},ue));Pn.status===0?(Me.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ge.history.push(`/classrooms/${ue.coursesId}/exportlist/exercise_score,export_exercise_users`)):Pn.status===-3&&((0,ge.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ge.history.push(`/classrooms/${ue.coursesId}/exportlist/exercise_score,export_exercise_users`))}),Qe=ue=>Gt(void 0,null,function*(){console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),yield(0,se.FH)("",(0,se.NY)({url:ie.Z.API_SERVER+`/api/export_records/${ue.id}.xlsx`,query:ue}))}),we=ue=>Gt(void 0,null,function*(){yield(0,se.FH)("",(0,se.NY)({url:ie.Z.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:ue}))}),oe=ue=>Gt(void 0,null,function*(){yield(0,se.FH)("",(0,se.NY)({url:ie.Z.API_SERVER+`/api/courses/${ue==null?void 0:ue.coursesId}/${ue.menuKey}_statistic.xlsx?${ue.checkedList.map(Pn=>`course_group_id[]=${Pn}`).join("&")}`,query:ue}))}),Pe=ue=>Gt(void 0,null,function*(){yield(0,se.FH)("",(0,se.NY)({url:ie.Z.API_SERVER+`/api/ec_years/${ue==null?void 0:ue.ec_year_id}/ec_training_objectives.xlsx`,query:ue}))}),En=ue=>Gt(void 0,null,function*(){yield(0,se.FH)(ue==null?void 0:ue.name,(0,se.NY)({url:ie.Z.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:ue}))}),Nn=ue=>Gt(void 0,null,function*(){yield(0,se.FH)("",(0,se.NY)({url:ie.Z.API_SERVER+`/api/ec_years/${ue==null?void 0:ue.ec_year_id}/ec_courses.xlsx`,query:ue}))}),Xe=ue=>Gt(void 0,null,function*(){yield(0,se.FH)("",(0,se.NY)({url:ie.Z.API_SERVER+`/api/ec_years/${ue==null?void 0:ue.ec_year_id}/ec_graduation_requirements.xlsx`,query:ue}))}),kn=ue=>Gt(void 0,null,function*(){yield(0,se.FH)("",(0,se.NY)({url:ie.Z.API_SERVER+"/api/courses/rank_list.xlsx",query:ue}))}),Vn=ue=>Gt(void 0,null,function*(){yield(0,se.FH)("",(0,se.NY)({url:ie.Z.API_SERVER+"/api/courses/question_rank_list.xlsx",query:ue}))}),Ai=ue=>Gt(void 0,null,function*(){yield(0,se.FH)("",(0,se.NY)({url:ie.Z.API_SERVER+`/api/examination_banks/${ue.id}.json`,query:ue}))}),Wn=ue=>Gt(void 0,null,function*(){yield(0,se.FH)("",(0,se.NY)({url:ie.Z.API_SERVER+`/api/exercises/${ue.categoryId}.json`,query:ue}))}),Si=ue=>Gt(void 0,null,function*(){yield(0,se.FH)("",(0,se.NY)({url:ie.Z.API_SERVER+`/api/polls/${ue==null?void 0:ue.id}/commit_result.json`,query:ue}))}),an=ue=>Gt(void 0,null,function*(){yield(0,se.FH)("",(0,se.NY)({url:ie.Z.API_SERVER+"/api/paths/get_task_pass.json",query:ue}))}),Li=(ue,Pn)=>Gt(void 0,null,function*(){yield(0,se.FH)(Pn||"",(0,se.NY)({url:ie.Z.API_SERVER+`/api/exercises/${ue==null?void 0:ue.exercise_id}/consult_exercise.json`,query:ue}))}),Oi=ue=>Gt(void 0,null,function*(){yield(0,se.FH)("",(0,se.NY)({url:ie.Z.API_SERVER+`/api/competitions/${ue==null?void 0:ue.identifier}/competition_commit_records/member_works.xlsx`,query:ue}))})},83312:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{U:function(){return Jt}});var bt=Bt(59301),ge=Object.defineProperty,se=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,ae=(St,Wt,Gt)=>Wt in St?ge(St,Wt,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):St[Wt]=Gt,Lt=(St,Wt)=>{for(var Gt in Wt||(Wt={}))Me.call(Wt,Gt)&&ae(St,Gt,Wt[Gt]);if(se)for(var Gt of se(Wt))ie.call(Wt,Gt)&&ae(St,Gt,Wt[Gt]);return St},kt=(St,Wt,Gt)=>new Promise((qt,wt)=>{var et=rt=>{try{lt(Gt.next(rt))}catch(ut){wt(ut)}},tt=rt=>{try{lt(Gt.throw(rt))}catch(ut){wt(ut)}},lt=rt=>rt.done?qt(rt.value):Promise.resolve(rt.value).then(et,tt);lt((Gt=Gt.apply(St,Wt)).next())});function Jt(St,Wt){const[Gt,qt]=(0,bt.useState)(Wt),[wt,et]=(0,bt.useState)(!1),[tt,lt]=(0,bt.useState)();return[Gt,wt,(ut,dt=!1)=>kt(this,null,function*(){const pt=dt?Wt:Lt(Lt({},Gt),ut);et(!0),qt(pt);const Ft=yield St(pt);return et(!1),lt(Ft),Ft}),tt,lt]}},24768:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{AL:function(){return pt},Iy:function(){return Wt},Qv:function(){return wt},ez:function(){return dt},jb:function(){return Gt}});var bt=Bt(32834),ge=Bt.n(bt),se=Bt(11690),Me=Bt.n(se);let ie=1;function ae(he,Ae){const Fe=he.match(/^(\s+)(?:```)/);if(Fe===null)return Ae;const ee=Fe[1];return Ae.split(`
|
|
|
`).map(We=>{const Yt=We.match(/^\s+/);if(Yt===null)return We;const[qe]=Yt;return qe.length>=ee.length?We.slice(ee.length):We}).join(`
|
|
|
`)}let Lt=[],kt=["<ul>"];const Jt=new(ge()).Renderer,St=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Wt(){Lt.length=0,kt=["<ul>"]}const Gt={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function qt(he,Ae,Fe,ee){if(Ae>=he.length||he[Ae].level<=Fe)return Ae;var We=he[Ae];ee.push("<li><a href='#"+ie+We.anchor+"'>"+We.text+"</a>"),Ae++;var Yt=[];return Ae=qt(he,Ae,We.level,Yt),Yt.length>0&&(ee.push("<ul>"),Yt.forEach(function(qe){ee.push(qe)}),ee.push("</ul>")),ee.push("</li>"),Ae=qt(he,Ae,Fe,ee),Ae}function wt(){return qt(Lt,0,0,kt),kt.push("</ul>"),kt.join("")}const et={heading(he){const Ae=St.exec(he);if(ie+=1,Ae)return{type:"heading",raw:Ae[0],depth:Ae[1].length,text:Ae[2]}},fences(he){const Ae=this.rules.block.fences.exec(he);if(Ae){const Fe=Ae[0];let ee=ae(Fe,Ae[3]||"");const We=Ae[2]?Ae[2].trim():Ae[2];if(["latex","katex","math"].indexOf(We)>=0){const Yt=rt(),qe=ee;ee=Yt,ut[Yt]={type:"block",expression:qe}}return{type:"code",raw:Fe,lang:We,text:ee}}}},tt=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let lt=0;const rt=()=>`__special_katext_id_${lt++}__`;let ut={};function dt(){return ut}function pt(){lt=0,ut={}}function Ft(he){return he=he.replace(tt,(Ae,Fe)=>{const ee=rt();return ut[ee]={type:"inline",expression:Fe},ee}),he}const Tt=Jt.listitem;Jt.listitem=function(he){return Tt(Ft(he))};const _t=Jt.paragraph;Jt.paragraph=function(he){return _t(Ft(he))};const re=Jt.tablecell;Jt.tablecell=function(he,Ae){return re(Ft(he),Ae)},Jt.code=function(he,Ae,Fe){const ee=(Ae||"").match(/\S*/)[0];return ee?["latex","katex","math"].indexOf(ee)>=0?`<p class='editormd-tex'>${he}</p>`:`<pre class="prettyprint linenums"><code class="language-${Ae}">${Fe?he:(0,se.escape)(he,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(Fe?he:(0,se.escape)(he,!0))+"</code></pre>"},Jt.heading=function(he,Ae,Fe){let ee=this.options.headerPrefix+Fe.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Lt.push({anchor:ee,level:Ae,text:he}),"<h"+Ae+' id="'+ie+ee+'">'+he+"</h"+Ae+">"},ge().setOptions({silent:!0,gfm:!0,pedantic:!1}),ge().use({tokenizer:et,renderer:Jt}),Cn.ZP=ge()},50371:function(ui,Cn){"use strict";function Bt(){const bt=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let ge=1;ge<arguments.length;ge++){const se=ge<0||arguments.length<=ge?void 0:arguments[ge];se&&Object.keys(se).forEach(Me=>{const ie=se[Me];ie!==void 0&&(bt[Me]=ie)})}return bt}Cn.Z=Bt},13845:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{F:function(){return bt},Z:function(){return ge}});function bt(se){return se!=null&&se===se.window}function ge(se,Me){var ie,ae;if(typeof window=="undefined")return 0;const Lt=Me?"scrollTop":"scrollLeft";let kt=0;return bt(se)?kt=se[Me?"pageYOffset":"pageXOffset"]:se instanceof Document?kt=se.documentElement[Lt]:(se instanceof HTMLElement||se)&&(kt=se[Lt]),se&&!bt(se)&&typeof kt!="number"&&(kt=(ae=((ie=se.ownerDocument)!==null&&ie!==void 0?ie:se).documentElement)===null||ae===void 0?void 0:ae[Lt]),kt}},56762:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return ge}});var bt=Bt(59301);function ge(){const[,se]=bt.useReducer(Me=>Me+1,0);return se}},68031:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return Me}});var bt=Bt(16089);function ge(ie,ae,Lt,kt){const Jt=Lt-ae;return ie/=kt/2,ie<1?Jt/2*ie*ie*ie+ae:Jt/2*((ie-=2)*ie*ie+2)+ae}var se=Bt(13845);function Me(ie){let ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:Lt=()=>window,callback:kt,duration:Jt=450}=ae,St=Lt(),Wt=(0,se.Z)(St,!0),Gt=Date.now(),qt=()=>{const et=Date.now()-Gt,tt=ge(et>Jt?Jt:et,Wt,ie,Jt);(0,se.F)(St)?St.scrollTo(window.pageXOffset,tt):St instanceof Document||St.constructor.name==="HTMLDocument"?St.documentElement.scrollTop=tt:St.scrollTop=tt,et<Jt?(0,bt.Z)(qt):typeof kt=="function"&&kt()};(0,bt.Z)(qt)}},66104:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return qe}});var bt=Bt(92310),ge=Bt.n(bt),se=Bt(11592),Me=Bt(26112),ie=Bt(59301),ae=Bt(92343),Lt=Bt(36355),kt=Bt(84105),Jt=Bt(91857);const St=Ge=>{let{children:Oe}=Ge;const{getPrefixCls:Ze}=ie.useContext(Lt.E_),Qe=Ze("breadcrumb");return ie.createElement("li",{className:`${Qe}-separator`,"aria-hidden":"true"},Oe===""?Oe:Oe||"/")};St.__ANT_BREADCRUMB_SEPARATOR=!0;var Wt=St,Gt=function(Ge,Oe){var Ze={};for(var Qe in Ge)Object.prototype.hasOwnProperty.call(Ge,Qe)&&Oe.indexOf(Qe)<0&&(Ze[Qe]=Ge[Qe]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,Qe=Object.getOwnPropertySymbols(Ge);we<Qe.length;we++)Oe.indexOf(Qe[we])<0&&Object.prototype.propertyIsEnumerable.call(Ge,Qe[we])&&(Ze[Qe[we]]=Ge[Qe[we]]);return Ze};function qt(Ge,Oe){if(Ge.title===void 0||Ge.title===null)return null;const Ze=Object.keys(Oe).join("|");return typeof Ge.title=="object"?Ge.title:String(Ge.title).replace(new RegExp(`:(${Ze})`,"g"),(Qe,we)=>Oe[we]||Qe)}function wt(Ge,Oe,Ze,Qe){if(Ze==null)return null;const{className:we,onClick:oe}=Oe,Pe=Gt(Oe,["className","onClick"]),En=Object.assign(Object.assign({},(0,Me.Z)(Pe,{data:!0,aria:!0})),{onClick:oe});return Qe!==void 0?ie.createElement("a",Object.assign({},En,{className:ge()(`${Ge}-link`,we),href:Qe}),Ze):ie.createElement("span",Object.assign({},En,{className:ge()(`${Ge}-link`,we)}),Ze)}function et(Ge,Oe){return(Qe,we,oe,Pe,En)=>{if(Oe)return Oe(Qe,we,oe,Pe);const Nn=qt(Qe,we);return wt(Ge,Qe,Nn,En)}}var tt=function(Ge,Oe){var Ze={};for(var Qe in Ge)Object.prototype.hasOwnProperty.call(Ge,Qe)&&Oe.indexOf(Qe)<0&&(Ze[Qe]=Ge[Qe]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,Qe=Object.getOwnPropertySymbols(Ge);we<Qe.length;we++)Oe.indexOf(Qe[we])<0&&Object.prototype.propertyIsEnumerable.call(Ge,Qe[we])&&(Ze[Qe[we]]=Ge[Qe[we]]);return Ze};const lt=Ge=>{const{prefixCls:Oe,separator:Ze="/",children:Qe,menu:we,overlay:oe,dropdownProps:Pe,href:En}=Ge,Xe=(kn=>{if(we||oe){const Vn=Object.assign({},Pe);if(we){const Ai=we||{},{items:Wn}=Ai,Si=tt(Ai,["items"]);Vn.menu=Object.assign(Object.assign({},Si),{items:Wn==null?void 0:Wn.map((an,Li)=>{var{key:Oi,title:ue,label:Pn,path:de}=an,Dt=tt(an,["key","title","label","path"]);let Mt=Pn!=null?Pn:ue;return de&&(Mt=ie.createElement("a",{href:`${En}${de}`},Mt)),Object.assign(Object.assign({},Dt),{key:Oi!=null?Oi:Li,label:Mt})})})}else oe&&(Vn.overlay=oe);return ie.createElement(Jt.Z,Object.assign({placement:"bottom"},Vn),ie.createElement("span",{className:`${Oe}-overlay-link`},kn,ie.createElement(kt.Z,null)))}return kn})(Qe);return Xe!=null?ie.createElement(ie.Fragment,null,ie.createElement("li",null,Xe),Ze&&ie.createElement(Wt,null,Ze)):null},rt=Ge=>{const{prefixCls:Oe,children:Ze,href:Qe}=Ge,we=tt(Ge,["prefixCls","children","href"]),{getPrefixCls:oe}=ie.useContext(Lt.E_),Pe=oe("breadcrumb",Oe);return ie.createElement(lt,Object.assign({},we,{prefixCls:Pe}),wt(Pe,we,Ze,Qe))};rt.__ANT_BREADCRUMB_ITEM=!0;var ut=rt,dt=Bt(17313),pt=Bt(83116),Ft=Bt(37613);const Tt=Ge=>{const{componentCls:Oe,iconCls:Ze}=Ge;return{[Oe]:Object.assign(Object.assign({},(0,dt.Wf)(Ge)),{color:Ge.itemColor,fontSize:Ge.fontSize,[Ze]:{fontSize:Ge.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Ge.linkColor,transition:`color ${Ge.motionDurationMid}`,padding:`0 ${Ge.paddingXXS}px`,borderRadius:Ge.borderRadiusSM,height:Ge.lineHeight*Ge.fontSize,display:"inline-block",marginInline:-Ge.marginXXS,"&:hover":{color:Ge.linkHoverColor,backgroundColor:Ge.colorBgTextHover}},(0,dt.Qy)(Ge)),"li:last-child":{color:Ge.lastItemColor},[`${Oe}-separator`]:{marginInline:Ge.separatorMargin,color:Ge.separatorColor},[`${Oe}-link`]:{[`
|
|
|
> ${Ze} + span,
|
|
|
> ${Ze} + a
|
|
|
`]:{marginInlineStart:Ge.marginXXS}},[`${Oe}-overlay-link`]:{borderRadius:Ge.borderRadiusSM,height:Ge.lineHeight*Ge.fontSize,display:"inline-block",padding:`0 ${Ge.paddingXXS}px`,marginInline:-Ge.marginXXS,[`> ${Ze}`]:{marginInlineStart:Ge.marginXXS,fontSize:Ge.fontSizeIcon},"&:hover":{color:Ge.linkHoverColor,backgroundColor:Ge.colorBgTextHover,a:{color:Ge.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Ge.componentCls}-rtl`]:{direction:"rtl"}})}};var _t=(0,pt.Z)("Breadcrumb",Ge=>{const Oe=(0,Ft.TS)(Ge,{});return[Tt(Oe)]},Ge=>({itemColor:Ge.colorTextDescription,lastItemColor:Ge.colorText,iconFontSize:Ge.fontSize,linkColor:Ge.colorTextDescription,linkHoverColor:Ge.colorText,separatorColor:Ge.colorTextDescription,separatorMargin:Ge.marginXS})),re=function(Ge,Oe){var Ze={};for(var Qe in Ge)Object.prototype.hasOwnProperty.call(Ge,Qe)&&Oe.indexOf(Qe)<0&&(Ze[Qe]=Ge[Qe]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,Qe=Object.getOwnPropertySymbols(Ge);we<Qe.length;we++)Oe.indexOf(Qe[we])<0&&Object.prototype.propertyIsEnumerable.call(Ge,Qe[we])&&(Ze[Qe[we]]=Ge[Qe[we]]);return Ze};function he(Ge){const{breadcrumbName:Oe,children:Ze}=Ge,Qe=re(Ge,["breadcrumbName","children"]),we=Object.assign({title:Oe},Qe);return Ze&&(we.menu={items:Ze.map(oe=>{var{breadcrumbName:Pe}=oe,En=re(oe,["breadcrumbName"]);return Object.assign(Object.assign({},En),{title:Pe})})}),we}function Ae(Ge,Oe){return(0,ie.useMemo)(()=>Ge||(Oe?Oe.map(he):null),[Ge,Oe])}var Fe=function(Ge,Oe){var Ze={};for(var Qe in Ge)Object.prototype.hasOwnProperty.call(Ge,Qe)&&Oe.indexOf(Qe)<0&&(Ze[Qe]=Ge[Qe]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,Qe=Object.getOwnPropertySymbols(Ge);we<Qe.length;we++)Oe.indexOf(Qe[we])<0&&Object.prototype.propertyIsEnumerable.call(Ge,Qe[we])&&(Ze[Qe[we]]=Ge[Qe[we]]);return Ze};const ee=(Ge,Oe)=>{if(Oe===void 0)return Oe;let Ze=(Oe||"").replace(/^\//,"");return Object.keys(Ge).forEach(Qe=>{Ze=Ze.replace(`:${Qe}`,Ge[Qe])}),Ze},We=Ge=>{const{prefixCls:Oe,separator:Ze="/",style:Qe,className:we,rootClassName:oe,routes:Pe,items:En,children:Nn,itemRender:Xe,params:kn={}}=Ge,Vn=Fe(Ge,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Ai,direction:Wn,breadcrumb:Si}=ie.useContext(Lt.E_);let an;const Li=Ai("breadcrumb",Oe),[Oi,ue]=_t(Li),Pn=Ae(En,Pe),de=et(Li,Xe);if(Pn&&Pn.length>0){const zt=[],be=En||Pe;an=Pn.map((De,fe)=>{const{path:Ce,key:te,type:Ct,menu:yt,overlay:$t,onClick:xe,className:Rt,separator:je,dropdownProps:fn}=De,jn=ee(kn,Ce);jn!==void 0&&zt.push(jn);const bn=te!=null?te:fe;if(Ct==="separator")return ie.createElement(Wt,{key:bn},je);const ci={},Ji=fe===Pn.length-1;yt?ci.menu=yt:$t&&(ci.overlay=$t);let{href:zi}=De;return zt.length&&jn!==void 0&&(zi=`#/${zt.join("/")}`),ie.createElement(lt,Object.assign({key:bn},ci,(0,Me.Z)(De,{data:!0,aria:!0}),{className:Rt,dropdownProps:fn,href:zi,separator:Ji?"":Ze,onClick:xe,prefixCls:Li}),de(De,kn,be,zt,zi))})}else if(Nn){const zt=(0,se.Z)(Nn).length;an=(0,se.Z)(Nn).map((be,De)=>{if(!be)return be;const fe=De===zt-1;return(0,ae.Tm)(be,{separator:fe?"":Ze,key:De})})}const Dt=ge()(Li,Si==null?void 0:Si.className,{[`${Li}-rtl`]:Wn==="rtl"},we,oe,ue),Mt=Object.assign(Object.assign({},Si==null?void 0:Si.style),Qe);return Oi(ie.createElement("nav",Object.assign({className:Dt,style:Mt},Vn),ie.createElement("ol",null,an)))};We.Item=ut,We.Separator=Wt;var Yt=We,qe=Yt},24905:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{default:function(){return _t}});var bt=Bt(92310),ge=Bt.n(bt),se=Bt(5630),Me=Bt(59301),ie=Bt(36355),ae=Bt(1684),Lt=Bt(32441),Jt=Me.createContext(null),St=Bt(98447),Wt=Bt(14088),Gt=Bt(4572),qt=function(re,he){var Ae={};for(var Fe in re)Object.prototype.hasOwnProperty.call(re,Fe)&&he.indexOf(Fe)<0&&(Ae[Fe]=re[Fe]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,Fe=Object.getOwnPropertySymbols(re);ee<Fe.length;ee++)he.indexOf(Fe[ee])<0&&Object.prototype.propertyIsEnumerable.call(re,Fe[ee])&&(Ae[Fe[ee]]=re[Fe[ee]]);return Ae};const wt=(re,he)=>{var Ae;const{prefixCls:Fe,className:ee,rootClassName:We,children:Yt,indeterminate:qe=!1,style:Ge,onMouseEnter:Oe,onMouseLeave:Ze,skipGroup:Qe=!1,disabled:we}=re,oe=qt(re,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Pe,direction:En,checkbox:Nn}=Me.useContext(ie.E_),Xe=Me.useContext(Jt),{isFormItemInput:kn}=Me.useContext(Lt.aM),Vn=Me.useContext(ae.Z),Ai=(Ae=(Xe==null?void 0:Xe.disabled)||we)!==null&&Ae!==void 0?Ae:Vn,Wn=Me.useRef(oe.value);Me.useEffect(()=>{Xe==null||Xe.registerValue(oe.value)},[]),Me.useEffect(()=>{if(!Qe)return oe.value!==Wn.current&&(Xe==null||Xe.cancelValue(Wn.current),Xe==null||Xe.registerValue(oe.value),Wn.current=oe.value),()=>Xe==null?void 0:Xe.cancelValue(oe.value)},[oe.value]);const Si=Pe("checkbox",Fe),[an,Li]=(0,St.ZP)(Si),Oi=Object.assign({},oe);Xe&&!Qe&&(Oi.onChange=function(){oe.onChange&&oe.onChange.apply(oe,arguments),Xe.toggleOption&&Xe.toggleOption({label:Yt,value:oe.value})},Oi.name=Xe.name,Oi.checked=Xe.value.includes(oe.value));const ue=ge()(`${Si}-wrapper`,{[`${Si}-rtl`]:En==="rtl",[`${Si}-wrapper-checked`]:Oi.checked,[`${Si}-wrapper-disabled`]:Ai,[`${Si}-wrapper-in-form-item`]:kn},Nn==null?void 0:Nn.className,ee,We,Li),Pn=ge()({[`${Si}-indeterminate`]:qe},Gt.A,Li),de=qe?"mixed":void 0;return an(Me.createElement(Wt.Z,{component:"Checkbox",disabled:Ai},Me.createElement("label",{className:ue,style:Object.assign(Object.assign({},Nn==null?void 0:Nn.style),Ge),onMouseEnter:Oe,onMouseLeave:Ze},Me.createElement(se.Z,Object.assign({"aria-checked":de},Oi,{prefixCls:Si,className:Pn,disabled:Ai,ref:he})),Yt!==void 0&&Me.createElement("span",null,Yt))))};var tt=Me.forwardRef(wt),lt=Bt(80702),rt=Bt(2738),ut=function(re,he){var Ae={};for(var Fe in re)Object.prototype.hasOwnProperty.call(re,Fe)&&he.indexOf(Fe)<0&&(Ae[Fe]=re[Fe]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,Fe=Object.getOwnPropertySymbols(re);ee<Fe.length;ee++)he.indexOf(Fe[ee])<0&&Object.prototype.propertyIsEnumerable.call(re,Fe[ee])&&(Ae[Fe[ee]]=re[Fe[ee]]);return Ae};const dt=(re,he)=>{const{defaultValue:Ae,children:Fe,options:ee=[],prefixCls:We,className:Yt,rootClassName:qe,style:Ge,onChange:Oe}=re,Ze=ut(re,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Qe,direction:we}=Me.useContext(ie.E_),[oe,Pe]=Me.useState(Ze.value||Ae||[]),[En,Nn]=Me.useState([]);Me.useEffect(()=>{"value"in Ze&&Pe(Ze.value||[])},[Ze.value]);const Xe=Me.useMemo(()=>ee.map(Dt=>typeof Dt=="string"||typeof Dt=="number"?{label:Dt,value:Dt}:Dt),[ee]),kn=Dt=>{Nn(Mt=>Mt.filter(zt=>zt!==Dt))},Vn=Dt=>{Nn(Mt=>[].concat((0,lt.Z)(Mt),[Dt]))},Ai=Dt=>{const Mt=oe.indexOf(Dt.value),zt=(0,lt.Z)(oe);Mt===-1?zt.push(Dt.value):zt.splice(Mt,1),"value"in Ze||Pe(zt),Oe==null||Oe(zt.filter(be=>En.includes(be)).sort((be,De)=>{const fe=Xe.findIndex(te=>te.value===be),Ce=Xe.findIndex(te=>te.value===De);return fe-Ce}))},Wn=Qe("checkbox",We),Si=`${Wn}-group`,[an,Li]=(0,St.ZP)(Wn),Oi=(0,rt.Z)(Ze,["value","disabled"]),ue=ee.length?Xe.map(Dt=>Me.createElement(tt,{prefixCls:Wn,key:Dt.value.toString(),disabled:"disabled"in Dt?Dt.disabled:Ze.disabled,value:Dt.value,checked:oe.includes(Dt.value),onChange:Dt.onChange,className:`${Si}-item`,style:Dt.style,title:Dt.title},Dt.label)):Fe,Pn={toggleOption:Ai,value:oe,disabled:Ze.disabled,name:Ze.name,registerValue:Vn,cancelValue:kn},de=ge()(Si,{[`${Si}-rtl`]:we==="rtl"},Yt,qe,Li);return an(Me.createElement("div",Object.assign({className:de,style:Ge},Oi,{ref:he}),Me.createElement(Jt.Provider,{value:Pn},ue)))},pt=Me.forwardRef(dt);var Ft=Me.memo(pt);const Tt=tt;Tt.Group=Ft,Tt.__ANT_CHECKBOX=!0;var _t=Tt},98447:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{C2:function(){return ie}});var bt=Bt(17313),ge=Bt(37613),se=Bt(83116);const Me=ae=>{const{checkboxCls:Lt}=ae,kt=`${Lt}-wrapper`;return[{[`${Lt}-group`]:Object.assign(Object.assign({},(0,bt.Wf)(ae)),{display:"inline-flex",flexWrap:"wrap",columnGap:ae.marginXS,[`> ${ae.antCls}-row`]:{flex:1}}),[kt]:Object.assign(Object.assign({},(0,bt.Wf)(ae)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${kt}`]:{marginInlineStart:0},[`&${kt}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[Lt]:Object.assign(Object.assign({},(0,bt.Wf)(ae)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:ae.borderRadiusSM,alignSelf:"center",[`${Lt}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Lt}-inner`]:Object.assign({},(0,bt.oN)(ae))},[`${Lt}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:ae.checkboxSize,height:ae.checkboxSize,direction:"ltr",backgroundColor:ae.colorBgContainer,border:`${ae.lineWidth}px ${ae.lineType} ${ae.colorBorder}`,borderRadius:ae.borderRadiusSM,borderCollapse:"separate",transition:`all ${ae.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:ae.checkboxSize/14*5,height:ae.checkboxSize/14*8,border:`${ae.lineWidthBold}px solid ${ae.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${ae.motionDurationFast} ${ae.motionEaseInBack}, opacity ${ae.motionDurationFast}`}},"& + span":{paddingInlineStart:ae.paddingXS,paddingInlineEnd:ae.paddingXS}})},{[`
|
|
|
${kt}:not(${kt}-disabled),
|
|
|
${Lt}:not(${Lt}-disabled)
|
|
|
`]:{[`&:hover ${Lt}-inner`]:{borderColor:ae.colorPrimary}},[`${kt}:not(${kt}-disabled)`]:{[`&:hover ${Lt}-checked:not(${Lt}-disabled) ${Lt}-inner`]:{backgroundColor:ae.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Lt}-checked:not(${Lt}-disabled):after`]:{borderColor:ae.colorPrimaryHover}}},{[`${Lt}-checked`]:{[`${Lt}-inner`]:{backgroundColor:ae.colorPrimary,borderColor:ae.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${ae.motionDurationMid} ${ae.motionEaseOutBack} ${ae.motionDurationFast}`}}},[`
|
|
|
${kt}-checked:not(${kt}-disabled),
|
|
|
${Lt}-checked:not(${Lt}-disabled)
|
|
|
`]:{[`&:hover ${Lt}-inner`]:{backgroundColor:ae.colorPrimaryHover,borderColor:"transparent"}}},{[Lt]:{"&-indeterminate":{[`${Lt}-inner`]:{backgroundColor:ae.colorBgContainer,borderColor:ae.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:ae.fontSizeLG/2,height:ae.fontSizeLG/2,backgroundColor:ae.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${kt}-disabled`]:{cursor:"not-allowed"},[`${Lt}-disabled`]:{[`&, ${Lt}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Lt}-inner`]:{background:ae.colorBgContainerDisabled,borderColor:ae.colorBorder,"&:after":{borderColor:ae.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:ae.colorTextDisabled},[`&${Lt}-indeterminate ${Lt}-inner::after`]:{background:ae.colorTextDisabled}}}]};function ie(ae,Lt){const kt=(0,ge.TS)(Lt,{checkboxCls:`.${ae}`,checkboxSize:Lt.controlInteractiveSize});return[Me(kt)]}Cn.ZP=(0,se.Z)("Checkbox",(ae,Lt)=>{let{prefixCls:kt}=Lt;return[ie(kt,ae)]})},93891:function(ui,Cn,Bt){"use strict";var bt=Bt(59301),ge=Bt(36355),se=Bt(64165);const Me=ie=>{const{componentName:ae}=ie,{getPrefixCls:Lt}=(0,bt.useContext)(ge.E_),kt=Lt("empty");switch(ae){case"Table":case"List":return bt.createElement(se.Z,{image:se.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return bt.createElement(se.Z,{image:se.Z.PRESENTED_IMAGE_SIMPLE,className:`${kt}-small`});default:return bt.createElement(se.Z,null)}};Cn.Z=Me},28103:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return Gt}});var bt=Bt(92310),ge=Bt.n(bt),se=Bt(59301),Me=Bt(36355),ie=Bt(17313),ae=Bt(83116),Lt=Bt(37613);const kt=qt=>{const{componentCls:wt,sizePaddingEdgeHorizontal:et,colorSplit:tt,lineWidth:lt,textPaddingInline:rt,orientationMargin:ut,verticalMarginInline:dt}=qt;return{[wt]:Object.assign(Object.assign({},(0,ie.Wf)(qt)),{borderBlockStart:`${lt}px solid ${tt}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:dt,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${lt}px solid ${tt}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${qt.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${wt}-with-text`]:{display:"flex",alignItems:"center",margin:`${qt.dividerHorizontalWithTextGutterMargin}px 0`,color:qt.colorTextHeading,fontWeight:500,fontSize:qt.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${tt}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${lt}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${wt}-with-text-left`]:{"&::before":{width:`${ut*100}%`},"&::after":{width:`${100-ut*100}%`}},[`&-horizontal${wt}-with-text-right`]:{"&::before":{width:`${100-ut*100}%`},"&::after":{width:`${ut*100}%`}},[`${wt}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:rt},"&-dashed":{background:"none",borderColor:tt,borderStyle:"dashed",borderWidth:`${lt}px 0 0`},[`&-horizontal${wt}-with-text${wt}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${wt}-dashed`]:{borderInlineStartWidth:lt,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${wt}-with-text`]:{color:qt.colorText,fontWeight:"normal",fontSize:qt.fontSize},[`&-horizontal${wt}-with-text-left${wt}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${wt}-inner-text`]:{paddingInlineStart:et}},[`&-horizontal${wt}-with-text-right${wt}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${wt}-inner-text`]:{paddingInlineEnd:et}}})}};var Jt=(0,ae.Z)("Divider",qt=>{const wt=(0,Lt.TS)(qt,{dividerHorizontalWithTextGutterMargin:qt.margin,dividerHorizontalGutterMargin:qt.marginLG,sizePaddingEdgeHorizontal:0});return[kt(wt)]},qt=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:qt.marginXS})),St=function(qt,wt){var et={};for(var tt in qt)Object.prototype.hasOwnProperty.call(qt,tt)&&wt.indexOf(tt)<0&&(et[tt]=qt[tt]);if(qt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,tt=Object.getOwnPropertySymbols(qt);lt<tt.length;lt++)wt.indexOf(tt[lt])<0&&Object.prototype.propertyIsEnumerable.call(qt,tt[lt])&&(et[tt[lt]]=qt[tt[lt]]);return et},Gt=qt=>{const{getPrefixCls:wt,direction:et,divider:tt}=se.useContext(Me.E_),{prefixCls:lt,type:rt="horizontal",orientation:ut="center",orientationMargin:dt,className:pt,rootClassName:Ft,children:Tt,dashed:_t,plain:re,style:he}=qt,Ae=St(qt,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Fe=wt("divider",lt),[ee,We]=Jt(Fe),Yt=ut.length>0?`-${ut}`:ut,qe=!!Tt,Ge=ut==="left"&&dt!=null,Oe=ut==="right"&&dt!=null,Ze=ge()(Fe,tt==null?void 0:tt.className,We,`${Fe}-${rt}`,{[`${Fe}-with-text`]:qe,[`${Fe}-with-text${Yt}`]:qe,[`${Fe}-dashed`]:!!_t,[`${Fe}-plain`]:!!re,[`${Fe}-rtl`]:et==="rtl",[`${Fe}-no-default-orientation-margin-left`]:Ge,[`${Fe}-no-default-orientation-margin-right`]:Oe},pt,Ft),Qe=se.useMemo(()=>typeof dt=="number"?dt:/^\d+$/.test(dt)?Number(dt):dt,[dt]),we=Object.assign(Object.assign({},Ge&&{marginLeft:Qe}),Oe&&{marginRight:Qe});return ee(se.createElement("div",Object.assign({className:Ze,style:Object.assign(Object.assign({},tt==null?void 0:tt.style),he)},Ae,{role:"separator"}),Tt&&rt!=="vertical"&&se.createElement("span",{className:`${Fe}-inner-text`,style:we},Tt)))}},91857:function(ui,Cn,Bt){"use strict";var bt=Bt(59301),ge=Bt(38819),se=Bt(92310),Me=Bt.n(se),ie=Bt(31561),ae=Bt(70425),Lt=Bt(18929),kt=Bt(2738),Jt=Bt(79676),St=Bt(53487),Wt=Bt(92343),Gt=Bt(36355),qt=Bt(20834),wt=Bt(40875),et=Bt(88088),tt=Bt(47211);const lt=null,rt=Ft=>{const{menu:Tt,arrow:_t,prefixCls:re,children:he,trigger:Ae,disabled:Fe,dropdownRender:ee,getPopupContainer:We,overlayClassName:Yt,rootClassName:qe,open:Ge,onOpenChange:Oe,visible:Ze,onVisibleChange:Qe,mouseEnterDelay:we=.15,mouseLeaveDelay:oe=.1,autoAdjustOverflow:Pe=!0,placement:En="",overlay:Nn,transitionName:Xe}=Ft,{getPopupContainer:kn,getPrefixCls:Vn,direction:Ai}=bt.useContext(Gt.E_),Wn=bt.useMemo(()=>{const yt=Vn();return Xe!==void 0?Xe:En.includes("top")?`${yt}-slide-down`:`${yt}-slide-up`},[Vn,En,Xe]),Si=bt.useMemo(()=>En?En.includes("Center")?En.slice(0,En.indexOf("Center")):En:Ai==="rtl"?"bottomRight":"bottomLeft",[En,Ai]),an=Vn("dropdown",re),[Li,Oi]=(0,tt.Z)(an),[,ue]=(0,et.Z)(),Pn=bt.Children.only(he),de=(0,Wt.Tm)(Pn,{className:Me()(`${an}-trigger`,{[`${an}-rtl`]:Ai==="rtl"},Pn.props.className),disabled:Fe}),Dt=Fe?[]:Ae;let Mt;Dt&&Dt.includes("contextMenu")&&(Mt=!0);const[zt,be]=(0,Lt.Z)(!1,{value:Ge!=null?Ge:Ze}),De=(0,ae.useEvent)(yt=>{Oe==null||Oe(yt),Qe==null||Qe(yt),be(yt)}),fe=Me()(Yt,qe,Oi,{[`${an}-rtl`]:Ai==="rtl"}),Ce=(0,Jt.Z)({arrowPointAtCenter:typeof _t=="object"&&_t.pointAtCenter,autoAdjustOverflow:Pe,offset:ue.marginXXS,arrowWidth:_t?ue.sizePopupArrow:0,borderRadius:ue.borderRadius}),te=bt.useCallback(()=>{be(!1)},[]),Ct=()=>{let yt;return Tt!=null&&Tt.items?yt=bt.createElement(qt.default,Object.assign({},Tt)):typeof Nn=="function"?yt=Nn():yt=Nn,ee&&(yt=ee(yt)),yt=bt.Children.only(typeof yt=="string"?bt.createElement("span",null,yt):yt),bt.createElement(wt.J,{prefixCls:`${an}-menu`,expandIcon:bt.createElement("span",{className:`${an}-menu-submenu-arrow`},bt.createElement(ge.Z,{className:`${an}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:te,validator:$t=>{let{mode:xe}=$t}},yt)};return Li(bt.createElement(ie.Z,Object.assign({alignPoint:Mt},(0,kt.Z)(Ft,["rootClassName"]),{mouseEnterDelay:we,mouseLeaveDelay:oe,visible:zt,builtinPlacements:Ce,arrow:!!_t,overlayClassName:fe,prefixCls:an,getPopupContainer:We||kn,transitionName:Wn,trigger:Dt,overlay:Ct,placement:Si,onVisibleChange:De}),de))};function ut(Ft){return Object.assign(Object.assign({},Ft),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const dt=(0,St.Z)(rt,"dropdown",Ft=>Ft,ut),pt=Ft=>bt.createElement(dt,Object.assign({},Ft),bt.createElement("span",null));rt._InternalPanelDoNotUseOrYouWillBeFired=pt,Cn.Z=rt},38854:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return et}});var bt=Bt(91857),ge=Bt(92310),se=Bt.n(ge),Me=Bt(59301),ie=Bt(18785),ae=Bt(3113),Lt=Bt(36355),kt=Bt(81327),Jt=Bt(33234),St=Bt(47211),Wt=function(tt,lt){var rt={};for(var ut in tt)Object.prototype.hasOwnProperty.call(tt,ut)&<.indexOf(ut)<0&&(rt[ut]=tt[ut]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,ut=Object.getOwnPropertySymbols(tt);dt<ut.length;dt++)lt.indexOf(ut[dt])<0&&Object.prototype.propertyIsEnumerable.call(tt,ut[dt])&&(rt[ut[dt]]=tt[ut[dt]]);return rt};const Gt=tt=>{const{getPopupContainer:lt,getPrefixCls:rt,direction:ut}=Me.useContext(Lt.E_),{prefixCls:dt,type:pt="default",danger:Ft,disabled:Tt,loading:_t,onClick:re,htmlType:he,children:Ae,className:Fe,menu:ee,arrow:We,autoFocus:Yt,overlay:qe,trigger:Ge,align:Oe,open:Ze,onOpenChange:Qe,placement:we,getPopupContainer:oe,href:Pe,icon:En=Me.createElement(ie.Z,null),title:Nn,buttonsRender:Xe=Ct=>Ct,mouseEnterDelay:kn,mouseLeaveDelay:Vn,overlayClassName:Ai,overlayStyle:Wn,destroyPopupOnHide:Si,dropdownRender:an}=tt,Li=Wt(tt,["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"]),Oi=rt("dropdown",dt),ue=`${Oi}-button`,[Pn,de]=(0,St.Z)(Oi),Dt={menu:ee,arrow:We,autoFocus:Yt,align:Oe,disabled:Tt,trigger:Tt?[]:Ge,onOpenChange:Qe,getPopupContainer:oe||lt,mouseEnterDelay:kn,mouseLeaveDelay:Vn,overlayClassName:Ai,overlayStyle:Wn,destroyPopupOnHide:Si,dropdownRender:an},{compactSize:Mt,compactItemClassnames:zt}=(0,Jt.ri)(Oi,ut),be=se()(ue,zt,Fe,de);"overlay"in tt&&(Dt.overlay=qe),"open"in tt&&(Dt.open=Ze),"placement"in tt?Dt.placement=we:Dt.placement=ut==="rtl"?"bottomLeft":"bottomRight";const De=Me.createElement(ae.ZP,{type:pt,danger:Ft,disabled:Tt,loading:_t,onClick:re,htmlType:he,href:Pe,title:Nn},Ae),fe=Me.createElement(ae.ZP,{type:pt,danger:Ft,icon:En}),[Ce,te]=Xe([De,fe]);return Pn(Me.createElement(kt.Z.Compact,Object.assign({className:be,size:Mt,block:!0},Li),Ce,Me.createElement(bt.Z,Object.assign({},Dt),te)))};Gt.__ANT_BUTTON=!0;var qt=Gt;const wt=bt.Z;wt.Button=qt;var et=wt},47211:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return Wt}});var bt=Bt(17313),ge=Bt(13826),se=Bt(92899),Me=Bt(29878),ie=Bt(19447),ae=Bt(83116),Lt=Bt(37613),Jt=Gt=>{const{componentCls:qt,menuCls:wt,colorError:et,colorTextLightSolid:tt}=Gt,lt=`${wt}-item`;return{[`${qt}, ${qt}-menu-submenu`]:{[`${wt} ${lt}`]:{[`&${lt}-danger:not(${lt}-disabled)`]:{color:et,"&:hover":{color:tt,backgroundColor:et}}}}}};const St=Gt=>{const{componentCls:qt,menuCls:wt,zIndexPopup:et,dropdownArrowDistance:tt,sizePopupArrow:lt,antCls:rt,iconCls:ut,motionDurationMid:dt,dropdownPaddingVertical:pt,fontSize:Ft,dropdownEdgeChildPadding:Tt,colorTextDisabled:_t,fontSizeIcon:re,controlPaddingHorizontal:he,colorBgElevated:Ae}=Gt;return[{[qt]:Object.assign(Object.assign({},(0,bt.Wf)(Gt)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:et,display:"block","&::before":{position:"absolute",insetBlock:-tt+lt/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${rt}-btn`]:{[`& > ${ut}-down, & > ${rt}-btn-icon > ${ut}-down`]:{fontSize:re}},[`${qt}-wrap`]:{position:"relative",[`${rt}-btn > ${ut}-down`]:{fontSize:re},[`${ut}-down::before`]:{transition:`transform ${dt}`}},[`${qt}-wrap-open`]:{[`${ut}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${rt}-slide-down-enter${rt}-slide-down-enter-active${qt}-placement-bottomLeft,
|
|
|
&${rt}-slide-down-appear${rt}-slide-down-appear-active${qt}-placement-bottomLeft,
|
|
|
&${rt}-slide-down-enter${rt}-slide-down-enter-active${qt}-placement-bottom,
|
|
|
&${rt}-slide-down-appear${rt}-slide-down-appear-active${qt}-placement-bottom,
|
|
|
&${rt}-slide-down-enter${rt}-slide-down-enter-active${qt}-placement-bottomRight,
|
|
|
&${rt}-slide-down-appear${rt}-slide-down-appear-active${qt}-placement-bottomRight`]:{animationName:ge.fJ},[`&${rt}-slide-up-enter${rt}-slide-up-enter-active${qt}-placement-topLeft,
|
|
|
&${rt}-slide-up-appear${rt}-slide-up-appear-active${qt}-placement-topLeft,
|
|
|
&${rt}-slide-up-enter${rt}-slide-up-enter-active${qt}-placement-top,
|
|
|
&${rt}-slide-up-appear${rt}-slide-up-appear-active${qt}-placement-top,
|
|
|
&${rt}-slide-up-enter${rt}-slide-up-enter-active${qt}-placement-topRight,
|
|
|
&${rt}-slide-up-appear${rt}-slide-up-appear-active${qt}-placement-topRight`]:{animationName:ge.Qt},[`&${rt}-slide-down-leave${rt}-slide-down-leave-active${qt}-placement-bottomLeft,
|
|
|
&${rt}-slide-down-leave${rt}-slide-down-leave-active${qt}-placement-bottom,
|
|
|
&${rt}-slide-down-leave${rt}-slide-down-leave-active${qt}-placement-bottomRight`]:{animationName:ge.Uw},[`&${rt}-slide-up-leave${rt}-slide-up-leave-active${qt}-placement-topLeft,
|
|
|
&${rt}-slide-up-leave${rt}-slide-up-leave-active${qt}-placement-top,
|
|
|
&${rt}-slide-up-leave${rt}-slide-up-leave-active${qt}-placement-topRight`]:{animationName:ge.ly}})},(0,ie.ZP)(Gt,{colorBg:Ae,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${qt} ${wt}`]:{position:"relative",margin:0},[`${wt}-submenu-popup`]:{position:"absolute",zIndex:et,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${qt}, ${qt}-menu-submenu`]:{[wt]:Object.assign(Object.assign({padding:Tt,listStyleType:"none",backgroundColor:Ae,backgroundClip:"padding-box",borderRadius:Gt.borderRadiusLG,outline:"none",boxShadow:Gt.boxShadowSecondary},(0,bt.Qy)(Gt)),{[`${wt}-item-group-title`]:{padding:`${pt}px ${he}px`,color:Gt.colorTextDescription,transition:`all ${dt}`},[`${wt}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${wt}-item-icon`]:{minWidth:Ft,marginInlineEnd:Gt.marginXS,fontSize:Gt.fontSizeSM},[`${wt}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${dt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${wt}-item, ${wt}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${pt}px ${he}px`,color:Gt.colorText,fontWeight:"normal",fontSize:Ft,lineHeight:Gt.lineHeight,cursor:"pointer",transition:`all ${dt}`,borderRadius:Gt.borderRadiusSM,"&:hover, &-active":{backgroundColor:Gt.controlItemBgHover}},(0,bt.Qy)(Gt)),{"&-selected":{color:Gt.colorPrimary,backgroundColor:Gt.controlItemBgActive,"&:hover, &-active":{backgroundColor:Gt.controlItemBgActiveHover}},"&-disabled":{color:_t,cursor:"not-allowed","&:hover":{color:_t,backgroundColor:Ae,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Gt.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Gt.colorSplit},[`${qt}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Gt.paddingXS,[`${qt}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Gt.colorTextDescription,fontSize:re,fontStyle:"normal"}}}),[`${wt}-item-group-list`]:{margin:`0 ${Gt.marginXS}px`,padding:0,listStyle:"none"},[`${wt}-submenu-title`]:{paddingInlineEnd:he+Gt.fontSizeSM},[`${wt}-submenu-vertical`]:{position:"relative"},[`${wt}-submenu${wt}-submenu-disabled ${qt}-menu-submenu-title`]:{[`&, ${qt}-menu-submenu-arrow-icon`]:{color:_t,backgroundColor:Ae,cursor:"not-allowed"}},[`${wt}-submenu-selected ${qt}-menu-submenu-title`]:{color:Gt.colorPrimary}})}},[(0,ge.oN)(Gt,"slide-up"),(0,ge.oN)(Gt,"slide-down"),(0,se.Fm)(Gt,"move-up"),(0,se.Fm)(Gt,"move-down"),(0,Me._y)(Gt,"zoom-big")]]};var Wt=(0,ae.Z)("Dropdown",(Gt,qt)=>{let{rootPrefixCls:wt}=qt;const{marginXXS:et,sizePopupArrow:tt,controlHeight:lt,fontSize:rt,lineHeight:ut,paddingXXS:dt,componentCls:pt,borderRadiusLG:Ft}=Gt,Tt=(lt-rt*ut)/2,{dropdownArrowOffset:_t}=(0,ie.fS)({contentRadius:Ft}),re=(0,Lt.TS)(Gt,{menuCls:`${pt}-menu`,rootPrefixCls:wt,dropdownArrowDistance:tt/2+et,dropdownArrowOffset:_t,dropdownPaddingVertical:Tt,dropdownEdgeChildPadding:dt});return[St(re),Jt(re)]},Gt=>({zIndexPopup:Gt.zIndexPopupBase+50}))},64165:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return dt}});var bt=Bt(92310),ge=Bt.n(bt),se=Bt(59301),Me=Bt(36355),ie=Bt(9763),ae=Bt(64993),Lt=Bt(88088),Jt=()=>{const[,pt]=(0,Lt.Z)(),Tt=new ae.C(pt.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return se.createElement("svg",{style:Tt,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},se.createElement("g",{fill:"none",fillRule:"evenodd"},se.createElement("g",{transform:"translate(24 31.67)"},se.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),se.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"}),se.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)"}),se.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"}),se.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"})),se.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"}),se.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},se.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),se.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Wt=()=>{const[,pt]=(0,Lt.Z)(),{colorFill:Ft,colorFillTertiary:Tt,colorFillQuaternary:_t,colorBgContainer:re}=pt,{borderColor:he,shadowColor:Ae,contentColor:Fe}=(0,se.useMemo)(()=>({borderColor:new ae.C(Ft).onBackground(re).toHexShortString(),shadowColor:new ae.C(Tt).onBackground(re).toHexShortString(),contentColor:new ae.C(_t).onBackground(re).toHexShortString()}),[Ft,Tt,_t,re]);return se.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},se.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},se.createElement("ellipse",{fill:Ae,cx:"32",cy:"33",rx:"32",ry:"7"}),se.createElement("g",{fillRule:"nonzero",stroke:he},se.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"}),se.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:Fe}))))},Gt=Bt(83116),qt=Bt(37613);const wt=pt=>{const{componentCls:Ft,margin:Tt,marginXS:_t,marginXL:re,fontSize:he,lineHeight:Ae}=pt;return{[Ft]:{marginInline:_t,fontSize:he,lineHeight:Ae,textAlign:"center",[`${Ft}-image`]:{height:pt.emptyImgHeight,marginBottom:_t,opacity:pt.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Ft}-description`]:{color:pt.colorText},[`${Ft}-footer`]:{marginTop:Tt},"&-normal":{marginBlock:re,color:pt.colorTextDisabled,[`${Ft}-description`]:{color:pt.colorTextDisabled},[`${Ft}-image`]:{height:pt.emptyImgHeightMD}},"&-small":{marginBlock:_t,color:pt.colorTextDisabled,[`${Ft}-image`]:{height:pt.emptyImgHeightSM}}}}};var et=(0,Gt.Z)("Empty",pt=>{const{componentCls:Ft,controlHeightLG:Tt}=pt,_t=(0,qt.TS)(pt,{emptyImgCls:`${Ft}-img`,emptyImgHeight:Tt*2.5,emptyImgHeightMD:Tt,emptyImgHeightSM:Tt*.875});return[wt(_t)]}),tt=function(pt,Ft){var Tt={};for(var _t in pt)Object.prototype.hasOwnProperty.call(pt,_t)&&Ft.indexOf(_t)<0&&(Tt[_t]=pt[_t]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var re=0,_t=Object.getOwnPropertySymbols(pt);re<_t.length;re++)Ft.indexOf(_t[re])<0&&Object.prototype.propertyIsEnumerable.call(pt,_t[re])&&(Tt[_t[re]]=pt[_t[re]]);return Tt};const lt=se.createElement(Jt,null),rt=se.createElement(Wt,null),ut=pt=>{var{className:Ft,rootClassName:Tt,prefixCls:_t,image:re=lt,description:he,children:Ae,imageStyle:Fe,style:ee}=pt,We=tt(pt,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Yt,direction:qe,empty:Ge}=se.useContext(Me.E_),Oe=Yt("empty",_t),[Ze,Qe]=et(Oe),[we]=(0,ie.Z)("Empty"),oe=typeof he!="undefined"?he:we==null?void 0:we.description,Pe=typeof oe=="string"?oe:"empty";let En=null;return typeof re=="string"?En=se.createElement("img",{alt:Pe,src:re}):En=re,Ze(se.createElement("div",Object.assign({className:ge()(Qe,Oe,Ge==null?void 0:Ge.className,{[`${Oe}-normal`]:re===rt,[`${Oe}-rtl`]:qe==="rtl"},Ft,Tt),style:Object.assign(Object.assign({},Ge==null?void 0:Ge.style),ee)},We),se.createElement("div",{className:`${Oe}-image`,style:Fe},En),oe&&se.createElement("div",{className:`${Oe}-description`},oe),Ae&&se.createElement("div",{className:`${Oe}-footer`},Ae)))};ut.PRESENTED_IMAGE_DEFAULT=lt,ut.PRESENTED_IMAGE_SIMPLE=rt;var dt=ut},78241:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{default:function(){return On}});var bt=Bt(80702),ge=Bt(92310),se=Bt.n(ge),Me=Bt(77900),ie=Bt(59301),ae=Bt(62892),Lt=Bt(32441);function kt(Re){const[hi,en]=ie.useState(Re);return ie.useEffect(()=>{const gn=setTimeout(()=>{en(Re)},Re.length?0:10);return()=>{clearTimeout(gn)}},[Re]),hi}var Jt=Bt(17313),St=Bt(29878),Wt=Bt(8378),Gt=Bt(37613),qt=Bt(83116),et=Re=>{const{componentCls:hi}=Re,en=`${hi}-show-help`,gn=`${hi}-show-help-item`;return{[en]:{transition:`opacity ${Re.motionDurationSlow} ${Re.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[gn]:{overflow:"hidden",transition:`height ${Re.motionDurationSlow} ${Re.motionEaseInOut},
|
|
|
opacity ${Re.motionDurationSlow} ${Re.motionEaseInOut},
|
|
|
transform ${Re.motionDurationSlow} ${Re.motionEaseInOut} !important`,[`&${gn}-appear, &${gn}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${gn}-leave-active`]:{transform:"translateY(-5px)"}}}}};const tt=Re=>({legend:{display:"block",width:"100%",marginBottom:Re.marginLG,padding:0,color:Re.colorTextDescription,fontSize:Re.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Re.lineWidth}px ${Re.lineType} ${Re.colorBorder}`},label:{fontSize:Re.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 ${Re.controlOutlineWidth}px ${Re.controlOutline}`},output:{display:"block",paddingTop:15,color:Re.colorText,fontSize:Re.fontSize,lineHeight:Re.lineHeight}}),lt=(Re,hi)=>{const{formItemCls:en}=Re;return{[en]:{[`${en}-label > label`]:{height:hi},[`${en}-control-input`]:{minHeight:hi}}}},rt=Re=>{const{componentCls:hi}=Re;return{[Re.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Jt.Wf)(Re)),tt(Re)),{[`${hi}-text`]:{display:"inline-block",paddingInlineEnd:Re.paddingSM},"&-small":Object.assign({},lt(Re,Re.controlHeightSM)),"&-large":Object.assign({},lt(Re,Re.controlHeightLG))})}},ut=Re=>{const{formItemCls:hi,iconCls:en,componentCls:gn,rootPrefixCls:Ve,labelRequiredMarkColor:ni,labelColor:Bi,labelFontSize:_i,labelHeight:tr,labelColonMarginInlineStart:sn,labelColonMarginInlineEnd:fi,itemMarginBottom:Zi}=Re;return{[hi]:Object.assign(Object.assign({},(0,Jt.Wf)(Re)),{marginBottom:Zi,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${Ve}-row`]:{display:"none"},"&-has-warning":{[`${hi}-split`]:{color:Re.colorError}},"&-has-error":{[`${hi}-split`]:{color:Re.colorWarning}},[`${hi}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Re.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:tr,color:Bi,fontSize:_i,[`> ${en}`]:{fontSize:Re.fontSize,verticalAlign:"top"},[`&${hi}-required:not(${hi}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Re.marginXXS,color:ni,fontSize:Re.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${gn}-hide-required-mark &`]:{display:"none"}},[`${hi}-optional`]:{display:"inline-block",marginInlineStart:Re.marginXXS,color:Re.colorTextDescription,[`${gn}-hide-required-mark &`]:{display:"none"}},[`${hi}-tooltip`]:{color:Re.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Re.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:sn,marginInlineEnd:fi},[`&${hi}-no-colon::after`]:{content:'"\\a0"'}}},[`${hi}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Ve}-col-'"]):not([class*="' ${Ve}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Re.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[hi]:{"&-explain, &-extra":{clear:"both",color:Re.colorTextDescription,fontSize:Re.fontSize,lineHeight:Re.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Re.controlHeightSM,transition:`color ${Re.motionDurationMid} ${Re.motionEaseOut}`},"&-explain":{"&-error":{color:Re.colorError},"&-warning":{color:Re.colorWarning}}},[`&-with-help ${hi}-explain`]:{height:"auto",opacity:1},[`${hi}-feedback-icon`]:{fontSize:Re.fontSize,textAlign:"center",visibility:"visible",animationName:St.kr,animationDuration:Re.motionDurationMid,animationTimingFunction:Re.motionEaseOutBack,pointerEvents:"none","&-success":{color:Re.colorSuccess},"&-error":{color:Re.colorError},"&-warning":{color:Re.colorWarning},"&-validating":{color:Re.colorPrimary}}})}},dt=Re=>{const{componentCls:hi,formItemCls:en}=Re;return{[`${hi}-horizontal`]:{[`${en}-label`]:{flexGrow:0},[`${en}-control`]:{flex:"1 1 0",minWidth:0},[`${en}-label[class$='-24'], ${en}-label[class*='-24 ']`]:{[`& + ${en}-control`]:{minWidth:"unset"}}}}},pt=Re=>{const{componentCls:hi,formItemCls:en}=Re;return{[`${hi}-inline`]:{display:"flex",flexWrap:"wrap",[en]:{flex:"none",marginInlineEnd:Re.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${en}-label,
|
|
|
> ${en}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${en}-label`]:{flex:"none"},[`${hi}-text`]:{display:"inline-block"},[`${en}-has-feedback`]:{display:"inline-block"}}}}},Ft=Re=>({padding:Re.verticalLabelPadding,margin:Re.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Tt=Re=>{const{componentCls:hi,formItemCls:en,rootPrefixCls:gn}=Re;return{[`${en} ${en}-label`]:Ft(Re),[hi]:{[en]:{flexWrap:"wrap",[`${en}-label, ${en}-control`]:{[`&:not([class*=" ${gn}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},_t=Re=>{const{componentCls:hi,formItemCls:en,rootPrefixCls:gn}=Re;return{[`${hi}-vertical`]:{[en]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${hi}-item-control`]:{width:"100%"}}},[`${hi}-vertical ${en}-label,
|
|
|
.${gn}-col-24${en}-label,
|
|
|
.${gn}-col-xl-24${en}-label`]:Ft(Re),[`@media (max-width: ${Re.screenXSMax}px)`]:[Tt(Re),{[hi]:{[`.${gn}-col-xs-24${en}-label`]:Ft(Re)}}],[`@media (max-width: ${Re.screenSMMax}px)`]:{[hi]:{[`.${gn}-col-sm-24${en}-label`]:Ft(Re)}},[`@media (max-width: ${Re.screenMDMax}px)`]:{[hi]:{[`.${gn}-col-md-24${en}-label`]:Ft(Re)}},[`@media (max-width: ${Re.screenLGMax}px)`]:{[hi]:{[`.${gn}-col-lg-24${en}-label`]:Ft(Re)}}}},re=(Re,hi)=>(0,Gt.TS)(Re,{formItemCls:`${Re.componentCls}-item`,rootPrefixCls:hi});var he=(0,qt.Z)("Form",(Re,hi)=>{let{rootPrefixCls:en}=hi;const gn=re(Re,en);return[rt(gn),ut(gn),et(gn),dt(gn),pt(gn),_t(gn),(0,Wt.Z)(gn),St.kr]},Re=>({labelRequiredMarkColor:Re.colorError,labelColor:Re.colorTextHeading,labelFontSize:Re.fontSize,labelHeight:Re.controlHeight,labelColonMarginInlineStart:Re.marginXXS/2,labelColonMarginInlineEnd:Re.marginXS,itemMarginBottom:Re.marginLG,verticalLabelPadding:`0 0 ${Re.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Ae=[];function Fe(Re,hi,en){let gn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Re=="string"?Re:`${hi}-${gn}`,error:Re,errorStatus:en}}var We=Re=>{let{help:hi,helpStatus:en,errors:gn=Ae,warnings:Ve=Ae,className:ni,fieldId:Bi,onVisibleChanged:_i}=Re;const{prefixCls:tr}=ie.useContext(Lt.Rk),sn=`${tr}-item-explain`,[,fi]=he(tr),Zi=(0,ie.useMemo)(()=>(0,ae.Z)(tr),[tr]),Tr=kt(gn),ii=kt(Ve),xi=ie.useMemo(()=>hi!=null?[Fe(hi,"help",en)]:[].concat((0,bt.Z)(Tr.map((mi,wi)=>Fe(mi,"error","error",wi))),(0,bt.Z)(ii.map((mi,wi)=>Fe(mi,"warning","warning",wi)))),[hi,en,Tr,ii]),fr={};return Bi&&(fr.id=`${Bi}_help`),ie.createElement(Me.default,{motionDeadline:Zi.motionDeadline,motionName:`${tr}-show-help`,visible:!!xi.length,onVisibleChanged:_i},mi=>{const{className:wi,style:yi}=mi;return ie.createElement("div",Object.assign({},fr,{className:se()(sn,wi,ni,fi),style:yi,role:"alert"}),ie.createElement(Me.CSSMotionList,Object.assign({keys:xi},(0,ae.Z)(tr),{motionName:`${tr}-show-help-item`,component:!1}),nr=>{const{key:sr,error:Rr,errorStatus:Zr,className:Xr,style:ei}=nr;return ie.createElement("div",{key:sr,className:se()(Xr,{[`${sn}-${Zr}`]:Zr}),style:ei},Rr)}))})},Yt=Bt(95013),qe=Bt(36355),Ge=Bt(1684),Oe=Bt(52946),Ze=Bt(19716),Qe=Bt(16722);const we=["parentNode"],oe="form_item";function Pe(Re){return Re===void 0||Re===!1?[]:Array.isArray(Re)?Re:[Re]}function En(Re,hi){if(!Re.length)return;const en=Re.join("_");return hi?`${hi}_${en}`:we.includes(en)?`${oe}_${en}`:en}function Nn(Re,hi,en,gn,Ve,ni){let Bi=gn;return ni!==void 0?Bi=ni:en.validating?Bi="validating":Re.length?Bi="error":hi.length?Bi="warning":(en.touched||Ve&&en.validated)&&(Bi="success"),Bi}function Xe(Re){return Pe(Re).join("_")}function kn(Re){const[hi]=(0,Yt.useForm)(),en=ie.useRef({}),gn=ie.useMemo(()=>Re!=null?Re:Object.assign(Object.assign({},hi),{__INTERNAL__:{itemRef:Ve=>ni=>{const Bi=Xe(Ve);ni?en.current[Bi]=ni:delete en.current[Bi]}},scrollToField:function(Ve){let ni=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Bi=Pe(Ve),_i=En(Bi,gn.__INTERNAL__.name),tr=_i?document.getElementById(_i):null;tr&&(0,Qe.Z)(tr,Object.assign({scrollMode:"if-needed",block:"nearest"},ni))},getFieldInstance:Ve=>{const ni=Xe(Ve);return en.current[ni]}}),[Re,hi]);return[gn]}var Vn=Bt(28726),Ai=function(Re,hi){var en={};for(var gn in Re)Object.prototype.hasOwnProperty.call(Re,gn)&&hi.indexOf(gn)<0&&(en[gn]=Re[gn]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,gn=Object.getOwnPropertySymbols(Re);Ve<gn.length;Ve++)hi.indexOf(gn[Ve])<0&&Object.prototype.propertyIsEnumerable.call(Re,gn[Ve])&&(en[gn[Ve]]=Re[gn[Ve]]);return en};const Wn=(Re,hi)=>{const en=ie.useContext(Ge.Z),{getPrefixCls:gn,direction:Ve,form:ni}=ie.useContext(qe.E_),{prefixCls:Bi,className:_i,rootClassName:tr,size:sn,disabled:fi=en,form:Zi,colon:Tr,labelAlign:ii,labelWrap:xi,labelCol:fr,wrapperCol:mi,hideRequiredMark:wi,layout:yi="horizontal",scrollToFirstError:nr,requiredMark:sr,onFinishFailed:Rr,name:Zr,style:Xr,feedbackIcons:ei}=Re,Ho=Ai(Re,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Zo=(0,Ze.Z)(sn),cs=ie.useContext(Vn.Z),ri=(0,ie.useMemo)(()=>sr!==void 0?sr:ni&&ni.requiredMark!==void 0?ni.requiredMark:!wi,[wi,sr,ni]),or=Tr!=null?Tr:ni==null?void 0:ni.colon,Er=gn("form",Bi),[no,Lr]=he(Er),Wr=se()(Er,`${Er}-${yi}`,{[`${Er}-hide-required-mark`]:ri===!1,[`${Er}-rtl`]:Ve==="rtl",[`${Er}-${Zo}`]:Zo},Lr,ni==null?void 0:ni.className,_i,tr),[wo]=kn(Zi),{__INTERNAL__:fo}=wo;fo.name=Zr;const xo=(0,ie.useMemo)(()=>({name:Zr,labelAlign:ii,labelCol:fr,labelWrap:xi,wrapperCol:mi,vertical:yi==="vertical",colon:or,requiredMark:ri,itemRef:fo.itemRef,form:wo,feedbackIcons:ei}),[Zr,ii,fr,mi,yi,or,ri,wo,ei]);ie.useImperativeHandle(hi,()=>wo);const _r=(Qo,bi)=>{if(Qo){let ns={block:"nearest"};typeof Qo=="object"&&(ns=Qo),wo.scrollToField(bi,ns)}},Ci=Qo=>{if(Rr==null||Rr(Qo),Qo.errorFields.length){const bi=Qo.errorFields[0].name;if(nr!==void 0){_r(nr,bi);return}ni&&ni.scrollToFirstError!==void 0&&_r(ni.scrollToFirstError,bi)}};return no(ie.createElement(Ge.n,{disabled:fi},ie.createElement(Oe.q,{size:Zo},ie.createElement(Lt.RV,Object.assign({},{validateMessages:cs}),ie.createElement(Lt.q3.Provider,{value:xo},ie.createElement(Yt.default,Object.assign({id:Zr},Ho,{name:Zr,onFinishFailed:Ci,form:wo,style:Object.assign(Object.assign({},ni==null?void 0:ni.style),Xr),className:Wr})))))))};var an=ie.forwardRef(Wn),Li=Bt(41799),Oi=Bt(8654),ue=Bt(92343),Pn=Bt(11592);function de(Re){if(typeof Re=="function")return Re;const hi=(0,Pn.Z)(Re);return hi.length<=1?hi[0]:hi}const Dt=()=>{const{status:Re,errors:hi=[],warnings:en=[]}=(0,ie.useContext)(Lt.aM);return{status:Re,errors:hi,warnings:en}};Dt.Context=Lt.aM;var Mt=Dt,zt=Bt(16089);function be(Re){const[hi,en]=ie.useState(Re),gn=(0,ie.useRef)(null),Ve=(0,ie.useRef)([]),ni=(0,ie.useRef)(!1);ie.useEffect(()=>(ni.current=!1,()=>{ni.current=!0,zt.Z.cancel(gn.current),gn.current=null}),[]);function Bi(_i){ni.current||(gn.current===null&&(Ve.current=[],gn.current=(0,zt.Z)(()=>{gn.current=null,en(tr=>{let sn=tr;return Ve.current.forEach(fi=>{sn=fi(sn)}),sn})})),Ve.current.push(_i))}return[hi,Bi]}function De(){const{itemRef:Re}=ie.useContext(Lt.q3),hi=ie.useRef({});function en(gn,Ve){const ni=Ve&&typeof Ve=="object"&&Ve.ref,Bi=gn.join("_");return(hi.current.name!==Bi||hi.current.originRef!==ni)&&(hi.current.name=Bi,hi.current.originRef=ni,hi.current.ref=(0,Oi.sQ)(Re(gn),ni)),hi.current.ref}return en}var fe=Bt(29194),Ce=Bt(34280),te=Bt(2738),Ct=Bt(27382),yt=Bt(37028);const $t=Re=>{const{formItemCls:hi}=Re;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${hi}-control`]:{display:"flex"}}}};var xe=(0,qt.b)(["Form","item-item"],(Re,hi)=>{let{rootPrefixCls:en}=hi;const gn=re(Re,en);return[$t(gn)]}),je=Re=>{const{prefixCls:hi,status:en,wrapperCol:gn,children:Ve,errors:ni,warnings:Bi,_internalItemRender:_i,extra:tr,help:sn,fieldId:fi,marginBottom:Zi,onErrorVisibleChanged:Tr}=Re,ii=`${hi}-item`,xi=ie.useContext(Lt.q3),fr=gn||xi.wrapperCol||{},mi=se()(`${ii}-control`,fr.className),wi=ie.useMemo(()=>Object.assign({},xi),[xi]);delete wi.labelCol,delete wi.wrapperCol;const yi=ie.createElement("div",{className:`${ii}-control-input`},ie.createElement("div",{className:`${ii}-control-input-content`},Ve)),nr=ie.useMemo(()=>({prefixCls:hi,status:en}),[hi,en]),sr=Zi!==null||ni.length||Bi.length?ie.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},ie.createElement(Lt.Rk.Provider,{value:nr},ie.createElement(We,{fieldId:fi,errors:ni,warnings:Bi,help:sn,helpStatus:en,className:`${ii}-explain-connected`,onVisibleChanged:Tr})),!!Zi&&ie.createElement("div",{style:{width:0,height:Zi}})):null,Rr={};fi&&(Rr.id=`${fi}_extra`);const Zr=tr?ie.createElement("div",Object.assign({},Rr,{className:`${ii}-extra`}),tr):null,Xr=_i&&_i.mark==="pro_table_render"&&_i.render?_i.render(Re,{input:yi,errorList:sr,extra:Zr}):ie.createElement(ie.Fragment,null,yi,sr,Zr);return ie.createElement(Lt.q3.Provider,{value:wi},ie.createElement(yt.Z,Object.assign({},fr,{className:mi}),Xr),ie.createElement(xe,{prefixCls:hi}))},fn=Bt(61485),jn=Bt(31724),bn=Bt(9763),ci=Bt(6848),Ji=function(Re,hi){var en={};for(var gn in Re)Object.prototype.hasOwnProperty.call(Re,gn)&&hi.indexOf(gn)<0&&(en[gn]=Re[gn]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,gn=Object.getOwnPropertySymbols(Re);Ve<gn.length;Ve++)hi.indexOf(gn[Ve])<0&&Object.prototype.propertyIsEnumerable.call(Re,gn[Ve])&&(en[gn[Ve]]=Re[gn[Ve]]);return en};function zi(Re){return Re?typeof Re=="object"&&!ie.isValidElement(Re)?Re:{title:Re}:null}var Fr=Re=>{let{prefixCls:hi,label:en,htmlFor:gn,labelCol:Ve,labelAlign:ni,colon:Bi,required:_i,requiredMark:tr,tooltip:sn}=Re;var fi;const[Zi]=(0,bn.Z)("Form"),{vertical:Tr,labelAlign:ii,labelCol:xi,labelWrap:fr,colon:mi}=ie.useContext(Lt.q3);if(!en)return null;const wi=Ve||xi||{},yi=ni||ii,nr=`${hi}-item-label`,sr=se()(nr,yi==="left"&&`${nr}-left`,wi.className,{[`${nr}-wrap`]:!!fr});let Rr=en;const Zr=Bi===!0||mi!==!1&&Bi!==!1;Zr&&!Tr&&typeof en=="string"&&en.trim()!==""&&(Rr=en.replace(/[:|:]\s*$/,""));const ei=zi(sn);if(ei){const{icon:ri=ie.createElement(fn.Z,null)}=ei,or=Ji(ei,["icon"]),Er=ie.createElement(ci.Z,Object.assign({},or),ie.cloneElement(ri,{className:`${hi}-item-tooltip`,title:""}));Rr=ie.createElement(ie.Fragment,null,Rr,Er)}const Ho=tr==="optional",Zo=typeof tr=="function";Zo?Rr=tr(Rr,{required:!!_i}):Ho&&!_i&&(Rr=ie.createElement(ie.Fragment,null,Rr,ie.createElement("span",{className:`${hi}-item-optional`,title:""},(Zi==null?void 0:Zi.optional)||((fi=jn.Z.Form)===null||fi===void 0?void 0:fi.optional))));const cs=se()({[`${hi}-item-required`]:_i,[`${hi}-item-required-mark-optional`]:Ho||Zo,[`${hi}-item-no-colon`]:!Zr});return ie.createElement(yt.Z,Object.assign({},wi,{className:sr}),ie.createElement("label",{htmlFor:gn,className:cs,title:typeof en=="string"?en:""},Rr))},oo=Bt(29679),Jr=Bt(19248),zr=Bt(96512),pr=Bt(58617);const Kr={success:oo.Z,warning:zr.Z,error:Jr.Z,validating:pr.Z};function hr(Re){let{children:hi,errors:en,warnings:gn,hasFeedback:Ve,validateStatus:ni,prefixCls:Bi,meta:_i,noStyle:tr}=Re;const sn=`${Bi}-item`,{feedbackIcons:fi}=ie.useContext(Lt.q3),Zi=Nn(en,gn,_i,null,!!Ve,ni),{isFormItemInput:Tr,status:ii}=ie.useContext(Lt.aM),xi=ie.useMemo(()=>{var fr;let mi;if(Ve){const nr=Ve!==!0&&Ve.icons||fi,sr=Zi&&((fr=nr==null?void 0:nr({status:Zi,errors:en,warnings:gn}))===null||fr===void 0?void 0:fr[Zi]),Rr=Zi&&Kr[Zi];mi=sr!==!1&&Rr?ie.createElement("span",{className:se()(`${sn}-feedback-icon`,`${sn}-feedback-icon-${Zi}`)},sr||ie.createElement(Rr,null)):null}let wi=!0,yi=Zi||"";return tr&&(wi=Tr,yi=(Zi!=null?Zi:ii)||""),{status:yi,errors:en,warnings:gn,hasFeedback:!!Ve,feedbackIcon:mi,isFormItemInput:wi}},[Zi,Ve,tr,Tr,ii]);return ie.createElement(Lt.aM.Provider,{value:xi},hi)}var Mo=function(Re,hi){var en={};for(var gn in Re)Object.prototype.hasOwnProperty.call(Re,gn)&&hi.indexOf(gn)<0&&(en[gn]=Re[gn]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,gn=Object.getOwnPropertySymbols(Re);Ve<gn.length;Ve++)hi.indexOf(gn[Ve])<0&&Object.prototype.propertyIsEnumerable.call(Re,gn[Ve])&&(en[gn[Ve]]=Re[gn[Ve]]);return en};function Xo(Re){const{prefixCls:hi,className:en,rootClassName:gn,style:Ve,help:ni,errors:Bi,warnings:_i,validateStatus:tr,meta:sn,hasFeedback:fi,hidden:Zi,children:Tr,fieldId:ii,required:xi,isRequired:fr,onSubItemMetaChange:mi}=Re,wi=Mo(Re,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),yi=`${hi}-item`,{requiredMark:nr}=ie.useContext(Lt.q3),sr=ie.useRef(null),Rr=kt(Bi),Zr=kt(_i),Xr=ni!=null,ei=!!(Xr||Bi.length||_i.length),Ho=!!sr.current&&(0,fe.Z)(sr.current),[Zo,cs]=ie.useState(null);(0,Ce.Z)(()=>{if(ei&&sr.current){const Lr=getComputedStyle(sr.current);cs(parseInt(Lr.marginBottom,10))}},[ei,Ho]);const ri=Lr=>{Lr||cs(null)},Er=function(){let Lr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Wr=Lr?Rr:sn.errors,wo=Lr?Zr:sn.warnings;return Nn(Wr,wo,sn,"",!!fi,tr)}(),no=se()(yi,en,gn,{[`${yi}-with-help`]:Xr||Rr.length||Zr.length,[`${yi}-has-feedback`]:Er&&fi,[`${yi}-has-success`]:Er==="success",[`${yi}-has-warning`]:Er==="warning",[`${yi}-has-error`]:Er==="error",[`${yi}-is-validating`]:Er==="validating",[`${yi}-hidden`]:Zi});return ie.createElement("div",{className:no,style:Ve,ref:sr},ie.createElement(Ct.Z,Object.assign({className:`${yi}-row`},(0,te.Z)(wi,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),ie.createElement(Fr,Object.assign({htmlFor:ii},Re,{requiredMark:nr,required:xi!=null?xi:fr,prefixCls:hi})),ie.createElement(je,Object.assign({},Re,sn,{errors:Rr,warnings:Zr,prefixCls:hi,status:Er,help:ni,marginBottom:Zo,onErrorVisibleChanged:ri}),ie.createElement(Lt.qI.Provider,{value:mi},ie.createElement(hr,{prefixCls:hi,meta:sn,errors:sn.errors,warnings:sn.warnings,hasFeedback:fi,validateStatus:Er},Tr)))),!!Zo&&ie.createElement("div",{className:`${yi}-margin-offset`,style:{marginBottom:-Zo}}))}const mo="__SPLIT__",Ts=null,ws=ie.memo(Re=>{let{children:hi}=Re;return hi},(Re,hi)=>Re.value===hi.value&&Re.update===hi.update&&Re.childProps.length===hi.childProps.length&&Re.childProps.every((en,gn)=>en===hi.childProps[gn]));function Vt(Re){return Re!=null}function xs(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Ss(Re){const{name:hi,noStyle:en,className:gn,dependencies:Ve,prefixCls:ni,shouldUpdate:Bi,rules:_i,children:tr,required:sn,label:fi,messageVariables:Zi,trigger:Tr="onChange",validateTrigger:ii,hidden:xi,help:fr}=Re,{getPrefixCls:mi}=ie.useContext(qe.E_),{name:wi}=ie.useContext(Lt.q3),yi=de(tr),nr=typeof yi=="function",sr=ie.useContext(Lt.qI),{validateTrigger:Rr}=ie.useContext(Yt.FieldContext),Zr=ii!==void 0?ii:Rr,Xr=Vt(hi),ei=mi("form",ni),[Ho,Zo]=he(ei),cs=ie.useContext(Yt.ListContext),ri=ie.useRef(),[or,Er]=be({}),[no,Lr]=(0,Li.Z)(()=>xs()),Wr=bi=>{const ns=cs==null?void 0:cs.getKey(bi.name);if(Lr(bi.destroy?xs():bi,!0),en&&fr!==!1&&sr){let qs=bi.name;if(bi.destroy)qs=ri.current||qs;else if(ns!==void 0){const[fs,Hs]=ns;qs=[fs].concat((0,bt.Z)(Hs)),ri.current=qs}sr(bi,qs)}},wo=(bi,ns)=>{Er(qs=>{const fs=Object.assign({},qs),Gs=[].concat((0,bt.Z)(bi.name.slice(0,-1)),(0,bt.Z)(ns)).join(mo);return bi.destroy?delete fs[Gs]:fs[Gs]=bi,fs})},[fo,xo]=ie.useMemo(()=>{const bi=(0,bt.Z)(no.errors),ns=(0,bt.Z)(no.warnings);return Object.values(or).forEach(qs=>{bi.push.apply(bi,(0,bt.Z)(qs.errors||[])),ns.push.apply(ns,(0,bt.Z)(qs.warnings||[]))}),[bi,ns]},[or,no.errors,no.warnings]),_r=De();function Ci(bi,ns,qs){return en&&!xi?ie.createElement(hr,{prefixCls:ei,hasFeedback:Re.hasFeedback,validateStatus:Re.validateStatus,meta:no,errors:fo,warnings:xo,noStyle:!0},bi):ie.createElement(Xo,Object.assign({key:"row"},Re,{className:se()(gn,Zo),prefixCls:ei,fieldId:ns,isRequired:qs,errors:fo,warnings:xo,meta:no,onSubItemMetaChange:wo}),bi)}if(!Xr&&!nr&&!Ve)return Ho(Ci(yi));let Qo={};return typeof fi=="string"?Qo.label=fi:hi&&(Qo.label=String(hi)),Zi&&(Qo=Object.assign(Object.assign({},Qo),Zi)),Ho(ie.createElement(Yt.Field,Object.assign({},Re,{messageVariables:Qo,trigger:Tr,validateTrigger:Zr,onMetaChange:Wr}),(bi,ns,qs)=>{const fs=Pe(hi).length&&ns?ns.name:[],Hs=En(fs,wi),Gs=sn!==void 0?sn:!!(_i&&_i.some(us=>{if(us&&typeof us=="object"&&us.required&&!us.warningOnly)return!0;if(typeof us=="function"){const rs=us(qs);return rs&&rs.required&&!rs.warningOnly}return!1})),si=Object.assign({},bi);let To=null;if(Array.isArray(yi)&&Xr)To=yi;else if(!(nr&&(!(Bi||Ve)||Xr))){if(!(Ve&&!nr&&!Xr))if((0,ue.l$)(yi)){const us=Object.assign(Object.assign({},yi.props),si);if(us.id||(us.id=Hs),fr||fo.length>0||xo.length>0||Re.extra){const ke=[];(fr||fo.length>0)&&ke.push(`${Hs}_help`),Re.extra&&ke.push(`${Hs}_extra`),us["aria-describedby"]=ke.join(" ")}fo.length>0&&(us["aria-invalid"]="true"),Gs&&(us["aria-required"]="true"),(0,Oi.Yr)(yi)&&(us.ref=_r(fs,yi)),new Set([].concat((0,bt.Z)(Pe(Tr)),(0,bt.Z)(Pe(Zr)))).forEach(ke=>{us[ke]=function(){for(var ts,ta,qa,ol,ml,yr=arguments.length,$r=new Array(yr),Jo=0;Jo<yr;Jo++)$r[Jo]=arguments[Jo];(qa=si[ke])===null||qa===void 0||(ts=qa).call.apply(ts,[si].concat($r)),(ml=(ol=yi.props)[ke])===null||ml===void 0||(ta=ml).call.apply(ta,[ol].concat($r))}});const Cr=[us["aria-required"],us["aria-invalid"],us["aria-describedby"]];To=ie.createElement(ws,{value:si[Re.valuePropName||"value"],update:yi,childProps:Cr},(0,ue.Tm)(yi,us))}else nr&&(Bi||Ve)&&!Xr?To=yi(qs):To=yi}return Ci(To,Hs,Gs)}))}const Ms=Ss;Ms.useStatus=Mt;var ma=Ms,Ea=function(Re,hi){var en={};for(var gn in Re)Object.prototype.hasOwnProperty.call(Re,gn)&&hi.indexOf(gn)<0&&(en[gn]=Re[gn]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,gn=Object.getOwnPropertySymbols(Re);Ve<gn.length;Ve++)hi.indexOf(gn[Ve])<0&&Object.prototype.propertyIsEnumerable.call(Re,gn[Ve])&&(en[gn[Ve]]=Re[gn[Ve]]);return en},ao=Re=>{var{prefixCls:hi,children:en}=Re,gn=Ea(Re,["prefixCls","children"]);const{getPrefixCls:Ve}=ie.useContext(qe.E_),ni=Ve("form",hi),Bi=ie.useMemo(()=>({prefixCls:ni,status:"error"}),[ni]);return ie.createElement(Yt.List,Object.assign({},gn),(_i,tr,sn)=>ie.createElement(Lt.Rk.Provider,{value:Bi},en(_i.map(fi=>Object.assign(Object.assign({},fi),{fieldKey:fi.key})),tr,{errors:sn.errors,warnings:sn.warnings})))};function br(){const{form:Re}=(0,ie.useContext)(Lt.q3);return Re}const Un=an;Un.Item=ma,Un.List=ao,Un.ErrorList=We,Un.useForm=kn,Un.useFormInstance=br,Un.useWatch=Yt.useWatch,Un.Provider=Lt.RV,Un.create=()=>{};var On=Un},8628:function(ui,Cn,Bt){"use strict";var bt=Bt(59301),ge=Bt(34280),se=Bt(56762),Me=Bt(69507);function ie(){let ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const Lt=(0,bt.useRef)({}),kt=(0,se.Z)(),Jt=(0,Me.ZP)();return(0,ge.Z)(()=>{const St=Jt.subscribe(Wt=>{Lt.current=Wt,ae&&kt()});return()=>Jt.unsubscribe(St)},[]),Lt.current}Cn.Z=ie},9432:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return ut},n:function(){return lt}});var bt=Bt(19248),ge=Bt(92310),se=Bt.n(ge),Me=Bt(93681),ie=Bt(8654),ae=Bt(59301),Lt=Bt(19080),kt=Bt(36355),Jt=Bt(1684),St=Bt(19716),Wt=Bt(32441),Gt=Bt(33234),qt=Bt(59412),wt=Bt(9937);function et(dt){return!!(dt.prefix||dt.suffix||dt.allowClear)}var tt=function(dt,pt){var Ft={};for(var Tt in dt)Object.prototype.hasOwnProperty.call(dt,Tt)&&pt.indexOf(Tt)<0&&(Ft[Tt]=dt[Tt]);if(dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _t=0,Tt=Object.getOwnPropertySymbols(dt);_t<Tt.length;_t++)pt.indexOf(Tt[_t])<0&&Object.prototype.propertyIsEnumerable.call(dt,Tt[_t])&&(Ft[Tt[_t]]=dt[Tt[_t]]);return Ft};function lt(dt,pt){if(!dt)return;dt.focus(pt);const{cursor:Ft}=pt||{};if(Ft){const Tt=dt.value.length;switch(Ft){case"start":dt.setSelectionRange(0,0);break;case"end":dt.setSelectionRange(Tt,Tt);break;default:dt.setSelectionRange(0,Tt);break}}}var ut=(0,ae.forwardRef)((dt,pt)=>{var Ft;const{prefixCls:Tt,bordered:_t=!0,status:re,size:he,disabled:Ae,onBlur:Fe,onFocus:ee,suffix:We,allowClear:Yt,addonAfter:qe,addonBefore:Ge,className:Oe,style:Ze,styles:Qe,rootClassName:we,onChange:oe,classNames:Pe}=dt,En=tt(dt,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Nn,direction:Xe,input:kn}=ae.useContext(kt.E_),Vn=Nn("input",Tt),Ai=(0,ae.useRef)(null),[Wn,Si]=(0,wt.ZP)(Vn),{compactSize:an,compactItemClassnames:Li}=(0,Gt.ri)(Vn,Xe),Oi=(0,St.Z)(xe=>{var Rt;return(Rt=he!=null?he:an)!==null&&Rt!==void 0?Rt:xe}),ue=ae.useContext(Jt.Z),Pn=Ae!=null?Ae:ue,{status:de,hasFeedback:Dt,feedbackIcon:Mt}=(0,ae.useContext)(Wt.aM),zt=(0,Lt.F)(de,re),be=et(dt)||!!Dt,De=(0,ae.useRef)(be);(0,ae.useEffect)(()=>{var xe;be&&De.current,De.current=be},[be]);const fe=(0,qt.Z)(Ai,!0),Ce=xe=>{fe(),Fe==null||Fe(xe)},te=xe=>{fe(),ee==null||ee(xe)},Ct=xe=>{fe(),oe==null||oe(xe)},yt=(Dt||We)&&ae.createElement(ae.Fragment,null,We,Dt&&Mt);let $t;return typeof Yt=="object"&&(Yt!=null&&Yt.clearIcon)?$t=Yt:Yt&&($t={clearIcon:ae.createElement(bt.Z,null)}),Wn(ae.createElement(Me.default,Object.assign({ref:(0,ie.sQ)(pt,Ai),prefixCls:Vn,autoComplete:kn==null?void 0:kn.autoComplete},En,{disabled:Pn,onBlur:Ce,onFocus:te,style:Object.assign(Object.assign({},kn==null?void 0:kn.style),Ze),styles:Object.assign(Object.assign({},kn==null?void 0:kn.styles),Qe),suffix:yt,allowClear:$t,className:se()(Oe,we,Li,kn==null?void 0:kn.className),onChange:Ct,addonAfter:qe&&ae.createElement(Gt.BR,null,ae.createElement(Wt.Ux,{override:!0,status:!0},qe)),addonBefore:Ge&&ae.createElement(Gt.BR,null,ae.createElement(Wt.Ux,{override:!0,status:!0},Ge)),classNames:Object.assign(Object.assign(Object.assign({},Pe),kn==null?void 0:kn.classNames),{input:se()({[`${Vn}-sm`]:Oi==="small",[`${Vn}-lg`]:Oi==="large",[`${Vn}-rtl`]:Xe==="rtl",[`${Vn}-borderless`]:!_t},!be&&(0,Lt.Z)(Vn,zt),Pe==null?void 0:Pe.input,(Ft=kn==null?void 0:kn.classNames)===null||Ft===void 0?void 0:Ft.input,Si)}),classes:{affixWrapper:se()({[`${Vn}-affix-wrapper-sm`]:Oi==="small",[`${Vn}-affix-wrapper-lg`]:Oi==="large",[`${Vn}-affix-wrapper-rtl`]:Xe==="rtl",[`${Vn}-affix-wrapper-borderless`]:!_t},(0,Lt.Z)(`${Vn}-affix-wrapper`,zt,Dt),Si),wrapper:se()({[`${Vn}-group-rtl`]:Xe==="rtl"},Si),group:se()({[`${Vn}-group-wrapper-sm`]:Oi==="small",[`${Vn}-group-wrapper-lg`]:Oi==="large",[`${Vn}-group-wrapper-rtl`]:Xe==="rtl",[`${Vn}-group-wrapper-disabled`]:Pn},(0,Lt.Z)(`${Vn}-group-wrapper`,zt,Dt),Si)}})))})},1643:function(ui,Cn,Bt){"use strict";var bt=Bt(19248),ge=Bt(92310),se=Bt.n(ge),Me=Bt(9296),ie=Bt(59301),ae=Bt(19080),Lt=Bt(36355),kt=Bt(1684),Jt=Bt(19716),St=Bt(32441),Wt=Bt(9432),Gt=Bt(9937),qt=function(et,tt){var lt={};for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&tt.indexOf(rt)<0&&(lt[rt]=et[rt]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,rt=Object.getOwnPropertySymbols(et);ut<rt.length;ut++)tt.indexOf(rt[ut])<0&&Object.prototype.propertyIsEnumerable.call(et,rt[ut])&&(lt[rt[ut]]=et[rt[ut]]);return lt};const wt=(0,ie.forwardRef)((et,tt)=>{const{prefixCls:lt,bordered:rt=!0,size:ut,disabled:dt,status:pt,allowClear:Ft,showCount:Tt,classNames:_t,rootClassName:re,className:he}=et,Ae=qt(et,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Fe,direction:ee}=ie.useContext(Lt.E_),We=(0,Jt.Z)(ut),Yt=ie.useContext(kt.Z),qe=dt!=null?dt:Yt,{status:Ge,hasFeedback:Oe,feedbackIcon:Ze}=ie.useContext(St.aM),Qe=(0,ae.F)(Ge,pt),we=ie.useRef(null);ie.useImperativeHandle(tt,()=>{var Xe;return{resizableTextArea:(Xe=we.current)===null||Xe===void 0?void 0:Xe.resizableTextArea,focus:kn=>{var Vn,Ai;(0,Wt.n)((Ai=(Vn=we.current)===null||Vn===void 0?void 0:Vn.resizableTextArea)===null||Ai===void 0?void 0:Ai.textArea,kn)},blur:()=>{var kn;return(kn=we.current)===null||kn===void 0?void 0:kn.blur()}}});const oe=Fe("input",lt);let Pe;typeof Ft=="object"&&(Ft!=null&&Ft.clearIcon)?Pe=Ft:Ft&&(Pe={clearIcon:ie.createElement(bt.Z,null)});const[En,Nn]=(0,Gt.ZP)(oe);return En(ie.createElement(Me.default,Object.assign({},Ae,{disabled:qe,allowClear:Pe,className:se()(he,re),classes:{affixWrapper:se()(`${oe}-textarea-affix-wrapper`,{[`${oe}-affix-wrapper-rtl`]:ee==="rtl",[`${oe}-affix-wrapper-borderless`]:!rt,[`${oe}-affix-wrapper-sm`]:We==="small",[`${oe}-affix-wrapper-lg`]:We==="large",[`${oe}-textarea-show-count`]:Tt},(0,ae.Z)(`${oe}-affix-wrapper`,Qe),Nn)},classNames:Object.assign(Object.assign({},_t),{textarea:se()({[`${oe}-borderless`]:!rt,[`${oe}-sm`]:We==="small",[`${oe}-lg`]:We==="large"},(0,ae.Z)(oe,Qe),Nn,_t==null?void 0:_t.textarea)}),prefixCls:oe,suffix:Oe&&ie.createElement("span",{className:`${oe}-textarea-suffix`},Ze),showCount:Tt,ref:we})))});Cn.Z=wt},59412:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return ge}});var bt=Bt(59301);function ge(se,Me){const ie=(0,bt.useRef)([]),ae=()=>{ie.current.push(setTimeout(()=>{var Lt,kt,Jt,St;!((Lt=se.current)===null||Lt===void 0)&&Lt.input&&((kt=se.current)===null||kt===void 0?void 0:kt.input.getAttribute("type"))==="password"&&(!((Jt=se.current)===null||Jt===void 0)&&Jt.input.hasAttribute("value"))&&((St=se.current)===null||St===void 0||St.input.removeAttribute("value"))}))};return(0,bt.useEffect)(()=>(Me&&ae(),()=>ie.current.forEach(Lt=>{Lt&&clearTimeout(Lt)})),[]),ae}},92832:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{default:function(){return We}});var bt=Bt(92310),ge=Bt.n(bt),se=Bt(59301),Me=Bt(36355),ie=Bt(32441),ae=Bt(9937),kt=Yt=>{const{getPrefixCls:qe,direction:Ge}=(0,se.useContext)(Me.E_),{prefixCls:Oe,className:Ze}=Yt,Qe=qe("input-group",Oe),we=qe("input"),[oe,Pe]=(0,ae.ZP)(we),En=ge()(Qe,{[`${Qe}-lg`]:Yt.size==="large",[`${Qe}-sm`]:Yt.size==="small",[`${Qe}-compact`]:Yt.compact,[`${Qe}-rtl`]:Ge==="rtl"},Pe,Ze),Nn=(0,se.useContext)(ie.aM),Xe=(0,se.useMemo)(()=>Object.assign(Object.assign({},Nn),{isFormItemInput:!1}),[Nn]);return oe(se.createElement("span",{className:En,style:Yt.style,onMouseEnter:Yt.onMouseEnter,onMouseLeave:Yt.onMouseLeave,onFocus:Yt.onFocus,onBlur:Yt.onBlur},se.createElement(ie.aM.Provider,{value:Xe},Yt.children)))},Jt=Bt(9432),St=Bt(73331),Wt=Bt(15277),Gt=Bt(2738),qt=Bt(8654),wt=Bt(59412),et=function(Yt,qe){var Ge={};for(var Oe in Yt)Object.prototype.hasOwnProperty.call(Yt,Oe)&&qe.indexOf(Oe)<0&&(Ge[Oe]=Yt[Oe]);if(Yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,Oe=Object.getOwnPropertySymbols(Yt);Ze<Oe.length;Ze++)qe.indexOf(Oe[Ze])<0&&Object.prototype.propertyIsEnumerable.call(Yt,Oe[Ze])&&(Ge[Oe[Ze]]=Yt[Oe[Ze]]);return Ge};const tt=Yt=>Yt?se.createElement(Wt.Z,null):se.createElement(St.Z,null),lt={click:"onClick",hover:"onMouseOver"};var ut=se.forwardRef((Yt,qe)=>{const{visibilityToggle:Ge=!0}=Yt,Oe=typeof Ge=="object"&&Ge.visible!==void 0,[Ze,Qe]=(0,se.useState)(()=>Oe?Ge.visible:!1),we=(0,se.useRef)(null);se.useEffect(()=>{Oe&&Qe(Ge.visible)},[Oe,Ge]);const oe=(0,wt.Z)(we),Pe=()=>{const{disabled:Pn}=Yt;Pn||(Ze&&oe(),Qe(de=>{var Dt;const Mt=!de;return typeof Ge=="object"&&((Dt=Ge.onVisibleChange)===null||Dt===void 0||Dt.call(Ge,Mt)),Mt}))},En=Pn=>{const{action:de="click",iconRender:Dt=tt}=Yt,Mt=lt[de]||"",zt=Dt(Ze),be={[Mt]:Pe,className:`${Pn}-icon`,key:"passwordIcon",onMouseDown:De=>{De.preventDefault()},onMouseUp:De=>{De.preventDefault()}};return se.cloneElement(se.isValidElement(zt)?zt:se.createElement("span",null,zt),be)},{className:Nn,prefixCls:Xe,inputPrefixCls:kn,size:Vn}=Yt,Ai=et(Yt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Wn}=se.useContext(Me.E_),Si=Wn("input",kn),an=Wn("input-password",Xe),Li=Ge&&En(an),Oi=ge()(an,Nn,{[`${an}-${Vn}`]:!!Vn}),ue=Object.assign(Object.assign({},(0,Gt.Z)(Ai,["suffix","iconRender","visibilityToggle"])),{type:Ze?"text":"password",className:Oi,prefixCls:Si,suffix:Li});return Vn&&(ue.size=Vn),se.createElement(Jt.Z,Object.assign({ref:(0,qt.sQ)(qe,we)},ue))}),dt=Bt(47472),pt=Bt(92343),Ft=Bt(3113),Tt=Bt(19716),_t=Bt(33234),re=function(Yt,qe){var Ge={};for(var Oe in Yt)Object.prototype.hasOwnProperty.call(Yt,Oe)&&qe.indexOf(Oe)<0&&(Ge[Oe]=Yt[Oe]);if(Yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,Oe=Object.getOwnPropertySymbols(Yt);Ze<Oe.length;Ze++)qe.indexOf(Oe[Ze])<0&&Object.prototype.propertyIsEnumerable.call(Yt,Oe[Ze])&&(Ge[Oe[Ze]]=Yt[Oe[Ze]]);return Ge},Ae=se.forwardRef((Yt,qe)=>{const{prefixCls:Ge,inputPrefixCls:Oe,className:Ze,size:Qe,suffix:we,enterButton:oe=!1,addonAfter:Pe,loading:En,disabled:Nn,onSearch:Xe,onChange:kn,onCompositionStart:Vn,onCompositionEnd:Ai}=Yt,Wn=re(Yt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Si,direction:an}=se.useContext(Me.E_),Li=se.useRef(!1),Oi=Si("input-search",Ge),ue=Si("input",Oe),{compactSize:Pn}=(0,_t.ri)(Oi,an),de=(0,Tt.Z)(je=>{var fn;return(fn=Qe!=null?Qe:Pn)!==null&&fn!==void 0?fn:je}),Dt=se.useRef(null),Mt=je=>{je&&je.target&&je.type==="click"&&Xe&&Xe(je.target.value,je,{source:"clear"}),kn&&kn(je)},zt=je=>{var fn;document.activeElement===((fn=Dt.current)===null||fn===void 0?void 0:fn.input)&&je.preventDefault()},be=je=>{var fn,jn;Xe&&Xe((jn=(fn=Dt.current)===null||fn===void 0?void 0:fn.input)===null||jn===void 0?void 0:jn.value,je,{source:"input"})},De=je=>{Li.current||En||be(je)},fe=typeof oe=="boolean"?se.createElement(dt.Z,null):null,Ce=`${Oi}-button`;let te;const Ct=oe||{},yt=Ct.type&&Ct.type.__ANT_BUTTON===!0;yt||Ct.type==="button"?te=(0,pt.Tm)(Ct,Object.assign({onMouseDown:zt,onClick:je=>{var fn,jn;(jn=(fn=Ct==null?void 0:Ct.props)===null||fn===void 0?void 0:fn.onClick)===null||jn===void 0||jn.call(fn,je),be(je)},key:"enterButton"},yt?{className:Ce,size:de}:{})):te=se.createElement(Ft.ZP,{className:Ce,type:oe?"primary":void 0,size:de,disabled:Nn,key:"enterButton",onMouseDown:zt,onClick:be,loading:En,icon:fe},oe),Pe&&(te=[te,(0,pt.Tm)(Pe,{key:"addonAfter"})]);const $t=ge()(Oi,{[`${Oi}-rtl`]:an==="rtl",[`${Oi}-${de}`]:!!de,[`${Oi}-with-button`]:!!oe},Ze),xe=je=>{Li.current=!0,Vn==null||Vn(je)},Rt=je=>{Li.current=!1,Ai==null||Ai(je)};return se.createElement(Jt.Z,Object.assign({ref:(0,qt.sQ)(Dt,qe),onPressEnter:De},Wn,{size:de,onCompositionStart:xe,onCompositionEnd:Rt,prefixCls:ue,addonAfter:te,suffix:we,onChange:Mt,className:$t,disabled:Nn}))}),Fe=Bt(1643);const ee=Jt.Z;ee.Group=kt,ee.Search=Ae,ee.TextArea=Fe.Z,ee.Password=ut;var We=ee},45818:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{D:function(){return dt},Z:function(){return Tt}});var bt=Bt(72308),ge=Bt(59301),se={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"},Me=se,ie=Bt(7657),ae=function(re,he){return ge.createElement(ie.Z,(0,bt.Z)({},re,{ref:he,icon:Me}))},Lt=ge.forwardRef(ae),kt=Lt,Jt=Bt(33853),St=Bt(38819),Wt=Bt(92310),Gt=Bt.n(Wt),qt=Bt(2738),et=_t=>!isNaN(parseFloat(_t))&&isFinite(_t),tt=Bt(36355),lt=Bt(84966),rt=function(_t,re){var he={};for(var Ae in _t)Object.prototype.hasOwnProperty.call(_t,Ae)&&re.indexOf(Ae)<0&&(he[Ae]=_t[Ae]);if(_t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,Ae=Object.getOwnPropertySymbols(_t);Fe<Ae.length;Fe++)re.indexOf(Ae[Fe])<0&&Object.prototype.propertyIsEnumerable.call(_t,Ae[Fe])&&(he[Ae[Fe]]=_t[Ae[Fe]]);return he};const ut={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},dt=ge.createContext({}),pt=(()=>{let _t=0;return function(){let re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return _t+=1,`${re}${_t}`}})();var Tt=ge.forwardRef((_t,re)=>{const{prefixCls:he,className:Ae,trigger:Fe,children:ee,defaultCollapsed:We=!1,theme:Yt="dark",style:qe={},collapsible:Ge=!1,reverseArrow:Oe=!1,width:Ze=200,collapsedWidth:Qe=80,zeroWidthTriggerStyle:we,breakpoint:oe,onCollapse:Pe,onBreakpoint:En}=_t,Nn=rt(_t,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Xe}=(0,ge.useContext)(lt.Gs),[kn,Vn]=(0,ge.useState)("collapsed"in _t?_t.collapsed:We),[Ai,Wn]=(0,ge.useState)(!1);(0,ge.useEffect)(()=>{"collapsed"in _t&&Vn(_t.collapsed)},[_t.collapsed]);const Si=(de,Dt)=>{"collapsed"in _t||Vn(de),Pe==null||Pe(de,Dt)},an=(0,ge.useRef)();an.current=de=>{Wn(de.matches),En==null||En(de.matches),kn!==de.matches&&Si(de.matches,"responsive")},(0,ge.useEffect)(()=>{function de(Mt){return an.current(Mt)}let Dt;if(typeof window!="undefined"){const{matchMedia:Mt}=window;if(Mt&&oe&&oe in ut){Dt=Mt(`(max-width: ${ut[oe]})`);try{Dt.addEventListener("change",de)}catch(zt){Dt.addListener(de)}de(Dt)}}return()=>{try{Dt==null||Dt.removeEventListener("change",de)}catch(Mt){Dt==null||Dt.removeListener(de)}}},[oe]),(0,ge.useEffect)(()=>{const de=pt("ant-sider-");return Xe.addSider(de),()=>Xe.removeSider(de)},[]);const Li=()=>{Si(!kn,"clickTrigger")},{getPrefixCls:Oi}=(0,ge.useContext)(tt.E_),ue=()=>{const de=Oi("layout-sider",he),Dt=(0,qt.Z)(Nn,["collapsed"]),Mt=kn?Qe:Ze,zt=et(Mt)?`${Mt}px`:String(Mt),be=parseFloat(String(Qe||0))===0?ge.createElement("span",{onClick:Li,className:Gt()(`${de}-zero-width-trigger`,`${de}-zero-width-trigger-${Oe?"right":"left"}`),style:we},Fe||ge.createElement(kt,null)):null,Ce={expanded:Oe?ge.createElement(St.Z,null):ge.createElement(Jt.Z,null),collapsed:Oe?ge.createElement(Jt.Z,null):ge.createElement(St.Z,null)}[kn?"collapsed":"expanded"],te=Fe!==null?be||ge.createElement("div",{className:`${de}-trigger`,onClick:Li,style:{width:zt}},Fe||Ce):null,Ct=Object.assign(Object.assign({},qe),{flex:`0 0 ${zt}`,maxWidth:zt,minWidth:zt,width:zt}),yt=Gt()(de,`${de}-${Yt}`,{[`${de}-collapsed`]:!!kn,[`${de}-has-trigger`]:Ge&&Fe!==null&&!be,[`${de}-below`]:!!Ai,[`${de}-zero-width`]:parseFloat(zt)===0},Ae);return ge.createElement("aside",Object.assign({className:yt},Dt,{style:Ct,ref:re}),ge.createElement("div",{className:`${de}-children`},ee),Ge||Ai&&be?te:null)},Pn=ge.useMemo(()=>({siderCollapsed:kn}),[kn]);return ge.createElement(dt.Provider,{value:Pn},ue())})},84966:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{VY:function(){return dt},$_:function(){return ut},h4:function(){return rt},Gs:function(){return qt},ZP:function(){return pt}});var bt=Bt(80702),ge=Bt(92310),se=Bt.n(ge),Me=Bt(2738),ie=Bt(59301),ae=Bt(36355),Lt=Bt(83116),Jt=Ft=>{const{componentCls:Tt,bodyBg:_t,lightSiderBg:re,lightTriggerBg:he,lightTriggerColor:Ae}=Ft;return{[`${Tt}-sider-light`]:{background:re,[`${Tt}-sider-trigger`]:{color:Ae,background:he},[`${Tt}-sider-zero-width-trigger`]:{color:Ae,background:he,border:`1px solid ${_t}`,borderInlineStart:0}}}};const St=Ft=>{const{antCls:Tt,componentCls:_t,colorText:re,triggerColor:he,footerBg:Ae,triggerBg:Fe,headerHeight:ee,headerPadding:We,headerColor:Yt,footerPadding:qe,triggerHeight:Ge,zeroTriggerHeight:Oe,zeroTriggerWidth:Ze,motionDurationMid:Qe,motionDurationSlow:we,fontSize:oe,borderRadius:Pe,bodyBg:En,headerBg:Nn,siderBg:Xe}=Ft;return{[_t]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:En,"&, *":{boxSizing:"border-box"},[`&${_t}-has-sider`]:{flexDirection:"row",[`> ${_t}, > ${_t}-content`]:{width:0}},[`${_t}-header, &${_t}-footer`]:{flex:"0 0 auto"},[`${_t}-sider`]:{position:"relative",minWidth:0,background:Xe,transition:`all ${Qe}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Tt}-menu${Tt}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Ge},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Ge,color:he,lineHeight:`${Ge}px`,textAlign:"center",background:Fe,cursor:"pointer",transition:`all ${Qe}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:ee,insetInlineEnd:-Ze,zIndex:1,width:Ze,height:Oe,color:he,fontSize:Ft.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Xe,borderStartStartRadius:0,borderStartEndRadius:Pe,borderEndEndRadius:Pe,borderEndStartRadius:0,cursor:"pointer",transition:`background ${we} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${we}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Ze,borderStartStartRadius:Pe,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Pe}}}}},Jt(Ft)),{"&-rtl":{direction:"rtl"}}),[`${_t}-header`]:{height:ee,padding:We,color:Yt,lineHeight:`${ee}px`,background:Nn,[`${Tt}-menu`]:{lineHeight:"inherit"}},[`${_t}-footer`]:{padding:qe,color:re,fontSize:oe,background:Ae},[`${_t}-content`]:{flex:"auto",minHeight:0}}};var Wt=(0,Lt.Z)("Layout",Ft=>[St(Ft)],Ft=>{const{colorBgLayout:Tt,controlHeight:_t,controlHeightLG:re,colorText:he,controlHeightSM:Ae,marginXXS:Fe,colorTextLightSolid:ee,colorBgContainer:We}=Ft,Yt=re*1.25;return{colorBgHeader:"#001529",colorBgBody:Tt,colorBgTrigger:"#002140",bodyBg:Tt,headerBg:"#001529",headerHeight:_t*2,headerPadding:`0 ${Yt}px`,headerColor:he,footerPadding:`${Ae}px ${Yt}px`,footerBg:Tt,siderBg:"#001529",triggerHeight:re+Fe*2,triggerBg:"#002140",triggerColor:ee,zeroTriggerWidth:re,zeroTriggerHeight:re,lightSiderBg:We,lightTriggerBg:We,lightTriggerColor:he}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Gt=function(Ft,Tt){var _t={};for(var re in Ft)Object.prototype.hasOwnProperty.call(Ft,re)&&Tt.indexOf(re)<0&&(_t[re]=Ft[re]);if(Ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,re=Object.getOwnPropertySymbols(Ft);he<re.length;he++)Tt.indexOf(re[he])<0&&Object.prototype.propertyIsEnumerable.call(Ft,re[he])&&(_t[re[he]]=Ft[re[he]]);return _t};const qt=ie.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function wt(Ft){let{suffixCls:Tt,tagName:_t,displayName:re}=Ft;return he=>ie.forwardRef((Fe,ee)=>ie.createElement(he,Object.assign({ref:ee,suffixCls:Tt,tagName:_t},Fe)))}const et=ie.forwardRef((Ft,Tt)=>{const{prefixCls:_t,suffixCls:re,className:he,tagName:Ae}=Ft,Fe=Gt(Ft,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:ee}=ie.useContext(ae.E_),We=ee("layout",_t),[Yt,qe]=Wt(We),Ge=re?`${We}-${re}`:We;return Yt(ie.createElement(Ae,Object.assign({className:se()(_t||Ge,he,qe),ref:Tt},Fe)))}),tt=ie.forwardRef((Ft,Tt)=>{const{direction:_t}=ie.useContext(ae.E_),[re,he]=ie.useState([]),{prefixCls:Ae,className:Fe,rootClassName:ee,children:We,hasSider:Yt,tagName:qe,style:Ge}=Ft,Oe=Gt(Ft,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Ze=(0,Me.Z)(Oe,["suffixCls"]),{getPrefixCls:Qe,layout:we}=ie.useContext(ae.E_),oe=Qe("layout",Ae),[Pe,En]=Wt(oe),Nn=se()(oe,{[`${oe}-has-sider`]:typeof Yt=="boolean"?Yt:re.length>0,[`${oe}-rtl`]:_t==="rtl"},we==null?void 0:we.className,Fe,ee,En),Xe=ie.useMemo(()=>({siderHook:{addSider:kn=>{he(Vn=>[].concat((0,bt.Z)(Vn),[kn]))},removeSider:kn=>{he(Vn=>Vn.filter(Ai=>Ai!==kn))}}}),[]);return Pe(ie.createElement(qt.Provider,{value:Xe},ie.createElement(qe,Object.assign({ref:Tt,className:Nn,style:Object.assign(Object.assign({},we==null?void 0:we.style),Ge)},Ze),We)))}),lt=wt({tagName:"div",displayName:"Layout"})(tt),rt=wt({suffixCls:"header",tagName:"header",displayName:"Header"})(et),ut=wt({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(et),dt=wt({suffixCls:"content",tagName:"main",displayName:"Content"})(et);var pt=lt},40875:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{J:function(){return ae}});var bt=Bt(59301),ge=Bt(33234),se=Bt(70425),Me=function(Lt,kt){var Jt={};for(var St in Lt)Object.prototype.hasOwnProperty.call(Lt,St)&&kt.indexOf(St)<0&&(Jt[St]=Lt[St]);if(Lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Wt=0,St=Object.getOwnPropertySymbols(Lt);Wt<St.length;Wt++)kt.indexOf(St[Wt])<0&&Object.prototype.propertyIsEnumerable.call(Lt,St[Wt])&&(Jt[St[Wt]]=Lt[St[Wt]]);return Jt};const ie=bt.createContext(null),ae=bt.forwardRef((Lt,kt)=>{const{children:Jt}=Lt,St=Me(Lt,["children"]),Wt=bt.useContext(ie),Gt=bt.useMemo(()=>Object.assign(Object.assign({},Wt),St),[Wt,St.prefixCls,St.mode,St.selectable]);return bt.createElement(ie.Provider,{value:Gt},bt.createElement(ge.BR,null,(0,se.supportNodeRef)(Jt)?bt.cloneElement(Jt,{ref:kt}):Jt))});Cn.Z=ie},20834:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{default:function(){return Pn}});var bt=Bt(15285),ge=Bt(59301),se=Bt(45818),Me=Bt(92310),ie=Bt.n(Me),ae=Bt(36355),Lt=function(de,Dt){var Mt={};for(var zt in de)Object.prototype.hasOwnProperty.call(de,zt)&&Dt.indexOf(zt)<0&&(Mt[zt]=de[zt]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,zt=Object.getOwnPropertySymbols(de);be<zt.length;be++)Dt.indexOf(zt[be])<0&&Object.prototype.propertyIsEnumerable.call(de,zt[be])&&(Mt[zt[be]]=de[zt[be]]);return Mt},Jt=de=>{const{prefixCls:Dt,className:Mt,dashed:zt}=de,be=Lt(de,["prefixCls","className","dashed"]),{getPrefixCls:De}=ge.useContext(ae.E_),fe=De("menu",Dt),Ce=ie()({[`${fe}-item-divider-dashed`]:!!zt},Mt);return ge.createElement(bt.iz,Object.assign({className:Ce},be))},St=Bt(11592),Wt=Bt(2738),Gt=Bt(6848),qt=Bt(92343),et=(0,ge.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),lt=de=>{var Dt;const{className:Mt,children:zt,icon:be,title:De,danger:fe}=de,{prefixCls:Ce,firstLevel:te,direction:Ct,disableMenuItemTitleTooltip:yt,inlineCollapsed:$t}=ge.useContext(et),xe=ci=>{const Ji=ge.createElement("span",{className:`${Ce}-title-content`},zt);return(!be||(0,qt.l$)(zt)&&zt.type==="span")&&zt&&ci&&te&&typeof zt=="string"?ge.createElement("div",{className:`${Ce}-inline-collapsed-noicon`},zt.charAt(0)):Ji},{siderCollapsed:Rt}=ge.useContext(se.D);let je=De;typeof De=="undefined"?je=te?zt:"":De===!1&&(je="");const fn={title:je};!Rt&&!$t&&(fn.title=null,fn.open=!1);const jn=(0,St.Z)(zt).length;let bn=ge.createElement(bt.ck,Object.assign({},(0,Wt.Z)(de,["title","icon","danger"]),{className:ie()({[`${Ce}-item-danger`]:fe,[`${Ce}-item-only-child`]:(be?jn+1:jn)===1},Mt),title:typeof De=="string"?De:void 0}),(0,qt.Tm)(be,{className:ie()((0,qt.l$)(be)?(Dt=be.props)===null||Dt===void 0?void 0:Dt.className:"",`${Ce}-item-icon`)}),xe($t));return yt||(bn=ge.createElement(Gt.Z,Object.assign({},fn,{placement:Ct==="rtl"?"left":"right",overlayClassName:`${Ce}-inline-collapsed-tooltip`}),bn)),bn},ut=de=>{var Dt;const{popupClassName:Mt,icon:zt,title:be,theme:De}=de,fe=ge.useContext(et),{prefixCls:Ce,inlineCollapsed:te,theme:Ct}=fe,yt=(0,bt.Xl)();let $t;if(!zt)$t=te&&!yt.length&&be&&typeof be=="string"?ge.createElement("div",{className:`${Ce}-inline-collapsed-noicon`},be.charAt(0)):ge.createElement("span",{className:`${Ce}-title-content`},be);else{const Rt=(0,qt.l$)(be)&&be.type==="span";$t=ge.createElement(ge.Fragment,null,(0,qt.Tm)(zt,{className:ie()((0,qt.l$)(zt)?(Dt=zt.props)===null||Dt===void 0?void 0:Dt.className:"",`${Ce}-item-icon`)}),Rt?be:ge.createElement("span",{className:`${Ce}-title-content`},be))}const xe=ge.useMemo(()=>Object.assign(Object.assign({},fe),{firstLevel:!1}),[fe]);return ge.createElement(et.Provider,{value:xe},ge.createElement(bt.Wd,Object.assign({},(0,Wt.Z)(de,["icon"]),{title:$t,popupClassName:ie()(Ce,Mt,`${Ce}-${De||Ct}`)})))},dt=Bt(18785),pt=Bt(70425),Ft=Bt(62892),Tt=Bt(40875),_t=function(de,Dt){var Mt={};for(var zt in de)Object.prototype.hasOwnProperty.call(de,zt)&&Dt.indexOf(zt)<0&&(Mt[zt]=de[zt]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,zt=Object.getOwnPropertySymbols(de);be<zt.length;be++)Dt.indexOf(zt[be])<0&&Object.prototype.propertyIsEnumerable.call(de,zt[be])&&(Mt[zt[be]]=de[zt[be]]);return Mt};function re(de){return(de||[]).map((Dt,Mt)=>{if(Dt&&typeof Dt=="object"){const zt=Dt,{label:be,children:De,key:fe,type:Ce}=zt,te=_t(zt,["label","children","key","type"]),Ct=fe!=null?fe:`tmp-${Mt}`;return De||Ce==="group"?Ce==="group"?ge.createElement(bt.BW,Object.assign({key:Ct},te,{title:be}),re(De)):ge.createElement(ut,Object.assign({key:Ct},te,{title:be}),re(De)):Ce==="divider"?ge.createElement(Jt,Object.assign({key:Ct},te)):ge.createElement(lt,Object.assign({key:Ct},te),be)}return null}).filter(Dt=>Dt)}function he(de){return ge.useMemo(()=>de&&re(de),[de])}var Ae=Bt(64993),Fe=Bt(17313),ee=Bt(8378),We=Bt(13826),Yt=Bt(29878),qe=Bt(83116),Ge=Bt(37613),Ze=de=>{const{componentCls:Dt,motionDurationSlow:Mt,horizontalLineHeight:zt,colorSplit:be,lineWidth:De,lineType:fe,itemPaddingInline:Ce}=de;return{[`${Dt}-horizontal`]:{lineHeight:zt,border:0,borderBottom:`${De}px ${fe} ${be}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Dt}-item, ${Dt}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Ce},[`> ${Dt}-item:hover,
|
|
|
> ${Dt}-item-active,
|
|
|
> ${Dt}-submenu ${Dt}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Dt}-item, ${Dt}-submenu-title`]:{transition:[`border-color ${Mt}`,`background ${Mt}`].join(",")},[`${Dt}-submenu-arrow`]:{display:"none"}}}},we=de=>{let{componentCls:Dt,menuArrowOffset:Mt}=de;return{[`${Dt}-rtl`]:{direction:"rtl"},[`${Dt}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Dt}-rtl${Dt}-vertical,
|
|
|
${Dt}-submenu-rtl ${Dt}-vertical`]:{[`${Dt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Mt})`},"&::after":{transform:`rotate(45deg) translateY(${Mt})`}}}}};const oe=de=>Object.assign({},(0,Fe.oN)(de));var En=(de,Dt)=>{const{componentCls:Mt,itemColor:zt,itemSelectedColor:be,groupTitleColor:De,itemBg:fe,subMenuItemBg:Ce,itemSelectedBg:te,activeBarHeight:Ct,activeBarWidth:yt,activeBarBorderWidth:$t,motionDurationSlow:xe,motionEaseInOut:Rt,motionEaseOut:je,itemPaddingInline:fn,motionDurationMid:jn,itemHoverColor:bn,lineType:ci,colorSplit:Ji,itemDisabledColor:zi,dangerItemColor:dr,dangerItemHoverColor:Fr,dangerItemSelectedColor:oo,dangerItemActiveBg:Jr,dangerItemSelectedBg:zr,itemHoverBg:pr,itemActiveBg:Kr,menuSubMenuBg:hr,horizontalItemSelectedColor:Mo,horizontalItemSelectedBg:Xo,horizontalItemBorderRadius:mo,horizontalItemHoverBg:Ts,popupBg:ws}=de;return{[`${Mt}-${Dt}, ${Mt}-${Dt} > ${Mt}`]:{color:zt,background:fe,[`&${Mt}-root:focus-visible`]:Object.assign({},oe(de)),[`${Mt}-item-group-title`]:{color:De},[`${Mt}-submenu-selected`]:{[`> ${Mt}-submenu-title`]:{color:be}},[`${Mt}-item-disabled, ${Mt}-submenu-disabled`]:{color:`${zi} !important`},[`${Mt}-item:not(${Mt}-item-selected):not(${Mt}-submenu-selected)`]:{[`&:hover, > ${Mt}-submenu-title:hover`]:{color:bn}},[`&:not(${Mt}-horizontal)`]:{[`${Mt}-item:not(${Mt}-item-selected)`]:{"&:hover":{backgroundColor:pr},"&:active":{backgroundColor:Kr}},[`${Mt}-submenu-title`]:{"&:hover":{backgroundColor:pr},"&:active":{backgroundColor:Kr}}},[`${Mt}-item-danger`]:{color:dr,[`&${Mt}-item:hover`]:{[`&:not(${Mt}-item-selected):not(${Mt}-submenu-selected)`]:{color:Fr}},[`&${Mt}-item:active`]:{background:Jr}},[`${Mt}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Mt}-item-selected`]:{color:be,[`&${Mt}-item-danger`]:{color:oo},"a, a:hover":{color:"inherit"}},[`& ${Mt}-item-selected`]:{backgroundColor:te,[`&${Mt}-item-danger`]:{backgroundColor:zr}},[`${Mt}-item, ${Mt}-submenu-title`]:{[`&:not(${Mt}-item-disabled):focus-visible`]:Object.assign({},oe(de))},[`&${Mt}-submenu > ${Mt}`]:{backgroundColor:hr},[`&${Mt}-popup > ${Mt}`]:{backgroundColor:ws},[`&${Mt}-horizontal`]:Object.assign(Object.assign({},Dt==="dark"?{borderBottom:0}:{}),{[`> ${Mt}-item, > ${Mt}-submenu`]:{top:$t,marginTop:-$t,marginBottom:0,borderRadius:mo,"&::after":{position:"absolute",insetInline:fn,bottom:0,borderBottom:`${Ct}px solid transparent`,transition:`border-color ${xe} ${Rt}`,content:'""'},"&:hover, &-active, &-open":{background:Ts,"&::after":{borderBottomWidth:Ct,borderBottomColor:Mo}},"&-selected":{color:Mo,backgroundColor:Xo,"&:hover":{backgroundColor:Xo},"&::after":{borderBottomWidth:Ct,borderBottomColor:Mo}}}}),[`&${Mt}-root`]:{[`&${Mt}-inline, &${Mt}-vertical`]:{borderInlineEnd:`${$t}px ${ci} ${Ji}`}},[`&${Mt}-inline`]:{[`${Mt}-sub${Mt}-inline`]:{background:Ce},[`${Mt}-item, ${Mt}-submenu-title`]:$t&&yt?{width:`calc(100% + ${$t}px)`}:{},[`${Mt}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${yt}px solid ${be}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${jn} ${je}`,`opacity ${jn} ${je}`].join(","),content:'""'},[`&${Mt}-item-danger`]:{"&::after":{borderInlineEndColor:oo}}},[`${Mt}-selected, ${Mt}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${jn} ${Rt}`,`opacity ${jn} ${Rt}`].join(",")}}}}}};const Nn=de=>{const{componentCls:Dt,itemHeight:Mt,itemMarginInline:zt,padding:be,menuArrowSize:De,marginXS:fe,itemMarginBlock:Ce}=de,te=be+De+fe;return{[`${Dt}-item`]:{position:"relative",overflow:"hidden"},[`${Dt}-item, ${Dt}-submenu-title`]:{height:Mt,lineHeight:`${Mt}px`,paddingInline:be,overflow:"hidden",textOverflow:"ellipsis",marginInline:zt,marginBlock:Ce,width:`calc(100% - ${zt*2}px)`},[`> ${Dt}-item,
|
|
|
> ${Dt}-submenu > ${Dt}-submenu-title`]:{height:Mt,lineHeight:`${Mt}px`},[`${Dt}-item-group-list ${Dt}-submenu-title,
|
|
|
${Dt}-submenu-title`]:{paddingInlineEnd:te}}};var kn=de=>{const{componentCls:Dt,iconCls:Mt,itemHeight:zt,colorTextLightSolid:be,dropdownWidth:De,controlHeightLG:fe,motionDurationMid:Ce,motionEaseOut:te,paddingXL:Ct,itemMarginInline:yt,fontSizeLG:$t,motionDurationSlow:xe,paddingXS:Rt,boxShadowSecondary:je,collapsedWidth:fn,collapsedIconSize:jn}=de,bn={height:zt,lineHeight:`${zt}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Dt]:{"&-inline, &-vertical":Object.assign({[`&${Dt}-root`]:{boxShadow:"none"}},Nn(de))},[`${Dt}-submenu-popup`]:{[`${Dt}-vertical`]:Object.assign(Object.assign({},Nn(de)),{boxShadow:je})}},{[`${Dt}-submenu-popup ${Dt}-vertical${Dt}-sub`]:{minWidth:De,maxHeight:`calc(100vh - ${fe*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Dt}-inline`]:{width:"100%",[`&${Dt}-root`]:{[`${Dt}-item, ${Dt}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${xe}`,`background ${xe}`,`padding ${Ce} ${te}`].join(","),[`> ${Dt}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Dt}-sub${Dt}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Dt}-submenu > ${Dt}-submenu-title`]:bn,[`& ${Dt}-item-group-title`]:{paddingInlineStart:Ct}},[`${Dt}-item`]:bn}},{[`${Dt}-inline-collapsed`]:{width:fn,[`&${Dt}-root`]:{[`${Dt}-item, ${Dt}-submenu ${Dt}-submenu-title`]:{[`> ${Dt}-inline-collapsed-noicon`]:{fontSize:$t,textAlign:"center"}}},[`> ${Dt}-item,
|
|
|
> ${Dt}-item-group > ${Dt}-item-group-list > ${Dt}-item,
|
|
|
> ${Dt}-item-group > ${Dt}-item-group-list > ${Dt}-submenu > ${Dt}-submenu-title,
|
|
|
> ${Dt}-submenu > ${Dt}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${$t/2}px - ${yt}px)`,textOverflow:"clip",[`
|
|
|
${Dt}-submenu-arrow,
|
|
|
${Dt}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${Dt}-item-icon, ${Mt}`]:{margin:0,fontSize:jn,lineHeight:`${zt}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Dt}-item-icon, ${Mt}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Dt}-item-icon, ${Mt}`]:{display:"none"},"a, a:hover":{color:be}},[`${Dt}-item-group-title`]:Object.assign(Object.assign({},Fe.vS),{paddingInline:Rt})}}]};const Vn=de=>{const{componentCls:Dt,motionDurationSlow:Mt,motionDurationMid:zt,motionEaseInOut:be,motionEaseOut:De,iconCls:fe,iconSize:Ce,iconMarginInlineEnd:te}=de;return{[`${Dt}-item, ${Dt}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Mt}`,`background ${Mt}`,`padding ${Mt} ${be}`].join(","),[`${Dt}-item-icon, ${fe}`]:{minWidth:Ce,fontSize:Ce,transition:[`font-size ${zt} ${De}`,`margin ${Mt} ${be}`,`color ${Mt}`].join(","),"+ span":{marginInlineStart:te,opacity:1,transition:[`opacity ${Mt} ${be}`,`margin ${Mt}`,`color ${Mt}`].join(",")}},[`${Dt}-item-icon`]:Object.assign({},(0,Fe.Ro)()),[`&${Dt}-item-only-child`]:{[`> ${fe}, > ${Dt}-item-icon`]:{marginInlineEnd:0}}},[`${Dt}-item-disabled, ${Dt}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Dt}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ai=de=>{const{componentCls:Dt,motionDurationSlow:Mt,motionEaseInOut:zt,borderRadius:be,menuArrowSize:De,menuArrowOffset:fe}=de;return{[`${Dt}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:de.margin,width:De,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Mt} ${zt}, opacity ${Mt}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:De*.6,height:De*.15,backgroundColor:"currentcolor",borderRadius:be,transition:[`background ${Mt} ${zt}`,`transform ${Mt} ${zt}`,`top ${Mt} ${zt}`,`color ${Mt} ${zt}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${fe})`},"&::after":{transform:`rotate(-45deg) translateY(${fe})`}}}}},Wn=de=>{const{antCls:Dt,componentCls:Mt,fontSize:zt,motionDurationSlow:be,motionDurationMid:De,motionEaseInOut:fe,paddingXS:Ce,padding:te,colorSplit:Ct,lineWidth:yt,zIndexPopup:$t,borderRadiusLG:xe,subMenuItemBorderRadius:Rt,menuArrowSize:je,menuArrowOffset:fn,lineType:jn,menuPanelMaskInset:bn,groupTitleLineHeight:ci,groupTitleFontSize:Ji}=de;return[{"":{[`${Mt}`]:Object.assign(Object.assign({},(0,Fe.dF)()),{"&-hidden":{display:"none"}})},[`${Mt}-submenu-hidden`]:{display:"none"}},{[Mt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Fe.Wf)(de)),(0,Fe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:zt,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${be} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Mt}-item`]:{flex:"none"}},[`${Mt}-item, ${Mt}-submenu, ${Mt}-submenu-title`]:{borderRadius:de.itemBorderRadius},[`${Mt}-item-group-title`]:{padding:`${Ce}px ${te}px`,fontSize:Ji,lineHeight:ci,transition:`all ${be}`},[`&-horizontal ${Mt}-submenu`]:{transition:[`border-color ${be} ${fe}`,`background ${be} ${fe}`].join(",")},[`${Mt}-submenu, ${Mt}-submenu-inline`]:{transition:[`border-color ${be} ${fe}`,`background ${be} ${fe}`,`padding ${De} ${fe}`].join(",")},[`${Mt}-submenu ${Mt}-sub`]:{cursor:"initial",transition:[`background ${be} ${fe}`,`padding ${be} ${fe}`].join(",")},[`${Mt}-title-content`]:{transition:`color ${be}`},[`${Mt}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Mt}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Ct,borderStyle:jn,borderWidth:0,borderTopWidth:yt,marginBlock:yt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Vn(de)),{[`${Mt}-item-group`]:{[`${Mt}-item-group-list`]:{margin:0,padding:0,[`${Mt}-item, ${Mt}-submenu-title`]:{paddingInline:`${zt*2}px ${te}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:$t,borderRadius:xe,boxShadow:"none",transformOrigin:"0 0",[`&${Mt}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${bn}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:bn},"\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:de.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:de.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:de.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:de.paddingXS},[`> ${Mt}`]:Object.assign(Object.assign(Object.assign({borderRadius:xe},Vn(de)),Ai(de)),{[`${Mt}-item, ${Mt}-submenu > ${Mt}-submenu-title`]:{borderRadius:Rt},[`${Mt}-submenu-title::after`]:{transition:`transform ${be} ${fe}`}})}}),Ai(de)),{[`&-inline-collapsed ${Mt}-submenu-arrow,
|
|
|
&-inline ${Mt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${fn})`},"&::after":{transform:`rotate(45deg) translateX(-${fn})`}},[`${Mt}-submenu-open${Mt}-submenu-inline > ${Mt}-submenu-title > ${Mt}-submenu-arrow`]:{transform:`translateY(-${je*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${fn})`},"&::before":{transform:`rotate(45deg) translateX(${fn})`}}})},{[`${Dt}-layout-header`]:{[Mt]:{lineHeight:"inherit"}}}]};var Si=(de,Dt)=>(0,qe.Z)("Menu",zt=>{if(Dt===!1)return[];const{colorBgElevated:be,colorPrimary:De,colorTextLightSolid:fe,controlHeightLG:Ce,fontSize:te,darkItemColor:Ct,darkDangerItemColor:yt,darkItemBg:$t,darkSubMenuItemBg:xe,darkItemSelectedColor:Rt,darkItemSelectedBg:je,darkDangerItemSelectedBg:fn,darkItemHoverBg:jn,darkGroupTitleColor:bn,darkItemHoverColor:ci,darkItemDisabledColor:Ji,darkDangerItemHoverColor:zi,darkDangerItemSelectedColor:dr,darkDangerItemActiveBg:Fr}=zt,oo=te/7*5,Jr=(0,Ge.TS)(zt,{menuArrowSize:oo,menuHorizontalHeight:Ce*1.15,menuArrowOffset:`${oo*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:be}),zr=(0,Ge.TS)(Jr,{itemColor:Ct,itemHoverColor:ci,groupTitleColor:bn,itemSelectedColor:Rt,itemBg:$t,popupBg:$t,subMenuItemBg:xe,itemActiveBg:"transparent",itemSelectedBg:je,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:jn,itemDisabledColor:Ji,dangerItemColor:yt,dangerItemHoverColor:zi,dangerItemSelectedColor:dr,dangerItemActiveBg:Fr,dangerItemSelectedBg:fn,menuSubMenuBg:xe,horizontalItemSelectedColor:fe,horizontalItemSelectedBg:De});return[Wn(Jr),Ze(Jr),kn(Jr),En(Jr,"light"),En(zr,"dark"),we(Jr),(0,ee.Z)(Jr),(0,We.oN)(Jr,"slide-up"),(0,We.oN)(Jr,"slide-down"),(0,Yt._y)(Jr,"zoom-big")]},zt=>{const{colorPrimary:be,colorError:De,colorTextDisabled:fe,colorErrorBg:Ce,colorText:te,colorTextDescription:Ct,colorBgContainer:yt,colorFillAlter:$t,colorFillContent:xe,lineWidth:Rt,lineWidthBold:je,controlItemBgActive:fn,colorBgTextHover:jn,controlHeightLG:bn,lineHeight:ci,colorBgElevated:Ji,marginXXS:zi,padding:dr,fontSize:Fr,controlHeightSM:oo,fontSizeLG:Jr,colorTextLightSolid:zr,colorErrorHover:pr}=zt,Kr=new Ae.C(zr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:zt.zIndexPopupBase+50,radiusItem:zt.borderRadiusLG,itemBorderRadius:zt.borderRadiusLG,radiusSubMenuItem:zt.borderRadiusSM,subMenuItemBorderRadius:zt.borderRadiusSM,colorItemText:te,itemColor:te,colorItemTextHover:te,itemHoverColor:te,colorItemTextHoverHorizontal:be,horizontalItemHoverColor:be,colorGroupTitle:Ct,groupTitleColor:Ct,colorItemTextSelected:be,itemSelectedColor:be,colorItemTextSelectedHorizontal:be,horizontalItemSelectedColor:be,colorItemBg:yt,itemBg:yt,colorItemBgHover:jn,itemHoverBg:jn,colorItemBgActive:xe,itemActiveBg:fn,colorSubItemBg:$t,subMenuItemBg:$t,colorItemBgSelected:fn,itemSelectedBg:fn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:je,activeBarHeight:je,colorActiveBarBorderSize:Rt,activeBarBorderWidth:Rt,colorItemTextDisabled:fe,itemDisabledColor:fe,colorDangerItemText:De,dangerItemColor:De,colorDangerItemTextHover:De,dangerItemHoverColor:De,colorDangerItemTextSelected:De,dangerItemSelectedColor:De,colorDangerItemBgActive:Ce,dangerItemActiveBg:Ce,colorDangerItemBgSelected:Ce,dangerItemSelectedBg:Ce,itemMarginInline:zt.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:bn,groupTitleLineHeight:ci,collapsedWidth:bn*2,popupBg:Ji,itemMarginBlock:zi,itemPaddingInline:dr,horizontalLineHeight:`${bn*1.15}px`,iconSize:Fr,iconMarginInlineEnd:oo-Fr,collapsedIconSize:Jr,groupTitleFontSize:Fr,darkItemDisabledColor:new Ae.C(zr).setAlpha(.25).toRgbString(),darkItemColor:Kr,darkDangerItemColor:De,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:zr,darkItemSelectedBg:be,darkDangerItemSelectedBg:De,darkItemHoverBg:"transparent",darkGroupTitleColor:Kr,darkItemHoverColor:zr,darkDangerItemHoverColor:pr,darkDangerItemSelectedColor:zr,darkDangerItemActiveBg:De}},{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"]]})(de),an=function(de,Dt){var Mt={};for(var zt in de)Object.prototype.hasOwnProperty.call(de,zt)&&Dt.indexOf(zt)<0&&(Mt[zt]=de[zt]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,zt=Object.getOwnPropertySymbols(de);be<zt.length;be++)Dt.indexOf(zt[be])<0&&Object.prototype.propertyIsEnumerable.call(de,zt[be])&&(Mt[zt[be]]=de[zt[be]]);return Mt},Oi=(0,ge.forwardRef)((de,Dt)=>{var Mt,zt;const be=ge.useContext(Tt.Z),De=be||{},{getPrefixCls:fe,getPopupContainer:Ce,direction:te,menu:Ct}=ge.useContext(ae.E_),yt=fe(),{prefixCls:$t,className:xe,style:Rt,theme:je="light",expandIcon:fn,_internalDisableMenuItemTitleTooltip:jn,inlineCollapsed:bn,siderCollapsed:ci,items:Ji,children:zi,rootClassName:dr,mode:Fr,selectable:oo,onClick:Jr,overflowedIndicatorPopupClassName:zr}=de,pr=an(de,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Kr=(0,Wt.Z)(pr,["collapsedWidth"]),hr=he(Ji)||zi;(Mt=De.validator)===null||Mt===void 0||Mt.call(De,{mode:Fr});const Mo=(0,pt.useEvent)(function(){var oa;Jr==null||Jr.apply(void 0,arguments),(oa=De.onClick)===null||oa===void 0||oa.call(De)}),Xo=De.mode||Fr,mo=oo!=null?oo:De.selectable,Ts=ge.useMemo(()=>ci!==void 0?ci:bn,[bn,ci]),ws={horizontal:{motionName:`${yt}-slide-up`},inline:(0,Ft.Z)(yt),other:{motionName:`${yt}-zoom-big`}},Vt=fe("menu",$t||De.prefixCls),[xs,Ss]=Si(Vt,!be),Ms=ie()(`${Vt}-${je}`,Ct==null?void 0:Ct.className,xe);let ma;if(typeof fn=="function")ma=fn;else if(fn===null||fn===!1)ma=null;else if(De.expandIcon===null||De.expandIcon===!1)ma=null;else{const oa=fn!=null?fn:De.expandIcon;ma=(0,qt.Tm)(oa,{className:ie()(`${Vt}-submenu-expand-icon`,(0,qt.l$)(oa)?(zt=oa.props)===null||zt===void 0?void 0:zt.className:"")})}const Ea=ge.useMemo(()=>({prefixCls:Vt,inlineCollapsed:Ts||!1,direction:te,firstLevel:!0,theme:je,mode:Xo,disableMenuItemTitleTooltip:jn}),[Vt,Ts,te,jn,je]);return xs(ge.createElement(Tt.Z.Provider,{value:null},ge.createElement(et.Provider,{value:Ea},ge.createElement(bt.ZP,Object.assign({getPopupContainer:Ce,overflowedIndicator:ge.createElement(dt.Z,null),overflowedIndicatorPopupClassName:ie()(Vt,`${Vt}-${je}`,zr),mode:Xo,selectable:mo,onClick:Mo},Kr,{inlineCollapsed:Ts,style:Object.assign(Object.assign({},Ct==null?void 0:Ct.style),Rt),className:Ms,prefixCls:Vt,direction:te,defaultMotions:ws,expandIcon:ma,ref:Dt,rootClassName:ie()(dr,Ss)}),hr))))});const ue=(0,ge.forwardRef)((de,Dt)=>{const Mt=(0,ge.useRef)(null),zt=ge.useContext(se.D);return(0,ge.useImperativeHandle)(Dt,()=>({menu:Mt.current,focus:be=>{var De;(De=Mt.current)===null||De===void 0||De.focus(be)}})),ge.createElement(Oi,Object.assign({ref:Mt},de,zt))});ue.Item=lt,ue.SubMenu=ut,ue.Divider=Jt,ue.ItemGroup=bt.BW;var Pn=ue},58421:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return De}});var bt=Bt(72308),ge=Bt(59301),se={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"},Me=se,ie=Bt(7657),ae=function(Ce,te){return ge.createElement(ie.Z,(0,bt.Z)({},Ce,{ref:te,icon:Me}))},Lt=ge.forwardRef(ae),kt=Lt,Jt=Bt(49198),St=Bt(33853),Wt=Bt(38819),Gt=Bt(92310),qt=Bt.n(Gt),wt=Bt(49618),et=Bt(77321),tt=Bt(96949),lt=Bt(55090),rt=Bt(77205),ut=Bt(38793),dt=Bt(26112),pt={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Ft=pt,Tt=Bt(91735),_t=function(fe){(0,rt.Z)(te,fe);var Ce=(0,ut.Z)(te);function te(){var Ct;(0,tt.Z)(this,te);for(var yt=arguments.length,$t=new Array(yt),xe=0;xe<yt;xe++)$t[xe]=arguments[xe];return Ct=Ce.call.apply(Ce,[this].concat($t)),Ct.state={goInputText:""},Ct.getValidValue=function(){var Rt=Ct.state.goInputText;return!Rt||Number.isNaN(Rt)?void 0:Number(Rt)},Ct.buildOptionText=function(Rt){return"".concat(Rt," ").concat(Ct.props.locale.items_per_page)},Ct.changeSize=function(Rt){Ct.props.changeSize(Number(Rt))},Ct.handleChange=function(Rt){Ct.setState({goInputText:Rt.target.value})},Ct.handleBlur=function(Rt){var je=Ct.props,fn=je.goButton,jn=je.quickGo,bn=je.rootPrefixCls,ci=Ct.state.goInputText;fn||ci===""||(Ct.setState({goInputText:""}),!(Rt.relatedTarget&&(Rt.relatedTarget.className.indexOf("".concat(bn,"-item-link"))>=0||Rt.relatedTarget.className.indexOf("".concat(bn,"-item"))>=0))&&jn(Ct.getValidValue()))},Ct.go=function(Rt){var je=Ct.state.goInputText;je!==""&&(Rt.keyCode===Ft.ENTER||Rt.type==="click")&&(Ct.setState({goInputText:""}),Ct.props.quickGo(Ct.getValidValue()))},Ct}return(0,lt.Z)(te,[{key:"getPageSizeOptions",value:function(){var yt=this.props,$t=yt.pageSize,xe=yt.pageSizeOptions;return xe.some(function(Rt){return Rt.toString()===$t.toString()})?xe:xe.concat([$t.toString()]).sort(function(Rt,je){var fn=Number.isNaN(Number(Rt))?0:Number(Rt),jn=Number.isNaN(Number(je))?0:Number(je);return fn-jn})}},{key:"render",value:function(){var yt=this,$t=this.props,xe=$t.pageSize,Rt=$t.locale,je=$t.rootPrefixCls,fn=$t.changeSize,jn=$t.quickGo,bn=$t.goButton,ci=$t.selectComponentClass,Ji=$t.buildOptionText,zi=$t.selectPrefixCls,dr=$t.disabled,Fr=this.state.goInputText,oo="".concat(je,"-options"),Jr=ci,zr=null,pr=null,Kr=null;if(!fn&&!jn)return null;var hr=this.getPageSizeOptions();if(fn&&Jr){var Mo=hr.map(function(Xo,mo){return ge.createElement(Jr.Option,{key:mo,value:Xo.toString()},(Ji||yt.buildOptionText)(Xo))});zr=ge.createElement(Jr,{disabled:dr,prefixCls:zi,showSearch:!1,className:"".concat(oo,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(xe||hr[0]).toString(),onChange:this.changeSize,getPopupContainer:function(mo){return mo.parentNode},"aria-label":Rt.page_size,defaultOpen:!1},Mo)}return jn&&(bn&&(Kr=typeof bn=="boolean"?ge.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:dr,className:"".concat(oo,"-quick-jumper-button")},Rt.jump_to_confirm):ge.createElement("span",{onClick:this.go,onKeyUp:this.go},bn)),pr=ge.createElement("div",{className:"".concat(oo,"-quick-jumper")},Rt.jump_to,ge.createElement("input",{disabled:dr,type:"text",value:Fr,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Rt.page}),Rt.page,Kr)),ge.createElement("li",{className:"".concat(oo)},zr,pr)}}]),te}(ge.Component);_t.defaultProps={pageSizeOptions:["10","20","50","100"]};var re=_t,he=function(Ce){var te,Ct=Ce.rootPrefixCls,yt=Ce.page,$t=Ce.active,xe=Ce.className,Rt=Ce.showTitle,je=Ce.onClick,fn=Ce.onKeyPress,jn=Ce.itemRender,bn="".concat(Ct,"-item"),ci=qt()(bn,"".concat(bn,"-").concat(yt),(te={},(0,wt.Z)(te,"".concat(bn,"-active"),$t),(0,wt.Z)(te,"".concat(bn,"-disabled"),!yt),(0,wt.Z)(te,Ce.className,xe),te)),Ji=function(){je(yt)},zi=function(oo){fn(oo,je,yt)},dr=jn(yt,"page",ge.createElement("a",{rel:"nofollow"},yt));return dr?ge.createElement("li",{title:Rt?yt.toString():null,className:ci,onClick:Ji,onKeyPress:zi,tabIndex:0},dr):null},Ae=he;function Fe(){}function ee(fe){var Ce=Number(fe);return typeof Ce=="number"&&!Number.isNaN(Ce)&&isFinite(Ce)&&Math.floor(Ce)===Ce}var We=function(Ce,te,Ct){return Ct};function Yt(fe,Ce,te){var Ct=typeof fe=="undefined"?Ce.pageSize:fe;return Math.floor((te.total-1)/Ct)+1}var qe=function(fe){(0,rt.Z)(te,fe);var Ce=(0,ut.Z)(te);function te(Ct){var yt;(0,tt.Z)(this,te),yt=Ce.call(this,Ct),yt.paginationNode=ge.createRef(),yt.getJumpPrevPage=function(){return Math.max(1,yt.state.current-(yt.props.showLessItems?3:5))},yt.getJumpNextPage=function(){return Math.min(Yt(void 0,yt.state,yt.props),yt.state.current+(yt.props.showLessItems?3:5))},yt.getItemIcon=function(fn,jn){var bn=yt.props.prefixCls,ci=fn||ge.createElement("button",{type:"button","aria-label":jn,className:"".concat(bn,"-item-link")});return typeof fn=="function"&&(ci=ge.createElement(fn,(0,et.Z)({},yt.props))),ci},yt.isValid=function(fn){var jn=yt.props.total;return ee(fn)&&fn!==yt.state.current&&ee(jn)&&jn>0},yt.shouldDisplayQuickJumper=function(){var fn=yt.props,jn=fn.showQuickJumper,bn=fn.total,ci=yt.state.pageSize;return bn<=ci?!1:jn},yt.handleKeyDown=function(fn){(fn.keyCode===Ft.ARROW_UP||fn.keyCode===Ft.ARROW_DOWN)&&fn.preventDefault()},yt.handleKeyUp=function(fn){var jn=yt.getValidValue(fn),bn=yt.state.currentInputValue;jn!==bn&&yt.setState({currentInputValue:jn}),fn.keyCode===Ft.ENTER?yt.handleChange(jn):fn.keyCode===Ft.ARROW_UP?yt.handleChange(jn-1):fn.keyCode===Ft.ARROW_DOWN&&yt.handleChange(jn+1)},yt.handleBlur=function(fn){var jn=yt.getValidValue(fn);yt.handleChange(jn)},yt.changePageSize=function(fn){var jn=yt.state.current,bn=Yt(fn,yt.state,yt.props);jn=jn>bn?bn:jn,bn===0&&(jn=yt.state.current),typeof fn=="number"&&("pageSize"in yt.props||yt.setState({pageSize:fn}),"current"in yt.props||yt.setState({current:jn,currentInputValue:jn})),yt.props.onShowSizeChange(jn,fn),"onChange"in yt.props&&yt.props.onChange&&yt.props.onChange(jn,fn)},yt.handleChange=function(fn){var jn=yt.props,bn=jn.disabled,ci=jn.onChange,Ji=yt.state,zi=Ji.pageSize,dr=Ji.current,Fr=Ji.currentInputValue;if(yt.isValid(fn)&&!bn){var oo=Yt(void 0,yt.state,yt.props),Jr=fn;return fn>oo?Jr=oo:fn<1&&(Jr=1),"current"in yt.props||yt.setState({current:Jr}),Jr!==Fr&&yt.setState({currentInputValue:Jr}),ci(Jr,zi),Jr}return dr},yt.prev=function(){yt.hasPrev()&&yt.handleChange(yt.state.current-1)},yt.next=function(){yt.hasNext()&&yt.handleChange(yt.state.current+1)},yt.jumpPrev=function(){yt.handleChange(yt.getJumpPrevPage())},yt.jumpNext=function(){yt.handleChange(yt.getJumpNextPage())},yt.hasPrev=function(){return yt.state.current>1},yt.hasNext=function(){return yt.state.current<Yt(void 0,yt.state,yt.props)},yt.runIfEnter=function(fn,jn){if(fn.key==="Enter"||fn.charCode===13){for(var bn=arguments.length,ci=new Array(bn>2?bn-2:0),Ji=2;Ji<bn;Ji++)ci[Ji-2]=arguments[Ji];jn.apply(void 0,ci)}},yt.runIfEnterPrev=function(fn){yt.runIfEnter(fn,yt.prev)},yt.runIfEnterNext=function(fn){yt.runIfEnter(fn,yt.next)},yt.runIfEnterJumpPrev=function(fn){yt.runIfEnter(fn,yt.jumpPrev)},yt.runIfEnterJumpNext=function(fn){yt.runIfEnter(fn,yt.jumpNext)},yt.handleGoTO=function(fn){(fn.keyCode===Ft.ENTER||fn.type==="click")&&yt.handleChange(yt.state.currentInputValue)},yt.renderPrev=function(fn){var jn=yt.props,bn=jn.prevIcon,ci=jn.itemRender,Ji=ci(fn,"prev",yt.getItemIcon(bn,"prev page")),zi=!yt.hasPrev();return(0,ge.isValidElement)(Ji)?(0,ge.cloneElement)(Ji,{disabled:zi}):Ji},yt.renderNext=function(fn){var jn=yt.props,bn=jn.nextIcon,ci=jn.itemRender,Ji=ci(fn,"next",yt.getItemIcon(bn,"next page")),zi=!yt.hasNext();return(0,ge.isValidElement)(Ji)?(0,ge.cloneElement)(Ji,{disabled:zi}):Ji};var $t=Ct.onChange!==Fe,xe="current"in Ct;xe&&!$t&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Rt=Ct.defaultCurrent;"current"in Ct&&(Rt=Ct.current);var je=Ct.defaultPageSize;return"pageSize"in Ct&&(je=Ct.pageSize),Rt=Math.min(Rt,Yt(je,void 0,Ct)),yt.state={current:Rt,currentInputValue:Rt,pageSize:je},yt}return(0,lt.Z)(te,[{key:"componentDidUpdate",value:function(yt,$t){var xe=this.props.prefixCls;if($t.current!==this.state.current&&this.paginationNode.current){var Rt=this.paginationNode.current.querySelector(".".concat(xe,"-item-").concat($t.current));if(Rt&&document.activeElement===Rt){var je;Rt==null||(je=Rt.blur)===null||je===void 0||je.call(Rt)}}}},{key:"getValidValue",value:function(yt){var $t=yt.target.value,xe=Yt(void 0,this.state,this.props),Rt=this.state.currentInputValue,je;return $t===""?je=$t:Number.isNaN(Number($t))?je=Rt:$t>=xe?je=xe:je=Number($t),je}},{key:"getShowSizeChanger",value:function(){var yt=this.props,$t=yt.showSizeChanger,xe=yt.total,Rt=yt.totalBoundaryShowSizeChanger;return typeof $t!="undefined"?$t:xe>Rt}},{key:"render",value:function(){var yt=this.props,$t=yt.prefixCls,xe=yt.className,Rt=yt.style,je=yt.disabled,fn=yt.hideOnSinglePage,jn=yt.total,bn=yt.locale,ci=yt.showQuickJumper,Ji=yt.showLessItems,zi=yt.showTitle,dr=yt.showTotal,Fr=yt.simple,oo=yt.itemRender,Jr=yt.showPrevNextJumpers,zr=yt.jumpPrevIcon,pr=yt.jumpNextIcon,Kr=yt.selectComponentClass,hr=yt.selectPrefixCls,Mo=yt.pageSizeOptions,Xo=this.state,mo=Xo.current,Ts=Xo.pageSize,ws=Xo.currentInputValue;if(fn===!0&&jn<=Ts)return null;var Vt=Yt(void 0,this.state,this.props),xs=[],Ss=null,Ms=null,ma=null,Ea=null,oa=null,ao=ci&&ci.goButton,br=Ji?1:2,Un=mo-1>0?mo-1:0,On=mo+1<Vt?mo+1:Vt,Re=(0,dt.Z)(this.props,{aria:!0,data:!0}),hi=dr&&ge.createElement("li",{className:"".concat($t,"-total-text")},dr(jn,[jn===0?0:(mo-1)*Ts+1,mo*Ts>jn?jn:mo*Ts]));if(Fr){ao&&(typeof ao=="boolean"?oa=ge.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},bn.jump_to_confirm):oa=ge.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},ao),oa=ge.createElement("li",{title:zi?"".concat(bn.jump_to).concat(mo,"/").concat(Vt):null,className:"".concat($t,"-simple-pager")},oa));var en=this.renderPrev(Un);return ge.createElement("ul",(0,bt.Z)({className:qt()($t,"".concat($t,"-simple"),(0,wt.Z)({},"".concat($t,"-disabled"),je),xe),style:Rt,ref:this.paginationNode},Re),hi,en?ge.createElement("li",{title:zi?bn.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:qt()("".concat($t,"-prev"),(0,wt.Z)({},"".concat($t,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},en):null,ge.createElement("li",{title:zi?"".concat(mo,"/").concat(Vt):null,className:"".concat($t,"-simple-pager")},ge.createElement("input",{type:"text",value:ws,disabled:je,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),ge.createElement("span",{className:"".concat($t,"-slash")},"/"),Vt),ge.createElement("li",{title:zi?bn.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:qt()("".concat($t,"-next"),(0,wt.Z)({},"".concat($t,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(On)),oa)}if(Vt<=3+br*2){var gn={locale:bn,rootPrefixCls:$t,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:zi,itemRender:oo};Vt||xs.push(ge.createElement(Ae,(0,bt.Z)({},gn,{key:"noPager",page:1,className:"".concat($t,"-item-disabled")})));for(var Ve=1;Ve<=Vt;Ve+=1){var ni=mo===Ve;xs.push(ge.createElement(Ae,(0,bt.Z)({},gn,{key:Ve,page:Ve,active:ni})))}}else{var Bi=Ji?bn.prev_3:bn.prev_5,_i=Ji?bn.next_3:bn.next_5,tr=oo(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(zr,"prev page")),sn=oo(this.getJumpNextPage(),"jump-next",this.getItemIcon(pr,"next page"));Jr&&(Ss=tr?ge.createElement("li",{title:zi?Bi:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:qt()("".concat($t,"-jump-prev"),(0,wt.Z)({},"".concat($t,"-jump-prev-custom-icon"),!!zr))},tr):null,Ms=sn?ge.createElement("li",{title:zi?_i:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:qt()("".concat($t,"-jump-next"),(0,wt.Z)({},"".concat($t,"-jump-next-custom-icon"),!!pr))},sn):null),Ea=ge.createElement(Ae,{locale:bn,last:!0,rootPrefixCls:$t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Vt,page:Vt,active:!1,showTitle:zi,itemRender:oo}),ma=ge.createElement(Ae,{locale:bn,rootPrefixCls:$t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:zi,itemRender:oo});var fi=Math.max(1,mo-br),Zi=Math.min(mo+br,Vt);mo-1<=br&&(Zi=1+br*2),Vt-mo<=br&&(fi=Vt-br*2);for(var Tr=fi;Tr<=Zi;Tr+=1){var ii=mo===Tr;xs.push(ge.createElement(Ae,{locale:bn,rootPrefixCls:$t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Tr,page:Tr,active:ii,showTitle:zi,itemRender:oo}))}mo-1>=br*2&&mo!==3&&(xs[0]=(0,ge.cloneElement)(xs[0],{className:"".concat($t,"-item-after-jump-prev")}),xs.unshift(Ss)),Vt-mo>=br*2&&mo!==Vt-2&&(xs[xs.length-1]=(0,ge.cloneElement)(xs[xs.length-1],{className:"".concat($t,"-item-before-jump-next")}),xs.push(Ms)),fi!==1&&xs.unshift(ma),Zi!==Vt&&xs.push(Ea)}var xi=!this.hasPrev()||!Vt,fr=!this.hasNext()||!Vt,mi=this.renderPrev(Un),wi=this.renderNext(On);return ge.createElement("ul",(0,bt.Z)({className:qt()($t,xe,(0,wt.Z)({},"".concat($t,"-disabled"),je)),style:Rt,ref:this.paginationNode},Re),hi,mi?ge.createElement("li",{title:zi?bn.prev_page:null,onClick:this.prev,tabIndex:xi?null:0,onKeyPress:this.runIfEnterPrev,className:qt()("".concat($t,"-prev"),(0,wt.Z)({},"".concat($t,"-disabled"),xi)),"aria-disabled":xi},mi):null,xs,wi?ge.createElement("li",{title:zi?bn.next_page:null,onClick:this.next,tabIndex:fr?null:0,onKeyPress:this.runIfEnterNext,className:qt()("".concat($t,"-next"),(0,wt.Z)({},"".concat($t,"-disabled"),fr)),"aria-disabled":fr},wi):null,ge.createElement(re,{disabled:je,locale:bn,rootPrefixCls:$t,selectComponentClass:Kr,selectPrefixCls:hr,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:mo,pageSize:Ts,pageSizeOptions:Mo,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ao}))}}],[{key:"getDerivedStateFromProps",value:function(yt,$t){var xe={};if("current"in yt&&(xe.current=yt.current,yt.current!==$t.current&&(xe.currentInputValue=xe.current)),"pageSize"in yt&&yt.pageSize!==$t.pageSize){var Rt=$t.current,je=Yt(yt.pageSize,$t,yt);Rt=Rt>je?je:Rt,"current"in yt||(xe.current=Rt,xe.currentInputValue=Rt),xe.pageSize=yt.pageSize}return xe}}]),te}(ge.Component);qe.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Fe,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Fe,locale:Tt.Z,style:{},itemRender:We,totalBoundaryShowSizeChanger:50};var Ge=qe,Oe=Bt(22075),Ze=Bt(36355),Qe=Bt(19716),we=Bt(8628),oe=Bt(9763),Pe=Bt(57809);const En=fe=>ge.createElement(Pe.default,Object.assign({},fe,{showSearch:!0,size:"small"})),Nn=fe=>ge.createElement(Pe.default,Object.assign({},fe,{showSearch:!0,size:"middle"}));En.Option=Pe.default.Option,Nn.Option=Pe.default.Option;var Xe=Bt(9937),kn=Bt(17313),Vn=Bt(83116),Ai=Bt(37613);const Wn=fe=>{const{componentCls:Ce}=fe;return{[`${Ce}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Ce}-item-link`]:{color:fe.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Ce}-item-link`]:{color:fe.colorTextDisabled,cursor:"not-allowed"}}},[`&${Ce}-disabled`]:{cursor:"not-allowed",[`${Ce}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:fe.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:fe.colorBorder,backgroundColor:fe.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:fe.itemActiveBgDisabled},a:{color:fe.itemActiveColorDisabled}}},[`${Ce}-item-link`]:{color:fe.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Ce}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Ce}-simple-pager`]:{color:fe.colorTextDisabled},[`${Ce}-jump-prev, ${Ce}-jump-next`]:{[`${Ce}-item-link-icon`]:{opacity:0},[`${Ce}-item-ellipsis`]:{opacity:1}}},[`&${Ce}-simple`]:{[`${Ce}-prev, ${Ce}-next`]:{[`&${Ce}-disabled ${Ce}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Si=fe=>{const{componentCls:Ce}=fe;return{[`&${Ce}-mini ${Ce}-total-text, &${Ce}-mini ${Ce}-simple-pager`]:{height:fe.itemSizeSM,lineHeight:`${fe.itemSizeSM}px`},[`&${Ce}-mini ${Ce}-item`]:{minWidth:fe.itemSizeSM,height:fe.itemSizeSM,margin:0,lineHeight:`${fe.itemSizeSM-2}px`},[`&${Ce}-mini:not(${Ce}-disabled) ${Ce}-item:not(${Ce}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:fe.colorBgTextHover},"&:active":{backgroundColor:fe.colorBgTextActive}},[`&${Ce}-mini ${Ce}-prev, &${Ce}-mini ${Ce}-next`]:{minWidth:fe.itemSizeSM,height:fe.itemSizeSM,margin:0,lineHeight:`${fe.itemSizeSM}px`},[`&${Ce}-mini:not(${Ce}-disabled)`]:{[`${Ce}-prev, ${Ce}-next`]:{[`&:hover ${Ce}-item-link`]:{backgroundColor:fe.colorBgTextHover},[`&:active ${Ce}-item-link`]:{backgroundColor:fe.colorBgTextActive},[`&${Ce}-disabled:hover ${Ce}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${Ce}-mini ${Ce}-prev ${Ce}-item-link,
|
|
|
&${Ce}-mini ${Ce}-next ${Ce}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:fe.itemSizeSM,lineHeight:`${fe.itemSizeSM}px`}},[`&${Ce}-mini ${Ce}-jump-prev, &${Ce}-mini ${Ce}-jump-next`]:{height:fe.itemSizeSM,marginInlineEnd:0,lineHeight:`${fe.itemSizeSM}px`},[`&${Ce}-mini ${Ce}-options`]:{marginInlineStart:fe.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:fe.miniOptionsSizeChangerTop},"&-quick-jumper":{height:fe.itemSizeSM,lineHeight:`${fe.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Xe.x0)(fe)),{width:fe.paginationMiniQuickJumperInputWidth,height:fe.controlHeightSM})}}}},an=fe=>{const{componentCls:Ce}=fe;return{[`
|
|
|
&${Ce}-simple ${Ce}-prev,
|
|
|
&${Ce}-simple ${Ce}-next
|
|
|
`]:{height:fe.itemSizeSM,lineHeight:`${fe.itemSizeSM}px`,verticalAlign:"top",[`${Ce}-item-link`]:{height:fe.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:fe.colorBgTextHover},"&:active":{backgroundColor:fe.colorBgTextActive},"&::after":{height:fe.itemSizeSM,lineHeight:`${fe.itemSizeSM}px`}}},[`&${Ce}-simple ${Ce}-simple-pager`]:{display:"inline-block",height:fe.itemSizeSM,marginInlineEnd:fe.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:fe.marginXS,padding:`0 ${fe.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:fe.itemInputBg,border:`${fe.lineWidth}px ${fe.lineType} ${fe.colorBorder}`,borderRadius:fe.borderRadius,outline:"none",transition:`border-color ${fe.motionDurationMid}`,color:"inherit","&:hover":{borderColor:fe.colorPrimary},"&:focus":{borderColor:fe.colorPrimaryHover,boxShadow:`${fe.inputOutlineOffset}px 0 ${fe.controlOutlineWidth}px ${fe.controlOutline}`},"&[disabled]":{color:fe.colorTextDisabled,backgroundColor:fe.colorBgContainerDisabled,borderColor:fe.colorBorder,cursor:"not-allowed"}}}}},Li=fe=>{const{componentCls:Ce}=fe;return{[`${Ce}-jump-prev, ${Ce}-jump-next`]:{outline:0,[`${Ce}-item-container`]:{position:"relative",[`${Ce}-item-link-icon`]:{color:fe.colorPrimary,fontSize:fe.fontSizeSM,opacity:0,transition:`all ${fe.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Ce}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:fe.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:fe.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:fe.paginationEllipsisTextIndent,opacity:1,transition:`all ${fe.motionDurationMid}`}},"&:hover":{[`${Ce}-item-link-icon`]:{opacity:1},[`${Ce}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${Ce}-prev,
|
|
|
${Ce}-jump-prev,
|
|
|
${Ce}-jump-next
|
|
|
`]:{marginInlineEnd:fe.marginXS},[`
|
|
|
${Ce}-prev,
|
|
|
${Ce}-next,
|
|
|
${Ce}-jump-prev,
|
|
|
${Ce}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:fe.itemSize,height:fe.itemSize,color:fe.colorText,fontFamily:fe.fontFamily,lineHeight:`${fe.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:fe.borderRadius,cursor:"pointer",transition:`all ${fe.motionDurationMid}`},[`${Ce}-prev, ${Ce}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:fe.colorText,cursor:"pointer",userSelect:"none"},[`${Ce}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:fe.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${fe.lineWidth}px ${fe.lineType} transparent`,borderRadius:fe.borderRadius,outline:"none",transition:`all ${fe.motionDurationMid}`},[`&:hover ${Ce}-item-link`]:{backgroundColor:fe.colorBgTextHover},[`&:active ${Ce}-item-link`]:{backgroundColor:fe.colorBgTextActive},[`&${Ce}-disabled:hover`]:{[`${Ce}-item-link`]:{backgroundColor:"transparent"}}},[`${Ce}-slash`]:{marginInlineEnd:fe.paginationSlashMarginInlineEnd,marginInlineStart:fe.paginationSlashMarginInlineStart},[`${Ce}-options`]:{display:"inline-block",marginInlineStart:fe.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:fe.controlHeight,marginInlineStart:fe.marginXS,lineHeight:`${fe.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Xe.ik)(fe)),{width:fe.controlHeightLG*1.25,height:fe.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:fe.marginXS,marginInlineEnd:fe.marginXS})}}}},Oi=fe=>{const{componentCls:Ce}=fe;return{[`${Ce}-item`]:{display:"inline-block",minWidth:fe.itemSize,height:fe.itemSize,marginInlineEnd:fe.marginXS,fontFamily:fe.fontFamily,lineHeight:`${fe.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${fe.lineWidth}px ${fe.lineType} transparent`,borderRadius:fe.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${fe.paginationItemPaddingInline}px`,color:fe.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Ce}-item-active)`]:{"&:hover":{transition:`all ${fe.motionDurationMid}`,backgroundColor:fe.colorBgTextHover},"&:active":{backgroundColor:fe.colorBgTextActive}},"&-active":{fontWeight:fe.fontWeightStrong,backgroundColor:fe.itemActiveBg,borderColor:fe.colorPrimary,a:{color:fe.colorPrimary},"&:hover":{borderColor:fe.colorPrimaryHover},"&:hover a":{color:fe.colorPrimaryHover}}}}},ue=fe=>{const{componentCls:Ce}=fe;return{[Ce]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,kn.Wf)(fe)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Ce}-total-text`]:{display:"inline-block",height:fe.itemSize,marginInlineEnd:fe.marginXS,lineHeight:`${fe.itemSize-2}px`,verticalAlign:"middle"}}),Oi(fe)),Li(fe)),an(fe)),Si(fe)),Wn(fe)),{[`@media only screen and (max-width: ${fe.screenLG}px)`]:{[`${Ce}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${fe.screenSM}px)`]:{[`${Ce}-options`]:{display:"none"}}}),[`&${fe.componentCls}-rtl`]:{direction:"rtl"}}},Pn=fe=>{const{componentCls:Ce}=fe;return{[`${Ce}${Ce}-disabled:not(${Ce}-mini)`]:{"&, &:hover":{[`${Ce}-item-link`]:{borderColor:fe.colorBorder}},"&:focus-visible":{[`${Ce}-item-link`]:{borderColor:fe.colorBorder}},[`${Ce}-item, ${Ce}-item-link`]:{backgroundColor:fe.colorBgContainerDisabled,borderColor:fe.colorBorder,[`&:hover:not(${Ce}-item-active)`]:{backgroundColor:fe.colorBgContainerDisabled,borderColor:fe.colorBorder,a:{color:fe.colorTextDisabled}},[`&${Ce}-item-active`]:{backgroundColor:fe.itemActiveBgDisabled}},[`${Ce}-prev, ${Ce}-next`]:{"&:hover button":{backgroundColor:fe.colorBgContainerDisabled,borderColor:fe.colorBorder,color:fe.colorTextDisabled},[`${Ce}-item-link`]:{backgroundColor:fe.colorBgContainerDisabled,borderColor:fe.colorBorder}}},[`${Ce}:not(${Ce}-mini)`]:{[`${Ce}-prev, ${Ce}-next`]:{"&:hover button":{borderColor:fe.colorPrimaryHover,backgroundColor:fe.itemBg},[`${Ce}-item-link`]:{backgroundColor:fe.itemLinkBg,borderColor:fe.colorBorder},[`&:hover ${Ce}-item-link`]:{borderColor:fe.colorPrimary,backgroundColor:fe.itemBg,color:fe.colorPrimary},[`&${Ce}-disabled`]:{[`${Ce}-item-link`]:{borderColor:fe.colorBorder,color:fe.colorTextDisabled}}},[`${Ce}-item`]:{backgroundColor:fe.itemBg,border:`${fe.lineWidth}px ${fe.lineType} ${fe.colorBorder}`,[`&:hover:not(${Ce}-item-active)`]:{borderColor:fe.colorPrimary,backgroundColor:fe.itemBg,a:{color:fe.colorPrimary}},"&-active":{borderColor:fe.colorPrimary}}}}},de=fe=>{const{componentCls:Ce}=fe;return{[`${Ce}:not(${Ce}-disabled)`]:{[`${Ce}-item`]:Object.assign({},(0,kn.Qy)(fe)),[`${Ce}-jump-prev, ${Ce}-jump-next`]:{"&:focus-visible":Object.assign({[`${Ce}-item-link-icon`]:{opacity:1},[`${Ce}-item-ellipsis`]:{opacity:0}},(0,kn.oN)(fe))},[`${Ce}-prev, ${Ce}-next`]:{[`&:focus-visible ${Ce}-item-link`]:Object.assign({},(0,kn.oN)(fe))}}}};var Dt=(0,Vn.Z)("Pagination",fe=>{const Ce=(0,Ai.TS)(fe,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:fe.marginXXS/2,paginationMiniQuickJumperInputWidth:fe.controlHeightLG*1.1,paginationItemPaddingInline:fe.marginXXS*1.5,paginationEllipsisLetterSpacing:fe.marginXXS/2,paginationSlashMarginInlineStart:fe.marginXXS,paginationSlashMarginInlineEnd:fe.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Xe.e5)(fe),(0,Xe.TM)(fe));return[ue(Ce),de(Ce),fe.wireframe&&Pn(Ce)]},fe=>({itemBg:fe.colorBgContainer,itemSize:fe.controlHeight,itemSizeSM:fe.controlHeightSM,itemActiveBg:fe.colorBgContainer,itemLinkBg:fe.colorBgContainer,itemActiveColorDisabled:fe.colorTextDisabled,itemActiveBgDisabled:fe.controlItemBgActiveDisabled,itemInputBg:fe.colorBgContainer,miniOptionsSizeChangerTop:0})),Mt=function(fe,Ce){var te={};for(var Ct in fe)Object.prototype.hasOwnProperty.call(fe,Ct)&&Ce.indexOf(Ct)<0&&(te[Ct]=fe[Ct]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,Ct=Object.getOwnPropertySymbols(fe);yt<Ct.length;yt++)Ce.indexOf(Ct[yt])<0&&Object.prototype.propertyIsEnumerable.call(fe,Ct[yt])&&(te[Ct[yt]]=fe[Ct[yt]]);return te},be=fe=>{const{prefixCls:Ce,selectPrefixCls:te,className:Ct,rootClassName:yt,style:$t,size:xe,locale:Rt,selectComponentClass:je,responsive:fn,showSizeChanger:jn}=fe,bn=Mt(fe,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:ci}=(0,we.Z)(fn),{getPrefixCls:Ji,direction:zi,pagination:dr={}}=ge.useContext(Ze.E_),Fr=Ji("pagination",Ce),[oo,Jr]=Dt(Fr),zr=jn!=null?jn:dr.showSizeChanger,pr=ge.useMemo(()=>{const Vt=ge.createElement("span",{className:`${Fr}-item-ellipsis`},"\u2022\u2022\u2022"),xs=ge.createElement("button",{className:`${Fr}-item-link`,type:"button",tabIndex:-1},zi==="rtl"?ge.createElement(Wt.Z,null):ge.createElement(St.Z,null)),Ss=ge.createElement("button",{className:`${Fr}-item-link`,type:"button",tabIndex:-1},zi==="rtl"?ge.createElement(St.Z,null):ge.createElement(Wt.Z,null)),Ms=ge.createElement("a",{className:`${Fr}-item-link`},ge.createElement("div",{className:`${Fr}-item-container`},zi==="rtl"?ge.createElement(Jt.Z,{className:`${Fr}-item-link-icon`}):ge.createElement(kt,{className:`${Fr}-item-link-icon`}),Vt)),ma=ge.createElement("a",{className:`${Fr}-item-link`},ge.createElement("div",{className:`${Fr}-item-container`},zi==="rtl"?ge.createElement(kt,{className:`${Fr}-item-link-icon`}):ge.createElement(Jt.Z,{className:`${Fr}-item-link-icon`}),Vt));return{prevIcon:xs,nextIcon:Ss,jumpPrevIcon:Ms,jumpNextIcon:ma}},[zi,Fr]),[Kr]=(0,oe.Z)("Pagination",Oe.Z),hr=Object.assign(Object.assign({},Kr),Rt),Mo=(0,Qe.Z)(xe),Xo=Mo==="small"||!!(ci&&!Mo&&fn),mo=Ji("select",te),Ts=qt()({[`${Fr}-mini`]:Xo,[`${Fr}-rtl`]:zi==="rtl"},dr==null?void 0:dr.className,Ct,yt,Jr),ws=Object.assign(Object.assign({},dr==null?void 0:dr.style),$t);return oo(ge.createElement(Ge,Object.assign({},pr,bn,{style:ws,prefixCls:Fr,selectPrefixCls:mo,className:Ts,selectComponentClass:je||(Xo?En:Nn),locale:hr,showSizeChanger:zr})))},De=be},13570:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return oe}});var bt=Bt(72308),ge=Bt(59301),se={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"},Me=se,ie=Bt(7657),ae=function(En,Nn){return ge.createElement(ie.Z,(0,bt.Z)({},En,{ref:Nn,icon:Me}))},Lt=ge.forwardRef(ae),kt=Lt,Jt=Bt(92310),St=Bt.n(Jt),Wt=Bt(49618),Gt=Bt(52487),qt=Bt(74416),wt=Bt(18929),et=Bt(10228),tt=Bt(26112);function lt(Pe,En){var Nn=Pe.disabled,Xe=Pe.prefixCls,kn=Pe.character,Vn=Pe.characterRender,Ai=Pe.index,Wn=Pe.count,Si=Pe.value,an=Pe.allowHalf,Li=Pe.focused,Oi=Pe.onHover,ue=Pe.onClick,Pn=function(Ce){Oi(Ce,Ai)},de=function(Ce){ue(Ce,Ai)},Dt=function(Ce){Ce.keyCode===et.Z.ENTER&&ue(Ce,Ai)},Mt=Ai+1,zt=new Set([Xe]);Si===0&&Ai===0&&Li?zt.add("".concat(Xe,"-focused")):an&&Si+.5>=Mt&&Si<Mt?(zt.add("".concat(Xe,"-half")),zt.add("".concat(Xe,"-active")),Li&&zt.add("".concat(Xe,"-focused"))):(Mt<=Si?zt.add("".concat(Xe,"-full")):zt.add("".concat(Xe,"-zero")),Mt===Si&&Li&&zt.add("".concat(Xe,"-focused")));var be=typeof kn=="function"?kn(Pe):kn,De=ge.createElement("li",{className:St()(Array.from(zt)),ref:En},ge.createElement("div",{onClick:Nn?null:de,onKeyDown:Nn?null:Dt,onMouseMove:Nn?null:Pn,role:"radio","aria-checked":Si>Ai?"true":"false","aria-posinset":Ai+1,"aria-setsize":Wn,tabIndex:Nn?-1:0},ge.createElement("div",{className:"".concat(Xe,"-first")},be),ge.createElement("div",{className:"".concat(Xe,"-second")},be)));return Vn&&(De=Vn(De,Pe)),De}var rt=ge.forwardRef(lt);function ut(){var Pe=ge.useRef({});function En(Xe){return Pe.current[Xe]}function Nn(Xe){return function(kn){Pe.current[Xe]=kn}}return[En,Nn]}function dt(Pe){var En=Pe.pageXOffset,Nn="scrollLeft";if(typeof En!="number"){var Xe=Pe.document;En=Xe.documentElement[Nn],typeof En!="number"&&(En=Xe.body[Nn])}return En}function pt(Pe){var En,Nn,Xe=Pe.ownerDocument,kn=Xe.body,Vn=Xe&&Xe.documentElement,Ai=Pe.getBoundingClientRect();return En=Ai.left,Nn=Ai.top,En-=Vn.clientLeft||kn.clientLeft||0,Nn-=Vn.clientTop||kn.clientTop||0,{left:En,top:Nn}}function Ft(Pe){var En=pt(Pe),Nn=Pe.ownerDocument,Xe=Nn.defaultView||Nn.parentWindow;return En.left+=dt(Xe),En.left}var Tt=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function _t(Pe,En){var Nn,Xe=Pe.prefixCls,kn=Xe===void 0?"rc-rate":Xe,Vn=Pe.className,Ai=Pe.defaultValue,Wn=Pe.value,Si=Pe.count,an=Si===void 0?5:Si,Li=Pe.allowHalf,Oi=Li===void 0?!1:Li,ue=Pe.allowClear,Pn=ue===void 0?!0:ue,de=Pe.character,Dt=de===void 0?"\u2605":de,Mt=Pe.characterRender,zt=Pe.disabled,be=Pe.direction,De=be===void 0?"ltr":be,fe=Pe.tabIndex,Ce=fe===void 0?0:fe,te=Pe.autoFocus,Ct=Pe.onHoverChange,yt=Pe.onChange,$t=Pe.onFocus,xe=Pe.onBlur,Rt=Pe.onKeyDown,je=Pe.onMouseLeave,fn=(0,qt.Z)(Pe,Tt),jn=ut(),bn=(0,Gt.Z)(jn,2),ci=bn[0],Ji=bn[1],zi=ge.useRef(null),dr=function(){if(!zt){var Ve;(Ve=zi.current)===null||Ve===void 0||Ve.focus()}};ge.useImperativeHandle(En,function(){return{focus:dr,blur:function(){if(!zt){var Ve;(Ve=zi.current)===null||Ve===void 0||Ve.blur()}}}});var Fr=(0,wt.Z)(Ai||0,{value:Wn}),oo=(0,Gt.Z)(Fr,2),Jr=oo[0],zr=oo[1],pr=(0,wt.Z)(null),Kr=(0,Gt.Z)(pr,2),hr=Kr[0],Mo=Kr[1],Xo=function(Ve,ni){var Bi=De==="rtl",_i=Ve+1;if(Oi){var tr=ci(Ve),sn=Ft(tr),fi=tr.clientWidth;(Bi&&ni-sn>fi/2||!Bi&&ni-sn<fi/2)&&(_i-=.5)}return _i},mo=function(Ve){zr(Ve),yt==null||yt(Ve)},Ts=ge.useState(!1),ws=(0,Gt.Z)(Ts,2),Vt=ws[0],xs=ws[1],Ss=function(){xs(!0),$t==null||$t()},Ms=function(){xs(!1),xe==null||xe()},ma=ge.useState(null),Ea=(0,Gt.Z)(ma,2),oa=Ea[0],ao=Ea[1],br=function(Ve,ni){var Bi=Xo(ni,Ve.pageX);Bi!==hr&&(ao(Bi),Mo(null)),Ct==null||Ct(Bi)},Un=function(Ve){zt||(ao(null),Mo(null),Ct==null||Ct(void 0)),Ve&&(je==null||je(Ve))},On=function(Ve,ni){var Bi=Xo(ni,Ve.pageX),_i=!1;Pn&&(_i=Bi===Jr),Un(),mo(_i?0:Bi),Mo(_i?Bi:null)},Re=function(Ve){var ni=Ve.keyCode,Bi=De==="rtl",_i=Jr;ni===et.Z.RIGHT&&_i<an&&!Bi?(Oi?_i+=.5:_i+=1,mo(_i),Ve.preventDefault()):ni===et.Z.LEFT&&_i>0&&!Bi||ni===et.Z.RIGHT&&_i>0&&Bi?(Oi?_i-=.5:_i-=1,mo(_i),Ve.preventDefault()):ni===et.Z.LEFT&&_i<an&&Bi&&(Oi?_i+=.5:_i+=1,mo(_i),Ve.preventDefault()),Rt==null||Rt(Ve)};ge.useEffect(function(){te&&!zt&&dr()},[]);var hi=new Array(an).fill(0).map(function(gn,Ve){return ge.createElement(rt,{ref:Ji(Ve),index:Ve,count:an,disabled:zt,prefixCls:"".concat(kn,"-star"),allowHalf:Oi,value:oa===null?Jr:oa,onClick:On,onHover:br,key:gn||Ve,character:Dt,characterRender:Mt,focused:Vt})}),en=St()(kn,Vn,(Nn={},(0,Wt.Z)(Nn,"".concat(kn,"-disabled"),zt),(0,Wt.Z)(Nn,"".concat(kn,"-rtl"),De==="rtl"),Nn));return ge.createElement("ul",(0,bt.Z)({className:en,onMouseLeave:Un,tabIndex:zt?-1:Ce,onFocus:zt?null:Ss,onBlur:zt?null:Ms,onKeyDown:zt?null:Re,ref:zi,role:"radiogroup"},(0,tt.Z)(fn,{aria:!0,data:!0,attr:!0})),hi)}var re=ge.forwardRef(_t),he=re,Ae=Bt(36355),Fe=Bt(6848),ee=Bt(17313),We=Bt(83116),Yt=Bt(37613);const qe=Pe=>{const{componentCls:En}=Pe;return{[`${En}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Pe.marginXS},"> div":{transition:`all ${Pe.motionDurationMid}, outline 0s`,"&:hover":{transform:Pe.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${Pe.lineWidth}px dashed ${Pe.starColor}`,transform:Pe.starHoverScale}},"&-first, &-second":{color:Pe.starBg,transition:`all ${Pe.motionDurationMid}`,userSelect:"none",[Pe.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${En}-star-first, &-half ${En}-star-second`]:{opacity:1},[`&-half ${En}-star-first, &-full ${En}-star-second`]:{color:"inherit"}}}},Ge=Pe=>({[`&-rtl${Pe.componentCls}`]:{direction:"rtl"}}),Oe=Pe=>{const{componentCls:En}=Pe;return{[En]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ee.Wf)(Pe)),{display:"inline-block",margin:0,padding:0,color:Pe.starColor,fontSize:Pe.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${En} ${En}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),qe(Pe)),{[`+ ${En}-text`]:{display:"inline-block",marginInlineStart:Pe.marginXS,fontSize:Pe.fontSize}}),Ge(Pe))}};var Ze=(0,We.Z)("Rate",Pe=>{const En=(0,Yt.TS)(Pe,{});return[Oe(En)]},Pe=>({starColor:Pe.yellow6,starSize:Pe.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Pe.colorFillContent})),Qe=function(Pe,En){var Nn={};for(var Xe in Pe)Object.prototype.hasOwnProperty.call(Pe,Xe)&&En.indexOf(Xe)<0&&(Nn[Xe]=Pe[Xe]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kn=0,Xe=Object.getOwnPropertySymbols(Pe);kn<Xe.length;kn++)En.indexOf(Xe[kn])<0&&Object.prototype.propertyIsEnumerable.call(Pe,Xe[kn])&&(Nn[Xe[kn]]=Pe[Xe[kn]]);return Nn},oe=ge.forwardRef((Pe,En)=>{const{prefixCls:Nn,className:Xe,rootClassName:kn,style:Vn,tooltips:Ai,character:Wn=ge.createElement(kt,null)}=Pe,Si=Qe(Pe,["prefixCls","className","rootClassName","style","tooltips","character"]),an=(zt,be)=>{let{index:De}=be;return Ai?ge.createElement(Fe.Z,{title:Ai[De]},zt):zt},{getPrefixCls:Li,direction:Oi,rate:ue}=ge.useContext(Ae.E_),Pn=Li("rate",Nn),[de,Dt]=Ze(Pn),Mt=Object.assign(Object.assign({},ue==null?void 0:ue.style),Vn);return de(ge.createElement(he,Object.assign({ref:En,character:Wn,characterRender:an},Si,{className:St()(Xe,kn,Dt,ue==null?void 0:ue.className),style:Mt,prefixCls:Pn,direction:Oi})))})},57809:function(ui,Cn,Bt){"use strict";var bt=Bt(92310),ge=Bt.n(bt),se=Bt(77861),Me=Bt(2738),ie=Bt(59301),ae=Bt(53487),Lt=Bt(62892),kt=Bt(19080),Jt=Bt(36355),St=Bt(1684),Wt=Bt(93891),Gt=Bt(19716),qt=Bt(32441),wt=Bt(33234),et=Bt(14154),tt=Bt(58582),lt=Bt(84443),rt=Bt(66339),ut=function(_t,re){var he={};for(var Ae in _t)Object.prototype.hasOwnProperty.call(_t,Ae)&&re.indexOf(Ae)<0&&(he[Ae]=_t[Ae]);if(_t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,Ae=Object.getOwnPropertySymbols(_t);Fe<Ae.length;Fe++)re.indexOf(Ae[Fe])<0&&Object.prototype.propertyIsEnumerable.call(_t,Ae[Fe])&&(he[Ae[Fe]]=_t[Ae[Fe]]);return he};const dt="SECRET_COMBOBOX_MODE_DO_NOT_USE",pt=(_t,re)=>{var he,{prefixCls:Ae,bordered:Fe=!0,className:ee,rootClassName:We,getPopupContainer:Yt,popupClassName:qe,dropdownClassName:Ge,listHeight:Oe=256,placement:Ze,listItemHeight:Qe=24,size:we,disabled:oe,notFoundContent:Pe,status:En,builtinPlacements:Nn,dropdownMatchSelectWidth:Xe,popupMatchSelectWidth:kn,direction:Vn,style:Ai,allowClear:Wn}=_t,Si=ut(_t,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:an,getPrefixCls:Li,renderEmpty:Oi,direction:ue,virtual:Pn,popupMatchSelectWidth:de,popupOverflow:Dt,select:Mt}=ie.useContext(Jt.E_),zt=Li("select",Ae),be=Li(),De=Vn!=null?Vn:ue,{compactSize:fe,compactItemClassnames:Ce}=(0,wt.ri)(zt,De),[te,Ct]=(0,et.Z)(zt),yt=ie.useMemo(()=>{const{mode:ws}=Si;if(ws!=="combobox")return ws===dt?"combobox":ws},[Si.mode]),$t=yt==="multiple"||yt==="tags",xe=(0,lt.Z)(Si.suffixIcon,Si.showArrow),Rt=(he=kn!=null?kn:Xe)!==null&&he!==void 0?he:de,{status:je,hasFeedback:fn,isFormItemInput:jn,feedbackIcon:bn}=ie.useContext(qt.aM),ci=(0,kt.F)(je,En);let Ji;Pe!==void 0?Ji=Pe:yt==="combobox"?Ji=null:Ji=(Oi==null?void 0:Oi("Select"))||ie.createElement(Wt.Z,{componentName:"Select"});const{suffixIcon:zi,itemIcon:dr,removeIcon:Fr,clearIcon:oo}=(0,rt.Z)(Object.assign(Object.assign({},Si),{multiple:$t,hasFeedback:fn,feedbackIcon:bn,showSuffixIcon:xe,prefixCls:zt,showArrow:Si.showArrow,componentName:"Select"})),Jr=Wn===!0?{clearIcon:oo}:Wn,zr=(0,Me.Z)(Si,["suffixIcon","itemIcon"]),pr=ge()(qe||Ge,{[`${zt}-dropdown-${De}`]:De==="rtl"},We,Ct),Kr=(0,Gt.Z)(ws=>{var Vt;return(Vt=we!=null?we:fe)!==null&&Vt!==void 0?Vt:ws}),hr=ie.useContext(St.Z),Mo=oe!=null?oe:hr,Xo=ge()({[`${zt}-lg`]:Kr==="large",[`${zt}-sm`]:Kr==="small",[`${zt}-rtl`]:De==="rtl",[`${zt}-borderless`]:!Fe,[`${zt}-in-form-item`]:jn},(0,kt.Z)(zt,ci,fn),Ce,Mt==null?void 0:Mt.className,ee,We,Ct),mo=ie.useMemo(()=>Ze!==void 0?Ze:De==="rtl"?"bottomRight":"bottomLeft",[Ze,De]),Ts=(0,tt.Z)(Nn,Dt);return te(ie.createElement(se.ZP,Object.assign({ref:re,virtual:Pn,showSearch:Mt==null?void 0:Mt.showSearch},zr,{style:Object.assign(Object.assign({},Mt==null?void 0:Mt.style),Ai),dropdownMatchSelectWidth:Rt,builtinPlacements:Ts,transitionName:(0,Lt.m)(be,"slide-up",Si.transitionName),listHeight:Oe,listItemHeight:Qe,mode:yt,prefixCls:zt,placement:mo,direction:De,suffixIcon:zi,menuItemSelectedIcon:dr,removeIcon:Fr,allowClear:Jr,notFoundContent:Ji,className:Xo,getPopupContainer:Yt||an,dropdownClassName:pr,disabled:Mo})))},Ft=ie.forwardRef(pt),Tt=(0,ae.Z)(Ft);Ft.SECRET_COMBOBOX_MODE_DO_NOT_USE=dt,Ft.Option=se.Wx,Ft.OptGroup=se.Xo,Ft._InternalPanelDoNotUseOrYouWillBeFired=Tt,Cn.default=Ft},14154:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return Ft}});var bt=Bt(17313),ge=Bt(74207),se=Bt(37613),Me=Bt(83116),ie=Bt(13826),ae=Bt(92899);const Lt=Tt=>{const{optionHeight:_t,optionFontSize:re,optionLineHeight:he,optionPadding:Ae}=Tt;return{position:"relative",display:"block",minHeight:_t,padding:Ae,color:Tt.colorText,fontWeight:"normal",fontSize:re,lineHeight:he,boxSizing:"border-box"}};var Jt=Tt=>{const{antCls:_t,componentCls:re}=Tt,he=`${re}-item`,Ae=`&${_t}-slide-up-enter${_t}-slide-up-enter-active`,Fe=`&${_t}-slide-up-appear${_t}-slide-up-appear-active`,ee=`&${_t}-slide-up-leave${_t}-slide-up-leave-active`,We=`${re}-dropdown-placement-`;return[{[`${re}-dropdown`]:Object.assign(Object.assign({},(0,bt.Wf)(Tt)),{position:"absolute",top:-9999,zIndex:Tt.zIndexPopup,boxSizing:"border-box",padding:Tt.paddingXXS,overflow:"hidden",fontSize:Tt.fontSize,fontVariant:"initial",backgroundColor:Tt.colorBgElevated,borderRadius:Tt.borderRadiusLG,outline:"none",boxShadow:Tt.boxShadowSecondary,[`
|
|
|
${Ae}${We}bottomLeft,
|
|
|
${Fe}${We}bottomLeft
|
|
|
`]:{animationName:ie.fJ},[`
|
|
|
${Ae}${We}topLeft,
|
|
|
${Fe}${We}topLeft,
|
|
|
${Ae}${We}topRight,
|
|
|
${Fe}${We}topRight
|
|
|
`]:{animationName:ie.Qt},[`${ee}${We}bottomLeft`]:{animationName:ie.Uw},[`
|
|
|
${ee}${We}topLeft,
|
|
|
${ee}${We}topRight
|
|
|
`]:{animationName:ie.ly},"&-hidden":{display:"none"},[`${he}`]:Object.assign(Object.assign({},Lt(Tt)),{cursor:"pointer",transition:`background ${Tt.motionDurationSlow} ease`,borderRadius:Tt.borderRadiusSM,"&-group":{color:Tt.colorTextDescription,fontSize:Tt.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},bt.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${he}-option-disabled)`]:{backgroundColor:Tt.optionActiveBg},[`&-selected:not(${he}-option-disabled)`]:{color:Tt.optionSelectedColor,fontWeight:Tt.optionSelectedFontWeight,backgroundColor:Tt.optionSelectedBg,[`${he}-option-state`]:{color:Tt.colorPrimary}},"&-disabled":{[`&${he}-option-selected`]:{backgroundColor:Tt.colorBgContainerDisabled},color:Tt.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Tt.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,ie.oN)(Tt,"slide-up"),(0,ie.oN)(Tt,"slide-down"),(0,ae.Fm)(Tt,"move-up"),(0,ae.Fm)(Tt,"move-down")]};const St=2,Wt=Tt=>{let{controlHeightSM:_t,controlHeight:re,lineWidth:he}=Tt;const Ae=(re-_t)/2-he,Fe=Math.ceil(Ae/2);return[Ae,Fe]};function Gt(Tt,_t){const{componentCls:re,iconCls:he}=Tt,Ae=`${re}-selection-overflow`,Fe=Tt.multipleSelectItemHeight,[ee]=Wt(Tt),We=_t?`${re}-${_t}`:"";return{[`${re}-multiple${We}`]:{fontSize:Tt.fontSize,[Ae]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${re}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${ee-St}px ${St*2}px`,borderRadius:Tt.borderRadius,[`${re}-show-search&`]:{cursor:"text"},[`${re}-disabled&`]:{background:Tt.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${St}px 0`,lineHeight:`${Fe}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${re}-show-arrow ${re}-selector,
|
|
|
&${re}-allow-clear ${re}-selector
|
|
|
`]:{paddingInlineEnd:Tt.fontSizeIcon+Tt.controlPaddingHorizontal},[`${re}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Fe,marginTop:St,marginBottom:St,lineHeight:`${Fe-Tt.lineWidth*2}px`,background:Tt.multipleItemBg,border:`${Tt.lineWidth}px ${Tt.lineType} ${Tt.multipleItemBorderColor}`,borderRadius:Tt.borderRadiusSM,cursor:"default",transition:`font-size ${Tt.motionDurationSlow}, line-height ${Tt.motionDurationSlow}, height ${Tt.motionDurationSlow}`,userSelect:"none",marginInlineEnd:St*2,paddingInlineStart:Tt.paddingXS,paddingInlineEnd:Tt.paddingXS/2,[`${re}-disabled&`]:{color:Tt.multipleItemColorDisabled,borderColor:Tt.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Tt.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,bt.Ro)()),{display:"inline-flex",alignItems:"center",color:Tt.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${he}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Tt.colorIconHover}})},[`${Ae}-item + ${Ae}-item`]:{[`${re}-selection-search`]:{marginInlineStart:0}},[`${re}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Tt.inputPaddingHorizontalBase-ee,"\n &-input,\n &-mirror\n ":{height:Fe,fontFamily:Tt.fontFamily,lineHeight:`${Fe}px`,transition:`all ${Tt.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${re}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Tt.inputPaddingHorizontalBase,insetInlineEnd:Tt.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Tt.motionDurationSlow}`}}}}var wt=Tt=>{const{componentCls:_t}=Tt,re=(0,se.TS)(Tt,{controlHeight:Tt.controlHeightSM,multipleSelectItemHeight:Tt.controlHeightXS,borderRadius:Tt.borderRadiusSM,borderRadiusSM:Tt.borderRadiusXS}),he=(0,se.TS)(Tt,{fontSize:Tt.fontSizeLG,controlHeight:Tt.controlHeightLG,multipleSelectItemHeight:Tt.multipleItemHeightLG,borderRadius:Tt.borderRadiusLG,borderRadiusSM:Tt.borderRadius}),[,Ae]=Wt(Tt);return[Gt(Tt),Gt(re,"sm"),{[`${_t}-multiple${_t}-sm`]:{[`${_t}-selection-placeholder`]:{insetInline:Tt.controlPaddingHorizontalSM-Tt.lineWidth},[`${_t}-selection-search`]:{marginInlineStart:Ae}}},Gt(he,"lg")]};function et(Tt,_t){const{componentCls:re,inputPaddingHorizontalBase:he,borderRadius:Ae}=Tt,Fe=Tt.controlHeight-Tt.lineWidth*2,ee=Math.ceil(Tt.fontSize*1.25),We=_t?`${re}-${_t}`:"";return{[`${re}-single${We}`]:{fontSize:Tt.fontSize,[`${re}-selector`]:Object.assign(Object.assign({},(0,bt.Wf)(Tt)),{display:"flex",borderRadius:Ae,[`${re}-selection-search`]:{position:"absolute",top:0,insetInlineStart:he,insetInlineEnd:he,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${re}-selection-item,
|
|
|
${re}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${Fe}px`,transition:`all ${Tt.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Fe}px`}},[`${re}-selection-item`]:{position:"relative",userSelect:"none"},[`${re}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${re}-selection-item:after`,`${re}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${re}-show-arrow ${re}-selection-item,
|
|
|
&${re}-show-arrow ${re}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:ee},[`&${re}-open ${re}-selection-item`]:{color:Tt.colorTextPlaceholder},[`&:not(${re}-customize-input)`]:{[`${re}-selector`]:{width:"100%",height:Tt.controlHeight,padding:`0 ${he}px`,[`${re}-selection-search-input`]:{height:Fe},"&:after":{lineHeight:`${Fe}px`}}},[`&${re}-customize-input`]:{[`${re}-selector`]:{"&:after":{display:"none"},[`${re}-selection-search`]:{position:"static",width:"100%"},[`${re}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${he}px`,"&:after":{display:"none"}}}}}}}function tt(Tt){const{componentCls:_t}=Tt,re=Tt.controlPaddingHorizontalSM-Tt.lineWidth;return[et(Tt),et((0,se.TS)(Tt,{controlHeight:Tt.controlHeightSM,borderRadius:Tt.borderRadiusSM}),"sm"),{[`${_t}-single${_t}-sm`]:{[`&:not(${_t}-customize-input)`]:{[`${_t}-selection-search`]:{insetInlineStart:re,insetInlineEnd:re},[`${_t}-selector`]:{padding:`0 ${re}px`},[`&${_t}-show-arrow ${_t}-selection-search`]:{insetInlineEnd:re+Tt.fontSize*1.5},[`
|
|
|
&${_t}-show-arrow ${_t}-selection-item,
|
|
|
&${_t}-show-arrow ${_t}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Tt.fontSize*1.5}}}},et((0,se.TS)(Tt,{controlHeight:Tt.singleItemHeightLG,fontSize:Tt.fontSizeLG,borderRadius:Tt.borderRadiusLG}),"lg")]}const lt=Tt=>{const{componentCls:_t,selectorBg:re}=Tt;return{position:"relative",backgroundColor:re,border:`${Tt.lineWidth}px ${Tt.lineType} ${Tt.colorBorder}`,transition:`all ${Tt.motionDurationMid} ${Tt.motionEaseInOut}`,input:{cursor:"pointer"},[`${_t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${_t}-disabled&`]:{color:Tt.colorTextDisabled,background:Tt.colorBgContainerDisabled,cursor:"not-allowed",[`${_t}-multiple&`]:{background:Tt.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},rt=function(Tt,_t){let re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:he,borderHoverColor:Ae,outlineColor:Fe,antCls:ee}=_t,We=re?{[`${he}-selector`]:{borderColor:Ae}}:{};return{[Tt]:{[`&:not(${he}-disabled):not(${he}-customize-input):not(${ee}-pagination-size-changer)`]:Object.assign(Object.assign({},We),{[`${he}-focused& ${he}-selector`]:{borderColor:Ae,boxShadow:`0 0 0 ${_t.controlOutlineWidth}px ${Fe}`,outline:0},[`&:hover ${he}-selector`]:{borderColor:Ae}})}}},ut=Tt=>{const{componentCls:_t}=Tt;return{[`${_t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},dt=Tt=>{const{componentCls:_t,inputPaddingHorizontalBase:re,iconCls:he}=Tt;return{[_t]:Object.assign(Object.assign({},(0,bt.Wf)(Tt)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${_t}-customize-input) ${_t}-selector`]:Object.assign(Object.assign({},lt(Tt)),ut(Tt)),[`${_t}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},bt.vS),[`${_t}-selection-placeholder`]:Object.assign(Object.assign({},bt.vS),{flex:1,color:Tt.colorTextPlaceholder,pointerEvents:"none"}),[`${_t}-arrow`]:Object.assign(Object.assign({},(0,bt.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:re,height:Tt.fontSizeIcon,marginTop:-Tt.fontSizeIcon/2,color:Tt.colorTextQuaternary,fontSize:Tt.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[he]:{verticalAlign:"top",transition:`transform ${Tt.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${_t}-suffix)`]:{pointerEvents:"auto"}},[`${_t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${_t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:re,zIndex:1,display:"inline-block",width:Tt.fontSizeIcon,height:Tt.fontSizeIcon,marginTop:-Tt.fontSizeIcon/2,color:Tt.colorTextQuaternary,fontSize:Tt.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Tt.clearBg,cursor:"pointer",opacity:0,transition:`color ${Tt.motionDurationMid} ease, opacity ${Tt.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Tt.colorTextTertiary}},"&:hover":{[`${_t}-clear`]:{opacity:1}}}),[`${_t}-has-feedback`]:{[`${_t}-clear`]:{insetInlineEnd:re+Tt.fontSize+Tt.paddingXS}}}},pt=Tt=>{const{componentCls:_t}=Tt;return[{[_t]:{[`&-borderless ${_t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${_t}-in-form-item`]:{width:"100%"}}},dt(Tt),tt(Tt),wt(Tt),Jt(Tt),{[`${_t}-rtl`]:{direction:"rtl"}},rt(_t,(0,se.TS)(Tt,{borderHoverColor:Tt.colorPrimaryHover,outlineColor:Tt.controlOutline})),rt(`${_t}-status-error`,(0,se.TS)(Tt,{borderHoverColor:Tt.colorErrorHover,outlineColor:Tt.colorErrorOutline}),!0),rt(`${_t}-status-warning`,(0,se.TS)(Tt,{borderHoverColor:Tt.colorWarningHover,outlineColor:Tt.colorWarningOutline}),!0),(0,ge.c)(Tt,{borderElCls:`${_t}-selector`,focusElCls:`${_t}-focused`})]};var Ft=(0,Me.Z)("Select",(Tt,_t)=>{let{rootPrefixCls:re}=_t;const he=(0,se.TS)(Tt,{rootPrefixCls:re,inputPaddingHorizontalBase:Tt.paddingSM-1,multipleSelectItemHeight:Tt.multipleItemHeight});return[pt(he)]},Tt=>{const{fontSize:_t,lineHeight:re,controlHeight:he,controlPaddingHorizontal:Ae,zIndexPopupBase:Fe,colorText:ee,fontWeightStrong:We,controlItemBgActive:Yt,controlItemBgHover:qe,colorBgContainer:Ge,colorFillSecondary:Oe,controlHeightLG:Ze,controlHeightSM:Qe,colorBgContainerDisabled:we,colorTextDisabled:oe}=Tt;return{zIndexPopup:Fe+50,optionSelectedColor:ee,optionSelectedFontWeight:We,optionSelectedBg:Yt,optionActiveBg:qe,optionPadding:`${(he-_t*re)/2}px ${Ae}px`,optionFontSize:_t,optionLineHeight:re,optionHeight:he,selectorBg:Ge,clearBg:Ge,singleItemHeightLG:Ze,multipleItemBg:Oe,multipleItemBorderColor:"transparent",multipleItemHeight:Qe,multipleItemHeightLG:he,multipleSelectorBgDisabled:we,multipleItemColorDisabled:oe,multipleItemBorderColorDisabled:"transparent"}})},58582:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return ge}});const bt=se=>{const ie={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:se==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},ie),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},ie),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},ie),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},ie),{points:["br","tr"],offset:[0,-4]})}};function ge(se,Me){return se||bt(Me)}},84443:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return bt}});function bt(ge,se){return se!==void 0?se:ge!==null}},66339:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return kt}});var bt=Bt(40001),ge=Bt(19248),se=Bt(99267),Me=Bt(84105),ie=Bt(58617),ae=Bt(47472),Lt=Bt(59301);function kt(Jt){let{suffixIcon:St,clearIcon:Wt,menuItemSelectedIcon:Gt,removeIcon:qt,loading:wt,multiple:et,hasFeedback:tt,prefixCls:lt,showSuffixIcon:rt,feedbackIcon:ut,showArrow:dt,componentName:pt}=Jt;const Ft=Wt!=null?Wt:Lt.createElement(ge.Z,null),Tt=Ae=>St===null&&!tt&&!dt?null:Lt.createElement(Lt.Fragment,null,rt!==!1&&Ae,tt&&ut);let _t=null;if(St!==void 0)_t=Tt(St);else if(wt)_t=Tt(Lt.createElement(ie.Z,{spin:!0}));else{const Ae=`${lt}-suffix`;_t=Fe=>{let{open:ee,showSearch:We}=Fe;return Tt(ee&&We?Lt.createElement(ae.Z,{className:Ae}):Lt.createElement(Me.Z,{className:Ae}))}}let re=null;Gt!==void 0?re=Gt:et?re=Lt.createElement(bt.Z,null):re=null;let he=null;return qt!==void 0?he=qt:he=Lt.createElement(se.Z,null),{clearIcon:Ft,suffixIcon:_t,itemIcon:re,removeIcon:he}}},61621:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return Dt}});var bt=Bt(92310),ge=Bt.n(bt),se=Bt(59301),Me=Bt(36355),ie=Bt(2738),Lt=Mt=>{const{prefixCls:zt,className:be,style:De,size:fe,shape:Ce}=Mt,te=ge()({[`${zt}-lg`]:fe==="large",[`${zt}-sm`]:fe==="small"}),Ct=ge()({[`${zt}-circle`]:Ce==="circle",[`${zt}-square`]:Ce==="square",[`${zt}-round`]:Ce==="round"}),yt=se.useMemo(()=>typeof fe=="number"?{width:fe,height:fe,lineHeight:`${fe}px`}:{},[fe]);return se.createElement("span",{className:ge()(zt,te,Ct,be),style:Object.assign(Object.assign({},yt),De)})},kt=Bt(93083),Jt=Bt(83116),St=Bt(37613);const Wt=new kt.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Gt=Mt=>({height:Mt,lineHeight:`${Mt}px`}),qt=Mt=>Object.assign({width:Mt},Gt(Mt)),wt=Mt=>({background:Mt.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Wt,animationDuration:Mt.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),et=Mt=>Object.assign({width:Mt*5,minWidth:Mt*5},Gt(Mt)),tt=Mt=>{const{skeletonAvatarCls:zt,gradientFromColor:be,controlHeight:De,controlHeightLG:fe,controlHeightSM:Ce}=Mt;return{[`${zt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:be},qt(De)),[`${zt}${zt}-circle`]:{borderRadius:"50%"},[`${zt}${zt}-lg`]:Object.assign({},qt(fe)),[`${zt}${zt}-sm`]:Object.assign({},qt(Ce))}},lt=Mt=>{const{controlHeight:zt,borderRadiusSM:be,skeletonInputCls:De,controlHeightLG:fe,controlHeightSM:Ce,gradientFromColor:te}=Mt;return{[`${De}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:te,borderRadius:be},et(zt)),[`${De}-lg`]:Object.assign({},et(fe)),[`${De}-sm`]:Object.assign({},et(Ce))}},rt=Mt=>Object.assign({width:Mt},Gt(Mt)),ut=Mt=>{const{skeletonImageCls:zt,imageSizeBase:be,gradientFromColor:De,borderRadiusSM:fe}=Mt;return{[`${zt}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:De,borderRadius:fe},rt(be*2)),{[`${zt}-path`]:{fill:"#bfbfbf"},[`${zt}-svg`]:Object.assign(Object.assign({},rt(be)),{maxWidth:be*4,maxHeight:be*4}),[`${zt}-svg${zt}-svg-circle`]:{borderRadius:"50%"}}),[`${zt}${zt}-circle`]:{borderRadius:"50%"}}},dt=(Mt,zt,be)=>{const{skeletonButtonCls:De}=Mt;return{[`${be}${De}-circle`]:{width:zt,minWidth:zt,borderRadius:"50%"},[`${be}${De}-round`]:{borderRadius:zt}}},pt=Mt=>Object.assign({width:Mt*2,minWidth:Mt*2},Gt(Mt)),Ft=Mt=>{const{borderRadiusSM:zt,skeletonButtonCls:be,controlHeight:De,controlHeightLG:fe,controlHeightSM:Ce,gradientFromColor:te}=Mt;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${be}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:te,borderRadius:zt,width:De*2,minWidth:De*2},pt(De))},dt(Mt,De,be)),{[`${be}-lg`]:Object.assign({},pt(fe))}),dt(Mt,fe,`${be}-lg`)),{[`${be}-sm`]:Object.assign({},pt(Ce))}),dt(Mt,Ce,`${be}-sm`))},Tt=Mt=>{const{componentCls:zt,skeletonAvatarCls:be,skeletonTitleCls:De,skeletonParagraphCls:fe,skeletonButtonCls:Ce,skeletonInputCls:te,skeletonImageCls:Ct,controlHeight:yt,controlHeightLG:$t,controlHeightSM:xe,gradientFromColor:Rt,padding:je,marginSM:fn,borderRadius:jn,titleHeight:bn,blockRadius:ci,paragraphLiHeight:Ji,controlHeightXS:zi,paragraphMarginTop:dr}=Mt;return{[`${zt}`]:{display:"table",width:"100%",[`${zt}-header`]:{display:"table-cell",paddingInlineEnd:je,verticalAlign:"top",[`${be}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Rt},qt(yt)),[`${be}-circle`]:{borderRadius:"50%"},[`${be}-lg`]:Object.assign({},qt($t)),[`${be}-sm`]:Object.assign({},qt(xe))},[`${zt}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${De}`]:{width:"100%",height:bn,background:Rt,borderRadius:ci,[`+ ${fe}`]:{marginBlockStart:xe}},[`${fe}`]:{padding:0,"> li":{width:"100%",height:Ji,listStyle:"none",background:Rt,borderRadius:ci,"+ li":{marginBlockStart:zi}}},[`${fe}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${zt}-content`]:{[`${De}, ${fe} > li`]:{borderRadius:jn}}},[`${zt}-with-avatar ${zt}-content`]:{[`${De}`]:{marginBlockStart:fn,[`+ ${fe}`]:{marginBlockStart:dr}}},[`${zt}${zt}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Ft(Mt)),tt(Mt)),lt(Mt)),ut(Mt)),[`${zt}${zt}-block`]:{width:"100%",[`${Ce}`]:{width:"100%"},[`${te}`]:{width:"100%"}},[`${zt}${zt}-active`]:{[`
|
|
|
${De},
|
|
|
${fe} > li,
|
|
|
${be},
|
|
|
${Ce},
|
|
|
${te},
|
|
|
${Ct}
|
|
|
`]:Object.assign({},wt(Mt))}}};var _t=(0,Jt.Z)("Skeleton",Mt=>{const{componentCls:zt}=Mt,be=(0,St.TS)(Mt,{skeletonAvatarCls:`${zt}-avatar`,skeletonTitleCls:`${zt}-title`,skeletonParagraphCls:`${zt}-paragraph`,skeletonButtonCls:`${zt}-button`,skeletonInputCls:`${zt}-input`,skeletonImageCls:`${zt}-image`,imageSizeBase:Mt.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${Mt.gradientFromColor} 25%, ${Mt.gradientToColor} 37%, ${Mt.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Tt(be)]},Mt=>{const{colorFillContent:zt,colorFill:be}=Mt,De=zt,fe=be;return{color:De,colorGradientEnd:fe,gradientFromColor:De,gradientToColor:fe,titleHeight:Mt.controlHeight/2,blockRadius:Mt.borderRadiusSM,paragraphMarginTop:Mt.marginLG+Mt.marginXXS,paragraphLiHeight:Mt.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),he=Mt=>{const{prefixCls:zt,className:be,rootClassName:De,active:fe,shape:Ce="circle",size:te="default"}=Mt,{getPrefixCls:Ct}=se.useContext(Me.E_),yt=Ct("skeleton",zt),[$t,xe]=_t(yt),Rt=(0,ie.Z)(Mt,["prefixCls","className"]),je=ge()(yt,`${yt}-element`,{[`${yt}-active`]:fe},be,De,xe);return $t(se.createElement("div",{className:je},se.createElement(Lt,Object.assign({prefixCls:`${yt}-avatar`,shape:Ce,size:te},Rt))))},Fe=Mt=>{const{prefixCls:zt,className:be,rootClassName:De,active:fe,block:Ce=!1,size:te="default"}=Mt,{getPrefixCls:Ct}=se.useContext(Me.E_),yt=Ct("skeleton",zt),[$t,xe]=_t(yt),Rt=(0,ie.Z)(Mt,["prefixCls"]),je=ge()(yt,`${yt}-element`,{[`${yt}-active`]:fe,[`${yt}-block`]:Ce},be,De,xe);return $t(se.createElement("div",{className:je},se.createElement(Lt,Object.assign({prefixCls:`${yt}-button`,size:te},Rt))))};const ee="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 Yt=Mt=>{const{prefixCls:zt,className:be,rootClassName:De,style:fe,active:Ce}=Mt,{getPrefixCls:te}=se.useContext(Me.E_),Ct=te("skeleton",zt),[yt,$t]=_t(Ct),xe=ge()(Ct,`${Ct}-element`,{[`${Ct}-active`]:Ce},be,De,$t);return yt(se.createElement("div",{className:xe},se.createElement("div",{className:ge()(`${Ct}-image`,be),style:fe},se.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Ct}-image-svg`},se.createElement("path",{d:ee,className:`${Ct}-image-path`})))))},Ge=Mt=>{const{prefixCls:zt,className:be,rootClassName:De,active:fe,block:Ce,size:te="default"}=Mt,{getPrefixCls:Ct}=se.useContext(Me.E_),yt=Ct("skeleton",zt),[$t,xe]=_t(yt),Rt=(0,ie.Z)(Mt,["prefixCls"]),je=ge()(yt,`${yt}-element`,{[`${yt}-active`]:fe,[`${yt}-block`]:Ce},be,De,xe);return $t(se.createElement("div",{className:je},se.createElement(Lt,Object.assign({prefixCls:`${yt}-input`,size:te},Rt))))},Oe=Bt(72308),Ze={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"},Qe=Ze,we=Bt(7657),oe=function(zt,be){return se.createElement(we.Z,(0,Oe.Z)({},zt,{ref:be,icon:Qe}))},Pe=se.forwardRef(oe),En=Pe,Xe=Mt=>{const{prefixCls:zt,className:be,rootClassName:De,style:fe,active:Ce,children:te}=Mt,{getPrefixCls:Ct}=se.useContext(Me.E_),yt=Ct("skeleton",zt),[$t,xe]=_t(yt),Rt=ge()(yt,`${yt}-element`,{[`${yt}-active`]:Ce},xe,be,De),je=te!=null?te:se.createElement(En,null);return $t(se.createElement("div",{className:Rt},se.createElement("div",{className:ge()(`${yt}-image`,be),style:fe},je)))},kn=Bt(80702),Ai=Mt=>{const zt=Ct=>{const{width:yt,rows:$t=2}=Mt;if(Array.isArray(yt))return yt[Ct];if($t-1===Ct)return yt},{prefixCls:be,className:De,style:fe,rows:Ce}=Mt,te=(0,kn.Z)(Array(Ce)).map((Ct,yt)=>se.createElement("li",{key:yt,style:{width:zt(yt)}}));return se.createElement("ul",{className:ge()(be,De),style:fe},te)},Si=Mt=>{let{prefixCls:zt,className:be,width:De,style:fe}=Mt;return se.createElement("h3",{className:ge()(zt,be),style:Object.assign({width:De},fe)})};function an(Mt){return Mt&&typeof Mt=="object"?Mt:{}}function Li(Mt,zt){return Mt&&!zt?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Oi(Mt,zt){return!Mt&&zt?{width:"38%"}:Mt&&zt?{width:"50%"}:{}}function ue(Mt,zt){const be={};return(!Mt||!zt)&&(be.width="61%"),!Mt&&zt?be.rows=3:be.rows=2,be}const Pn=Mt=>{const{prefixCls:zt,loading:be,className:De,rootClassName:fe,style:Ce,children:te,avatar:Ct=!1,title:yt=!0,paragraph:$t=!0,active:xe,round:Rt}=Mt,{getPrefixCls:je,direction:fn,skeleton:jn}=se.useContext(Me.E_),bn=je("skeleton",zt),[ci,Ji]=_t(bn);if(be||!("loading"in Mt)){const zi=!!Ct,dr=!!yt,Fr=!!$t;let oo;if(zi){const pr=Object.assign(Object.assign({prefixCls:`${bn}-avatar`},Li(dr,Fr)),an(Ct));oo=se.createElement("div",{className:`${bn}-header`},se.createElement(Lt,Object.assign({},pr)))}let Jr;if(dr||Fr){let pr;if(dr){const hr=Object.assign(Object.assign({prefixCls:`${bn}-title`},Oi(zi,Fr)),an(yt));pr=se.createElement(Si,Object.assign({},hr))}let Kr;if(Fr){const hr=Object.assign(Object.assign({prefixCls:`${bn}-paragraph`},ue(zi,dr)),an($t));Kr=se.createElement(Ai,Object.assign({},hr))}Jr=se.createElement("div",{className:`${bn}-content`},pr,Kr)}const zr=ge()(bn,{[`${bn}-with-avatar`]:zi,[`${bn}-active`]:xe,[`${bn}-rtl`]:fn==="rtl",[`${bn}-round`]:Rt},jn==null?void 0:jn.className,De,fe,Ji);return ci(se.createElement("div",{className:zr,style:Object.assign(Object.assign({},jn==null?void 0:jn.style),Ce)},oo,Jr))}return typeof te!="undefined"?te:null};Pn.Button=Fe,Pn.Avatar=he,Pn.Input=Ge,Pn.Image=Yt,Pn.Node=Xe;var de=Pn,Dt=de},81327:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return lt}});var bt=Bt(59301),ge=Bt(92310),se=Bt.n(ge),Me=Bt(11592),ie=Bt(36355),ae=Bt(33234);const Lt=bt.createContext({latestIndex:0}),kt=Lt.Provider;var St=rt=>{let{className:ut,index:dt,children:pt,split:Ft,style:Tt}=rt;const{latestIndex:_t}=bt.useContext(Lt);return pt==null?null:bt.createElement(bt.Fragment,null,bt.createElement("div",{className:ut,style:Tt},pt),dt<_t&&Ft&&bt.createElement("span",{className:`${ut}-split`},Ft))},Wt=Bt(2856);function Gt(rt){return["small","middle","large"].includes(rt)}function qt(rt){return rt?typeof rt=="number"&&!Number.isNaN(rt):!1}var wt=function(rt,ut){var dt={};for(var pt in rt)Object.prototype.hasOwnProperty.call(rt,pt)&&ut.indexOf(pt)<0&&(dt[pt]=rt[pt]);if(rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ft=0,pt=Object.getOwnPropertySymbols(rt);Ft<pt.length;Ft++)ut.indexOf(pt[Ft])<0&&Object.prototype.propertyIsEnumerable.call(rt,pt[Ft])&&(dt[pt[Ft]]=rt[pt[Ft]]);return dt};const tt=bt.forwardRef((rt,ut)=>{var dt,pt;const{getPrefixCls:Ft,space:Tt,direction:_t}=bt.useContext(ie.E_),{size:re=(Tt==null?void 0:Tt.size)||"small",align:he,className:Ae,rootClassName:Fe,children:ee,direction:We="horizontal",prefixCls:Yt,split:qe,style:Ge,wrap:Oe=!1,classNames:Ze,styles:Qe}=rt,we=wt(rt,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[oe,Pe]=Array.isArray(re)?re:[re,re],En=Gt(Pe),Nn=Gt(oe),Xe=qt(Pe),kn=qt(oe),Vn=(0,Me.Z)(ee,{keepEmpty:!0}),Ai=he===void 0&&We==="horizontal"?"center":he,Wn=Ft("space",Yt),[Si,an]=(0,Wt.Z)(Wn),Li=se()(Wn,Tt==null?void 0:Tt.className,an,`${Wn}-${We}`,{[`${Wn}-rtl`]:_t==="rtl",[`${Wn}-align-${Ai}`]:Ai,[`${Wn}-gap-row-${Pe}`]:En,[`${Wn}-gap-col-${oe}`]:Nn},Ae,Fe),Oi=se()(`${Wn}-item`,(dt=Ze==null?void 0:Ze.item)!==null&&dt!==void 0?dt:(pt=Tt==null?void 0:Tt.classNames)===null||pt===void 0?void 0:pt.item);let ue=0;const Pn=Vn.map((Mt,zt)=>{var be,De;Mt!=null&&(ue=zt);const fe=Mt&&Mt.key||`${Oi}-${zt}`;return bt.createElement(St,{className:Oi,key:fe,index:zt,split:qe,style:(be=Qe==null?void 0:Qe.item)!==null&&be!==void 0?be:(De=Tt==null?void 0:Tt.styles)===null||De===void 0?void 0:De.item},Mt)}),de=bt.useMemo(()=>({latestIndex:ue}),[ue]);if(Vn.length===0)return null;const Dt={};return Oe&&(Dt.flexWrap="wrap"),!Nn&&kn&&(Dt.columnGap=oe),!En&&Xe&&(Dt.rowGap=Pe),Si(bt.createElement("div",Object.assign({ref:ut,className:Li,style:Object.assign(Object.assign(Object.assign({},Dt),Tt==null?void 0:Tt.style),Ge)},we),bt.createElement(kt,{value:de},Pn)))});tt.Compact=ae.ZP;var lt=tt},31797:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{default:function(){return _t}});var bt=Bt(59301),ge=Bt(56762),se=Bt(92343),Me=Bt(92310),ie=Bt.n(Me),ae=Bt(36355),Lt=Bt(61621),Jt=re=>{const{value:he,formatter:Ae,precision:Fe,decimalSeparator:ee,groupSeparator:We="",prefixCls:Yt}=re;let qe;if(typeof Ae=="function")qe=Ae(he);else{const Ge=String(he),Oe=Ge.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Oe||Ge==="-")qe=Ge;else{const Ze=Oe[1];let Qe=Oe[2]||"0",we=Oe[4]||"";Qe=Qe.replace(/\B(?=(\d{3})+(?!\d))/g,We),typeof Fe=="number"&&(we=we.padEnd(Fe,"0").slice(0,Fe>0?Fe:0)),we&&(we=`${ee}${we}`),qe=[bt.createElement("span",{key:"int",className:`${Yt}-content-value-int`},Ze,Qe),we&&bt.createElement("span",{key:"decimal",className:`${Yt}-content-value-decimal`},we)]}}return bt.createElement("span",{className:`${Yt}-content-value`},qe)},St=Bt(17313),Wt=Bt(83116),Gt=Bt(37613);const qt=re=>{const{componentCls:he,marginXXS:Ae,padding:Fe,colorTextDescription:ee,titleFontSize:We,colorTextHeading:Yt,contentFontSize:qe,fontFamily:Ge}=re;return{[`${he}`]:Object.assign(Object.assign({},(0,St.Wf)(re)),{[`${he}-title`]:{marginBottom:Ae,color:ee,fontSize:We},[`${he}-skeleton`]:{paddingTop:Fe},[`${he}-content`]:{color:Yt,fontSize:qe,fontFamily:Ge,[`${he}-content-value`]:{display:"inline-block",direction:"ltr"},[`${he}-content-prefix, ${he}-content-suffix`]:{display:"inline-block"},[`${he}-content-prefix`]:{marginInlineEnd:Ae},[`${he}-content-suffix`]:{marginInlineStart:Ae}}})}};var wt=(0,Wt.Z)("Statistic",re=>{const he=(0,Gt.TS)(re,{});return[qt(he)]},re=>{const{fontSizeHeading3:he,fontSize:Ae}=re;return{titleFontSize:Ae,contentFontSize:he}}),tt=re=>{const{prefixCls:he,className:Ae,rootClassName:Fe,style:ee,valueStyle:We,value:Yt=0,title:qe,valueRender:Ge,prefix:Oe,suffix:Ze,loading:Qe=!1,onMouseEnter:we,onMouseLeave:oe,decimalSeparator:Pe=".",groupSeparator:En=","}=re,{getPrefixCls:Nn,direction:Xe,statistic:kn}=bt.useContext(ae.E_),Vn=Nn("statistic",he),[Ai,Wn]=wt(Vn),Si=bt.createElement(Jt,Object.assign({decimalSeparator:Pe,groupSeparator:En,prefixCls:Vn},re,{value:Yt})),an=ie()(Vn,{[`${Vn}-rtl`]:Xe==="rtl"},kn==null?void 0:kn.className,Ae,Fe,Wn);return Ai(bt.createElement("div",{className:an,style:Object.assign(Object.assign({},kn==null?void 0:kn.style),ee),onMouseEnter:we,onMouseLeave:oe},qe&&bt.createElement("div",{className:`${Vn}-title`},qe),bt.createElement(Lt.Z,{paragraph:!1,loading:Qe,className:`${Vn}-skeleton`},bt.createElement("div",{style:We,className:`${Vn}-content`},Oe&&bt.createElement("span",{className:`${Vn}-content-prefix`},Oe),Ge?Ge(Si):Si,Ze&&bt.createElement("span",{className:`${Vn}-content-suffix`},Ze)))))};const lt=[["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 rt(re,he){let Ae=re;const Fe=/\[[^\]]*]/g,ee=(he.match(Fe)||[]).map(Ge=>Ge.slice(1,-1)),We=he.replace(Fe,"[]"),Yt=lt.reduce((Ge,Oe)=>{let[Ze,Qe]=Oe;if(Ge.includes(Ze)){const we=Math.floor(Ae/Qe);return Ae-=we*Qe,Ge.replace(new RegExp(`${Ze}+`,"g"),oe=>{const Pe=oe.length;return we.toString().padStart(Pe,"0")})}return Ge},We);let qe=0;return Yt.replace(Fe,()=>{const Ge=ee[qe];return qe+=1,Ge})}function ut(re,he){const{format:Ae=""}=he,Fe=new Date(re).getTime(),ee=Date.now(),We=Math.max(Fe-ee,0);return rt(We,Ae)}const dt=1e3/30;function pt(re){return new Date(re).getTime()}const Ft=re=>{const{value:he,format:Ae="HH:mm:ss",onChange:Fe,onFinish:ee}=re,We=(0,ge.Z)(),Yt=bt.useRef(null),qe=()=>{ee==null||ee(),Yt.current&&(clearInterval(Yt.current),Yt.current=null)},Ge=()=>{const Qe=pt(he);Qe>=Date.now()&&(Yt.current=setInterval(()=>{We(),Fe==null||Fe(Qe-Date.now()),Qe<Date.now()&&qe()},dt))};bt.useEffect(()=>(Ge(),()=>{Yt.current&&(clearInterval(Yt.current),Yt.current=null)}),[he]);const Oe=(Qe,we)=>ut(Qe,Object.assign(Object.assign({},we),{format:Ae})),Ze=Qe=>(0,se.Tm)(Qe,{title:void 0});return bt.createElement(tt,Object.assign({},re,{valueRender:Ze,formatter:Oe}))};var Tt=bt.memo(Ft);tt.Countdown=Tt;var _t=tt},15969:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{N:function(){return bt}});const bt=ge=>({color:ge.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${ge.motionDurationSlow}`,"&:focus, &:hover":{color:ge.colorLinkHover},"&:active":{color:ge.colorLinkActive}})},78673:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return We}});var bt=Bt(58617),ge=Bt(92310),se=Bt.n(ge),Me=Bt(72308),ie=Bt(49618),ae=Bt(52487),Lt=Bt(74416),kt=Bt(59301),Jt=Bt(18929),St=Bt(10228),Wt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Gt=kt.forwardRef(function(Yt,qe){var Ge,Oe=Yt.prefixCls,Ze=Oe===void 0?"rc-switch":Oe,Qe=Yt.className,we=Yt.checked,oe=Yt.defaultChecked,Pe=Yt.disabled,En=Yt.loadingIcon,Nn=Yt.checkedChildren,Xe=Yt.unCheckedChildren,kn=Yt.onClick,Vn=Yt.onChange,Ai=Yt.onKeyDown,Wn=(0,Lt.Z)(Yt,Wt),Si=(0,Jt.Z)(!1,{value:we,defaultValue:oe}),an=(0,ae.Z)(Si,2),Li=an[0],Oi=an[1];function ue(Mt,zt){var be=Li;return Pe||(be=Mt,Oi(be),Vn==null||Vn(be,zt)),be}function Pn(Mt){Mt.which===St.Z.LEFT?ue(!1,Mt):Mt.which===St.Z.RIGHT&&ue(!0,Mt),Ai==null||Ai(Mt)}function de(Mt){var zt=ue(!Li,Mt);kn==null||kn(zt,Mt)}var Dt=se()(Ze,Qe,(Ge={},(0,ie.Z)(Ge,"".concat(Ze,"-checked"),Li),(0,ie.Z)(Ge,"".concat(Ze,"-disabled"),Pe),Ge));return kt.createElement("button",(0,Me.Z)({},Wn,{type:"button",role:"switch","aria-checked":Li,disabled:Pe,className:Dt,ref:qe,onKeyDown:Pn,onClick:de}),En,kt.createElement("span",{className:"".concat(Ze,"-inner")},kt.createElement("span",{className:"".concat(Ze,"-inner-checked")},Nn),kt.createElement("span",{className:"".concat(Ze,"-inner-unchecked")},Xe)))});Gt.displayName="Switch";var qt=Gt,wt=Bt(14088),et=Bt(36355),tt=Bt(1684),lt=Bt(19716),rt=Bt(64993),ut=Bt(17313),dt=Bt(83116),pt=Bt(37613);const Ft=Yt=>{const{componentCls:qe,trackHeightSM:Ge,trackPadding:Oe,trackMinWidthSM:Ze,innerMinMarginSM:Qe,innerMaxMarginSM:we,handleSizeSM:oe}=Yt,Pe=`${qe}-inner`;return{[qe]:{[`&${qe}-small`]:{minWidth:Ze,height:Ge,lineHeight:`${Ge}px`,[`${qe}-inner`]:{paddingInlineStart:we,paddingInlineEnd:Qe,[`${Pe}-checked`]:{marginInlineStart:`calc(-100% + ${oe+Oe*2}px - ${we*2}px)`,marginInlineEnd:`calc(100% - ${oe+Oe*2}px + ${we*2}px)`},[`${Pe}-unchecked`]:{marginTop:-Ge,marginInlineStart:0,marginInlineEnd:0}},[`${qe}-handle`]:{width:oe,height:oe},[`${qe}-loading-icon`]:{top:(oe-Yt.switchLoadingIconSize)/2,fontSize:Yt.switchLoadingIconSize},[`&${qe}-checked`]:{[`${qe}-inner`]:{paddingInlineStart:Qe,paddingInlineEnd:we,[`${Pe}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Pe}-unchecked`]:{marginInlineStart:`calc(100% - ${oe+Oe*2}px + ${we*2}px)`,marginInlineEnd:`calc(-100% + ${oe+Oe*2}px - ${we*2}px)`}},[`${qe}-handle`]:{insetInlineStart:`calc(100% - ${oe+Oe}px)`}},[`&:not(${qe}-disabled):active`]:{[`&:not(${qe}-checked) ${Pe}`]:{[`${Pe}-unchecked`]:{marginInlineStart:Yt.marginXXS/2,marginInlineEnd:-Yt.marginXXS/2}},[`&${qe}-checked ${Pe}`]:{[`${Pe}-checked`]:{marginInlineStart:-Yt.marginXXS/2,marginInlineEnd:Yt.marginXXS/2}}}}}}},Tt=Yt=>{const{componentCls:qe,handleSize:Ge}=Yt;return{[qe]:{[`${qe}-loading-icon${Yt.iconCls}`]:{position:"relative",top:(Ge-Yt.fontSize)/2,color:Yt.switchLoadingIconColor,verticalAlign:"top"},[`&${qe}-checked ${qe}-loading-icon`]:{color:Yt.switchColor}}}},_t=Yt=>{const{componentCls:qe,motion:Ge,trackPadding:Oe,handleBg:Ze,handleShadow:Qe,handleSize:we}=Yt,oe=`${qe}-handle`;return{[qe]:{[oe]:{position:"absolute",top:Oe,insetInlineStart:Oe,width:we,height:we,transition:`all ${Yt.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Ze,borderRadius:we/2,boxShadow:Qe,transition:`all ${Yt.switchDuration} ease-in-out`,content:'""'}},[`&${qe}-checked ${oe}`]:{insetInlineStart:`calc(100% - ${we+Oe}px)`},[`&:not(${qe}-disabled):active`]:Ge?{[`${oe}::before`]:{insetInlineEnd:Yt.switchHandleActiveInset,insetInlineStart:0},[`&${qe}-checked ${oe}::before`]:{insetInlineEnd:0,insetInlineStart:Yt.switchHandleActiveInset}}:{}}}},re=Yt=>{const{componentCls:qe,trackHeight:Ge,trackPadding:Oe,innerMinMargin:Ze,innerMaxMargin:Qe,handleSize:we}=Yt,oe=`${qe}-inner`;return{[qe]:{[oe]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Qe,paddingInlineEnd:Ze,transition:`padding-inline-start ${Yt.switchDuration} ease-in-out, padding-inline-end ${Yt.switchDuration} ease-in-out`,[`${oe}-checked, ${oe}-unchecked`]:{display:"block",color:Yt.colorTextLightSolid,fontSize:Yt.fontSizeSM,transition:`margin-inline-start ${Yt.switchDuration} ease-in-out, margin-inline-end ${Yt.switchDuration} ease-in-out`,pointerEvents:"none"},[`${oe}-checked`]:{marginInlineStart:`calc(-100% + ${we+Oe*2}px - ${Qe*2}px)`,marginInlineEnd:`calc(100% - ${we+Oe*2}px + ${Qe*2}px)`},[`${oe}-unchecked`]:{marginTop:-Ge,marginInlineStart:0,marginInlineEnd:0}},[`&${qe}-checked ${oe}`]:{paddingInlineStart:Ze,paddingInlineEnd:Qe,[`${oe}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${oe}-unchecked`]:{marginInlineStart:`calc(100% - ${we+Oe*2}px + ${Qe*2}px)`,marginInlineEnd:`calc(-100% + ${we+Oe*2}px - ${Qe*2}px)`}},[`&:not(${qe}-disabled):active`]:{[`&:not(${qe}-checked) ${oe}`]:{[`${oe}-unchecked`]:{marginInlineStart:Oe*2,marginInlineEnd:-Oe*2}},[`&${qe}-checked ${oe}`]:{[`${oe}-checked`]:{marginInlineStart:-Oe*2,marginInlineEnd:Oe*2}}}}}},he=Yt=>{const{componentCls:qe,trackHeight:Ge,trackMinWidth:Oe}=Yt;return{[qe]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ut.Wf)(Yt)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Oe,height:Ge,lineHeight:`${Ge}px`,verticalAlign:"middle",background:Yt.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Yt.motionDurationMid}`,userSelect:"none",[`&:hover:not(${qe}-disabled)`]:{background:Yt.colorTextTertiary}}),(0,ut.Qy)(Yt)),{[`&${qe}-checked`]:{background:Yt.switchColor,[`&:hover:not(${qe}-disabled)`]:{background:Yt.colorPrimaryHover}},[`&${qe}-loading, &${qe}-disabled`]:{cursor:"not-allowed",opacity:Yt.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${qe}-rtl`]:{direction:"rtl"}})}};var Ae=(0,dt.Z)("Switch",Yt=>{const qe=(0,pt.TS)(Yt,{switchDuration:Yt.motionDurationMid,switchColor:Yt.colorPrimary,switchDisabledOpacity:Yt.opacityLoading,switchLoadingIconSize:Yt.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${Yt.opacityLoading})`,switchHandleActiveInset:"-30%"});return[he(qe),re(qe),_t(qe),Tt(qe),Ft(qe)]},Yt=>{const{fontSize:qe,lineHeight:Ge,controlHeight:Oe,colorWhite:Ze}=Yt,Qe=qe*Ge,we=Oe/2,oe=2,Pe=Qe-oe*2,En=we-oe*2;return{trackHeight:Qe,trackHeightSM:we,trackMinWidth:Pe*2+oe*4,trackMinWidthSM:En*2+oe*2,trackPadding:oe,handleBg:Ze,handleSize:Pe,handleSizeSM:En,handleShadow:`0 2px 4px 0 ${new rt.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:Pe/2,innerMaxMargin:Pe+oe+oe*2,innerMinMarginSM:En/2,innerMaxMarginSM:En+oe+oe*2}}),Fe=function(Yt,qe){var Ge={};for(var Oe in Yt)Object.prototype.hasOwnProperty.call(Yt,Oe)&&qe.indexOf(Oe)<0&&(Ge[Oe]=Yt[Oe]);if(Yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,Oe=Object.getOwnPropertySymbols(Yt);Ze<Oe.length;Ze++)qe.indexOf(Oe[Ze])<0&&Object.prototype.propertyIsEnumerable.call(Yt,Oe[Ze])&&(Ge[Oe[Ze]]=Yt[Oe[Ze]]);return Ge};const ee=kt.forwardRef((Yt,qe)=>{const{prefixCls:Ge,size:Oe,disabled:Ze,loading:Qe,className:we,rootClassName:oe,style:Pe}=Yt,En=Fe(Yt,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Nn,direction:Xe,switch:kn}=kt.useContext(et.E_),Vn=kt.useContext(tt.Z),Ai=(Ze!=null?Ze:Vn)||Qe,Wn=Nn("switch",Ge),Si=kt.createElement("div",{className:`${Wn}-handle`},Qe&&kt.createElement(bt.Z,{className:`${Wn}-loading-icon`})),[an,Li]=Ae(Wn),Oi=(0,lt.Z)(Oe),ue=se()(kn==null?void 0:kn.className,{[`${Wn}-small`]:Oi==="small",[`${Wn}-loading`]:Qe,[`${Wn}-rtl`]:Xe==="rtl"},we,oe,Li),Pn=Object.assign(Object.assign({},kn==null?void 0:kn.style),Pe);return an(kt.createElement(wt.Z,{component:"Switch"},kt.createElement(qt,Object.assign({},En,{prefixCls:Wn,className:ue,style:Pn,disabled:Ai,ref:qe,loadingIcon:Si}))))});ee.__ANT_SWITCH=!0;var We=ee},1710:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{default:function(){return Yi}});var bt={},ge="rc-table-internal-hook",se=Bt(52487),Me=Bt(6089),ie=Bt(34280),ae=Bt(13697),Lt=Bt(59301),kt=Bt(4676);function Jt(ve){var Ee=Lt.createContext(void 0),Ye=function(cn){var dn=cn.value,Dn=cn.children,Jn=Lt.useRef(dn);Jn.current=dn;var Ue=Lt.useState(function(){return{getValue:function(){return Jn.current},listeners:new Set}}),hn=(0,se.Z)(Ue,1),yn=hn[0];return(0,ie.Z)(function(){(0,kt.unstable_batchedUpdates)(function(){yn.listeners.forEach(function(Mn){Mn(dn)})})},[dn]),Lt.createElement(Ee.Provider,{value:yn},Dn)};return{Context:Ee,Provider:Ye,defaultValue:ve}}function St(ve,Ee){var Ye=(0,Me.Z)(typeof Ee=="function"?Ee:function(Mn){if(Ee===void 0)return Mn;if(!Array.isArray(Ee))return Mn[Ee];var Zn={};return Ee.forEach(function(li){Zn[li]=Mn[li]}),Zn}),on=Lt.useContext(ve==null?void 0:ve.Context),cn=on||{},dn=cn.listeners,Dn=cn.getValue,Jn=Lt.useRef();Jn.current=Ye(on?Dn():ve==null?void 0:ve.defaultValue);var Ue=Lt.useState({}),hn=(0,se.Z)(Ue,2),yn=hn[1];return(0,ie.Z)(function(){if(!on)return;function Mn(Zn){var li=Ye(Zn);(0,ae.Z)(Jn.current,li,!0)||yn({})}return dn.add(Mn),function(){dn.delete(Mn)}},[on]),Jn.current}var Wt=Bt(72308),Gt=Bt(8654);function qt(){var ve=Lt.createContext(null);function Ee(){return Lt.useContext(ve)}function Ye(cn,dn){var Dn=(0,Gt.Yr)(cn),Jn=function(hn,yn){var Mn=Dn?{ref:yn}:{},Zn=Lt.useRef(0),li=Lt.useRef(hn),oi=Ee();return oi!==null?Lt.createElement(cn,(0,Wt.Z)({},hn,Mn)):((!dn||dn(li.current,hn))&&(Zn.current+=1),li.current=hn,Lt.createElement(ve.Provider,{value:Zn.current},Lt.createElement(cn,(0,Wt.Z)({},hn,Mn))))};return Dn?Lt.forwardRef(Jn):Jn}function on(cn,dn){var Dn=(0,Gt.Yr)(cn),Jn=function(hn,yn){var Mn=Dn?{ref:yn}:{};return Ee(),Lt.createElement(cn,(0,Wt.Z)({},hn,Mn))};return Dn?Lt.memo(Lt.forwardRef(Jn),dn):Lt.memo(Jn,dn)}return{makeImmutable:Ye,responseImmutable:on,useImmutableMark:Ee}}var wt=qt(),et=wt.makeImmutable,tt=wt.responseImmutable,lt=wt.useImmutableMark,rt=qt(),ut=rt.makeImmutable,dt=rt.responseImmutable,pt=rt.useImmutableMark,Ft=Jt(),Tt=Ft;function _t(ve,Ee){var Ye=Lt.useRef(0);Ye.current+=1;var on=Lt.useRef(ve),cn=[];Object.keys(ve||{}).map(function(Dn){var Jn;(ve==null?void 0:ve[Dn])!==((Jn=on.current)===null||Jn===void 0?void 0:Jn[Dn])&&cn.push(Dn)}),on.current=ve;var dn=Lt.useRef([]);return cn.length&&(dn.current=cn),Lt.useDebugValue(Ye.current),Lt.useDebugValue(dn.current.join(", ")),Ee&&console.log("".concat(Ee,":"),Ye.current,dn.current),Ye.current}var re=null,he=Lt.memo(function(){var ve=_t();return Lt.createElement("h1",null,"Render Times: ",ve)});he.displayName="RenderBlock";var Ae=Bt(62853),Fe=Bt(77321),ee=Bt(49618),We=Bt(92310),Yt=Bt.n(We),qe=Bt(80547),Ge=Bt(97938),Oe=Bt(48736),Ze=Lt.createContext({renderWithProps:!1}),Qe=Ze,we="RC_TABLE_KEY";function oe(ve){return ve==null?[]:Array.isArray(ve)?ve:[ve]}function Pe(ve){var Ee=[],Ye={};return ve.forEach(function(on){for(var cn=on||{},dn=cn.key,Dn=cn.dataIndex,Jn=dn||oe(Dn).join("-")||we;Ye[Jn];)Jn="".concat(Jn,"_next");Ye[Jn]=!0,Ee.push(Jn)}),Ee}function En(ve){return ve!=null}function Nn(ve){return ve&&(0,Ae.Z)(ve)==="object"&&!Array.isArray(ve)&&!Lt.isValidElement(ve)}function Xe(ve,Ee,Ye,on,cn,dn){var Dn=Lt.useContext(Qe),Jn=pt(),Ue=(0,qe.Z)(function(){if(En(on))return[on];var hn=Ee==null||Ee===""?[]:Array.isArray(Ee)?Ee:[Ee],yn=(0,Ge.Z)(ve,hn),Mn=yn,Zn=void 0;if(cn){var li=cn(yn,ve,Ye);Nn(li)?(Mn=li.children,Zn=li.props,Dn.renderWithProps=!0):Mn=li}return[Mn,Zn]},[Jn,ve,on,Ee,cn,Ye],function(hn,yn){if(dn){var Mn=(0,se.Z)(hn,2),Zn=Mn[1],li=(0,se.Z)(yn,2),oi=li[1];return dn(oi,Zn)}return Dn.renderWithProps?!0:!(0,ae.Z)(hn,yn,!0)});return Ue}function kn(ve,Ee,Ye,on){var cn=ve+Ee-1;return ve<=on&&cn>=Ye}function Vn(ve,Ee){return St(Tt,function(Ye){var on=kn(ve,Ee||1,Ye.hoverStartRow,Ye.hoverEndRow);return[on,Ye.onHover]})}var Ai=function(Ee){var Ye=Ee.ellipsis,on=Ee.rowType,cn=Ee.children,dn,Dn=Ye===!0?{showTitle:!0}:Ye;return Dn&&(Dn.showTitle||on==="header")&&(typeof cn=="string"||typeof cn=="number"?dn=cn.toString():Lt.isValidElement(cn)&&typeof cn.props.children=="string"&&(dn=cn.props.children)),dn};function Wn(ve){var Ee,Ye,on,cn,dn,Dn,Jn,Ue,hn=ve.component,yn=ve.children,Mn=ve.ellipsis,Zn=ve.scope,li=ve.prefixCls,oi=ve.className,Fi=ve.align,ki=ve.record,Xi=ve.render,ar=ve.dataIndex,gr=ve.renderIndex,qr=ve.shouldCellUpdate,qi=ve.index,Qn=ve.rowType,so=ve.colSpan,uo=ve.rowSpan,rr=ve.fixLeft,wr=ve.fixRight,mr=ve.firstFixLeft,ir=ve.lastFixLeft,Or=ve.firstFixRight,ho=ve.lastFixRight,So=ve.appendNode,Fo=ve.additionalProps,Gr=Fo===void 0?{}:Fo,Vo=ve.isSticky,No="".concat(li,"-cell"),hs=St(Tt,["supportSticky","allColumnsFixedLeft"]),co=hs.supportSticky,Pa=hs.allColumnsFixedLeft,Os=Xe(ki,ar,gr,yn,Xi,qr),Ps=(0,se.Z)(Os,2),ko=Ps[0],Fs=Ps[1],$a={},js=typeof rr=="number"&&co,jl=typeof wr=="number"&&co;js&&($a.position="sticky",$a.left=rr),jl&&($a.position="sticky",$a.right=wr);var Po=(Ee=(Ye=(on=Fs==null?void 0:Fs.colSpan)!==null&&on!==void 0?on:Gr.colSpan)!==null&&Ye!==void 0?Ye:so)!==null&&Ee!==void 0?Ee:1,as=(cn=(dn=(Dn=Fs==null?void 0:Fs.rowSpan)!==null&&Dn!==void 0?Dn:Gr.rowSpan)!==null&&dn!==void 0?dn:uo)!==null&&cn!==void 0?cn:1,ds=Vn(qi,as),Oo=(0,se.Z)(ds,2),qo=Oo[0],bo=Oo[1],Ls=function(po){var Ra;ki&&bo(qi,qi+as-1),Gr==null||(Ra=Gr.onMouseEnter)===null||Ra===void 0||Ra.call(Gr,po)},_s=function(po){var Ra;ki&&bo(-1,-1),Gr==null||(Ra=Gr.onMouseLeave)===null||Ra===void 0||Ra.call(Gr,po)};if(Po===0||as===0)return null;var ea=(Jn=Gr.title)!==null&&Jn!==void 0?Jn:Ai({rowType:Qn,ellipsis:Mn,children:ko}),Yl=Yt()(No,oi,(Ue={},(0,ee.Z)(Ue,"".concat(No,"-fix-left"),js&&co),(0,ee.Z)(Ue,"".concat(No,"-fix-left-first"),mr&&co),(0,ee.Z)(Ue,"".concat(No,"-fix-left-last"),ir&&co),(0,ee.Z)(Ue,"".concat(No,"-fix-left-all"),ir&&Pa&&co),(0,ee.Z)(Ue,"".concat(No,"-fix-right"),jl&&co),(0,ee.Z)(Ue,"".concat(No,"-fix-right-first"),Or&&co),(0,ee.Z)(Ue,"".concat(No,"-fix-right-last"),ho&&co),(0,ee.Z)(Ue,"".concat(No,"-ellipsis"),Mn),(0,ee.Z)(Ue,"".concat(No,"-with-append"),So),(0,ee.Z)(Ue,"".concat(No,"-fix-sticky"),(js||jl)&&Vo&&co),(0,ee.Z)(Ue,"".concat(No,"-row-hover"),!Fs&&qo),Ue),Gr.className,Fs==null?void 0:Fs.className),As={};Fi&&(As.textAlign=Fi);var eu=(0,Fe.Z)((0,Fe.Z)((0,Fe.Z)((0,Fe.Z)({},$a),Gr.style),As),Fs==null?void 0:Fs.style),fa=ko;return(0,Ae.Z)(fa)==="object"&&!Array.isArray(fa)&&!Lt.isValidElement(fa)&&(fa=null),Mn&&(ir||Or)&&(fa=Lt.createElement("span",{className:"".concat(No,"-content")},fa)),Lt.createElement(hn,(0,Wt.Z)({},Fs,Gr,{className:Yl,style:eu,title:ea,scope:Zn,onMouseEnter:Ls,onMouseLeave:_s,colSpan:Po!==1?Po:null,rowSpan:as!==1?as:null}),So,fa)}var Si=Lt.memo(Wn);function an(ve,Ee,Ye,on,cn,dn){var Dn=Ye[ve]||{},Jn=Ye[Ee]||{},Ue,hn;Dn.fixed==="left"?Ue=on.left[cn==="rtl"?Ee:ve]:Jn.fixed==="right"&&(hn=on.right[cn==="rtl"?ve:Ee]);var yn=!1,Mn=!1,Zn=!1,li=!1,oi=Ye[Ee+1],Fi=Ye[ve-1],ki=!(dn!=null&&dn.children);if(cn==="rtl"){if(Ue!==void 0){var Xi=Fi&&Fi.fixed==="left";li=!Xi&&ki}else if(hn!==void 0){var ar=oi&&oi.fixed==="right";Zn=!ar&&ki}}else if(Ue!==void 0){var gr=oi&&oi.fixed==="left";yn=!gr&&ki}else if(hn!==void 0){var qr=Fi&&Fi.fixed==="right";Mn=!qr&&ki}return{fixLeft:Ue,fixRight:hn,lastFixLeft:yn,firstFixRight:Mn,lastFixRight:Zn,firstFixLeft:li,isSticky:on.isSticky}}var Li=Lt.createContext({}),Oi=Li;function ue(ve){var Ee=ve.className,Ye=ve.index,on=ve.children,cn=ve.colSpan,dn=cn===void 0?1:cn,Dn=ve.rowSpan,Jn=ve.align,Ue=St(Tt,["prefixCls","direction"]),hn=Ue.prefixCls,yn=Ue.direction,Mn=Lt.useContext(Oi),Zn=Mn.scrollColumnIndex,li=Mn.stickyOffsets,oi=Mn.flattenColumns,Fi=Mn.columns,ki=Ye+dn-1,Xi=ki+1===Zn?dn+1:dn,ar=an(Ye,Ye+Xi-1,oi,li,yn,Fi==null?void 0:Fi[Ye]);return Lt.createElement(Si,(0,Wt.Z)({className:Ee,index:Ye,component:"td",prefixCls:hn,record:null,dataIndex:null,align:Jn,colSpan:Xi,rowSpan:Dn,render:function(){return on}},ar))}var Pn=Bt(74416),de=["children"];function Dt(ve){var Ee=ve.children,Ye=(0,Pn.Z)(ve,de);return Lt.createElement("tr",Ye,Ee)}function Mt(ve){var Ee=ve.children;return Ee}Mt.Row=Dt,Mt.Cell=ue;var zt=Mt;function be(ve){var Ee=ve.children,Ye=ve.stickyOffsets,on=ve.flattenColumns,cn=ve.columns,dn=St(Tt,"prefixCls"),Dn=on.length-1,Jn=on[Dn],Ue=Lt.useMemo(function(){return{stickyOffsets:Ye,flattenColumns:on,scrollColumnIndex:Jn!=null&&Jn.scrollbar?Dn:null,columns:cn}},[Jn,on,Dn,Ye,cn]);return Lt.createElement(Oi.Provider,{value:Ue},Lt.createElement("tfoot",{className:"".concat(dn,"-summary")},Ee))}var De=dt(be),fe=zt,Ce=Bt(70425),te=Bt(29301),Ct=Bt(29194),yt=Bt(24514),$t=Bt(75152),xe=Bt(26112);function Rt(ve,Ee,Ye,on,cn,dn,Dn){ve.push({record:Ee,indent:Ye,index:Dn});var Jn=dn(Ee),Ue=cn==null?void 0:cn.has(Jn);if(Ee&&Array.isArray(Ee[on])&&Ue)for(var hn=0;hn<Ee[on].length;hn+=1)Rt(ve,Ee[on][hn],Ye+1,on,cn,dn,hn)}function je(ve,Ee,Ye,on){var cn=Lt.useMemo(function(){if(Ye!=null&&Ye.size){for(var dn=[],Dn=0;Dn<(ve==null?void 0:ve.length);Dn+=1){var Jn=ve[Dn];Rt(dn,Jn,0,Ee,Ye,on,Dn)}return dn}return ve==null?void 0:ve.map(function(Ue,hn){return{record:Ue,indent:0,index:hn}})},[ve,Ee,Ye,on]);return cn}function fn(ve){var Ee=ve.prefixCls,Ye=ve.children,on=ve.component,cn=ve.cellComponent,dn=ve.className,Dn=ve.expanded,Jn=ve.colSpan,Ue=ve.isEmpty,hn=St(Tt,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),yn=hn.scrollbarSize,Mn=hn.fixHeader,Zn=hn.fixColumn,li=hn.componentWidth,oi=hn.horizonScroll,Fi=Ye;return(Ue?oi&&li:Zn)&&(Fi=Lt.createElement("div",{style:{width:li-(Mn?yn:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Ee,"-expanded-row-fixed")},Fi)),Lt.createElement(on,{className:dn,style:{display:Dn?null:"none"}},Lt.createElement(Si,{component:cn,prefixCls:Ee,colSpan:Jn},Fi))}var jn=fn;function bn(ve,Ee,Ye,on){var cn=St(Tt,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),dn=cn.flattenColumns,Dn=cn.expandableType,Jn=cn.expandedKeys,Ue=cn.childrenColumnName,hn=cn.onTriggerExpand,yn=cn.rowExpandable,Mn=cn.onRow,Zn=cn.expandRowByClick,li=cn.rowClassName,oi=Dn==="nest",Fi=Dn==="row"&&(!yn||yn(ve)),ki=Fi||oi,Xi=Jn&&Jn.has(Ee),ar=Ue&&ve&&ve[Ue],gr=(0,Ce.useEvent)(hn),qr=Mn==null?void 0:Mn(ve,Ye),qi=qr==null?void 0:qr.onClick,Qn=function(wr){Zn&&ki&&hn(ve,wr);for(var mr=arguments.length,ir=new Array(mr>1?mr-1:0),Or=1;Or<mr;Or++)ir[Or-1]=arguments[Or];qi==null||qi.apply(void 0,[wr].concat(ir))},so;typeof li=="string"?so=li:typeof li=="function"&&(so=li(ve,Ye,on));var uo=Pe(dn);return(0,Fe.Z)((0,Fe.Z)({},cn),{},{columnsKey:uo,nestExpandable:oi,expanded:Xi,hasNestChildren:ar,record:ve,onTriggerExpand:gr,rowSupportExpand:Fi,expandable:ki,rowProps:(0,Fe.Z)((0,Fe.Z)({},qr),{},{className:Yt()(so,qr==null?void 0:qr.className),onClick:Qn})})}function ci(ve,Ee,Ye,on,cn){var dn=ve.record,Dn=ve.prefixCls,Jn=ve.columnsKey,Ue=ve.fixedInfoList,hn=ve.expandIconColumnIndex,yn=ve.nestExpandable,Mn=ve.indentSize,Zn=ve.expandIcon,li=ve.expanded,oi=ve.hasNestChildren,Fi=ve.onTriggerExpand,ki=Jn[Ye],Xi=Ue[Ye],ar;Ye===(hn||0)&&yn&&(ar=Lt.createElement(Lt.Fragment,null,Lt.createElement("span",{style:{paddingLeft:"".concat(Mn*on,"px")},className:"".concat(Dn,"-row-indent indent-level-").concat(on)}),Zn({prefixCls:Dn,expanded:li,expandable:oi,record:dn,onExpand:Fi})));var gr;return Ee.onCell&&(gr=Ee.onCell(dn,cn)),{key:ki,fixedInfo:Xi,appendCellNode:ar,additionalCellProps:gr||{}}}function Ji(ve){var Ee=ve.className,Ye=ve.style,on=ve.record,cn=ve.index,dn=ve.renderIndex,Dn=ve.rowKey,Jn=ve.indent,Ue=Jn===void 0?0:Jn,hn=ve.rowComponent,yn=ve.cellComponent,Mn=ve.scopeCellComponent,Zn=bn(on,Dn,cn,Ue),li=Zn.prefixCls,oi=Zn.flattenColumns,Fi=Zn.expandedRowClassName,ki=Zn.expandedRowRender,Xi=Zn.rowProps,ar=Zn.expanded,gr=Zn.rowSupportExpand,qr=Lt.useState(!1),qi=(0,se.Z)(qr,2),Qn=qi[0],so=qi[1];Lt.useEffect(function(){ar&&so(!0)},[ar]);var uo=Lt.createElement(hn,(0,Wt.Z)({},Xi,{"data-row-key":Dn,className:Yt()(Ee,"".concat(li,"-row"),"".concat(li,"-row-level-").concat(Ue),Xi==null?void 0:Xi.className),style:(0,Fe.Z)((0,Fe.Z)({},Ye),Xi==null?void 0:Xi.style)}),oi.map(function(ir,Or){var ho=ir.render,So=ir.dataIndex,Fo=ir.className,Gr=ci(Zn,ir,Or,Ue,cn),Vo=Gr.key,No=Gr.fixedInfo,hs=Gr.appendCellNode,co=Gr.additionalCellProps;return Lt.createElement(Si,(0,Wt.Z)({className:Fo,ellipsis:ir.ellipsis,align:ir.align,scope:ir.rowScope,component:ir.rowScope?Mn:yn,prefixCls:li,key:Vo,record:on,index:cn,renderIndex:dn,dataIndex:So,render:ho,shouldCellUpdate:ir.shouldCellUpdate},No,{appendNode:hs,additionalProps:co}))})),rr;if(gr&&(Qn||ar)){var wr=ki(on,cn,Ue+1,ar),mr=Fi&&Fi(on,cn,Ue);rr=Lt.createElement(jn,{expanded:ar,className:Yt()("".concat(li,"-expanded-row"),"".concat(li,"-expanded-row-level-").concat(Ue+1),mr),prefixCls:li,component:hn,cellComponent:yn,colSpan:oi.length,isEmpty:!1},wr)}return Lt.createElement(Lt.Fragment,null,uo,rr)}Ji.displayName="BodyRow";var zi=dt(Ji);function dr(ve){var Ee=ve.columnKey,Ye=ve.onColumnResize,on=Lt.useRef();return Lt.useEffect(function(){on.current&&Ye(Ee,on.current.offsetWidth)},[]),Lt.createElement(te.Z,{data:Ee},Lt.createElement("td",{ref:on,style:{padding:0,border:0,height:0}},Lt.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Fr(ve){var Ee=ve.prefixCls,Ye=ve.columnsKey,on=ve.onColumnResize;return Lt.createElement("tr",{"aria-hidden":"true",className:"".concat(Ee,"-measure-row"),style:{height:0,fontSize:0}},Lt.createElement(te.Z.Collection,{onBatchResize:function(dn){dn.forEach(function(Dn){var Jn=Dn.data,Ue=Dn.size;on(Jn,Ue.offsetWidth)})}},Ye.map(function(cn){return Lt.createElement(dr,{key:cn,columnKey:cn,onColumnResize:on})})))}function oo(ve){var Ee=ve.data,Ye=ve.measureColumnWidth,on=St(Tt,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),cn=on.prefixCls,dn=on.getComponent,Dn=on.onColumnResize,Jn=on.flattenColumns,Ue=on.getRowKey,hn=on.expandedKeys,yn=on.childrenColumnName,Mn=on.emptyNode,Zn=je(Ee,yn,hn,Ue),li=Lt.useRef({renderWithProps:!1}),oi=dn(["body","wrapper"],"tbody"),Fi=dn(["body","row"],"tr"),ki=dn(["body","cell"],"td"),Xi=dn(["body","cell"],"th"),ar;Ee.length?ar=Zn.map(function(qr,qi){var Qn=qr.record,so=qr.indent,uo=qr.index,rr=Ue(Qn,qi);return Lt.createElement(zi,{key:rr,rowKey:rr,record:Qn,index:qi,renderIndex:uo,rowComponent:Fi,cellComponent:ki,scopeCellComponent:Xi,getRowKey:Ue,indent:so})}):ar=Lt.createElement(jn,{expanded:!0,className:"".concat(cn,"-placeholder"),prefixCls:cn,component:Fi,cellComponent:ki,colSpan:Jn.length,isEmpty:!0},Mn);var gr=Pe(Jn);return Lt.createElement(Qe.Provider,{value:li.current},Lt.createElement(oi,{className:"".concat(cn,"-tbody")},Ye&&Lt.createElement(Fr,{prefixCls:cn,columnsKey:gr,onColumnResize:Dn}),ar))}oo.displayName="Body";var Jr=dt(oo),zr=["expandable"],pr="RC_TABLE_INTERNAL_COL_DEFINE";function Kr(ve){var Ee=ve.expandable,Ye=(0,Pn.Z)(ve,zr),on;return"expandable"in ve?on=(0,Fe.Z)((0,Fe.Z)({},Ye),Ee):on=Ye,on.showExpandColumn===!1&&(on.expandIconColumnIndex=-1),on}var hr=["columnType"];function Mo(ve){for(var Ee=ve.colWidths,Ye=ve.columns,on=ve.columCount,cn=[],dn=on||Ye.length,Dn=!1,Jn=dn-1;Jn>=0;Jn-=1){var Ue=Ee[Jn],hn=Ye&&Ye[Jn],yn=hn&&hn[pr];if(Ue||yn||Dn){var Mn=yn||{},Zn=Mn.columnType,li=(0,Pn.Z)(Mn,hr);cn.unshift(Lt.createElement("col",(0,Wt.Z)({key:Jn,style:{width:Ue}},li))),Dn=!0}}return Lt.createElement("colgroup",null,cn)}var Xo=Mo,mo=Bt(80702),Ts=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function ws(ve,Ee){return(0,Lt.useMemo)(function(){for(var Ye=[],on=0;on<Ee;on+=1){var cn=ve[on];if(cn!==void 0)Ye[on]=cn;else return null}return Ye},[ve.join("_"),Ee])}var Vt=Lt.forwardRef(function(ve,Ee){var Ye=ve.className,on=ve.noData,cn=ve.columns,dn=ve.flattenColumns,Dn=ve.colWidths,Jn=ve.columCount,Ue=ve.stickyOffsets,hn=ve.direction,yn=ve.fixHeader,Mn=ve.stickyTopOffset,Zn=ve.stickyBottomOffset,li=ve.stickyClassName,oi=ve.onScroll,Fi=ve.maxContentScroll,ki=ve.children,Xi=(0,Pn.Z)(ve,Ts),ar=St(Tt,["prefixCls","scrollbarSize","isSticky"]),gr=ar.prefixCls,qr=ar.scrollbarSize,qi=ar.isSticky,Qn=qi&&!yn?0:qr,so=Lt.useRef(null),uo=Lt.useCallback(function(Fo){(0,Gt.mH)(Ee,Fo),(0,Gt.mH)(so,Fo)},[]);Lt.useEffect(function(){var Fo;function Gr(Vo){var No=Vo,hs=No.currentTarget,co=No.deltaX;co&&(oi({currentTarget:hs,scrollLeft:hs.scrollLeft+co}),Vo.preventDefault())}return(Fo=so.current)===null||Fo===void 0||Fo.addEventListener("wheel",Gr),function(){var Vo;(Vo=so.current)===null||Vo===void 0||Vo.removeEventListener("wheel",Gr)}},[]);var rr=Lt.useMemo(function(){return dn.every(function(Fo){return Fo.width})},[dn]),wr=dn[dn.length-1],mr={fixed:wr?wr.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(gr,"-cell-scrollbar")}}},ir=(0,Lt.useMemo)(function(){return Qn?[].concat((0,mo.Z)(cn),[mr]):cn},[Qn,cn]),Or=(0,Lt.useMemo)(function(){return Qn?[].concat((0,mo.Z)(dn),[mr]):dn},[Qn,dn]),ho=(0,Lt.useMemo)(function(){var Fo=Ue.right,Gr=Ue.left;return(0,Fe.Z)((0,Fe.Z)({},Ue),{},{left:hn==="rtl"?[].concat((0,mo.Z)(Gr.map(function(Vo){return Vo+Qn})),[0]):Gr,right:hn==="rtl"?Fo:[].concat((0,mo.Z)(Fo.map(function(Vo){return Vo+Qn})),[0]),isSticky:qi})},[Qn,Ue,qi]),So=ws(Dn,Jn);return Lt.createElement("div",{style:(0,Fe.Z)({overflow:"hidden"},qi?{top:Mn,bottom:Zn}:{}),ref:uo,className:Yt()(Ye,(0,ee.Z)({},li,!!li))},Lt.createElement("table",{style:{tableLayout:"fixed",visibility:on||So?null:"hidden"}},(!on||!Fi||rr)&&Lt.createElement(Xo,{colWidths:So?[].concat((0,mo.Z)(So),[Qn]):[],columCount:Jn+1,columns:Or}),ki((0,Fe.Z)((0,Fe.Z)({},Xi),{},{stickyOffsets:ho,columns:ir,flattenColumns:Or}))))});Vt.displayName="FixedHolder";var xs=Lt.memo(Vt);function Ss(ve){var Ee=ve.cells,Ye=ve.stickyOffsets,on=ve.flattenColumns,cn=ve.rowComponent,dn=ve.cellComponent,Dn=ve.tdCellComponent,Jn=ve.onHeaderRow,Ue=ve.index,hn=St(Tt,["prefixCls","direction"]),yn=hn.prefixCls,Mn=hn.direction,Zn;Jn&&(Zn=Jn(Ee.map(function(oi){return oi.column}),Ue));var li=Pe(Ee.map(function(oi){return oi.column}));return Lt.createElement(cn,Zn,Ee.map(function(oi,Fi){var ki=oi.column,Xi=an(oi.colStart,oi.colEnd,on,Ye,Mn,ki),ar;return ki&&ki.onHeaderCell&&(ar=oi.column.onHeaderCell(ki)),Lt.createElement(Si,(0,Wt.Z)({},oi,{scope:ki.title?oi.colSpan>1?"colgroup":"col":null,ellipsis:ki.ellipsis,align:ki.align,component:ki.title?dn:Dn,prefixCls:yn,key:li[Fi]},Xi,{additionalProps:ar,rowType:"header"}))}))}Ss.displayName="HeaderRow";var Ms=Ss;function ma(ve){var Ee=[];function Ye(Dn,Jn){var Ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ee[Ue]=Ee[Ue]||[];var hn=Jn,yn=Dn.filter(Boolean).map(function(Mn){var Zn={key:Mn.key,className:Mn.className||"",children:Mn.title,column:Mn,colStart:hn},li=1,oi=Mn.children;return oi&&oi.length>0&&(li=Ye(oi,hn,Ue+1).reduce(function(Fi,ki){return Fi+ki},0),Zn.hasSubColumns=!0),"colSpan"in Mn&&(li=Mn.colSpan),"rowSpan"in Mn&&(Zn.rowSpan=Mn.rowSpan),Zn.colSpan=li,Zn.colEnd=Zn.colStart+li-1,Ee[Ue].push(Zn),hn+=li,li});return yn}Ye(ve,0);for(var on=Ee.length,cn=function(Jn){Ee[Jn].forEach(function(Ue){!("rowSpan"in Ue)&&!Ue.hasSubColumns&&(Ue.rowSpan=on-Jn)})},dn=0;dn<on;dn+=1)cn(dn);return Ee}function Ea(ve){var Ee=ve.stickyOffsets,Ye=ve.columns,on=ve.flattenColumns,cn=ve.onHeaderRow,dn=St(Tt,["prefixCls","getComponent"]),Dn=dn.prefixCls,Jn=dn.getComponent,Ue=Lt.useMemo(function(){return ma(Ye)},[Ye]),hn=Jn(["header","wrapper"],"thead"),yn=Jn(["header","row"],"tr"),Mn=Jn(["header","cell"],"th"),Zn=Jn(["header","cell"],"td");return Lt.createElement(hn,{className:"".concat(Dn,"-thead")},Ue.map(function(li,oi){var Fi=Lt.createElement(Ms,{key:oi,flattenColumns:on,cells:li,stickyOffsets:Ee,rowComponent:yn,cellComponent:Mn,tdCellComponent:Zn,onHeaderRow:cn,index:oi});return Fi}))}var oa=dt(Ea),ao=Bt(11592);function br(ve){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Ee=="number"?Ee:Ee.endsWith("%")?ve*parseFloat(Ee)/100:null}function Un(ve,Ee){return Lt.useMemo(function(){if(Ee&&Ee>0){var Ye=0,on=0;ve.forEach(function(hn){var yn=br(Ee,hn.width);yn?Ye+=yn:on+=1});var cn=Ee-Ye,dn=on,Dn=cn/on,Jn=0,Ue=ve.map(function(hn){var yn=(0,Fe.Z)({},hn),Mn=br(Ee,yn.width);if(Mn)yn.width=Mn;else{var Zn=Math.floor(Dn);yn.width=dn===1?cn:Zn,cn-=Zn,dn-=1}return Jn+=yn.width,yn});return[Ue,Jn]}return[ve,Ee]},[ve,Ee])}var On=["children"],Re=["fixed"];function hi(ve){return(0,ao.Z)(ve).filter(function(Ee){return Lt.isValidElement(Ee)}).map(function(Ee){var Ye=Ee.key,on=Ee.props,cn=on.children,dn=(0,Pn.Z)(on,On),Dn=(0,Fe.Z)({key:Ye},dn);return cn&&(Dn.children=hi(cn)),Dn})}function en(ve){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return ve.filter(function(Ye){return Ye&&(0,Ae.Z)(Ye)==="object"}).reduce(function(Ye,on,cn){var dn=on.fixed,Dn=dn===!0?"left":dn,Jn="".concat(Ee,"-").concat(cn),Ue=on.children;return Ue&&Ue.length>0?[].concat((0,mo.Z)(Ye),(0,mo.Z)(en(Ue,Jn).map(function(hn){return(0,Fe.Z)({fixed:Dn},hn)}))):[].concat((0,mo.Z)(Ye),[(0,Fe.Z)((0,Fe.Z)({key:Jn},on),{},{fixed:Dn})])},[])}function gn(ve){for(var Ee=!0,Ye=0;Ye<ve.length;Ye+=1){var on=ve[Ye];if(Ee&&on.fixed!=="left")Ee=!1;else if(!Ee&&on.fixed==="left"){warning(!1,"Index ".concat(Ye-1," of `columns` missing `fixed='left'` prop."));break}}for(var cn=!0,dn=ve.length-1;dn>=0;dn-=1){var Dn=ve[dn];if(cn&&Dn.fixed!=="right")cn=!1;else if(!cn&&Dn.fixed==="right"){warning(!1,"Index ".concat(dn+1," of `columns` missing `fixed='right'` prop."));break}}}function Ve(ve){return ve.map(function(Ee){var Ye=Ee.fixed,on=(0,Pn.Z)(Ee,Re),cn=Ye;return Ye==="left"?cn="right":Ye==="right"&&(cn="left"),(0,Fe.Z)({fixed:cn},on)})}function ni(ve,Ee){var Ye=ve.prefixCls,on=ve.columns,cn=ve.children,dn=ve.expandable,Dn=ve.expandedKeys,Jn=ve.columnTitle,Ue=ve.getRowKey,hn=ve.onTriggerExpand,yn=ve.expandIcon,Mn=ve.rowExpandable,Zn=ve.expandIconColumnIndex,li=ve.direction,oi=ve.expandRowByClick,Fi=ve.columnWidth,ki=ve.fixed,Xi=ve.scrollWidth,ar=Lt.useMemo(function(){return on||hi(cn)},[on,cn]),gr=Lt.useMemo(function(){if(dn){var wr,mr=ar.slice();if(!mr.includes(bt)){var ir=Zn||0;ir>=0&&mr.splice(ir,0,bt)}var Or=mr.indexOf(bt);mr=mr.filter(function(Gr,Vo){return Gr!==bt||Vo===Or});var ho=ar[Or],So;(ki==="left"||ki)&&!Zn?So="left":(ki==="right"||ki)&&Zn===ar.length?So="right":So=ho?ho.fixed:null;var Fo=(wr={},(0,ee.Z)(wr,pr,{className:"".concat(Ye,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,ee.Z)(wr,"title",Jn),(0,ee.Z)(wr,"fixed",So),(0,ee.Z)(wr,"className","".concat(Ye,"-row-expand-icon-cell")),(0,ee.Z)(wr,"width",Fi),(0,ee.Z)(wr,"render",function(Vo,No,hs){var co=Ue(No,hs),Pa=Dn.has(co),Os=Mn?Mn(No):!0,Ps=yn({prefixCls:Ye,expanded:Pa,expandable:Os,record:No,onExpand:hn});return oi?Lt.createElement("span",{onClick:function(Fs){return Fs.stopPropagation()}},Ps):Ps}),wr);return mr.map(function(Gr){return Gr===bt?Fo:Gr})}return ar.filter(function(Gr){return Gr!==bt})},[dn,ar,Ue,Dn,yn,li]),qr=Lt.useMemo(function(){var wr=gr;return Ee&&(wr=Ee(wr)),wr.length||(wr=[{render:function(){return null}}]),wr},[Ee,gr,li]),qi=Lt.useMemo(function(){return li==="rtl"?Ve(en(qr)):en(qr)},[qr,li,Xi]),Qn=Un(qi,Xi),so=(0,se.Z)(Qn,2),uo=so[0],rr=so[1];return[qr,uo,rr]}var Bi=ni;function _i(ve){var Ee,Ye=ve.prefixCls,on=ve.record,cn=ve.onExpand,dn=ve.expanded,Dn=ve.expandable,Jn="".concat(Ye,"-row-expand-icon");if(!Dn)return Lt.createElement("span",{className:Yt()(Jn,"".concat(Ye,"-row-spaced"))});var Ue=function(yn){cn(on,yn),yn.stopPropagation()};return Lt.createElement("span",{className:Yt()(Jn,(Ee={},(0,ee.Z)(Ee,"".concat(Ye,"-row-expanded"),dn),(0,ee.Z)(Ee,"".concat(Ye,"-row-collapsed"),!dn),Ee)),onClick:Ue})}function tr(ve,Ee,Ye){var on=[];function cn(dn){(dn||[]).forEach(function(Dn,Jn){on.push(Ee(Dn,Jn)),cn(Dn[Ye])})}return cn(ve),on}function sn(ve,Ee,Ye){var on=Kr(ve),cn=on.expandIcon,dn=on.expandedRowKeys,Dn=on.defaultExpandedRowKeys,Jn=on.defaultExpandAllRows,Ue=on.expandedRowRender,hn=on.onExpand,yn=on.onExpandedRowsChange,Mn=on.childrenColumnName,Zn=cn||_i,li=Mn||"children",oi=Lt.useMemo(function(){return Ue?"row":ve.expandable&&ve.internalHooks===ge&&ve.expandable.__PARENT_RENDER_ICON__||Ee.some(function(qi){return qi&&(0,Ae.Z)(qi)==="object"&&qi[li]})?"nest":!1},[!!Ue,Ee]),Fi=Lt.useState(function(){return Dn||(Jn?tr(Ee,Ye,li):[])}),ki=(0,se.Z)(Fi,2),Xi=ki[0],ar=ki[1],gr=Lt.useMemo(function(){return new Set(dn||Xi||[])},[dn,Xi]),qr=Lt.useCallback(function(qi){var Qn=Ye(qi,Ee.indexOf(qi)),so,uo=gr.has(Qn);uo?(gr.delete(Qn),so=(0,mo.Z)(gr)):so=[].concat((0,mo.Z)(gr),[Qn]),ar(so),hn&&hn(!uo,qi),yn&&yn(so)},[Ye,gr,Ee,hn,yn]);return[on,oi,gr,Zn,li,qr]}function fi(ve,Ee,Ye,on){var cn=ve.map(function(dn,Dn){return an(Dn,Dn,ve,Ee,Ye,on==null?void 0:on[Dn])});return(0,qe.Z)(function(){return cn},[cn],function(dn,Dn){return!(0,ae.Z)(dn,Dn)})}function Zi(ve){var Ee=(0,Lt.useRef)(ve),Ye=(0,Lt.useState)({}),on=(0,se.Z)(Ye,2),cn=on[1],dn=(0,Lt.useRef)(null),Dn=(0,Lt.useRef)([]);function Jn(Ue){Dn.current.push(Ue);var hn=Promise.resolve();dn.current=hn,hn.then(function(){if(dn.current===hn){var yn=Dn.current,Mn=Ee.current;Dn.current=[],yn.forEach(function(Zn){Ee.current=Zn(Ee.current)}),dn.current=null,Mn!==Ee.current&&cn({})}})}return(0,Lt.useEffect)(function(){return function(){dn.current=null}},[]),[Ee.current,Jn]}function Tr(ve){var Ee=(0,Lt.useRef)(ve||null),Ye=(0,Lt.useRef)();function on(){window.clearTimeout(Ye.current)}function cn(Dn){Ee.current=Dn,on(),Ye.current=window.setTimeout(function(){Ee.current=null,Ye.current=void 0},100)}function dn(){return Ee.current}return(0,Lt.useEffect)(function(){return on},[]),[cn,dn]}function ii(){var ve=Lt.useState(-1),Ee=(0,se.Z)(ve,2),Ye=Ee[0],on=Ee[1],cn=Lt.useState(-1),dn=(0,se.Z)(cn,2),Dn=dn[0],Jn=dn[1],Ue=Lt.useCallback(function(hn,yn){on(hn),Jn(yn)},[]);return[Ye,Dn,Ue]}var xi=Bt(47273),fr=(0,xi.Z)()?window:null;function mi(ve,Ee){var Ye=(0,Ae.Z)(ve)==="object"?ve:{},on=Ye.offsetHeader,cn=on===void 0?0:on,dn=Ye.offsetSummary,Dn=dn===void 0?0:dn,Jn=Ye.offsetScroll,Ue=Jn===void 0?0:Jn,hn=Ye.getContainer,yn=hn===void 0?function(){return fr}:hn,Mn=yn()||fr;return Lt.useMemo(function(){var Zn=!!ve;return{isSticky:Zn,stickyClassName:Zn?"".concat(Ee,"-sticky-holder"):"",offsetHeader:cn,offsetSummary:Dn,offsetScroll:Ue,container:Mn}},[Ue,cn,Dn,Ee,Mn])}function wi(ve,Ee,Ye){var on=(0,Lt.useMemo)(function(){for(var cn=[],dn=[],Dn=0,Jn=0,Ue=0;Ue<Ee;Ue+=1)if(Ye==="rtl"){dn[Ue]=Jn,Jn+=ve[Ue]||0;var hn=Ee-Ue-1;cn[hn]=Dn,Dn+=ve[hn]||0}else{cn[Ue]=Dn,Dn+=ve[Ue]||0;var yn=Ee-Ue-1;dn[yn]=Jn,Jn+=ve[yn]||0}return{left:cn,right:dn}},[ve,Ee,Ye]);return on}var yi=wi;function nr(ve){var Ee=ve.className,Ye=ve.children;return Lt.createElement("div",{className:Ee},Ye)}var sr=nr,Rr=Bt(8224),Zr=Bt(55468),Xr=function(Ee,Ye){var on,cn,dn=Ee.scrollBodyRef,Dn=Ee.onScroll,Jn=Ee.offsetScroll,Ue=Ee.container,hn=St(Tt,"prefixCls"),yn=((on=dn.current)===null||on===void 0?void 0:on.scrollWidth)||0,Mn=((cn=dn.current)===null||cn===void 0?void 0:cn.clientWidth)||0,Zn=yn&&Mn*(Mn/yn),li=Lt.useRef(),oi=Zi({scrollLeft:0,isHiddenScrollBar:!1}),Fi=(0,se.Z)(oi,2),ki=Fi[0],Xi=Fi[1],ar=Lt.useRef({delta:0,x:0}),gr=Lt.useState(!1),qr=(0,se.Z)(gr,2),qi=qr[0],Qn=qr[1],so=function(){Qn(!1)},uo=function(Or){Or.persist(),ar.current.delta=Or.pageX-ki.scrollLeft,ar.current.x=0,Qn(!0),Or.preventDefault()},rr=function(Or){var ho,So=Or||((ho=window)===null||ho===void 0?void 0:ho.event),Fo=So.buttons;if(!qi||Fo===0){qi&&Qn(!1);return}var Gr=ar.current.x+Or.pageX-ar.current.x-ar.current.delta;Gr<=0&&(Gr=0),Gr+Zn>=Mn&&(Gr=Mn-Zn),Dn({scrollLeft:Gr/Mn*(yn+2)}),ar.current.x=Or.pageX},wr=function(){if(dn.current){var Or=(0,Zr.os)(dn.current).top,ho=Or+dn.current.offsetHeight,So=Ue===window?document.documentElement.scrollTop+window.innerHeight:(0,Zr.os)(Ue).top+Ue.clientHeight;ho-(0,$t.Z)()<=So||Or>=So-Jn?Xi(function(Fo){return(0,Fe.Z)((0,Fe.Z)({},Fo),{},{isHiddenScrollBar:!0})}):Xi(function(Fo){return(0,Fe.Z)((0,Fe.Z)({},Fo),{},{isHiddenScrollBar:!1})})}},mr=function(Or){Xi(function(ho){return(0,Fe.Z)((0,Fe.Z)({},ho),{},{scrollLeft:Or/yn*Mn||0})})};return Lt.useImperativeHandle(Ye,function(){return{setScrollLeft:mr}}),Lt.useEffect(function(){var ir=(0,Rr.Z)(document.body,"mouseup",so,!1),Or=(0,Rr.Z)(document.body,"mousemove",rr,!1);return wr(),function(){ir.remove(),Or.remove()}},[Zn,qi]),Lt.useEffect(function(){var ir=(0,Rr.Z)(Ue,"scroll",wr,!1),Or=(0,Rr.Z)(window,"resize",wr,!1);return function(){ir.remove(),Or.remove()}},[Ue]),Lt.useEffect(function(){ki.isHiddenScrollBar||Xi(function(ir){var Or=dn.current;return Or?(0,Fe.Z)((0,Fe.Z)({},ir),{},{scrollLeft:Or.scrollLeft/Or.scrollWidth*Or.clientWidth}):ir})},[ki.isHiddenScrollBar]),yn<=Mn||!Zn||ki.isHiddenScrollBar?null:Lt.createElement("div",{style:{height:(0,$t.Z)(),width:Mn,bottom:Jn},className:"".concat(hn,"-sticky-scroll")},Lt.createElement("div",{onMouseDown:uo,ref:li,className:Yt()("".concat(hn,"-sticky-scroll-bar"),(0,ee.Z)({},"".concat(hn,"-sticky-scroll-bar-active"),qi)),style:{width:"".concat(Zn,"px"),transform:"translate3d(".concat(ki.scrollLeft,"px, 0, 0)")}}))},ei=Lt.forwardRef(Xr);function Ho(ve){return null}var Zo=Ho;function cs(ve){return null}var ri=cs,or="rc-table",Er=[],no={};function Lr(){return"No Data"}function Wr(ve){var Ee,Ye=(0,Fe.Z)({rowKey:"key",prefixCls:or,emptyText:Lr},ve),on=Ye.prefixCls,cn=Ye.className,dn=Ye.rowClassName,Dn=Ye.style,Jn=Ye.data,Ue=Ye.rowKey,hn=Ye.scroll,yn=Ye.tableLayout,Mn=Ye.direction,Zn=Ye.title,li=Ye.footer,oi=Ye.summary,Fi=Ye.caption,ki=Ye.id,Xi=Ye.showHeader,ar=Ye.components,gr=Ye.emptyText,qr=Ye.onRow,qi=Ye.onHeaderRow,Qn=Ye.internalHooks,so=Ye.transformColumns,uo=Ye.internalRefs,rr=Ye.tailor,wr=Ye.sticky,mr=Jn||Er,ir=!!mr.length,Or=Qn===ge,ho=Lt.useCallback(function(xa,hl){return(0,Ge.Z)(ar,xa)||hl},[ar]),So=Lt.useMemo(function(){return typeof Ue=="function"?Ue:function(xa){var hl=xa&&xa[Ue];return hl}},[Ue]),Fo=ho(["body"]),Gr=ii(),Vo=(0,se.Z)(Gr,3),No=Vo[0],hs=Vo[1],co=Vo[2],Pa=sn(Ye,mr,So),Os=(0,se.Z)(Pa,6),Ps=Os[0],ko=Os[1],Fs=Os[2],$a=Os[3],js=Os[4],jl=Os[5],Po=hn==null?void 0:hn.x,as=Lt.useState(0),ds=(0,se.Z)(as,2),Oo=ds[0],qo=ds[1],bo=Bi((0,Fe.Z)((0,Fe.Z)((0,Fe.Z)({},Ye),Ps),{},{expandable:!!Ps.expandedRowRender,columnTitle:Ps.columnTitle,expandedKeys:Fs,getRowKey:So,onTriggerExpand:jl,expandIcon:$a,expandIconColumnIndex:Ps.expandIconColumnIndex,direction:Mn,scrollWidth:Or&&rr&&typeof Po=="number"?Po:null}),Or?so:null),Ls=(0,se.Z)(bo,3),_s=Ls[0],ea=Ls[1],Yl=Ls[2],As=Yl!=null?Yl:Po,eu=Lt.useMemo(function(){return{columns:_s,flattenColumns:ea}},[_s,ea]),fa=Lt.useRef(),yl=Lt.useRef(),po=Lt.useRef(),Ra=Lt.useRef(),Nu=Lt.useRef(),wa=Lt.useState(!1),na=(0,se.Z)(wa,2),Na=na[0],Xa=na[1],ul=Lt.useState(!1),Qs=(0,se.Z)(ul,2),Ia=Qs[0],Nl=Qs[1],Iu=Zi(new Map),mu=(0,se.Z)(Iu,2),ku=mu[0],Gu=mu[1],oh=Pe(ea),sh=oh.map(function(xa){return ku.get(xa)}),Va=Lt.useMemo(function(){return sh},[sh.join("_")]),Cu=yi(Va,ea.length,Mn),Sl=hn&&En(hn.y),dl=hn&&En(As)||!!Ps.fixed,ph=dl&&ea.some(function(xa){var hl=xa.fixed;return hl}),ec=Lt.useRef(),bh=mi(wr,on),Dh=bh.isSticky,fc=bh.offsetHeader,Wu=bh.offsetSummary,ka=bh.offsetScroll,ra=bh.stickyClassName,uu=bh.container,wl=Lt.useMemo(function(){return oi==null?void 0:oi(mr)},[oi,mr]),ga=(Sl||Dh)&&Lt.isValidElement(wl)&&wl.type===zt&&wl.props.fixed,hu,Ru,Tu;Sl&&(Ru={overflowY:"scroll",maxHeight:hn.y}),dl&&(hu={overflowX:"auto"},Sl||(Ru={overflowY:"hidden"}),Tu={width:As===!0?"auto":As,minWidth:"100%"});var Yc=Lt.useCallback(function(xa,hl){(0,Ct.Z)(fa.current)&&Gu(function(Bu){if(Bu.get(xa)!==hl){var vh=new Map(Bu);return vh.set(xa,hl),vh}return Bu})},[]),_n=Tr(null),nc=(0,se.Z)(_n,2),jh=nc[0],EA=nc[1];function $c(xa,hl){hl&&(typeof hl=="function"?hl(xa):hl.scrollLeft!==xa&&(hl.scrollLeft=xa,hl.scrollLeft!==xa&&setTimeout(function(){hl.scrollLeft=xa},0)))}var Fc=(0,Me.Z)(function(xa){var hl=xa.currentTarget,Bu=xa.scrollLeft,vh=Mn==="rtl",yh=typeof Bu=="number"?Bu:hl.scrollLeft,zd=hl||no;if(!EA()||EA()===zd){var Nc;jh(zd),$c(yh,yl.current),$c(yh,po.current),$c(yh,Nu.current),$c(yh,(Nc=ec.current)===null||Nc===void 0?void 0:Nc.setScrollLeft)}var Uh=hl||yl.current;if(Uh){var Vu=Uh.scrollWidth,Ic=Uh.clientWidth;if(Vu===Ic){Xa(!1),Nl(!1);return}vh?(Xa(-yh<Vu-Ic),Nl(-yh>0)):(Xa(yh>0),Nl(yh<Vu-Ic))}}),ad=function(){dl&&po.current?Fc({currentTarget:po.current}):(Xa(!1),Nl(!1))},HA=function(hl){var Bu=hl.width;Bu!==Oo&&(ad(),qo(fa.current?fa.current.offsetWidth:Bu))},vu=Lt.useRef(!1);Lt.useEffect(function(){vu.current&&ad()},[dl,Jn,_s.length]),Lt.useEffect(function(){vu.current=!0},[]);var Sd=Lt.useState(0),Rd=(0,se.Z)(Sd,2),ld=Rd[0],Lc=Rd[1],_d=Lt.useState(!0),Cd=(0,se.Z)(_d,2),ah=Cd[0],Ul=Cd[1];Lt.useEffect(function(){(!rr||!Or)&&(po.current instanceof Element?Lc((0,$t.o)(po.current).width):Lc((0,$t.o)(Ra.current).width)),Ul((0,yt.G)("position","sticky"))},[]),Lt.useEffect(function(){Or&&uo&&(uo.body.current=po.current)});var Bd=Lt.useCallback(function(xa){return Lt.createElement(Lt.Fragment,null,Lt.createElement(oa,xa),ga==="top"&&Lt.createElement(De,xa,wl))},[ga,wl]),lA=Lt.useCallback(function(xa){return Lt.createElement(De,xa,wl)},[wl]),Ys=ho(["table"],"table"),Xc=Lt.useMemo(function(){return yn||(ph?As==="max-content"?"auto":"fixed":Sl||Dh||ea.some(function(xa){var hl=xa.ellipsis;return hl})?"fixed":"auto")},[Sl,ph,ea,yn,Dh]),Pd,mh={colWidths:Va,columCount:ea.length,stickyOffsets:Cu,onHeaderRow:qi,fixHeader:Sl,scroll:hn},qu=Lt.useMemo(function(){return ir?null:typeof gr=="function"?gr():gr},[ir,gr]),Hd=Lt.createElement(Jr,{data:mr,measureColumnWidth:Sl||dl||Dh}),ud=Lt.createElement(Xo,{colWidths:ea.map(function(xa){var hl=xa.width;return hl}),columns:ea}),th=Fi!=null?Lt.createElement("caption",{className:"".concat(on,"-caption")},Fi):void 0,bd=(0,xe.Z)(Ye,{data:!0}),Ed=(0,xe.Z)(Ye,{aria:!0});if(Sl||Dh){var Qd;typeof Fo=="function"?(Qd=Fo(mr,{scrollbarSize:ld,ref:po,onScroll:Fc}),mh.colWidths=ea.map(function(xa,hl){var Bu=xa.width,vh=hl===ea.length-1?Bu-ld:Bu;return typeof vh=="number"&&!Number.isNaN(vh)?vh:0})):Qd=Lt.createElement("div",{style:(0,Fe.Z)((0,Fe.Z)({},hu),Ru),onScroll:Fc,ref:po,className:Yt()("".concat(on,"-body"))},Lt.createElement(Ys,(0,Wt.Z)({style:(0,Fe.Z)((0,Fe.Z)({},Tu),{},{tableLayout:Xc})},Ed),th,ud,Hd,!ga&&wl&&Lt.createElement(De,{stickyOffsets:Cu,flattenColumns:ea,columns:_s},wl)));var nu=(0,Fe.Z)((0,Fe.Z)((0,Fe.Z)({noData:!mr.length,maxContentScroll:dl&&As==="max-content"},mh),eu),{},{direction:Mn,stickyClassName:ra,onScroll:Fc});Pd=Lt.createElement(Lt.Fragment,null,Xi!==!1&&Lt.createElement(xs,(0,Wt.Z)({},nu,{stickyTopOffset:fc,className:"".concat(on,"-header"),ref:yl}),Bd),Qd,ga&&ga!=="top"&&Lt.createElement(xs,(0,Wt.Z)({},nu,{stickyBottomOffset:Wu,className:"".concat(on,"-summary"),ref:Nu}),lA),Dh&&Lt.createElement(ei,{ref:ec,offsetScroll:ka,scrollBodyRef:po,onScroll:Fc,container:uu}))}else Pd=Lt.createElement("div",{style:(0,Fe.Z)((0,Fe.Z)({},hu),Ru),className:Yt()("".concat(on,"-content")),onScroll:Fc,ref:po},Lt.createElement(Ys,(0,Wt.Z)({style:(0,Fe.Z)((0,Fe.Z)({},Tu),{},{tableLayout:Xc})},Ed),th,ud,Xi!==!1&&Lt.createElement(oa,(0,Wt.Z)({},mh,eu)),Hd,wl&&Lt.createElement(De,{stickyOffsets:Cu,flattenColumns:ea,columns:_s},wl)));var cu=Lt.createElement("div",(0,Wt.Z)({className:Yt()(on,cn,(Ee={},(0,ee.Z)(Ee,"".concat(on,"-rtl"),Mn==="rtl"),(0,ee.Z)(Ee,"".concat(on,"-ping-left"),Na),(0,ee.Z)(Ee,"".concat(on,"-ping-right"),Ia),(0,ee.Z)(Ee,"".concat(on,"-layout-fixed"),yn==="fixed"),(0,ee.Z)(Ee,"".concat(on,"-fixed-header"),Sl),(0,ee.Z)(Ee,"".concat(on,"-fixed-column"),ph),(0,ee.Z)(Ee,"".concat(on,"-scroll-horizontal"),dl),(0,ee.Z)(Ee,"".concat(on,"-has-fix-left"),ea[0]&&ea[0].fixed),(0,ee.Z)(Ee,"".concat(on,"-has-fix-right"),ea[ea.length-1]&&ea[ea.length-1].fixed==="right"),Ee)),style:Dn,id:ki,ref:fa},bd),Zn&&Lt.createElement(sr,{className:"".concat(on,"-title")},Zn(mr)),Lt.createElement("div",{ref:Ra,className:"".concat(on,"-container")},Pd),li&&Lt.createElement(sr,{className:"".concat(on,"-footer")},li(mr)));dl&&(cu=Lt.createElement(te.Z,{onResize:HA},cu));var Mc=fi(ea,Cu,Mn,_s),du=Lt.useMemo(function(){return{scrollX:As,prefixCls:on,getComponent:ho,scrollbarSize:ld,direction:Mn,fixedInfoList:Mc,isSticky:Dh,supportSticky:ah,componentWidth:Oo,fixHeader:Sl,fixColumn:ph,horizonScroll:dl,tableLayout:Xc,rowClassName:dn,expandedRowClassName:Ps.expandedRowClassName,expandIcon:$a,expandableType:ko,expandRowByClick:Ps.expandRowByClick,expandedRowRender:Ps.expandedRowRender,onTriggerExpand:jl,expandIconColumnIndex:Ps.expandIconColumnIndex,indentSize:Ps.indentSize,allColumnsFixedLeft:ea.every(function(xa){return xa.fixed==="left"}),emptyNode:qu,columns:_s,flattenColumns:ea,onColumnResize:Yc,hoverStartRow:No,hoverEndRow:hs,onHover:co,rowExpandable:Ps.rowExpandable,onRow:qr,getRowKey:So,expandedKeys:Fs,childrenColumnName:js}},[As,on,ho,ld,Mn,Mc,Dh,ah,Oo,Sl,ph,dl,Xc,dn,Ps.expandedRowClassName,$a,ko,Ps.expandRowByClick,Ps.expandedRowRender,jl,Ps.expandIconColumnIndex,Ps.indentSize,qu,_s,ea,Yc,No,hs,co,Ps.rowExpandable,qr,So,Fs,js]);return Lt.createElement(Tt.Provider,{value:du},cu)}function wo(ve){return ut(Wr,ve)}var fo=wo();fo.EXPAND_COLUMN=bt,fo.INTERNAL_HOOKS=ge,fo.Column=Zo,fo.ColumnGroup=ri,fo.Summary=fe;var xo=fo,_r=Bt(45680),Ci=Jt(null),Qo=Jt(null);function bi(ve,Ee,Ye){var on=Ee||1;return Ye[ve+on]-(Ye[ve]||0)}function ns(ve){var Ee=ve.rowInfo,Ye=ve.column,on=ve.colIndex,cn=ve.indent,dn=ve.index,Dn=ve.renderIndex,Jn=ve.record,Ue=ve.style,hn=ve.className,yn=ve.inverse,Mn=ve.getHeight,Zn=Ye.render,li=Ye.dataIndex,oi=Ye.className,Fi=Ye.width,ki=St(Qo,["columnsOffset"]),Xi=ki.columnsOffset,ar=ci(Ee,Ye,on,cn,dn),gr=ar.key,qr=ar.fixedInfo,qi=ar.appendCellNode,Qn=ar.additionalCellProps,so=Qn.style,uo=Qn.colSpan,rr=uo===void 0?1:uo,wr=Qn.rowSpan,mr=wr===void 0?1:wr,ir=on-1,Or=bi(ir,rr,Xi),ho=rr>1?Fi-Or:0,So=(0,Fe.Z)((0,Fe.Z)((0,Fe.Z)({},so),Ue),{},{flex:"0 0 ".concat(Or,"px"),width:"".concat(Or,"px"),marginRight:ho,pointerEvents:"auto"}),Fo=Lt.useMemo(function(){return yn?mr<=1:rr===0||mr===0||mr>1},[mr,rr,yn]);Fo?So.visibility="hidden":yn&&(So.height=Mn==null?void 0:Mn(mr));var Gr=Fo?function(){return null}:Zn,Vo={};return(mr===0||rr===0)&&(Vo.rowSpan=1,Vo.colSpan=1),Lt.createElement(Si,(0,Wt.Z)({className:Yt()(oi,hn),ellipsis:Ye.ellipsis,align:Ye.align,scope:Ye.rowScope,component:"div",prefixCls:Ee.prefixCls,key:gr,record:Jn,index:dn,renderIndex:Dn,dataIndex:li,render:Gr,shouldCellUpdate:Ye.shouldCellUpdate},qr,{appendNode:qi,additionalProps:(0,Fe.Z)((0,Fe.Z)({},Qn),{},{style:So},Vo)}))}var qs=ns,fs=["data","index","className","rowKey","style","extra","getHeight"],Hs=Lt.forwardRef(function(ve,Ee){var Ye=ve.data,on=ve.index,cn=ve.className,dn=ve.rowKey,Dn=ve.style,Jn=ve.extra,Ue=ve.getHeight,hn=(0,Pn.Z)(ve,fs),yn=Ye.record,Mn=Ye.indent,Zn=Ye.index,li=St(Tt,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),oi=li.scrollX,Fi=li.flattenColumns,ki=li.prefixCls,Xi=li.fixColumn,ar=li.componentWidth,gr=bn(yn,dn,on,Mn),qr=gr.rowSupportExpand,qi=gr.expanded,Qn=gr.rowProps,so=gr.expandedRowRender,uo=gr.expandedRowClassName,rr;if(qr&&qi){var wr=so(yn,on,Mn+1,qi),mr=uo==null?void 0:uo(yn,on,Mn),ir={};Xi&&(ir={style:(0,ee.Z)({},"--virtual-width","".concat(ar,"px"))});var Or="".concat(ki,"-expanded-row-cell");rr=Lt.createElement("div",{className:Yt()("".concat(ki,"-expanded-row"),"".concat(ki,"-expanded-row-level-").concat(Mn+1),mr)},Lt.createElement(Si,{component:"div",prefixCls:ki,className:Yt()(Or,(0,ee.Z)({},"".concat(Or,"-fixed"),Xi)),additionalProps:ir},wr))}var ho=(0,Fe.Z)((0,Fe.Z)({},Dn),{},{width:oi});Jn&&(ho.position="absolute",ho.pointerEvents="none");var So=Lt.createElement("div",(0,Wt.Z)({},Qn,hn,{ref:qr?null:Ee,className:Yt()(cn,"".concat(ki,"-row"),Qn==null?void 0:Qn.className,(0,ee.Z)({},"".concat(ki,"-row-extra"),Jn)),style:(0,Fe.Z)((0,Fe.Z)({},ho),Qn==null?void 0:Qn.style)}),Fi.map(function(Fo,Gr){return Lt.createElement(qs,{key:Gr,rowInfo:gr,column:Fo,colIndex:Gr,indent:Mn,index:on,renderIndex:Zn,record:yn,inverse:Jn,getHeight:Ue})}));return qr?Lt.createElement("div",{ref:Ee},So,rr):So}),Gs=dt(Hs),si=Gs,To=Lt.forwardRef(function(ve,Ee){var Ye=ve.data,on=ve.onScroll,cn=St(Tt,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),dn=cn.flattenColumns,Dn=cn.onColumnResize,Jn=cn.getRowKey,Ue=cn.expandedKeys,hn=cn.prefixCls,yn=cn.childrenColumnName,Mn=cn.emptyNode,Zn=cn.scrollX,li=St(Ci),oi=li.scrollY,Fi=li.listItemHeight,ki=Lt.useRef(),Xi=je(Ye,yn,Ue,Jn),ar=Lt.useMemo(function(){var rr=0;return dn.map(function(wr){var mr=wr.width,ir=wr.key;return rr+=mr,[ir,mr,rr]})},[dn]),gr=Lt.useMemo(function(){return ar.map(function(rr){return rr[2]})},[ar]);Lt.useEffect(function(){ar.forEach(function(rr){var wr=(0,se.Z)(rr,2),mr=wr[0],ir=wr[1];Dn(mr,ir)})},[ar]),Lt.useImperativeHandle(Ee,function(){var rr={};return Object.defineProperty(rr,"scrollLeft",{get:function(){var mr;return((mr=ki.current)===null||mr===void 0?void 0:mr.getScrollInfo().x)||0},set:function(mr){var ir;(ir=ki.current)===null||ir===void 0||ir.scrollTo({left:mr})}}),rr});var qr=function(wr,mr){var ir,Or=(ir=Xi[mr])===null||ir===void 0?void 0:ir.record,ho=wr.onCell;if(ho){var So,Fo=ho(Or,mr);return(So=Fo==null?void 0:Fo.rowSpan)!==null&&So!==void 0?So:1}return 1},qi=function(wr){var mr=wr.start,ir=wr.end,Or=wr.getSize,ho=wr.offsetY;if(ir<0)return null;for(var So=dn.filter(function(Po){return qr(Po,mr)===0}),Fo=mr,Gr=function(as){if(So=So.filter(function(ds){return qr(ds,as)===0}),!So.length)return Fo=as,"break"},Vo=mr;Vo>=0;Vo-=1){var No=Gr(Vo);if(No==="break")break}for(var hs=dn.filter(function(Po){return qr(Po,ir)!==1}),co=ir,Pa=function(as){if(hs=hs.filter(function(ds){return qr(ds,as)!==1}),!hs.length)return co=Math.max(as-1,ir),"break"},Os=ir;Os<Xi.length;Os+=1){var Ps=Pa(Os);if(Ps==="break")break}for(var ko=[],Fs=function(as){var ds=Xi[as];if(!ds)return"continue";dn.some(function(Oo){return qr(Oo,as)>1})&&ko.push(as)},$a=Fo;$a<=co;$a+=1)var js=Fs($a);var jl=ko.map(function(Po){var as=Xi[Po],ds=Jn(as.record,Po),Oo=function(Ls){var _s=Po+Ls-1,ea=Jn(Xi[_s].record,_s),Yl=Or(ds,ea);return Yl.bottom-Yl.top},qo=Or(ds);return Lt.createElement(si,{key:Po,data:as,rowKey:ds,index:Po,style:{top:-ho+qo.top},extra:!0,getHeight:Oo})});return jl},Qn=Lt.useMemo(function(){return{columnsOffset:gr}},[gr]),so="".concat(hn,"-tbody"),uo;return Xi.length?uo=Lt.createElement(_r.Z,{fullHeight:!1,ref:ki,className:Yt()(so,"".concat(so,"-virtual")),height:oi,itemHeight:Fi||24,data:Xi,itemKey:function(wr){return Jn(wr.record)},scrollWidth:Zn,onVirtualScroll:function(wr){var mr=wr.x;on({scrollLeft:mr})},extraRender:qi},function(rr,wr,mr){var ir=Jn(rr.record,wr);return Lt.createElement(si,(0,Wt.Z)({data:rr,rowKey:ir,index:wr},mr))}):uo=Lt.createElement("div",{className:Yt()("".concat(hn,"-placeholder"))},Lt.createElement(Si,{component:"div",prefixCls:hn},Mn)),Lt.createElement(Qo.Provider,{value:Qn},uo)}),us=dt(To),rs=us,Cr=function(Ee,Ye){var on=Ye.ref,cn=Ye.onScroll;return Lt.createElement(rs,{ref:on,data:Ee,onScroll:cn})},ke=100;function ts(ve){var Ee=ve.columns,Ye=ve.scroll,on=ve.prefixCls,cn=on===void 0?or:on,dn=ve.className,Dn=ve.listItemHeight,Jn=Ye||{},Ue=Jn.x,hn=Jn.y;typeof Ue!="number"&&(Ue=((Ee||[]).length+1)*ke),typeof hn!="number"&&(hn=500);var yn=Lt.useMemo(function(){return{scrollY:hn,listItemHeight:Dn}},[hn,Dn]);return Lt.createElement(Ci.Provider,{value:yn},Lt.createElement(xo,(0,Wt.Z)({},ve,{className:Yt()(dn,"".concat(cn,"-virtual")),scroll:(0,Fe.Z)((0,Fe.Z)({},Ye),{},{x:Ue}),components:{body:Cr},columns:Ee,internalHooks:ge,tailor:!0})))}function ta(ve){return ut(ts,ve)}var qa=ta(),ol=null;function ml(ve){return null}var yr=ml;function $r(ve){return null}var Jo=$r,Lo=Bt(2738),os=Bt(68031),Fa=Bt(36355),lo=Bt(93891),vo=Bt(19716),Ki=Bt(8628),Eo=Bt(31724),Es=Bt(58421),la=Bt(71418),ca=Bt(88088);function zo(ve){return function(Ye){let{prefixCls:on,onExpand:cn,record:dn,expanded:Dn,expandable:Jn}=Ye;const Ue=`${on}-row-expand-icon`;return Lt.createElement("button",{type:"button",onClick:hn=>{cn(dn,hn),hn.stopPropagation()},className:Yt()(Ue,{[`${Ue}-spaced`]:!Jn,[`${Ue}-expanded`]:Jn&&Dn,[`${Ue}-collapsed`]:Jn&&!Dn}),"aria-label":Dn?ve.collapse:ve.expand,"aria-expanded":Dn})}}var Vs=zo;function Ka(ve,Ee){return"key"in ve&&ve.key!==void 0&&ve.key!==null?ve.key:ve.dataIndex?Array.isArray(ve.dataIndex)?ve.dataIndex.join("."):ve.dataIndex:Ee}function Wl(ve,Ee){return Ee?`${Ee}-${ve}`:`${ve}`}function La(ve,Ee){return typeof ve=="function"?ve(Ee):ve}function vs(ve,Ee){const Ye=La(ve,Ee);return Object.prototype.toString.call(Ye)==="[object Object]"?"":Ye}var ai={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"},Ta=ai,bc=Bt(7657),Vl=function(Ee,Ye){return Lt.createElement(bc.Z,(0,Wt.Z)({},Ee,{ref:Ye,icon:Ta}))},Th=Lt.forwardRef(Vl),sl=Th,Wc=Bt(56762);function Fl(ve){const Ee=Lt.useRef(ve),Ye=(0,Wc.Z)();return[()=>Ee.current,on=>{Ee.current=on,Ye()}]}var Is=Bt(3113),ia=Bt(24905),Ph=Bt(38854),is=Bt(64165),Zs=Bt(20834),ys=Bt(40875),Hr=Bt(5112),Tl=Bt(17574),Ol=Bt(47472),Ao=Bt(92832);function Ns(ve){let{value:Ee,onChange:Ye,filterSearch:on,tablePrefixCls:cn,locale:dn}=ve;return on?Lt.createElement("div",{className:`${cn}-filter-dropdown-search`},Lt.createElement(Ao.default,{prefix:Lt.createElement(Ol.Z,null),placeholder:dn.filterSearchPlaceholder,onChange:Ye,value:Ee,htmlSize:1,className:`${cn}-filter-dropdown-search-input`})):null}var da=Ns,xr=Bt(10228);const Ma=ve=>{const{keyCode:Ee}=ve;Ee===xr.Z.ENTER&&ve.stopPropagation()};var Bl=Lt.forwardRef((ve,Ee)=>Lt.createElement("div",{className:ve.className,onClick:Ye=>Ye.stopPropagation(),onKeyDown:Ma,ref:Ee},ve.children));function su(ve){let Ee=[];return(ve||[]).forEach(Ye=>{let{value:on,children:cn}=Ye;Ee.push(on),cn&&(Ee=[].concat((0,mo.Z)(Ee),(0,mo.Z)(su(cn))))}),Ee}function au(ve){return ve.some(Ee=>{let{children:Ye}=Ee;return Ye})}function Yo(ve,Ee){return typeof Ee=="string"||typeof Ee=="number"?Ee==null?void 0:Ee.toString().toLowerCase().includes(ve.trim().toLowerCase()):!1}function va(ve){let{filters:Ee,prefixCls:Ye,filteredKeys:on,filterMultiple:cn,searchValue:dn,filterSearch:Dn}=ve;return Ee.map((Jn,Ue)=>{const hn=String(Jn.value);if(Jn.children)return{key:hn||Ue,label:Jn.text,popupClassName:`${Ye}-dropdown-submenu`,children:va({filters:Jn.children,prefixCls:Ye,filteredKeys:on,filterMultiple:cn,searchValue:dn,filterSearch:Dn})};const yn=cn?ia.default:Hr.ZP,Mn={key:Jn.value!==void 0?hn:Ue,label:Lt.createElement(Lt.Fragment,null,Lt.createElement(yn,{checked:on.includes(hn)}),Lt.createElement("span",null,Jn.text))};return dn.trim()?typeof Dn=="function"?Dn(dn,Jn)?Mn:null:Yo(dn,Jn.text)?Mn:null:Mn})}function Cs(ve){var Ee,Ye;const{tablePrefixCls:on,prefixCls:cn,column:dn,dropdownPrefixCls:Dn,columnKey:Jn,filterMultiple:Ue,filterMode:hn="menu",filterSearch:yn=!1,filterState:Mn,triggerFilter:Zn,locale:li,children:oi,getPopupContainer:Fi}=ve,{filterDropdownOpen:ki,onFilterDropdownOpenChange:Xi,filterResetToDefaultFilteredValue:ar,defaultFilteredValue:gr,filterDropdownVisible:qr,onFilterDropdownVisibleChange:qi}=dn,[Qn,so]=Lt.useState(!1),uo=!!(Mn&&(!((Ee=Mn.filteredKeys)===null||Ee===void 0)&&Ee.length||Mn.forceFiltered)),rr=bo=>{so(bo),Xi==null||Xi(bo),qi==null||qi(bo)},wr=(Ye=ki!=null?ki:qr)!==null&&Ye!==void 0?Ye:Qn,mr=Mn==null?void 0:Mn.filteredKeys,[ir,Or]=Fl(mr||[]),ho=bo=>{let{selectedKeys:Ls}=bo;Or(Ls)},So=(bo,Ls)=>{let{node:_s,checked:ea}=Ls;ho(Ue?{selectedKeys:bo}:{selectedKeys:ea&&_s.key?[_s.key]:[]})};Lt.useEffect(()=>{Qn&&ho({selectedKeys:mr||[]})},[mr]);const[Fo,Gr]=Lt.useState([]),Vo=bo=>{Gr(bo)},[No,hs]=Lt.useState(""),co=bo=>{const{value:Ls}=bo.target;hs(Ls)};Lt.useEffect(()=>{Qn||hs("")},[Qn]);const Pa=bo=>{const Ls=bo&&bo.length?bo:null;if(Ls===null&&(!Mn||!Mn.filteredKeys)||(0,ae.Z)(Ls,Mn==null?void 0:Mn.filteredKeys,!0))return null;Zn({column:dn,key:Jn,filteredKeys:Ls})},Os=()=>{rr(!1),Pa(ir())},Ps=function(){let{confirm:bo,closeDropdown:Ls}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};bo&&Pa([]),Ls&&rr(!1),hs(""),Or(ar?(gr||[]).map(_s=>String(_s)):[])},ko=function(){let{closeDropdown:bo}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};bo&&rr(!1),Pa(ir())},Fs=bo=>{bo&&mr!==void 0&&Or(mr||[]),rr(bo),!bo&&!dn.filterDropdown&&Os()},$a=Yt()({[`${Dn}-menu-without-submenu`]:!au(dn.filters||[])}),js=bo=>{if(bo.target.checked){const Ls=su(dn==null?void 0:dn.filters).map(_s=>String(_s));Or(Ls)}else Or([])},jl=bo=>{let{filters:Ls}=bo;return(Ls||[]).map((_s,ea)=>{const Yl=String(_s.value),As={title:_s.text,key:_s.value!==void 0?Yl:ea};return _s.children&&(As.children=jl({filters:_s.children})),As})},Po=bo=>{var Ls;return Object.assign(Object.assign({},bo),{text:bo.title,value:bo.key,children:((Ls=bo.children)===null||Ls===void 0?void 0:Ls.map(_s=>Po(_s)))||[]})};let as;if(typeof dn.filterDropdown=="function")as=dn.filterDropdown({prefixCls:`${Dn}-custom`,setSelectedKeys:bo=>ho({selectedKeys:bo}),selectedKeys:ir(),confirm:ko,clearFilters:Ps,filters:dn.filters,visible:wr,close:()=>{rr(!1)}});else if(dn.filterDropdown)as=dn.filterDropdown;else{const bo=ir()||[],Ls=()=>(dn.filters||[]).length===0?Lt.createElement(is.Z,{image:is.Z.PRESENTED_IMAGE_SIMPLE,description:li.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):hn==="tree"?Lt.createElement(Lt.Fragment,null,Lt.createElement(da,{filterSearch:yn,value:No,onChange:co,tablePrefixCls:on,locale:li}),Lt.createElement("div",{className:`${on}-filter-dropdown-tree`},Ue?Lt.createElement(ia.default,{checked:bo.length===su(dn.filters).length,indeterminate:bo.length>0&&bo.length<su(dn.filters).length,className:`${on}-filter-dropdown-checkall`,onChange:js},li.filterCheckall):null,Lt.createElement(Tl.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Ue,checkStrictly:!Ue,className:`${Dn}-menu`,onCheck:So,checkedKeys:bo,selectedKeys:bo,showIcon:!1,treeData:jl({filters:dn.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:No.trim()?ea=>typeof yn=="function"?yn(No,Po(ea)):Yo(No,ea.title):void 0}))):Lt.createElement(Lt.Fragment,null,Lt.createElement(da,{filterSearch:yn,value:No,onChange:co,tablePrefixCls:on,locale:li}),Lt.createElement(Zs.default,{selectable:!0,multiple:Ue,prefixCls:`${Dn}-menu`,className:$a,onSelect:ho,onDeselect:ho,selectedKeys:bo,getPopupContainer:Fi,openKeys:Fo,onOpenChange:Vo,items:va({filters:dn.filters||[],filterSearch:yn,prefixCls:cn,filteredKeys:ir(),filterMultiple:Ue,searchValue:No})})),_s=()=>ar?(0,ae.Z)((gr||[]).map(ea=>String(ea)),bo,!0):bo.length===0;as=Lt.createElement(Lt.Fragment,null,Ls(),Lt.createElement("div",{className:`${cn}-dropdown-btns`},Lt.createElement(Is.ZP,{type:"link",size:"small",disabled:_s(),onClick:()=>Ps()},li.filterReset),Lt.createElement(Is.ZP,{type:"primary",size:"small",onClick:Os},li.filterConfirm)))}dn.filterDropdown&&(as=Lt.createElement(ys.J,{selectable:void 0},as));const ds=()=>Lt.createElement(Bl,{className:`${cn}-dropdown`},as);let Oo;typeof dn.filterIcon=="function"?Oo=dn.filterIcon(uo):dn.filterIcon?Oo=dn.filterIcon:Oo=Lt.createElement(sl,null);const{direction:qo}=Lt.useContext(Fa.E_);return Lt.createElement("div",{className:`${cn}-column`},Lt.createElement("span",{className:`${on}-column-title`},oi),Lt.createElement(Ph.Z,{dropdownRender:ds,trigger:["click"],open:wr,onOpenChange:Fs,getPopupContainer:Fi,placement:qo==="rtl"?"bottomLeft":"bottomRight"},Lt.createElement("span",{role:"button",tabIndex:-1,className:Yt()(`${cn}-trigger`,{active:uo}),onClick:bo=>{bo.stopPropagation()}},Oo)))}var lu=Cs;function Ll(ve,Ee,Ye){let on=[];return(ve||[]).forEach((cn,dn)=>{var Dn;const Jn=Wl(dn,Ye);if(cn.filters||"filterDropdown"in cn||"onFilter"in cn)if("filteredValue"in cn){let Ue=cn.filteredValue;"filterDropdown"in cn||(Ue=(Dn=Ue==null?void 0:Ue.map(String))!==null&&Dn!==void 0?Dn:Ue),on.push({column:cn,key:Ka(cn,Jn),filteredKeys:Ue,forceFiltered:cn.filtered})}else on.push({column:cn,key:Ka(cn,Jn),filteredKeys:Ee&&cn.defaultFilteredValue?cn.defaultFilteredValue:void 0,forceFiltered:cn.filtered});"children"in cn&&(on=[].concat((0,mo.Z)(on),(0,mo.Z)(Ll(cn.children,Ee,Jn))))}),on}function Ml(ve,Ee,Ye,on,cn,dn,Dn,Jn){return Ye.map((Ue,hn)=>{const yn=Wl(hn,Jn),{filterMultiple:Mn=!0,filterMode:Zn,filterSearch:li}=Ue;let oi=Ue;if(oi.filters||oi.filterDropdown){const Fi=Ka(oi,yn),ki=on.find(Xi=>{let{key:ar}=Xi;return Fi===ar});oi=Object.assign(Object.assign({},oi),{title:Xi=>Lt.createElement(lu,{tablePrefixCls:ve,prefixCls:`${ve}-filter`,dropdownPrefixCls:Ee,column:oi,columnKey:Fi,filterState:ki,filterMultiple:Mn,filterMode:Zn,filterSearch:li,triggerFilter:dn,locale:cn,getPopupContainer:Dn},La(Ue.title,Xi))})}return"children"in oi&&(oi=Object.assign(Object.assign({},oi),{children:Ml(ve,Ee,oi.children,on,cn,dn,Dn,yn)})),oi})}function tl(ve){const Ee={};return ve.forEach(Ye=>{let{key:on,filteredKeys:cn,column:dn}=Ye;const{filters:Dn,filterDropdown:Jn}=dn;if(Jn)Ee[on]=cn||null;else if(Array.isArray(cn)){const Ue=su(Dn);Ee[on]=Ue.filter(hn=>cn.includes(String(hn)))}else Ee[on]=null}),Ee}function tu(ve,Ee){return Ee.reduce((Ye,on)=>{const{column:{onFilter:cn,filters:dn},filteredKeys:Dn}=on;return cn&&Dn&&Dn.length?Ye.filter(Jn=>Dn.some(Ue=>{const hn=su(dn),yn=hn.findIndex(Zn=>String(Zn)===String(Ue)),Mn=yn!==-1?hn[yn]:Ue;return cn(Mn,Jn)})):Ye},ve)}const Pl=ve=>ve.flatMap(Ee=>"children"in Ee?[Ee].concat((0,mo.Z)(Pl(Ee.children||[]))):[Ee]);function Io(ve){let{prefixCls:Ee,dropdownPrefixCls:Ye,mergedColumns:on,onFilterChange:cn,getPopupContainer:dn,locale:Dn}=ve;const Jn=Lt.useMemo(()=>Pl(on||[]),[on]),[Ue,hn]=Lt.useState(()=>Ll(Jn,!0)),yn=Lt.useMemo(()=>{const oi=Ll(Jn,!1);if(oi.length===0)return oi;let Fi=!0,ki=!0;if(oi.forEach(Xi=>{let{filteredKeys:ar}=Xi;ar!==void 0?Fi=!1:ki=!1}),Fi){const Xi=(Jn||[]).map((ar,gr)=>Ka(ar,Wl(gr)));return Ue.filter(ar=>{let{key:gr}=ar;return Xi.includes(gr)}).map(ar=>{const gr=Jn[Xi.findIndex(qr=>qr===ar.key)];return Object.assign(Object.assign({},ar),{column:Object.assign(Object.assign({},ar.column),gr),forceFiltered:gr.filtered})})}return oi},[Jn,Ue]),Mn=Lt.useMemo(()=>tl(yn),[yn]),Zn=oi=>{const Fi=yn.filter(ki=>{let{key:Xi}=ki;return Xi!==oi.key});Fi.push(oi),hn(Fi),cn(tl(Fi),Fi)};return[oi=>Ml(Ee,Ye,oi,yn,Dn,Zn,dn),yn,Mn]}var dc=Io;function al(ve,Ee,Ye){const on=Lt.useRef({});function cn(dn){if(!on.current||on.current.data!==ve||on.current.childrenColumnName!==Ee||on.current.getRowKey!==Ye){let Jn=function(Ue){Ue.forEach((hn,yn)=>{const Mn=Ye(hn,yn);Dn.set(Mn,hn),hn&&typeof hn=="object"&&Ee in hn&&Jn(hn[Ee]||[])})};const Dn=new Map;Jn(ve),on.current={data:ve,childrenColumnName:Ee,kvMap:Dn,getRowKey:Ye}}return on.current.kvMap.get(dn)}return[cn]}var zu=Bt(50371),hh=function(ve,Ee){var Ye={};for(var on in ve)Object.prototype.hasOwnProperty.call(ve,on)&&Ee.indexOf(on)<0&&(Ye[on]=ve[on]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var cn=0,on=Object.getOwnPropertySymbols(ve);cn<on.length;cn++)Ee.indexOf(on[cn])<0&&Object.prototype.propertyIsEnumerable.call(ve,on[cn])&&(Ye[on[cn]]=ve[on[cn]]);return Ye};const dh=10;function Ga(ve,Ee){const Ye={current:ve.current,pageSize:ve.pageSize};return Object.keys(Ee&&typeof Ee=="object"?Ee:{}).forEach(cn=>{const dn=ve[cn];typeof dn!="function"&&(Ye[cn]=dn)}),Ye}function ih(ve,Ee,Ye){const on=Ye&&typeof Ye=="object"?Ye:{},{total:cn=0}=on,dn=hh(on,["total"]),[Dn,Jn]=(0,Lt.useState)(()=>({current:"defaultCurrent"in dn?dn.defaultCurrent:1,pageSize:"defaultPageSize"in dn?dn.defaultPageSize:dh})),Ue=(0,zu.Z)(Dn,dn,{total:cn>0?cn:ve}),hn=Math.ceil((cn||ve)/Ue.pageSize);Ue.current>hn&&(Ue.current=hn||1);const yn=(Zn,li)=>{Jn({current:Zn!=null?Zn:1,pageSize:li||Ue.pageSize})},Mn=(Zn,li)=>{var oi;Ye&&((oi=Ye.onChange)===null||oi===void 0||oi.call(Ye,Zn,li)),yn(Zn,li),Ee(Zn,li||(Ue==null?void 0:Ue.pageSize))};return Ye===!1?[{},()=>{}]:[Object.assign(Object.assign({},Ue),{onChange:Mn}),yn]}var Ec=ih,Vc=Bt(84105),Zc=Bt(35654),Bs=Bt(90782),ya=Bt(71430),Mu=Bt(18929);const el={},ll="SELECT_ALL",Wa="SELECT_INVERT",Aa="SELECT_NONE",nl=[],Dl=(ve,Ee)=>{let Ye=[];return(Ee||[]).forEach(on=>{Ye.push(on),on&&typeof on=="object"&&ve in on&&(Ye=[].concat((0,mo.Z)(Ye),(0,mo.Z)(Dl(ve,on[ve]))))}),Ye};var rh=(ve,Ee)=>{const{preserveSelectedRowKeys:Ye,selectedRowKeys:on,defaultSelectedRowKeys:cn,getCheckboxProps:dn,onChange:Dn,onSelect:Jn,onSelectAll:Ue,onSelectInvert:hn,onSelectNone:yn,onSelectMultiple:Mn,columnWidth:Zn,type:li,selections:oi,fixed:Fi,renderCell:ki,hideSelectAll:Xi,checkStrictly:ar=!0}=Ee||{},{prefixCls:gr,data:qr,pageData:qi,getRecordByKey:Qn,getRowKey:so,expandType:uo,childrenColumnName:rr,locale:wr,getPopupContainer:mr}=ve,[ir,Or]=(0,Mu.Z)(on||cn||nl,{value:on}),ho=Lt.useRef(new Map),So=(0,Lt.useCallback)(Po=>{if(Ye){const as=new Map;Po.forEach(ds=>{let Oo=Qn(ds);!Oo&&ho.current.has(ds)&&(Oo=ho.current.get(ds)),as.set(ds,Oo)}),ho.current=as}},[Qn,Ye]);Lt.useEffect(()=>{So(ir)},[ir]);const{keyEntities:Fo}=(0,Lt.useMemo)(()=>{if(ar)return{keyEntities:null};let Po=qr;if(Ye){const as=new Set(qr.map((Oo,qo)=>so(Oo,qo))),ds=Array.from(ho.current).reduce((Oo,qo)=>{let[bo,Ls]=qo;return as.has(bo)?Oo:Oo.concat(Ls)},[]);Po=[].concat((0,mo.Z)(Po),(0,mo.Z)(ds))}return(0,ya.I8)(Po,{externalGetKey:so,childrenPropName:rr})},[qr,so,ar,rr,Ye]),Gr=(0,Lt.useMemo)(()=>Dl(rr,qi),[rr,qi]),Vo=(0,Lt.useMemo)(()=>{const Po=new Map;return Gr.forEach((as,ds)=>{const Oo=so(as,ds),qo=(dn?dn(as):null)||{};Po.set(Oo,qo)}),Po},[Gr,so,dn]),No=(0,Lt.useCallback)(Po=>{var as;return!!(!((as=Vo.get(so(Po)))===null||as===void 0)&&as.disabled)},[Vo,so]),[hs,co]=(0,Lt.useMemo)(()=>{if(ar)return[ir||[],[]];const{checkedKeys:Po,halfCheckedKeys:as}=(0,Bs.S)(ir,!0,Fo,No);return[Po||[],as]},[ir,ar,Fo,No]),Pa=(0,Lt.useMemo)(()=>{const Po=li==="radio"?hs.slice(0,1):hs;return new Set(Po)},[hs,li]),Os=(0,Lt.useMemo)(()=>li==="radio"?new Set:new Set(co),[co,li]),[Ps,ko]=(0,Lt.useState)(null);Lt.useEffect(()=>{Ee||Or(nl)},[!!Ee]);const Fs=(0,Lt.useCallback)((Po,as)=>{let ds,Oo;So(Po),Ye?(ds=Po,Oo=Po.map(qo=>ho.current.get(qo))):(ds=[],Oo=[],Po.forEach(qo=>{const bo=Qn(qo);bo!==void 0&&(ds.push(qo),Oo.push(bo))})),Or(ds),Dn==null||Dn(ds,Oo,{type:as})},[Or,Qn,Dn,Ye]),$a=(0,Lt.useCallback)((Po,as,ds,Oo)=>{if(Jn){const qo=ds.map(bo=>Qn(bo));Jn(Qn(Po),as,qo,Oo)}Fs(ds,"single")},[Jn,Qn,Fs]),js=(0,Lt.useMemo)(()=>!oi||Xi?null:(oi===!0?[ll,Wa,Aa]:oi).map(as=>as===ll?{key:"all",text:wr.selectionAll,onSelect(){Fs(qr.map((ds,Oo)=>so(ds,Oo)).filter(ds=>{const Oo=Vo.get(ds);return!(Oo!=null&&Oo.disabled)||Pa.has(ds)}),"all")}}:as===Wa?{key:"invert",text:wr.selectInvert,onSelect(){const ds=new Set(Pa);qi.forEach((qo,bo)=>{const Ls=so(qo,bo),_s=Vo.get(Ls);_s!=null&&_s.disabled||(ds.has(Ls)?ds.delete(Ls):ds.add(Ls))});const Oo=Array.from(ds);hn&&hn(Oo),Fs(Oo,"invert")}}:as===Aa?{key:"none",text:wr.selectNone,onSelect(){yn==null||yn(),Fs(Array.from(Pa).filter(ds=>{const Oo=Vo.get(ds);return Oo==null?void 0:Oo.disabled}),"none")}}:as).map(as=>Object.assign(Object.assign({},as),{onSelect:function(){for(var ds,Oo,qo=arguments.length,bo=new Array(qo),Ls=0;Ls<qo;Ls++)bo[Ls]=arguments[Ls];(Oo=as.onSelect)===null||Oo===void 0||(ds=Oo).call.apply(ds,[as].concat(bo)),ko(null)}})),[oi,Pa,qi,so,hn,Fs]);return[(0,Lt.useCallback)(Po=>{var as;if(!Ee)return Po.filter(wa=>wa!==el);let ds=(0,mo.Z)(Po);const Oo=new Set(Pa),qo=Gr.map(so).filter(wa=>!Vo.get(wa).disabled),bo=qo.every(wa=>Oo.has(wa)),Ls=qo.some(wa=>Oo.has(wa)),_s=()=>{const wa=[];bo?qo.forEach(Na=>{Oo.delete(Na),wa.push(Na)}):qo.forEach(Na=>{Oo.has(Na)||(Oo.add(Na),wa.push(Na))});const na=Array.from(Oo);Ue==null||Ue(!bo,na.map(Na=>Qn(Na)),wa.map(Na=>Qn(Na))),Fs(na,"all"),ko(null)};let ea;if(li!=="radio"){let wa;if(js){const Qs={getPopupContainer:mr,items:js.map((Ia,Nl)=>{const{key:Iu,text:mu,onSelect:ku}=Ia;return{key:Iu!=null?Iu:Nl,onClick:()=>{ku==null||ku(qo)},label:mu}})};wa=Lt.createElement("div",{className:`${gr}-selection-extra`},Lt.createElement(Ph.Z,{menu:Qs,getPopupContainer:mr},Lt.createElement("span",null,Lt.createElement(Vc.Z,null))))}const na=Gr.map((Qs,Ia)=>{const Nl=so(Qs,Ia),Iu=Vo.get(Nl)||{};return Object.assign({checked:Oo.has(Nl)},Iu)}).filter(Qs=>{let{disabled:Ia}=Qs;return Ia}),Na=!!na.length&&na.length===Gr.length,Xa=Na&&na.every(Qs=>{let{checked:Ia}=Qs;return Ia}),ul=Na&&na.some(Qs=>{let{checked:Ia}=Qs;return Ia});ea=!Xi&&Lt.createElement("div",{className:`${gr}-selection`},Lt.createElement(ia.default,{checked:Na?Xa:!!Gr.length&&bo,indeterminate:Na?!Xa&&ul:!bo&&Ls,onChange:_s,disabled:Gr.length===0||Na,"aria-label":wa?"Custom selection":"Select all",skipGroup:!0}),wa)}let Yl;li==="radio"?Yl=(wa,na,Na)=>{const Xa=so(na,Na),ul=Oo.has(Xa);return{node:Lt.createElement(Hr.ZP,Object.assign({},Vo.get(Xa),{checked:ul,onClick:Qs=>Qs.stopPropagation(),onChange:Qs=>{Oo.has(Xa)||$a(Xa,!0,[Xa],Qs.nativeEvent)}})),checked:ul}}:Yl=(wa,na,Na)=>{var Xa;const ul=so(na,Na),Qs=Oo.has(ul),Ia=Os.has(ul),Nl=Vo.get(ul);let Iu;return uo==="nest"?Iu=Ia:Iu=(Xa=Nl==null?void 0:Nl.indeterminate)!==null&&Xa!==void 0?Xa:Ia,{node:Lt.createElement(ia.default,Object.assign({},Nl,{indeterminate:Iu,checked:Qs,skipGroup:!0,onClick:mu=>mu.stopPropagation(),onChange:mu=>{let{nativeEvent:ku}=mu;const{shiftKey:Gu}=ku;let oh=-1,sh=-1;if(Gu&&ar){const Va=new Set([Ps,ul]);qo.some((Cu,Sl)=>{if(Va.has(Cu))if(oh===-1)oh=Sl;else return sh=Sl,!0;return!1})}if(sh!==-1&&oh!==sh&&ar){const Va=qo.slice(oh,sh+1),Cu=[];Qs?Va.forEach(dl=>{Oo.has(dl)&&(Cu.push(dl),Oo.delete(dl))}):Va.forEach(dl=>{Oo.has(dl)||(Cu.push(dl),Oo.add(dl))});const Sl=Array.from(Oo);Mn==null||Mn(!Qs,Sl.map(dl=>Qn(dl)),Cu.map(dl=>Qn(dl))),Fs(Sl,"multiple")}else{const Va=hs;if(ar){const Cu=Qs?(0,Zc._5)(Va,ul):(0,Zc.L0)(Va,ul);$a(ul,!Qs,Cu,ku)}else{const Cu=(0,Bs.S)([].concat((0,mo.Z)(Va),[ul]),!0,Fo,No),{checkedKeys:Sl,halfCheckedKeys:dl}=Cu;let ph=Sl;if(Qs){const ec=new Set(Sl);ec.delete(ul),ph=(0,Bs.S)(Array.from(ec),{checked:!1,halfCheckedKeys:dl},Fo,No).checkedKeys}$a(ul,!Qs,ph,ku)}}ko(Qs?null:ul)}})),checked:Qs}};const As=(wa,na,Na)=>{const{node:Xa,checked:ul}=Yl(wa,na,Na);return ki?ki(ul,na,Na,Xa):Xa};if(!ds.includes(el))if(ds.findIndex(wa=>{var na;return((na=wa[pr])===null||na===void 0?void 0:na.columnType)==="EXPAND_COLUMN"})===0){const[wa,...na]=ds;ds=[wa,el].concat((0,mo.Z)(na))}else ds=[el].concat((0,mo.Z)(ds));const eu=ds.indexOf(el);ds=ds.filter((wa,na)=>wa!==el||na===eu);const fa=ds[eu-1],yl=ds[eu+1];let po=Fi;po===void 0&&((yl==null?void 0:yl.fixed)!==void 0?po=yl.fixed:(fa==null?void 0:fa.fixed)!==void 0&&(po=fa.fixed)),po&&fa&&((as=fa[pr])===null||as===void 0?void 0:as.columnType)==="EXPAND_COLUMN"&&fa.fixed===void 0&&(fa.fixed=po);const Ra=Yt()(`${gr}-selection-col`,{[`${gr}-selection-col-with-dropdown`]:oi&&li==="checkbox"}),Nu={fixed:po,width:Zn,className:`${gr}-selection-column`,title:Ee.columnTitle||ea,render:As,onCell:Ee.onCell,[pr]:{className:Ra}};return ds.map(wa=>wa===el?Nu:wa)},[so,Gr,Ee,hs,Pa,Os,Zn,js,uo,Ps,Vo,Mn,$a,No]),Pa]},cl=Bt(89489),Ud=Bt(59477),od=Bt(6848);const Ah="ascend",Ko="descend";function sA(ve){return typeof ve.sorter=="object"&&typeof ve.sorter.multiple=="number"?ve.sorter.multiple:!1}function Ln(ve){return typeof ve=="function"?ve:ve&&typeof ve=="object"&&ve.compare?ve.compare:!1}function $i(ve,Ee){return Ee?ve[ve.indexOf(Ee)+1]:ve[0]}function aA(ve,Ee,Ye){let on=[];function cn(dn,Dn){on.push({column:dn,key:Ka(dn,Dn),multiplePriority:sA(dn),sortOrder:dn.sortOrder})}return(ve||[]).forEach((dn,Dn)=>{const Jn=Wl(Dn,Ye);dn.children?("sortOrder"in dn&&cn(dn,Jn),on=[].concat((0,mo.Z)(on),(0,mo.Z)(aA(dn.children,Ee,Jn)))):dn.sorter&&("sortOrder"in dn?cn(dn,Jn):Ee&&dn.defaultSortOrder&&on.push({column:dn,key:Ka(dn,Jn),multiplePriority:sA(dn),sortOrder:dn.defaultSortOrder}))}),on}function tc(ve,Ee,Ye,on,cn,dn,Dn,Jn){return(Ee||[]).map((Ue,hn)=>{const yn=Wl(hn,Jn);let Mn=Ue;if(Mn.sorter){const Zn=Mn.sortDirections||cn,li=Mn.showSorterTooltip===void 0?Dn:Mn.showSorterTooltip,oi=Ka(Mn,yn),Fi=Ye.find(uo=>{let{key:rr}=uo;return rr===oi}),ki=Fi?Fi.sortOrder:null,Xi=$i(Zn,ki);let ar;if(Ue.sortIcon)ar=Ue.sortIcon({sortOrder:ki});else{const uo=Zn.includes(Ah)&&Lt.createElement(Ud.Z,{className:Yt()(`${ve}-column-sorter-up`,{active:ki===Ah})}),rr=Zn.includes(Ko)&&Lt.createElement(cl.Z,{className:Yt()(`${ve}-column-sorter-down`,{active:ki===Ko})});ar=Lt.createElement("span",{className:Yt()(`${ve}-column-sorter`,{[`${ve}-column-sorter-full`]:!!(uo&&rr)})},Lt.createElement("span",{className:`${ve}-column-sorter-inner`,"aria-hidden":"true"},uo,rr))}const{cancelSort:gr,triggerAsc:qr,triggerDesc:qi}=dn||{};let Qn=gr;Xi===Ko?Qn=qi:Xi===Ah&&(Qn=qr);const so=typeof li=="object"?li:{title:Qn};Mn=Object.assign(Object.assign({},Mn),{className:Yt()(Mn.className,{[`${ve}-column-sort`]:ki}),title:uo=>{const rr=Lt.createElement("div",{className:`${ve}-column-sorters`},Lt.createElement("span",{className:`${ve}-column-title`},La(Ue.title,uo)),ar);return li?Lt.createElement(od.Z,Object.assign({},so),rr):rr},onHeaderCell:uo=>{const rr=Ue.onHeaderCell&&Ue.onHeaderCell(uo)||{},wr=rr.onClick,mr=rr.onKeyDown;rr.onClick=ho=>{on({column:Ue,key:oi,sortOrder:Xi,multiplePriority:sA(Ue)}),wr==null||wr(ho)},rr.onKeyDown=ho=>{ho.keyCode===xr.Z.ENTER&&(on({column:Ue,key:oi,sortOrder:Xi,multiplePriority:sA(Ue)}),mr==null||mr(ho))};const ir=vs(Ue.title,{}),Or=ir==null?void 0:ir.toString();return ki?rr["aria-sort"]=ki==="ascend"?"ascending":"descending":rr["aria-label"]=Or||"",rr.className=Yt()(rr.className,`${ve}-column-has-sorters`),rr.tabIndex=0,Ue.ellipsis&&(rr.title=(ir!=null?ir:"").toString()),rr}})}return"children"in Mn&&(Mn=Object.assign(Object.assign({},Mn),{children:tc(ve,Mn.children,Ye,on,cn,dn,Dn,yn)})),Mn})}function ju(ve){const{column:Ee,sortOrder:Ye}=ve;return{column:Ee,order:Ye,field:Ee.dataIndex,columnKey:Ee.key}}function Uu(ve){const Ee=ve.filter(Ye=>{let{sortOrder:on}=Ye;return on}).map(ju);return Ee.length===0&&ve.length?Object.assign(Object.assign({},ju(ve[ve.length-1])),{column:void 0}):Ee.length<=1?Ee[0]||{}:Ee}function fh(ve,Ee,Ye){const on=Ee.slice().sort((Dn,Jn)=>Jn.multiplePriority-Dn.multiplePriority),cn=ve.slice(),dn=on.filter(Dn=>{let{column:{sorter:Jn},sortOrder:Ue}=Dn;return Ln(Jn)&&Ue});return dn.length?cn.sort((Dn,Jn)=>{for(let Ue=0;Ue<dn.length;Ue+=1){const hn=dn[Ue],{column:{sorter:yn},sortOrder:Mn}=hn,Zn=Ln(yn);if(Zn&&Mn){const li=Zn(Dn,Jn,Mn);if(li!==0)return Mn===Ah?li:-li}}return 0}).map(Dn=>{const Jn=Dn[Ye];return Jn?Object.assign(Object.assign({},Dn),{[Ye]:fh(Jn,Ee,Ye)}):Dn}):cn}function _A(ve){let{prefixCls:Ee,mergedColumns:Ye,onSorterChange:on,sortDirections:cn,tableLocale:dn,showSorterTooltip:Dn}=ve;const[Jn,Ue]=Lt.useState(aA(Ye,!0)),hn=Lt.useMemo(()=>{let oi=!0;const Fi=aA(Ye,!1);if(!Fi.length)return Jn;const ki=[];function Xi(gr){oi?ki.push(gr):ki.push(Object.assign(Object.assign({},gr),{sortOrder:null}))}let ar=null;return Fi.forEach(gr=>{ar===null?(Xi(gr),gr.sortOrder&&(gr.multiplePriority===!1?oi=!1:ar=!0)):(ar&&gr.multiplePriority!==!1||(oi=!1),Xi(gr))}),ki},[Ye,Jn]),yn=Lt.useMemo(()=>{const oi=hn.map(Fi=>{let{column:ki,sortOrder:Xi}=Fi;return{column:ki,order:Xi}});return{sortColumns:oi,sortColumn:oi[0]&&oi[0].column,sortOrder:oi[0]&&oi[0].order}},[hn]);function Mn(oi){let Fi;oi.multiplePriority===!1||!hn.length||hn[0].multiplePriority===!1?Fi=[oi]:Fi=[].concat((0,mo.Z)(hn.filter(ki=>{let{key:Xi}=ki;return Xi!==oi.key})),[oi]),Ue(Fi),on(Uu(Fi),Fi)}return[oi=>tc(Ee,oi,hn,Mn,cn,dn,Dn),hn,yn,()=>Uu(hn)]}function sd(ve,Ee){return ve.map(Ye=>{const on=Object.assign({},Ye);return on.title=La(Ye.title,Ee),"children"in on&&(on.children=sd(on.children,Ee)),on})}function il(ve){return[Lt.useCallback(Ye=>sd(Ye,ve),[ve])]}var gs=wo((ve,Ee)=>{const{_renderTimes:Ye}=ve,{_renderTimes:on}=Ee;return Ye!==on}),Xu=ta((ve,Ee)=>{const{_renderTimes:Ye}=ve,{_renderTimes:on}=Ee;return Ye!==on}),Ku=Bt(64993),bl=Bt(17313),sa=Bt(83116),pu=Bt(37613),xl=ve=>{const{componentCls:Ee}=ve,Ye=`${ve.lineWidth}px ${ve.lineType} ${ve.tableBorderColor}`,on=(cn,dn,Dn)=>({[`&${Ee}-${cn}`]:{[`> ${Ee}-container`]:{[`> ${Ee}-content, > ${Ee}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Ee}-expanded-row-fixed`]:{margin:`-${dn}px -${Dn+ve.lineWidth}px`}}}}}});return{[`${Ee}-wrapper`]:{[`${Ee}${Ee}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Ee}-title`]:{border:Ye,borderBottom:0},[`> ${Ee}-container`]:{borderInlineStart:Ye,borderTop:Ye,[`
|
|
|
> ${Ee}-content,
|
|
|
> ${Ee}-header,
|
|
|
> ${Ee}-body,
|
|
|
> ${Ee}-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:Ye},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Ye},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${Ee}-cell-fix-right-first::after`]:{borderInlineEnd:Ye}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Ee}-expanded-row-fixed`]:{margin:`-${ve.tablePaddingVertical}px -${ve.tablePaddingHorizontal+ve.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:ve.lineWidth,bottom:0,borderInlineEnd:Ye,content:'""'}}}}}},[`&${Ee}-scroll-horizontal`]:{[`> ${Ee}-container > ${Ee}-body`]:{"> table > tbody":{[`
|
|
|
> tr${Ee}-expanded-row,
|
|
|
> tr${Ee}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},on("middle",ve.tablePaddingVerticalMiddle,ve.tablePaddingHorizontalMiddle)),on("small",ve.tablePaddingVerticalSmall,ve.tablePaddingHorizontalSmall)),{[`> ${Ee}-footer`]:{border:Ye,borderTop:0}}),[`${Ee}-cell`]:{[`${Ee}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${ve.lineWidth}px 0 ${ve.lineWidth}px ${ve.tableHeaderBg}`}},[`${Ee}-bordered ${Ee}-cell-scrollbar`]:{borderInlineEnd:Ye}}}},Su=ve=>{const{componentCls:Ee}=ve;return{[`${Ee}-wrapper`]:{[`${Ee}-cell-ellipsis`]:Object.assign(Object.assign({},bl.vS),{wordBreak:"keep-all",[`
|
|
|
&${Ee}-cell-fix-left-last,
|
|
|
&${Ee}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${Ee}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Ee}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Da=ve=>{const{componentCls:Ee}=ve;return{[`${Ee}-wrapper`]:{[`${Ee}-tbody > tr${Ee}-placeholder`]:{textAlign:"center",color:ve.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:ve.colorBgContainer}}}}},Ju=Bt(15969),vl=ve=>{const{componentCls:Ee,antCls:Ye,controlInteractiveSize:on,motionDurationSlow:cn,lineWidth:dn,paddingXS:Dn,lineType:Jn,tableBorderColor:Ue,tableExpandIconBg:hn,tableExpandColumnWidth:yn,borderRadius:Mn,fontSize:Zn,fontSizeSM:li,lineHeight:oi,tablePaddingVertical:Fi,tablePaddingHorizontal:ki,tableExpandedRowBg:Xi,paddingXXS:ar}=ve,gr=on/2-dn,qr=gr*2+dn*3,qi=`${dn}px ${Jn} ${Ue}`,Qn=ar-dn;return{[`${Ee}-wrapper`]:{[`${Ee}-expand-icon-col`]:{width:yn},[`${Ee}-row-expand-icon-cell`]:{textAlign:"center",[`${Ee}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Ee}-row-indent`]:{height:1,float:"left"},[`${Ee}-row-expand-icon`]:Object.assign(Object.assign({},(0,Ju.N)(ve)),{position:"relative",float:"left",boxSizing:"border-box",width:qr,height:qr,padding:0,color:"inherit",lineHeight:`${qr}px`,background:hn,border:qi,borderRadius:Mn,transform:`scale(${on/qr})`,transition:`all ${cn}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${cn} ease-out`,content:'""'},"&::before":{top:gr,insetInlineEnd:Qn,insetInlineStart:Qn,height:dn},"&::after":{top:Qn,bottom:Qn,insetInlineStart:gr,width:dn,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"}}),[`${Ee}-row-indent + ${Ee}-row-expand-icon`]:{marginTop:(Zn*oi-dn*3)/2-Math.ceil((li*1.4-dn*3)/2),marginInlineEnd:Dn},[`tr${Ee}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Xi}},[`${Ye}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Ee}-expanded-row-fixed`]:{position:"relative",margin:`-${Fi}px -${ki}px`,padding:`${Fi}px ${ki}px`}}}},Pt=ve=>{const{componentCls:Ee,antCls:Ye,iconCls:on,tableFilterDropdownWidth:cn,tableFilterDropdownSearchWidth:dn,paddingXXS:Dn,paddingXS:Jn,colorText:Ue,lineWidth:hn,lineType:yn,tableBorderColor:Mn,tableHeaderIconColor:Zn,fontSizeSM:li,tablePaddingHorizontal:oi,borderRadius:Fi,motionDurationSlow:ki,colorTextDescription:Xi,colorPrimary:ar,tableHeaderFilterActiveBg:gr,colorTextDisabled:qr,tableFilterDropdownBg:qi,tableFilterDropdownHeight:Qn,controlItemBgHover:so,controlItemBgActive:uo,boxShadowSecondary:rr,filterDropdownMenuBg:wr}=ve,mr=`${Ye}-dropdown`,ir=`${Ee}-filter-dropdown`,Or=`${Ye}-tree`,ho=`${hn}px ${yn} ${Mn}`;return[{[`${Ee}-wrapper`]:{[`${Ee}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Ee}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Dn,marginInline:`${Dn}px ${-oi/2}px`,padding:`0 ${Dn}px`,color:Zn,fontSize:li,borderRadius:Fi,cursor:"pointer",transition:`all ${ki}`,"&:hover":{color:Xi,background:gr},"&.active":{color:ar}}}},{[`${Ye}-dropdown`]:{[ir]:Object.assign(Object.assign({},(0,bl.Wf)(ve)),{minWidth:cn,backgroundColor:qi,borderRadius:Fi,boxShadow:rr,overflow:"hidden",[`${mr}-menu`]:{maxHeight:Qn,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:wr,"&:empty::after":{display:"block",padding:`${Jn}px 0`,color:qr,fontSize:li,textAlign:"center",content:'"Not Found"'}},[`${ir}-tree`]:{paddingBlock:`${Jn}px 0`,paddingInline:Jn,[Or]:{padding:0},[`${Or}-treenode ${Or}-node-content-wrapper:hover`]:{backgroundColor:so},[`${Or}-treenode-checkbox-checked ${Or}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:uo}}},[`${ir}-search`]:{padding:Jn,borderBottom:ho,"&-input":{input:{minWidth:dn},[on]:{color:qr}}},[`${ir}-checkall`]:{width:"100%",marginBottom:Dn,marginInlineStart:Dn},[`${ir}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Jn-hn}px ${Jn}px`,overflow:"hidden",borderTop:ho}})}},{[`${Ye}-dropdown ${ir}, ${ir}-submenu`]:{[`${Ye}-checkbox-wrapper + span`]:{paddingInlineStart:Jn,color:Ue},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Et=ve=>{const{componentCls:Ee,lineWidth:Ye,colorSplit:on,motionDurationSlow:cn,zIndexTableFixed:dn,tableBg:Dn,zIndexTableSticky:Jn}=ve,Ue=on;return{[`${Ee}-wrapper`]:{[`
|
|
|
${Ee}-cell-fix-left,
|
|
|
${Ee}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:dn,background:Dn},[`
|
|
|
${Ee}-cell-fix-left-first::after,
|
|
|
${Ee}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Ye,width:30,transform:"translateX(100%)",transition:`box-shadow ${cn}`,content:'""',pointerEvents:"none"},[`${Ee}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${Ee}-cell-fix-right-first::after,
|
|
|
${Ee}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-Ye,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${cn}`,content:'""',pointerEvents:"none"},[`${Ee}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Jn+1,width:30,transition:`box-shadow ${cn}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Ee}-ping-left`]:{[`&:not(${Ee}-has-fix-left) ${Ee}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Ue}`}},[`
|
|
|
${Ee}-cell-fix-left-first::after,
|
|
|
${Ee}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${Ue}`},[`${Ee}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Ee}-ping-right`]:{[`&:not(${Ee}-has-fix-right) ${Ee}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Ue}`}},[`
|
|
|
${Ee}-cell-fix-right-first::after,
|
|
|
${Ee}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${Ue}`}}}}},le=ve=>{const{componentCls:Ee,antCls:Ye}=ve;return{[`${Ee}-wrapper`]:{[`${Ee}-pagination${Ye}-pagination`]:{margin:`${ve.margin}px 0`},[`${Ee}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:ve.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},ye=ve=>{const{componentCls:Ee,tableRadius:Ye}=ve;return{[`${Ee}-wrapper`]:{[Ee]:{[`${Ee}-title, ${Ee}-header`]:{borderRadius:`${Ye}px ${Ye}px 0 0`},[`${Ee}-title + ${Ee}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Ee}-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:Ye,borderStartEndRadius:Ye,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Ye},"> *:last-child":{borderStartEndRadius:Ye}}},"&-footer":{borderRadius:`0 0 ${Ye}px ${Ye}px`}}}}},Ie=ve=>{const{componentCls:Ee}=ve;return{[`${Ee}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Ee}-pagination-left`]:{justifyContent:"flex-end"},[`${Ee}-pagination-right`]:{justifyContent:"flex-start"},[`${Ee}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Ee}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Ee}-row-indent`]:{float:"right"}}}}},mn=ve=>{const{componentCls:Ee,antCls:Ye,iconCls:on,fontSizeIcon:cn,padding:dn,paddingXS:Dn,tableHeaderIconColor:Jn,tableHeaderIconColorHover:Ue,tableSelectionColumnWidth:hn}=ve;return{[`${Ee}-wrapper`]:{[`${Ee}-selection-col`]:{width:hn,[`&${Ee}-selection-col-with-dropdown`]:{width:hn+cn+dn/4}},[`${Ee}-bordered ${Ee}-selection-col`]:{width:hn+Dn*2,[`&${Ee}-selection-col-with-dropdown`]:{width:hn+cn+dn/4+Dn*2}},[`
|
|
|
table tr th${Ee}-selection-column,
|
|
|
table tr td${Ee}-selection-column
|
|
|
`]:{paddingInlineEnd:ve.paddingXS,paddingInlineStart:ve.paddingXS,textAlign:"center",[`${Ye}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Ee}-selection-column${Ee}-cell-fix-left`]:{zIndex:ve.zIndexTableFixed+1},[`table tr th${Ee}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Ee}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Ee}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${ve.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${ve.tablePaddingHorizontal/4}px`,[on]:{color:Jn,fontSize:cn,verticalAlign:"baseline","&:hover":{color:Ue}}}}}},Tn=ve=>{const{componentCls:Ee}=ve,Ye=(on,cn,dn,Dn)=>({[`${Ee}${Ee}-${on}`]:{fontSize:Dn,[`
|
|
|
${Ee}-title,
|
|
|
${Ee}-footer,
|
|
|
${Ee}-cell,
|
|
|
${Ee}-thead > tr > th,
|
|
|
${Ee}-tbody > tr > th,
|
|
|
${Ee}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${cn}px ${dn}px`},[`${Ee}-filter-trigger`]:{marginInlineEnd:`-${dn/2}px`},[`${Ee}-expanded-row-fixed`]:{margin:`-${cn}px -${dn}px`},[`${Ee}-tbody`]:{[`${Ee}-wrapper:only-child ${Ee}`]:{marginBlock:`-${cn}px`,marginInline:`${ve.tableExpandColumnWidth-dn}px -${dn}px`}},[`${Ee}-selection-column`]:{paddingInlineStart:`${dn/4}px`}}});return{[`${Ee}-wrapper`]:Object.assign(Object.assign({},Ye("middle",ve.tablePaddingVerticalMiddle,ve.tablePaddingHorizontalMiddle,ve.tableFontSizeMiddle)),Ye("small",ve.tablePaddingVerticalSmall,ve.tablePaddingHorizontalSmall,ve.tableFontSizeSmall))}},di=ve=>{const{componentCls:Ee,marginXXS:Ye,fontSizeIcon:on,tableHeaderIconColor:cn,tableHeaderIconColorHover:dn}=ve;return{[`${Ee}-wrapper`]:{[`${Ee}-thead th${Ee}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${ve.motionDurationSlow}`,"&:hover":{background:ve.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:ve.colorPrimary},[`
|
|
|
&${Ee}-cell-fix-left:hover,
|
|
|
&${Ee}-cell-fix-right:hover
|
|
|
`]:{background:ve.tableFixedHeaderSortActiveBg}},[`${Ee}-thead th${Ee}-column-sort`]:{background:ve.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Ee}-column-sort`]:{background:ve.tableBodySortBg},[`${Ee}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${Ee}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Ee}-column-sorter`]:{marginInlineStart:Ye,color:cn,fontSize:0,transition:`color ${ve.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:on,"&.active":{color:ve.colorPrimary}},[`${Ee}-column-sorter-up + ${Ee}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Ee}-column-sorters:hover ${Ee}-column-sorter`]:{color:dn}}}},pi=ve=>{const{componentCls:Ee,opacityLoading:Ye,tableScrollThumbBg:on,tableScrollThumbBgHover:cn,tableScrollThumbSize:dn,tableScrollBg:Dn,zIndexTableSticky:Jn,stickyScrollBarBorderRadius:Ue}=ve,hn=`${ve.lineWidth}px ${ve.lineType} ${ve.tableBorderColor}`;return{[`${Ee}-wrapper`]:{[`${Ee}-sticky`]:{"&-holder":{position:"sticky",zIndex:Jn,background:ve.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${dn}px !important`,zIndex:Jn,display:"flex",alignItems:"center",background:Dn,borderTop:hn,opacity:Ye,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:dn,backgroundColor:on,borderRadius:Ue,transition:`all ${ve.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:cn}}}}}}},gi=ve=>{const{componentCls:Ee,lineWidth:Ye,tableBorderColor:on}=ve,cn=`${Ye}px ${ve.lineType} ${on}`;return{[`${Ee}-wrapper`]:{[`${Ee}-summary`]:{position:"relative",zIndex:ve.zIndexTableFixed,background:ve.tableBg,"> tr":{"> th, > td":{borderBottom:cn}}},[`div${Ee}-summary`]:{boxShadow:`0 -${Ye}px 0 ${on}`}}}},ur=ve=>{const{componentCls:Ee}=ve,Ye=`${ve.lineWidth}px ${ve.lineType} ${ve.tableBorderColor}`,on=`${Ee}-expanded-row-cell`;return{[`${Ee}-wrapper`]:{[`${Ee}-tbody-virtual`]:{[`${Ee}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${Ee}-cell`]:{borderBottom:Ye},[`${Ee}-expanded-row`]:{[`${on}${on}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${ve.lineWidth}px)`,borderInlineEnd:"none"}}},[`${Ee}-bordered`]:{[`${Ee}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Ye,position:"absolute"},[`${Ee}-cell`]:{borderInlineEnd:Ye,[`&${Ee}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-ve.lineWidth,borderInlineStart:Ye}}}}}}};const Ir=ve=>{const{componentCls:Ee,fontWeightStrong:Ye,tablePaddingVertical:on,tablePaddingHorizontal:cn,lineWidth:dn,lineType:Dn,tableBorderColor:Jn,tableFontSize:Ue,tableBg:hn,tableRadius:yn,tableHeaderTextColor:Mn,motionDurationMid:Zn,tableHeaderBg:li,tableHeaderCellSplitColor:oi,tableRowHoverBg:Fi,tableSelectedRowBg:ki,tableSelectedRowHoverBg:Xi,tableFooterTextColor:ar,tableFooterBg:gr,paddingContentVerticalLG:qr}=ve,qi=`${dn}px ${Dn} ${Jn}`;return{[`${Ee}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,bl.dF)()),{[Ee]:Object.assign(Object.assign({},(0,bl.Wf)(ve)),{fontSize:Ue,background:hn,borderRadius:`${yn}px ${yn}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${yn}px ${yn}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${Ee}-cell,
|
|
|
${Ee}-thead > tr > th,
|
|
|
${Ee}-tbody > tr > th,
|
|
|
${Ee}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${qr}px ${cn}px`,overflowWrap:"break-word"},[`${Ee}-title`]:{padding:`${on}px ${cn}px`},[`${Ee}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:Mn,fontWeight:Ye,textAlign:"start",background:li,borderBottom:qi,transition:`background ${Zn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Ee}-selection-column):not(${Ee}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:oi,transform:"translateY(-50%)",transition:`background-color ${Zn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Ee}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Zn}, border-color ${Zn}`,borderBottom:qi,[`
|
|
|
> ${Ee}-wrapper:only-child,
|
|
|
> ${Ee}-expanded-row-fixed > ${Ee}-wrapper:only-child
|
|
|
`]:{[Ee]:{marginBlock:`-${on}px`,marginInline:`${ve.tableExpandColumnWidth-cn}px -${cn}px`,[`${Ee}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Mn,fontWeight:Ye,textAlign:"start",background:li,borderBottom:qi,transition:`background ${Zn} ease`},[`
|
|
|
&${Ee}-row:hover > th,
|
|
|
&${Ee}-row:hover > td,
|
|
|
> th${Ee}-cell-row-hover,
|
|
|
> td${Ee}-cell-row-hover
|
|
|
`]:{background:Fi},[`&${Ee}-row-selected`]:{"> th, > td":{background:ki},"&:hover > th, &:hover > td":{background:Xi}}}},[`${Ee}-footer`]:{padding:`${on}px ${cn}px`,color:ar,background:gr}})}};var io=(0,sa.Z)("Table",ve=>{const{colorTextHeading:Ee,colorSplit:Ye,colorIcon:on,colorIconHover:cn,opacityLoading:dn,colorBgContainer:Dn,controlInteractiveSize:Jn,headerBg:Ue,headerColor:hn,headerSortActiveBg:yn,headerSortHoverBg:Mn,bodySortBg:Zn,rowHoverBg:li,rowSelectedBg:oi,rowSelectedHoverBg:Fi,rowExpandedBg:ki,cellPaddingBlock:Xi,cellPaddingInline:ar,cellPaddingBlockMD:gr,cellPaddingInlineMD:qr,cellPaddingBlockSM:qi,cellPaddingInlineSM:Qn,borderColor:so,footerBg:uo,footerColor:rr,headerBorderRadius:wr,cellFontSize:mr,cellFontSizeMD:ir,cellFontSizeSM:Or,headerSplitColor:ho,fixedHeaderSortActiveBg:So,headerFilterHoverBg:Fo,filterDropdownBg:Gr,expandIconBg:Vo,selectionColumnWidth:No,stickyScrollBarBg:hs}=ve,co=new Ku.C(on),Pa=new Ku.C(cn),Os=2,Ps=(0,pu.TS)(ve,{tableFontSize:mr,tableBg:Dn,tableRadius:wr,tablePaddingVertical:Xi,tablePaddingHorizontal:ar,tablePaddingVerticalMiddle:gr,tablePaddingHorizontalMiddle:qr,tablePaddingVerticalSmall:qi,tablePaddingHorizontalSmall:Qn,tableBorderColor:so,tableHeaderTextColor:hn,tableHeaderBg:Ue,tableFooterTextColor:rr,tableFooterBg:uo,tableHeaderCellSplitColor:ho,tableHeaderSortBg:yn,tableHeaderSortHoverBg:Mn,tableHeaderIconColor:co.clone().setAlpha(co.getAlpha()*dn).toRgbString(),tableHeaderIconColorHover:Pa.clone().setAlpha(Pa.getAlpha()*dn).toRgbString(),tableBodySortBg:Zn,tableFixedHeaderSortActiveBg:So,tableHeaderFilterActiveBg:Fo,tableFilterDropdownBg:Gr,tableRowHoverBg:li,tableSelectedRowBg:oi,tableSelectedRowHoverBg:Fi,zIndexTableFixed:Os,zIndexTableSticky:Os+1,tableFontSizeMiddle:ir,tableFontSizeSmall:Or,tableSelectionColumnWidth:No,tableExpandIconBg:Vo,tableExpandColumnWidth:Jn+2*ve.padding,tableExpandedRowBg:ki,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:hs,tableScrollThumbBgHover:Ee,tableScrollBg:Ye});return[Ir(Ps),le(Ps),gi(Ps),di(Ps),Pt(Ps),xl(Ps),ye(Ps),vl(Ps),gi(Ps),Da(Ps),mn(Ps),Et(Ps),pi(Ps),Su(Ps),Tn(Ps),Ie(Ps),ur(Ps)]},ve=>{const{colorFillAlter:Ee,colorBgContainer:Ye,colorTextHeading:on,colorFillSecondary:cn,colorFillContent:dn,controlItemBgActive:Dn,controlItemBgActiveHover:Jn,padding:Ue,paddingSM:hn,paddingXS:yn,colorBorderSecondary:Mn,borderRadiusLG:Zn,fontSize:li,controlHeight:oi,colorTextPlaceholder:Fi}=ve,ki=new Ku.C(cn).onBackground(Ye).toHexShortString(),Xi=new Ku.C(dn).onBackground(Ye).toHexShortString(),ar=new Ku.C(Ee).onBackground(Ye).toHexShortString();return{headerBg:ar,headerColor:on,headerSortActiveBg:ki,headerSortHoverBg:Xi,bodySortBg:ar,rowHoverBg:ar,rowSelectedBg:Dn,rowSelectedHoverBg:Jn,rowExpandedBg:Ee,cellPaddingBlock:Ue,cellPaddingInline:Ue,cellPaddingBlockMD:hn,cellPaddingInlineMD:yn,cellPaddingBlockSM:yn,cellPaddingInlineSM:yn,borderColor:Mn,headerBorderRadius:Zn,footerBg:ar,footerColor:on,cellFontSize:li,cellFontSizeMD:li,cellFontSizeSM:li,headerSplitColor:Mn,fixedHeaderSortActiveBg:ki,headerFilterHoverBg:dn,filterDropdownMenuBg:Ye,filterDropdownBg:Ye,expandIconBg:Ye,selectionColumnWidth:oi,stickyScrollBarBg:Fi,stickyScrollBarBorderRadius:100}});const vr=[],Ti=(ve,Ee)=>{const{prefixCls:Ye,className:on,rootClassName:cn,style:dn,size:Dn,bordered:Jn,dropdownPrefixCls:Ue,dataSource:hn,pagination:yn,rowSelection:Mn,rowKey:Zn="key",rowClassName:li,columns:oi,children:Fi,childrenColumnName:ki,onChange:Xi,getPopupContainer:ar,loading:gr,expandIcon:qr,expandable:qi,expandedRowRender:Qn,expandIconColumnIndex:so,indentSize:uo,scroll:rr,sortDirections:wr,locale:mr,showSorterTooltip:ir=!0,virtual:Or}=ve,ho=Lt.useMemo(()=>oi||hi(Fi),[oi,Fi]),So=Lt.useMemo(()=>ho.some(ka=>ka.responsive),[ho]),Fo=(0,Ki.Z)(So),Gr=Lt.useMemo(()=>{const ka=new Set(Object.keys(Fo).filter(ra=>Fo[ra]));return ho.filter(ra=>!ra.responsive||ra.responsive.some(uu=>ka.has(uu)))},[ho,Fo]),Vo=(0,Lo.Z)(ve,["className","style","columns"]),{locale:No=Eo.Z,direction:hs,table:co,renderEmpty:Pa,getPrefixCls:Os,getPopupContainer:Ps}=Lt.useContext(Fa.E_),ko=(0,vo.Z)(Dn),Fs=Object.assign(Object.assign({},No.Table),mr),$a=hn||vr,js=Os("table",Ye),jl=Os("dropdown",Ue),Po=Object.assign({childrenColumnName:ki,expandIconColumnIndex:so},qi),{childrenColumnName:as="children"}=Po,ds=Lt.useMemo(()=>$a.some(ka=>ka==null?void 0:ka[as])?"nest":Qn||qi&&qi.expandedRowRender?"row":null,[$a]),Oo={body:Lt.useRef()},qo=Lt.useMemo(()=>typeof Zn=="function"?Zn:ka=>ka==null?void 0:ka[Zn],[Zn]),[bo]=al($a,as,qo),Ls={},_s=function(ka,ra){let uu=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var wl,ga,hu;const Ru=Object.assign(Object.assign({},Ls),ka);uu&&((wl=Ls.resetPagination)===null||wl===void 0||wl.call(Ls),!((ga=Ru.pagination)===null||ga===void 0)&&ga.current&&(Ru.pagination.current=1),yn&&yn.onChange&&yn.onChange(1,(hu=Ru.pagination)===null||hu===void 0?void 0:hu.pageSize)),rr&&rr.scrollToFirstRowOnChange!==!1&&Oo.body.current&&(0,os.Z)(0,{getContainer:()=>Oo.body.current}),Xi==null||Xi(Ru.pagination,Ru.filters,Ru.sorter,{currentDataSource:tu(fh($a,Ru.sorterStates,as),Ru.filterStates),action:ra})},ea=(ka,ra)=>{_s({sorter:ka,sorterStates:ra},"sort",!1)},[Yl,As,eu,fa]=_A({prefixCls:js,mergedColumns:Gr,onSorterChange:ea,sortDirections:wr||["ascend","descend"],tableLocale:Fs,showSorterTooltip:ir}),yl=Lt.useMemo(()=>fh($a,As,as),[$a,As]);Ls.sorter=fa(),Ls.sorterStates=As;const po=(ka,ra)=>{_s({filters:ka,filterStates:ra},"filter",!0)},[Ra,Nu,wa]=dc({prefixCls:js,locale:Fs,dropdownPrefixCls:jl,mergedColumns:Gr,onFilterChange:po,getPopupContainer:ar||Ps}),na=tu(yl,Nu);Ls.filters=wa,Ls.filterStates=Nu;const Na=Lt.useMemo(()=>{const ka={};return Object.keys(wa).forEach(ra=>{wa[ra]!==null&&(ka[ra]=wa[ra])}),Object.assign(Object.assign({},eu),{filters:ka})},[eu,wa]),[Xa]=il(Na),ul=(ka,ra)=>{_s({pagination:Object.assign(Object.assign({},Ls.pagination),{current:ka,pageSize:ra})},"paginate")},[Qs,Ia]=Ec(na.length,ul,yn);Ls.pagination=yn===!1?{}:Ga(Qs,yn),Ls.resetPagination=Ia;const Nl=Lt.useMemo(()=>{if(yn===!1||!Qs.pageSize)return na;const{current:ka=1,total:ra,pageSize:uu=dh}=Qs;return na.length<ra?na.length>uu?na.slice((ka-1)*uu,ka*uu):na:na.slice((ka-1)*uu,ka*uu)},[!!yn,na,Qs&&Qs.current,Qs&&Qs.pageSize,Qs&&Qs.total]),[Iu,mu]=rh({prefixCls:js,data:na,pageData:Nl,getRowKey:qo,getRecordByKey:bo,expandType:ds,childrenColumnName:as,locale:Fs,getPopupContainer:ar||Ps},Mn),ku=(ka,ra,uu)=>{let wl;return typeof li=="function"?wl=Yt()(li(ka,ra,uu)):wl=Yt()(li),Yt()({[`${js}-row-selected`]:mu.has(qo(ka,ra))},wl)};Po.__PARENT_RENDER_ICON__=Po.expandIcon,Po.expandIcon=Po.expandIcon||qr||Vs(Fs),ds==="nest"&&Po.expandIconColumnIndex===void 0?Po.expandIconColumnIndex=Mn?1:0:Po.expandIconColumnIndex>0&&Mn&&(Po.expandIconColumnIndex-=1),typeof Po.indentSize!="number"&&(Po.indentSize=typeof uo=="number"?uo:15);const Gu=Lt.useCallback(ka=>Xa(Iu(Ra(Yl(ka)))),[Yl,Ra,Iu]);let oh,sh;if(yn!==!1&&(Qs!=null&&Qs.total)){let ka;Qs.size?ka=Qs.size:ka=ko==="small"||ko==="middle"?"small":void 0;const ra=ga=>Lt.createElement(Es.Z,Object.assign({},Qs,{className:Yt()(`${js}-pagination ${js}-pagination-${ga}`,Qs.className),size:ka})),uu=hs==="rtl"?"left":"right",{position:wl}=Qs;if(wl!==null&&Array.isArray(wl)){const ga=wl.find(Tu=>Tu.includes("top")),hu=wl.find(Tu=>Tu.includes("bottom")),Ru=wl.every(Tu=>`${Tu}`=="none");!ga&&!hu&&!Ru&&(sh=ra(uu)),ga&&(oh=ra(ga.toLowerCase().replace("top",""))),hu&&(sh=ra(hu.toLowerCase().replace("bottom","")))}else sh=ra(uu)}let Va;typeof gr=="boolean"?Va={spinning:gr}:typeof gr=="object"&&(Va=Object.assign({spinning:!0},gr));const[Cu,Sl]=io(js),[,dl]=(0,ca.Z)(),ph=Yt()(`${js}-wrapper`,co==null?void 0:co.className,{[`${js}-wrapper-rtl`]:hs==="rtl"},on,cn,Sl),ec=Object.assign(Object.assign({},co==null?void 0:co.style),dn),bh=mr&&mr.emptyText||(Pa==null?void 0:Pa("Table"))||Lt.createElement(lo.Z,{componentName:"Table"}),Dh=Or?Xu:gs,fc={},Wu=Lt.useMemo(()=>{const{fontSize:ka,lineHeight:ra,padding:uu,paddingXS:wl,paddingSM:ga}=dl,hu=Math.floor(ka*ra);switch(ko){case"large":return uu*2+hu;case"small":return wl*2+hu;default:return ga*2+hu}},[dl,ko]);return Or&&(fc.listItemHeight=Wu),Cu(Lt.createElement("div",{ref:Ee,className:ph,style:ec},Lt.createElement(la.Z,Object.assign({spinning:!1},Va),oh,Lt.createElement(Dh,Object.assign({},fc,Vo,{columns:Gr,direction:hs,expandable:Po,prefixCls:js,className:Yt()({[`${js}-middle`]:ko==="middle",[`${js}-small`]:ko==="small",[`${js}-bordered`]:Jn,[`${js}-empty`]:$a.length===0}),data:Nl,rowKey:qo,rowClassName:ku,emptyText:bh,internalHooks:ge,internalRefs:Oo,transformColumns:Gu})),sh)))};var Br=Lt.forwardRef(Ti);const Vr=(ve,Ee)=>{const Ye=Lt.useRef(0);return Ye.current+=1,Lt.createElement(Br,Object.assign({},ve,{ref:Ee,_renderTimes:Ye.current}))},zn=Lt.forwardRef(Vr);zn.SELECTION_COLUMN=el,zn.EXPAND_COLUMN=bt,zn.SELECTION_ALL=ll,zn.SELECTION_INVERT=Wa,zn.SELECTION_NONE=Aa,zn.Column=yr,zn.ColumnGroup=Jo,zn.Summary=fe;var Xn=zn,Yi=Xn},17574:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{default:function(){return we}});var bt=Bt(54844),ge=Bt(80702),se=Bt(52671),Me=Bt(8657),ie=Bt(72308),ae=Bt(59301),Lt={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"},kt=Lt,Jt=Bt(7657),St=function(Pe,En){return ae.createElement(Jt.Z,(0,ie.Z)({},Pe,{ref:En,icon:kt}))},Wt=ae.forwardRef(St),Gt=Wt,qt=Bt(92310),wt=Bt.n(qt),et=Bt(35654),tt=Bt(71430),lt=Bt(36355),rt=Bt(56082),ut=Bt(62892),dt=Bt(20648);const pt=4;function Ft(oe){const{dropPosition:Pe,dropLevelOffset:En,prefixCls:Nn,indent:Xe,direction:kn="ltr"}=oe,Vn=kn==="ltr"?"left":"right",Ai=kn==="ltr"?"right":"left",Wn={[Vn]:-En*Xe+pt,[Ai]:0};switch(Pe){case-1:Wn.top=-3;break;case 1:Wn.bottom=-3;break;default:Wn.bottom=-3,Wn[Vn]=Xe+pt;break}return ae.createElement("div",{style:Wn,className:`${Nn}-drop-indicator`})}var Tt=Bt(71997),re=ae.forwardRef((oe,Pe)=>{const{getPrefixCls:En,direction:Nn,virtual:Xe,tree:kn}=ae.useContext(lt.E_),{prefixCls:Vn,className:Ai,showIcon:Wn=!1,showLine:Si,switcherIcon:an,blockNode:Li=!1,children:Oi,checkable:ue=!1,selectable:Pn=!0,draggable:de,motion:Dt,style:Mt}=oe,zt=En("tree",Vn),be=En(),De=Dt!=null?Dt:Object.assign(Object.assign({},(0,ut.Z)(be)),{motionAppear:!1}),fe=Object.assign(Object.assign({},oe),{checkable:ue,selectable:Pn,showIcon:Wn,motion:De,blockNode:Li,showLine:!!Si,dropIndicatorRender:Ft}),[Ce,te]=(0,dt.ZP)(zt),Ct=ae.useMemo(()=>{if(!de)return!1;let $t={};switch(typeof de){case"function":$t.nodeDraggable=de;break;case"object":$t=Object.assign({},de);break;default:break}return $t.icon!==!1&&($t.icon=$t.icon||ae.createElement(rt.Z,null)),$t},[de]),yt=$t=>ae.createElement(Tt.Z,{prefixCls:zt,switcherIcon:an,treeNodeProps:$t,showLine:Si});return Ce(ae.createElement(bt.Z,Object.assign({itemHeight:20,ref:Pe,virtual:Xe},fe,{style:Object.assign(Object.assign({},kn==null?void 0:kn.style),Mt),prefixCls:zt,className:wt()({[`${zt}-icon-hide`]:!Wn,[`${zt}-block-node`]:Li,[`${zt}-unselectable`]:!Pn,[`${zt}-rtl`]:Nn==="rtl"},kn==null?void 0:kn.className,Ai,te),direction:Nn,checkable:ue&&ae.createElement("span",{className:`${zt}-checkbox-inner`}),selectable:Pn,switcherIcon:yt,draggable:Ct}),Oi))}),he;(function(oe){oe[oe.None=0]="None",oe[oe.Start=1]="Start",oe[oe.End=2]="End"})(he||(he={}));function Ae(oe,Pe){function En(Nn){const{key:Xe,children:kn}=Nn;Pe(Xe,Nn)!==!1&&Ae(kn||[],Pe)}oe.forEach(En)}function Fe(oe){let{treeData:Pe,expandedKeys:En,startKey:Nn,endKey:Xe}=oe;const kn=[];let Vn=he.None;if(Nn&&Nn===Xe)return[Nn];if(!Nn||!Xe)return[];function Ai(Wn){return Wn===Nn||Wn===Xe}return Ae(Pe,Wn=>{if(Vn===he.End)return!1;if(Ai(Wn)){if(kn.push(Wn),Vn===he.None)Vn=he.Start;else if(Vn===he.Start)return Vn=he.End,!1}else Vn===he.Start&&kn.push(Wn);return En.includes(Wn)}),kn}function ee(oe,Pe){const En=(0,ge.Z)(Pe),Nn=[];return Ae(oe,(Xe,kn)=>{const Vn=En.indexOf(Xe);return Vn!==-1&&(Nn.push(kn),En.splice(Vn,1)),!!En.length}),Nn}var We=function(oe,Pe){var En={};for(var Nn in oe)Object.prototype.hasOwnProperty.call(oe,Nn)&&Pe.indexOf(Nn)<0&&(En[Nn]=oe[Nn]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,Nn=Object.getOwnPropertySymbols(oe);Xe<Nn.length;Xe++)Pe.indexOf(Nn[Xe])<0&&Object.prototype.propertyIsEnumerable.call(oe,Nn[Xe])&&(En[Nn[Xe]]=oe[Nn[Xe]]);return En};function Yt(oe){const{isLeaf:Pe,expanded:En}=oe;return Pe?ae.createElement(se.Z,null):En?ae.createElement(Me.Z,null):ae.createElement(Gt,null)}function qe(oe){let{treeData:Pe,children:En}=oe;return Pe||(0,tt.zn)(En)}const Ge=(oe,Pe)=>{var{defaultExpandAll:En,defaultExpandParent:Nn,defaultExpandedKeys:Xe}=oe,kn=We(oe,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Vn=ae.useRef(),Ai=ae.useRef(),Wn=()=>{const{keyEntities:Ct}=(0,tt.I8)(qe(kn));let yt;return En?yt=Object.keys(Ct):Nn?yt=(0,et.r7)(kn.expandedKeys||Xe||[],Ct):yt=kn.expandedKeys||Xe,yt},[Si,an]=ae.useState(kn.selectedKeys||kn.defaultSelectedKeys||[]),[Li,Oi]=ae.useState(()=>Wn());ae.useEffect(()=>{"selectedKeys"in kn&&an(kn.selectedKeys)},[kn.selectedKeys]),ae.useEffect(()=>{"expandedKeys"in kn&&Oi(kn.expandedKeys)},[kn.expandedKeys]);const ue=(Ct,yt)=>{var $t;return"expandedKeys"in kn||Oi(Ct),($t=kn.onExpand)===null||$t===void 0?void 0:$t.call(kn,Ct,yt)},Pn=(Ct,yt)=>{var $t;const{multiple:xe}=kn,{node:Rt,nativeEvent:je}=yt,{key:fn=""}=Rt,jn=qe(kn),bn=Object.assign(Object.assign({},yt),{selected:!0}),ci=(je==null?void 0:je.ctrlKey)||(je==null?void 0:je.metaKey),Ji=je==null?void 0:je.shiftKey;let zi;xe&&ci?(zi=Ct,Vn.current=fn,Ai.current=zi,bn.selectedNodes=ee(jn,zi)):xe&&Ji?(zi=Array.from(new Set([].concat((0,ge.Z)(Ai.current||[]),(0,ge.Z)(Fe({treeData:jn,expandedKeys:Li,startKey:fn,endKey:Vn.current}))))),bn.selectedNodes=ee(jn,zi)):(zi=[fn],Vn.current=fn,Ai.current=zi,bn.selectedNodes=ee(jn,zi)),($t=kn.onSelect)===null||$t===void 0||$t.call(kn,zi,bn),"selectedKeys"in kn||an(zi)},{getPrefixCls:de,direction:Dt}=ae.useContext(lt.E_),{prefixCls:Mt,className:zt,showIcon:be=!0,expandAction:De="click"}=kn,fe=We(kn,["prefixCls","className","showIcon","expandAction"]),Ce=de("tree",Mt),te=wt()(`${Ce}-directory`,{[`${Ce}-directory-rtl`]:Dt==="rtl"},zt);return ae.createElement(re,Object.assign({icon:Yt,ref:Pe,blockNode:!0},fe,{showIcon:be,expandAction:De,prefixCls:Ce,className:te,expandedKeys:Li,selectedKeys:Si,onSelect:Pn,onExpand:ue}))};var Ze=ae.forwardRef(Ge);const Qe=re;Qe.DirectoryTree=Ze,Qe.TreeNode=bt.O;var we=Qe},20648:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{TM:function(){return qt},Yk:function(){return Gt}});var bt=Bt(93083),ge=Bt(98447),se=Bt(17313),Me=Bt(8378),ie=Bt(37613),ae=Bt(83116);const Lt=new bt.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),kt=(wt,et)=>({[`.${wt}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${et.motionDurationSlow}`}}}),Jt=(wt,et)=>({[`.${wt}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:et.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${et.lineWidthBold}px solid ${et.colorPrimary}`,borderRadius:"50%",content:'""'}}}),St=(wt,et)=>{const{treeCls:tt,treeNodeCls:lt,treeNodePadding:rt,titleHeight:ut,nodeSelectedBg:dt,nodeHoverBg:pt}=et,Ft=et.paddingXS;return{[tt]:Object.assign(Object.assign({},(0,se.Wf)(et)),{background:et.colorBgContainer,borderRadius:et.borderRadius,transition:`background-color ${et.motionDurationSlow}`,[`&${tt}-rtl`]:{[`${tt}-switcher`]:{"&_close":{[`${tt}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${tt}-active-focused)`]:Object.assign({},(0,se.oN)(et)),[`${tt}-list-holder-inner`]:{alignItems:"flex-start"},[`&${tt}-block-node`]:{[`${tt}-list-holder-inner`]:{alignItems:"stretch",[`${tt}-node-content-wrapper`]:{flex:"auto"},[`${lt}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:rt,insetInlineStart:0,border:`1px solid ${et.colorPrimary}`,opacity:0,animationName:Lt,animationDuration:et.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${lt}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${rt}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${tt}-node-content-wrapper`]:{color:et.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${tt}-node-content-wrapper`]:Object.assign({},(0,se.oN)(et)),[`&:not(${lt}-disabled).filter-node ${tt}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${tt}-draggable-icon`]:{flexShrink:0,width:ut,lineHeight:`${ut}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${et.motionDurationSlow}`,[`${lt}:hover &`]:{opacity:.45}},[`&${lt}-disabled`]:{[`${tt}-draggable-icon`]:{visibility:"hidden"}}}},[`${tt}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:ut}},[`${tt}-draggable-icon`]:{visibility:"hidden"},[`${tt}-switcher`]:Object.assign(Object.assign({},kt(wt,et)),{position:"relative",flex:"none",alignSelf:"stretch",width:ut,margin:0,lineHeight:`${ut}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${tt}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:et.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ut/2,bottom:-rt,marginInlineStart:-1,borderInlineEnd:`1px solid ${et.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:ut/2*.8,height:ut/2,borderBottom:`1px solid ${et.colorBorder}`,content:'""'}}}),[`${tt}-checkbox`]:{top:"initial",marginInlineEnd:Ft},[`${tt}-node-content-wrapper, ${tt}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:ut,margin:0,padding:`0 ${et.paddingXS/2}px`,color:"inherit",lineHeight:`${ut}px`,background:"transparent",borderRadius:et.borderRadius,cursor:"pointer",transition:`all ${et.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:pt},[`&${tt}-node-selected`]:{backgroundColor:dt},[`${tt}-iconEle`]:{display:"inline-block",width:ut,height:ut,lineHeight:`${ut}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${tt}-unselectable ${tt}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${tt}-node-content-wrapper`]:Object.assign({lineHeight:`${ut}px`,userSelect:"none"},Jt(wt,et)),[`${lt}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${et.colorPrimary}`}},"&-show-line":{[`${tt}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ut/2,bottom:-rt,borderInlineEnd:`1px solid ${et.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${tt}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${lt}-leaf-last`]:{[`${tt}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${ut/2}px !important`}}}}})}},Wt=wt=>{const{treeCls:et,treeNodeCls:tt,treeNodePadding:lt,directoryNodeSelectedBg:rt,directoryNodeSelectedColor:ut}=wt;return{[`${et}${et}-directory`]:{[tt]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:lt,insetInlineStart:0,transition:`background-color ${wt.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:wt.controlItemBgHover}},"> *":{zIndex:1},[`${et}-switcher`]:{transition:`color ${wt.motionDurationMid}`},[`${et}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${et}-node-selected`]:{color:ut,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:rt},[`${et}-switcher`]:{color:ut},[`${et}-node-content-wrapper`]:{color:ut,background:"transparent"}}}}}},Gt=(wt,et)=>{const tt=`.${wt}`,lt=`${tt}-treenode`,rt=et.paddingXS/2,ut=(0,ie.TS)(et,{treeCls:tt,treeNodeCls:lt,treeNodePadding:rt});return[St(wt,ut),Wt(ut)]},qt=wt=>{const{controlHeightSM:et}=wt;return{titleHeight:et,nodeHoverBg:wt.controlItemBgHover,nodeSelectedBg:wt.controlItemBgActive}};Cn.ZP=(0,ae.Z)("Tree",(wt,et)=>{let{prefixCls:tt}=et;return[{[wt.componentCls]:(0,ge.C2)(`${tt}-checkbox`,wt)},Gt(tt,wt),(0,Me.Z)(wt)]},wt=>{const{colorTextLightSolid:et,colorPrimary:tt}=wt;return Object.assign(Object.assign({},qt(wt)),{directoryNodeSelectedColor:et,directoryNodeSelectedBg:tt})})},71997:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return lt}});var bt=Bt(72308),ge=Bt(59301),se={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"},Me=se,ie=Bt(7657),ae=function(ut,dt){return ge.createElement(ie.Z,(0,bt.Z)({},ut,{ref:dt,icon:Me}))},Lt=ge.forwardRef(ae),kt=Lt,Jt=Bt(52671),St=Bt(58617),Wt=Bt(15075),Gt=Bt(43531),qt=Bt(92310),wt=Bt.n(qt),et=Bt(92343),lt=rt=>{const{prefixCls:ut,switcherIcon:dt,treeNodeProps:pt,showLine:Ft}=rt,{isLeaf:Tt,expanded:_t,loading:re}=pt;if(re)return ge.createElement(St.Z,{className:`${ut}-switcher-loading-icon`});let he;if(Ft&&typeof Ft=="object"&&(he=Ft.showLeafIcon),Tt){if(!Ft)return null;if(typeof he!="boolean"&&he){const ee=typeof he=="function"?he(pt):he,We=`${ut}-switcher-line-custom-icon`;return(0,et.l$)(ee)?(0,et.Tm)(ee,{className:wt()(ee.props.className||"",We)}):ee}return he?ge.createElement(Jt.Z,{className:`${ut}-switcher-line-icon`}):ge.createElement("span",{className:`${ut}-switcher-leaf-line`})}const Ae=`${ut}-switcher-icon`,Fe=typeof dt=="function"?dt(pt):dt;return(0,et.l$)(Fe)?(0,et.Tm)(Fe,{className:wt()(Fe.props.className||"",Ae)}):Fe!==void 0?Fe:Ft?_t?ge.createElement(Wt.Z,{className:`${ut}-switcher-line-icon`}):ge.createElement(Gt.Z,{className:`${ut}-switcher-line-icon`}):ge.createElement(kt,{className:Ae})}},86251:function(ui,Cn){"use strict";Cn.byteLength=Lt,Cn.toByteArray=Jt,Cn.fromByteArray=Gt;for(var Bt=[],bt=[],ge=typeof Uint8Array!="undefined"?Uint8Array:Array,se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Me=0,ie=se.length;Me<ie;++Me)Bt[Me]=se[Me],bt[se.charCodeAt(Me)]=Me;bt[45]=62,bt[95]=63;function ae(qt){var wt=qt.length;if(wt%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var et=qt.indexOf("=");et===-1&&(et=wt);var tt=et===wt?0:4-et%4;return[et,tt]}function Lt(qt){var wt=ae(qt),et=wt[0],tt=wt[1];return(et+tt)*3/4-tt}function kt(qt,wt,et){return(wt+et)*3/4-et}function Jt(qt){var wt,et=ae(qt),tt=et[0],lt=et[1],rt=new ge(kt(qt,tt,lt)),ut=0,dt=lt>0?tt-4:tt,pt;for(pt=0;pt<dt;pt+=4)wt=bt[qt.charCodeAt(pt)]<<18|bt[qt.charCodeAt(pt+1)]<<12|bt[qt.charCodeAt(pt+2)]<<6|bt[qt.charCodeAt(pt+3)],rt[ut++]=wt>>16&255,rt[ut++]=wt>>8&255,rt[ut++]=wt&255;return lt===2&&(wt=bt[qt.charCodeAt(pt)]<<2|bt[qt.charCodeAt(pt+1)]>>4,rt[ut++]=wt&255),lt===1&&(wt=bt[qt.charCodeAt(pt)]<<10|bt[qt.charCodeAt(pt+1)]<<4|bt[qt.charCodeAt(pt+2)]>>2,rt[ut++]=wt>>8&255,rt[ut++]=wt&255),rt}function St(qt){return Bt[qt>>18&63]+Bt[qt>>12&63]+Bt[qt>>6&63]+Bt[qt&63]}function Wt(qt,wt,et){for(var tt,lt=[],rt=wt;rt<et;rt+=3)tt=(qt[rt]<<16&16711680)+(qt[rt+1]<<8&65280)+(qt[rt+2]&255),lt.push(St(tt));return lt.join("")}function Gt(qt){for(var wt,et=qt.length,tt=et%3,lt=[],rt=16383,ut=0,dt=et-tt;ut<dt;ut+=rt)lt.push(Wt(qt,ut,ut+rt>dt?dt:ut+rt));return tt===1?(wt=qt[et-1],lt.push(Bt[wt>>2]+Bt[wt<<4&63]+"==")):tt===2&&(wt=(qt[et-2]<<8)+qt[et-1],lt.push(Bt[wt>>10]+Bt[wt>>4&63]+Bt[wt<<2&63]+"=")),lt.join("")}},19208:function(ui,Cn,Bt){"use strict";var bt;var ge=Bt(86251),se=Bt(67467),Me=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Cn.lW=kt,bt=ut,Cn.h2=50;var ie=2147483647;bt=ie,kt.TYPED_ARRAY_SUPPORT=ae(),!kt.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 ae(){try{var de=new Uint8Array(1),Dt={foo:function(){return 42}};return Object.setPrototypeOf(Dt,Uint8Array.prototype),Object.setPrototypeOf(de,Dt),de.foo()===42}catch(Mt){return!1}}Object.defineProperty(kt.prototype,"parent",{enumerable:!0,get:function(){if(kt.isBuffer(this))return this.buffer}}),Object.defineProperty(kt.prototype,"offset",{enumerable:!0,get:function(){if(kt.isBuffer(this))return this.byteOffset}});function Lt(de){if(de>ie)throw new RangeError('The value "'+de+'" is invalid for option "size"');var Dt=new Uint8Array(de);return Object.setPrototypeOf(Dt,kt.prototype),Dt}function kt(de,Dt,Mt){if(typeof de=="number"){if(typeof Dt=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Gt(de)}return Jt(de,Dt,Mt)}kt.poolSize=8192;function Jt(de,Dt,Mt){if(typeof de=="string")return qt(de,Dt);if(ArrayBuffer.isView(de))return et(de);if(de==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof de);if(Oi(de,ArrayBuffer)||de&&Oi(de.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Oi(de,SharedArrayBuffer)||de&&Oi(de.buffer,SharedArrayBuffer)))return tt(de,Dt,Mt);if(typeof de=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var zt=de.valueOf&&de.valueOf();if(zt!=null&&zt!==de)return kt.from(zt,Dt,Mt);var be=lt(de);if(be)return be;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof de[Symbol.toPrimitive]=="function")return kt.from(de[Symbol.toPrimitive]("string"),Dt,Mt);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof de)}kt.from=function(de,Dt,Mt){return Jt(de,Dt,Mt)},Object.setPrototypeOf(kt.prototype,Uint8Array.prototype),Object.setPrototypeOf(kt,Uint8Array);function St(de){if(typeof de!="number")throw new TypeError('"size" argument must be of type number');if(de<0)throw new RangeError('The value "'+de+'" is invalid for option "size"')}function Wt(de,Dt,Mt){return St(de),de<=0?Lt(de):Dt!==void 0?typeof Mt=="string"?Lt(de).fill(Dt,Mt):Lt(de).fill(Dt):Lt(de)}kt.alloc=function(de,Dt,Mt){return Wt(de,Dt,Mt)};function Gt(de){return St(de),Lt(de<0?0:rt(de)|0)}kt.allocUnsafe=function(de){return Gt(de)},kt.allocUnsafeSlow=function(de){return Gt(de)};function qt(de,Dt){if((typeof Dt!="string"||Dt==="")&&(Dt="utf8"),!kt.isEncoding(Dt))throw new TypeError("Unknown encoding: "+Dt);var Mt=dt(de,Dt)|0,zt=Lt(Mt),be=zt.write(de,Dt);return be!==Mt&&(zt=zt.slice(0,be)),zt}function wt(de){for(var Dt=de.length<0?0:rt(de.length)|0,Mt=Lt(Dt),zt=0;zt<Dt;zt+=1)Mt[zt]=de[zt]&255;return Mt}function et(de){if(Oi(de,Uint8Array)){var Dt=new Uint8Array(de);return tt(Dt.buffer,Dt.byteOffset,Dt.byteLength)}return wt(de)}function tt(de,Dt,Mt){if(Dt<0||de.byteLength<Dt)throw new RangeError('"offset" is outside of buffer bounds');if(de.byteLength<Dt+(Mt||0))throw new RangeError('"length" is outside of buffer bounds');var zt;return Dt===void 0&&Mt===void 0?zt=new Uint8Array(de):Mt===void 0?zt=new Uint8Array(de,Dt):zt=new Uint8Array(de,Dt,Mt),Object.setPrototypeOf(zt,kt.prototype),zt}function lt(de){if(kt.isBuffer(de)){var Dt=rt(de.length)|0,Mt=Lt(Dt);return Mt.length===0||de.copy(Mt,0,0,Dt),Mt}if(de.length!==void 0)return typeof de.length!="number"||ue(de.length)?Lt(0):wt(de);if(de.type==="Buffer"&&Array.isArray(de.data))return wt(de.data)}function rt(de){if(de>=ie)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ie.toString(16)+" bytes");return de|0}function ut(de){return+de!=de&&(de=0),kt.alloc(+de)}kt.isBuffer=function(Dt){return Dt!=null&&Dt._isBuffer===!0&&Dt!==kt.prototype},kt.compare=function(Dt,Mt){if(Oi(Dt,Uint8Array)&&(Dt=kt.from(Dt,Dt.offset,Dt.byteLength)),Oi(Mt,Uint8Array)&&(Mt=kt.from(Mt,Mt.offset,Mt.byteLength)),!kt.isBuffer(Dt)||!kt.isBuffer(Mt))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Dt===Mt)return 0;for(var zt=Dt.length,be=Mt.length,De=0,fe=Math.min(zt,be);De<fe;++De)if(Dt[De]!==Mt[De]){zt=Dt[De],be=Mt[De];break}return zt<be?-1:be<zt?1:0},kt.isEncoding=function(Dt){switch(String(Dt).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}},kt.concat=function(Dt,Mt){if(!Array.isArray(Dt))throw new TypeError('"list" argument must be an Array of Buffers');if(Dt.length===0)return kt.alloc(0);var zt;if(Mt===void 0)for(Mt=0,zt=0;zt<Dt.length;++zt)Mt+=Dt[zt].length;var be=kt.allocUnsafe(Mt),De=0;for(zt=0;zt<Dt.length;++zt){var fe=Dt[zt];if(Oi(fe,Uint8Array))De+fe.length>be.length?kt.from(fe).copy(be,De):Uint8Array.prototype.set.call(be,fe,De);else if(kt.isBuffer(fe))fe.copy(be,De);else throw new TypeError('"list" argument must be an Array of Buffers');De+=fe.length}return be};function dt(de,Dt){if(kt.isBuffer(de))return de.length;if(ArrayBuffer.isView(de)||Oi(de,ArrayBuffer))return de.byteLength;if(typeof de!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof de);var Mt=de.length,zt=arguments.length>2&&arguments[2]===!0;if(!zt&&Mt===0)return 0;for(var be=!1;;)switch(Dt){case"ascii":case"latin1":case"binary":return Mt;case"utf8":case"utf-8":return Ai(de).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Mt*2;case"hex":return Mt>>>1;case"base64":return an(de).length;default:if(be)return zt?-1:Ai(de).length;Dt=(""+Dt).toLowerCase(),be=!0}}kt.byteLength=dt;function pt(de,Dt,Mt){var zt=!1;if((Dt===void 0||Dt<0)&&(Dt=0),Dt>this.length||((Mt===void 0||Mt>this.length)&&(Mt=this.length),Mt<=0)||(Mt>>>=0,Dt>>>=0,Mt<=Dt))return"";for(de||(de="utf8");;)switch(de){case"hex":return Qe(this,Dt,Mt);case"utf8":case"utf-8":return Yt(this,Dt,Mt);case"ascii":return Oe(this,Dt,Mt);case"latin1":case"binary":return Ze(this,Dt,Mt);case"base64":return We(this,Dt,Mt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return we(this,Dt,Mt);default:if(zt)throw new TypeError("Unknown encoding: "+de);de=(de+"").toLowerCase(),zt=!0}}kt.prototype._isBuffer=!0;function Ft(de,Dt,Mt){var zt=de[Dt];de[Dt]=de[Mt],de[Mt]=zt}kt.prototype.swap16=function(){var Dt=this.length;if(Dt%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Mt=0;Mt<Dt;Mt+=2)Ft(this,Mt,Mt+1);return this},kt.prototype.swap32=function(){var Dt=this.length;if(Dt%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Mt=0;Mt<Dt;Mt+=4)Ft(this,Mt,Mt+3),Ft(this,Mt+1,Mt+2);return this},kt.prototype.swap64=function(){var Dt=this.length;if(Dt%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Mt=0;Mt<Dt;Mt+=8)Ft(this,Mt,Mt+7),Ft(this,Mt+1,Mt+6),Ft(this,Mt+2,Mt+5),Ft(this,Mt+3,Mt+4);return this},kt.prototype.toString=function(){var Dt=this.length;return Dt===0?"":arguments.length===0?Yt(this,0,Dt):pt.apply(this,arguments)},kt.prototype.toLocaleString=kt.prototype.toString,kt.prototype.equals=function(Dt){if(!kt.isBuffer(Dt))throw new TypeError("Argument must be a Buffer");return this===Dt?!0:kt.compare(this,Dt)===0},kt.prototype.inspect=function(){var Dt="",Mt=Cn.h2;return Dt=this.toString("hex",0,Mt).replace(/(.{2})/g,"$1 ").trim(),this.length>Mt&&(Dt+=" ... "),"<Buffer "+Dt+">"},Me&&(kt.prototype[Me]=kt.prototype.inspect),kt.prototype.compare=function(Dt,Mt,zt,be,De){if(Oi(Dt,Uint8Array)&&(Dt=kt.from(Dt,Dt.offset,Dt.byteLength)),!kt.isBuffer(Dt))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Dt);if(Mt===void 0&&(Mt=0),zt===void 0&&(zt=Dt?Dt.length:0),be===void 0&&(be=0),De===void 0&&(De=this.length),Mt<0||zt>Dt.length||be<0||De>this.length)throw new RangeError("out of range index");if(be>=De&&Mt>=zt)return 0;if(be>=De)return-1;if(Mt>=zt)return 1;if(Mt>>>=0,zt>>>=0,be>>>=0,De>>>=0,this===Dt)return 0;for(var fe=De-be,Ce=zt-Mt,te=Math.min(fe,Ce),Ct=this.slice(be,De),yt=Dt.slice(Mt,zt),$t=0;$t<te;++$t)if(Ct[$t]!==yt[$t]){fe=Ct[$t],Ce=yt[$t];break}return fe<Ce?-1:Ce<fe?1:0};function Tt(de,Dt,Mt,zt,be){if(de.length===0)return-1;if(typeof Mt=="string"?(zt=Mt,Mt=0):Mt>2147483647?Mt=2147483647:Mt<-2147483648&&(Mt=-2147483648),Mt=+Mt,ue(Mt)&&(Mt=be?0:de.length-1),Mt<0&&(Mt=de.length+Mt),Mt>=de.length){if(be)return-1;Mt=de.length-1}else if(Mt<0)if(be)Mt=0;else return-1;if(typeof Dt=="string"&&(Dt=kt.from(Dt,zt)),kt.isBuffer(Dt))return Dt.length===0?-1:_t(de,Dt,Mt,zt,be);if(typeof Dt=="number")return Dt=Dt&255,typeof Uint8Array.prototype.indexOf=="function"?be?Uint8Array.prototype.indexOf.call(de,Dt,Mt):Uint8Array.prototype.lastIndexOf.call(de,Dt,Mt):_t(de,[Dt],Mt,zt,be);throw new TypeError("val must be string, number or Buffer")}function _t(de,Dt,Mt,zt,be){var De=1,fe=de.length,Ce=Dt.length;if(zt!==void 0&&(zt=String(zt).toLowerCase(),zt==="ucs2"||zt==="ucs-2"||zt==="utf16le"||zt==="utf-16le")){if(de.length<2||Dt.length<2)return-1;De=2,fe/=2,Ce/=2,Mt/=2}function te(Rt,je){return De===1?Rt[je]:Rt.readUInt16BE(je*De)}var Ct;if(be){var yt=-1;for(Ct=Mt;Ct<fe;Ct++)if(te(de,Ct)===te(Dt,yt===-1?0:Ct-yt)){if(yt===-1&&(yt=Ct),Ct-yt+1===Ce)return yt*De}else yt!==-1&&(Ct-=Ct-yt),yt=-1}else for(Mt+Ce>fe&&(Mt=fe-Ce),Ct=Mt;Ct>=0;Ct--){for(var $t=!0,xe=0;xe<Ce;xe++)if(te(de,Ct+xe)!==te(Dt,xe)){$t=!1;break}if($t)return Ct}return-1}kt.prototype.includes=function(Dt,Mt,zt){return this.indexOf(Dt,Mt,zt)!==-1},kt.prototype.indexOf=function(Dt,Mt,zt){return Tt(this,Dt,Mt,zt,!0)},kt.prototype.lastIndexOf=function(Dt,Mt,zt){return Tt(this,Dt,Mt,zt,!1)};function re(de,Dt,Mt,zt){Mt=Number(Mt)||0;var be=de.length-Mt;zt?(zt=Number(zt),zt>be&&(zt=be)):zt=be;var De=Dt.length;zt>De/2&&(zt=De/2);for(var fe=0;fe<zt;++fe){var Ce=parseInt(Dt.substr(fe*2,2),16);if(ue(Ce))return fe;de[Mt+fe]=Ce}return fe}function he(de,Dt,Mt,zt){return Li(Ai(Dt,de.length-Mt),de,Mt,zt)}function Ae(de,Dt,Mt,zt){return Li(Wn(Dt),de,Mt,zt)}function Fe(de,Dt,Mt,zt){return Li(an(Dt),de,Mt,zt)}function ee(de,Dt,Mt,zt){return Li(Si(Dt,de.length-Mt),de,Mt,zt)}kt.prototype.write=function(Dt,Mt,zt,be){if(Mt===void 0)be="utf8",zt=this.length,Mt=0;else if(zt===void 0&&typeof Mt=="string")be=Mt,zt=this.length,Mt=0;else if(isFinite(Mt))Mt=Mt>>>0,isFinite(zt)?(zt=zt>>>0,be===void 0&&(be="utf8")):(be=zt,zt=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var De=this.length-Mt;if((zt===void 0||zt>De)&&(zt=De),Dt.length>0&&(zt<0||Mt<0)||Mt>this.length)throw new RangeError("Attempt to write outside buffer bounds");be||(be="utf8");for(var fe=!1;;)switch(be){case"hex":return re(this,Dt,Mt,zt);case"utf8":case"utf-8":return he(this,Dt,Mt,zt);case"ascii":case"latin1":case"binary":return Ae(this,Dt,Mt,zt);case"base64":return Fe(this,Dt,Mt,zt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,Dt,Mt,zt);default:if(fe)throw new TypeError("Unknown encoding: "+be);be=(""+be).toLowerCase(),fe=!0}},kt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function We(de,Dt,Mt){return Dt===0&&Mt===de.length?ge.fromByteArray(de):ge.fromByteArray(de.slice(Dt,Mt))}function Yt(de,Dt,Mt){Mt=Math.min(de.length,Mt);for(var zt=[],be=Dt;be<Mt;){var De=de[be],fe=null,Ce=De>239?4:De>223?3:De>191?2:1;if(be+Ce<=Mt){var te,Ct,yt,$t;switch(Ce){case 1:De<128&&(fe=De);break;case 2:te=de[be+1],(te&192)===128&&($t=(De&31)<<6|te&63,$t>127&&(fe=$t));break;case 3:te=de[be+1],Ct=de[be+2],(te&192)===128&&(Ct&192)===128&&($t=(De&15)<<12|(te&63)<<6|Ct&63,$t>2047&&($t<55296||$t>57343)&&(fe=$t));break;case 4:te=de[be+1],Ct=de[be+2],yt=de[be+3],(te&192)===128&&(Ct&192)===128&&(yt&192)===128&&($t=(De&15)<<18|(te&63)<<12|(Ct&63)<<6|yt&63,$t>65535&&$t<1114112&&(fe=$t))}}fe===null?(fe=65533,Ce=1):fe>65535&&(fe-=65536,zt.push(fe>>>10&1023|55296),fe=56320|fe&1023),zt.push(fe),be+=Ce}return Ge(zt)}var qe=4096;function Ge(de){var Dt=de.length;if(Dt<=qe)return String.fromCharCode.apply(String,de);for(var Mt="",zt=0;zt<Dt;)Mt+=String.fromCharCode.apply(String,de.slice(zt,zt+=qe));return Mt}function Oe(de,Dt,Mt){var zt="";Mt=Math.min(de.length,Mt);for(var be=Dt;be<Mt;++be)zt+=String.fromCharCode(de[be]&127);return zt}function Ze(de,Dt,Mt){var zt="";Mt=Math.min(de.length,Mt);for(var be=Dt;be<Mt;++be)zt+=String.fromCharCode(de[be]);return zt}function Qe(de,Dt,Mt){var zt=de.length;(!Dt||Dt<0)&&(Dt=0),(!Mt||Mt<0||Mt>zt)&&(Mt=zt);for(var be="",De=Dt;De<Mt;++De)be+=Pn[de[De]];return be}function we(de,Dt,Mt){for(var zt=de.slice(Dt,Mt),be="",De=0;De<zt.length-1;De+=2)be+=String.fromCharCode(zt[De]+zt[De+1]*256);return be}kt.prototype.slice=function(Dt,Mt){var zt=this.length;Dt=~~Dt,Mt=Mt===void 0?zt:~~Mt,Dt<0?(Dt+=zt,Dt<0&&(Dt=0)):Dt>zt&&(Dt=zt),Mt<0?(Mt+=zt,Mt<0&&(Mt=0)):Mt>zt&&(Mt=zt),Mt<Dt&&(Mt=Dt);var be=this.subarray(Dt,Mt);return Object.setPrototypeOf(be,kt.prototype),be};function oe(de,Dt,Mt){if(de%1!==0||de<0)throw new RangeError("offset is not uint");if(de+Dt>Mt)throw new RangeError("Trying to access beyond buffer length")}kt.prototype.readUintLE=kt.prototype.readUIntLE=function(Dt,Mt,zt){Dt=Dt>>>0,Mt=Mt>>>0,zt||oe(Dt,Mt,this.length);for(var be=this[Dt],De=1,fe=0;++fe<Mt&&(De*=256);)be+=this[Dt+fe]*De;return be},kt.prototype.readUintBE=kt.prototype.readUIntBE=function(Dt,Mt,zt){Dt=Dt>>>0,Mt=Mt>>>0,zt||oe(Dt,Mt,this.length);for(var be=this[Dt+--Mt],De=1;Mt>0&&(De*=256);)be+=this[Dt+--Mt]*De;return be},kt.prototype.readUint8=kt.prototype.readUInt8=function(Dt,Mt){return Dt=Dt>>>0,Mt||oe(Dt,1,this.length),this[Dt]},kt.prototype.readUint16LE=kt.prototype.readUInt16LE=function(Dt,Mt){return Dt=Dt>>>0,Mt||oe(Dt,2,this.length),this[Dt]|this[Dt+1]<<8},kt.prototype.readUint16BE=kt.prototype.readUInt16BE=function(Dt,Mt){return Dt=Dt>>>0,Mt||oe(Dt,2,this.length),this[Dt]<<8|this[Dt+1]},kt.prototype.readUint32LE=kt.prototype.readUInt32LE=function(Dt,Mt){return Dt=Dt>>>0,Mt||oe(Dt,4,this.length),(this[Dt]|this[Dt+1]<<8|this[Dt+2]<<16)+this[Dt+3]*16777216},kt.prototype.readUint32BE=kt.prototype.readUInt32BE=function(Dt,Mt){return Dt=Dt>>>0,Mt||oe(Dt,4,this.length),this[Dt]*16777216+(this[Dt+1]<<16|this[Dt+2]<<8|this[Dt+3])},kt.prototype.readIntLE=function(Dt,Mt,zt){Dt=Dt>>>0,Mt=Mt>>>0,zt||oe(Dt,Mt,this.length);for(var be=this[Dt],De=1,fe=0;++fe<Mt&&(De*=256);)be+=this[Dt+fe]*De;return De*=128,be>=De&&(be-=Math.pow(2,8*Mt)),be},kt.prototype.readIntBE=function(Dt,Mt,zt){Dt=Dt>>>0,Mt=Mt>>>0,zt||oe(Dt,Mt,this.length);for(var be=Mt,De=1,fe=this[Dt+--be];be>0&&(De*=256);)fe+=this[Dt+--be]*De;return De*=128,fe>=De&&(fe-=Math.pow(2,8*Mt)),fe},kt.prototype.readInt8=function(Dt,Mt){return Dt=Dt>>>0,Mt||oe(Dt,1,this.length),this[Dt]&128?(255-this[Dt]+1)*-1:this[Dt]},kt.prototype.readInt16LE=function(Dt,Mt){Dt=Dt>>>0,Mt||oe(Dt,2,this.length);var zt=this[Dt]|this[Dt+1]<<8;return zt&32768?zt|4294901760:zt},kt.prototype.readInt16BE=function(Dt,Mt){Dt=Dt>>>0,Mt||oe(Dt,2,this.length);var zt=this[Dt+1]|this[Dt]<<8;return zt&32768?zt|4294901760:zt},kt.prototype.readInt32LE=function(Dt,Mt){return Dt=Dt>>>0,Mt||oe(Dt,4,this.length),this[Dt]|this[Dt+1]<<8|this[Dt+2]<<16|this[Dt+3]<<24},kt.prototype.readInt32BE=function(Dt,Mt){return Dt=Dt>>>0,Mt||oe(Dt,4,this.length),this[Dt]<<24|this[Dt+1]<<16|this[Dt+2]<<8|this[Dt+3]},kt.prototype.readFloatLE=function(Dt,Mt){return Dt=Dt>>>0,Mt||oe(Dt,4,this.length),se.read(this,Dt,!0,23,4)},kt.prototype.readFloatBE=function(Dt,Mt){return Dt=Dt>>>0,Mt||oe(Dt,4,this.length),se.read(this,Dt,!1,23,4)},kt.prototype.readDoubleLE=function(Dt,Mt){return Dt=Dt>>>0,Mt||oe(Dt,8,this.length),se.read(this,Dt,!0,52,8)},kt.prototype.readDoubleBE=function(Dt,Mt){return Dt=Dt>>>0,Mt||oe(Dt,8,this.length),se.read(this,Dt,!1,52,8)};function Pe(de,Dt,Mt,zt,be,De){if(!kt.isBuffer(de))throw new TypeError('"buffer" argument must be a Buffer instance');if(Dt>be||Dt<De)throw new RangeError('"value" argument is out of bounds');if(Mt+zt>de.length)throw new RangeError("Index out of range")}kt.prototype.writeUintLE=kt.prototype.writeUIntLE=function(Dt,Mt,zt,be){if(Dt=+Dt,Mt=Mt>>>0,zt=zt>>>0,!be){var De=Math.pow(2,8*zt)-1;Pe(this,Dt,Mt,zt,De,0)}var fe=1,Ce=0;for(this[Mt]=Dt&255;++Ce<zt&&(fe*=256);)this[Mt+Ce]=Dt/fe&255;return Mt+zt},kt.prototype.writeUintBE=kt.prototype.writeUIntBE=function(Dt,Mt,zt,be){if(Dt=+Dt,Mt=Mt>>>0,zt=zt>>>0,!be){var De=Math.pow(2,8*zt)-1;Pe(this,Dt,Mt,zt,De,0)}var fe=zt-1,Ce=1;for(this[Mt+fe]=Dt&255;--fe>=0&&(Ce*=256);)this[Mt+fe]=Dt/Ce&255;return Mt+zt},kt.prototype.writeUint8=kt.prototype.writeUInt8=function(Dt,Mt,zt){return Dt=+Dt,Mt=Mt>>>0,zt||Pe(this,Dt,Mt,1,255,0),this[Mt]=Dt&255,Mt+1},kt.prototype.writeUint16LE=kt.prototype.writeUInt16LE=function(Dt,Mt,zt){return Dt=+Dt,Mt=Mt>>>0,zt||Pe(this,Dt,Mt,2,65535,0),this[Mt]=Dt&255,this[Mt+1]=Dt>>>8,Mt+2},kt.prototype.writeUint16BE=kt.prototype.writeUInt16BE=function(Dt,Mt,zt){return Dt=+Dt,Mt=Mt>>>0,zt||Pe(this,Dt,Mt,2,65535,0),this[Mt]=Dt>>>8,this[Mt+1]=Dt&255,Mt+2},kt.prototype.writeUint32LE=kt.prototype.writeUInt32LE=function(Dt,Mt,zt){return Dt=+Dt,Mt=Mt>>>0,zt||Pe(this,Dt,Mt,4,4294967295,0),this[Mt+3]=Dt>>>24,this[Mt+2]=Dt>>>16,this[Mt+1]=Dt>>>8,this[Mt]=Dt&255,Mt+4},kt.prototype.writeUint32BE=kt.prototype.writeUInt32BE=function(Dt,Mt,zt){return Dt=+Dt,Mt=Mt>>>0,zt||Pe(this,Dt,Mt,4,4294967295,0),this[Mt]=Dt>>>24,this[Mt+1]=Dt>>>16,this[Mt+2]=Dt>>>8,this[Mt+3]=Dt&255,Mt+4},kt.prototype.writeIntLE=function(Dt,Mt,zt,be){if(Dt=+Dt,Mt=Mt>>>0,!be){var De=Math.pow(2,8*zt-1);Pe(this,Dt,Mt,zt,De-1,-De)}var fe=0,Ce=1,te=0;for(this[Mt]=Dt&255;++fe<zt&&(Ce*=256);)Dt<0&&te===0&&this[Mt+fe-1]!==0&&(te=1),this[Mt+fe]=(Dt/Ce>>0)-te&255;return Mt+zt},kt.prototype.writeIntBE=function(Dt,Mt,zt,be){if(Dt=+Dt,Mt=Mt>>>0,!be){var De=Math.pow(2,8*zt-1);Pe(this,Dt,Mt,zt,De-1,-De)}var fe=zt-1,Ce=1,te=0;for(this[Mt+fe]=Dt&255;--fe>=0&&(Ce*=256);)Dt<0&&te===0&&this[Mt+fe+1]!==0&&(te=1),this[Mt+fe]=(Dt/Ce>>0)-te&255;return Mt+zt},kt.prototype.writeInt8=function(Dt,Mt,zt){return Dt=+Dt,Mt=Mt>>>0,zt||Pe(this,Dt,Mt,1,127,-128),Dt<0&&(Dt=255+Dt+1),this[Mt]=Dt&255,Mt+1},kt.prototype.writeInt16LE=function(Dt,Mt,zt){return Dt=+Dt,Mt=Mt>>>0,zt||Pe(this,Dt,Mt,2,32767,-32768),this[Mt]=Dt&255,this[Mt+1]=Dt>>>8,Mt+2},kt.prototype.writeInt16BE=function(Dt,Mt,zt){return Dt=+Dt,Mt=Mt>>>0,zt||Pe(this,Dt,Mt,2,32767,-32768),this[Mt]=Dt>>>8,this[Mt+1]=Dt&255,Mt+2},kt.prototype.writeInt32LE=function(Dt,Mt,zt){return Dt=+Dt,Mt=Mt>>>0,zt||Pe(this,Dt,Mt,4,2147483647,-2147483648),this[Mt]=Dt&255,this[Mt+1]=Dt>>>8,this[Mt+2]=Dt>>>16,this[Mt+3]=Dt>>>24,Mt+4},kt.prototype.writeInt32BE=function(Dt,Mt,zt){return Dt=+Dt,Mt=Mt>>>0,zt||Pe(this,Dt,Mt,4,2147483647,-2147483648),Dt<0&&(Dt=4294967295+Dt+1),this[Mt]=Dt>>>24,this[Mt+1]=Dt>>>16,this[Mt+2]=Dt>>>8,this[Mt+3]=Dt&255,Mt+4};function En(de,Dt,Mt,zt,be,De){if(Mt+zt>de.length)throw new RangeError("Index out of range");if(Mt<0)throw new RangeError("Index out of range")}function Nn(de,Dt,Mt,zt,be){return Dt=+Dt,Mt=Mt>>>0,be||En(de,Dt,Mt,4,34028234663852886e22,-34028234663852886e22),se.write(de,Dt,Mt,zt,23,4),Mt+4}kt.prototype.writeFloatLE=function(Dt,Mt,zt){return Nn(this,Dt,Mt,!0,zt)},kt.prototype.writeFloatBE=function(Dt,Mt,zt){return Nn(this,Dt,Mt,!1,zt)};function Xe(de,Dt,Mt,zt,be){return Dt=+Dt,Mt=Mt>>>0,be||En(de,Dt,Mt,8,17976931348623157e292,-17976931348623157e292),se.write(de,Dt,Mt,zt,52,8),Mt+8}kt.prototype.writeDoubleLE=function(Dt,Mt,zt){return Xe(this,Dt,Mt,!0,zt)},kt.prototype.writeDoubleBE=function(Dt,Mt,zt){return Xe(this,Dt,Mt,!1,zt)},kt.prototype.copy=function(Dt,Mt,zt,be){if(!kt.isBuffer(Dt))throw new TypeError("argument should be a Buffer");if(zt||(zt=0),!be&&be!==0&&(be=this.length),Mt>=Dt.length&&(Mt=Dt.length),Mt||(Mt=0),be>0&&be<zt&&(be=zt),be===zt||Dt.length===0||this.length===0)return 0;if(Mt<0)throw new RangeError("targetStart out of bounds");if(zt<0||zt>=this.length)throw new RangeError("Index out of range");if(be<0)throw new RangeError("sourceEnd out of bounds");be>this.length&&(be=this.length),Dt.length-Mt<be-zt&&(be=Dt.length-Mt+zt);var De=be-zt;return this===Dt&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(Mt,zt,be):Uint8Array.prototype.set.call(Dt,this.subarray(zt,be),Mt),De},kt.prototype.fill=function(Dt,Mt,zt,be){if(typeof Dt=="string"){if(typeof Mt=="string"?(be=Mt,Mt=0,zt=this.length):typeof zt=="string"&&(be=zt,zt=this.length),be!==void 0&&typeof be!="string")throw new TypeError("encoding must be a string");if(typeof be=="string"&&!kt.isEncoding(be))throw new TypeError("Unknown encoding: "+be);if(Dt.length===1){var De=Dt.charCodeAt(0);(be==="utf8"&&De<128||be==="latin1")&&(Dt=De)}}else typeof Dt=="number"?Dt=Dt&255:typeof Dt=="boolean"&&(Dt=Number(Dt));if(Mt<0||this.length<Mt||this.length<zt)throw new RangeError("Out of range index");if(zt<=Mt)return this;Mt=Mt>>>0,zt=zt===void 0?this.length:zt>>>0,Dt||(Dt=0);var fe;if(typeof Dt=="number")for(fe=Mt;fe<zt;++fe)this[fe]=Dt;else{var Ce=kt.isBuffer(Dt)?Dt:kt.from(Dt,be),te=Ce.length;if(te===0)throw new TypeError('The value "'+Dt+'" is invalid for argument "value"');for(fe=0;fe<zt-Mt;++fe)this[fe+Mt]=Ce[fe%te]}return this};var kn=/[^+/0-9A-Za-z-_]/g;function Vn(de){if(de=de.split("=")[0],de=de.trim().replace(kn,""),de.length<2)return"";for(;de.length%4!==0;)de=de+"=";return de}function Ai(de,Dt){Dt=Dt||1/0;for(var Mt,zt=de.length,be=null,De=[],fe=0;fe<zt;++fe){if(Mt=de.charCodeAt(fe),Mt>55295&&Mt<57344){if(!be){if(Mt>56319){(Dt-=3)>-1&&De.push(239,191,189);continue}else if(fe+1===zt){(Dt-=3)>-1&&De.push(239,191,189);continue}be=Mt;continue}if(Mt<56320){(Dt-=3)>-1&&De.push(239,191,189),be=Mt;continue}Mt=(be-55296<<10|Mt-56320)+65536}else be&&(Dt-=3)>-1&&De.push(239,191,189);if(be=null,Mt<128){if((Dt-=1)<0)break;De.push(Mt)}else if(Mt<2048){if((Dt-=2)<0)break;De.push(Mt>>6|192,Mt&63|128)}else if(Mt<65536){if((Dt-=3)<0)break;De.push(Mt>>12|224,Mt>>6&63|128,Mt&63|128)}else if(Mt<1114112){if((Dt-=4)<0)break;De.push(Mt>>18|240,Mt>>12&63|128,Mt>>6&63|128,Mt&63|128)}else throw new Error("Invalid code point")}return De}function Wn(de){for(var Dt=[],Mt=0;Mt<de.length;++Mt)Dt.push(de.charCodeAt(Mt)&255);return Dt}function Si(de,Dt){for(var Mt,zt,be,De=[],fe=0;fe<de.length&&!((Dt-=2)<0);++fe)Mt=de.charCodeAt(fe),zt=Mt>>8,be=Mt%256,De.push(be),De.push(zt);return De}function an(de){return ge.toByteArray(Vn(de))}function Li(de,Dt,Mt,zt){for(var be=0;be<zt&&!(be+Mt>=Dt.length||be>=de.length);++be)Dt[be+Mt]=de[be];return be}function Oi(de,Dt){return de instanceof Dt||de!=null&&de.constructor!=null&&de.constructor.name!=null&&de.constructor.name===Dt.name}function ue(de){return de!==de}var Pn=function(){for(var de="0123456789abcdef",Dt=new Array(256),Mt=0;Mt<16;++Mt)for(var zt=Mt*16,be=0;be<16;++be)Dt[zt+be]=de[Mt]+de[be];return Dt}()},57780:function(ui,Cn,Bt){"use strict";Bt.r(Cn),Bt.d(Cn,{clsx:function(){return ge}});function bt(se){var Me,ie,ae="";if(typeof se=="string"||typeof se=="number")ae+=se;else if(typeof se=="object")if(Array.isArray(se))for(Me=0;Me<se.length;Me++)se[Me]&&(ie=bt(se[Me]))&&(ae&&(ae+=" "),ae+=ie);else for(Me in se)se[Me]&&(ae&&(ae+=" "),ae+=Me);return ae}function ge(){for(var se,Me,ie=0,ae="";ie<arguments.length;)(se=arguments[ie++])&&(Me=bt(se))&&(ae&&(ae+=" "),ae+=Me);return ae}Cn.default=ge},99498:function(ui,Cn,Bt){(function(bt){bt(Bt(89780))})(function(bt){bt.defineOption("placeholder","",function(kt,Jt,St){var Wt=St&&St!=bt.Init;if(Jt&&!Wt)kt.on("blur",ie),kt.on("change",ae),kt.on("swapDoc",ae),bt.on(kt.getInputField(),"compositionupdate",kt.state.placeholderCompose=function(){Me(kt)}),ae(kt);else if(!Jt&&Wt){kt.off("blur",ie),kt.off("change",ae),kt.off("swapDoc",ae),bt.off(kt.getInputField(),"compositionupdate",kt.state.placeholderCompose),ge(kt);var Gt=kt.getWrapperElement();Gt.className=Gt.className.replace(" CodeMirror-empty","")}Jt&&!kt.hasFocus()&&ie(kt)});function ge(kt){kt.state.placeholder&&(kt.state.placeholder.parentNode.removeChild(kt.state.placeholder),kt.state.placeholder=null)}function se(kt){ge(kt);var Jt=kt.state.placeholder=document.createElement("pre");Jt.style.cssText="height: 0; overflow: visible",Jt.style.direction=kt.getOption("direction"),Jt.className="CodeMirror-placeholder CodeMirror-line-like";var St=kt.getOption("placeholder");typeof St=="string"&&(St=document.createTextNode(St)),Jt.appendChild(St),kt.display.lineSpace.insertBefore(Jt,kt.display.lineSpace.firstChild)}function Me(kt){setTimeout(function(){var Jt=!1,St=kt.getInputField();St.nodeName=="TEXTAREA"?Jt=!St.value:kt.lineCount()==1&&(Jt=!/[^\u200b]/.test(St.querySelector(".CodeMirror-line").textContent)),Jt?se(kt):ge(kt)},20)}function ie(kt){Lt(kt)&&se(kt)}function ae(kt){var Jt=kt.getWrapperElement(),St=Lt(kt);Jt.className=Jt.className.replace(" CodeMirror-empty","")+(St?" CodeMirror-empty":""),St?se(kt):ge(kt)}function Lt(kt){return kt.lineCount()===1&&kt.getLine(0)===""}})},25717:function(ui,Cn,Bt){(function(bt){bt(Bt(89780))})(function(bt){var ge={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},se=bt.Pos;bt.defineOption("autoCloseBrackets",!1,function(et,tt,lt){lt&<!=bt.Init&&(et.removeKeyMap(ie),et.state.closeBrackets=null),tt&&(ae(Me(tt,"pairs")),et.state.closeBrackets=tt,et.addKeyMap(ie))});function Me(et,tt){return tt=="pairs"&&typeof et=="string"?et:typeof et=="object"&&et[tt]!=null?et[tt]:ge[tt]}var ie={Backspace:Jt,Enter:St};function ae(et){for(var tt=0;tt<et.length;tt++){var lt=et.charAt(tt),rt="'"+lt+"'";ie[rt]||(ie[rt]=Lt(lt))}}ae(ge.pairs+"`");function Lt(et){return function(tt){return Gt(tt,et)}}function kt(et){var tt=et.state.closeBrackets;if(!tt||tt.override)return tt;var lt=et.getModeAt(et.getCursor());return lt.closeBrackets||tt}function Jt(et){var tt=kt(et);if(!tt||et.getOption("disableInput"))return bt.Pass;for(var lt=Me(tt,"pairs"),rt=et.listSelections(),ut=0;ut<rt.length;ut++){if(!rt[ut].empty())return bt.Pass;var dt=qt(et,rt[ut].head);if(!dt||lt.indexOf(dt)%2!=0)return bt.Pass}for(var ut=rt.length-1;ut>=0;ut--){var pt=rt[ut].head;et.replaceRange("",se(pt.line,pt.ch-1),se(pt.line,pt.ch+1),"+delete")}}function St(et){var tt=kt(et),lt=tt&&Me(tt,"explode");if(!lt||et.getOption("disableInput"))return bt.Pass;for(var rt=et.listSelections(),ut=0;ut<rt.length;ut++){if(!rt[ut].empty())return bt.Pass;var dt=qt(et,rt[ut].head);if(!dt||lt.indexOf(dt)%2!=0)return bt.Pass}et.operation(function(){var pt=et.lineSeparator()||`
|
|
|
`;et.replaceSelection(pt+pt,null),et.execCommand("goCharLeft"),rt=et.listSelections();for(var Ft=0;Ft<rt.length;Ft++){var Tt=rt[Ft].head.line;et.indentLine(Tt,null,!0),et.indentLine(Tt+1,null,!0)}})}function Wt(et){var tt=bt.cmpPos(et.anchor,et.head)>0;return{anchor:new se(et.anchor.line,et.anchor.ch+(tt?-1:1)),head:new se(et.head.line,et.head.ch+(tt?1:-1))}}function Gt(et,tt){var lt=kt(et);if(!lt||et.getOption("disableInput"))return bt.Pass;var rt=Me(lt,"pairs"),ut=rt.indexOf(tt);if(ut==-1)return bt.Pass;for(var dt=Me(lt,"closeBefore"),pt=Me(lt,"triples"),Ft=rt.charAt(ut+1)==tt,Tt=et.listSelections(),_t=ut%2==0,re,he=0;he<Tt.length;he++){var Ae=Tt[he],Fe=Ae.head,ee,We=et.getRange(Fe,se(Fe.line,Fe.ch+1));if(_t&&!Ae.empty())ee="surround";else if((Ft||!_t)&&We==tt)Ft&&wt(et,Fe)?ee="both":pt.indexOf(tt)>=0&&et.getRange(Fe,se(Fe.line,Fe.ch+3))==tt+tt+tt?ee="skipThree":ee="skip";else if(Ft&&Fe.ch>1&&pt.indexOf(tt)>=0&&et.getRange(se(Fe.line,Fe.ch-2),Fe)==tt+tt){if(Fe.ch>2&&/\bstring/.test(et.getTokenTypeAt(se(Fe.line,Fe.ch-2))))return bt.Pass;ee="addFour"}else if(Ft){var Yt=Fe.ch==0?" ":et.getRange(se(Fe.line,Fe.ch-1),Fe);if(!bt.isWordChar(We)&&Yt!=tt&&!bt.isWordChar(Yt))ee="both";else return bt.Pass}else if(_t&&(We.length===0||/\s/.test(We)||dt.indexOf(We)>-1))ee="both";else return bt.Pass;if(!re)re=ee;else if(re!=ee)return bt.Pass}var qe=ut%2?rt.charAt(ut-1):tt,Ge=ut%2?tt:rt.charAt(ut+1);et.operation(function(){if(re=="skip")et.execCommand("goCharRight");else if(re=="skipThree")for(var Oe=0;Oe<3;Oe++)et.execCommand("goCharRight");else if(re=="surround"){for(var Ze=et.getSelections(),Oe=0;Oe<Ze.length;Oe++)Ze[Oe]=qe+Ze[Oe]+Ge;et.replaceSelections(Ze,"around"),Ze=et.listSelections().slice();for(var Oe=0;Oe<Ze.length;Oe++)Ze[Oe]=Wt(Ze[Oe]);et.setSelections(Ze)}else re=="both"?(et.replaceSelection(qe+Ge,null),et.triggerElectric(qe+Ge),et.execCommand("goCharLeft")):re=="addFour"&&(et.replaceSelection(qe+qe+qe+qe,"before"),et.execCommand("goCharRight"))})}function qt(et,tt){var lt=et.getRange(se(tt.line,tt.ch-1),se(tt.line,tt.ch+1));return lt.length==2?lt:null}function wt(et,tt){var lt=et.getTokenAt(se(tt.line,tt.ch+1));return/\bstring/.test(lt.type)&<.start==tt.ch&&(tt.ch==0||!/\bstring/.test(et.getTokenTypeAt(tt)))}})},6313:function(ui,Cn,Bt){(function(bt){bt(Bt(89780),Bt(32855))})(function(bt){bt.defineOption("autoCloseTags",!1,function(Jt,St,Wt){if(Wt!=bt.Init&&Wt&&Jt.removeKeyMap("autoCloseTags"),!!St){var Gt={name:"autoCloseTags"};(typeof St!="object"||St.whenClosing!==!1)&&(Gt["'/'"]=function(qt){return ae(qt)}),(typeof St!="object"||St.whenOpening!==!1)&&(Gt["'>'"]=function(qt){return Me(qt)}),Jt.addKeyMap(Gt)}});var ge=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],se=["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 Me(Jt){if(Jt.getOption("disableInput"))return bt.Pass;for(var St=Jt.listSelections(),Wt=[],Gt=Jt.getOption("autoCloseTags"),qt=0;qt<St.length;qt++){if(!St[qt].empty())return bt.Pass;var wt=St[qt].head,et=Jt.getTokenAt(wt),tt=bt.innerMode(Jt.getMode(),et.state),lt=tt.state,rt=tt.mode.xmlCurrentTag&&tt.mode.xmlCurrentTag(lt),ut=rt&&rt.name;if(!ut)return bt.Pass;var dt=tt.mode.configuration=="html",pt=typeof Gt=="object"&&Gt.dontCloseTags||dt&&ge,Ft=typeof Gt=="object"&&Gt.indentTags||dt&&se;et.end>wt.ch&&(ut=ut.slice(0,ut.length-et.end+wt.ch));var Tt=ut.toLowerCase();if(!ut||et.type=="string"&&(et.end!=wt.ch||!/[\"\']/.test(et.string.charAt(et.string.length-1))||et.string.length==1)||et.type=="tag"&&rt.close||et.string.indexOf("/")==wt.ch-et.start-1||pt&&Lt(pt,Tt)>-1||kt(Jt,tt.mode.xmlCurrentContext&&tt.mode.xmlCurrentContext(lt)||[],ut,wt,!0))return bt.Pass;var _t=typeof Gt=="object"&&Gt.emptyTags;if(_t&&Lt(_t,ut)>-1){Wt[qt]={text:"/>",newPos:bt.Pos(wt.line,wt.ch+2)};continue}var re=Ft&&Lt(Ft,Tt)>-1;Wt[qt]={indent:re,text:">"+(re?`
|
|
|
|
|
|
`:"")+"</"+ut+">",newPos:re?bt.Pos(wt.line+1,0):bt.Pos(wt.line,wt.ch+1)}}for(var he=typeof Gt=="object"&&Gt.dontIndentOnAutoClose,qt=St.length-1;qt>=0;qt--){var Ae=Wt[qt];Jt.replaceRange(Ae.text,St[qt].head,St[qt].anchor,"+insert");var Fe=Jt.listSelections().slice(0);Fe[qt]={head:Ae.newPos,anchor:Ae.newPos},Jt.setSelections(Fe),!he&&Ae.indent&&(Jt.indentLine(Ae.newPos.line,null,!0),Jt.indentLine(Ae.newPos.line+1,null,!0))}}function ie(Jt,St){for(var Wt=Jt.listSelections(),Gt=[],qt=St?"/":"</",wt=Jt.getOption("autoCloseTags"),et=typeof wt=="object"&&wt.dontIndentOnSlash,tt=0;tt<Wt.length;tt++){if(!Wt[tt].empty())return bt.Pass;var lt=Wt[tt].head,rt=Jt.getTokenAt(lt),ut=bt.innerMode(Jt.getMode(),rt.state),dt=ut.state;if(St&&(rt.type=="string"||rt.string.charAt(0)!="<"||rt.start!=lt.ch-1))return bt.Pass;var pt,Ft=ut.mode.name!="xml"&&Jt.getMode().name=="htmlmixed";if(Ft&&ut.mode.name=="javascript")pt=qt+"script";else if(Ft&&ut.mode.name=="css")pt=qt+"style";else{var Tt=ut.mode.xmlCurrentContext&&ut.mode.xmlCurrentContext(dt);if(!Tt||Tt.length&&kt(Jt,Tt,Tt[Tt.length-1],lt))return bt.Pass;pt=qt+Tt[Tt.length-1]}Jt.getLine(lt.line).charAt(rt.end)!=">"&&(pt+=">"),Gt[tt]=pt}if(Jt.replaceSelections(Gt),Wt=Jt.listSelections(),!et)for(var tt=0;tt<Wt.length;tt++)(tt==Wt.length-1||Wt[tt].head.line<Wt[tt+1].head.line)&&Jt.indentLine(Wt[tt].head.line)}function ae(Jt){return Jt.getOption("disableInput")?bt.Pass:ie(Jt,!0)}bt.commands.closeTag=function(Jt){return ie(Jt)};function Lt(Jt,St){if(Jt.indexOf)return Jt.indexOf(St);for(var Wt=0,Gt=Jt.length;Wt<Gt;++Wt)if(Jt[Wt]==St)return Wt;return-1}function kt(Jt,St,Wt,Gt,qt){if(!bt.scanForClosingTag)return!1;var wt=Math.min(Jt.lastLine()+1,Gt.line+500),et=bt.scanForClosingTag(Jt,Gt,null,wt);if(!et||et.tag!=Wt)return!1;for(var tt=qt?1:0,lt=St.length-1;lt>=0&&St[lt]==Wt;lt--)++tt;Gt=et.to;for(var lt=1;lt<tt;lt++){var rt=bt.scanForClosingTag(Jt,Gt,null,wt);if(!rt||rt.tag!=Wt)return!1;Gt=rt.to}return!0}})},32855:function(ui,Cn,Bt){(function(bt){bt(Bt(89780))})(function(bt){"use strict";var ge=bt.Pos;function se(lt,rt){return lt.line-rt.line||lt.ch-rt.ch}var Me="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",ie=Me+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ae=new RegExp("<(/?)(["+Me+"]["+ie+"]*)","g");function Lt(lt,rt,ut,dt){this.line=rt,this.ch=ut,this.cm=lt,this.text=lt.getLine(rt),this.min=dt?Math.max(dt.from,lt.firstLine()):lt.firstLine(),this.max=dt?Math.min(dt.to-1,lt.lastLine()):lt.lastLine()}function kt(lt,rt){var ut=lt.cm.getTokenTypeAt(ge(lt.line,rt));return ut&&/\btag\b/.test(ut)}function Jt(lt){if(!(lt.line>=lt.max))return lt.ch=0,lt.text=lt.cm.getLine(++lt.line),!0}function St(lt){if(!(lt.line<=lt.min))return lt.text=lt.cm.getLine(--lt.line),lt.ch=lt.text.length,!0}function Wt(lt){for(;;){var rt=lt.text.indexOf(">",lt.ch);if(rt==-1){if(Jt(lt))continue;return}if(!kt(lt,rt+1)){lt.ch=rt+1;continue}var ut=lt.text.lastIndexOf("/",rt),dt=ut>-1&&!/\S/.test(lt.text.slice(ut+1,rt));return lt.ch=rt+1,dt?"selfClose":"regular"}}function Gt(lt){for(;;){var rt=lt.ch?lt.text.lastIndexOf("<",lt.ch-1):-1;if(rt==-1){if(St(lt))continue;return}if(!kt(lt,rt+1)){lt.ch=rt;continue}ae.lastIndex=rt,lt.ch=rt;var ut=ae.exec(lt.text);if(ut&&ut.index==rt)return ut}}function qt(lt){for(;;){ae.lastIndex=lt.ch;var rt=ae.exec(lt.text);if(!rt){if(Jt(lt))continue;return}if(!kt(lt,rt.index+1)){lt.ch=rt.index+1;continue}return lt.ch=rt.index+rt[0].length,rt}}function wt(lt){for(;;){var rt=lt.ch?lt.text.lastIndexOf(">",lt.ch-1):-1;if(rt==-1){if(St(lt))continue;return}if(!kt(lt,rt+1)){lt.ch=rt;continue}var ut=lt.text.lastIndexOf("/",rt),dt=ut>-1&&!/\S/.test(lt.text.slice(ut+1,rt));return lt.ch=rt+1,dt?"selfClose":"regular"}}function et(lt,rt){for(var ut=[];;){var dt=qt(lt),pt,Ft=lt.line,Tt=lt.ch-(dt?dt[0].length:0);if(!dt||!(pt=Wt(lt)))return;if(pt!="selfClose")if(dt[1]){for(var _t=ut.length-1;_t>=0;--_t)if(ut[_t]==dt[2]){ut.length=_t;break}if(_t<0&&(!rt||rt==dt[2]))return{tag:dt[2],from:ge(Ft,Tt),to:ge(lt.line,lt.ch)}}else ut.push(dt[2])}}function tt(lt,rt){for(var ut=[];;){var dt=wt(lt);if(!dt)return;if(dt=="selfClose"){Gt(lt);continue}var pt=lt.line,Ft=lt.ch,Tt=Gt(lt);if(!Tt)return;if(Tt[1])ut.push(Tt[2]);else{for(var _t=ut.length-1;_t>=0;--_t)if(ut[_t]==Tt[2]){ut.length=_t;break}if(_t<0&&(!rt||rt==Tt[2]))return{tag:Tt[2],from:ge(lt.line,lt.ch),to:ge(pt,Ft)}}}}bt.registerHelper("fold","xml",function(lt,rt){for(var ut=new Lt(lt,rt.line,0);;){var dt=qt(ut);if(!dt||ut.line!=rt.line)return;var pt=Wt(ut);if(!pt)return;if(!dt[1]&&pt!="selfClose"){var Ft=ge(ut.line,ut.ch),Tt=et(ut,dt[2]);return Tt&&se(Tt.from,Ft)>0?{from:Ft,to:Tt.from}:null}}}),bt.findMatchingTag=function(lt,rt,ut){var dt=new Lt(lt,rt.line,rt.ch,ut);if(!(dt.text.indexOf(">")==-1&&dt.text.indexOf("<")==-1)){var pt=Wt(dt),Ft=pt&&ge(dt.line,dt.ch),Tt=pt&&Gt(dt);if(!(!pt||!Tt||se(dt,rt)>0)){var _t={from:ge(dt.line,dt.ch),to:Ft,tag:Tt[2]};return pt=="selfClose"?{open:_t,close:null,at:"open"}:Tt[1]?{open:tt(dt,Tt[2]),close:_t,at:"close"}:(dt=new Lt(lt,Ft.line,Ft.ch,ut),{open:_t,close:et(dt,Tt[2]),at:"open"})}}},bt.findEnclosingTag=function(lt,rt,ut,dt){for(var pt=new Lt(lt,rt.line,rt.ch,ut);;){var Ft=tt(pt,dt);if(!Ft)break;var Tt=new Lt(lt,rt.line,rt.ch,ut),_t=et(Tt,Ft.tag);if(_t)return{open:Ft,close:_t}}},bt.scanForClosingTag=function(lt,rt,ut,dt){var pt=new Lt(lt,rt.line,rt.ch,dt?{from:0,to:dt}:null);return et(pt,ut)}})},89780:function(ui){(function(Cn,Bt){ui.exports=Bt()})(this,function(){"use strict";var Cn=navigator.userAgent,Bt=navigator.platform,bt=/gecko\/\d/i.test(Cn),ge=/MSIE \d/.test(Cn),se=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Cn),Me=/Edge\/(\d+)/.exec(Cn),ie=ge||se||Me,ae=ie&&(ge?document.documentMode||6:+(Me||se)[1]),Lt=!Me&&/WebKit\//.test(Cn),kt=Lt&&/Qt\/\d+\.\d+/.test(Cn),Jt=!Me&&/Chrome\//.test(Cn),St=/Opera\//.test(Cn),Wt=/Apple Computer/.test(navigator.vendor),Gt=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Cn),qt=/PhantomJS/.test(Cn),wt=!Me&&/AppleWebKit/.test(Cn)&&/Mobile\/\w+/.test(Cn),et=/Android/.test(Cn),tt=wt||et||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Cn),lt=wt||/Mac/.test(Bt),rt=/\bCrOS\b/.test(Cn),ut=/win/i.test(Bt),dt=St&&Cn.match(/Version\/(\d*\.\d*)/);dt&&(dt=Number(dt[1])),dt&&dt>=15&&(St=!1,Lt=!0);var pt=lt&&(kt||St&&(dt==null||dt<12.11)),Ft=bt||ie&&ae>=9;function Tt(it){return new RegExp("(^|\\s)"+it+"(?:$|\\s)\\s*")}var _t=function(it,st){var ft=it.className,At=Tt(st).exec(ft);if(At){var xt=ft.slice(At.index+At[0].length);it.className=ft.slice(0,At.index)+(xt?At[1]+xt:"")}};function re(it){for(var st=it.childNodes.length;st>0;--st)it.removeChild(it.firstChild);return it}function he(it,st){return re(it).appendChild(st)}function Ae(it,st,ft,At){var xt=document.createElement(it);if(ft&&(xt.className=ft),At&&(xt.style.cssText=At),typeof st=="string")xt.appendChild(document.createTextNode(st));else if(st)for(var ne=0;ne<st.length;++ne)xt.appendChild(st[ne]);return xt}function Fe(it,st,ft,At){var xt=Ae(it,st,ft,At);return xt.setAttribute("role","presentation"),xt}var ee;document.createRange?ee=function(it,st,ft,At){var xt=document.createRange();return xt.setEnd(At||it,ft),xt.setStart(it,st),xt}:ee=function(it,st,ft){var At=document.body.createTextRange();try{At.moveToElementText(it.parentNode)}catch(xt){return At}return At.collapse(!0),At.moveEnd("character",ft),At.moveStart("character",st),At};function We(it,st){if(st.nodeType==3&&(st=st.parentNode),it.contains)return it.contains(st);do if(st.nodeType==11&&(st=st.host),st==it)return!0;while(st=st.parentNode)}function Yt(){var it;try{it=document.activeElement}catch(st){it=document.body||null}for(;it&&it.shadowRoot&&it.shadowRoot.activeElement;)it=it.shadowRoot.activeElement;return it}function qe(it,st){var ft=it.className;Tt(st).test(ft)||(it.className+=(ft?" ":"")+st)}function Ge(it,st){for(var ft=it.split(" "),At=0;At<ft.length;At++)ft[At]&&!Tt(ft[At]).test(st)&&(st+=" "+ft[At]);return st}var Oe=function(it){it.select()};wt?Oe=function(it){it.selectionStart=0,it.selectionEnd=it.value.length}:ie&&(Oe=function(it){try{it.select()}catch(st){}});function Ze(it){var st=Array.prototype.slice.call(arguments,1);return function(){return it.apply(null,st)}}function Qe(it,st,ft){st||(st={});for(var At in it)it.hasOwnProperty(At)&&(ft!==!1||!st.hasOwnProperty(At))&&(st[At]=it[At]);return st}function we(it,st,ft,At,xt){st==null&&(st=it.search(/[^\s\u00a0]/),st==-1&&(st=it.length));for(var ne=At||0,Be=xt||0;;){var He=it.indexOf(" ",ne);if(He<0||He>=st)return Be+(st-ne);Be+=He-ne,Be+=ft-Be%ft,ne=He+1}}var oe=function(){this.id=null,this.f=null,this.time=0,this.handler=Ze(this.onTimeout,this)};oe.prototype.onTimeout=function(it){it.id=0,it.time<=+new Date?it.f():setTimeout(it.handler,it.time-+new Date)},oe.prototype.set=function(it,st){this.f=st;var ft=+new Date+it;(!this.id||ft<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,it),this.time=ft)};function Pe(it,st){for(var ft=0;ft<it.length;++ft)if(it[ft]==st)return ft;return-1}var En=50,Nn={toString:function(){return"CodeMirror.Pass"}},Xe={scroll:!1},kn={origin:"*mouse"},Vn={origin:"+move"};function Ai(it,st,ft){for(var At=0,xt=0;;){var ne=it.indexOf(" ",At);ne==-1&&(ne=it.length);var Be=ne-At;if(ne==it.length||xt+Be>=st)return At+Math.min(Be,st-xt);if(xt+=ne-At,xt+=ft-xt%ft,At=ne+1,xt>=st)return At}}var Wn=[""];function Si(it){for(;Wn.length<=it;)Wn.push(an(Wn)+" ");return Wn[it]}function an(it){return it[it.length-1]}function Li(it,st){for(var ft=[],At=0;At<it.length;At++)ft[At]=st(it[At],At);return ft}function Oi(it,st,ft){for(var At=0,xt=ft(st);At<it.length&&ft(it[At])<=xt;)At++;it.splice(At,0,st)}function ue(){}function Pn(it,st){var ft;return Object.create?ft=Object.create(it):(ue.prototype=it,ft=new ue),st&&Qe(st,ft),ft}var de=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Dt(it){return/\w/.test(it)||it>"\x80"&&(it.toUpperCase()!=it.toLowerCase()||de.test(it))}function Mt(it,st){return st?st.source.indexOf("\\w")>-1&&Dt(it)?!0:st.test(it):Dt(it)}function zt(it){for(var st in it)if(it.hasOwnProperty(st)&&it[st])return!1;return!0}var be=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function De(it){return it.charCodeAt(0)>=768&&be.test(it)}function fe(it,st,ft){for(;(ft<0?st>0:st<it.length)&&De(it.charAt(st));)st+=ft;return st}function Ce(it,st,ft){for(var At=st>ft?-1:1;;){if(st==ft)return st;var xt=(st+ft)/2,ne=At<0?Math.ceil(xt):Math.floor(xt);if(ne==st)return it(ne)?st:ft;it(ne)?ft=ne:st=ne+At}}function te(it,st,ft,At){if(!it)return At(st,ft,"ltr",0);for(var xt=!1,ne=0;ne<it.length;++ne){var Be=it[ne];(Be.from<ft&&Be.to>st||st==ft&&Be.to==st)&&(At(Math.max(Be.from,st),Math.min(Be.to,ft),Be.level==1?"rtl":"ltr",ne),xt=!0)}xt||At(st,ft,"ltr")}var Ct=null;function yt(it,st,ft){var At;Ct=null;for(var xt=0;xt<it.length;++xt){var ne=it[xt];if(ne.from<st&&ne.to>st)return xt;ne.to==st&&(ne.from!=ne.to&&ft=="before"?At=xt:Ct=xt),ne.from==st&&(ne.from!=ne.to&&ft!="before"?At=xt:Ct=xt)}return At!=null?At:Ct}var $t=function(){var it="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",st="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ft(un){return un<=247?it.charAt(un):1424<=un&&un<=1524?"R":1536<=un&&un<=1785?st.charAt(un-1536):1774<=un&&un<=2220?"r":8192<=un&&un<=8203?"w":un==8204?"b":"L"}var At=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,xt=/[stwN]/,ne=/[LRr]/,Be=/[Lb1n]/,He=/[1n]/;function _e(un,Yn,xn){this.level=un,this.from=Yn,this.to=xn}return function(un,Yn){var xn=Yn=="ltr"?"L":"R";if(un.length==0||Yn=="ltr"&&!At.test(un))return!1;for(var Ni=un.length,Ei=[],Nr=0;Nr<Ni;++Nr)Ei.push(ft(un.charCodeAt(Nr)));for(var jr=0,to=xn;jr<Ni;++jr){var Co=Ei[jr];Co=="m"?Ei[jr]=to:to=Co}for(var $o=0,Do=xn;$o<Ni;++$o){var ss=Ei[$o];ss=="1"&&Do=="r"?Ei[$o]="n":ne.test(ss)&&(Do=ss,ss=="r"&&(Ei[$o]="R"))}for(var Ds=1,jo=Ei[0];Ds<Ni-1;++Ds){var Js=Ei[Ds];Js=="+"&&jo=="1"&&Ei[Ds+1]=="1"?Ei[Ds]="1":Js==","&&jo==Ei[Ds+1]&&(jo=="1"||jo=="n")&&(Ei[Ds]=jo),jo=Js}for(var _l=0;_l<Ni;++_l){var $l=Ei[_l];if($l==",")Ei[_l]="N";else if($l=="%"){var fl=void 0;for(fl=_l+1;fl<Ni&&Ei[fl]=="%";++fl);for(var Ja=_l&&Ei[_l-1]=="!"||fl<Ni&&Ei[fl]=="1"?"1":"N",Ua=_l;Ua<fl;++Ua)Ei[Ua]=Ja;_l=fl-1}}for(var Za=0,El=xn;Za<Ni;++Za){var wu=Ei[Za];El=="L"&&wu=="1"?Ei[Za]="L":ne.test(wu)&&(El=wu)}for(var Ro=0;Ro<Ni;++Ro)if(xt.test(Ei[Ro])){var Ca=void 0;for(Ca=Ro+1;Ca<Ni&&xt.test(Ei[Ca]);++Ca);for(var Xl=(Ro?Ei[Ro-1]:xn)=="L",Hl=(Ca<Ni?Ei[Ca]:xn)=="L",Zu=Xl==Hl?Xl?"L":"R":xn,aa=Ro;aa<Ca;++aa)Ei[aa]=Zu;Ro=Ca-1}for(var zs=[],ch,fu=0;fu<Ni;)if(Be.test(Ei[fu])){var Xd=fu;for(++fu;fu<Ni&&Be.test(Ei[fu]);++fu);zs.push(new _e(0,Xd,fu))}else{var Fh=fu,eh=zs.length,xh=Yn=="rtl"?1:0;for(++fu;fu<Ni&&Ei[fu]!="L";++fu);for(var Ql=Fh;Ql<fu;)if(He.test(Ei[Ql])){Fh<Ql&&(zs.splice(eh,0,new _e(1,Fh,Ql)),eh+=xh);var Hu=Ql;for(++Ql;Ql<fu&&He.test(Ei[Ql]);++Ql);zs.splice(eh,0,new _e(2,Hu,Ql)),eh+=xh,Fh=Ql}else++Ql;Fh<fu&&zs.splice(eh,0,new _e(1,Fh,fu))}return Yn=="ltr"&&(zs[0].level==1&&(ch=un.match(/^\s+/))&&(zs[0].from=ch[0].length,zs.unshift(new _e(0,0,ch[0].length))),an(zs).level==1&&(ch=un.match(/\s+$/))&&(an(zs).to-=ch[0].length,zs.push(new _e(0,Ni-ch[0].length,Ni)))),Yn=="rtl"?zs.reverse():zs}}();function xe(it,st){var ft=it.order;return ft==null&&(ft=it.order=$t(it.text,st)),ft}var Rt=[],je=function(it,st,ft){if(it.addEventListener)it.addEventListener(st,ft,!1);else if(it.attachEvent)it.attachEvent("on"+st,ft);else{var At=it._handlers||(it._handlers={});At[st]=(At[st]||Rt).concat(ft)}};function fn(it,st){return it._handlers&&it._handlers[st]||Rt}function jn(it,st,ft){if(it.removeEventListener)it.removeEventListener(st,ft,!1);else if(it.detachEvent)it.detachEvent("on"+st,ft);else{var At=it._handlers,xt=At&&At[st];if(xt){var ne=Pe(xt,ft);ne>-1&&(At[st]=xt.slice(0,ne).concat(xt.slice(ne+1)))}}}function bn(it,st){var ft=fn(it,st);if(ft.length)for(var At=Array.prototype.slice.call(arguments,2),xt=0;xt<ft.length;++xt)ft[xt].apply(null,At)}function ci(it,st,ft){return typeof st=="string"&&(st={type:st,preventDefault:function(){this.defaultPrevented=!0}}),bn(it,ft||st.type,it,st),Jr(st)||st.codemirrorIgnore}function Ji(it){var st=it._handlers&&it._handlers.cursorActivity;if(st)for(var ft=it.curOp.cursorActivityHandlers||(it.curOp.cursorActivityHandlers=[]),At=0;At<st.length;++At)Pe(ft,st[At])==-1&&ft.push(st[At])}function zi(it,st){return fn(it,st).length>0}function dr(it){it.prototype.on=function(st,ft){je(this,st,ft)},it.prototype.off=function(st,ft){jn(this,st,ft)}}function Fr(it){it.preventDefault?it.preventDefault():it.returnValue=!1}function oo(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}function Jr(it){return it.defaultPrevented!=null?it.defaultPrevented:it.returnValue==!1}function zr(it){Fr(it),oo(it)}function pr(it){return it.target||it.srcElement}function Kr(it){var st=it.which;return st==null&&(it.button&1?st=1:it.button&2?st=3:it.button&4&&(st=2)),lt&&it.ctrlKey&&st==1&&(st=3),st}var hr=function(){if(ie&&ae<9)return!1;var it=Ae("div");return"draggable"in it||"dragDrop"in it}(),Mo;function Xo(it){if(Mo==null){var st=Ae("span","\u200B");he(it,Ae("span",[st,document.createTextNode("x")])),it.firstChild.offsetHeight!=0&&(Mo=st.offsetWidth<=1&&st.offsetHeight>2&&!(ie&&ae<8))}var ft=Mo?Ae("span","\u200B"):Ae("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ft.setAttribute("cm-text",""),ft}var mo;function Ts(it){if(mo!=null)return mo;var st=he(it,document.createTextNode("A\u062EA")),ft=ee(st,0,1).getBoundingClientRect(),At=ee(st,1,2).getBoundingClientRect();return re(it),!ft||ft.left==ft.right?!1:mo=At.right-ft.right<3}var ws=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(it){for(var st=0,ft=[],At=it.length;st<=At;){var xt=it.indexOf(`
|
|
|
`,st);xt==-1&&(xt=it.length);var ne=it.slice(st,it.charAt(xt-1)=="\r"?xt-1:xt),Be=ne.indexOf("\r");Be!=-1?(ft.push(ne.slice(0,Be)),st+=Be+1):(ft.push(ne),st=xt+1)}return ft}:function(it){return it.split(/\r\n?|\n/)},Vt=window.getSelection?function(it){try{return it.selectionStart!=it.selectionEnd}catch(st){return!1}}:function(it){var st;try{st=it.ownerDocument.selection.createRange()}catch(ft){}return!st||st.parentElement()!=it?!1:st.compareEndPoints("StartToEnd",st)!=0},xs=function(){var it=Ae("div");return"oncopy"in it?!0:(it.setAttribute("oncopy","return;"),typeof it.oncopy=="function")}(),Ss=null;function Ms(it){if(Ss!=null)return Ss;var st=he(it,Ae("span","x")),ft=st.getBoundingClientRect(),At=ee(st,0,1).getBoundingClientRect();return Ss=Math.abs(ft.left-At.left)>1}var ma={},Ea={};function oa(it,st){arguments.length>2&&(st.dependencies=Array.prototype.slice.call(arguments,2)),ma[it]=st}function ao(it,st){Ea[it]=st}function br(it){if(typeof it=="string"&&Ea.hasOwnProperty(it))it=Ea[it];else if(it&&typeof it.name=="string"&&Ea.hasOwnProperty(it.name)){var st=Ea[it.name];typeof st=="string"&&(st={name:st}),it=Pn(st,it),it.name=st.name}else{if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(it))return br("application/xml");if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(it))return br("application/json")}return typeof it=="string"?{name:it}:it||{name:"null"}}function Un(it,st){st=br(st);var ft=ma[st.name];if(!ft)return Un(it,"text/plain");var At=ft(it,st);if(On.hasOwnProperty(st.name)){var xt=On[st.name];for(var ne in xt)xt.hasOwnProperty(ne)&&(At.hasOwnProperty(ne)&&(At["_"+ne]=At[ne]),At[ne]=xt[ne])}if(At.name=st.name,st.helperType&&(At.helperType=st.helperType),st.modeProps)for(var Be in st.modeProps)At[Be]=st.modeProps[Be];return At}var On={};function Re(it,st){var ft=On.hasOwnProperty(it)?On[it]:On[it]={};Qe(st,ft)}function hi(it,st){if(st===!0)return st;if(it.copyState)return it.copyState(st);var ft={};for(var At in st){var xt=st[At];xt instanceof Array&&(xt=xt.concat([])),ft[At]=xt}return ft}function en(it,st){for(var ft;it.innerMode&&(ft=it.innerMode(st),!(!ft||ft.mode==it));)st=ft.state,it=ft.mode;return ft||{mode:it,state:st}}function gn(it,st,ft){return it.startState?it.startState(st,ft):!0}var Ve=function(it,st,ft){this.pos=this.start=0,this.string=it,this.tabSize=st||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ft};Ve.prototype.eol=function(){return this.pos>=this.string.length},Ve.prototype.sol=function(){return this.pos==this.lineStart},Ve.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ve.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ve.prototype.eat=function(it){var st=this.string.charAt(this.pos),ft;if(typeof it=="string"?ft=st==it:ft=st&&(it.test?it.test(st):it(st)),ft)return++this.pos,st},Ve.prototype.eatWhile=function(it){for(var st=this.pos;this.eat(it););return this.pos>st},Ve.prototype.eatSpace=function(){for(var it=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>it},Ve.prototype.skipToEnd=function(){this.pos=this.string.length},Ve.prototype.skipTo=function(it){var st=this.string.indexOf(it,this.pos);if(st>-1)return this.pos=st,!0},Ve.prototype.backUp=function(it){this.pos-=it},Ve.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=we(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?we(this.string,this.lineStart,this.tabSize):0)},Ve.prototype.indentation=function(){return we(this.string,null,this.tabSize)-(this.lineStart?we(this.string,this.lineStart,this.tabSize):0)},Ve.prototype.match=function(it,st,ft){if(typeof it=="string"){var At=function(Be){return ft?Be.toLowerCase():Be},xt=this.string.substr(this.pos,it.length);if(At(xt)==At(it))return st!==!1&&(this.pos+=it.length),!0}else{var ne=this.string.slice(this.pos).match(it);return ne&&ne.index>0?null:(ne&&st!==!1&&(this.pos+=ne[0].length),ne)}},Ve.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ve.prototype.hideFirstChars=function(it,st){this.lineStart+=it;try{return st()}finally{this.lineStart-=it}},Ve.prototype.lookAhead=function(it){var st=this.lineOracle;return st&&st.lookAhead(it)},Ve.prototype.baseToken=function(){var it=this.lineOracle;return it&&it.baseToken(this.pos)};function ni(it,st){if(st-=it.first,st<0||st>=it.size)throw new Error("There is no line "+(st+it.first)+" in the document.");for(var ft=it;!ft.lines;)for(var At=0;;++At){var xt=ft.children[At],ne=xt.chunkSize();if(st<ne){ft=xt;break}st-=ne}return ft.lines[st]}function Bi(it,st,ft){var At=[],xt=st.line;return it.iter(st.line,ft.line+1,function(ne){var Be=ne.text;xt==ft.line&&(Be=Be.slice(0,ft.ch)),xt==st.line&&(Be=Be.slice(st.ch)),At.push(Be),++xt}),At}function _i(it,st,ft){var At=[];return it.iter(st,ft,function(xt){At.push(xt.text)}),At}function tr(it,st){var ft=st-it.height;if(ft)for(var At=it;At;At=At.parent)At.height+=ft}function sn(it){if(it.parent==null)return null;for(var st=it.parent,ft=Pe(st.lines,it),At=st.parent;At;st=At,At=At.parent)for(var xt=0;At.children[xt]!=st;++xt)ft+=At.children[xt].chunkSize();return ft+st.first}function fi(it,st){var ft=it.first;t:do{for(var At=0;At<it.children.length;++At){var xt=it.children[At],ne=xt.height;if(st<ne){it=xt;continue t}st-=ne,ft+=xt.chunkSize()}return ft}while(!it.lines);for(var Be=0;Be<it.lines.length;++Be){var He=it.lines[Be],_e=He.height;if(st<_e)break;st-=_e}return ft+Be}function Zi(it,st){return st>=it.first&&st<it.first+it.size}function Tr(it,st){return String(it.lineNumberFormatter(st+it.firstLineNumber))}function ii(it,st,ft){if(ft===void 0&&(ft=null),!(this instanceof ii))return new ii(it,st,ft);this.line=it,this.ch=st,this.sticky=ft}function xi(it,st){return it.line-st.line||it.ch-st.ch}function fr(it,st){return it.sticky==st.sticky&&xi(it,st)==0}function mi(it){return ii(it.line,it.ch)}function wi(it,st){return xi(it,st)<0?st:it}function yi(it,st){return xi(it,st)<0?it:st}function nr(it,st){return Math.max(it.first,Math.min(st,it.first+it.size-1))}function sr(it,st){if(st.line<it.first)return ii(it.first,0);var ft=it.first+it.size-1;return st.line>ft?ii(ft,ni(it,ft).text.length):Rr(st,ni(it,st.line).text.length)}function Rr(it,st){var ft=it.ch;return ft==null||ft>st?ii(it.line,st):ft<0?ii(it.line,0):it}function Zr(it,st){for(var ft=[],At=0;At<st.length;At++)ft[At]=sr(it,st[At]);return ft}var Xr=function(it,st){this.state=it,this.lookAhead=st},ei=function(it,st,ft,At){this.state=st,this.doc=it,this.line=ft,this.maxLookAhead=At||0,this.baseTokens=null,this.baseTokenPos=1};ei.prototype.lookAhead=function(it){var st=this.doc.getLine(this.line+it);return st!=null&&it>this.maxLookAhead&&(this.maxLookAhead=it),st},ei.prototype.baseToken=function(it){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=it;)this.baseTokenPos+=2;var st=this.baseTokens[this.baseTokenPos+1];return{type:st&&st.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-it}},ei.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ei.fromSaved=function(it,st,ft){return st instanceof Xr?new ei(it,hi(it.mode,st.state),ft,st.lookAhead):new ei(it,hi(it.mode,st),ft)},ei.prototype.save=function(it){var st=it!==!1?hi(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Xr(st,this.maxLookAhead):st};function Ho(it,st,ft,At){var xt=[it.state.modeGen],ne={};wo(it,st.text,it.doc.mode,ft,function(un,Yn){return xt.push(un,Yn)},ne,At);for(var Be=ft.state,He=function(un){ft.baseTokens=xt;var Yn=it.state.overlays[un],xn=1,Ni=0;ft.state=!0,wo(it,st.text,Yn.mode,ft,function(Ei,Nr){for(var jr=xn;Ni<Ei;){var to=xt[xn];to>Ei&&xt.splice(xn,1,Ei,xt[xn+1],to),xn+=2,Ni=Math.min(Ei,to)}if(Nr)if(Yn.opaque)xt.splice(jr,xn-jr,Ei,"overlay "+Nr),xn=jr+2;else for(;jr<xn;jr+=2){var Co=xt[jr+1];xt[jr+1]=(Co?Co+" ":"")+"overlay "+Nr}},ne),ft.state=Be,ft.baseTokens=null,ft.baseTokenPos=1},_e=0;_e<it.state.overlays.length;++_e)He(_e);return{styles:xt,classes:ne.bgClass||ne.textClass?ne:null}}function Zo(it,st,ft){if(!st.styles||st.styles[0]!=it.state.modeGen){var At=cs(it,sn(st)),xt=st.text.length>it.options.maxHighlightLength&&hi(it.doc.mode,At.state),ne=Ho(it,st,At);xt&&(At.state=xt),st.stateAfter=At.save(!xt),st.styles=ne.styles,ne.classes?st.styleClasses=ne.classes:st.styleClasses&&(st.styleClasses=null),ft===it.doc.highlightFrontier&&(it.doc.modeFrontier=Math.max(it.doc.modeFrontier,++it.doc.highlightFrontier))}return st.styles}function cs(it,st,ft){var At=it.doc,xt=it.display;if(!At.mode.startState)return new ei(At,!0,st);var ne=fo(it,st,ft),Be=ne>At.first&&ni(At,ne-1).stateAfter,He=Be?ei.fromSaved(At,Be,ne):new ei(At,gn(At.mode),ne);return At.iter(ne,st,function(_e){ri(it,_e.text,He);var un=He.line;_e.stateAfter=un==st-1||un%5==0||un>=xt.viewFrom&&un<xt.viewTo?He.save():null,He.nextLine()}),ft&&(At.modeFrontier=He.line),He}function ri(it,st,ft,At){var xt=it.doc.mode,ne=new Ve(st,it.options.tabSize,ft);for(ne.start=ne.pos=At||0,st==""&&or(xt,ft.state);!ne.eol();)Er(xt,ne,ft.state),ne.start=ne.pos}function or(it,st){if(it.blankLine)return it.blankLine(st);if(it.innerMode){var ft=en(it,st);if(ft.mode.blankLine)return ft.mode.blankLine(ft.state)}}function Er(it,st,ft,At){for(var xt=0;xt<10;xt++){At&&(At[0]=en(it,ft).mode);var ne=it.token(st,ft);if(st.pos>st.start)return ne}throw new Error("Mode "+it.name+" failed to advance stream.")}var no=function(it,st,ft){this.start=it.start,this.end=it.pos,this.string=it.current(),this.type=st||null,this.state=ft};function Lr(it,st,ft,At){var xt=it.doc,ne=xt.mode,Be;st=sr(xt,st);var He=ni(xt,st.line),_e=cs(it,st.line,ft),un=new Ve(He.text,it.options.tabSize,_e),Yn;for(At&&(Yn=[]);(At||un.pos<st.ch)&&!un.eol();)un.start=un.pos,Be=Er(ne,un,_e.state),At&&Yn.push(new no(un,Be,hi(xt.mode,_e.state)));return At?Yn:new no(un,Be,_e.state)}function Wr(it,st){if(it)for(;;){var ft=it.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ft)break;it=it.slice(0,ft.index)+it.slice(ft.index+ft[0].length);var At=ft[1]?"bgClass":"textClass";st[At]==null?st[At]=ft[2]:new RegExp("(?:^|\\s)"+ft[2]+"(?:$|\\s)").test(st[At])||(st[At]+=" "+ft[2])}return it}function wo(it,st,ft,At,xt,ne,Be){var He=ft.flattenSpans;He==null&&(He=it.options.flattenSpans);var _e=0,un=null,Yn=new Ve(st,it.options.tabSize,At),xn,Ni=it.options.addModeClass&&[null];for(st==""&&Wr(or(ft,At.state),ne);!Yn.eol();){if(Yn.pos>it.options.maxHighlightLength?(He=!1,Be&&ri(it,st,At,Yn.pos),Yn.pos=st.length,xn=null):xn=Wr(Er(ft,Yn,At.state,Ni),ne),Ni){var Ei=Ni[0].name;Ei&&(xn="m-"+(xn?Ei+" "+xn:Ei))}if(!He||un!=xn){for(;_e<Yn.start;)_e=Math.min(Yn.start,_e+5e3),xt(_e,un);un=xn}Yn.start=Yn.pos}for(;_e<Yn.pos;){var Nr=Math.min(Yn.pos,_e+5e3);xt(Nr,un),_e=Nr}}function fo(it,st,ft){for(var At,xt,ne=it.doc,Be=ft?-1:st-(it.doc.mode.innerMode?1e3:100),He=st;He>Be;--He){if(He<=ne.first)return ne.first;var _e=ni(ne,He-1),un=_e.stateAfter;if(un&&(!ft||He+(un instanceof Xr?un.lookAhead:0)<=ne.modeFrontier))return He;var Yn=we(_e.text,null,it.options.tabSize);(xt==null||At>Yn)&&(xt=He-1,At=Yn)}return xt}function xo(it,st){if(it.modeFrontier=Math.min(it.modeFrontier,st),!(it.highlightFrontier<st-10)){for(var ft=it.first,At=st-1;At>ft;At--){var xt=ni(it,At).stateAfter;if(xt&&(!(xt instanceof Xr)||At+xt.lookAhead<st)){ft=At+1;break}}it.highlightFrontier=Math.min(it.highlightFrontier,ft)}}var _r=!1,Ci=!1;function Qo(){_r=!0}function bi(){Ci=!0}function ns(it,st,ft){this.marker=it,this.from=st,this.to=ft}function qs(it,st){if(it)for(var ft=0;ft<it.length;++ft){var At=it[ft];if(At.marker==st)return At}}function fs(it,st){for(var ft,At=0;At<it.length;++At)it[At]!=st&&(ft||(ft=[])).push(it[At]);return ft}function Hs(it,st){it.markedSpans=it.markedSpans?it.markedSpans.concat([st]):[st],st.marker.attachLine(it)}function Gs(it,st,ft){var At;if(it)for(var xt=0;xt<it.length;++xt){var ne=it[xt],Be=ne.marker,He=ne.from==null||(Be.inclusiveLeft?ne.from<=st:ne.from<st);if(He||ne.from==st&&Be.type=="bookmark"&&(!ft||!ne.marker.insertLeft)){var _e=ne.to==null||(Be.inclusiveRight?ne.to>=st:ne.to>st);(At||(At=[])).push(new ns(Be,ne.from,_e?null:ne.to))}}return At}function si(it,st,ft){var At;if(it)for(var xt=0;xt<it.length;++xt){var ne=it[xt],Be=ne.marker,He=ne.to==null||(Be.inclusiveRight?ne.to>=st:ne.to>st);if(He||ne.from==st&&Be.type=="bookmark"&&(!ft||ne.marker.insertLeft)){var _e=ne.from==null||(Be.inclusiveLeft?ne.from<=st:ne.from<st);(At||(At=[])).push(new ns(Be,_e?null:ne.from-st,ne.to==null?null:ne.to-st))}}return At}function To(it,st){if(st.full)return null;var ft=Zi(it,st.from.line)&&ni(it,st.from.line).markedSpans,At=Zi(it,st.to.line)&&ni(it,st.to.line).markedSpans;if(!ft&&!At)return null;var xt=st.from.ch,ne=st.to.ch,Be=xi(st.from,st.to)==0,He=Gs(ft,xt,Be),_e=si(At,ne,Be),un=st.text.length==1,Yn=an(st.text).length+(un?xt:0);if(He)for(var xn=0;xn<He.length;++xn){var Ni=He[xn];if(Ni.to==null){var Ei=qs(_e,Ni.marker);Ei?un&&(Ni.to=Ei.to==null?null:Ei.to+Yn):Ni.to=xt}}if(_e)for(var Nr=0;Nr<_e.length;++Nr){var jr=_e[Nr];if(jr.to!=null&&(jr.to+=Yn),jr.from==null){var to=qs(He,jr.marker);to||(jr.from=Yn,un&&(He||(He=[])).push(jr))}else jr.from+=Yn,un&&(He||(He=[])).push(jr)}He&&(He=us(He)),_e&&_e!=He&&(_e=us(_e));var Co=[He];if(!un){var $o=st.text.length-2,Do;if($o>0&&He)for(var ss=0;ss<He.length;++ss)He[ss].to==null&&(Do||(Do=[])).push(new ns(He[ss].marker,null,null));for(var Ds=0;Ds<$o;++Ds)Co.push(Do);Co.push(_e)}return Co}function us(it){for(var st=0;st<it.length;++st){var ft=it[st];ft.from!=null&&ft.from==ft.to&&ft.marker.clearWhenEmpty!==!1&&it.splice(st--,1)}return it.length?it:null}function rs(it,st,ft){var At=null;if(it.iter(st.line,ft.line+1,function(Ei){if(Ei.markedSpans)for(var Nr=0;Nr<Ei.markedSpans.length;++Nr){var jr=Ei.markedSpans[Nr].marker;jr.readOnly&&(!At||Pe(At,jr)==-1)&&(At||(At=[])).push(jr)}}),!At)return null;for(var xt=[{from:st,to:ft}],ne=0;ne<At.length;++ne)for(var Be=At[ne],He=Be.find(0),_e=0;_e<xt.length;++_e){var un=xt[_e];if(!(xi(un.to,He.from)<0||xi(un.from,He.to)>0)){var Yn=[_e,1],xn=xi(un.from,He.from),Ni=xi(un.to,He.to);(xn<0||!Be.inclusiveLeft&&!xn)&&Yn.push({from:un.from,to:He.from}),(Ni>0||!Be.inclusiveRight&&!Ni)&&Yn.push({from:He.to,to:un.to}),xt.splice.apply(xt,Yn),_e+=Yn.length-3}}return xt}function Cr(it){var st=it.markedSpans;if(st){for(var ft=0;ft<st.length;++ft)st[ft].marker.detachLine(it);it.markedSpans=null}}function ke(it,st){if(st){for(var ft=0;ft<st.length;++ft)st[ft].marker.attachLine(it);it.markedSpans=st}}function ts(it){return it.inclusiveLeft?-1:0}function ta(it){return it.inclusiveRight?1:0}function qa(it,st){var ft=it.lines.length-st.lines.length;if(ft!=0)return ft;var At=it.find(),xt=st.find(),ne=xi(At.from,xt.from)||ts(it)-ts(st);if(ne)return-ne;var Be=xi(At.to,xt.to)||ta(it)-ta(st);return Be||st.id-it.id}function ol(it,st){var ft=Ci&&it.markedSpans,At;if(ft)for(var xt=void 0,ne=0;ne<ft.length;++ne)xt=ft[ne],xt.marker.collapsed&&(st?xt.from:xt.to)==null&&(!At||qa(At,xt.marker)<0)&&(At=xt.marker);return At}function ml(it){return ol(it,!0)}function yr(it){return ol(it,!1)}function $r(it,st){var ft=Ci&&it.markedSpans,At;if(ft)for(var xt=0;xt<ft.length;++xt){var ne=ft[xt];ne.marker.collapsed&&(ne.from==null||ne.from<st)&&(ne.to==null||ne.to>st)&&(!At||qa(At,ne.marker)<0)&&(At=ne.marker)}return At}function Jo(it,st,ft,At,xt){var ne=ni(it,st),Be=Ci&&ne.markedSpans;if(Be)for(var He=0;He<Be.length;++He){var _e=Be[He];if(_e.marker.collapsed){var un=_e.marker.find(0),Yn=xi(un.from,ft)||ts(_e.marker)-ts(xt),xn=xi(un.to,At)||ta(_e.marker)-ta(xt);if(!(Yn>=0&&xn<=0||Yn<=0&&xn>=0)&&(Yn<=0&&(_e.marker.inclusiveRight&&xt.inclusiveLeft?xi(un.to,ft)>=0:xi(un.to,ft)>0)||Yn>=0&&(_e.marker.inclusiveRight&&xt.inclusiveLeft?xi(un.from,At)<=0:xi(un.from,At)<0)))return!0}}}function Lo(it){for(var st;st=ml(it);)it=st.find(-1,!0).line;return it}function os(it){for(var st;st=yr(it);)it=st.find(1,!0).line;return it}function Fa(it){for(var st,ft;st=yr(it);)it=st.find(1,!0).line,(ft||(ft=[])).push(it);return ft}function lo(it,st){var ft=ni(it,st),At=Lo(ft);return ft==At?st:sn(At)}function vo(it,st){if(st>it.lastLine())return st;var ft=ni(it,st),At;if(!Ki(it,ft))return st;for(;At=yr(ft);)ft=At.find(1,!0).line;return sn(ft)+1}function Ki(it,st){var ft=Ci&&st.markedSpans;if(ft){for(var At=void 0,xt=0;xt<ft.length;++xt)if(At=ft[xt],!!At.marker.collapsed){if(At.from==null)return!0;if(!At.marker.widgetNode&&At.from==0&&At.marker.inclusiveLeft&&Eo(it,st,At))return!0}}}function Eo(it,st,ft){if(ft.to==null){var At=ft.marker.find(1,!0);return Eo(it,At.line,qs(At.line.markedSpans,ft.marker))}if(ft.marker.inclusiveRight&&ft.to==st.text.length)return!0;for(var xt=void 0,ne=0;ne<st.markedSpans.length;++ne)if(xt=st.markedSpans[ne],xt.marker.collapsed&&!xt.marker.widgetNode&&xt.from==ft.to&&(xt.to==null||xt.to!=ft.from)&&(xt.marker.inclusiveLeft||ft.marker.inclusiveRight)&&Eo(it,st,xt))return!0}function Es(it){it=Lo(it);for(var st=0,ft=it.parent,At=0;At<ft.lines.length;++At){var xt=ft.lines[At];if(xt==it)break;st+=xt.height}for(var ne=ft.parent;ne;ft=ne,ne=ft.parent)for(var Be=0;Be<ne.children.length;++Be){var He=ne.children[Be];if(He==ft)break;st+=He.height}return st}function la(it){if(it.height==0)return 0;for(var st=it.text.length,ft,At=it;ft=ml(At);){var xt=ft.find(0,!0);At=xt.from.line,st+=xt.from.ch-xt.to.ch}for(At=it;ft=yr(At);){var ne=ft.find(0,!0);st-=At.text.length-ne.from.ch,At=ne.to.line,st+=At.text.length-ne.to.ch}return st}function ca(it){var st=it.display,ft=it.doc;st.maxLine=ni(ft,ft.first),st.maxLineLength=la(st.maxLine),st.maxLineChanged=!0,ft.iter(function(At){var xt=la(At);xt>st.maxLineLength&&(st.maxLineLength=xt,st.maxLine=At)})}var zo=function(it,st,ft){this.text=it,ke(this,st),this.height=ft?ft(this):1};zo.prototype.lineNo=function(){return sn(this)},dr(zo);function Vs(it,st,ft,At){it.text=st,it.stateAfter&&(it.stateAfter=null),it.styles&&(it.styles=null),it.order!=null&&(it.order=null),Cr(it),ke(it,ft);var xt=At?At(it):1;xt!=it.height&&tr(it,xt)}function Ka(it){it.parent=null,Cr(it)}var Wl={},La={};function vs(it,st){if(!it||/^\s*$/.test(it))return null;var ft=st.addModeClass?La:Wl;return ft[it]||(ft[it]=it.replace(/\S+/g,"cm-$&"))}function ai(it,st){var ft=Fe("span",null,null,Lt?"padding-right: .1px":null),At={pre:Fe("pre",[ft],"CodeMirror-line"),content:ft,col:0,pos:0,cm:it,trailingSpace:!1,splitSpaces:it.getOption("lineWrapping")};st.measure={};for(var xt=0;xt<=(st.rest?st.rest.length:0);xt++){var ne=xt?st.rest[xt-1]:st.line,Be=void 0;At.pos=0,At.addToken=bc,Ts(it.display.measure)&&(Be=xe(ne,it.doc.direction))&&(At.addToken=Th(At.addToken,Be)),At.map=[];var He=st!=it.display.externalMeasured&&sn(ne);Wc(ne,At,Zo(it,ne,He)),ne.styleClasses&&(ne.styleClasses.bgClass&&(At.bgClass=Ge(ne.styleClasses.bgClass,At.bgClass||"")),ne.styleClasses.textClass&&(At.textClass=Ge(ne.styleClasses.textClass,At.textClass||""))),At.map.length==0&&At.map.push(0,0,At.content.appendChild(Xo(it.display.measure))),xt==0?(st.measure.map=At.map,st.measure.cache={}):((st.measure.maps||(st.measure.maps=[])).push(At.map),(st.measure.caches||(st.measure.caches=[])).push({}))}if(Lt){var _e=At.content.lastChild;(/\bcm-tab\b/.test(_e.className)||_e.querySelector&&_e.querySelector(".cm-tab"))&&(At.content.className="cm-tab-wrap-hack")}return bn(it,"renderLine",it,st.line,At.pre),At.pre.className&&(At.textClass=Ge(At.pre.className,At.textClass||"")),At}function Ta(it){var st=Ae("span","\u2022","cm-invalidchar");return st.title="\\u"+it.charCodeAt(0).toString(16),st.setAttribute("aria-label",st.title),st}function bc(it,st,ft,At,xt,ne,Be){if(st){var He=it.splitSpaces?Vl(st,it.trailingSpace):st,_e=it.cm.state.specialChars,un=!1,Yn;if(!_e.test(st))it.col+=st.length,Yn=document.createTextNode(He),it.map.push(it.pos,it.pos+st.length,Yn),ie&&ae<9&&(un=!0),it.pos+=st.length;else{Yn=document.createDocumentFragment();for(var xn=0;;){_e.lastIndex=xn;var Ni=_e.exec(st),Ei=Ni?Ni.index-xn:st.length-xn;if(Ei){var Nr=document.createTextNode(He.slice(xn,xn+Ei));ie&&ae<9?Yn.appendChild(Ae("span",[Nr])):Yn.appendChild(Nr),it.map.push(it.pos,it.pos+Ei,Nr),it.col+=Ei,it.pos+=Ei}if(!Ni)break;xn+=Ei+1;var jr=void 0;if(Ni[0]==" "){var to=it.cm.options.tabSize,Co=to-it.col%to;jr=Yn.appendChild(Ae("span",Si(Co),"cm-tab")),jr.setAttribute("role","presentation"),jr.setAttribute("cm-text"," "),it.col+=Co}else Ni[0]=="\r"||Ni[0]==`
|
|
|
`?(jr=Yn.appendChild(Ae("span",Ni[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),jr.setAttribute("cm-text",Ni[0]),it.col+=1):(jr=it.cm.options.specialCharPlaceholder(Ni[0]),jr.setAttribute("cm-text",Ni[0]),ie&&ae<9?Yn.appendChild(Ae("span",[jr])):Yn.appendChild(jr),it.col+=1);it.map.push(it.pos,it.pos+1,jr),it.pos++}}if(it.trailingSpace=He.charCodeAt(st.length-1)==32,ft||At||xt||un||ne||Be){var $o=ft||"";At&&($o+=At),xt&&($o+=xt);var Do=Ae("span",[Yn],$o,ne);if(Be)for(var ss in Be)Be.hasOwnProperty(ss)&&ss!="style"&&ss!="class"&&Do.setAttribute(ss,Be[ss]);return it.content.appendChild(Do)}it.content.appendChild(Yn)}}function Vl(it,st){if(it.length>1&&!/ /.test(it))return it;for(var ft=st,At="",xt=0;xt<it.length;xt++){var ne=it.charAt(xt);ne==" "&&ft&&(xt==it.length-1||it.charCodeAt(xt+1)==32)&&(ne="\xA0"),At+=ne,ft=ne==" "}return At}function Th(it,st){return function(ft,At,xt,ne,Be,He,_e){xt=xt?xt+" cm-force-border":"cm-force-border";for(var un=ft.pos,Yn=un+At.length;;){for(var xn=void 0,Ni=0;Ni<st.length&&(xn=st[Ni],!(xn.to>un&&xn.from<=un));Ni++);if(xn.to>=Yn)return it(ft,At,xt,ne,Be,He,_e);it(ft,At.slice(0,xn.to-un),xt,ne,null,He,_e),ne=null,At=At.slice(xn.to-un),un=xn.to}}}function sl(it,st,ft,At){var xt=!At&&ft.widgetNode;xt&&it.map.push(it.pos,it.pos+st,xt),!At&&it.cm.display.input.needsContentAttribute&&(xt||(xt=it.content.appendChild(document.createElement("span"))),xt.setAttribute("cm-marker",ft.id)),xt&&(it.cm.display.input.setUneditable(xt),it.content.appendChild(xt)),it.pos+=st,it.trailingSpace=!1}function Wc(it,st,ft){var At=it.markedSpans,xt=it.text,ne=0;if(!At){for(var Be=1;Be<ft.length;Be+=2)st.addToken(st,xt.slice(ne,ne=ft[Be]),vs(ft[Be+1],st.cm.options));return}for(var He=xt.length,_e=0,un=1,Yn="",xn,Ni,Ei=0,Nr,jr,to,Co,$o;;){if(Ei==_e){Nr=jr=to=Ni="",$o=null,Co=null,Ei=1/0;for(var Do=[],ss=void 0,Ds=0;Ds<At.length;++Ds){var jo=At[Ds],Js=jo.marker;if(Js.type=="bookmark"&&jo.from==_e&&Js.widgetNode)Do.push(Js);else if(jo.from<=_e&&(jo.to==null||jo.to>_e||Js.collapsed&&jo.to==_e&&jo.from==_e)){if(jo.to!=null&&jo.to!=_e&&Ei>jo.to&&(Ei=jo.to,jr=""),Js.className&&(Nr+=" "+Js.className),Js.css&&(Ni=(Ni?Ni+";":"")+Js.css),Js.startStyle&&jo.from==_e&&(to+=" "+Js.startStyle),Js.endStyle&&jo.to==Ei&&(ss||(ss=[])).push(Js.endStyle,jo.to),Js.title&&(($o||($o={})).title=Js.title),Js.attributes)for(var _l in Js.attributes)($o||($o={}))[_l]=Js.attributes[_l];Js.collapsed&&(!Co||qa(Co.marker,Js)<0)&&(Co=jo)}else jo.from>_e&&Ei>jo.from&&(Ei=jo.from)}if(ss)for(var $l=0;$l<ss.length;$l+=2)ss[$l+1]==Ei&&(jr+=" "+ss[$l]);if(!Co||Co.from==_e)for(var fl=0;fl<Do.length;++fl)sl(st,0,Do[fl]);if(Co&&(Co.from||0)==_e){if(sl(st,(Co.to==null?He+1:Co.to)-_e,Co.marker,Co.from==null),Co.to==null)return;Co.to==_e&&(Co=!1)}}if(_e>=He)break;for(var Ja=Math.min(He,Ei);;){if(Yn){var Ua=_e+Yn.length;if(!Co){var Za=Ua>Ja?Yn.slice(0,Ja-_e):Yn;st.addToken(st,Za,xn?xn+Nr:Nr,to,_e+Za.length==Ei?jr:"",Ni,$o)}if(Ua>=Ja){Yn=Yn.slice(Ja-_e),_e=Ja;break}_e=Ua,to=""}Yn=xt.slice(ne,ne=ft[un++]),xn=vs(ft[un++],st.cm.options)}}}function Fl(it,st,ft){this.line=st,this.rest=Fa(st),this.size=this.rest?sn(an(this.rest))-ft+1:1,this.node=this.text=null,this.hidden=Ki(it,st)}function Is(it,st,ft){for(var At=[],xt,ne=st;ne<ft;ne=xt){var Be=new Fl(it.doc,ni(it.doc,ne),ne);xt=ne+Be.size,At.push(Be)}return At}var ia=null;function Ph(it){ia?ia.ops.push(it):it.ownsGroup=ia={ops:[it],delayedCallbacks:[]}}function is(it){var st=it.delayedCallbacks,ft=0;do{for(;ft<st.length;ft++)st[ft].call(null);for(var At=0;At<it.ops.length;At++){var xt=it.ops[At];if(xt.cursorActivityHandlers)for(;xt.cursorActivityCalled<xt.cursorActivityHandlers.length;)xt.cursorActivityHandlers[xt.cursorActivityCalled++].call(null,xt.cm)}}while(ft<st.length)}function Zs(it,st){var ft=it.ownsGroup;if(ft)try{is(ft)}finally{ia=null,st(ft)}}var ys=null;function Hr(it,st){var ft=fn(it,st);if(ft.length){var At=Array.prototype.slice.call(arguments,2),xt;ia?xt=ia.delayedCallbacks:ys?xt=ys:(xt=ys=[],setTimeout(Tl,0));for(var ne=function(He){xt.push(function(){return ft[He].apply(null,At)})},Be=0;Be<ft.length;++Be)ne(Be)}}function Tl(){var it=ys;ys=null;for(var st=0;st<it.length;++st)it[st]()}function Ol(it,st,ft,At){for(var xt=0;xt<st.changes.length;xt++){var ne=st.changes[xt];ne=="text"?xr(it,st):ne=="gutter"?Oa(it,st,ft,At):ne=="class"?Ma(it,st):ne=="widget"&&Bl(it,st,At)}st.changes=null}function Ao(it){return it.node==it.text&&(it.node=Ae("div",null,null,"position: relative"),it.text.parentNode&&it.text.parentNode.replaceChild(it.node,it.text),it.node.appendChild(it.text),ie&&ae<8&&(it.node.style.zIndex=2)),it.node}function Ns(it,st){var ft=st.bgClass?st.bgClass+" "+(st.line.bgClass||""):st.line.bgClass;if(ft&&(ft+=" CodeMirror-linebackground"),st.background)ft?st.background.className=ft:(st.background.parentNode.removeChild(st.background),st.background=null);else if(ft){var At=Ao(st);st.background=At.insertBefore(Ae("div",null,ft),At.firstChild),it.display.input.setUneditable(st.background)}}function da(it,st){var ft=it.display.externalMeasured;return ft&&ft.line==st.line?(it.display.externalMeasured=null,st.measure=ft.measure,ft.built):ai(it,st)}function xr(it,st){var ft=st.text.className,At=da(it,st);st.text==st.node&&(st.node=At.pre),st.text.parentNode.replaceChild(At.pre,st.text),st.text=At.pre,At.bgClass!=st.bgClass||At.textClass!=st.textClass?(st.bgClass=At.bgClass,st.textClass=At.textClass,Ma(it,st)):ft&&(st.text.className=ft)}function Ma(it,st){Ns(it,st),st.line.wrapClass?Ao(st).className=st.line.wrapClass:st.node!=st.text&&(st.node.className="");var ft=st.textClass?st.textClass+" "+(st.line.textClass||""):st.line.textClass;st.text.className=ft||""}function Oa(it,st,ft,At){if(st.gutter&&(st.node.removeChild(st.gutter),st.gutter=null),st.gutterBackground&&(st.node.removeChild(st.gutterBackground),st.gutterBackground=null),st.line.gutterClass){var xt=Ao(st);st.gutterBackground=Ae("div",null,"CodeMirror-gutter-background "+st.line.gutterClass,"left: "+(it.options.fixedGutter?At.fixedPos:-At.gutterTotalWidth)+"px; width: "+At.gutterTotalWidth+"px"),it.display.input.setUneditable(st.gutterBackground),xt.insertBefore(st.gutterBackground,st.text)}var ne=st.line.gutterMarkers;if(it.options.lineNumbers||ne){var Be=Ao(st),He=st.gutter=Ae("div",null,"CodeMirror-gutter-wrapper","left: "+(it.options.fixedGutter?At.fixedPos:-At.gutterTotalWidth)+"px");if(it.display.input.setUneditable(He),Be.insertBefore(He,st.text),st.line.gutterClass&&(He.className+=" "+st.line.gutterClass),it.options.lineNumbers&&(!ne||!ne["CodeMirror-linenumbers"])&&(st.lineNumber=He.appendChild(Ae("div",Tr(it.options,ft),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+At.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+it.display.lineNumInnerWidth+"px"))),ne)for(var _e=0;_e<it.display.gutterSpecs.length;++_e){var un=it.display.gutterSpecs[_e].className,Yn=ne.hasOwnProperty(un)&&ne[un];Yn&&He.appendChild(Ae("div",[Yn],"CodeMirror-gutter-elt","left: "+At.gutterLeft[un]+"px; width: "+At.gutterWidth[un]+"px"))}}}function Bl(it,st,ft){st.alignable&&(st.alignable=null);for(var At=Tt("CodeMirror-linewidget"),xt=st.node.firstChild,ne=void 0;xt;xt=ne)ne=xt.nextSibling,At.test(xt.className)&&st.node.removeChild(xt);au(it,st,ft)}function su(it,st,ft,At){var xt=da(it,st);return st.text=st.node=xt.pre,xt.bgClass&&(st.bgClass=xt.bgClass),xt.textClass&&(st.textClass=xt.textClass),Ma(it,st),Oa(it,st,ft,At),au(it,st,At),st.node}function au(it,st,ft){if(Yo(it,st.line,st,ft,!0),st.rest)for(var At=0;At<st.rest.length;At++)Yo(it,st.rest[At],st,ft,!1)}function Yo(it,st,ft,At,xt){if(st.widgets)for(var ne=Ao(ft),Be=0,He=st.widgets;Be<He.length;++Be){var _e=He[Be],un=Ae("div",[_e.node],"CodeMirror-linewidget"+(_e.className?" "+_e.className:""));_e.handleMouseEvents||un.setAttribute("cm-ignore-events","true"),va(_e,un,ft,At),it.display.input.setUneditable(un),xt&&_e.above?ne.insertBefore(un,ft.gutter||ft.text):ne.appendChild(un),Hr(_e,"redraw")}}function va(it,st,ft,At){if(it.noHScroll){(ft.alignable||(ft.alignable=[])).push(st);var xt=At.wrapperWidth;st.style.left=At.fixedPos+"px",it.coverGutter||(xt-=At.gutterTotalWidth,st.style.paddingLeft=At.gutterTotalWidth+"px"),st.style.width=xt+"px"}it.coverGutter&&(st.style.zIndex=5,st.style.position="relative",it.noHScroll||(st.style.marginLeft=-At.gutterTotalWidth+"px"))}function Cs(it){if(it.height!=null)return it.height;var st=it.doc.cm;if(!st)return 0;if(!We(document.body,it.node)){var ft="position: relative;";it.coverGutter&&(ft+="margin-left: -"+st.display.gutters.offsetWidth+"px;"),it.noHScroll&&(ft+="width: "+st.display.wrapper.clientWidth+"px;"),he(st.display.measure,Ae("div",[it.node],null,ft))}return it.height=it.node.parentNode.offsetHeight}function lu(it,st){for(var ft=pr(st);ft!=it.wrapper;ft=ft.parentNode)if(!ft||ft.nodeType==1&&ft.getAttribute("cm-ignore-events")=="true"||ft.parentNode==it.sizer&&ft!=it.mover)return!0}function Ll(it){return it.lineSpace.offsetTop}function Ml(it){return it.mover.offsetHeight-it.lineSpace.offsetHeight}function tl(it){if(it.cachedPaddingH)return it.cachedPaddingH;var st=he(it.measure,Ae("pre","x","CodeMirror-line-like")),ft=window.getComputedStyle?window.getComputedStyle(st):st.currentStyle,At={left:parseInt(ft.paddingLeft),right:parseInt(ft.paddingRight)};return!isNaN(At.left)&&!isNaN(At.right)&&(it.cachedPaddingH=At),At}function tu(it){return En-it.display.nativeBarWidth}function Pl(it){return it.display.scroller.clientWidth-tu(it)-it.display.barWidth}function Io(it){return it.display.scroller.clientHeight-tu(it)-it.display.barHeight}function dc(it,st,ft){var At=it.options.lineWrapping,xt=At&&Pl(it);if(!st.measure.heights||At&&st.measure.width!=xt){var ne=st.measure.heights=[];if(At){st.measure.width=xt;for(var Be=st.text.firstChild.getClientRects(),He=0;He<Be.length-1;He++){var _e=Be[He],un=Be[He+1];Math.abs(_e.bottom-un.bottom)>2&&ne.push((_e.bottom+un.top)/2-ft.top)}}ne.push(ft.bottom-ft.top)}}function al(it,st,ft){if(it.line==st)return{map:it.measure.map,cache:it.measure.cache};for(var At=0;At<it.rest.length;At++)if(it.rest[At]==st)return{map:it.measure.maps[At],cache:it.measure.caches[At]};for(var xt=0;xt<it.rest.length;xt++)if(sn(it.rest[xt])>ft)return{map:it.measure.maps[xt],cache:it.measure.caches[xt],before:!0}}function zu(it,st){st=Lo(st);var ft=sn(st),At=it.display.externalMeasured=new Fl(it.doc,st,ft);At.lineN=ft;var xt=At.built=ai(it,At);return At.text=xt.pre,he(it.display.lineMeasure,xt.pre),At}function hh(it,st,ft,At){return ih(it,Ga(it,st),ft,At)}function dh(it,st){if(st>=it.display.viewFrom&&st<it.display.viewTo)return it.display.view[Ku(it,st)];var ft=it.display.externalMeasured;if(ft&&st>=ft.lineN&&st<ft.lineN+ft.size)return ft}function Ga(it,st){var ft=sn(st),At=dh(it,ft);At&&!At.text?At=null:At&&At.changes&&(Ol(it,At,ft,_A(it)),it.curOp.forceUpdate=!0),At||(At=zu(it,st));var xt=al(At,st,ft);return{line:st,view:At,rect:null,map:xt.map,cache:xt.cache,before:xt.before,hasHeights:!1}}function ih(it,st,ft,At,xt){st.before&&(ft=-1);var ne=ft+(At||""),Be;return st.cache.hasOwnProperty(ne)?Be=st.cache[ne]:(st.rect||(st.rect=st.view.text.getBoundingClientRect()),st.hasHeights||(dc(it,st.view,st.rect),st.hasHeights=!0),Be=Bs(it,st,ft,At),Be.bogus||(st.cache[ne]=Be)),{left:Be.left,right:Be.right,top:xt?Be.rtop:Be.top,bottom:xt?Be.rbottom:Be.bottom}}var Ec={left:0,right:0,top:0,bottom:0};function Vc(it,st,ft){for(var At,xt,ne,Be,He,_e,un=0;un<it.length;un+=3)if(He=it[un],_e=it[un+1],st<He?(xt=0,ne=1,Be="left"):st<_e?(xt=st-He,ne=xt+1):(un==it.length-3||st==_e&&it[un+3]>st)&&(ne=_e-He,xt=ne-1,st>=_e&&(Be="right")),xt!=null){if(At=it[un+2],He==_e&&ft==(At.insertLeft?"left":"right")&&(Be=ft),ft=="left"&&xt==0)for(;un&&it[un-2]==it[un-3]&&it[un-1].insertLeft;)At=it[(un-=3)+2],Be="left";if(ft=="right"&&xt==_e-He)for(;un<it.length-3&&it[un+3]==it[un+4]&&!it[un+5].insertLeft;)At=it[(un+=3)+2],Be="right";break}return{node:At,start:xt,end:ne,collapse:Be,coverStart:He,coverEnd:_e}}function Zc(it,st){var ft=Ec;if(st=="left")for(var At=0;At<it.length&&(ft=it[At]).left==ft.right;At++);else for(var xt=it.length-1;xt>=0&&(ft=it[xt]).left==ft.right;xt--);return ft}function Bs(it,st,ft,At){var xt=Vc(st.map,ft,At),ne=xt.node,Be=xt.start,He=xt.end,_e=xt.collapse,un;if(ne.nodeType==3){for(var Yn=0;Yn<4;Yn++){for(;Be&&De(st.line.text.charAt(xt.coverStart+Be));)--Be;for(;xt.coverStart+He<xt.coverEnd&&De(st.line.text.charAt(xt.coverStart+He));)++He;if(ie&&ae<9&&Be==0&&He==xt.coverEnd-xt.coverStart?un=ne.parentNode.getBoundingClientRect():un=Zc(ee(ne,Be,He).getClientRects(),At),un.left||un.right||Be==0)break;He=Be,Be=Be-1,_e="right"}ie&&ae<11&&(un=ya(it.display.measure,un))}else{Be>0&&(_e=At="right");var xn;it.options.lineWrapping&&(xn=ne.getClientRects()).length>1?un=xn[At=="right"?xn.length-1:0]:un=ne.getBoundingClientRect()}if(ie&&ae<9&&!Be&&(!un||!un.left&&!un.right)){var Ni=ne.parentNode.getClientRects()[0];Ni?un={left:Ni.left,right:Ni.left+fh(it.display),top:Ni.top,bottom:Ni.bottom}:un=Ec}for(var Ei=un.top-st.rect.top,Nr=un.bottom-st.rect.top,jr=(Ei+Nr)/2,to=st.view.measure.heights,Co=0;Co<to.length-1&&!(jr<to[Co]);Co++);var $o=Co?to[Co-1]:0,Do=to[Co],ss={left:(_e=="right"?un.right:un.left)-st.rect.left,right:(_e=="left"?un.left:un.right)-st.rect.left,top:$o,bottom:Do};return!un.left&&!un.right&&(ss.bogus=!0),it.options.singleCursorHeightPerLine||(ss.rtop=Ei,ss.rbottom=Nr),ss}function ya(it,st){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Ms(it))return st;var ft=screen.logicalXDPI/screen.deviceXDPI,At=screen.logicalYDPI/screen.deviceYDPI;return{left:st.left*ft,right:st.right*ft,top:st.top*At,bottom:st.bottom*At}}function Mu(it){if(it.measure&&(it.measure.cache={},it.measure.heights=null,it.rest))for(var st=0;st<it.rest.length;st++)it.measure.caches[st]={}}function el(it){it.display.externalMeasure=null,re(it.display.lineMeasure);for(var st=0;st<it.display.view.length;st++)Mu(it.display.view[st])}function ll(it){el(it),it.display.cachedCharWidth=it.display.cachedTextHeight=it.display.cachedPaddingH=null,it.options.lineWrapping||(it.display.maxLineChanged=!0),it.display.lineNumChars=null}function Wa(){return Jt&&et?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Aa(){return Jt&&et?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function nl(it){var st=0;if(it.widgets)for(var ft=0;ft<it.widgets.length;++ft)it.widgets[ft].above&&(st+=Cs(it.widgets[ft]));return st}function Dl(it,st,ft,At,xt){if(!xt){var ne=nl(st);ft.top+=ne,ft.bottom+=ne}if(At=="line")return ft;At||(At="local");var Be=Es(st);if(At=="local"?Be+=Ll(it.display):Be-=it.display.viewOffset,At=="page"||At=="window"){var He=it.display.lineSpace.getBoundingClientRect();Be+=He.top+(At=="window"?0:Aa());var _e=He.left+(At=="window"?0:Wa());ft.left+=_e,ft.right+=_e}return ft.top+=Be,ft.bottom+=Be,ft}function Ac(it,st,ft){if(ft=="div")return st;var At=st.left,xt=st.top;if(ft=="page")At-=Wa(),xt-=Aa();else if(ft=="local"||!ft){var ne=it.display.sizer.getBoundingClientRect();At+=ne.left,xt+=ne.top}var Be=it.display.lineSpace.getBoundingClientRect();return{left:At-Be.left,top:xt-Be.top}}function rh(it,st,ft,At,xt){return At||(At=ni(it.doc,st.line)),Dl(it,At,hh(it,At,st.ch,xt),ft)}function cl(it,st,ft,At,xt,ne){At=At||ni(it.doc,st.line),xt||(xt=Ga(it,At));function Be(Nr,jr){var to=ih(it,xt,Nr,jr?"right":"left",ne);return jr?to.left=to.right:to.right=to.left,Dl(it,At,to,ft)}var He=xe(At,it.doc.direction),_e=st.ch,un=st.sticky;if(_e>=At.text.length?(_e=At.text.length,un="before"):_e<=0&&(_e=0,un="after"),!He)return Be(un=="before"?_e-1:_e,un=="before");function Yn(Nr,jr,to){var Co=He[jr],$o=Co.level==1;return Be(to?Nr-1:Nr,$o!=to)}var xn=yt(He,_e,un),Ni=Ct,Ei=Yn(_e,xn,un=="before");return Ni!=null&&(Ei.other=Yn(_e,Ni,un!="before")),Ei}function Ud(it,st){var ft=0;st=sr(it.doc,st),it.options.lineWrapping||(ft=fh(it.display)*st.ch);var At=ni(it.doc,st.line),xt=Es(At)+Ll(it.display);return{left:ft,right:ft,top:xt,bottom:xt+At.height}}function od(it,st,ft,At,xt){var ne=ii(it,st,ft);return ne.xRel=xt,At&&(ne.outside=At),ne}function Ah(it,st,ft){var At=it.doc;if(ft+=it.display.viewOffset,ft<0)return od(At.first,0,null,-1,-1);var xt=fi(At,ft),ne=At.first+At.size-1;if(xt>ne)return od(At.first+At.size-1,ni(At,ne).text.length,null,1,1);st<0&&(st=0);for(var Be=ni(At,xt);;){var He=$i(it,Be,xt,st,ft),_e=$r(Be,He.ch+(He.xRel>0||He.outside>0?1:0));if(!_e)return He;var un=_e.find(1);if(un.line==xt)return un;Be=ni(At,xt=un.line)}}function Ko(it,st,ft,At){At-=nl(st);var xt=st.text.length,ne=Ce(function(Be){return ih(it,ft,Be-1).bottom<=At},xt,0);return xt=Ce(function(Be){return ih(it,ft,Be).top>At},ne,xt),{begin:ne,end:xt}}function sA(it,st,ft,At){ft||(ft=Ga(it,st));var xt=Dl(it,st,ih(it,ft,At),"line").top;return Ko(it,st,ft,xt)}function Ln(it,st,ft,At){return it.bottom<=ft?!1:it.top>ft?!0:(At?it.left:it.right)>st}function $i(it,st,ft,At,xt){xt-=Es(st);var ne=Ga(it,st),Be=nl(st),He=0,_e=st.text.length,un=!0,Yn=xe(st,it.doc.direction);if(Yn){var xn=(it.options.lineWrapping?tc:aA)(it,st,ft,ne,Yn,At,xt);un=xn.level!=1,He=un?xn.from:xn.to-1,_e=un?xn.to:xn.from-1}var Ni=null,Ei=null,Nr=Ce(function(Ds){var jo=ih(it,ne,Ds);return jo.top+=Be,jo.bottom+=Be,Ln(jo,At,xt,!1)?(jo.top<=xt&&jo.left<=At&&(Ni=Ds,Ei=jo),!0):!1},He,_e),jr,to,Co=!1;if(Ei){var $o=At-Ei.left<Ei.right-At,Do=$o==un;Nr=Ni+(Do?0:1),to=Do?"after":"before",jr=$o?Ei.left:Ei.right}else{!un&&(Nr==_e||Nr==He)&&Nr++,to=Nr==0?"after":Nr==st.text.length?"before":ih(it,ne,Nr-(un?1:0)).bottom+Be<=xt==un?"after":"before";var ss=cl(it,ii(ft,Nr,to),"line",st,ne);jr=ss.left,Co=xt<ss.top?-1:xt>=ss.bottom?1:0}return Nr=fe(st.text,Nr,1),od(ft,Nr,to,Co,At-jr)}function aA(it,st,ft,At,xt,ne,Be){var He=Ce(function(xn){var Ni=xt[xn],Ei=Ni.level!=1;return Ln(cl(it,ii(ft,Ei?Ni.to:Ni.from,Ei?"before":"after"),"line",st,At),ne,Be,!0)},0,xt.length-1),_e=xt[He];if(He>0){var un=_e.level!=1,Yn=cl(it,ii(ft,un?_e.from:_e.to,un?"after":"before"),"line",st,At);Ln(Yn,ne,Be,!0)&&Yn.top>Be&&(_e=xt[He-1])}return _e}function tc(it,st,ft,At,xt,ne,Be){var He=Ko(it,st,At,Be),_e=He.begin,un=He.end;/\s/.test(st.text.charAt(un-1))&&un--;for(var Yn=null,xn=null,Ni=0;Ni<xt.length;Ni++){var Ei=xt[Ni];if(!(Ei.from>=un||Ei.to<=_e)){var Nr=Ei.level!=1,jr=ih(it,At,Nr?Math.min(un,Ei.to)-1:Math.max(_e,Ei.from)).right,to=jr<ne?ne-jr+1e9:jr-ne;(!Yn||xn>to)&&(Yn=Ei,xn=to)}}return Yn||(Yn=xt[xt.length-1]),Yn.from<_e&&(Yn={from:_e,to:Yn.to,level:Yn.level}),Yn.to>un&&(Yn={from:Yn.from,to:un,level:Yn.level}),Yn}var ju;function Uu(it){if(it.cachedTextHeight!=null)return it.cachedTextHeight;if(ju==null){ju=Ae("pre",null,"CodeMirror-line-like");for(var st=0;st<49;++st)ju.appendChild(document.createTextNode("x")),ju.appendChild(Ae("br"));ju.appendChild(document.createTextNode("x"))}he(it.measure,ju);var ft=ju.offsetHeight/50;return ft>3&&(it.cachedTextHeight=ft),re(it.measure),ft||1}function fh(it){if(it.cachedCharWidth!=null)return it.cachedCharWidth;var st=Ae("span","xxxxxxxxxx"),ft=Ae("pre",[st],"CodeMirror-line-like");he(it.measure,ft);var At=st.getBoundingClientRect(),xt=(At.right-At.left)/10;return xt>2&&(it.cachedCharWidth=xt),xt||10}function _A(it){for(var st=it.display,ft={},At={},xt=st.gutters.clientLeft,ne=st.gutters.firstChild,Be=0;ne;ne=ne.nextSibling,++Be){var He=it.display.gutterSpecs[Be].className;ft[He]=ne.offsetLeft+ne.clientLeft+xt,At[He]=ne.clientWidth}return{fixedPos:sd(st),gutterTotalWidth:st.gutters.offsetWidth,gutterLeft:ft,gutterWidth:At,wrapperWidth:st.wrapper.clientWidth}}function sd(it){return it.scroller.getBoundingClientRect().left-it.sizer.getBoundingClientRect().left}function il(it){var st=Uu(it.display),ft=it.options.lineWrapping,At=ft&&Math.max(5,it.display.scroller.clientWidth/fh(it.display)-3);return function(xt){if(Ki(it.doc,xt))return 0;var ne=0;if(xt.widgets)for(var Be=0;Be<xt.widgets.length;Be++)xt.widgets[Be].height&&(ne+=xt.widgets[Be].height);return ft?ne+(Math.ceil(xt.text.length/At)||1)*st:ne+st}}function gs(it){var st=it.doc,ft=il(it);st.iter(function(At){var xt=ft(At);xt!=At.height&&tr(At,xt)})}function Xu(it,st,ft,At){var xt=it.display;if(!ft&&pr(st).getAttribute("cm-not-content")=="true")return null;var ne,Be,He=xt.lineSpace.getBoundingClientRect();try{ne=st.clientX-He.left,Be=st.clientY-He.top}catch(xn){return null}var _e=Ah(it,ne,Be),un;if(At&&_e.xRel>0&&(un=ni(it.doc,_e.line).text).length==_e.ch){var Yn=we(un,un.length,it.options.tabSize)-un.length;_e=ii(_e.line,Math.max(0,Math.round((ne-tl(it.display).left)/fh(it.display))-Yn))}return _e}function Ku(it,st){if(st>=it.display.viewTo||(st-=it.display.viewFrom,st<0))return null;for(var ft=it.display.view,At=0;At<ft.length;At++)if(st-=ft[At].size,st<0)return At}function bl(it,st,ft,At){st==null&&(st=it.doc.first),ft==null&&(ft=it.doc.first+it.doc.size),At||(At=0);var xt=it.display;if(At&&ft<xt.viewTo&&(xt.updateLineNumbers==null||xt.updateLineNumbers>st)&&(xt.updateLineNumbers=st),it.curOp.viewChanged=!0,st>=xt.viewTo)Ci&&lo(it.doc,st)<xt.viewTo&&pu(it);else if(ft<=xt.viewFrom)Ci&&vo(it.doc,ft+At)>xt.viewFrom?pu(it):(xt.viewFrom+=At,xt.viewTo+=At);else if(st<=xt.viewFrom&&ft>=xt.viewTo)pu(it);else if(st<=xt.viewFrom){var ne=gh(it,ft,ft+At,1);ne?(xt.view=xt.view.slice(ne.index),xt.viewFrom=ne.lineN,xt.viewTo+=At):pu(it)}else if(ft>=xt.viewTo){var Be=gh(it,st,st,-1);Be?(xt.view=xt.view.slice(0,Be.index),xt.viewTo=Be.lineN):pu(it)}else{var He=gh(it,st,st,-1),_e=gh(it,ft,ft+At,1);He&&_e?(xt.view=xt.view.slice(0,He.index).concat(Is(it,He.lineN,_e.lineN)).concat(xt.view.slice(_e.index)),xt.viewTo+=At):pu(it)}var un=xt.externalMeasured;un&&(ft<un.lineN?un.lineN+=At:st<un.lineN+un.size&&(xt.externalMeasured=null))}function sa(it,st,ft){it.curOp.viewChanged=!0;var At=it.display,xt=it.display.externalMeasured;if(xt&&st>=xt.lineN&&st<xt.lineN+xt.size&&(At.externalMeasured=null),!(st<At.viewFrom||st>=At.viewTo)){var ne=At.view[Ku(it,st)];if(ne.node!=null){var Be=ne.changes||(ne.changes=[]);Pe(Be,ft)==-1&&Be.push(ft)}}}function pu(it){it.display.viewFrom=it.display.viewTo=it.doc.first,it.display.view=[],it.display.viewOffset=0}function gh(it,st,ft,At){var xt=Ku(it,st),ne,Be=it.display.view;if(!Ci||ft==it.doc.first+it.doc.size)return{index:xt,lineN:ft};for(var He=it.display.viewFrom,_e=0;_e<xt;_e++)He+=Be[_e].size;if(He!=st){if(At>0){if(xt==Be.length-1)return null;ne=He+Be[xt].size-st,xt++}else ne=He-st;st+=ne,ft+=ne}for(;lo(it.doc,ft)!=ft;){if(xt==(At<0?0:Be.length-1))return null;ft+=At*Be[xt-(At<0?1:0)].size,xt+=At}return{index:xt,lineN:ft}}function xl(it,st,ft){var At=it.display,xt=At.view;xt.length==0||st>=At.viewTo||ft<=At.viewFrom?(At.view=Is(it,st,ft),At.viewFrom=st):(At.viewFrom>st?At.view=Is(it,st,At.viewFrom).concat(At.view):At.viewFrom<st&&(At.view=At.view.slice(Ku(it,st))),At.viewFrom=st,At.viewTo<ft?At.view=At.view.concat(Is(it,At.viewTo,ft)):At.viewTo>ft&&(At.view=At.view.slice(0,Ku(it,ft)))),At.viewTo=ft}function Oh(it){for(var st=it.display.view,ft=0,At=0;At<st.length;At++){var xt=st[At];!xt.hidden&&(!xt.node||xt.changes)&&++ft}return ft}function Su(it){it.display.input.showSelection(it.display.input.prepareSelection())}function xd(it,st){st===void 0&&(st=!0);for(var ft=it.doc,At={},xt=At.cursors=document.createDocumentFragment(),ne=At.selection=document.createDocumentFragment(),Be=0;Be<ft.sel.ranges.length;Be++)if(!(!st&&Be==ft.sel.primIndex)){var He=ft.sel.ranges[Be];if(!(He.from().line>=it.display.viewTo||He.to().line<it.display.viewFrom)){var _e=He.empty();(_e||it.options.showCursorWhenSelecting)&&Da(it,He.head,xt),_e||ja(it,He,ne)}}return At}function Da(it,st,ft){var At=cl(it,st,"div",null,null,!it.options.singleCursorHeightPerLine),xt=ft.appendChild(Ae("div","\xA0","CodeMirror-cursor"));if(xt.style.left=At.left+"px",xt.style.top=At.top+"px",xt.style.height=Math.max(0,At.bottom-At.top)*it.options.cursorHeight+"px",At.other){var ne=ft.appendChild(Ae("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));ne.style.display="",ne.style.left=At.other.left+"px",ne.style.top=At.other.top+"px",ne.style.height=(At.other.bottom-At.other.top)*.85+"px"}}function Ju(it,st){return it.top-st.top||it.left-st.left}function ja(it,st,ft){var At=it.display,xt=it.doc,ne=document.createDocumentFragment(),Be=tl(it.display),He=Be.left,_e=Math.max(At.sizerWidth,Pl(it)-At.sizer.offsetLeft)-Be.right,un=xt.direction=="ltr";function Yn(Do,ss,Ds,jo){ss<0&&(ss=0),ss=Math.round(ss),jo=Math.round(jo),ne.appendChild(Ae("div",null,"CodeMirror-selected","position: absolute; left: "+Do+`px;
|
|
|
top: `+ss+"px; width: "+(Ds==null?_e-Do:Ds)+`px;
|
|
|
height: `+(jo-ss)+"px"))}function xn(Do,ss,Ds){var jo=ni(xt,Do),Js=jo.text.length,_l,$l;function fl(Za,El){return rh(it,ii(Do,Za),"div",jo,El)}function Ja(Za,El,wu){var Ro=sA(it,jo,null,Za),Ca=El=="ltr"==(wu=="after")?"left":"right",Xl=wu=="after"?Ro.begin:Ro.end-(/\s/.test(jo.text.charAt(Ro.end-1))?2:1);return fl(Xl,Ca)[Ca]}var Ua=xe(jo,xt.direction);return te(Ua,ss||0,Ds==null?Js:Ds,function(Za,El,wu,Ro){var Ca=wu=="ltr",Xl=fl(Za,Ca?"left":"right"),Hl=fl(El-1,Ca?"right":"left"),Zu=ss==null&&Za==0,aa=Ds==null&&El==Js,zs=Ro==0,ch=!Ua||Ro==Ua.length-1;if(Hl.top-Xl.top<=3){var fu=(un?Zu:aa)&&zs,Xd=(un?aa:Zu)&&ch,Fh=fu?He:(Ca?Xl:Hl).left,eh=Xd?_e:(Ca?Hl:Xl).right;Yn(Fh,Xl.top,eh-Fh,Xl.bottom)}else{var xh,Ql,Hu,qc;Ca?(xh=un&&Zu&&zs?He:Xl.left,Ql=un?_e:Ja(Za,wu,"before"),Hu=un?He:Ja(El,wu,"after"),qc=un&&aa&&ch?_e:Hl.right):(xh=un?Ja(Za,wu,"before"):He,Ql=!un&&Zu&&zs?_e:Xl.right,Hu=!un&&aa&&ch?He:Hl.left,qc=un?Ja(El,wu,"after"):_e),Yn(xh,Xl.top,Ql-xh,Xl.bottom),Xl.bottom<Hl.top&&Yn(He,Xl.bottom,null,Hl.top),Yn(Hu,Hl.top,qc-Hu,Hl.bottom)}(!_l||Ju(Xl,_l)<0)&&(_l=Xl),Ju(Hl,_l)<0&&(_l=Hl),(!$l||Ju(Xl,$l)<0)&&($l=Xl),Ju(Hl,$l)<0&&($l=Hl)}),{start:_l,end:$l}}var Ni=st.from(),Ei=st.to();if(Ni.line==Ei.line)xn(Ni.line,Ni.ch,Ei.ch);else{var Nr=ni(xt,Ni.line),jr=ni(xt,Ei.line),to=Lo(Nr)==Lo(jr),Co=xn(Ni.line,Ni.ch,to?Nr.text.length+1:null).end,$o=xn(Ei.line,to?0:null,Ei.ch).start;to&&(Co.top<$o.top-2?(Yn(Co.right,Co.top,null,Co.bottom),Yn(He,$o.top,$o.left,$o.bottom)):Yn(Co.right,Co.top,$o.left-Co.right,Co.bottom)),Co.bottom<$o.top&&Yn(He,Co.bottom,null,$o.top)}ft.appendChild(ne)}function vl(it){if(it.state.focused){var st=it.display;clearInterval(st.blinker);var ft=!0;st.cursorDiv.style.visibility="",it.options.cursorBlinkRate>0?st.blinker=setInterval(function(){it.hasFocus()||Et(it),st.cursorDiv.style.visibility=(ft=!ft)?"":"hidden"},it.options.cursorBlinkRate):it.options.cursorBlinkRate<0&&(st.cursorDiv.style.visibility="hidden")}}function Zl(it){it.state.focused||(it.display.input.focus(),mt(it))}function Pt(it){it.state.delayingBlurEvent=!0,setTimeout(function(){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1,Et(it))},100)}function mt(it,st){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1),it.options.readOnly!="nocursor"&&(it.state.focused||(bn(it,"focus",it,st),it.state.focused=!0,qe(it.display.wrapper,"CodeMirror-focused"),!it.curOp&&it.display.selForContextMenu!=it.doc.sel&&(it.display.input.reset(),Lt&&setTimeout(function(){return it.display.input.reset(!0)},20)),it.display.input.receivedFocus()),vl(it))}function Et(it,st){it.state.delayingBlurEvent||(it.state.focused&&(bn(it,"blur",it,st),it.state.focused=!1,_t(it.display.wrapper,"CodeMirror-focused")),clearInterval(it.display.blinker),setTimeout(function(){it.state.focused||(it.display.shift=!1)},150))}function jt(it){for(var st=it.display,ft=st.lineDiv.offsetTop,At=0;At<st.view.length;At++){var xt=st.view[At],ne=it.options.lineWrapping,Be=void 0,He=0;if(!xt.hidden){if(ie&&ae<8){var _e=xt.node.offsetTop+xt.node.offsetHeight;Be=_e-ft,ft=_e}else{var un=xt.node.getBoundingClientRect();Be=un.bottom-un.top,!ne&&xt.text.firstChild&&(He=xt.text.firstChild.getBoundingClientRect().right-un.left-1)}var Yn=xt.line.height-Be;if((Yn>.005||Yn<-.005)&&(tr(xt.line,Be),le(xt.line),xt.rest))for(var xn=0;xn<xt.rest.length;xn++)le(xt.rest[xn]);if(He>it.display.sizerWidth){var Ni=Math.ceil(He/fh(it.display));Ni>it.display.maxLineLength&&(it.display.maxLineLength=Ni,it.display.maxLine=xt.line,it.display.maxLineChanged=!0)}}}}function le(it){if(it.widgets)for(var st=0;st<it.widgets.length;++st){var ft=it.widgets[st],At=ft.node.parentNode;At&&(ft.height=At.offsetHeight)}}function Zt(it,st,ft){var At=ft&&ft.top!=null?Math.max(0,ft.top):it.scroller.scrollTop;At=Math.floor(At-Ll(it));var xt=ft&&ft.bottom!=null?ft.bottom:At+it.wrapper.clientHeight,ne=fi(st,At),Be=fi(st,xt);if(ft&&ft.ensure){var He=ft.ensure.from.line,_e=ft.ensure.to.line;He<ne?(ne=He,Be=fi(st,Es(ni(st,He))+it.wrapper.clientHeight)):Math.min(_e,st.lastLine())>=Be&&(ne=fi(st,Es(ni(st,_e))-it.wrapper.clientHeight),Be=_e)}return{from:ne,to:Math.max(Be,ne+1)}}function ye(it,st){if(!ci(it,"scrollCursorIntoView")){var ft=it.display,At=ft.sizer.getBoundingClientRect(),xt=null;if(st.top+At.top<0?xt=!0:st.bottom+At.top>(window.innerHeight||document.documentElement.clientHeight)&&(xt=!1),xt!=null&&!qt){var ne=Ae("div","\u200B",null,`position: absolute;
|
|
|
top: `+(st.top-ft.viewOffset-Ll(it.display))+`px;
|
|
|
height: `+(st.bottom-st.top+tu(it)+ft.barHeight)+`px;
|
|
|
left: `+st.left+"px; width: "+Math.max(2,st.right-st.left)+"px;");it.display.lineSpace.appendChild(ne),ne.scrollIntoView(xt),it.display.lineSpace.removeChild(ne)}}}function Se(it,st,ft,At){At==null&&(At=0);var xt;!it.options.lineWrapping&&st==ft&&(st=st.ch?ii(st.line,st.sticky=="before"?st.ch-1:st.ch,"after"):st,ft=st.sticky=="before"?ii(st.line,st.ch+1,"before"):st);for(var ne=0;ne<5;ne++){var Be=!1,He=cl(it,st),_e=!ft||ft==st?He:cl(it,ft);xt={left:Math.min(He.left,_e.left),top:Math.min(He.top,_e.top)-At,right:Math.max(He.left,_e.left),bottom:Math.max(He.bottom,_e.bottom)+At};var un=tn(it,xt),Yn=it.doc.scrollTop,xn=it.doc.scrollLeft;if(un.scrollTop!=null&&(pi(it,un.scrollTop),Math.abs(it.doc.scrollTop-Yn)>1&&(Be=!0)),un.scrollLeft!=null&&(gi(it,un.scrollLeft),Math.abs(it.doc.scrollLeft-xn)>1&&(Be=!0)),!Be)break}return xt}function Ie(it,st){var ft=tn(it,st);ft.scrollTop!=null&&pi(it,ft.scrollTop),ft.scrollLeft!=null&&gi(it,ft.scrollLeft)}function tn(it,st){var ft=it.display,At=Uu(it.display);st.top<0&&(st.top=0);var xt=it.curOp&&it.curOp.scrollTop!=null?it.curOp.scrollTop:ft.scroller.scrollTop,ne=Io(it),Be={};st.bottom-st.top>ne&&(st.bottom=st.top+ne);var He=it.doc.height+Ml(ft),_e=st.top<At,un=st.bottom>He-At;if(st.top<xt)Be.scrollTop=_e?0:st.top;else if(st.bottom>xt+ne){var Yn=Math.min(st.top,(un?He:st.bottom)-ne);Yn!=xt&&(Be.scrollTop=Yn)}var xn=it.options.fixedGutter?0:ft.gutters.offsetWidth,Ni=it.curOp&&it.curOp.scrollLeft!=null?it.curOp.scrollLeft:ft.scroller.scrollLeft-xn,Ei=Pl(it)-ft.gutters.offsetWidth,Nr=st.right-st.left>Ei;return Nr&&(st.right=st.left+Ei),st.left<10?Be.scrollLeft=0:st.left<Ni?Be.scrollLeft=Math.max(0,st.left+xn-(Nr?0:10)):st.right>Ei+Ni-3&&(Be.scrollLeft=st.right+(Nr?0:10)-Ei),Be}function mn(it,st){st!=null&&(di(it),it.curOp.scrollTop=(it.curOp.scrollTop==null?it.doc.scrollTop:it.curOp.scrollTop)+st)}function pn(it){di(it);var st=it.getCursor();it.curOp.scrollToPos={from:st,to:st,margin:it.options.cursorScrollMargin}}function Tn(it,st,ft){(st!=null||ft!=null)&&di(it),st!=null&&(it.curOp.scrollLeft=st),ft!=null&&(it.curOp.scrollTop=ft)}function ze(it,st){di(it),it.curOp.scrollToPos=st}function di(it){var st=it.curOp.scrollToPos;if(st){it.curOp.scrollToPos=null;var ft=Ud(it,st.from),At=Ud(it,st.to);$n(it,ft,At,st.margin)}}function $n(it,st,ft,At){var xt=tn(it,{left:Math.min(st.left,ft.left),top:Math.min(st.top,ft.top)-At,right:Math.max(st.right,ft.right),bottom:Math.max(st.bottom,ft.bottom)+At});Tn(it,xt.scrollLeft,xt.scrollTop)}function pi(it,st){Math.abs(it.doc.scrollTop-st)<2||(bt||Xi(it,{top:st}),Hn(it,st,!0),bt&&Xi(it),hn(it,100))}function Hn(it,st,ft){st=Math.max(0,Math.min(it.display.scroller.scrollHeight-it.display.scroller.clientHeight,st)),!(it.display.scroller.scrollTop==st&&!ft)&&(it.doc.scrollTop=st,it.display.scrollbars.setScrollTop(st),it.display.scroller.scrollTop!=st&&(it.display.scroller.scrollTop=st))}function gi(it,st,ft,At){st=Math.max(0,Math.min(st,it.display.scroller.scrollWidth-it.display.scroller.clientWidth)),!((ft?st==it.doc.scrollLeft:Math.abs(it.doc.scrollLeft-st)<2)&&!At)&&(it.doc.scrollLeft=st,qi(it),it.display.scroller.scrollLeft!=st&&(it.display.scroller.scrollLeft=st),it.display.scrollbars.setScrollLeft(st))}function Hi(it){var st=it.display,ft=st.gutters.offsetWidth,At=Math.round(it.doc.height+Ml(it.display));return{clientHeight:st.scroller.clientHeight,viewHeight:st.wrapper.clientHeight,scrollWidth:st.scroller.scrollWidth,clientWidth:st.scroller.clientWidth,viewWidth:st.wrapper.clientWidth,barLeft:it.options.fixedGutter?ft:0,docHeight:At,scrollHeight:At+tu(it)+st.barHeight,nativeBarWidth:st.nativeBarWidth,gutterWidth:ft}}var ur=function(it,st,ft){this.cm=ft;var At=this.vert=Ae("div",[Ae("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),xt=this.horiz=Ae("div",[Ae("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");At.tabIndex=xt.tabIndex=-1,it(At),it(xt),je(At,"scroll",function(){At.clientHeight&&st(At.scrollTop,"vertical")}),je(xt,"scroll",function(){xt.clientWidth&&st(xt.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ie&&ae<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ur.prototype.update=function(it){var st=it.scrollWidth>it.clientWidth+1,ft=it.scrollHeight>it.clientHeight+1,At=it.nativeBarWidth;if(ft){this.vert.style.display="block",this.vert.style.bottom=st?At+"px":"0";var xt=it.viewHeight-(st?At:0);this.vert.firstChild.style.height=Math.max(0,it.scrollHeight-it.clientHeight+xt)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(st){this.horiz.style.display="block",this.horiz.style.right=ft?At+"px":"0",this.horiz.style.left=it.barLeft+"px";var ne=it.viewWidth-it.barLeft-(ft?At:0);this.horiz.firstChild.style.width=Math.max(0,it.scrollWidth-it.clientWidth+ne)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&it.clientHeight>0&&(At==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ft?At:0,bottom:st?At:0}},ur.prototype.setScrollLeft=function(it){this.horiz.scrollLeft!=it&&(this.horiz.scrollLeft=it),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ur.prototype.setScrollTop=function(it){this.vert.scrollTop!=it&&(this.vert.scrollTop=it),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ur.prototype.zeroWidthHack=function(){var it=lt&&!Gt?"12px":"18px";this.horiz.style.height=this.vert.style.width=it,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new oe,this.disableVert=new oe},ur.prototype.enableZeroWidthBar=function(it,st,ft){it.style.pointerEvents="auto";function At(){var xt=it.getBoundingClientRect(),ne=ft=="vert"?document.elementFromPoint(xt.right-1,(xt.top+xt.bottom)/2):document.elementFromPoint((xt.right+xt.left)/2,xt.bottom-1);ne!=it?it.style.pointerEvents="none":st.set(1e3,At)}st.set(1e3,At)},ur.prototype.clear=function(){var it=this.horiz.parentNode;it.removeChild(this.horiz),it.removeChild(this.vert)};var Ir=function(){};Ir.prototype.update=function(){return{bottom:0,right:0}},Ir.prototype.setScrollLeft=function(){},Ir.prototype.setScrollTop=function(){},Ir.prototype.clear=function(){};function io(it,st){st||(st=Hi(it));var ft=it.display.barWidth,At=it.display.barHeight;vr(it,st);for(var xt=0;xt<4&&ft!=it.display.barWidth||At!=it.display.barHeight;xt++)ft!=it.display.barWidth&&it.options.lineWrapping&&jt(it),vr(it,Hi(it)),ft=it.display.barWidth,At=it.display.barHeight}function vr(it,st){var ft=it.display,At=ft.scrollbars.update(st);ft.sizer.style.paddingRight=(ft.barWidth=At.right)+"px",ft.sizer.style.paddingBottom=(ft.barHeight=At.bottom)+"px",ft.heightForcer.style.borderBottom=At.bottom+"px solid transparent",At.right&&At.bottom?(ft.scrollbarFiller.style.display="block",ft.scrollbarFiller.style.height=At.bottom+"px",ft.scrollbarFiller.style.width=At.right+"px"):ft.scrollbarFiller.style.display="",At.bottom&&it.options.coverGutterNextToScrollbar&&it.options.fixedGutter?(ft.gutterFiller.style.display="block",ft.gutterFiller.style.height=At.bottom+"px",ft.gutterFiller.style.width=st.gutterWidth+"px"):ft.gutterFiller.style.display=""}var Ti={native:ur,null:Ir};function Br(it){it.display.scrollbars&&(it.display.scrollbars.clear(),it.display.scrollbars.addClass&&_t(it.display.wrapper,it.display.scrollbars.addClass)),it.display.scrollbars=new Ti[it.options.scrollbarStyle](function(st){it.display.wrapper.insertBefore(st,it.display.scrollbarFiller),je(st,"mousedown",function(){it.state.focused&&setTimeout(function(){return it.display.input.focus()},0)}),st.setAttribute("cm-not-content","true")},function(st,ft){ft=="horizontal"?gi(it,st):pi(it,st)},it),it.display.scrollbars.addClass&&qe(it.display.wrapper,it.display.scrollbars.addClass)}var Vr=0;function zn(it){it.curOp={cm:it,viewChanged:!1,startHeight:it.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:++Vr},Ph(it.curOp)}function Xn(it){var st=it.curOp;st&&Zs(st,function(ft){for(var At=0;At<ft.ops.length;At++)ft.ops[At].cm.curOp=null;Yi(ft)})}function Yi(it){for(var st=it.ops,ft=0;ft<st.length;ft++)ve(st[ft]);for(var At=0;At<st.length;At++)Ee(st[At]);for(var xt=0;xt<st.length;xt++)Ye(st[xt]);for(var ne=0;ne<st.length;ne++)on(st[ne]);for(var Be=0;Be<st.length;Be++)cn(st[Be])}function ve(it){var st=it.cm,ft=st.display;Zn(st),it.updateMaxLine&&ca(st),it.mustUpdate=it.viewChanged||it.forceUpdate||it.scrollTop!=null||it.scrollToPos&&(it.scrollToPos.from.line<ft.viewFrom||it.scrollToPos.to.line>=ft.viewTo)||ft.maxLineChanged&&st.options.lineWrapping,it.update=it.mustUpdate&&new Mn(st,it.mustUpdate&&{top:it.scrollTop,ensure:it.scrollToPos},it.forceUpdate)}function Ee(it){it.updatedDisplay=it.mustUpdate&&Fi(it.cm,it.update)}function Ye(it){var st=it.cm,ft=st.display;it.updatedDisplay&&jt(st),it.barMeasure=Hi(st),ft.maxLineChanged&&!st.options.lineWrapping&&(it.adjustWidthTo=hh(st,ft.maxLine,ft.maxLine.text.length).left+3,st.display.sizerWidth=it.adjustWidthTo,it.barMeasure.scrollWidth=Math.max(ft.scroller.clientWidth,ft.sizer.offsetLeft+it.adjustWidthTo+tu(st)+st.display.barWidth),it.maxScrollLeft=Math.max(0,ft.sizer.offsetLeft+it.adjustWidthTo-Pl(st))),(it.updatedDisplay||it.selectionChanged)&&(it.preparedSelection=ft.input.prepareSelection())}function on(it){var st=it.cm;it.adjustWidthTo!=null&&(st.display.sizer.style.minWidth=it.adjustWidthTo+"px",it.maxScrollLeft<st.doc.scrollLeft&&gi(st,Math.min(st.display.scroller.scrollLeft,it.maxScrollLeft),!0),st.display.maxLineChanged=!1);var ft=it.focus&&it.focus==Yt();it.preparedSelection&&st.display.input.showSelection(it.preparedSelection,ft),(it.updatedDisplay||it.startHeight!=st.doc.height)&&io(st,it.barMeasure),it.updatedDisplay&&qr(st,it.barMeasure),it.selectionChanged&&vl(st),st.state.focused&&it.updateInput&&st.display.input.reset(it.typing),ft&&Zl(it.cm)}function cn(it){var st=it.cm,ft=st.display,At=st.doc;if(it.updatedDisplay&&ki(st,it.update),ft.wheelStartX!=null&&(it.scrollTop!=null||it.scrollLeft!=null||it.scrollToPos)&&(ft.wheelStartX=ft.wheelStartY=null),it.scrollTop!=null&&Hn(st,it.scrollTop,it.forceScroll),it.scrollLeft!=null&&gi(st,it.scrollLeft,!0,!0),it.scrollToPos){var xt=Se(st,sr(At,it.scrollToPos.from),sr(At,it.scrollToPos.to),it.scrollToPos.margin);ye(st,xt)}var ne=it.maybeHiddenMarkers,Be=it.maybeUnhiddenMarkers;if(ne)for(var He=0;He<ne.length;++He)ne[He].lines.length||bn(ne[He],"hide");if(Be)for(var _e=0;_e<Be.length;++_e)Be[_e].lines.length&&bn(Be[_e],"unhide");ft.wrapper.offsetHeight&&(At.scrollTop=st.display.scroller.scrollTop),it.changeObjs&&bn(st,"changes",st,it.changeObjs),it.update&&it.update.finish()}function dn(it,st){if(it.curOp)return st();zn(it);try{return st()}finally{Xn(it)}}function Dn(it,st){return function(){if(it.curOp)return st.apply(it,arguments);zn(it);try{return st.apply(it,arguments)}finally{Xn(it)}}}function Jn(it){return function(){if(this.curOp)return it.apply(this,arguments);zn(this);try{return it.apply(this,arguments)}finally{Xn(this)}}}function Ue(it){return function(){var st=this.cm;if(!st||st.curOp)return it.apply(this,arguments);zn(st);try{return it.apply(this,arguments)}finally{Xn(st)}}}function hn(it,st){it.doc.highlightFrontier<it.display.viewTo&&it.state.highlight.set(st,Ze(yn,it))}function yn(it){var st=it.doc;if(!(st.highlightFrontier>=it.display.viewTo)){var ft=+new Date+it.options.workTime,At=cs(it,st.highlightFrontier),xt=[];st.iter(At.line,Math.min(st.first+st.size,it.display.viewTo+500),function(ne){if(At.line>=it.display.viewFrom){var Be=ne.styles,He=ne.text.length>it.options.maxHighlightLength?hi(st.mode,At.state):null,_e=Ho(it,ne,At,!0);He&&(At.state=He),ne.styles=_e.styles;var un=ne.styleClasses,Yn=_e.classes;Yn?ne.styleClasses=Yn:un&&(ne.styleClasses=null);for(var xn=!Be||Be.length!=ne.styles.length||un!=Yn&&(!un||!Yn||un.bgClass!=Yn.bgClass||un.textClass!=Yn.textClass),Ni=0;!xn&&Ni<Be.length;++Ni)xn=Be[Ni]!=ne.styles[Ni];xn&&xt.push(At.line),ne.stateAfter=At.save(),At.nextLine()}else ne.text.length<=it.options.maxHighlightLength&&ri(it,ne.text,At),ne.stateAfter=At.line%5==0?At.save():null,At.nextLine();if(+new Date>ft)return hn(it,it.options.workDelay),!0}),st.highlightFrontier=At.line,st.modeFrontier=Math.max(st.modeFrontier,At.line),xt.length&&dn(it,function(){for(var ne=0;ne<xt.length;ne++)sa(it,xt[ne],"text")})}}var Mn=function(it,st,ft){var At=it.display;this.viewport=st,this.visible=Zt(At,it.doc,st),this.editorIsHidden=!At.wrapper.offsetWidth,this.wrapperHeight=At.wrapper.clientHeight,this.wrapperWidth=At.wrapper.clientWidth,this.oldDisplayWidth=Pl(it),this.force=ft,this.dims=_A(it),this.events=[]};Mn.prototype.signal=function(it,st){zi(it,st)&&this.events.push(arguments)},Mn.prototype.finish=function(){for(var it=0;it<this.events.length;it++)bn.apply(null,this.events[it])};function Zn(it){var st=it.display;!st.scrollbarsClipped&&st.scroller.offsetWidth&&(st.nativeBarWidth=st.scroller.offsetWidth-st.scroller.clientWidth,st.heightForcer.style.height=tu(it)+"px",st.sizer.style.marginBottom=-st.nativeBarWidth+"px",st.sizer.style.borderRightWidth=tu(it)+"px",st.scrollbarsClipped=!0)}function li(it){if(it.hasFocus())return null;var st=Yt();if(!st||!We(it.display.lineDiv,st))return null;var ft={activeElt:st};if(window.getSelection){var At=window.getSelection();At.anchorNode&&At.extend&&We(it.display.lineDiv,At.anchorNode)&&(ft.anchorNode=At.anchorNode,ft.anchorOffset=At.anchorOffset,ft.focusNode=At.focusNode,ft.focusOffset=At.focusOffset)}return ft}function oi(it){if(!(!it||!it.activeElt||it.activeElt==Yt())&&(it.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(it.activeElt.nodeName)&&it.anchorNode&&We(document.body,it.anchorNode)&&We(document.body,it.focusNode))){var st=window.getSelection(),ft=document.createRange();ft.setEnd(it.anchorNode,it.anchorOffset),ft.collapse(!1),st.removeAllRanges(),st.addRange(ft),st.extend(it.focusNode,it.focusOffset)}}function Fi(it,st){var ft=it.display,At=it.doc;if(st.editorIsHidden)return pu(it),!1;if(!st.force&&st.visible.from>=ft.viewFrom&&st.visible.to<=ft.viewTo&&(ft.updateLineNumbers==null||ft.updateLineNumbers>=ft.viewTo)&&ft.renderedView==ft.view&&Oh(it)==0)return!1;Qn(it)&&(pu(it),st.dims=_A(it));var xt=At.first+At.size,ne=Math.max(st.visible.from-it.options.viewportMargin,At.first),Be=Math.min(xt,st.visible.to+it.options.viewportMargin);ft.viewFrom<ne&&ne-ft.viewFrom<20&&(ne=Math.max(At.first,ft.viewFrom)),ft.viewTo>Be&&ft.viewTo-Be<20&&(Be=Math.min(xt,ft.viewTo)),Ci&&(ne=lo(it.doc,ne),Be=vo(it.doc,Be));var He=ne!=ft.viewFrom||Be!=ft.viewTo||ft.lastWrapHeight!=st.wrapperHeight||ft.lastWrapWidth!=st.wrapperWidth;xl(it,ne,Be),ft.viewOffset=Es(ni(it.doc,ft.viewFrom)),it.display.mover.style.top=ft.viewOffset+"px";var _e=Oh(it);if(!He&&_e==0&&!st.force&&ft.renderedView==ft.view&&(ft.updateLineNumbers==null||ft.updateLineNumbers>=ft.viewTo))return!1;var un=li(it);return _e>4&&(ft.lineDiv.style.display="none"),ar(it,ft.updateLineNumbers,st.dims),_e>4&&(ft.lineDiv.style.display=""),ft.renderedView=ft.view,oi(un),re(ft.cursorDiv),re(ft.selectionDiv),ft.gutters.style.height=ft.sizer.style.minHeight=0,He&&(ft.lastWrapHeight=st.wrapperHeight,ft.lastWrapWidth=st.wrapperWidth,hn(it,400)),ft.updateLineNumbers=null,!0}function ki(it,st){for(var ft=st.viewport,At=!0;;At=!1){if(!At||!it.options.lineWrapping||st.oldDisplayWidth==Pl(it)){if(ft&&ft.top!=null&&(ft={top:Math.min(it.doc.height+Ml(it.display)-Io(it),ft.top)}),st.visible=Zt(it.display,it.doc,ft),st.visible.from>=it.display.viewFrom&&st.visible.to<=it.display.viewTo)break}else At&&(st.visible=Zt(it.display,it.doc,ft));if(!Fi(it,st))break;jt(it);var xt=Hi(it);Su(it),io(it,xt),qr(it,xt),st.force=!1}st.signal(it,"update",it),(it.display.viewFrom!=it.display.reportedViewFrom||it.display.viewTo!=it.display.reportedViewTo)&&(st.signal(it,"viewportChange",it,it.display.viewFrom,it.display.viewTo),it.display.reportedViewFrom=it.display.viewFrom,it.display.reportedViewTo=it.display.viewTo)}function Xi(it,st){var ft=new Mn(it,st);if(Fi(it,ft)){jt(it),ki(it,ft);var At=Hi(it);Su(it),io(it,At),qr(it,At),ft.finish()}}function ar(it,st,ft){var At=it.display,xt=it.options.lineNumbers,ne=At.lineDiv,Be=ne.firstChild;function He(Nr){var jr=Nr.nextSibling;return Lt&<&&it.display.currentWheelTarget==Nr?Nr.style.display="none":Nr.parentNode.removeChild(Nr),jr}for(var _e=At.view,un=At.viewFrom,Yn=0;Yn<_e.length;Yn++){var xn=_e[Yn];if(!xn.hidden)if(!xn.node||xn.node.parentNode!=ne){var Ni=su(it,xn,un,ft);ne.insertBefore(Ni,Be)}else{for(;Be!=xn.node;)Be=He(Be);var Ei=xt&&st!=null&&st<=un&&xn.lineNumber;xn.changes&&(Pe(xn.changes,"gutter")>-1&&(Ei=!1),Ol(it,xn,un,ft)),Ei&&(re(xn.lineNumber),xn.lineNumber.appendChild(document.createTextNode(Tr(it.options,un)))),Be=xn.node.nextSibling}un+=xn.size}for(;Be;)Be=He(Be)}function gr(it){var st=it.gutters.offsetWidth;it.sizer.style.marginLeft=st+"px"}function qr(it,st){it.display.sizer.style.minHeight=st.docHeight+"px",it.display.heightForcer.style.top=st.docHeight+"px",it.display.gutters.style.height=st.docHeight+it.display.barHeight+tu(it)+"px"}function qi(it){var st=it.display,ft=st.view;if(!(!st.alignWidgets&&(!st.gutters.firstChild||!it.options.fixedGutter))){for(var At=sd(st)-st.scroller.scrollLeft+it.doc.scrollLeft,xt=st.gutters.offsetWidth,ne=At+"px",Be=0;Be<ft.length;Be++)if(!ft[Be].hidden){it.options.fixedGutter&&(ft[Be].gutter&&(ft[Be].gutter.style.left=ne),ft[Be].gutterBackground&&(ft[Be].gutterBackground.style.left=ne));var He=ft[Be].alignable;if(He)for(var _e=0;_e<He.length;_e++)He[_e].style.left=ne}it.options.fixedGutter&&(st.gutters.style.left=At+xt+"px")}}function Qn(it){if(!it.options.lineNumbers)return!1;var st=it.doc,ft=Tr(it.options,st.first+st.size-1),At=it.display;if(ft.length!=At.lineNumChars){var xt=At.measure.appendChild(Ae("div",[Ae("div",ft)],"CodeMirror-linenumber CodeMirror-gutter-elt")),ne=xt.firstChild.offsetWidth,Be=xt.offsetWidth-ne;return At.lineGutter.style.width="",At.lineNumInnerWidth=Math.max(ne,At.lineGutter.offsetWidth-Be)+1,At.lineNumWidth=At.lineNumInnerWidth+Be,At.lineNumChars=At.lineNumInnerWidth?ft.length:-1,At.lineGutter.style.width=At.lineNumWidth+"px",gr(it.display),!0}return!1}function so(it,st){for(var ft=[],At=!1,xt=0;xt<it.length;xt++){var ne=it[xt],Be=null;if(typeof ne!="string"&&(Be=ne.style,ne=ne.className),ne=="CodeMirror-linenumbers")if(st)At=!0;else continue;ft.push({className:ne,style:Be})}return st&&!At&&ft.push({className:"CodeMirror-linenumbers",style:null}),ft}function uo(it){var st=it.gutters,ft=it.gutterSpecs;re(st),it.lineGutter=null;for(var At=0;At<ft.length;++At){var xt=ft[At],ne=xt.className,Be=xt.style,He=st.appendChild(Ae("div",null,"CodeMirror-gutter "+ne));Be&&(He.style.cssText=Be),ne=="CodeMirror-linenumbers"&&(it.lineGutter=He,He.style.width=(it.lineNumWidth||1)+"px")}st.style.display=ft.length?"":"none",gr(it)}function rr(it){uo(it.display),bl(it),qi(it)}function wr(it,st,ft,At){var xt=this;this.input=ft,xt.scrollbarFiller=Ae("div",null,"CodeMirror-scrollbar-filler"),xt.scrollbarFiller.setAttribute("cm-not-content","true"),xt.gutterFiller=Ae("div",null,"CodeMirror-gutter-filler"),xt.gutterFiller.setAttribute("cm-not-content","true"),xt.lineDiv=Fe("div",null,"CodeMirror-code"),xt.selectionDiv=Ae("div",null,null,"position: relative; z-index: 1"),xt.cursorDiv=Ae("div",null,"CodeMirror-cursors"),xt.measure=Ae("div",null,"CodeMirror-measure"),xt.lineMeasure=Ae("div",null,"CodeMirror-measure"),xt.lineSpace=Fe("div",[xt.measure,xt.lineMeasure,xt.selectionDiv,xt.cursorDiv,xt.lineDiv],null,"position: relative; outline: none");var ne=Fe("div",[xt.lineSpace],"CodeMirror-lines");xt.mover=Ae("div",[ne],null,"position: relative"),xt.sizer=Ae("div",[xt.mover],"CodeMirror-sizer"),xt.sizerWidth=null,xt.heightForcer=Ae("div",null,null,"position: absolute; height: "+En+"px; width: 1px;"),xt.gutters=Ae("div",null,"CodeMirror-gutters"),xt.lineGutter=null,xt.scroller=Ae("div",[xt.sizer,xt.heightForcer,xt.gutters],"CodeMirror-scroll"),xt.scroller.setAttribute("tabIndex","-1"),xt.wrapper=Ae("div",[xt.scrollbarFiller,xt.gutterFiller,xt.scroller],"CodeMirror"),ie&&ae<8&&(xt.gutters.style.zIndex=-1,xt.scroller.style.paddingRight=0),!Lt&&!(bt&&tt)&&(xt.scroller.draggable=!0),it&&(it.appendChild?it.appendChild(xt.wrapper):it(xt.wrapper)),xt.viewFrom=xt.viewTo=st.first,xt.reportedViewFrom=xt.reportedViewTo=st.first,xt.view=[],xt.renderedView=null,xt.externalMeasured=null,xt.viewOffset=0,xt.lastWrapHeight=xt.lastWrapWidth=0,xt.updateLineNumbers=null,xt.nativeBarWidth=xt.barHeight=xt.barWidth=0,xt.scrollbarsClipped=!1,xt.lineNumWidth=xt.lineNumInnerWidth=xt.lineNumChars=null,xt.alignWidgets=!1,xt.cachedCharWidth=xt.cachedTextHeight=xt.cachedPaddingH=null,xt.maxLine=null,xt.maxLineLength=0,xt.maxLineChanged=!1,xt.wheelDX=xt.wheelDY=xt.wheelStartX=xt.wheelStartY=null,xt.shift=!1,xt.selForContextMenu=null,xt.activeTouch=null,xt.gutterSpecs=so(At.gutters,At.lineNumbers),uo(xt),ft.init(xt)}var mr=0,ir=null;ie?ir=-.53:bt?ir=15:Jt?ir=-.7:Wt&&(ir=-1/3);function Or(it){var st=it.wheelDeltaX,ft=it.wheelDeltaY;return st==null&&it.detail&&it.axis==it.HORIZONTAL_AXIS&&(st=it.detail),ft==null&&it.detail&&it.axis==it.VERTICAL_AXIS?ft=it.detail:ft==null&&(ft=it.wheelDelta),{x:st,y:ft}}function ho(it){var st=Or(it);return st.x*=ir,st.y*=ir,st}function So(it,st){var ft=Or(st),At=ft.x,xt=ft.y,ne=it.display,Be=ne.scroller,He=Be.scrollWidth>Be.clientWidth,_e=Be.scrollHeight>Be.clientHeight;if(At&&He||xt&&_e){if(xt&<&&Lt){t:for(var un=st.target,Yn=ne.view;un!=Be;un=un.parentNode)for(var xn=0;xn<Yn.length;xn++)if(Yn[xn].node==un){it.display.currentWheelTarget=un;break t}}if(At&&!bt&&!St&&ir!=null){xt&&_e&&pi(it,Math.max(0,Be.scrollTop+xt*ir)),gi(it,Math.max(0,Be.scrollLeft+At*ir)),(!xt||xt&&_e)&&Fr(st),ne.wheelStartX=null;return}if(xt&&ir!=null){var Ni=xt*ir,Ei=it.doc.scrollTop,Nr=Ei+ne.wrapper.clientHeight;Ni<0?Ei=Math.max(0,Ei+Ni-50):Nr=Math.min(it.doc.height,Nr+Ni+50),Xi(it,{top:Ei,bottom:Nr})}mr<20&&(ne.wheelStartX==null?(ne.wheelStartX=Be.scrollLeft,ne.wheelStartY=Be.scrollTop,ne.wheelDX=At,ne.wheelDY=xt,setTimeout(function(){if(ne.wheelStartX!=null){var jr=Be.scrollLeft-ne.wheelStartX,to=Be.scrollTop-ne.wheelStartY,Co=to&&ne.wheelDY&&to/ne.wheelDY||jr&&ne.wheelDX&&jr/ne.wheelDX;ne.wheelStartX=ne.wheelStartY=null,Co&&(ir=(ir*mr+Co)/(mr+1),++mr)}},200)):(ne.wheelDX+=At,ne.wheelDY+=xt))}}var Fo=function(it,st){this.ranges=it,this.primIndex=st};Fo.prototype.primary=function(){return this.ranges[this.primIndex]},Fo.prototype.equals=function(it){if(it==this)return!0;if(it.primIndex!=this.primIndex||it.ranges.length!=this.ranges.length)return!1;for(var st=0;st<this.ranges.length;st++){var ft=this.ranges[st],At=it.ranges[st];if(!fr(ft.anchor,At.anchor)||!fr(ft.head,At.head))return!1}return!0},Fo.prototype.deepCopy=function(){for(var it=[],st=0;st<this.ranges.length;st++)it[st]=new Gr(mi(this.ranges[st].anchor),mi(this.ranges[st].head));return new Fo(it,this.primIndex)},Fo.prototype.somethingSelected=function(){for(var it=0;it<this.ranges.length;it++)if(!this.ranges[it].empty())return!0;return!1},Fo.prototype.contains=function(it,st){st||(st=it);for(var ft=0;ft<this.ranges.length;ft++){var At=this.ranges[ft];if(xi(st,At.from())>=0&&xi(it,At.to())<=0)return ft}return-1};var Gr=function(it,st){this.anchor=it,this.head=st};Gr.prototype.from=function(){return yi(this.anchor,this.head)},Gr.prototype.to=function(){return wi(this.anchor,this.head)},Gr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Vo(it,st,ft){var At=it&&it.options.selectionsMayTouch,xt=st[ft];st.sort(function(Ni,Ei){return xi(Ni.from(),Ei.from())}),ft=Pe(st,xt);for(var ne=1;ne<st.length;ne++){var Be=st[ne],He=st[ne-1],_e=xi(He.to(),Be.from());if(At&&!Be.empty()?_e>0:_e>=0){var un=yi(He.from(),Be.from()),Yn=wi(He.to(),Be.to()),xn=He.empty()?Be.from()==Be.head:He.from()==He.head;ne<=ft&&--ft,st.splice(--ne,2,new Gr(xn?Yn:un,xn?un:Yn))}}return new Fo(st,ft)}function No(it,st){return new Fo([new Gr(it,st||it)],0)}function hs(it){return it.text?ii(it.from.line+it.text.length-1,an(it.text).length+(it.text.length==1?it.from.ch:0)):it.to}function co(it,st){if(xi(it,st.from)<0)return it;if(xi(it,st.to)<=0)return hs(st);var ft=it.line+st.text.length-(st.to.line-st.from.line)-1,At=it.ch;return it.line==st.to.line&&(At+=hs(st).ch-st.to.ch),ii(ft,At)}function Pa(it,st){for(var ft=[],At=0;At<it.sel.ranges.length;At++){var xt=it.sel.ranges[At];ft.push(new Gr(co(xt.anchor,st),co(xt.head,st)))}return Vo(it.cm,ft,it.sel.primIndex)}function Os(it,st,ft){return it.line==st.line?ii(ft.line,it.ch-st.ch+ft.ch):ii(ft.line+(it.line-st.line),it.ch)}function Ps(it,st,ft){for(var At=[],xt=ii(it.first,0),ne=xt,Be=0;Be<st.length;Be++){var He=st[Be],_e=Os(He.from,xt,ne),un=Os(hs(He),xt,ne);if(xt=He.to,ne=un,ft=="around"){var Yn=it.sel.ranges[Be],xn=xi(Yn.head,Yn.anchor)<0;At[Be]=new Gr(xn?un:_e,xn?_e:un)}else At[Be]=new Gr(_e,_e)}return new Fo(At,it.sel.primIndex)}function ko(it){it.doc.mode=Un(it.options,it.doc.modeOption),Fs(it)}function Fs(it){it.doc.iter(function(st){st.stateAfter&&(st.stateAfter=null),st.styles&&(st.styles=null)}),it.doc.modeFrontier=it.doc.highlightFrontier=it.doc.first,hn(it,100),it.state.modeGen++,it.curOp&&bl(it)}function $a(it,st){return st.from.ch==0&&st.to.ch==0&&an(st.text)==""&&(!it.cm||it.cm.options.wholeLineUpdateBefore)}function js(it,st,ft,At){function xt($o){return ft?ft[$o]:null}function ne($o,Do,ss){Vs($o,Do,ss,At),Hr($o,"change",$o,st)}function Be($o,Do){for(var ss=[],Ds=$o;Ds<Do;++Ds)ss.push(new zo(un[Ds],xt(Ds),At));return ss}var He=st.from,_e=st.to,un=st.text,Yn=ni(it,He.line),xn=ni(it,_e.line),Ni=an(un),Ei=xt(un.length-1),Nr=_e.line-He.line;if(st.full)it.insert(0,Be(0,un.length)),it.remove(un.length,it.size-un.length);else if($a(it,st)){var jr=Be(0,un.length-1);ne(xn,xn.text,Ei),Nr&&it.remove(He.line,Nr),jr.length&&it.insert(He.line,jr)}else if(Yn==xn)if(un.length==1)ne(Yn,Yn.text.slice(0,He.ch)+Ni+Yn.text.slice(_e.ch),Ei);else{var to=Be(1,un.length-1);to.push(new zo(Ni+Yn.text.slice(_e.ch),Ei,At)),ne(Yn,Yn.text.slice(0,He.ch)+un[0],xt(0)),it.insert(He.line+1,to)}else if(un.length==1)ne(Yn,Yn.text.slice(0,He.ch)+un[0]+xn.text.slice(_e.ch),xt(0)),it.remove(He.line+1,Nr);else{ne(Yn,Yn.text.slice(0,He.ch)+un[0],xt(0)),ne(xn,Ni+xn.text.slice(_e.ch),Ei);var Co=Be(1,un.length-1);Nr>1&&it.remove(He.line+1,Nr-1),it.insert(He.line+1,Co)}Hr(it,"change",it,st)}function jl(it,st,ft){function At(xt,ne,Be){if(xt.linked)for(var He=0;He<xt.linked.length;++He){var _e=xt.linked[He];if(_e.doc!=ne){var un=Be&&_e.sharedHist;ft&&!un||(st(_e.doc,un),At(_e.doc,xt,un))}}}At(it,null,!0)}function Po(it,st){if(st.cm)throw new Error("This document is already in use.");it.doc=st,st.cm=it,gs(it),ko(it),as(it),it.options.lineWrapping||ca(it),it.options.mode=st.modeOption,bl(it)}function as(it){(it.doc.direction=="rtl"?qe:_t)(it.display.lineDiv,"CodeMirror-rtl")}function ds(it){dn(it,function(){as(it),bl(it)})}function Oo(it){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=it||1}function qo(it,st){var ft={from:mi(st.from),to:hs(st),text:Bi(it,st.from,st.to)};return eu(it,ft,st.from.line,st.to.line+1),jl(it,function(At){return eu(At,ft,st.from.line,st.to.line+1)},!0),ft}function bo(it){for(;it.length;){var st=an(it);if(st.ranges)it.pop();else break}}function Ls(it,st){if(st)return bo(it.done),an(it.done);if(it.done.length&&!an(it.done).ranges)return an(it.done);if(it.done.length>1&&!it.done[it.done.length-2].ranges)return it.done.pop(),an(it.done)}function _s(it,st,ft,At){var xt=it.history;xt.undone.length=0;var ne=+new Date,Be,He;if((xt.lastOp==At||xt.lastOrigin==st.origin&&st.origin&&(st.origin.charAt(0)=="+"&&xt.lastModTime>ne-(it.cm?it.cm.options.historyEventDelay:500)||st.origin.charAt(0)=="*"))&&(Be=Ls(xt,xt.lastOp==At)))He=an(Be.changes),xi(st.from,st.to)==0&&xi(st.from,He.to)==0?He.to=hs(st):Be.changes.push(qo(it,st));else{var _e=an(xt.done);for((!_e||!_e.ranges)&&As(it.sel,xt.done),Be={changes:[qo(it,st)],generation:xt.generation},xt.done.push(Be);xt.done.length>xt.undoDepth;)xt.done.shift(),xt.done[0].ranges||xt.done.shift()}xt.done.push(ft),xt.generation=++xt.maxGeneration,xt.lastModTime=xt.lastSelTime=ne,xt.lastOp=xt.lastSelOp=At,xt.lastOrigin=xt.lastSelOrigin=st.origin,He||bn(it,"historyAdded")}function ea(it,st,ft,At){var xt=st.charAt(0);return xt=="*"||xt=="+"&&ft.ranges.length==At.ranges.length&&ft.somethingSelected()==At.somethingSelected()&&new Date-it.history.lastSelTime<=(it.cm?it.cm.options.historyEventDelay:500)}function Yl(it,st,ft,At){var xt=it.history,ne=At&&At.origin;ft==xt.lastSelOp||ne&&xt.lastSelOrigin==ne&&(xt.lastModTime==xt.lastSelTime&&xt.lastOrigin==ne||ea(it,ne,an(xt.done),st))?xt.done[xt.done.length-1]=st:As(st,xt.done),xt.lastSelTime=+new Date,xt.lastSelOrigin=ne,xt.lastSelOp=ft,At&&At.clearRedo!==!1&&bo(xt.undone)}function As(it,st){var ft=an(st);ft&&ft.ranges&&ft.equals(it)||st.push(it)}function eu(it,st,ft,At){var xt=st["spans_"+it.id],ne=0;it.iter(Math.max(it.first,ft),Math.min(it.first+it.size,At),function(Be){Be.markedSpans&&((xt||(xt=st["spans_"+it.id]={}))[ne]=Be.markedSpans),++ne})}function fa(it){if(!it)return null;for(var st,ft=0;ft<it.length;++ft)it[ft].marker.explicitlyCleared?st||(st=it.slice(0,ft)):st&&st.push(it[ft]);return st?st.length?st:null:it}function yl(it,st){var ft=st["spans_"+it.id];if(!ft)return null;for(var At=[],xt=0;xt<st.text.length;++xt)At.push(fa(ft[xt]));return At}function po(it,st){var ft=yl(it,st),At=To(it,st);if(!ft)return At;if(!At)return ft;for(var xt=0;xt<ft.length;++xt){var ne=ft[xt],Be=At[xt];if(ne&&Be)t:for(var He=0;He<Be.length;++He){for(var _e=Be[He],un=0;un<ne.length;++un)if(ne[un].marker==_e.marker)continue t;ne.push(_e)}else Be&&(ft[xt]=Be)}return ft}function Ra(it,st,ft){for(var At=[],xt=0;xt<it.length;++xt){var ne=it[xt];if(ne.ranges){At.push(ft?Fo.prototype.deepCopy.call(ne):ne);continue}var Be=ne.changes,He=[];At.push({changes:He});for(var _e=0;_e<Be.length;++_e){var un=Be[_e],Yn=void 0;if(He.push({from:un.from,to:un.to,text:un.text}),st)for(var xn in un)(Yn=xn.match(/^spans_(\d+)$/))&&Pe(st,Number(Yn[1]))>-1&&(an(He)[xn]=un[xn],delete un[xn])}}return At}function Nu(it,st,ft,At){if(At){var xt=it.anchor;if(ft){var ne=xi(st,xt)<0;ne!=xi(ft,xt)<0?(xt=st,st=ft):ne!=xi(st,ft)<0&&(st=ft)}return new Gr(xt,st)}else return new Gr(ft||st,st)}function wa(it,st,ft,At,xt){xt==null&&(xt=it.cm&&(it.cm.display.shift||it.extend)),Ia(it,new Fo([Nu(it.sel.primary(),st,ft,xt)],0),At)}function na(it,st,ft){for(var At=[],xt=it.cm&&(it.cm.display.shift||it.extend),ne=0;ne<it.sel.ranges.length;ne++)At[ne]=Nu(it.sel.ranges[ne],st[ne],null,xt);var Be=Vo(it.cm,At,it.sel.primIndex);Ia(it,Be,ft)}function Na(it,st,ft,At){var xt=it.sel.ranges.slice(0);xt[st]=ft,Ia(it,Vo(it.cm,xt,it.sel.primIndex),At)}function Xa(it,st,ft,At){Ia(it,No(st,ft),At)}function ul(it,st,ft){var At={ranges:st.ranges,update:function(xt){this.ranges=[];for(var ne=0;ne<xt.length;ne++)this.ranges[ne]=new Gr(sr(it,xt[ne].anchor),sr(it,xt[ne].head))},origin:ft&&ft.origin};return bn(it,"beforeSelectionChange",it,At),it.cm&&bn(it.cm,"beforeSelectionChange",it.cm,At),At.ranges!=st.ranges?Vo(it.cm,At.ranges,At.ranges.length-1):st}function Qs(it,st,ft){var At=it.history.done,xt=an(At);xt&&xt.ranges?(At[At.length-1]=st,Nl(it,st,ft)):Ia(it,st,ft)}function Ia(it,st,ft){Nl(it,st,ft),Yl(it,it.sel,it.cm?it.cm.curOp.id:NaN,ft)}function Nl(it,st,ft){(zi(it,"beforeSelectionChange")||it.cm&&zi(it.cm,"beforeSelectionChange"))&&(st=ul(it,st,ft));var At=ft&&ft.bias||(xi(st.primary().head,it.sel.primary().head)<0?-1:1);Iu(it,ku(it,st,At,!0)),!(ft&&ft.scroll===!1)&&it.cm&&pn(it.cm)}function Iu(it,st){st.equals(it.sel)||(it.sel=st,it.cm&&(it.cm.curOp.updateInput=1,it.cm.curOp.selectionChanged=!0,Ji(it.cm)),Hr(it,"cursorActivity",it))}function mu(it){Iu(it,ku(it,it.sel,null,!1))}function ku(it,st,ft,At){for(var xt,ne=0;ne<st.ranges.length;ne++){var Be=st.ranges[ne],He=st.ranges.length==it.sel.ranges.length&&it.sel.ranges[ne],_e=oh(it,Be.anchor,He&&He.anchor,ft,At),un=oh(it,Be.head,He&&He.head,ft,At);(xt||_e!=Be.anchor||un!=Be.head)&&(xt||(xt=st.ranges.slice(0,ne)),xt[ne]=new Gr(_e,un))}return xt?Vo(it.cm,xt,st.primIndex):st}function Gu(it,st,ft,At,xt){var ne=ni(it,st.line);if(ne.markedSpans)for(var Be=0;Be<ne.markedSpans.length;++Be){var He=ne.markedSpans[Be],_e=He.marker,un="selectLeft"in _e?!_e.selectLeft:_e.inclusiveLeft,Yn="selectRight"in _e?!_e.selectRight:_e.inclusiveRight;if((He.from==null||(un?He.from<=st.ch:He.from<st.ch))&&(He.to==null||(Yn?He.to>=st.ch:He.to>st.ch))){if(xt&&(bn(_e,"beforeCursorEnter"),_e.explicitlyCleared))if(ne.markedSpans){--Be;continue}else break;if(!_e.atomic)continue;if(ft){var xn=_e.find(At<0?1:-1),Ni=void 0;if((At<0?Yn:un)&&(xn=sh(it,xn,-At,xn&&xn.line==st.line?ne:null)),xn&&xn.line==st.line&&(Ni=xi(xn,ft))&&(At<0?Ni<0:Ni>0))return Gu(it,xn,st,At,xt)}var Ei=_e.find(At<0?-1:1);return(At<0?un:Yn)&&(Ei=sh(it,Ei,At,Ei.line==st.line?ne:null)),Ei?Gu(it,Ei,st,At,xt):null}}return st}function oh(it,st,ft,At,xt){var ne=At||1,Be=Gu(it,st,ft,ne,xt)||!xt&&Gu(it,st,ft,ne,!0)||Gu(it,st,ft,-ne,xt)||!xt&&Gu(it,st,ft,-ne,!0);return Be||(it.cantEdit=!0,ii(it.first,0))}function sh(it,st,ft,At){return ft<0&&st.ch==0?st.line>it.first?sr(it,ii(st.line-1)):null:ft>0&&st.ch==(At||ni(it,st.line)).text.length?st.line<it.first+it.size-1?ii(st.line+1,0):null:new ii(st.line,st.ch+ft)}function Va(it){it.setSelection(ii(it.firstLine(),0),ii(it.lastLine()),Xe)}function Cu(it,st,ft){var At={canceled:!1,from:st.from,to:st.to,text:st.text,origin:st.origin,cancel:function(){return At.canceled=!0}};return ft&&(At.update=function(xt,ne,Be,He){xt&&(At.from=sr(it,xt)),ne&&(At.to=sr(it,ne)),Be&&(At.text=Be),He!==void 0&&(At.origin=He)}),bn(it,"beforeChange",it,At),it.cm&&bn(it.cm,"beforeChange",it.cm,At),At.canceled?(it.cm&&(it.cm.curOp.updateInput=2),null):{from:At.from,to:At.to,text:At.text,origin:At.origin}}function Sl(it,st,ft){if(it.cm){if(!it.cm.curOp)return Dn(it.cm,Sl)(it,st,ft);if(it.cm.state.suppressEdits)return}if(!((zi(it,"beforeChange")||it.cm&&zi(it.cm,"beforeChange"))&&(st=Cu(it,st,!0),!st))){var At=_r&&!ft&&rs(it,st.from,st.to);if(At)for(var xt=At.length-1;xt>=0;--xt)dl(it,{from:At[xt].from,to:At[xt].to,text:xt?[""]:st.text,origin:st.origin});else dl(it,st)}}function dl(it,st){if(!(st.text.length==1&&st.text[0]==""&&xi(st.from,st.to)==0)){var ft=Pa(it,st);_s(it,st,ft,it.cm?it.cm.curOp.id:NaN),bh(it,st,ft,To(it,st));var At=[];jl(it,function(xt,ne){!ne&&Pe(At,xt.history)==-1&&(ra(xt.history,st),At.push(xt.history)),bh(xt,st,null,To(xt,st))})}}function ph(it,st,ft){var At=it.cm&&it.cm.state.suppressEdits;if(!(At&&!ft)){for(var xt=it.history,ne,Be=it.sel,He=st=="undo"?xt.done:xt.undone,_e=st=="undo"?xt.undone:xt.done,un=0;un<He.length&&(ne=He[un],!(ft?ne.ranges&&!ne.equals(it.sel):!ne.ranges));un++);if(un!=He.length){for(xt.lastOrigin=xt.lastSelOrigin=null;;)if(ne=He.pop(),ne.ranges){if(As(ne,_e),ft&&!ne.equals(it.sel)){Ia(it,ne,{clearRedo:!1});return}Be=ne}else if(At){He.push(ne);return}else break;var Yn=[];As(Be,_e),_e.push({changes:Yn,generation:xt.generation}),xt.generation=ne.generation||++xt.maxGeneration;for(var xn=zi(it,"beforeChange")||it.cm&&zi(it.cm,"beforeChange"),Ni=function(jr){var to=ne.changes[jr];if(to.origin=st,xn&&!Cu(it,to,!1))return He.length=0,{};Yn.push(qo(it,to));var Co=jr?Pa(it,to):an(He);bh(it,to,Co,po(it,to)),!jr&&it.cm&&it.cm.scrollIntoView({from:to.from,to:hs(to)});var $o=[];jl(it,function(Do,ss){!ss&&Pe($o,Do.history)==-1&&(ra(Do.history,to),$o.push(Do.history)),bh(Do,to,null,po(Do,to))})},Ei=ne.changes.length-1;Ei>=0;--Ei){var Nr=Ni(Ei);if(Nr)return Nr.v}}}}function ec(it,st){if(st!=0&&(it.first+=st,it.sel=new Fo(Li(it.sel.ranges,function(xt){return new Gr(ii(xt.anchor.line+st,xt.anchor.ch),ii(xt.head.line+st,xt.head.ch))}),it.sel.primIndex),it.cm)){bl(it.cm,it.first,it.first-st,st);for(var ft=it.cm.display,At=ft.viewFrom;At<ft.viewTo;At++)sa(it.cm,At,"gutter")}}function bh(it,st,ft,At){if(it.cm&&!it.cm.curOp)return Dn(it.cm,bh)(it,st,ft,At);if(st.to.line<it.first){ec(it,st.text.length-1-(st.to.line-st.from.line));return}if(!(st.from.line>it.lastLine())){if(st.from.line<it.first){var xt=st.text.length-1-(it.first-st.from.line);ec(it,xt),st={from:ii(it.first,0),to:ii(st.to.line+xt,st.to.ch),text:[an(st.text)],origin:st.origin}}var ne=it.lastLine();st.to.line>ne&&(st={from:st.from,to:ii(ne,ni(it,ne).text.length),text:[st.text[0]],origin:st.origin}),st.removed=Bi(it,st.from,st.to),ft||(ft=Pa(it,st)),it.cm?Dh(it.cm,st,At):js(it,st,At),Nl(it,ft,Xe),it.cantEdit&&oh(it,ii(it.firstLine(),0))&&(it.cantEdit=!1)}}function Dh(it,st,ft){var At=it.doc,xt=it.display,ne=st.from,Be=st.to,He=!1,_e=ne.line;it.options.lineWrapping||(_e=sn(Lo(ni(At,ne.line))),At.iter(_e,Be.line+1,function(Ei){if(Ei==xt.maxLine)return He=!0,!0})),At.sel.contains(st.from,st.to)>-1&&Ji(it),js(At,st,ft,il(it)),it.options.lineWrapping||(At.iter(_e,ne.line+st.text.length,function(Ei){var Nr=la(Ei);Nr>xt.maxLineLength&&(xt.maxLine=Ei,xt.maxLineLength=Nr,xt.maxLineChanged=!0,He=!1)}),He&&(it.curOp.updateMaxLine=!0)),xo(At,ne.line),hn(it,400);var un=st.text.length-(Be.line-ne.line)-1;st.full?bl(it):ne.line==Be.line&&st.text.length==1&&!$a(it.doc,st)?sa(it,ne.line,"text"):bl(it,ne.line,Be.line+1,un);var Yn=zi(it,"changes"),xn=zi(it,"change");if(xn||Yn){var Ni={from:ne,to:Be,text:st.text,removed:st.removed,origin:st.origin};xn&&Hr(it,"change",it,Ni),Yn&&(it.curOp.changeObjs||(it.curOp.changeObjs=[])).push(Ni)}it.display.selForContextMenu=null}function fc(it,st,ft,At,xt){var ne;At||(At=ft),xi(At,ft)<0&&(ne=[At,ft],ft=ne[0],At=ne[1]),typeof st=="string"&&(st=it.splitLines(st)),Sl(it,{from:ft,to:At,text:st,origin:xt})}function Wu(it,st,ft,At){ft<it.line?it.line+=At:st<it.line&&(it.line=st,it.ch=0)}function ka(it,st,ft,At){for(var xt=0;xt<it.length;++xt){var ne=it[xt],Be=!0;if(ne.ranges){ne.copied||(ne=it[xt]=ne.deepCopy(),ne.copied=!0);for(var He=0;He<ne.ranges.length;He++)Wu(ne.ranges[He].anchor,st,ft,At),Wu(ne.ranges[He].head,st,ft,At);continue}for(var _e=0;_e<ne.changes.length;++_e){var un=ne.changes[_e];if(ft<un.from.line)un.from=ii(un.from.line+At,un.from.ch),un.to=ii(un.to.line+At,un.to.ch);else if(st<=un.to.line){Be=!1;break}}Be||(it.splice(0,xt+1),xt=0)}}function ra(it,st){var ft=st.from.line,At=st.to.line,xt=st.text.length-(At-ft)-1;ka(it.done,ft,At,xt),ka(it.undone,ft,At,xt)}function uu(it,st,ft,At){var xt=st,ne=st;return typeof st=="number"?ne=ni(it,nr(it,st)):xt=sn(st),xt==null?null:(At(ne,xt)&&it.cm&&sa(it.cm,xt,ft),ne)}function wl(it){this.lines=it,this.parent=null;for(var st=0,ft=0;ft<it.length;++ft)it[ft].parent=this,st+=it[ft].height;this.height=st}wl.prototype={chunkSize:function(){return this.lines.length},removeInner:function(it,st){for(var ft=it,At=it+st;ft<At;++ft){var xt=this.lines[ft];this.height-=xt.height,Ka(xt),Hr(xt,"delete")}this.lines.splice(it,st)},collapse:function(it){it.push.apply(it,this.lines)},insertInner:function(it,st,ft){this.height+=ft,this.lines=this.lines.slice(0,it).concat(st).concat(this.lines.slice(it));for(var At=0;At<st.length;++At)st[At].parent=this},iterN:function(it,st,ft){for(var At=it+st;it<At;++it)if(ft(this.lines[it]))return!0}};function ga(it){this.children=it;for(var st=0,ft=0,At=0;At<it.length;++At){var xt=it[At];st+=xt.chunkSize(),ft+=xt.height,xt.parent=this}this.size=st,this.height=ft,this.parent=null}ga.prototype={chunkSize:function(){return this.size},removeInner:function(it,st){this.size-=st;for(var ft=0;ft<this.children.length;++ft){var At=this.children[ft],xt=At.chunkSize();if(it<xt){var ne=Math.min(st,xt-it),Be=At.height;if(At.removeInner(it,ne),this.height-=Be-At.height,xt==ne&&(this.children.splice(ft--,1),At.parent=null),(st-=ne)==0)break;it=0}else it-=xt}if(this.size-st<25&&(this.children.length>1||!(this.children[0]instanceof wl))){var He=[];this.collapse(He),this.children=[new wl(He)],this.children[0].parent=this}},collapse:function(it){for(var st=0;st<this.children.length;++st)this.children[st].collapse(it)},insertInner:function(it,st,ft){this.size+=st.length,this.height+=ft;for(var At=0;At<this.children.length;++At){var xt=this.children[At],ne=xt.chunkSize();if(it<=ne){if(xt.insertInner(it,st,ft),xt.lines&&xt.lines.length>50){for(var Be=xt.lines.length%25+25,He=Be;He<xt.lines.length;){var _e=new wl(xt.lines.slice(He,He+=25));xt.height-=_e.height,this.children.splice(++At,0,_e),_e.parent=this}xt.lines=xt.lines.slice(0,Be),this.maybeSpill()}break}it-=ne}},maybeSpill:function(){if(!(this.children.length<=10)){var it=this;do{var st=it.children.splice(it.children.length-5,5),ft=new ga(st);if(it.parent){it.size-=ft.size,it.height-=ft.height;var xt=Pe(it.parent.children,it);it.parent.children.splice(xt+1,0,ft)}else{var At=new ga(it.children);At.parent=it,it.children=[At,ft],it=At}ft.parent=it.parent}while(it.children.length>10);it.parent.maybeSpill()}},iterN:function(it,st,ft){for(var At=0;At<this.children.length;++At){var xt=this.children[At],ne=xt.chunkSize();if(it<ne){var Be=Math.min(st,ne-it);if(xt.iterN(it,Be,ft))return!0;if((st-=Be)==0)break;it=0}else it-=ne}}};var hu=function(it,st,ft){if(ft)for(var At in ft)ft.hasOwnProperty(At)&&(this[At]=ft[At]);this.doc=it,this.node=st};hu.prototype.clear=function(){var it=this.doc.cm,st=this.line.widgets,ft=this.line,At=sn(ft);if(!(At==null||!st)){for(var xt=0;xt<st.length;++xt)st[xt]==this&&st.splice(xt--,1);st.length||(ft.widgets=null);var ne=Cs(this);tr(ft,Math.max(0,ft.height-ne)),it&&(dn(it,function(){Ru(it,ft,-ne),sa(it,At,"widget")}),Hr(it,"lineWidgetCleared",it,this,At))}},hu.prototype.changed=function(){var it=this,st=this.height,ft=this.doc.cm,At=this.line;this.height=null;var xt=Cs(this)-st;xt&&(Ki(this.doc,At)||tr(At,At.height+xt),ft&&dn(ft,function(){ft.curOp.forceUpdate=!0,Ru(ft,At,xt),Hr(ft,"lineWidgetChanged",ft,it,sn(At))}))},dr(hu);function Ru(it,st,ft){Es(st)<(it.curOp&&it.curOp.scrollTop||it.doc.scrollTop)&&mn(it,ft)}function Tu(it,st,ft,At){var xt=new hu(it,ft,At),ne=it.cm;return ne&&xt.noHScroll&&(ne.display.alignWidgets=!0),uu(it,st,"widget",function(Be){var He=Be.widgets||(Be.widgets=[]);if(xt.insertAt==null?He.push(xt):He.splice(Math.min(He.length-1,Math.max(0,xt.insertAt)),0,xt),xt.line=Be,ne&&!Ki(it,Be)){var _e=Es(Be)<it.scrollTop;tr(Be,Be.height+Cs(xt)),_e&&mn(ne,xt.height),ne.curOp.forceUpdate=!0}return!0}),ne&&Hr(ne,"lineWidgetAdded",ne,xt,typeof st=="number"?st:sn(st)),xt}var Yc=0,_n=function(it,st){this.lines=[],this.type=st,this.doc=it,this.id=++Yc};_n.prototype.clear=function(){if(!this.explicitlyCleared){var it=this.doc.cm,st=it&&!it.curOp;if(st&&zn(it),zi(this,"clear")){var ft=this.find();ft&&Hr(this,"clear",ft.from,ft.to)}for(var At=null,xt=null,ne=0;ne<this.lines.length;++ne){var Be=this.lines[ne],He=qs(Be.markedSpans,this);it&&!this.collapsed?sa(it,sn(Be),"text"):it&&(He.to!=null&&(xt=sn(Be)),He.from!=null&&(At=sn(Be))),Be.markedSpans=fs(Be.markedSpans,He),He.from==null&&this.collapsed&&!Ki(this.doc,Be)&&it&&tr(Be,Uu(it.display))}if(it&&this.collapsed&&!it.options.lineWrapping)for(var _e=0;_e<this.lines.length;++_e){var un=Lo(this.lines[_e]),Yn=la(un);Yn>it.display.maxLineLength&&(it.display.maxLine=un,it.display.maxLineLength=Yn,it.display.maxLineChanged=!0)}At!=null&&it&&this.collapsed&&bl(it,At,xt+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,it&&mu(it.doc)),it&&Hr(it,"markerCleared",it,this,At,xt),st&&Xn(it),this.parent&&this.parent.clear()}},_n.prototype.find=function(it,st){it==null&&this.type=="bookmark"&&(it=1);for(var ft,At,xt=0;xt<this.lines.length;++xt){var ne=this.lines[xt],Be=qs(ne.markedSpans,this);if(Be.from!=null&&(ft=ii(st?ne:sn(ne),Be.from),it==-1))return ft;if(Be.to!=null&&(At=ii(st?ne:sn(ne),Be.to),it==1))return At}return ft&&{from:ft,to:At}},_n.prototype.changed=function(){var it=this,st=this.find(-1,!0),ft=this,At=this.doc.cm;!st||!At||dn(At,function(){var xt=st.line,ne=sn(st.line),Be=dh(At,ne);if(Be&&(Mu(Be),At.curOp.selectionChanged=At.curOp.forceUpdate=!0),At.curOp.updateMaxLine=!0,!Ki(ft.doc,xt)&&ft.height!=null){var He=ft.height;ft.height=null;var _e=Cs(ft)-He;_e&&tr(xt,xt.height+_e)}Hr(At,"markerChanged",At,it)})},_n.prototype.attachLine=function(it){if(!this.lines.length&&this.doc.cm){var st=this.doc.cm.curOp;(!st.maybeHiddenMarkers||Pe(st.maybeHiddenMarkers,this)==-1)&&(st.maybeUnhiddenMarkers||(st.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(it)},_n.prototype.detachLine=function(it){if(this.lines.splice(Pe(this.lines,it),1),!this.lines.length&&this.doc.cm){var st=this.doc.cm.curOp;(st.maybeHiddenMarkers||(st.maybeHiddenMarkers=[])).push(this)}},dr(_n);function nc(it,st,ft,At,xt){if(At&&At.shared)return EA(it,st,ft,At,xt);if(it.cm&&!it.cm.curOp)return Dn(it.cm,nc)(it,st,ft,At,xt);var ne=new _n(it,xt),Be=xi(st,ft);if(At&&Qe(At,ne,!1),Be>0||Be==0&&ne.clearWhenEmpty!==!1)return ne;if(ne.replacedWith&&(ne.collapsed=!0,ne.widgetNode=Fe("span",[ne.replacedWith],"CodeMirror-widget"),At.handleMouseEvents||ne.widgetNode.setAttribute("cm-ignore-events","true"),At.insertLeft&&(ne.widgetNode.insertLeft=!0)),ne.collapsed){if(Jo(it,st.line,st,ft,ne)||st.line!=ft.line&&Jo(it,ft.line,st,ft,ne))throw new Error("Inserting collapsed marker partially overlapping an existing one");bi()}ne.addToHistory&&_s(it,{from:st,to:ft,origin:"markText"},it.sel,NaN);var He=st.line,_e=it.cm,un;if(it.iter(He,ft.line+1,function(xn){_e&&ne.collapsed&&!_e.options.lineWrapping&&Lo(xn)==_e.display.maxLine&&(un=!0),ne.collapsed&&He!=st.line&&tr(xn,0),Hs(xn,new ns(ne,He==st.line?st.ch:null,He==ft.line?ft.ch:null)),++He}),ne.collapsed&&it.iter(st.line,ft.line+1,function(xn){Ki(it,xn)&&tr(xn,0)}),ne.clearOnEnter&&je(ne,"beforeCursorEnter",function(){return ne.clear()}),ne.readOnly&&(Qo(),(it.history.done.length||it.history.undone.length)&&it.clearHistory()),ne.collapsed&&(ne.id=++Yc,ne.atomic=!0),_e){if(un&&(_e.curOp.updateMaxLine=!0),ne.collapsed)bl(_e,st.line,ft.line+1);else if(ne.className||ne.startStyle||ne.endStyle||ne.css||ne.attributes||ne.title)for(var Yn=st.line;Yn<=ft.line;Yn++)sa(_e,Yn,"text");ne.atomic&&mu(_e.doc),Hr(_e,"markerAdded",_e,ne)}return ne}var jh=function(it,st){this.markers=it,this.primary=st;for(var ft=0;ft<it.length;++ft)it[ft].parent=this};jh.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var it=0;it<this.markers.length;++it)this.markers[it].clear();Hr(this,"clear")}},jh.prototype.find=function(it,st){return this.primary.find(it,st)},dr(jh);function EA(it,st,ft,At,xt){At=Qe(At),At.shared=!1;var ne=[nc(it,st,ft,At,xt)],Be=ne[0],He=At.widgetNode;return jl(it,function(_e){He&&(At.widgetNode=He.cloneNode(!0)),ne.push(nc(_e,sr(_e,st),sr(_e,ft),At,xt));for(var un=0;un<_e.linked.length;++un)if(_e.linked[un].isParent)return;Be=an(ne)}),new jh(ne,Be)}function $c(it){return it.findMarks(ii(it.first,0),it.clipPos(ii(it.lastLine())),function(st){return st.parent})}function Fc(it,st){for(var ft=0;ft<st.length;ft++){var At=st[ft],xt=At.find(),ne=it.clipPos(xt.from),Be=it.clipPos(xt.to);if(xi(ne,Be)){var He=nc(it,ne,Be,At.primary,At.primary.type);At.markers.push(He),He.parent=At}}}function ad(it){for(var st=function(At){var xt=it[At],ne=[xt.primary.doc];jl(xt.primary.doc,function(_e){return ne.push(_e)});for(var Be=0;Be<xt.markers.length;Be++){var He=xt.markers[Be];Pe(ne,He.doc)==-1&&(He.parent=null,xt.markers.splice(Be--,1))}},ft=0;ft<it.length;ft++)st(ft)}var HA=0,vu=function(it,st,ft,At,xt){if(!(this instanceof vu))return new vu(it,st,ft,At,xt);ft==null&&(ft=0),ga.call(this,[new wl([new zo("",null)])]),this.first=ft,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ft;var ne=ii(ft,0);this.sel=No(ne),this.history=new Oo(null),this.id=++HA,this.modeOption=st,this.lineSep=At,this.direction=xt=="rtl"?"rtl":"ltr",this.extend=!1,typeof it=="string"&&(it=this.splitLines(it)),js(this,{from:ne,to:ne,text:it}),Ia(this,No(ne),Xe)};vu.prototype=Pn(ga.prototype,{constructor:vu,iter:function(it,st,ft){ft?this.iterN(it-this.first,st-it,ft):this.iterN(this.first,this.first+this.size,it)},insert:function(it,st){for(var ft=0,At=0;At<st.length;++At)ft+=st[At].height;this.insertInner(it-this.first,st,ft)},remove:function(it,st){this.removeInner(it-this.first,st)},getValue:function(it){var st=_i(this,this.first,this.first+this.size);return it===!1?st:st.join(it||this.lineSeparator())},setValue:Ue(function(it){var st=ii(this.first,0),ft=this.first+this.size-1;Sl(this,{from:st,to:ii(ft,ni(this,ft).text.length),text:this.splitLines(it),origin:"setValue",full:!0},!0),this.cm&&Tn(this.cm,0,0),Ia(this,No(st),Xe)}),replaceRange:function(it,st,ft,At){st=sr(this,st),ft=ft?sr(this,ft):st,fc(this,it,st,ft,At)},getRange:function(it,st,ft){var At=Bi(this,sr(this,it),sr(this,st));return ft===!1?At:At.join(ft||this.lineSeparator())},getLine:function(it){var st=this.getLineHandle(it);return st&&st.text},getLineHandle:function(it){if(Zi(this,it))return ni(this,it)},getLineNumber:function(it){return sn(it)},getLineHandleVisualStart:function(it){return typeof it=="number"&&(it=ni(this,it)),Lo(it)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(it){return sr(this,it)},getCursor:function(it){var st=this.sel.primary(),ft;return it==null||it=="head"?ft=st.head:it=="anchor"?ft=st.anchor:it=="end"||it=="to"||it===!1?ft=st.to():ft=st.from(),ft},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Ue(function(it,st,ft){Xa(this,sr(this,typeof it=="number"?ii(it,st||0):it),null,ft)}),setSelection:Ue(function(it,st,ft){Xa(this,sr(this,it),sr(this,st||it),ft)}),extendSelection:Ue(function(it,st,ft){wa(this,sr(this,it),st&&sr(this,st),ft)}),extendSelections:Ue(function(it,st){na(this,Zr(this,it),st)}),extendSelectionsBy:Ue(function(it,st){var ft=Li(this.sel.ranges,it);na(this,Zr(this,ft),st)}),setSelections:Ue(function(it,st,ft){if(it.length){for(var At=[],xt=0;xt<it.length;xt++)At[xt]=new Gr(sr(this,it[xt].anchor),sr(this,it[xt].head));st==null&&(st=Math.min(it.length-1,this.sel.primIndex)),Ia(this,Vo(this.cm,At,st),ft)}}),addSelection:Ue(function(it,st,ft){var At=this.sel.ranges.slice(0);At.push(new Gr(sr(this,it),sr(this,st||it))),Ia(this,Vo(this.cm,At,At.length-1),ft)}),getSelection:function(it){for(var st=this.sel.ranges,ft,At=0;At<st.length;At++){var xt=Bi(this,st[At].from(),st[At].to());ft=ft?ft.concat(xt):xt}return it===!1?ft:ft.join(it||this.lineSeparator())},getSelections:function(it){for(var st=[],ft=this.sel.ranges,At=0;At<ft.length;At++){var xt=Bi(this,ft[At].from(),ft[At].to());it!==!1&&(xt=xt.join(it||this.lineSeparator())),st[At]=xt}return st},replaceSelection:function(it,st,ft){for(var At=[],xt=0;xt<this.sel.ranges.length;xt++)At[xt]=it;this.replaceSelections(At,st,ft||"+input")},replaceSelections:Ue(function(it,st,ft){for(var At=[],xt=this.sel,ne=0;ne<xt.ranges.length;ne++){var Be=xt.ranges[ne];At[ne]={from:Be.from(),to:Be.to(),text:this.splitLines(it[ne]),origin:ft}}for(var He=st&&st!="end"&&Ps(this,At,st),_e=At.length-1;_e>=0;_e--)Sl(this,At[_e]);He?Qs(this,He):this.cm&&pn(this.cm)}),undo:Ue(function(){ph(this,"undo")}),redo:Ue(function(){ph(this,"redo")}),undoSelection:Ue(function(){ph(this,"undo",!0)}),redoSelection:Ue(function(){ph(this,"redo",!0)}),setExtending:function(it){this.extend=it},getExtending:function(){return this.extend},historySize:function(){for(var it=this.history,st=0,ft=0,At=0;At<it.done.length;At++)it.done[At].ranges||++st;for(var xt=0;xt<it.undone.length;xt++)it.undone[xt].ranges||++ft;return{undo:st,redo:ft}},clearHistory:function(){var it=this;this.history=new Oo(this.history.maxGeneration),jl(this,function(st){return st.history=it.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(it){return it&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(it){return this.history.generation==(it||this.cleanGeneration)},getHistory:function(){return{done:Ra(this.history.done),undone:Ra(this.history.undone)}},setHistory:function(it){var st=this.history=new Oo(this.history.maxGeneration);st.done=Ra(it.done.slice(0),null,!0),st.undone=Ra(it.undone.slice(0),null,!0)},setGutterMarker:Ue(function(it,st,ft){return uu(this,it,"gutter",function(At){var xt=At.gutterMarkers||(At.gutterMarkers={});return xt[st]=ft,!ft&&zt(xt)&&(At.gutterMarkers=null),!0})}),clearGutter:Ue(function(it){var st=this;this.iter(function(ft){ft.gutterMarkers&&ft.gutterMarkers[it]&&uu(st,ft,"gutter",function(){return ft.gutterMarkers[it]=null,zt(ft.gutterMarkers)&&(ft.gutterMarkers=null),!0})})}),lineInfo:function(it){var st;if(typeof it=="number"){if(!Zi(this,it)||(st=it,it=ni(this,it),!it))return null}else if(st=sn(it),st==null)return null;return{line:st,handle:it,text:it.text,gutterMarkers:it.gutterMarkers,textClass:it.textClass,bgClass:it.bgClass,wrapClass:it.wrapClass,widgets:it.widgets}},addLineClass:Ue(function(it,st,ft){return uu(this,it,st=="gutter"?"gutter":"class",function(At){var xt=st=="text"?"textClass":st=="background"?"bgClass":st=="gutter"?"gutterClass":"wrapClass";if(!At[xt])At[xt]=ft;else{if(Tt(ft).test(At[xt]))return!1;At[xt]+=" "+ft}return!0})}),removeLineClass:Ue(function(it,st,ft){return uu(this,it,st=="gutter"?"gutter":"class",function(At){var xt=st=="text"?"textClass":st=="background"?"bgClass":st=="gutter"?"gutterClass":"wrapClass",ne=At[xt];if(ne)if(ft==null)At[xt]=null;else{var Be=ne.match(Tt(ft));if(!Be)return!1;var He=Be.index+Be[0].length;At[xt]=ne.slice(0,Be.index)+(!Be.index||He==ne.length?"":" ")+ne.slice(He)||null}else return!1;return!0})}),addLineWidget:Ue(function(it,st,ft){return Tu(this,it,st,ft)}),removeLineWidget:function(it){it.clear()},markText:function(it,st,ft){return nc(this,sr(this,it),sr(this,st),ft,ft&&ft.type||"range")},setBookmark:function(it,st){var ft={replacedWith:st&&(st.nodeType==null?st.widget:st),insertLeft:st&&st.insertLeft,clearWhenEmpty:!1,shared:st&&st.shared,handleMouseEvents:st&&st.handleMouseEvents};return it=sr(this,it),nc(this,it,it,ft,"bookmark")},findMarksAt:function(it){it=sr(this,it);var st=[],ft=ni(this,it.line).markedSpans;if(ft)for(var At=0;At<ft.length;++At){var xt=ft[At];(xt.from==null||xt.from<=it.ch)&&(xt.to==null||xt.to>=it.ch)&&st.push(xt.marker.parent||xt.marker)}return st},findMarks:function(it,st,ft){it=sr(this,it),st=sr(this,st);var At=[],xt=it.line;return this.iter(it.line,st.line+1,function(ne){var Be=ne.markedSpans;if(Be)for(var He=0;He<Be.length;He++){var _e=Be[He];!(_e.to!=null&&xt==it.line&&it.ch>=_e.to||_e.from==null&&xt!=it.line||_e.from!=null&&xt==st.line&&_e.from>=st.ch)&&(!ft||ft(_e.marker))&&At.push(_e.marker.parent||_e.marker)}++xt}),At},getAllMarks:function(){var it=[];return this.iter(function(st){var ft=st.markedSpans;if(ft)for(var At=0;At<ft.length;++At)ft[At].from!=null&&it.push(ft[At].marker)}),it},posFromIndex:function(it){var st,ft=this.first,At=this.lineSeparator().length;return this.iter(function(xt){var ne=xt.text.length+At;if(ne>it)return st=it,!0;it-=ne,++ft}),sr(this,ii(ft,st))},indexFromPos:function(it){it=sr(this,it);var st=it.ch;if(it.line<this.first||it.ch<0)return 0;var ft=this.lineSeparator().length;return this.iter(this.first,it.line,function(At){st+=At.text.length+ft}),st},copy:function(it){var st=new vu(_i(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return st.scrollTop=this.scrollTop,st.scrollLeft=this.scrollLeft,st.sel=this.sel,st.extend=!1,it&&(st.history.undoDepth=this.history.undoDepth,st.setHistory(this.getHistory())),st},linkedDoc:function(it){it||(it={});var st=this.first,ft=this.first+this.size;it.from!=null&&it.from>st&&(st=it.from),it.to!=null&&it.to<ft&&(ft=it.to);var At=new vu(_i(this,st,ft),it.mode||this.modeOption,st,this.lineSep,this.direction);return it.sharedHist&&(At.history=this.history),(this.linked||(this.linked=[])).push({doc:At,sharedHist:it.sharedHist}),At.linked=[{doc:this,isParent:!0,sharedHist:it.sharedHist}],Fc(At,$c(this)),At},unlinkDoc:function(it){if(it instanceof Us&&(it=it.doc),this.linked)for(var st=0;st<this.linked.length;++st){var ft=this.linked[st];if(ft.doc==it){this.linked.splice(st,1),it.unlinkDoc(this),ad($c(this));break}}if(it.history==this.history){var At=[it.id];jl(it,function(xt){return At.push(xt.id)},!0),it.history=new Oo(null),it.history.done=Ra(this.history.done,At),it.history.undone=Ra(this.history.undone,At)}},iterLinkedDocs:function(it){jl(this,it)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(it){return this.lineSep?it.split(this.lineSep):ws(it)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:Ue(function(it){it!="rtl"&&(it="ltr"),it!=this.direction&&(this.direction=it,this.iter(function(st){return st.order=null}),this.cm&&ds(this.cm))})}),vu.prototype.eachLine=vu.prototype.iter;var Sd=0;function Rd(it){var st=this;if(_d(st),!(ci(st,it)||lu(st.display,it))){Fr(it),ie&&(Sd=+new Date);var ft=Xu(st,it,!0),At=it.dataTransfer.files;if(!(!ft||st.isReadOnly()))if(At&&At.length&&window.FileReader&&window.File)for(var xt=At.length,ne=Array(xt),Be=0,He=function(){++Be==xt&&Dn(st,function(){ft=sr(st.doc,ft);var Ei={from:ft,to:ft,text:st.doc.splitLines(ne.filter(function(Nr){return Nr!=null}).join(st.doc.lineSeparator())),origin:"paste"};Sl(st.doc,Ei),Qs(st.doc,No(sr(st.doc,ft),sr(st.doc,hs(Ei))))})()},_e=function(Ei,Nr){if(st.options.allowDropFileTypes&&Pe(st.options.allowDropFileTypes,Ei.type)==-1){He();return}var jr=new FileReader;jr.onerror=function(){return He()},jr.onload=function(){var to=jr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(to)){He();return}ne[Nr]=to,He()},jr.readAsText(Ei)},un=0;un<At.length;un++)_e(At[un],un);else{if(st.state.draggingText&&st.doc.sel.contains(ft)>-1){st.state.draggingText(it),setTimeout(function(){return st.display.input.focus()},20);return}try{var Yn=it.dataTransfer.getData("Text");if(Yn){var xn;if(st.state.draggingText&&!st.state.draggingText.copy&&(xn=st.listSelections()),Nl(st.doc,No(ft,ft)),xn)for(var Ni=0;Ni<xn.length;++Ni)fc(st.doc,"",xn[Ni].anchor,xn[Ni].head,"drag");st.replaceSelection(Yn,"around","paste"),st.display.input.focus()}}catch(Ei){}}}}function ld(it,st){if(ie&&(!it.state.draggingText||+new Date-Sd<100)){zr(st);return}if(!(ci(it,st)||lu(it.display,st))&&(st.dataTransfer.setData("Text",it.getSelection()),st.dataTransfer.effectAllowed="copyMove",st.dataTransfer.setDragImage&&!Wt)){var ft=Ae("img",null,null,"position: fixed; left: 0; top: 0;");ft.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",St&&(ft.width=ft.height=1,it.display.wrapper.appendChild(ft),ft._top=ft.offsetTop),st.dataTransfer.setDragImage(ft,0,0),St&&ft.parentNode.removeChild(ft)}}function Lc(it,st){var ft=Xu(it,st);if(ft){var At=document.createDocumentFragment();Da(it,ft,At),it.display.dragCursor||(it.display.dragCursor=Ae("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),it.display.lineSpace.insertBefore(it.display.dragCursor,it.display.cursorDiv)),he(it.display.dragCursor,At)}}function _d(it){it.display.dragCursor&&(it.display.lineSpace.removeChild(it.display.dragCursor),it.display.dragCursor=null)}function Cd(it){if(document.getElementsByClassName){for(var st=document.getElementsByClassName("CodeMirror"),ft=[],At=0;At<st.length;At++){var xt=st[At].CodeMirror;xt&&ft.push(xt)}ft.length&&ft[0].operation(function(){for(var ne=0;ne<ft.length;ne++)it(ft[ne])})}}var ah=!1;function Ul(){ah||(Bd(),ah=!0)}function Bd(){var it;je(window,"resize",function(){it==null&&(it=setTimeout(function(){it=null,Cd(lA)},100))}),je(window,"blur",function(){return Cd(Et)})}function lA(it){var st=it.display;st.cachedCharWidth=st.cachedTextHeight=st.cachedPaddingH=null,st.scrollbarsClipped=!1,it.setSize()}for(var Ys={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"},Xc=0;Xc<10;Xc++)Ys[Xc+48]=Ys[Xc+96]=String(Xc);for(var Pd=65;Pd<=90;Pd++)Ys[Pd]=String.fromCharCode(Pd);for(var mh=1;mh<=12;mh++)Ys[mh+111]=Ys[mh+63235]="F"+mh;var qu={};qu.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"},qu.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"},qu.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"},qu.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"]},qu.default=lt?qu.macDefault:qu.pcDefault;function Hd(it){var st=it.split(/-(?!$)/);it=st[st.length-1];for(var ft,At,xt,ne,Be=0;Be<st.length-1;Be++){var He=st[Be];if(/^(cmd|meta|m)$/i.test(He))ne=!0;else if(/^a(lt)?$/i.test(He))ft=!0;else if(/^(c|ctrl|control)$/i.test(He))At=!0;else if(/^s(hift)?$/i.test(He))xt=!0;else throw new Error("Unrecognized modifier name: "+He)}return ft&&(it="Alt-"+it),At&&(it="Ctrl-"+it),ne&&(it="Cmd-"+it),xt&&(it="Shift-"+it),it}function ud(it){var st={};for(var ft in it)if(it.hasOwnProperty(ft)){var At=it[ft];if(/^(name|fallthrough|(de|at)tach)$/.test(ft))continue;if(At=="..."){delete it[ft];continue}for(var xt=Li(ft.split(" "),Hd),ne=0;ne<xt.length;ne++){var Be=void 0,He=void 0;ne==xt.length-1?(He=xt.join(" "),Be=At):(He=xt.slice(0,ne+1).join(" "),Be="...");var _e=st[He];if(!_e)st[He]=Be;else if(_e!=Be)throw new Error("Inconsistent bindings for "+He)}delete it[ft]}for(var un in st)it[un]=st[un];return it}function th(it,st,ft,At){st=nu(st);var xt=st.call?st.call(it,At):st[it];if(xt===!1)return"nothing";if(xt==="...")return"multi";if(xt!=null&&ft(xt))return"handled";if(st.fallthrough){if(Object.prototype.toString.call(st.fallthrough)!="[object Array]")return th(it,st.fallthrough,ft,At);for(var ne=0;ne<st.fallthrough.length;ne++){var Be=th(it,st.fallthrough[ne],ft,At);if(Be)return Be}}}function bd(it){var st=typeof it=="string"?it:Ys[it.keyCode];return st=="Ctrl"||st=="Alt"||st=="Shift"||st=="Mod"}function Ed(it,st,ft){var At=it;return st.altKey&&At!="Alt"&&(it="Alt-"+it),(pt?st.metaKey:st.ctrlKey)&&At!="Ctrl"&&(it="Ctrl-"+it),(pt?st.ctrlKey:st.metaKey)&&At!="Mod"&&(it="Cmd-"+it),!ft&&st.shiftKey&&At!="Shift"&&(it="Shift-"+it),it}function Qd(it,st){if(St&&it.keyCode==34&&it.char)return!1;var ft=Ys[it.keyCode];return ft==null||it.altGraphKey?!1:(it.keyCode==3&&it.code&&(ft=it.code),Ed(ft,it,st))}function nu(it){return typeof it=="string"?qu[it]:it}function cu(it,st){for(var ft=it.doc.sel.ranges,At=[],xt=0;xt<ft.length;xt++){for(var ne=st(ft[xt]);At.length&&xi(ne.from,an(At).to)<=0;){var Be=At.pop();if(xi(Be.from,ne.from)<0){ne.from=Be.from;break}}At.push(ne)}dn(it,function(){for(var He=At.length-1;He>=0;He--)fc(it.doc,"",At[He].from,At[He].to,"+delete");pn(it)})}function Mc(it,st,ft){var At=fe(it.text,st+ft,ft);return At<0||At>it.text.length?null:At}function du(it,st,ft){var At=Mc(it,st.ch,ft);return At==null?null:new ii(st.line,At,ft<0?"after":"before")}function xa(it,st,ft,At,xt){if(it){st.doc.direction=="rtl"&&(xt=-xt);var ne=xe(ft,st.doc.direction);if(ne){var Be=xt<0?an(ne):ne[0],He=xt<0==(Be.level==1),_e=He?"after":"before",un;if(Be.level>0||st.doc.direction=="rtl"){var Yn=Ga(st,ft);un=xt<0?ft.text.length-1:0;var xn=ih(st,Yn,un).top;un=Ce(function(Ni){return ih(st,Yn,Ni).top==xn},xt<0==(Be.level==1)?Be.from:Be.to-1,un),_e=="before"&&(un=Mc(ft,un,1))}else un=xt<0?Be.to:Be.from;return new ii(At,un,_e)}}return new ii(At,xt<0?ft.text.length:0,xt<0?"before":"after")}function hl(it,st,ft,At){var xt=xe(st,it.doc.direction);if(!xt)return du(st,ft,At);ft.ch>=st.text.length?(ft.ch=st.text.length,ft.sticky="before"):ft.ch<=0&&(ft.ch=0,ft.sticky="after");var ne=yt(xt,ft.ch,ft.sticky),Be=xt[ne];if(it.doc.direction=="ltr"&&Be.level%2==0&&(At>0?Be.to>ft.ch:Be.from<ft.ch))return du(st,ft,At);var He=function(Co,$o){return Mc(st,Co instanceof ii?Co.ch:Co,$o)},_e,un=function(Co){return it.options.lineWrapping?(_e=_e||Ga(it,st),sA(it,st,_e,Co)):{begin:0,end:st.text.length}},Yn=un(ft.sticky=="before"?He(ft,-1):ft.ch);if(it.doc.direction=="rtl"||Be.level==1){var xn=Be.level==1==At<0,Ni=He(ft,xn?1:-1);if(Ni!=null&&(xn?Ni<=Be.to&&Ni<=Yn.end:Ni>=Be.from&&Ni>=Yn.begin)){var Ei=xn?"before":"after";return new ii(ft.line,Ni,Ei)}}var Nr=function(Co,$o,Do){for(var ss=function(_l,$l){return $l?new ii(ft.line,He(_l,1),"before"):new ii(ft.line,_l,"after")};Co>=0&&Co<xt.length;Co+=$o){var Ds=xt[Co],jo=$o>0==(Ds.level!=1),Js=jo?Do.begin:He(Do.end,-1);if(Ds.from<=Js&&Js<Ds.to||(Js=jo?Ds.from:He(Ds.to,-1),Do.begin<=Js&&Js<Do.end))return ss(Js,jo)}},jr=Nr(ne+At,At,Yn);if(jr)return jr;var to=At>0?Yn.end:He(Yn.begin,-1);return to!=null&&!(At>0&&to==st.text.length)&&(jr=Nr(At>0?0:xt.length-1,At,un(to)),jr)?jr:null}var Bu={selectAll:Va,singleSelection:function(it){return it.setSelection(it.getCursor("anchor"),it.getCursor("head"),Xe)},killLine:function(it){return cu(it,function(st){if(st.empty()){var ft=ni(it.doc,st.head.line).text.length;return st.head.ch==ft&&st.head.line<it.lastLine()?{from:st.head,to:ii(st.head.line+1,0)}:{from:st.head,to:ii(st.head.line,ft)}}else return{from:st.from(),to:st.to()}})},deleteLine:function(it){return cu(it,function(st){return{from:ii(st.from().line,0),to:sr(it.doc,ii(st.to().line+1,0))}})},delLineLeft:function(it){return cu(it,function(st){return{from:ii(st.from().line,0),to:st.from()}})},delWrappedLineLeft:function(it){return cu(it,function(st){var ft=it.charCoords(st.head,"div").top+5,At=it.coordsChar({left:0,top:ft},"div");return{from:At,to:st.from()}})},delWrappedLineRight:function(it){return cu(it,function(st){var ft=it.charCoords(st.head,"div").top+5,At=it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:ft},"div");return{from:st.from(),to:At}})},undo:function(it){return it.undo()},redo:function(it){return it.redo()},undoSelection:function(it){return it.undoSelection()},redoSelection:function(it){return it.redoSelection()},goDocStart:function(it){return it.extendSelection(ii(it.firstLine(),0))},goDocEnd:function(it){return it.extendSelection(ii(it.lastLine()))},goLineStart:function(it){return it.extendSelectionsBy(function(st){return vh(it,st.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(it){return it.extendSelectionsBy(function(st){return zd(it,st.head)},{origin:"+move",bias:1})},goLineEnd:function(it){return it.extendSelectionsBy(function(st){return yh(it,st.head.line)},{origin:"+move",bias:-1})},goLineRight:function(it){return it.extendSelectionsBy(function(st){var ft=it.cursorCoords(st.head,"div").top+5;return it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:ft},"div")},Vn)},goLineLeft:function(it){return it.extendSelectionsBy(function(st){var ft=it.cursorCoords(st.head,"div").top+5;return it.coordsChar({left:0,top:ft},"div")},Vn)},goLineLeftSmart:function(it){return it.extendSelectionsBy(function(st){var ft=it.cursorCoords(st.head,"div").top+5,At=it.coordsChar({left:0,top:ft},"div");return At.ch<it.getLine(At.line).search(/\S/)?zd(it,st.head):At},Vn)},goLineUp:function(it){return it.moveV(-1,"line")},goLineDown:function(it){return it.moveV(1,"line")},goPageUp:function(it){return it.moveV(-1,"page")},goPageDown:function(it){return it.moveV(1,"page")},goCharLeft:function(it){return it.moveH(-1,"char")},goCharRight:function(it){return it.moveH(1,"char")},goColumnLeft:function(it){return it.moveH(-1,"column")},goColumnRight:function(it){return it.moveH(1,"column")},goWordLeft:function(it){return it.moveH(-1,"word")},goGroupRight:function(it){return it.moveH(1,"group")},goGroupLeft:function(it){return it.moveH(-1,"group")},goWordRight:function(it){return it.moveH(1,"word")},delCharBefore:function(it){return it.deleteH(-1,"codepoint")},delCharAfter:function(it){return it.deleteH(1,"char")},delWordBefore:function(it){return it.deleteH(-1,"word")},delWordAfter:function(it){return it.deleteH(1,"word")},delGroupBefore:function(it){return it.deleteH(-1,"group")},delGroupAfter:function(it){return it.deleteH(1,"group")},indentAuto:function(it){return it.indentSelection("smart")},indentMore:function(it){return it.indentSelection("add")},indentLess:function(it){return it.indentSelection("subtract")},insertTab:function(it){return it.replaceSelection(" ")},insertSoftTab:function(it){for(var st=[],ft=it.listSelections(),At=it.options.tabSize,xt=0;xt<ft.length;xt++){var ne=ft[xt].from(),Be=we(it.getLine(ne.line),ne.ch,At);st.push(Si(At-Be%At))}it.replaceSelections(st)},defaultTab:function(it){it.somethingSelected()?it.indentSelection("add"):it.execCommand("insertTab")},transposeChars:function(it){return dn(it,function(){for(var st=it.listSelections(),ft=[],At=0;At<st.length;At++)if(st[At].empty()){var xt=st[At].head,ne=ni(it.doc,xt.line).text;if(ne){if(xt.ch==ne.length&&(xt=new ii(xt.line,xt.ch-1)),xt.ch>0)xt=new ii(xt.line,xt.ch+1),it.replaceRange(ne.charAt(xt.ch-1)+ne.charAt(xt.ch-2),ii(xt.line,xt.ch-2),xt,"+transpose");else if(xt.line>it.doc.first){var Be=ni(it.doc,xt.line-1).text;Be&&(xt=new ii(xt.line,1),it.replaceRange(ne.charAt(0)+it.doc.lineSeparator()+Be.charAt(Be.length-1),ii(xt.line-1,Be.length-1),xt,"+transpose"))}}ft.push(new Gr(xt,xt))}it.setSelections(ft)})},newlineAndIndent:function(it){return dn(it,function(){for(var st=it.listSelections(),ft=st.length-1;ft>=0;ft--)it.replaceRange(it.doc.lineSeparator(),st[ft].anchor,st[ft].head,"+input");st=it.listSelections();for(var At=0;At<st.length;At++)it.indentLine(st[At].from().line,null,!0);pn(it)})},openLine:function(it){return it.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(it){return it.toggleOverwrite()}};function vh(it,st){var ft=ni(it.doc,st),At=Lo(ft);return At!=ft&&(st=sn(At)),xa(!0,it,At,st,1)}function yh(it,st){var ft=ni(it.doc,st),At=os(ft);return At!=ft&&(st=sn(At)),xa(!0,it,ft,st,-1)}function zd(it,st){var ft=vh(it,st.line),At=ni(it.doc,ft.line),xt=xe(At,it.doc.direction);if(!xt||xt[0].level==0){var ne=Math.max(ft.ch,At.text.search(/\S/)),Be=st.line==ft.line&&st.ch<=ne&&st.ch;return ii(ft.line,Be?0:ne,ft.sticky)}return ft}function Nc(it,st,ft){if(typeof st=="string"&&(st=Bu[st],!st))return!1;it.display.input.ensurePolled();var At=it.display.shift,xt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),ft&&(it.display.shift=!1),xt=st(it)!=Nn}finally{it.display.shift=At,it.state.suppressEdits=!1}return xt}function Uh(it,st,ft){for(var At=0;At<it.state.keyMaps.length;At++){var xt=th(st,it.state.keyMaps[At],ft,it);if(xt)return xt}return it.options.extraKeys&&th(st,it.options.extraKeys,ft,it)||th(st,it.options.keyMap,ft,it)}var Vu=new oe;function Ic(it,st,ft,At){var xt=it.state.keySeq;if(xt){if(bd(st))return"handled";if(/\'$/.test(st)?it.state.keySeq=null:Vu.set(50,function(){it.state.keySeq==xt&&(it.state.keySeq=null,it.display.input.reset())}),Jc(it,xt+" "+st,ft,At))return!0}return Jc(it,st,ft,At)}function Jc(it,st,ft,At){var xt=Uh(it,st,At);return xt=="multi"&&(it.state.keySeq=st),xt=="handled"&&Hr(it,"keyHandled",it,st,ft),(xt=="handled"||xt=="multi")&&(Fr(ft),vl(it)),!!xt}function ic(it,st){var ft=Qd(st,!0);return ft?st.shiftKey&&!it.state.keySeq?Ic(it,"Shift-"+ft,st,function(At){return Nc(it,At,!0)})||Ic(it,ft,st,function(At){if(typeof At=="string"?/^go[A-Z]/.test(At):At.motion)return Nc(it,At)}):Ic(it,ft,st,function(At){return Nc(it,At)}):!1}function Kd(it,st,ft){return Ic(it,"'"+ft+"'",st,function(At){return Nc(it,At,!0)})}var gc=null;function FA(it){var st=this;if(!(it.target&&it.target!=st.display.input.getField())&&(st.curOp.focus=Yt(),!ci(st,it))){ie&&ae<11&&it.keyCode==27&&(it.returnValue=!1);var ft=it.keyCode;st.display.shift=ft==16||it.shiftKey;var At=ic(st,it);St&&(gc=At?ft:null,!At&&ft==88&&!xs&&(lt?it.metaKey:it.ctrlKey)&&st.replaceSelection("",null,"cut")),bt&&!lt&&!At&&ft==46&&it.shiftKey&&!it.ctrlKey&&document.execCommand&&document.execCommand("cut"),ft==18&&!/\bCodeMirror-crosshair\b/.test(st.display.lineDiv.className)&&uA(st)}}function uA(it){var st=it.display.lineDiv;qe(st,"CodeMirror-crosshair");function ft(At){(At.keyCode==18||!At.altKey)&&(_t(st,"CodeMirror-crosshair"),jn(document,"keyup",ft),jn(document,"mouseover",ft))}je(document,"keyup",ft),je(document,"mouseover",ft)}function lf(it){it.keyCode==16&&(this.doc.sel.shift=!1),ci(this,it)}function rc(it){var st=this;if(!(it.target&&it.target!=st.display.input.getField())&&!(lu(st.display,it)||ci(st,it)||it.ctrlKey&&!it.altKey||lt&&it.metaKey)){var ft=it.keyCode,At=it.charCode;if(St&&ft==gc){gc=null,Fr(it);return}if(!(St&&(!it.which||it.which<10)&&ic(st,it))){var xt=String.fromCharCode(At==null?ft:At);xt!="\b"&&(Kd(st,it,xt)||st.display.input.onKeyPress(it))}}}var QA=400,Gd=function(it,st,ft){this.time=it,this.pos=st,this.button=ft};Gd.prototype.compare=function(it,st,ft){return this.time+QA>it&&xi(st,this.pos)==0&&ft==this.button};var pc,hd;function hA(it,st){var ft=+new Date;return hd&&hd.compare(ft,it,st)?(pc=hd=null,"triple"):pc&&pc.compare(ft,it,st)?(hd=new Gd(ft,it,st),pc=null,"double"):(pc=new Gd(ft,it,st),hd=null,"single")}function Rh(it){var st=this,ft=st.display;if(!(ci(st,it)||ft.activeTouch&&ft.input.supportsTouch())){if(ft.input.ensurePolled(),ft.shift=it.shiftKey,lu(ft,it)){Lt||(ft.scroller.draggable=!1,setTimeout(function(){return ft.scroller.draggable=!0},100));return}if(!vi(st,it)){var At=Xu(st,it),xt=Kr(it),ne=At?hA(At,xt):"single";window.focus(),xt==1&&st.state.selectingText&&st.state.selectingText(it),!(At&&zA(st,xt,At,ne,it))&&(xt==1?At?Wd(st,At,ne,it):pr(it)==ft.scroller&&Fr(it):xt==2?(At&&wa(st.doc,At),setTimeout(function(){return ft.input.focus()},20)):xt==3&&(Ft?st.display.input.onContextMenu(it):Pt(st)))}}}function zA(it,st,ft,At,xt){var ne="Click";return At=="double"?ne="Double"+ne:At=="triple"&&(ne="Triple"+ne),ne=(st==1?"Left":st==2?"Middle":"Right")+ne,Ic(it,Ed(ne,xt),xt,function(Be){if(typeof Be=="string"&&(Be=Bu[Be]),!Be)return!1;var He=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),He=Be(it,ft)!=Nn}finally{it.state.suppressEdits=!1}return He})}function Fd(it,st,ft){var At=it.getOption("configureMouse"),xt=At?At(it,st,ft):{};if(xt.unit==null){var ne=rt?ft.shiftKey&&ft.metaKey:ft.altKey;xt.unit=ne?"rectangle":st=="single"?"char":st=="double"?"word":"line"}return(xt.extend==null||it.doc.extend)&&(xt.extend=it.doc.extend||ft.shiftKey),xt.addNew==null&&(xt.addNew=lt?ft.metaKey:ft.ctrlKey),xt.moveOnDrag==null&&(xt.moveOnDrag=!(lt?ft.altKey:ft.ctrlKey)),xt}function Wd(it,st,ft,At){ie?setTimeout(Ze(Zl,it),0):it.curOp.focus=Yt();var xt=Fd(it,ft,At),ne=it.doc.sel,Be;it.options.dragDrop&&hr&&!it.isReadOnly()&&ft=="single"&&(Be=ne.contains(st))>-1&&(xi((Be=ne.ranges[Be]).from(),st)<0||st.xRel>0)&&(xi(Be.to(),st)>0||st.xRel<0)?LA(it,At,st,xt):KA(it,At,st,xt)}function LA(it,st,ft,At){var xt=it.display,ne=!1,Be=Dn(it,function(un){Lt&&(xt.scroller.draggable=!1),it.state.draggingText=!1,jn(xt.wrapper.ownerDocument,"mouseup",Be),jn(xt.wrapper.ownerDocument,"mousemove",He),jn(xt.scroller,"dragstart",_e),jn(xt.scroller,"drop",Be),ne||(Fr(un),At.addNew||wa(it.doc,ft,null,null,At.extend),Lt&&!Wt||ie&&ae==9?setTimeout(function(){xt.wrapper.ownerDocument.body.focus({preventScroll:!0}),xt.input.focus()},20):xt.input.focus())}),He=function(un){ne=ne||Math.abs(st.clientX-un.clientX)+Math.abs(st.clientY-un.clientY)>=10},_e=function(){return ne=!0};Lt&&(xt.scroller.draggable=!0),it.state.draggingText=Be,Be.copy=!At.moveOnDrag,xt.scroller.dragDrop&&xt.scroller.dragDrop(),je(xt.wrapper.ownerDocument,"mouseup",Be),je(xt.wrapper.ownerDocument,"mousemove",He),je(xt.scroller,"dragstart",_e),je(xt.scroller,"drop",Be),Pt(it),setTimeout(function(){return xt.input.focus()},20)}function kc(it,st,ft){if(ft=="char")return new Gr(st,st);if(ft=="word")return it.findWordAt(st);if(ft=="line")return new Gr(ii(st.line,0),sr(it.doc,ii(st.line+1,0)));var At=ft(it,st);return new Gr(At.from,At.to)}function KA(it,st,ft,At){var xt=it.display,ne=it.doc;Fr(st);var Be,He,_e=ne.sel,un=_e.ranges;if(At.addNew&&!At.extend?(He=ne.sel.contains(ft),He>-1?Be=un[He]:Be=new Gr(ft,ft)):(Be=ne.sel.primary(),He=ne.sel.primIndex),At.unit=="rectangle")At.addNew||(Be=new Gr(ft,ft)),ft=Xu(it,st,!0,!0),He=-1;else{var Yn=kc(it,ft,At.unit);At.extend?Be=Nu(Be,Yn.anchor,Yn.head,At.extend):Be=Yn}At.addNew?He==-1?(He=un.length,Ia(ne,Vo(it,un.concat([Be]),He),{scroll:!1,origin:"*mouse"})):un.length>1&&un[He].empty()&&At.unit=="char"&&!At.extend?(Ia(ne,Vo(it,un.slice(0,He).concat(un.slice(He+1)),0),{scroll:!1,origin:"*mouse"}),_e=ne.sel):Na(ne,He,Be,kn):(He=0,Ia(ne,new Fo([Be],0),kn),_e=ne.sel);var xn=ft;function Ni(Do){if(xi(xn,Do)!=0)if(xn=Do,At.unit=="rectangle"){for(var ss=[],Ds=it.options.tabSize,jo=we(ni(ne,ft.line).text,ft.ch,Ds),Js=we(ni(ne,Do.line).text,Do.ch,Ds),_l=Math.min(jo,Js),$l=Math.max(jo,Js),fl=Math.min(ft.line,Do.line),Ja=Math.min(it.lastLine(),Math.max(ft.line,Do.line));fl<=Ja;fl++){var Ua=ni(ne,fl).text,Za=Ai(Ua,_l,Ds);_l==$l?ss.push(new Gr(ii(fl,Za),ii(fl,Za))):Ua.length>Za&&ss.push(new Gr(ii(fl,Za),ii(fl,Ai(Ua,$l,Ds))))}ss.length||ss.push(new Gr(ft,ft)),Ia(ne,Vo(it,_e.ranges.slice(0,He).concat(ss),He),{origin:"*mouse",scroll:!1}),it.scrollIntoView(Do)}else{var El=Be,wu=kc(it,Do,At.unit),Ro=El.anchor,Ca;xi(wu.anchor,Ro)>0?(Ca=wu.head,Ro=yi(El.from(),wu.anchor)):(Ca=wu.anchor,Ro=wi(El.to(),wu.head));var Xl=_e.ranges.slice(0);Xl[He]=pe(it,new Gr(sr(ne,Ro),Ca)),Ia(ne,Vo(it,Xl,He),kn)}}var Ei=xt.wrapper.getBoundingClientRect(),Nr=0;function jr(Do){var ss=++Nr,Ds=Xu(it,Do,!0,At.unit=="rectangle");if(Ds)if(xi(Ds,xn)!=0){it.curOp.focus=Yt(),Ni(Ds);var jo=Zt(xt,ne);(Ds.line>=jo.to||Ds.line<jo.from)&&setTimeout(Dn(it,function(){Nr==ss&&jr(Do)}),150)}else{var Js=Do.clientY<Ei.top?-20:Do.clientY>Ei.bottom?20:0;Js&&setTimeout(Dn(it,function(){Nr==ss&&(xt.scroller.scrollTop+=Js,jr(Do))}),50)}}function to(Do){it.state.selectingText=!1,Nr=1/0,Do&&(Fr(Do),xt.input.focus()),jn(xt.wrapper.ownerDocument,"mousemove",Co),jn(xt.wrapper.ownerDocument,"mouseup",$o),ne.history.lastSelOrigin=null}var Co=Dn(it,function(Do){Do.buttons===0||!Kr(Do)?to(Do):jr(Do)}),$o=Dn(it,to);it.state.selectingText=$o,je(xt.wrapper.ownerDocument,"mousemove",Co),je(xt.wrapper.ownerDocument,"mouseup",$o)}function pe(it,st){var ft=st.anchor,At=st.head,xt=ni(it.doc,ft.line);if(xi(ft,At)==0&&ft.sticky==At.sticky)return st;var ne=xe(xt);if(!ne)return st;var Be=yt(ne,ft.ch,ft.sticky),He=ne[Be];if(He.from!=ft.ch&&He.to!=ft.ch)return st;var _e=Be+(He.from==ft.ch==(He.level!=1)?0:1);if(_e==0||_e==ne.length)return st;var un;if(At.line!=ft.line)un=(At.line-ft.line)*(it.doc.direction=="ltr"?1:-1)>0;else{var Yn=yt(ne,At.ch,At.sticky),xn=Yn-Be||(At.ch-ft.ch)*(He.level==1?-1:1);Yn==_e-1||Yn==_e?un=xn<0:un=xn>0}var Ni=ne[_e+(un?-1:0)],Ei=un==(Ni.level==1),Nr=Ei?Ni.from:Ni.to,jr=Ei?"after":"before";return ft.ch==Nr&&ft.sticky==jr?st:new Gr(new ii(ft.line,Nr,jr),At)}function wn(it,st,ft,At){var xt,ne;if(st.touches)xt=st.touches[0].clientX,ne=st.touches[0].clientY;else try{xt=st.clientX,ne=st.clientY}catch(Ni){return!1}if(xt>=Math.floor(it.display.gutters.getBoundingClientRect().right))return!1;At&&Fr(st);var Be=it.display,He=Be.lineDiv.getBoundingClientRect();if(ne>He.bottom||!zi(it,ft))return Jr(st);ne-=He.top-Be.viewOffset;for(var _e=0;_e<it.display.gutterSpecs.length;++_e){var un=Be.gutters.childNodes[_e];if(un&&un.getBoundingClientRect().right>=xt){var Yn=fi(it.doc,ne),xn=it.display.gutterSpecs[_e];return bn(it,ft,it,Yn,xn.className,st),Jr(st)}}}function vi(it,st){return wn(it,st,"gutterClick",!0)}function Ri(it,st){lu(it.display,st)||cr(it,st)||ci(it,st,"contextmenu")||Ft||it.display.input.onContextMenu(st)}function cr(it,st){return zi(it,"gutterContextMenu")?wn(it,st,"gutterContextMenu",!1):!1}function Qr(it){it.display.wrapper.className=it.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+it.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ll(it)}var yo={toString:function(){return"CodeMirror.Init"}},ps={},Ws={};function _a(it){var st=it.optionHandlers;function ft(At,xt,ne,Be){it.defaults[At]=xt,ne&&(st[At]=Be?function(He,_e,un){un!=yo&&ne(He,_e,un)}:ne)}it.defineOption=ft,it.Init=yo,ft("value","",function(At,xt){return At.setValue(xt)},!0),ft("mode",null,function(At,xt){At.doc.modeOption=xt,ko(At)},!0),ft("indentUnit",2,ko,!0),ft("indentWithTabs",!1),ft("smartIndent",!0),ft("tabSize",4,function(At){Fs(At),ll(At),bl(At)},!0),ft("lineSeparator",null,function(At,xt){if(At.doc.lineSep=xt,!!xt){var ne=[],Be=At.doc.first;At.doc.iter(function(_e){for(var un=0;;){var Yn=_e.text.indexOf(xt,un);if(Yn==-1)break;un=Yn+xt.length,ne.push(ii(Be,Yn))}Be++});for(var He=ne.length-1;He>=0;He--)fc(At.doc,xt,ne[He],ii(ne[He].line,ne[He].ch+xt.length))}}),ft("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(At,xt,ne){At.state.specialChars=new RegExp(xt.source+(xt.test(" ")?"":"| "),"g"),ne!=yo&&At.refresh()}),ft("specialCharPlaceholder",Ta,function(At){return At.refresh()},!0),ft("electricChars",!0),ft("inputStyle",tt?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ft("spellcheck",!1,function(At,xt){return At.getInputField().spellcheck=xt},!0),ft("autocorrect",!1,function(At,xt){return At.getInputField().autocorrect=xt},!0),ft("autocapitalize",!1,function(At,xt){return At.getInputField().autocapitalize=xt},!0),ft("rtlMoveVisually",!ut),ft("wholeLineUpdateBefore",!0),ft("theme","default",function(At){Qr(At),rr(At)},!0),ft("keyMap","default",function(At,xt,ne){var Be=nu(xt),He=ne!=yo&&nu(ne);He&&He.detach&&He.detach(At,Be),Be.attach&&Be.attach(At,He||null)}),ft("extraKeys",null),ft("configureMouse",null),ft("lineWrapping",!1,Cl,!0),ft("gutters",[],function(At,xt){At.display.gutterSpecs=so(xt,At.options.lineNumbers),rr(At)},!0),ft("fixedGutter",!0,function(At,xt){At.display.gutters.style.left=xt?sd(At.display)+"px":"0",At.refresh()},!0),ft("coverGutterNextToScrollbar",!1,function(At){return io(At)},!0),ft("scrollbarStyle","native",function(At){Br(At),io(At),At.display.scrollbars.setScrollTop(At.doc.scrollTop),At.display.scrollbars.setScrollLeft(At.doc.scrollLeft)},!0),ft("lineNumbers",!1,function(At,xt){At.display.gutterSpecs=so(At.options.gutters,xt),rr(At)},!0),ft("firstLineNumber",1,rr,!0),ft("lineNumberFormatter",function(At){return At},rr,!0),ft("showCursorWhenSelecting",!1,Su,!0),ft("resetSelectionOnContextMenu",!0),ft("lineWiseCopyCut",!0),ft("pasteLinesPerSelection",!0),ft("selectionsMayTouch",!1),ft("readOnly",!1,function(At,xt){xt=="nocursor"&&(Et(At),At.display.input.blur()),At.display.input.readOnlyChanged(xt)}),ft("screenReaderLabel",null,function(At,xt){xt=xt===""?null:xt,At.display.input.screenReaderLabelChanged(xt)}),ft("disableInput",!1,function(At,xt){xt||At.display.input.reset()},!0),ft("dragDrop",!0,ba),ft("allowDropFileTypes",null),ft("cursorBlinkRate",530),ft("cursorScrollMargin",0),ft("cursorHeight",1,Su,!0),ft("singleCursorHeightPerLine",!0,Su,!0),ft("workTime",100),ft("workDelay",100),ft("flattenSpans",!0,Fs,!0),ft("addModeClass",!1,Fs,!0),ft("pollInterval",100),ft("undoDepth",200,function(At,xt){return At.doc.history.undoDepth=xt}),ft("historyEventDelay",1250),ft("viewportMargin",10,function(At){return At.refresh()},!0),ft("maxHighlightLength",1e4,Fs,!0),ft("moveInputWithCursor",!0,function(At,xt){xt||At.display.input.resetPosition()}),ft("tabindex",null,function(At,xt){return At.display.input.getField().tabIndex=xt||""}),ft("autofocus",null),ft("direction","ltr",function(At,xt){return At.doc.setDirection(xt)},!0),ft("phrases",null)}function ba(it,st,ft){var At=ft&&ft!=yo;if(!st!=!At){var xt=it.display.dragFunctions,ne=st?je:jn;ne(it.display.scroller,"dragstart",xt.start),ne(it.display.scroller,"dragenter",xt.enter),ne(it.display.scroller,"dragover",xt.over),ne(it.display.scroller,"dragleave",xt.leave),ne(it.display.scroller,"drop",xt.drop)}}function Cl(it){it.options.lineWrapping?(qe(it.display.wrapper,"CodeMirror-wrap"),it.display.sizer.style.minWidth="",it.display.sizerWidth=null):(_t(it.display.wrapper,"CodeMirror-wrap"),ca(it)),gs(it),bl(it),ll(it),setTimeout(function(){return io(it)},100)}function Us(it,st){var ft=this;if(!(this instanceof Us))return new Us(it,st);this.options=st=st?Qe(st):{},Qe(ps,st,!1);var At=st.value;typeof At=="string"?At=new vu(At,st.mode,null,st.lineSeparator,st.direction):st.mode&&(At.modeOption=st.mode),this.doc=At;var xt=new Us.inputStyles[st.inputStyle](this),ne=this.display=new wr(it,At,xt,st);ne.wrapper.CodeMirror=this,Qr(this),st.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Br(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 oe,keySeq:null,specialChars:null},st.autofocus&&!tt&&ne.input.focus(),ie&&ae<11&&setTimeout(function(){return ft.display.input.reset(!0)},20),Au(this),Ul(),zn(this),this.curOp.forceUpdate=!0,Po(this,At),st.autofocus&&!tt||this.hasFocus()?setTimeout(function(){ft.hasFocus()&&!ft.state.focused&&mt(ft)},20):Et(this);for(var Be in Ws)Ws.hasOwnProperty(Be)&&Ws[Be](this,st[Be],yo);Qn(this),st.finishInit&&st.finishInit(this);for(var He=0;He<yu.length;++He)yu[He](this);Xn(this),Lt&&st.lineWrapping&&getComputedStyle(ne.lineDiv).textRendering=="optimizelegibility"&&(ne.lineDiv.style.textRendering="auto")}Us.defaults=ps,Us.optionHandlers=Ws;function Au(it){var st=it.display;je(st.scroller,"mousedown",Dn(it,Rh)),ie&&ae<11?je(st.scroller,"dblclick",Dn(it,function(_e){if(!ci(it,_e)){var un=Xu(it,_e);if(!(!un||vi(it,_e)||lu(it.display,_e))){Fr(_e);var Yn=it.findWordAt(un);wa(it.doc,Yn.anchor,Yn.head)}}})):je(st.scroller,"dblclick",function(_e){return ci(it,_e)||Fr(_e)}),je(st.scroller,"contextmenu",function(_e){return Ri(it,_e)}),je(st.input.getField(),"contextmenu",function(_e){st.scroller.contains(_e.target)||Ri(it,_e)});var ft,At={end:0};function xt(){st.activeTouch&&(ft=setTimeout(function(){return st.activeTouch=null},1e3),At=st.activeTouch,At.end=+new Date)}function ne(_e){if(_e.touches.length!=1)return!1;var un=_e.touches[0];return un.radiusX<=1&&un.radiusY<=1}function Be(_e,un){if(un.left==null)return!0;var Yn=un.left-_e.left,xn=un.top-_e.top;return Yn*Yn+xn*xn>20*20}je(st.scroller,"touchstart",function(_e){if(!ci(it,_e)&&!ne(_e)&&!vi(it,_e)){st.input.ensurePolled(),clearTimeout(ft);var un=+new Date;st.activeTouch={start:un,moved:!1,prev:un-At.end<=300?At:null},_e.touches.length==1&&(st.activeTouch.left=_e.touches[0].pageX,st.activeTouch.top=_e.touches[0].pageY)}}),je(st.scroller,"touchmove",function(){st.activeTouch&&(st.activeTouch.moved=!0)}),je(st.scroller,"touchend",function(_e){var un=st.activeTouch;if(un&&!lu(st,_e)&&un.left!=null&&!un.moved&&new Date-un.start<300){var Yn=it.coordsChar(st.activeTouch,"page"),xn;!un.prev||Be(un,un.prev)?xn=new Gr(Yn,Yn):!un.prev.prev||Be(un,un.prev.prev)?xn=it.findWordAt(Yn):xn=new Gr(ii(Yn.line,0),sr(it.doc,ii(Yn.line+1,0))),it.setSelection(xn.anchor,xn.head),it.focus(),Fr(_e)}xt()}),je(st.scroller,"touchcancel",xt),je(st.scroller,"scroll",function(){st.scroller.clientHeight&&(pi(it,st.scroller.scrollTop),gi(it,st.scroller.scrollLeft,!0),bn(it,"scroll",it))}),je(st.scroller,"mousewheel",function(_e){return So(it,_e)}),je(st.scroller,"DOMMouseScroll",function(_e){return So(it,_e)}),je(st.wrapper,"scroll",function(){return st.wrapper.scrollTop=st.wrapper.scrollLeft=0}),st.dragFunctions={enter:function(_e){ci(it,_e)||zr(_e)},over:function(_e){ci(it,_e)||(Lc(it,_e),zr(_e))},start:function(_e){return ld(it,_e)},drop:Dn(it,Rd),leave:function(_e){ci(it,_e)||_d(it)}};var He=st.input.getField();je(He,"keyup",function(_e){return lf.call(it,_e)}),je(He,"keydown",Dn(it,FA)),je(He,"keypress",Dn(it,rc)),je(He,"focus",function(_e){return mt(it,_e)}),je(He,"blur",function(_e){return Et(it,_e)})}var yu=[];Us.defineInitHook=function(it){return yu.push(it)};function Al(it,st,ft,At){var xt=it.doc,ne;ft==null&&(ft="add"),ft=="smart"&&(xt.mode.indent?ne=cs(it,st).state:ft="prev");var Be=it.options.tabSize,He=ni(xt,st),_e=we(He.text,null,Be);He.stateAfter&&(He.stateAfter=null);var un=He.text.match(/^\s*/)[0],Yn;if(!At&&!/\S/.test(He.text))Yn=0,ft="not";else if(ft=="smart"&&(Yn=xt.mode.indent(ne,He.text.slice(un.length),He.text),Yn==Nn||Yn>150)){if(!At)return;ft="prev"}ft=="prev"?st>xt.first?Yn=we(ni(xt,st-1).text,null,Be):Yn=0:ft=="add"?Yn=_e+it.options.indentUnit:ft=="subtract"?Yn=_e-it.options.indentUnit:typeof ft=="number"&&(Yn=_e+ft),Yn=Math.max(0,Yn);var xn="",Ni=0;if(it.options.indentWithTabs)for(var Ei=Math.floor(Yn/Be);Ei;--Ei)Ni+=Be,xn+=" ";if(Ni<Yn&&(xn+=Si(Yn-Ni)),xn!=un)return fc(xt,xn,ii(st,0),ii(st,un.length),"+input"),He.stateAfter=null,!0;for(var Nr=0;Nr<xt.sel.ranges.length;Nr++){var jr=xt.sel.ranges[Nr];if(jr.head.line==st&&jr.head.ch<un.length){var to=ii(st,un.length);Na(xt,Nr,new Gr(to,to));break}}}var Il=null;function wh(it){Il=it}function Eh(it,st,ft,At,xt){var ne=it.doc;it.display.shift=!1,At||(At=ne.sel);var Be=+new Date-200,He=xt=="paste"||it.state.pasteIncoming>Be,_e=ws(st),un=null;if(He&&At.ranges.length>1)if(Il&&Il.text.join(`
|
|
|
`)==st){if(At.ranges.length%Il.text.length==0){un=[];for(var Yn=0;Yn<Il.text.length;Yn++)un.push(ne.splitLines(Il.text[Yn]))}}else _e.length==At.ranges.length&&it.options.pasteLinesPerSelection&&(un=Li(_e,function(Co){return[Co]}));for(var xn=it.curOp.updateInput,Ni=At.ranges.length-1;Ni>=0;Ni--){var Ei=At.ranges[Ni],Nr=Ei.from(),jr=Ei.to();Ei.empty()&&(ft&&ft>0?Nr=ii(Nr.line,Nr.ch-ft):it.state.overwrite&&!He?jr=ii(jr.line,Math.min(ni(ne,jr.line).text.length,jr.ch+an(_e).length)):He&&Il&&Il.lineWise&&Il.text.join(`
|
|
|
`)==_e.join(`
|
|
|
`)&&(Nr=jr=ii(Nr.line,0)));var to={from:Nr,to:jr,text:un?un[Ni%un.length]:_e,origin:xt||(He?"paste":it.state.cutIncoming>Be?"cut":"+input")};Sl(it.doc,to),Hr(it,"inputRead",it,to)}st&&!He&&Vd(it,st),pn(it),it.curOp.updateInput<2&&(it.curOp.updateInput=xn),it.curOp.typing=!0,it.state.pasteIncoming=it.state.cutIncoming=-1}function oc(it,st){var ft=it.clipboardData&&it.clipboardData.getData("Text");if(ft)return it.preventDefault(),!st.isReadOnly()&&!st.options.disableInput&&dn(st,function(){return Eh(st,ft,0,null,"paste")}),!0}function Vd(it,st){if(!(!it.options.electricChars||!it.options.smartIndent))for(var ft=it.doc.sel,At=ft.ranges.length-1;At>=0;At--){var xt=ft.ranges[At];if(!(xt.head.ch>100||At&&ft.ranges[At-1].head.line==xt.head.line)){var ne=it.getModeAt(xt.head),Be=!1;if(ne.electricChars){for(var He=0;He<ne.electricChars.length;He++)if(st.indexOf(ne.electricChars.charAt(He))>-1){Be=Al(it,xt.head.line,"smart");break}}else ne.electricInput&&ne.electricInput.test(ni(it.doc,xt.head.line).text.slice(0,xt.head.ch))&&(Be=Al(it,xt.head.line,"smart"));Be&&Hr(it,"electricInput",it,xt.head.line)}}}function cA(it){for(var st=[],ft=[],At=0;At<it.doc.sel.ranges.length;At++){var xt=it.doc.sel.ranges[At].head.line,ne={anchor:ii(xt,0),head:ii(xt+1,0)};ft.push(ne),st.push(it.getRange(ne.anchor,ne.head))}return{text:st,ranges:ft}}function dA(it,st,ft,At){it.setAttribute("autocorrect",ft?"":"off"),it.setAttribute("autocapitalize",At?"":"off"),it.setAttribute("spellcheck",!!st)}function AA(){var it=Ae("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),st=Ae("div",[it],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Lt?it.style.width="1000px":it.setAttribute("wrap","off"),wt&&(it.style.border="1px solid black"),dA(it),st}function Tc(it){var st=it.optionHandlers,ft=it.helpers={};it.prototype={constructor:it,focus:function(){window.focus(),this.display.input.focus()},setOption:function(At,xt){var ne=this.options,Be=ne[At];ne[At]==xt&&At!="mode"||(ne[At]=xt,st.hasOwnProperty(At)&&Dn(this,st[At])(this,xt,Be),bn(this,"optionChange",this,At))},getOption:function(At){return this.options[At]},getDoc:function(){return this.doc},addKeyMap:function(At,xt){this.state.keyMaps[xt?"push":"unshift"](nu(At))},removeKeyMap:function(At){for(var xt=this.state.keyMaps,ne=0;ne<xt.length;++ne)if(xt[ne]==At||xt[ne].name==At)return xt.splice(ne,1),!0},addOverlay:Jn(function(At,xt){var ne=At.token?At:it.getMode(this.options,At);if(ne.startState)throw new Error("Overlays may not be stateful.");Oi(this.state.overlays,{mode:ne,modeSpec:At,opaque:xt&&xt.opaque,priority:xt&&xt.priority||0},function(Be){return Be.priority}),this.state.modeGen++,bl(this)}),removeOverlay:Jn(function(At){for(var xt=this.state.overlays,ne=0;ne<xt.length;++ne){var Be=xt[ne].modeSpec;if(Be==At||typeof At=="string"&&Be.name==At){xt.splice(ne,1),this.state.modeGen++,bl(this);return}}}),indentLine:Jn(function(At,xt,ne){typeof xt!="string"&&typeof xt!="number"&&(xt==null?xt=this.options.smartIndent?"smart":"prev":xt=xt?"add":"subtract"),Zi(this.doc,At)&&Al(this,At,xt,ne)}),indentSelection:Jn(function(At){for(var xt=this.doc.sel.ranges,ne=-1,Be=0;Be<xt.length;Be++){var He=xt[Be];if(He.empty())He.head.line>ne&&(Al(this,He.head.line,At,!0),ne=He.head.line,Be==this.doc.sel.primIndex&&pn(this));else{var _e=He.from(),un=He.to(),Yn=Math.max(ne,_e.line);ne=Math.min(this.lastLine(),un.line-(un.ch?0:1))+1;for(var xn=Yn;xn<ne;++xn)Al(this,xn,At);var Ni=this.doc.sel.ranges;_e.ch==0&&xt.length==Ni.length&&Ni[Be].from().ch>0&&Na(this.doc,Be,new Gr(_e,Ni[Be].to()),Xe)}}}),getTokenAt:function(At,xt){return Lr(this,At,xt)},getLineTokens:function(At,xt){return Lr(this,ii(At),xt,!0)},getTokenTypeAt:function(At){At=sr(this.doc,At);var xt=Zo(this,ni(this.doc,At.line)),ne=0,Be=(xt.length-1)/2,He=At.ch,_e;if(He==0)_e=xt[2];else for(;;){var un=ne+Be>>1;if((un?xt[un*2-1]:0)>=He)Be=un;else if(xt[un*2+1]<He)ne=un+1;else{_e=xt[un*2+2];break}}var Yn=_e?_e.indexOf("overlay "):-1;return Yn<0?_e:Yn==0?null:_e.slice(0,Yn-1)},getModeAt:function(At){var xt=this.doc.mode;return xt.innerMode?it.innerMode(xt,this.getTokenAt(At).state).mode:xt},getHelper:function(At,xt){return this.getHelpers(At,xt)[0]},getHelpers:function(At,xt){var ne=[];if(!ft.hasOwnProperty(xt))return ne;var Be=ft[xt],He=this.getModeAt(At);if(typeof He[xt]=="string")Be[He[xt]]&&ne.push(Be[He[xt]]);else if(He[xt])for(var _e=0;_e<He[xt].length;_e++){var un=Be[He[xt][_e]];un&&ne.push(un)}else He.helperType&&Be[He.helperType]?ne.push(Be[He.helperType]):Be[He.name]&&ne.push(Be[He.name]);for(var Yn=0;Yn<Be._global.length;Yn++){var xn=Be._global[Yn];xn.pred(He,this)&&Pe(ne,xn.val)==-1&&ne.push(xn.val)}return ne},getStateAfter:function(At,xt){var ne=this.doc;return At=nr(ne,At==null?ne.first+ne.size-1:At),cs(this,At+1,xt).state},cursorCoords:function(At,xt){var ne,Be=this.doc.sel.primary();return At==null?ne=Be.head:typeof At=="object"?ne=sr(this.doc,At):ne=At?Be.from():Be.to(),cl(this,ne,xt||"page")},charCoords:function(At,xt){return rh(this,sr(this.doc,At),xt||"page")},coordsChar:function(At,xt){return At=Ac(this,At,xt||"page"),Ah(this,At.left,At.top)},lineAtHeight:function(At,xt){return At=Ac(this,{top:At,left:0},xt||"page").top,fi(this.doc,At+this.display.viewOffset)},heightAtLine:function(At,xt,ne){var Be=!1,He;if(typeof At=="number"){var _e=this.doc.first+this.doc.size-1;At<this.doc.first?At=this.doc.first:At>_e&&(At=_e,Be=!0),He=ni(this.doc,At)}else He=At;return Dl(this,He,{top:0,left:0},xt||"page",ne||Be).top+(Be?this.doc.height-Es(He):0)},defaultTextHeight:function(){return Uu(this.display)},defaultCharWidth:function(){return fh(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(At,xt,ne,Be,He){var _e=this.display;At=cl(this,sr(this.doc,At));var un=At.bottom,Yn=At.left;if(xt.style.position="absolute",xt.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(xt),_e.sizer.appendChild(xt),Be=="over")un=At.top;else if(Be=="above"||Be=="near"){var xn=Math.max(_e.wrapper.clientHeight,this.doc.height),Ni=Math.max(_e.sizer.clientWidth,_e.lineSpace.clientWidth);(Be=="above"||At.bottom+xt.offsetHeight>xn)&&At.top>xt.offsetHeight?un=At.top-xt.offsetHeight:At.bottom+xt.offsetHeight<=xn&&(un=At.bottom),Yn+xt.offsetWidth>Ni&&(Yn=Ni-xt.offsetWidth)}xt.style.top=un+"px",xt.style.left=xt.style.right="",He=="right"?(Yn=_e.sizer.clientWidth-xt.offsetWidth,xt.style.right="0px"):(He=="left"?Yn=0:He=="middle"&&(Yn=(_e.sizer.clientWidth-xt.offsetWidth)/2),xt.style.left=Yn+"px"),ne&&Ie(this,{left:Yn,top:un,right:Yn+xt.offsetWidth,bottom:un+xt.offsetHeight})},triggerOnKeyDown:Jn(FA),triggerOnKeyPress:Jn(rc),triggerOnKeyUp:lf,triggerOnMouseDown:Jn(Rh),execCommand:function(At){if(Bu.hasOwnProperty(At))return Bu[At].call(null,this)},triggerElectric:Jn(function(At){Vd(this,At)}),findPosH:function(At,xt,ne,Be){var He=1;xt<0&&(He=-1,xt=-xt);for(var _e=sr(this.doc,At),un=0;un<xt&&(_e=Ld(this.doc,_e,He,ne,Be),!_e.hitSide);++un);return _e},moveH:Jn(function(At,xt){var ne=this;this.extendSelectionsBy(function(Be){return ne.display.shift||ne.doc.extend||Be.empty()?Ld(ne.doc,Be.head,At,xt,ne.options.rtlMoveVisually):At<0?Be.from():Be.to()},Vn)}),deleteH:Jn(function(At,xt){var ne=this.doc.sel,Be=this.doc;ne.somethingSelected()?Be.replaceSelection("",null,"+delete"):cu(this,function(He){var _e=Ld(Be,He.head,At,xt,!1);return At<0?{from:_e,to:He.head}:{from:He.head,to:_e}})}),findPosV:function(At,xt,ne,Be){var He=1,_e=Be;xt<0&&(He=-1,xt=-xt);for(var un=sr(this.doc,At),Yn=0;Yn<xt;++Yn){var xn=cl(this,un,"div");if(_e==null?_e=xn.left:xn.left=_e,un=Oc(this,xn,He,ne),un.hitSide)break}return un},moveV:Jn(function(At,xt){var ne=this,Be=this.doc,He=[],_e=!this.display.shift&&!Be.extend&&Be.sel.somethingSelected();if(Be.extendSelectionsBy(function(Yn){if(_e)return At<0?Yn.from():Yn.to();var xn=cl(ne,Yn.head,"div");Yn.goalColumn!=null&&(xn.left=Yn.goalColumn),He.push(xn.left);var Ni=Oc(ne,xn,At,xt);return xt=="page"&&Yn==Be.sel.primary()&&mn(ne,rh(ne,Ni,"div").top-xn.top),Ni},Vn),He.length)for(var un=0;un<Be.sel.ranges.length;un++)Be.sel.ranges[un].goalColumn=He[un]}),findWordAt:function(At){var xt=this.doc,ne=ni(xt,At.line).text,Be=At.ch,He=At.ch;if(ne){var _e=this.getHelper(At,"wordChars");(At.sticky=="before"||He==ne.length)&&Be?--Be:++He;for(var un=ne.charAt(Be),Yn=Mt(un,_e)?function(xn){return Mt(xn,_e)}:/\s/.test(un)?function(xn){return/\s/.test(xn)}:function(xn){return!/\s/.test(xn)&&!Mt(xn)};Be>0&&Yn(ne.charAt(Be-1));)--Be;for(;He<ne.length&&Yn(ne.charAt(He));)++He}return new Gr(ii(At.line,Be),ii(At.line,He))},toggleOverwrite:function(At){At!=null&&At==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?qe(this.display.cursorDiv,"CodeMirror-overwrite"):_t(this.display.cursorDiv,"CodeMirror-overwrite"),bn(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Yt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Jn(function(At,xt){Tn(this,At,xt)}),getScrollInfo:function(){var At=this.display.scroller;return{left:At.scrollLeft,top:At.scrollTop,height:At.scrollHeight-tu(this)-this.display.barHeight,width:At.scrollWidth-tu(this)-this.display.barWidth,clientHeight:Io(this),clientWidth:Pl(this)}},scrollIntoView:Jn(function(At,xt){At==null?(At={from:this.doc.sel.primary().head,to:null},xt==null&&(xt=this.options.cursorScrollMargin)):typeof At=="number"?At={from:ii(At,0),to:null}:At.from==null&&(At={from:At,to:null}),At.to||(At.to=At.from),At.margin=xt||0,At.from.line!=null?ze(this,At):$n(this,At.from,At.to,At.margin)}),setSize:Jn(function(At,xt){var ne=this,Be=function(_e){return typeof _e=="number"||/^\d+$/.test(String(_e))?_e+"px":_e};At!=null&&(this.display.wrapper.style.width=Be(At)),xt!=null&&(this.display.wrapper.style.height=Be(xt)),this.options.lineWrapping&&el(this);var He=this.display.viewFrom;this.doc.iter(He,this.display.viewTo,function(_e){if(_e.widgets){for(var un=0;un<_e.widgets.length;un++)if(_e.widgets[un].noHScroll){sa(ne,He,"widget");break}}++He}),this.curOp.forceUpdate=!0,bn(this,"refresh",this)}),operation:function(At){return dn(this,At)},startOperation:function(){return zn(this)},endOperation:function(){return Xn(this)},refresh:Jn(function(){var At=this.display.cachedTextHeight;bl(this),this.curOp.forceUpdate=!0,ll(this),Tn(this,this.doc.scrollLeft,this.doc.scrollTop),gr(this.display),(At==null||Math.abs(At-Uu(this.display))>.5||this.options.lineWrapping)&&gs(this),bn(this,"refresh",this)}),swapDoc:Jn(function(At){var xt=this.doc;return xt.cm=null,this.state.selectingText&&this.state.selectingText(),Po(this,At),ll(this),this.display.input.reset(),Tn(this,At.scrollLeft,At.scrollTop),this.curOp.forceScroll=!0,Hr(this,"swapDoc",this,xt),xt}),phrase:function(At){var xt=this.options.phrases;return xt&&Object.prototype.hasOwnProperty.call(xt,At)?xt[At]:At},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}},dr(it),it.registerHelper=function(At,xt,ne){ft.hasOwnProperty(At)||(ft[At]=it[At]={_global:[]}),ft[At][xt]=ne},it.registerGlobalHelper=function(At,xt,ne,Be){it.registerHelper(At,xt,Be),ft[At]._global.push({pred:ne,val:Be})}}function Ld(it,st,ft,At,xt){var ne=st,Be=ft,He=ni(it,st.line),_e=xt&&it.direction=="rtl"?-ft:ft;function un(){var $o=st.line+_e;return $o<it.first||$o>=it.first+it.size?!1:(st=new ii($o,st.ch,st.sticky),He=ni(it,$o))}function Yn($o){var Do;if(At=="codepoint"){var ss=He.text.charCodeAt(st.ch+(At>0?0:-1));isNaN(ss)?Do=null:Do=new ii(st.line,Math.max(0,Math.min(He.text.length,st.ch+ft*(ss>=55296&&ss<56320?2:1))),-ft)}else xt?Do=hl(it.cm,He,st,ft):Do=du(He,st,ft);if(Do==null)if(!$o&&un())st=xa(xt,it.cm,He,st.line,_e);else return!1;else st=Do;return!0}if(At=="char"||At=="codepoint")Yn();else if(At=="column")Yn(!0);else if(At=="word"||At=="group")for(var xn=null,Ni=At=="group",Ei=it.cm&&it.cm.getHelper(st,"wordChars"),Nr=!0;!(ft<0&&!Yn(!Nr));Nr=!1){var jr=He.text.charAt(st.ch)||`
|
|
|
`,to=Mt(jr,Ei)?"w":Ni&&jr==`
|
|
|
`?"n":!Ni||/\s/.test(jr)?null:"p";if(Ni&&!Nr&&!to&&(to="s"),xn&&xn!=to){ft<0&&(ft=1,Yn(),st.sticky="after");break}if(to&&(xn=to),ft>0&&!Yn(!Nr))break}var Co=oh(it,st,ne,Be,!0);return fr(ne,Co)&&(Co.hitSide=!0),Co}function Oc(it,st,ft,At){var xt=it.doc,ne=st.left,Be;if(At=="page"){var He=Math.min(it.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),_e=Math.max(He-.5*Uu(it.display),3);Be=(ft>0?st.bottom:st.top)+ft*_e}else At=="line"&&(Be=ft>0?st.bottom+3:st.top-3);for(var un;un=Ah(it,ne,Be),!!un.outside;){if(ft<0?Be<=0:Be>=xt.height){un.hitSide=!0;break}Be+=ft*5}return un}var Sa=function(it){this.cm=it,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new oe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Sa.prototype.init=function(it){var st=this,ft=this,At=ft.cm,xt=ft.div=it.lineDiv;dA(xt,At.options.spellcheck,At.options.autocorrect,At.options.autocapitalize);function ne(He){for(var _e=He.target;_e;_e=_e.parentNode){if(_e==xt)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(_e.className))break}return!1}je(xt,"paste",function(He){!ne(He)||ci(At,He)||oc(He,At)||ae<=11&&setTimeout(Dn(At,function(){return st.updateFromDOM()}),20)}),je(xt,"compositionstart",function(He){st.composing={data:He.data,done:!1}}),je(xt,"compositionupdate",function(He){st.composing||(st.composing={data:He.data,done:!1})}),je(xt,"compositionend",function(He){st.composing&&(He.data!=st.composing.data&&st.readFromDOMSoon(),st.composing.done=!0)}),je(xt,"touchstart",function(){return ft.forceCompositionEnd()}),je(xt,"input",function(){st.composing||st.readFromDOMSoon()});function Be(He){if(!(!ne(He)||ci(At,He))){if(At.somethingSelected())wh({lineWise:!1,text:At.getSelections()}),He.type=="cut"&&At.replaceSelection("",null,"cut");else if(At.options.lineWiseCopyCut){var _e=cA(At);wh({lineWise:!0,text:_e.text}),He.type=="cut"&&At.operation(function(){At.setSelections(_e.ranges,0,Xe),At.replaceSelection("",null,"cut")})}else return;if(He.clipboardData){He.clipboardData.clearData();var un=Il.text.join(`
|
|
|
`);if(He.clipboardData.setData("Text",un),He.clipboardData.getData("Text")==un){He.preventDefault();return}}var Yn=AA(),xn=Yn.firstChild;At.display.lineSpace.insertBefore(Yn,At.display.lineSpace.firstChild),xn.value=Il.text.join(`
|
|
|
`);var Ni=document.activeElement;Oe(xn),setTimeout(function(){At.display.lineSpace.removeChild(Yn),Ni.focus(),Ni==xt&&ft.showPrimarySelection()},50)}}je(xt,"copy",Be),je(xt,"cut",Be)},Sa.prototype.screenReaderLabelChanged=function(it){it?this.div.setAttribute("aria-label",it):this.div.removeAttribute("aria-label")},Sa.prototype.prepareSelection=function(){var it=xd(this.cm,!1);return it.focus=document.activeElement==this.div,it},Sa.prototype.showSelection=function(it,st){!it||!this.cm.display.view.length||((it.focus||st)&&this.showPrimarySelection(),this.showMultipleSelections(it))},Sa.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Sa.prototype.showPrimarySelection=function(){var it=this.getSelection(),st=this.cm,ft=st.doc.sel.primary(),At=ft.from(),xt=ft.to();if(st.display.viewTo==st.display.viewFrom||At.line>=st.display.viewTo||xt.line<st.display.viewFrom){it.removeAllRanges();return}var ne=_u(st,it.anchorNode,it.anchorOffset),Be=_u(st,it.focusNode,it.focusOffset);if(!(ne&&!ne.bad&&Be&&!Be.bad&&xi(yi(ne,Be),At)==0&&xi(wi(ne,Be),xt)==0)){var He=st.display.view,_e=At.line>=st.display.viewFrom&&mc(st,At)||{node:He[0].measure.map[2],offset:0},un=xt.line<st.display.viewTo&&mc(st,xt);if(!un){var Yn=He[He.length-1].measure,xn=Yn.maps?Yn.maps[Yn.maps.length-1]:Yn.map;un={node:xn[xn.length-1],offset:xn[xn.length-2]-xn[xn.length-3]}}if(!_e||!un){it.removeAllRanges();return}var Ni=it.rangeCount&&it.getRangeAt(0),Ei;try{Ei=ee(_e.node,_e.offset,un.offset,un.node)}catch(Nr){}Ei&&(!bt&&st.state.focused?(it.collapse(_e.node,_e.offset),Ei.collapsed||(it.removeAllRanges(),it.addRange(Ei))):(it.removeAllRanges(),it.addRange(Ei)),Ni&&it.anchorNode==null?it.addRange(Ni):bt&&this.startGracePeriod()),this.rememberSelection()}},Sa.prototype.startGracePeriod=function(){var it=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){it.gracePeriod=!1,it.selectionChanged()&&it.cm.operation(function(){return it.cm.curOp.selectionChanged=!0})},20)},Sa.prototype.showMultipleSelections=function(it){he(this.cm.display.cursorDiv,it.cursors),he(this.cm.display.selectionDiv,it.selection)},Sa.prototype.rememberSelection=function(){var it=this.getSelection();this.lastAnchorNode=it.anchorNode,this.lastAnchorOffset=it.anchorOffset,this.lastFocusNode=it.focusNode,this.lastFocusOffset=it.focusOffset},Sa.prototype.selectionInEditor=function(){var it=this.getSelection();if(!it.rangeCount)return!1;var st=it.getRangeAt(0).commonAncestorContainer;return We(this.div,st)},Sa.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Sa.prototype.blur=function(){this.div.blur()},Sa.prototype.getField=function(){return this.div},Sa.prototype.supportsTouch=function(){return!0},Sa.prototype.receivedFocus=function(){var it=this;this.selectionInEditor()?this.pollSelection():dn(this.cm,function(){return it.cm.curOp.selectionChanged=!0});function st(){it.cm.state.focused&&(it.pollSelection(),it.polling.set(it.cm.options.pollInterval,st))}this.polling.set(this.cm.options.pollInterval,st)},Sa.prototype.selectionChanged=function(){var it=this.getSelection();return it.anchorNode!=this.lastAnchorNode||it.anchorOffset!=this.lastAnchorOffset||it.focusNode!=this.lastFocusNode||it.focusOffset!=this.lastFocusOffset},Sa.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var it=this.getSelection(),st=this.cm;if(et&&Jt&&this.cm.display.gutterSpecs.length&&Zd(it.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ft=_u(st,it.anchorNode,it.anchorOffset),At=_u(st,it.focusNode,it.focusOffset);ft&&At&&dn(st,function(){Ia(st.doc,No(ft,At),Xe),(ft.bad||At.bad)&&(st.curOp.selectionChanged=!0)})}}},Sa.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var it=this.cm,st=it.display,ft=it.doc.sel.primary(),At=ft.from(),xt=ft.to();if(At.ch==0&&At.line>it.firstLine()&&(At=ii(At.line-1,ni(it.doc,At.line-1).length)),xt.ch==ni(it.doc,xt.line).text.length&&xt.line<it.lastLine()&&(xt=ii(xt.line+1,0)),At.line<st.viewFrom||xt.line>st.viewTo-1)return!1;var ne,Be,He;At.line==st.viewFrom||(ne=Ku(it,At.line))==0?(Be=sn(st.view[0].line),He=st.view[0].node):(Be=sn(st.view[ne].line),He=st.view[ne-1].node.nextSibling);var _e=Ku(it,xt.line),un,Yn;if(_e==st.view.length-1?(un=st.viewTo-1,Yn=st.lineDiv.lastChild):(un=sn(st.view[_e+1].line)-1,Yn=st.view[_e+1].node.previousSibling),!He)return!1;for(var xn=it.doc.splitLines(_h(it,He,Yn,Be,un)),Ni=Bi(it.doc,ii(Be,0),ii(un,ni(it.doc,un).text.length));xn.length>1&&Ni.length>1;)if(an(xn)==an(Ni))xn.pop(),Ni.pop(),un--;else if(xn[0]==Ni[0])xn.shift(),Ni.shift(),Be++;else break;for(var Ei=0,Nr=0,jr=xn[0],to=Ni[0],Co=Math.min(jr.length,to.length);Ei<Co&&jr.charCodeAt(Ei)==to.charCodeAt(Ei);)++Ei;for(var $o=an(xn),Do=an(Ni),ss=Math.min($o.length-(xn.length==1?Ei:0),Do.length-(Ni.length==1?Ei:0));Nr<ss&&$o.charCodeAt($o.length-Nr-1)==Do.charCodeAt(Do.length-Nr-1);)++Nr;if(xn.length==1&&Ni.length==1&&Be==At.line)for(;Ei&&Ei>At.ch&&$o.charCodeAt($o.length-Nr-1)==Do.charCodeAt(Do.length-Nr-1);)Ei--,Nr++;xn[xn.length-1]=$o.slice(0,$o.length-Nr).replace(/^\u200b+/,""),xn[0]=xn[0].slice(Ei).replace(/\u200b+$/,"");var Ds=ii(Be,Ei),jo=ii(un,Ni.length?an(Ni).length-Nr:0);if(xn.length>1||xn[0]||xi(Ds,jo))return fc(it.doc,xn,Ds,jo,"+input"),!0},Sa.prototype.ensurePolled=function(){this.forceCompositionEnd()},Sa.prototype.reset=function(){this.forceCompositionEnd()},Sa.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Sa.prototype.readFromDOMSoon=function(){var it=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(it.readDOMTimeout=null,it.composing)if(it.composing.done)it.composing=null;else return;it.updateFromDOM()},80))},Sa.prototype.updateFromDOM=function(){var it=this;(this.cm.isReadOnly()||!this.pollContent())&&dn(this.cm,function(){return bl(it.cm)})},Sa.prototype.setUneditable=function(it){it.contentEditable="false"},Sa.prototype.onKeyPress=function(it){it.charCode==0||this.composing||(it.preventDefault(),this.cm.isReadOnly()||Dn(this.cm,Eh)(this.cm,String.fromCharCode(it.charCode==null?it.keyCode:it.charCode),0))},Sa.prototype.readOnlyChanged=function(it){this.div.contentEditable=String(it!="nocursor")},Sa.prototype.onContextMenu=function(){},Sa.prototype.resetPosition=function(){},Sa.prototype.needsContentAttribute=!0;function mc(it,st){var ft=dh(it,st.line);if(!ft||ft.hidden)return null;var At=ni(it.doc,st.line),xt=al(ft,At,st.line),ne=xe(At,it.doc.direction),Be="left";if(ne){var He=yt(ne,st.ch);Be=He%2?"right":"left"}var _e=Vc(xt.map,st.ch,Be);return _e.offset=_e.collapse=="right"?_e.end:_e.start,_e}function Zd(it){for(var st=it;st;st=st.parentNode)if(/CodeMirror-gutter-wrapper/.test(st.className))return!0;return!1}function Jl(it,st){return st&&(it.bad=!0),it}function _h(it,st,ft,At,xt){var ne="",Be=!1,He=it.doc.lineSeparator(),_e=!1;function un(Ei){return function(Nr){return Nr.id==Ei}}function Yn(){Be&&(ne+=He,_e&&(ne+=He),Be=_e=!1)}function xn(Ei){Ei&&(Yn(),ne+=Ei)}function Ni(Ei){if(Ei.nodeType==1){var Nr=Ei.getAttribute("cm-text");if(Nr){xn(Nr);return}var jr=Ei.getAttribute("cm-marker"),to;if(jr){var Co=it.findMarks(ii(At,0),ii(xt+1,0),un(+jr));Co.length&&(to=Co[0].find(0))&&xn(Bi(it.doc,to.from,to.to).join(He));return}if(Ei.getAttribute("contenteditable")=="false")return;var $o=/^(pre|div|p|li|table|br)$/i.test(Ei.nodeName);if(!/^br$/i.test(Ei.nodeName)&&Ei.textContent.length==0)return;$o&&Yn();for(var Do=0;Do<Ei.childNodes.length;Do++)Ni(Ei.childNodes[Do]);/^(pre|p)$/i.test(Ei.nodeName)&&(_e=!0),$o&&(Be=!0)}else Ei.nodeType==3&&xn(Ei.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Ni(st),st!=ft;)st=st.nextSibling,_e=!1;return ne}function _u(it,st,ft){var At;if(st==it.display.lineDiv){if(At=it.display.lineDiv.childNodes[ft],!At)return Jl(it.clipPos(ii(it.display.viewTo-1)),!0);st=null,ft=0}else for(At=st;;At=At.parentNode){if(!At||At==it.display.lineDiv)return null;if(At.parentNode&&At.parentNode==it.display.lineDiv)break}for(var xt=0;xt<it.display.view.length;xt++){var ne=it.display.view[xt];if(ne.node==At)return cd(ne,st,ft)}}function cd(it,st,ft){var At=it.text.firstChild,xt=!1;if(!st||!We(At,st))return Jl(ii(sn(it.line),0),!0);if(st==At&&(xt=!0,st=At.childNodes[ft],ft=0,!st)){var ne=it.rest?an(it.rest):it.line;return Jl(ii(sn(ne),ne.text.length),xt)}var Be=st.nodeType==3?st:null,He=st;for(!Be&&st.childNodes.length==1&&st.firstChild.nodeType==3&&(Be=st.firstChild,ft&&(ft=Be.nodeValue.length));He.parentNode!=At;)He=He.parentNode;var _e=it.measure,un=_e.maps;function Yn(to,Co,$o){for(var Do=-1;Do<(un?un.length:0);Do++)for(var ss=Do<0?_e.map:un[Do],Ds=0;Ds<ss.length;Ds+=3){var jo=ss[Ds+2];if(jo==to||jo==Co){var Js=sn(Do<0?it.line:it.rest[Do]),_l=ss[Ds]+$o;return($o<0||jo!=to)&&(_l=ss[Ds+($o?1:0)]),ii(Js,_l)}}}var xn=Yn(Be,He,ft);if(xn)return Jl(xn,xt);for(var Ni=He.nextSibling,Ei=Be?Be.nodeValue.length-ft:0;Ni;Ni=Ni.nextSibling){if(xn=Yn(Ni,Ni.firstChild,0),xn)return Jl(ii(xn.line,xn.ch-Ei),xt);Ei+=Ni.textContent.length}for(var Nr=He.previousSibling,jr=ft;Nr;Nr=Nr.previousSibling){if(xn=Yn(Nr,Nr.firstChild,-1),xn)return Jl(ii(xn.line,xn.ch+jr),xt);jr+=Nr.textContent.length}}var Rl=function(it){this.cm=it,this.prevInput="",this.pollingFast=!1,this.polling=new oe,this.hasSelection=!1,this.composing=null};Rl.prototype.init=function(it){var st=this,ft=this,At=this.cm;this.createField(it);var xt=this.textarea;it.wrapper.insertBefore(this.wrapper,it.wrapper.firstChild),wt&&(xt.style.width="0px"),je(xt,"input",function(){ie&&ae>=9&&st.hasSelection&&(st.hasSelection=null),ft.poll()}),je(xt,"paste",function(Be){ci(At,Be)||oc(Be,At)||(At.state.pasteIncoming=+new Date,ft.fastPoll())});function ne(Be){if(!ci(At,Be)){if(At.somethingSelected())wh({lineWise:!1,text:At.getSelections()});else if(At.options.lineWiseCopyCut){var He=cA(At);wh({lineWise:!0,text:He.text}),Be.type=="cut"?At.setSelections(He.ranges,null,Xe):(ft.prevInput="",xt.value=He.text.join(`
|
|
|
`),Oe(xt))}else return;Be.type=="cut"&&(At.state.cutIncoming=+new Date)}}je(xt,"cut",ne),je(xt,"copy",ne),je(it.scroller,"paste",function(Be){if(!(lu(it,Be)||ci(At,Be))){if(!xt.dispatchEvent){At.state.pasteIncoming=+new Date,ft.focus();return}var He=new Event("paste");He.clipboardData=Be.clipboardData,xt.dispatchEvent(He)}}),je(it.lineSpace,"selectstart",function(Be){lu(it,Be)||Fr(Be)}),je(xt,"compositionstart",function(){var Be=At.getCursor("from");ft.composing&&ft.composing.range.clear(),ft.composing={start:Be,range:At.markText(Be,At.getCursor("to"),{className:"CodeMirror-composing"})}}),je(xt,"compositionend",function(){ft.composing&&(ft.poll(),ft.composing.range.clear(),ft.composing=null)})},Rl.prototype.createField=function(it){this.wrapper=AA(),this.textarea=this.wrapper.firstChild},Rl.prototype.screenReaderLabelChanged=function(it){it?this.textarea.setAttribute("aria-label",it):this.textarea.removeAttribute("aria-label")},Rl.prototype.prepareSelection=function(){var it=this.cm,st=it.display,ft=it.doc,At=xd(it);if(it.options.moveInputWithCursor){var xt=cl(it,ft.sel.primary().head,"div"),ne=st.wrapper.getBoundingClientRect(),Be=st.lineDiv.getBoundingClientRect();At.teTop=Math.max(0,Math.min(st.wrapper.clientHeight-10,xt.top+Be.top-ne.top)),At.teLeft=Math.max(0,Math.min(st.wrapper.clientWidth-10,xt.left+Be.left-ne.left))}return At},Rl.prototype.showSelection=function(it){var st=this.cm,ft=st.display;he(ft.cursorDiv,it.cursors),he(ft.selectionDiv,it.selection),it.teTop!=null&&(this.wrapper.style.top=it.teTop+"px",this.wrapper.style.left=it.teLeft+"px")},Rl.prototype.reset=function(it){if(!(this.contextMenuPending||this.composing)){var st=this.cm;if(st.somethingSelected()){this.prevInput="";var ft=st.getSelection();this.textarea.value=ft,st.state.focused&&Oe(this.textarea),ie&&ae>=9&&(this.hasSelection=ft)}else it||(this.prevInput=this.textarea.value="",ie&&ae>=9&&(this.hasSelection=null))}},Rl.prototype.getField=function(){return this.textarea},Rl.prototype.supportsTouch=function(){return!1},Rl.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!tt||Yt()!=this.textarea))try{this.textarea.focus()}catch(it){}},Rl.prototype.blur=function(){this.textarea.blur()},Rl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Rl.prototype.receivedFocus=function(){this.slowPoll()},Rl.prototype.slowPoll=function(){var it=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){it.poll(),it.cm.state.focused&&it.slowPoll()})},Rl.prototype.fastPoll=function(){var it=!1,st=this;st.pollingFast=!0;function ft(){var At=st.poll();!At&&!it?(it=!0,st.polling.set(60,ft)):(st.pollingFast=!1,st.slowPoll())}st.polling.set(20,ft)},Rl.prototype.poll=function(){var it=this,st=this.cm,ft=this.textarea,At=this.prevInput;if(this.contextMenuPending||!st.state.focused||Vt(ft)&&!At&&!this.composing||st.isReadOnly()||st.options.disableInput||st.state.keySeq)return!1;var xt=ft.value;if(xt==At&&!st.somethingSelected())return!1;if(ie&&ae>=9&&this.hasSelection===xt||lt&&/[\uf700-\uf7ff]/.test(xt))return st.display.input.reset(),!1;if(st.doc.sel==st.display.selForContextMenu){var ne=xt.charCodeAt(0);if(ne==8203&&!At&&(At="\u200B"),ne==8666)return this.reset(),this.cm.execCommand("undo")}for(var Be=0,He=Math.min(At.length,xt.length);Be<He&&At.charCodeAt(Be)==xt.charCodeAt(Be);)++Be;return dn(st,function(){Eh(st,xt.slice(Be),At.length-Be,null,it.composing?"*compose":null),xt.length>1e3||xt.indexOf(`
|
|
|
`)>-1?ft.value=it.prevInput="":it.prevInput=xt,it.composing&&(it.composing.range.clear(),it.composing.range=st.markText(it.composing.start,st.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Rl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Rl.prototype.onKeyPress=function(){ie&&ae>=9&&(this.hasSelection=null),this.fastPoll()},Rl.prototype.onContextMenu=function(it){var st=this,ft=st.cm,At=ft.display,xt=st.textarea;st.contextMenuPending&&st.contextMenuPending();var ne=Xu(ft,it),Be=At.scroller.scrollTop;if(!ne||St)return;var He=ft.options.resetSelectionOnContextMenu;He&&ft.doc.sel.contains(ne)==-1&&Dn(ft,Ia)(ft.doc,No(ne),Xe);var _e=xt.style.cssText,un=st.wrapper.style.cssText,Yn=st.wrapper.offsetParent.getBoundingClientRect();st.wrapper.style.cssText="position: static",xt.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(it.clientY-Yn.top-5)+"px; left: "+(it.clientX-Yn.left-5)+`px;
|
|
|
z-index: 1000; background: `+(ie?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var xn;Lt&&(xn=window.scrollY),At.input.focus(),Lt&&window.scrollTo(null,xn),At.input.reset(),ft.somethingSelected()||(xt.value=st.prevInput=" "),st.contextMenuPending=Ei,At.selForContextMenu=ft.doc.sel,clearTimeout(At.detectingSelectAll);function Ni(){if(xt.selectionStart!=null){var jr=ft.somethingSelected(),to="\u200B"+(jr?xt.value:"");xt.value="\u21DA",xt.value=to,st.prevInput=jr?"":"\u200B",xt.selectionStart=1,xt.selectionEnd=to.length,At.selForContextMenu=ft.doc.sel}}function Ei(){if(st.contextMenuPending==Ei&&(st.contextMenuPending=!1,st.wrapper.style.cssText=un,xt.style.cssText=_e,ie&&ae<9&&At.scrollbars.setScrollTop(At.scroller.scrollTop=Be),xt.selectionStart!=null)){(!ie||ie&&ae<9)&&Ni();var jr=0,to=function(){At.selForContextMenu==ft.doc.sel&&xt.selectionStart==0&&xt.selectionEnd>0&&st.prevInput=="\u200B"?Dn(ft,Va)(ft):jr++<10?At.detectingSelectAll=setTimeout(to,500):(At.selForContextMenu=null,At.input.reset())};At.detectingSelectAll=setTimeout(to,200)}}if(ie&&ae>=9&&Ni(),Ft){zr(it);var Nr=function(){jn(window,"mouseup",Nr),setTimeout(Ei,20)};je(window,"mouseup",Nr)}else setTimeout(Ei,50)},Rl.prototype.readOnlyChanged=function(it){it||this.reset(),this.textarea.disabled=it=="nocursor",this.textarea.readOnly=!!it},Rl.prototype.setUneditable=function(){},Rl.prototype.needsContentAttribute=!1;function Yd(it,st){if(st=st?Qe(st):{},st.value=it.value,!st.tabindex&&it.tabIndex&&(st.tabindex=it.tabIndex),!st.placeholder&&it.placeholder&&(st.placeholder=it.placeholder),st.autofocus==null){var ft=Yt();st.autofocus=ft==it||it.getAttribute("autofocus")!=null&&ft==document.body}function At(){it.value=He.getValue()}var xt;if(it.form&&(je(it.form,"submit",At),!st.leaveSubmitMethodAlone)){var ne=it.form;xt=ne.submit;try{var Be=ne.submit=function(){At(),ne.submit=xt,ne.submit(),ne.submit=Be}}catch(_e){}}st.finishInit=function(_e){_e.save=At,_e.getTextArea=function(){return it},_e.toTextArea=function(){_e.toTextArea=isNaN,At(),it.parentNode.removeChild(_e.getWrapperElement()),it.style.display="",it.form&&(jn(it.form,"submit",At),!st.leaveSubmitMethodAlone&&typeof it.form.submit=="function"&&(it.form.submit=xt))}},it.style.display="none";var He=Us(function(_e){return it.parentNode.insertBefore(_e,it.nextSibling)},st);return He}function Eu(it){it.off=jn,it.on=je,it.wheelEventPixels=ho,it.Doc=vu,it.splitLines=ws,it.countColumn=we,it.findColumn=Ai,it.isWordChar=Dt,it.Pass=Nn,it.signal=bn,it.Line=zo,it.changeEnd=hs,it.scrollbarModel=Ti,it.Pos=ii,it.cmpPos=xi,it.modes=ma,it.mimeModes=Ea,it.resolveMode=br,it.getMode=Un,it.modeExtensions=On,it.extendMode=Re,it.copyState=hi,it.startState=gn,it.innerMode=en,it.commands=Bu,it.keyMap=qu,it.keyName=Qd,it.isModifierKey=bd,it.lookupKey=th,it.normalizeKeyMap=ud,it.StringStream=Ve,it.SharedTextMarker=jh,it.TextMarker=_n,it.LineWidget=hu,it.e_preventDefault=Fr,it.e_stopPropagation=oo,it.e_stop=zr,it.addClass=qe,it.contains=We,it.rmClass=_t,it.keyNames=Ys}_a(Us),Tc(Us);var sc="iter insert remove copy getEditor constructor".split(" ");for(var $d in vu.prototype)vu.prototype.hasOwnProperty($d)&&Pe(sc,$d)<0&&(Us.prototype[$d]=function(it){return function(){return it.apply(this.doc,arguments)}}(vu.prototype[$d]));return dr(vu),Us.inputStyles={textarea:Rl,contenteditable:Sa},Us.defineMode=function(it){!Us.defaults.mode&&it!="null"&&(Us.defaults.mode=it),oa.apply(this,arguments)},Us.defineMIME=ao,Us.defineMode("null",function(){return{token:function(it){return it.skipToEnd()}}}),Us.defineMIME("text/plain","null"),Us.defineExtension=function(it,st){Us.prototype[it]=st},Us.defineDocExtension=function(it,st){vu.prototype[it]=st},Us.fromTextArea=Yd,Eu(Us),Us.version="5.58.2",Us})},25419:function(ui,Cn,Bt){(function(bt){bt(Bt(89780),Bt(15525),Bt(98101))})(function(bt){"use strict";bt.defineMode("markdown",function(ge,se){var Me=bt.getMode(ge,"text/html"),ie=Me.name=="null";function ae(we){if(bt.findModeByName){var oe=bt.findModeByName(we);oe&&(we=oe.mime||oe.mimes[0])}var Pe=bt.getMode(ge,we);return Pe.name=="null"?null:Pe}se.highlightFormatting===void 0&&(se.highlightFormatting=!1),se.maxBlockquoteDepth===void 0&&(se.maxBlockquoteDepth=0),se.taskLists===void 0&&(se.taskLists=!1),se.strikethrough===void 0&&(se.strikethrough=!1),se.emoji===void 0&&(se.emoji=!1),se.fencedCodeBlockHighlighting===void 0&&(se.fencedCodeBlockHighlighting=!0),se.fencedCodeBlockDefaultMode===void 0&&(se.fencedCodeBlockDefaultMode="text/plain"),se.xml===void 0&&(se.xml=!0),se.tokenTypeOverrides===void 0&&(se.tokenTypeOverrides={});var Lt={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 kt in Lt)Lt.hasOwnProperty(kt)&&se.tokenTypeOverrides[kt]&&(Lt[kt]=se.tokenTypeOverrides[kt]);var Jt=/^([*\-_])(?:\s*\1){2,}\s*$/,St=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Wt=/^\[(x| )\](?=\s)/i,Gt=se.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,qt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,wt=/^[^#!\[\]*_\\<>` "'(~:]+/,et=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,tt=/^\s*\[[^\]]+?\]:.*$/,lt=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,rt=" ";function ut(we,oe,Pe){return oe.f=oe.inline=Pe,Pe(we,oe)}function dt(we,oe,Pe){return oe.f=oe.block=Pe,Pe(we,oe)}function pt(we){return!we||!/\S/.test(we.string)}function Ft(we){if(we.linkTitle=!1,we.linkHref=!1,we.linkText=!1,we.em=!1,we.strong=!1,we.strikethrough=!1,we.quote=0,we.indentedCode=!1,we.f==_t){var oe=ie;if(!oe){var Pe=bt.innerMode(Me,we.htmlState);oe=Pe.mode.name=="xml"&&Pe.state.tagStart===null&&!Pe.state.context&&Pe.state.tokenize.isInText}oe&&(we.f=Fe,we.block=Tt,we.htmlState=null)}return we.trailingSpace=0,we.trailingSpaceNewLine=!1,we.prevLine=we.thisLine,we.thisLine={stream:null},null}function Tt(we,oe){var Pe=we.column()===oe.indentation,En=pt(oe.prevLine.stream),Nn=oe.indentedCode,Xe=oe.prevLine.hr,kn=oe.list!==!1,Vn=(oe.listStack[oe.listStack.length-1]||0)+3;oe.indentedCode=!1;var Ai=oe.indentation;if(oe.indentationDiff===null&&(oe.indentationDiff=oe.indentation,kn)){for(oe.list=null;Ai<oe.listStack[oe.listStack.length-1];)oe.listStack.pop(),oe.listStack.length?oe.indentation=oe.listStack[oe.listStack.length-1]:oe.list=!1;oe.list!==!1&&(oe.indentationDiff=Ai-oe.listStack[oe.listStack.length-1])}var Wn=!En&&!Xe&&!oe.prevLine.header&&(!kn||!Nn)&&!oe.prevLine.fencedCodeEnd,Si=(oe.list===!1||Xe||En)&&oe.indentation<=Vn&&we.match(Jt),an=null;if(oe.indentationDiff>=4&&(Nn||oe.prevLine.fencedCodeEnd||oe.prevLine.header||En))return we.skipToEnd(),oe.indentedCode=!0,Lt.code;if(we.eatSpace())return null;if(Pe&&oe.indentation<=Vn&&(an=we.match(Gt))&&an[1].length<=6)return oe.quote=0,oe.header=an[1].length,oe.thisLine.header=!0,se.highlightFormatting&&(oe.formatting="header"),oe.f=oe.inline,he(oe);if(oe.indentation<=Vn&&we.eat(">"))return oe.quote=Pe?1:oe.quote+1,se.highlightFormatting&&(oe.formatting="quote"),we.eatSpace(),he(oe);if(!Si&&!oe.setext&&Pe&&oe.indentation<=Vn&&(an=we.match(St))){var Li=an[1]?"ol":"ul";return oe.indentation=Ai+we.current().length,oe.list=!0,oe.quote=0,oe.listStack.push(oe.indentation),oe.em=!1,oe.strong=!1,oe.code=!1,oe.strikethrough=!1,se.taskLists&&we.match(Wt,!1)&&(oe.taskList=!0),oe.f=oe.inline,se.highlightFormatting&&(oe.formatting=["list","list-"+Li]),he(oe)}else{if(Pe&&oe.indentation<=Vn&&(an=we.match(et,!0)))return oe.quote=0,oe.fencedEndRE=new RegExp(an[1]+"+ *$"),oe.localMode=se.fencedCodeBlockHighlighting&&ae(an[2]||se.fencedCodeBlockDefaultMode),oe.localMode&&(oe.localState=bt.startState(oe.localMode)),oe.f=oe.block=re,se.highlightFormatting&&(oe.formatting="code-block"),oe.code=-1,he(oe);if(oe.setext||(!Wn||!kn)&&!oe.quote&&oe.list===!1&&!oe.code&&!Si&&!tt.test(we.string)&&(an=we.lookAhead(1))&&(an=an.match(qt)))return oe.setext?(oe.header=oe.setext,oe.setext=0,we.skipToEnd(),se.highlightFormatting&&(oe.formatting="header")):(oe.header=an[0].charAt(0)=="="?1:2,oe.setext=oe.header),oe.thisLine.header=!0,oe.f=oe.inline,he(oe);if(Si)return we.skipToEnd(),oe.hr=!0,oe.thisLine.hr=!0,Lt.hr;if(we.peek()==="[")return ut(we,oe,Ge)}return ut(we,oe,oe.inline)}function _t(we,oe){var Pe=Me.token(we,oe.htmlState);if(!ie){var En=bt.innerMode(Me,oe.htmlState);(En.mode.name=="xml"&&En.state.tagStart===null&&!En.state.context&&En.state.tokenize.isInText||oe.md_inside&&we.current().indexOf(">")>-1)&&(oe.f=Fe,oe.block=Tt,oe.htmlState=null)}return Pe}function re(we,oe){var Pe=oe.listStack[oe.listStack.length-1]||0,En=oe.indentation<Pe,Nn=Pe+3;if(oe.fencedEndRE&&oe.indentation<=Nn&&(En||we.match(oe.fencedEndRE))){se.highlightFormatting&&(oe.formatting="code-block");var Xe;return En||(Xe=he(oe)),oe.localMode=oe.localState=null,oe.block=Tt,oe.f=Fe,oe.fencedEndRE=null,oe.code=0,oe.thisLine.fencedCodeEnd=!0,En?dt(we,oe,oe.block):Xe}else return oe.localMode?oe.localMode.token(we,oe.localState):(we.skipToEnd(),Lt.code)}function he(we){var oe=[];if(we.formatting){oe.push(Lt.formatting),typeof we.formatting=="string"&&(we.formatting=[we.formatting]);for(var Pe=0;Pe<we.formatting.length;Pe++)oe.push(Lt.formatting+"-"+we.formatting[Pe]),we.formatting[Pe]==="header"&&oe.push(Lt.formatting+"-"+we.formatting[Pe]+"-"+we.header),we.formatting[Pe]==="quote"&&(!se.maxBlockquoteDepth||se.maxBlockquoteDepth>=we.quote?oe.push(Lt.formatting+"-"+we.formatting[Pe]+"-"+we.quote):oe.push("error"))}if(we.taskOpen)return oe.push("meta"),oe.length?oe.join(" "):null;if(we.taskClosed)return oe.push("property"),oe.length?oe.join(" "):null;if(we.linkHref?oe.push(Lt.linkHref,"url"):(we.strong&&oe.push(Lt.strong),we.em&&oe.push(Lt.em),we.strikethrough&&oe.push(Lt.strikethrough),we.emoji&&oe.push(Lt.emoji),we.linkText&&oe.push(Lt.linkText),we.code&&oe.push(Lt.code),we.image&&oe.push(Lt.image),we.imageAltText&&oe.push(Lt.imageAltText,"link"),we.imageMarker&&oe.push(Lt.imageMarker)),we.header&&oe.push(Lt.header,Lt.header+"-"+we.header),we.quote&&(oe.push(Lt.quote),!se.maxBlockquoteDepth||se.maxBlockquoteDepth>=we.quote?oe.push(Lt.quote+"-"+we.quote):oe.push(Lt.quote+"-"+se.maxBlockquoteDepth)),we.list!==!1){var En=(we.listStack.length-1)%3;En?En===1?oe.push(Lt.list2):oe.push(Lt.list3):oe.push(Lt.list1)}return we.trailingSpaceNewLine?oe.push("trailing-space-new-line"):we.trailingSpace&&oe.push("trailing-space-"+(we.trailingSpace%2?"a":"b")),oe.length?oe.join(" "):null}function Ae(we,oe){if(we.match(wt,!0))return he(oe)}function Fe(we,oe){var Pe=oe.text(we,oe);if(typeof Pe!="undefined")return Pe;if(oe.list)return oe.list=null,he(oe);if(oe.taskList){var En=we.match(Wt,!0)[1]===" ";return En?oe.taskOpen=!0:oe.taskClosed=!0,se.highlightFormatting&&(oe.formatting="task"),oe.taskList=!1,he(oe)}if(oe.taskOpen=!1,oe.taskClosed=!1,oe.header&&we.match(/^#+$/,!0))return se.highlightFormatting&&(oe.formatting="header"),he(oe);var Nn=we.next();if(oe.linkTitle){oe.linkTitle=!1;var Xe=Nn;Nn==="("&&(Xe=")"),Xe=(Xe+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var kn="^\\s*(?:[^"+Xe+"\\\\]+|\\\\\\\\|\\\\.)"+Xe;if(we.match(new RegExp(kn),!0))return Lt.linkHref}if(Nn==="`"){var Vn=oe.formatting;se.highlightFormatting&&(oe.formatting="code"),we.eatWhile("`");var Ai=we.current().length;if(oe.code==0&&(!oe.quote||Ai==1))return oe.code=Ai,he(oe);if(Ai==oe.code){var Wn=he(oe);return oe.code=0,Wn}else return oe.formatting=Vn,he(oe)}else if(oe.code)return he(oe);if(Nn==="\\"&&(we.next(),se.highlightFormatting)){var Si=he(oe),an=Lt.formatting+"-escape";return Si?Si+" "+an:an}if(Nn==="!"&&we.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return oe.imageMarker=!0,oe.image=!0,se.highlightFormatting&&(oe.formatting="image"),he(oe);if(Nn==="["&&oe.imageMarker&&we.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return oe.imageMarker=!1,oe.imageAltText=!0,se.highlightFormatting&&(oe.formatting="image"),he(oe);if(Nn==="]"&&oe.imageAltText){se.highlightFormatting&&(oe.formatting="image");var Si=he(oe);return oe.imageAltText=!1,oe.image=!1,oe.inline=oe.f=We,Si}if(Nn==="["&&!oe.image)return oe.linkText&&we.match(/^.*?\]/)||(oe.linkText=!0,se.highlightFormatting&&(oe.formatting="link")),he(oe);if(Nn==="]"&&oe.linkText){se.highlightFormatting&&(oe.formatting="link");var Si=he(oe);return oe.linkText=!1,oe.inline=oe.f=we.match(/\(.*?\)| ?\[.*?\]/,!1)?We:Fe,Si}if(Nn==="<"&&we.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){oe.f=oe.inline=ee,se.highlightFormatting&&(oe.formatting="link");var Si=he(oe);return Si?Si+=" ":Si="",Si+Lt.linkInline}if(Nn==="<"&&we.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){oe.f=oe.inline=ee,se.highlightFormatting&&(oe.formatting="link");var Si=he(oe);return Si?Si+=" ":Si="",Si+Lt.linkEmail}if(se.xml&&Nn==="<"&&we.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Li=we.string.indexOf(">",we.pos);if(Li!=-1){var Oi=we.string.substring(we.start,Li);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Oi)&&(oe.md_inside=!0)}return we.backUp(1),oe.htmlState=bt.startState(Me),dt(we,oe,_t)}if(se.xml&&Nn==="<"&&we.match(/^\/\w*?>/))return oe.md_inside=!1,"tag";if(Nn==="*"||Nn==="_"){for(var ue=1,Pn=we.pos==1?" ":we.string.charAt(we.pos-2);ue<3&&we.eat(Nn);)ue++;var de=we.peek()||" ",Dt=!/\s/.test(de)&&(!lt.test(de)||/\s/.test(Pn)||lt.test(Pn)),Mt=!/\s/.test(Pn)&&(!lt.test(Pn)||/\s/.test(de)||lt.test(de)),zt=null,be=null;if(ue%2&&(!oe.em&&Dt&&(Nn==="*"||!Mt||lt.test(Pn))?zt=!0:oe.em==Nn&&Mt&&(Nn==="*"||!Dt||lt.test(de))&&(zt=!1)),ue>1&&(!oe.strong&&Dt&&(Nn==="*"||!Mt||lt.test(Pn))?be=!0:oe.strong==Nn&&Mt&&(Nn==="*"||!Dt||lt.test(de))&&(be=!1)),be!=null||zt!=null){se.highlightFormatting&&(oe.formatting=zt==null?"strong":be==null?"em":"strong em"),zt===!0&&(oe.em=Nn),be===!0&&(oe.strong=Nn);var Wn=he(oe);return zt===!1&&(oe.em=!1),be===!1&&(oe.strong=!1),Wn}}else if(Nn===" "&&(we.eat("*")||we.eat("_"))){if(we.peek()===" ")return he(oe);we.backUp(1)}if(se.strikethrough){if(Nn==="~"&&we.eatWhile(Nn)){if(oe.strikethrough){se.highlightFormatting&&(oe.formatting="strikethrough");var Wn=he(oe);return oe.strikethrough=!1,Wn}else if(we.match(/^[^\s]/,!1))return oe.strikethrough=!0,se.highlightFormatting&&(oe.formatting="strikethrough"),he(oe)}else if(Nn===" "&&we.match(/^~~/,!0)){if(we.peek()===" ")return he(oe);we.backUp(2)}}if(se.emoji&&Nn===":"&&we.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){oe.emoji=!0,se.highlightFormatting&&(oe.formatting="emoji");var De=he(oe);return oe.emoji=!1,De}return Nn===" "&&(we.match(/^ +$/,!1)?oe.trailingSpace++:oe.trailingSpace&&(oe.trailingSpaceNewLine=!0)),he(oe)}function ee(we,oe){var Pe=we.next();if(Pe===">"){oe.f=oe.inline=Fe,se.highlightFormatting&&(oe.formatting="link");var En=he(oe);return En?En+=" ":En="",En+Lt.linkInline}return we.match(/^[^>]+/,!0),Lt.linkInline}function We(we,oe){if(we.eatSpace())return null;var Pe=we.next();return Pe==="("||Pe==="["?(oe.f=oe.inline=qe(Pe==="("?")":"]"),se.highlightFormatting&&(oe.formatting="link-string"),oe.linkHref=!0,he(oe)):"error"}var Yt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function qe(we){return function(oe,Pe){var En=oe.next();if(En===we){Pe.f=Pe.inline=Fe,se.highlightFormatting&&(Pe.formatting="link-string");var Nn=he(Pe);return Pe.linkHref=!1,Nn}return oe.match(Yt[we]),Pe.linkHref=!0,he(Pe)}}function Ge(we,oe){return we.match(/^([^\]\\]|\\.)*\]:/,!1)?(oe.f=Oe,we.next(),se.highlightFormatting&&(oe.formatting="link"),oe.linkText=!0,he(oe)):ut(we,oe,Fe)}function Oe(we,oe){if(we.match(/^\]:/,!0)){oe.f=oe.inline=Ze,se.highlightFormatting&&(oe.formatting="link");var Pe=he(oe);return oe.linkText=!1,Pe}return we.match(/^([^\]\\]|\\.)+/,!0),Lt.linkText}function Ze(we,oe){return we.eatSpace()?null:(we.match(/^[^\s]+/,!0),we.peek()===void 0?oe.linkTitle=!0:we.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),oe.f=oe.inline=Fe,Lt.linkHref+" url")}var Qe={startState:function(){return{f:Tt,prevLine:{stream:null},thisLine:{stream:null},block:Tt,htmlState:null,indentation:0,inline:Fe,text:Ae,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(we){return{f:we.f,prevLine:we.prevLine,thisLine:we.thisLine,block:we.block,htmlState:we.htmlState&&bt.copyState(Me,we.htmlState),indentation:we.indentation,localMode:we.localMode,localState:we.localMode?bt.copyState(we.localMode,we.localState):null,inline:we.inline,text:we.text,formatting:!1,linkText:we.linkText,linkTitle:we.linkTitle,linkHref:we.linkHref,code:we.code,em:we.em,strong:we.strong,strikethrough:we.strikethrough,emoji:we.emoji,header:we.header,setext:we.setext,hr:we.hr,taskList:we.taskList,list:we.list,listStack:we.listStack.slice(0),quote:we.quote,indentedCode:we.indentedCode,trailingSpace:we.trailingSpace,trailingSpaceNewLine:we.trailingSpaceNewLine,md_inside:we.md_inside,fencedEndRE:we.fencedEndRE}},token:function(we,oe){if(oe.formatting=!1,we!=oe.thisLine.stream){if(oe.header=0,oe.hr=!1,we.match(/^\s*$/,!0))return Ft(oe),null;if(oe.prevLine=oe.thisLine,oe.thisLine={stream:we},oe.taskList=!1,oe.trailingSpace=0,oe.trailingSpaceNewLine=!1,!oe.localState&&(oe.f=oe.block,oe.f!=_t)){var Pe=we.match(/^\s*/,!0)[0].replace(/\t/g,rt).length;if(oe.indentation=Pe,oe.indentationDiff=null,Pe>0)return null}}return oe.f(we,oe)},innerMode:function(we){return we.block==_t?{state:we.htmlState,mode:Me}:we.localState?{state:we.localState,mode:we.localMode}:{state:we,mode:Qe}},indent:function(we,oe,Pe){return we.block==_t&&Me.indent?Me.indent(we.htmlState,oe,Pe):we.localState&&we.localMode.indent?we.localMode.indent(we.localState,oe,Pe):bt.Pass},blankLine:Ft,getType:he,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Qe},"xml"),bt.defineMIME("text/markdown","markdown"),bt.defineMIME("text/x-markdown","markdown")})},98101:function(ui,Cn,Bt){(function(bt){bt(Bt(89780))})(function(bt){"use strict";bt.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 ge=0;ge<bt.modeInfo.length;ge++){var se=bt.modeInfo[ge];se.mimes&&(se.mime=se.mimes[0])}bt.findModeByMIME=function(Me){Me=Me.toLowerCase();for(var ie=0;ie<bt.modeInfo.length;ie++){var ae=bt.modeInfo[ie];if(ae.mime==Me)return ae;if(ae.mimes){for(var Lt=0;Lt<ae.mimes.length;Lt++)if(ae.mimes[Lt]==Me)return ae}}if(/\+xml$/.test(Me))return bt.findModeByMIME("application/xml");if(/\+json$/.test(Me))return bt.findModeByMIME("application/json")},bt.findModeByExtension=function(Me){Me=Me.toLowerCase();for(var ie=0;ie<bt.modeInfo.length;ie++){var ae=bt.modeInfo[ie];if(ae.ext){for(var Lt=0;Lt<ae.ext.length;Lt++)if(ae.ext[Lt]==Me)return ae}}},bt.findModeByFileName=function(Me){for(var ie=0;ie<bt.modeInfo.length;ie++){var ae=bt.modeInfo[ie];if(ae.file&&ae.file.test(Me))return ae}var Lt=Me.lastIndexOf("."),kt=Lt>-1&&Me.substring(Lt+1,Me.length);if(kt)return bt.findModeByExtension(kt)},bt.findModeByName=function(Me){Me=Me.toLowerCase();for(var ie=0;ie<bt.modeInfo.length;ie++){var ae=bt.modeInfo[ie];if(ae.name.toLowerCase()==Me)return ae;if(ae.alias){for(var Lt=0;Lt<ae.alias.length;Lt++)if(ae.alias[Lt].toLowerCase()==Me)return ae}}}})},67549:function(ui,Cn,Bt){(function(bt){bt(Bt(89780))})(function(bt){"use strict";bt.defineMode("stex",function(ge,se){"use strict";function Me(wt,et){wt.cmdState.push(et)}function ie(wt){return wt.cmdState.length>0?wt.cmdState[wt.cmdState.length-1]:null}function ae(wt){var et=wt.cmdState.pop();et&&et.closeBracket()}function Lt(wt){for(var et=wt.cmdState,tt=et.length-1;tt>=0;tt--){var lt=et[tt];if(lt.name!="DEFAULT")return lt}return{styleIdentifier:function(){return null}}}function kt(wt,et,tt){return function(){this.name=wt,this.bracketNo=0,this.style=et,this.styles=tt,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Jt={};Jt.importmodule=kt("importmodule","tag",["string","builtin"]),Jt.documentclass=kt("documentclass","tag",["","atom"]),Jt.usepackage=kt("usepackage","tag",["atom"]),Jt.begin=kt("begin","tag",["atom"]),Jt.end=kt("end","tag",["atom"]),Jt.label=kt("label","tag",["atom"]),Jt.ref=kt("ref","tag",["atom"]),Jt.eqref=kt("eqref","tag",["atom"]),Jt.cite=kt("cite","tag",["atom"]),Jt.bibitem=kt("bibitem","tag",["atom"]),Jt.Bibitem=kt("Bibitem","tag",["atom"]),Jt.RBibitem=kt("RBibitem","tag",["atom"]),Jt.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function St(wt,et){wt.f=et}function Wt(wt,et){var tt;if(wt.match(/^\\[a-zA-Z@]+/)){var lt=wt.current().slice(1);return tt=Jt.hasOwnProperty(lt)?Jt[lt]:Jt.DEFAULT,tt=new tt,Me(et,tt),St(et,qt),tt.style}if(wt.match(/^\\[$&%#{}_]/)||wt.match(/^\\[,;!\/\\]/))return"tag";if(wt.match("\\["))return St(et,function(ut,dt){return Gt(ut,dt,"\\]")}),"keyword";if(wt.match("\\("))return St(et,function(ut,dt){return Gt(ut,dt,"\\)")}),"keyword";if(wt.match("$$"))return St(et,function(ut,dt){return Gt(ut,dt,"$$")}),"keyword";if(wt.match("$"))return St(et,function(ut,dt){return Gt(ut,dt,"$")}),"keyword";var rt=wt.next();if(rt=="%")return wt.skipToEnd(),"comment";if(rt=="}"||rt=="]"){if(tt=ie(et),tt)tt.closeBracket(rt),St(et,qt);else return"error";return"bracket"}else return rt=="{"||rt=="["?(tt=Jt.DEFAULT,tt=new tt,Me(et,tt),"bracket"):/\d/.test(rt)?(wt.eatWhile(/[\w.%]/),"atom"):(wt.eatWhile(/[\w\-_]/),tt=Lt(et),tt.name=="begin"&&(tt.argument=wt.current()),tt.styleIdentifier())}function Gt(wt,et,tt){if(wt.eatSpace())return null;if(tt&&wt.match(tt))return St(et,Wt),"keyword";if(wt.match(/^\\[a-zA-Z@]+/))return"tag";if(wt.match(/^[a-zA-Z]+/))return"variable-2";if(wt.match(/^\\[$&%#{}_]/)||wt.match(/^\\[,;!\/]/)||wt.match(/^[\^_&]/))return"tag";if(wt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(wt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var lt=wt.next();return lt=="{"||lt=="}"||lt=="["||lt=="]"||lt=="("||lt==")"?"bracket":lt=="%"?(wt.skipToEnd(),"comment"):"error"}function qt(wt,et){var tt=wt.peek(),lt;return tt=="{"||tt=="["?(lt=ie(et),lt.openBracket(tt),wt.eat(tt),St(et,Wt),"bracket"):/[ \t\r]/.test(tt)?(wt.eat(tt),null):(St(et,Wt),ae(et),Wt(wt,et))}return{startState:function(){var wt=se.inMathMode?function(et,tt){return Gt(et,tt)}:Wt;return{cmdState:[],f:wt}},copyState:function(wt){return{cmdState:wt.cmdState.slice(),f:wt.f}},token:function(wt,et){return et.f(wt,et)},blankLine:function(wt){wt.f=Wt,wt.cmdState.length=0},lineComment:"%"}}),bt.defineMIME("text/x-stex","stex"),bt.defineMIME("text/x-latex","stex")})},15525:function(ui,Cn,Bt){(function(bt){bt(Bt(89780))})(function(bt){"use strict";var ge={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},se={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};bt.defineMode("xml",function(Me,ie){var ae=Me.indentUnit,Lt={},kt=ie.htmlMode?ge:se;for(var Jt in kt)Lt[Jt]=kt[Jt];for(var Jt in ie)Lt[Jt]=ie[Jt];var St,Wt;function Gt(ee,We){function Yt(Oe){return We.tokenize=Oe,Oe(ee,We)}var qe=ee.next();if(qe=="<")return ee.eat("!")?ee.eat("[")?ee.match("CDATA[")?Yt(et("atom","]]>")):null:ee.match("--")?Yt(et("comment","-->")):ee.match("DOCTYPE",!0,!0)?(ee.eatWhile(/[\w\._\-]/),Yt(tt(1))):null:ee.eat("?")?(ee.eatWhile(/[\w\._\-]/),We.tokenize=et("meta","?>"),"meta"):(St=ee.eat("/")?"closeTag":"openTag",We.tokenize=qt,"tag bracket");if(qe=="&"){var Ge;return ee.eat("#")?ee.eat("x")?Ge=ee.eatWhile(/[a-fA-F\d]/)&&ee.eat(";"):Ge=ee.eatWhile(/[\d]/)&&ee.eat(";"):Ge=ee.eatWhile(/[\w\.\-:]/)&&ee.eat(";"),Ge?"atom":"error"}else return ee.eatWhile(/[^&<]/),null}Gt.isInText=!0;function qt(ee,We){var Yt=ee.next();if(Yt==">"||Yt=="/"&&ee.eat(">"))return We.tokenize=Gt,St=Yt==">"?"endTag":"selfcloseTag","tag bracket";if(Yt=="=")return St="equals",null;if(Yt=="<"){We.tokenize=Gt,We.state=dt,We.tagName=We.tagStart=null;var qe=We.tokenize(ee,We);return qe?qe+" tag error":"tag error"}else return/[\'\"]/.test(Yt)?(We.tokenize=wt(Yt),We.stringStartCol=ee.column(),We.tokenize(ee,We)):(ee.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function wt(ee){var We=function(Yt,qe){for(;!Yt.eol();)if(Yt.next()==ee){qe.tokenize=qt;break}return"string"};return We.isInAttribute=!0,We}function et(ee,We){return function(Yt,qe){for(;!Yt.eol();){if(Yt.match(We)){qe.tokenize=Gt;break}Yt.next()}return ee}}function tt(ee){return function(We,Yt){for(var qe;(qe=We.next())!=null;){if(qe=="<")return Yt.tokenize=tt(ee+1),Yt.tokenize(We,Yt);if(qe==">")if(ee==1){Yt.tokenize=Gt;break}else return Yt.tokenize=tt(ee-1),Yt.tokenize(We,Yt)}return"meta"}}function lt(ee,We,Yt){this.prev=ee.context,this.tagName=We,this.indent=ee.indented,this.startOfLine=Yt,(Lt.doNotIndent.hasOwnProperty(We)||ee.context&&ee.context.noIndent)&&(this.noIndent=!0)}function rt(ee){ee.context&&(ee.context=ee.context.prev)}function ut(ee,We){for(var Yt;;){if(!ee.context||(Yt=ee.context.tagName,!Lt.contextGrabbers.hasOwnProperty(Yt)||!Lt.contextGrabbers[Yt].hasOwnProperty(We)))return;rt(ee)}}function dt(ee,We,Yt){return ee=="openTag"?(Yt.tagStart=We.column(),pt):ee=="closeTag"?Ft:dt}function pt(ee,We,Yt){return ee=="word"?(Yt.tagName=We.current(),Wt="tag",re):Lt.allowMissingTagName&&ee=="endTag"?(Wt="tag bracket",re(ee,We,Yt)):(Wt="error",pt)}function Ft(ee,We,Yt){if(ee=="word"){var qe=We.current();return Yt.context&&Yt.context.tagName!=qe&&Lt.implicitlyClosed.hasOwnProperty(Yt.context.tagName)&&rt(Yt),Yt.context&&Yt.context.tagName==qe||Lt.matchClosing===!1?(Wt="tag",Tt):(Wt="tag error",_t)}else return Lt.allowMissingTagName&&ee=="endTag"?(Wt="tag bracket",Tt(ee,We,Yt)):(Wt="error",_t)}function Tt(ee,We,Yt){return ee!="endTag"?(Wt="error",Tt):(rt(Yt),dt)}function _t(ee,We,Yt){return Wt="error",Tt(ee,We,Yt)}function re(ee,We,Yt){if(ee=="word")return Wt="attribute",he;if(ee=="endTag"||ee=="selfcloseTag"){var qe=Yt.tagName,Ge=Yt.tagStart;return Yt.tagName=Yt.tagStart=null,ee=="selfcloseTag"||Lt.autoSelfClosers.hasOwnProperty(qe)?ut(Yt,qe):(ut(Yt,qe),Yt.context=new lt(Yt,qe,Ge==Yt.indented)),dt}return Wt="error",re}function he(ee,We,Yt){return ee=="equals"?Ae:(Lt.allowMissing||(Wt="error"),re(ee,We,Yt))}function Ae(ee,We,Yt){return ee=="string"?Fe:ee=="word"&&Lt.allowUnquoted?(Wt="string",re):(Wt="error",re(ee,We,Yt))}function Fe(ee,We,Yt){return ee=="string"?Fe:re(ee,We,Yt)}return{startState:function(ee){var We={tokenize:Gt,state:dt,indented:ee||0,tagName:null,tagStart:null,context:null};return ee!=null&&(We.baseIndent=ee),We},token:function(ee,We){if(!We.tagName&&ee.sol()&&(We.indented=ee.indentation()),ee.eatSpace())return null;St=null;var Yt=We.tokenize(ee,We);return(Yt||St)&&Yt!="comment"&&(Wt=null,We.state=We.state(St||Yt,ee,We),Wt&&(Yt=Wt=="error"?Yt+" error":Wt)),Yt},indent:function(ee,We,Yt){var qe=ee.context;if(ee.tokenize.isInAttribute)return ee.tagStart==ee.indented?ee.stringStartCol+1:ee.indented+ae;if(qe&&qe.noIndent)return bt.Pass;if(ee.tokenize!=qt&&ee.tokenize!=Gt)return Yt?Yt.match(/^(\s*)/)[0].length:0;if(ee.tagName)return Lt.multilineTagIndentPastTag!==!1?ee.tagStart+ee.tagName.length+2:ee.tagStart+ae*(Lt.multilineTagIndentFactor||1);if(Lt.alignCDATA&&/<!\[CDATA\[/.test(We))return 0;var Ge=We&&/^<(\/)?([\w_:\.-]*)/.exec(We);if(Ge&&Ge[1])for(;qe;)if(qe.tagName==Ge[2]){qe=qe.prev;break}else if(Lt.implicitlyClosed.hasOwnProperty(qe.tagName))qe=qe.prev;else break;else if(Ge)for(;qe;){var Oe=Lt.contextGrabbers[qe.tagName];if(Oe&&Oe.hasOwnProperty(Ge[2]))qe=qe.prev;else break}for(;qe&&qe.prev&&!qe.startOfLine;)qe=qe.prev;return qe?qe.indent+ae:ee.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Lt.htmlMode?"html":"xml",helperType:Lt.htmlMode?"html":"xml",skipAttribute:function(ee){ee.state==Ae&&(ee.state=re)},xmlCurrentTag:function(ee){return ee.tagName?{name:ee.tagName,close:ee.type=="closeTag"}:null},xmlCurrentContext:function(ee){for(var We=[],Yt=ee.context;Yt;Yt=Yt.prev)Yt.tagName&&We.push(Yt.tagName);return We.reverse()}}}),bt.defineMIME("text/xml","xml"),bt.defineMIME("application/xml","xml"),bt.mimeModes.hasOwnProperty("text/html")||bt.defineMIME("text/html",{name:"xml",htmlMode:!0})})},97774:function(ui,Cn,Bt){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.default=void 0;var bt=Object.assign||function(tt){for(var lt=1;lt<arguments.length;lt++){var rt=arguments[lt];for(var ut in rt)Object.prototype.hasOwnProperty.call(rt,ut)&&(tt[ut]=rt[ut])}return tt},ge=function(){function tt(lt,rt){for(var ut=0;ut<rt.length;ut++){var dt=rt[ut];dt.enumerable=dt.enumerable||!1,dt.configurable=!0,"value"in dt&&(dt.writable=!0),Object.defineProperty(lt,dt.key,dt)}}return function(lt,rt,ut){return rt&&tt(lt.prototype,rt),ut&&tt(lt,ut),lt}}(),se=Bt(59301),Me=Wt(se),ie=Bt(12708),ae=Wt(ie),Lt=Bt(53291),kt=Wt(Lt),Jt=Bt(47242),St=Bt(65429);function Wt(tt){return tt&&tt.__esModule?tt:{default:tt}}function Gt(tt,lt){if(!(tt instanceof lt))throw new TypeError("Cannot call a class as a function")}function qt(tt,lt){if(!tt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return lt&&(typeof lt=="object"||typeof lt=="function")?lt:tt}function wt(tt,lt){if(typeof lt!="function"&<!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof lt);tt.prototype=Object.create(lt&<.prototype,{constructor:{value:tt,enumerable:!1,writable:!0,configurable:!0}}),lt&&(Object.setPrototypeOf?Object.setPrototypeOf(tt,lt):tt.__proto__=lt)}var et=function(tt){wt(lt,tt);function lt(rt){Gt(this,lt);var ut=qt(this,(lt.__proto__||Object.getPrototypeOf(lt)).call(this,rt));return ut.getEchartsInstance=function(){return ut.echartsLib.getInstanceByDom(ut.echartsElement)||ut.echartsLib.init(ut.echartsElement,ut.props.theme,ut.props.opts)},ut.dispose=function(){if(ut.echartsElement){try{(0,Jt.clear)(ut.echartsElement)}catch(dt){console.warn(dt)}ut.echartsLib.dispose(ut.echartsElement)}},ut.rerender=function(){var dt=ut.props,pt=dt.onEvents,Ft=dt.onChartReady,Tt=ut.renderEchartDom();ut.bindEvents(Tt,pt||{}),typeof Ft=="function"&&ut.props.onChartReady(Tt),ut.echartsElement&&(0,Jt.bind)(ut.echartsElement,function(){try{Tt.resize()}catch(_t){console.warn(_t)}})},ut.bindEvents=function(dt,pt){var Ft=function(re,he){typeof re=="string"&&typeof he=="function"&&dt.on(re,function(Ae){he(Ae,dt)})};for(var Tt in pt)Object.prototype.hasOwnProperty.call(pt,Tt)&&Ft(Tt,pt[Tt])},ut.renderEchartDom=function(){var dt=ut.getEchartsInstance();return dt.setOption(ut.props.option,ut.props.notMerge||!1,ut.props.lazyUpdate||!1),ut.props.showLoading?dt.showLoading(ut.props.loadingOption||null):dt.hideLoading(),dt},ut.echartsLib=rt.echarts,ut.echartsElement=null,ut}return ge(lt,[{key:"componentDidMount",value:function(){this.rerender()}},{key:"componentDidUpdate",value:function(ut){if(!(typeof this.props.shouldSetOption=="function"&&!this.props.shouldSetOption(ut,this.props))){if(!(0,kt.default)(ut.theme,this.props.theme)||!(0,kt.default)(ut.opts,this.props.opts)||!(0,kt.default)(ut.onEvents,this.props.onEvents)){this.dispose(),this.rerender();return}var dt=["option","notMerge","lazyUpdate","showLoading","loadingOption"];if(!(0,kt.default)((0,St.pick)(this.props,dt),(0,St.pick)(ut,dt))){var pt=this.renderEchartDom();if(!(0,kt.default)(ut.style,this.props.style)||!(0,kt.default)(ut.className,this.props.className))try{pt.resize()}catch(Ft){console.warn(Ft)}}}}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"render",value:function(){var ut=this,dt=this.props,pt=dt.style,Ft=dt.className,Tt=bt({height:300},pt);return Me.default.createElement("div",{ref:function(re){ut.echartsElement=re},style:Tt,className:"echarts-for-react "+Ft})}}]),lt}(se.Component);Cn.default=et,et.propTypes={option:ae.default.object.isRequired,echarts:ae.default.object,notMerge:ae.default.bool,lazyUpdate:ae.default.bool,style:ae.default.object,className:ae.default.string,theme:ae.default.oneOfType([ae.default.string,ae.default.object]),onChartReady:ae.default.func,showLoading:ae.default.bool,loadingOption:ae.default.object,onEvents:ae.default.object,opts:ae.default.shape({devicePixelRatio:ae.default.number,renderer:ae.default.oneOf(["canvas","svg"]),width:ae.default.oneOfType([ae.default.number,ae.default.oneOf([null,void 0,"auto"])]),height:ae.default.oneOfType([ae.default.number,ae.default.oneOf([null,void 0,"auto"])])}),shouldSetOption:ae.default.func},et.defaultProps={echarts:{},notMerge:!1,lazyUpdate:!1,style:{},className:"",theme:null,onChartReady:function(){},showLoading:!1,loadingOption:null,onEvents:{},opts:{},shouldSetOption:function(){return!0}}},42441:function(ui,Cn,Bt){"use strict";var bt;bt={value:!0},Cn.Z=void 0;var ge=Bt(76411),se=ae(ge),Me=Bt(97774),ie=ae(Me);function ae(Wt){return Wt&&Wt.__esModule?Wt:{default:Wt}}function Lt(Wt,Gt){if(!(Wt instanceof Gt))throw new TypeError("Cannot call a class as a function")}function kt(Wt,Gt){if(!Wt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Gt&&(typeof Gt=="object"||typeof Gt=="function")?Gt:Wt}function Jt(Wt,Gt){if(typeof Gt!="function"&&Gt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Gt);Wt.prototype=Object.create(Gt&&Gt.prototype,{constructor:{value:Wt,enumerable:!1,writable:!0,configurable:!0}}),Gt&&(Object.setPrototypeOf?Object.setPrototypeOf(Wt,Gt):Wt.__proto__=Gt)}var St=function(Wt){Jt(Gt,Wt);function Gt(qt){Lt(this,Gt);var wt=kt(this,(Gt.__proto__||Object.getPrototypeOf(Gt)).call(this,qt));return wt.echartsLib=se.default,wt}return Gt}(ie.default);Cn.Z=St},65429:function(ui,Cn){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});var Bt=Cn.pick=function(ge,se){var Me={};return se.forEach(function(ie){Me[ie]=ge[ie]}),Me}},86204:function(ui){"use strict";var Cn=typeof Reflect=="object"?Reflect:null,Bt=Cn&&typeof Cn.apply=="function"?Cn.apply:function(dt,pt,Ft){return Function.prototype.apply.call(dt,pt,Ft)},bt;Cn&&typeof Cn.ownKeys=="function"?bt=Cn.ownKeys:Object.getOwnPropertySymbols?bt=function(dt){return Object.getOwnPropertyNames(dt).concat(Object.getOwnPropertySymbols(dt))}:bt=function(dt){return Object.getOwnPropertyNames(dt)};function ge(ut){console&&console.warn&&console.warn(ut)}var se=Number.isNaN||function(dt){return dt!==dt};function Me(){Me.init.call(this)}ui.exports=Me,ui.exports.once=tt,Me.EventEmitter=Me,Me.prototype._events=void 0,Me.prototype._eventsCount=0,Me.prototype._maxListeners=void 0;var ie=10;function ae(ut){if(typeof ut!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof ut)}Object.defineProperty(Me,"defaultMaxListeners",{enumerable:!0,get:function(){return ie},set:function(ut){if(typeof ut!="number"||ut<0||se(ut))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+ut+".");ie=ut}}),Me.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Me.prototype.setMaxListeners=function(dt){if(typeof dt!="number"||dt<0||se(dt))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+dt+".");return this._maxListeners=dt,this};function Lt(ut){return ut._maxListeners===void 0?Me.defaultMaxListeners:ut._maxListeners}Me.prototype.getMaxListeners=function(){return Lt(this)},Me.prototype.emit=function(dt){for(var pt=[],Ft=1;Ft<arguments.length;Ft++)pt.push(arguments[Ft]);var Tt=dt==="error",_t=this._events;if(_t!==void 0)Tt=Tt&&_t.error===void 0;else if(!Tt)return!1;if(Tt){var re;if(pt.length>0&&(re=pt[0]),re instanceof Error)throw re;var he=new Error("Unhandled error."+(re?" ("+re.message+")":""));throw he.context=re,he}var Ae=_t[dt];if(Ae===void 0)return!1;if(typeof Ae=="function")Bt(Ae,this,pt);else for(var Fe=Ae.length,ee=qt(Ae,Fe),Ft=0;Ft<Fe;++Ft)Bt(ee[Ft],this,pt);return!0};function kt(ut,dt,pt,Ft){var Tt,_t,re;if(ae(pt),_t=ut._events,_t===void 0?(_t=ut._events=Object.create(null),ut._eventsCount=0):(_t.newListener!==void 0&&(ut.emit("newListener",dt,pt.listener?pt.listener:pt),_t=ut._events),re=_t[dt]),re===void 0)re=_t[dt]=pt,++ut._eventsCount;else if(typeof re=="function"?re=_t[dt]=Ft?[pt,re]:[re,pt]:Ft?re.unshift(pt):re.push(pt),Tt=Lt(ut),Tt>0&&re.length>Tt&&!re.warned){re.warned=!0;var he=new Error("Possible EventEmitter memory leak detected. "+re.length+" "+String(dt)+" listeners added. Use emitter.setMaxListeners() to increase limit");he.name="MaxListenersExceededWarning",he.emitter=ut,he.type=dt,he.count=re.length,ge(he)}return ut}Me.prototype.addListener=function(dt,pt){return kt(this,dt,pt,!1)},Me.prototype.on=Me.prototype.addListener,Me.prototype.prependListener=function(dt,pt){return kt(this,dt,pt,!0)};function Jt(){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 St(ut,dt,pt){var Ft={fired:!1,wrapFn:void 0,target:ut,type:dt,listener:pt},Tt=Jt.bind(Ft);return Tt.listener=pt,Ft.wrapFn=Tt,Tt}Me.prototype.once=function(dt,pt){return ae(pt),this.on(dt,St(this,dt,pt)),this},Me.prototype.prependOnceListener=function(dt,pt){return ae(pt),this.prependListener(dt,St(this,dt,pt)),this},Me.prototype.removeListener=function(dt,pt){var Ft,Tt,_t,re,he;if(ae(pt),Tt=this._events,Tt===void 0)return this;if(Ft=Tt[dt],Ft===void 0)return this;if(Ft===pt||Ft.listener===pt)--this._eventsCount===0?this._events=Object.create(null):(delete Tt[dt],Tt.removeListener&&this.emit("removeListener",dt,Ft.listener||pt));else if(typeof Ft!="function"){for(_t=-1,re=Ft.length-1;re>=0;re--)if(Ft[re]===pt||Ft[re].listener===pt){he=Ft[re].listener,_t=re;break}if(_t<0)return this;_t===0?Ft.shift():wt(Ft,_t),Ft.length===1&&(Tt[dt]=Ft[0]),Tt.removeListener!==void 0&&this.emit("removeListener",dt,he||pt)}return this},Me.prototype.off=Me.prototype.removeListener,Me.prototype.removeAllListeners=function(dt){var pt,Ft,Tt;if(Ft=this._events,Ft===void 0)return this;if(Ft.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Ft[dt]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Ft[dt]),this;if(arguments.length===0){var _t=Object.keys(Ft),re;for(Tt=0;Tt<_t.length;++Tt)re=_t[Tt],re!=="removeListener"&&this.removeAllListeners(re);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(pt=Ft[dt],typeof pt=="function")this.removeListener(dt,pt);else if(pt!==void 0)for(Tt=pt.length-1;Tt>=0;Tt--)this.removeListener(dt,pt[Tt]);return this};function Wt(ut,dt,pt){var Ft=ut._events;if(Ft===void 0)return[];var Tt=Ft[dt];return Tt===void 0?[]:typeof Tt=="function"?pt?[Tt.listener||Tt]:[Tt]:pt?et(Tt):qt(Tt,Tt.length)}Me.prototype.listeners=function(dt){return Wt(this,dt,!0)},Me.prototype.rawListeners=function(dt){return Wt(this,dt,!1)},Me.listenerCount=function(ut,dt){return typeof ut.listenerCount=="function"?ut.listenerCount(dt):Gt.call(ut,dt)},Me.prototype.listenerCount=Gt;function Gt(ut){var dt=this._events;if(dt!==void 0){var pt=dt[ut];if(typeof pt=="function")return 1;if(pt!==void 0)return pt.length}return 0}Me.prototype.eventNames=function(){return this._eventsCount>0?bt(this._events):[]};function qt(ut,dt){for(var pt=new Array(dt),Ft=0;Ft<dt;++Ft)pt[Ft]=ut[Ft];return pt}function wt(ut,dt){for(;dt+1<ut.length;dt++)ut[dt]=ut[dt+1];ut.pop()}function et(ut){for(var dt=new Array(ut.length),pt=0;pt<dt.length;++pt)dt[pt]=ut[pt].listener||ut[pt];return dt}function tt(ut,dt){return new Promise(function(pt,Ft){function Tt(re){ut.removeListener(dt,_t),Ft(re)}function _t(){typeof ut.removeListener=="function"&&ut.removeListener("error",Tt),pt([].slice.call(arguments))}rt(ut,dt,_t,{once:!0}),dt!=="error"&<(ut,Tt,{once:!0})})}function lt(ut,dt,pt){typeof ut.on=="function"&&rt(ut,"error",dt,pt)}function rt(ut,dt,pt,Ft){if(typeof ut.on=="function")Ft.once?ut.once(dt,pt):ut.on(dt,pt);else if(typeof ut.addEventListener=="function")ut.addEventListener(dt,function Tt(_t){Ft.once&&ut.removeEventListener(dt,Tt),pt(_t)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof ut)}},53291:function(ui){"use strict";var Cn=Array.isArray,Bt=Object.keys,bt=Object.prototype.hasOwnProperty;ui.exports=function ge(se,Me){if(se===Me)return!0;if(se&&Me&&typeof se=="object"&&typeof Me=="object"){var ie=Cn(se),ae=Cn(Me),Lt,kt,Jt;if(ie&&ae){if(kt=se.length,kt!=Me.length)return!1;for(Lt=kt;Lt--!==0;)if(!ge(se[Lt],Me[Lt]))return!1;return!0}if(ie!=ae)return!1;var St=se instanceof Date,Wt=Me instanceof Date;if(St!=Wt)return!1;if(St&&Wt)return se.getTime()==Me.getTime();var Gt=se instanceof RegExp,qt=Me instanceof RegExp;if(Gt!=qt)return!1;if(Gt&&qt)return se.toString()==Me.toString();var wt=Bt(se);if(kt=wt.length,kt!==Bt(Me).length)return!1;for(Lt=kt;Lt--!==0;)if(!bt.call(Me,wt[Lt]))return!1;for(Lt=kt;Lt--!==0;)if(Jt=wt[Lt],!ge(se[Jt],Me[Jt]))return!1;return!0}return se!==se&&Me!==Me}},12378:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{$u:function(){return Jt},BD:function(){return ue},E9:function(){return kt},FF:function(){return Mo},FJ:function(){return dt},Hn:function(){return ut},KX:function(){return Ft},NB:function(){return te},S0:function(){return an},UL:function(){return St},Vk:function(){return rt},Vm:function(){return yt},YI:function(){return Li},ZA:function(){return se},Zt:function(){return Wt},al:function(){return zt},bn:function(){return Mt},bx:function(){return Pn},g2:function(){return Oi},h1:function(){return Ae},hD:function(){return dr},l4:function(){return ae},rU:function(){return Ct},s_:function(){return de},uz:function(){return Ce},z6:function(){return Gt}}),ui=Bt.hmd(ui),function(){var Vt;function xs(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function Ss(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:xs(a)}}function Ms(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var ma=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},Ea;if(typeof Object.setPrototypeOf=="function")Ea=Object.setPrototypeOf;else{var oa;t:{var ao={a:!0},br={};try{br.__proto__=ao,oa=br.a;break t}catch(a){}oa=!1}Ea=oa?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var Un=Ea;function On(a,y){if(a.prototype=ma(y.prototype),a.prototype.constructor=a,Un)Un(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 Re=typeof Bt.g!="undefined"&&Bt.g!=null?Bt.g:self,hi=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},en=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function gn(a,y){if(y){var x=Re;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&&en(x,a,{writable:!0,value:y})}}gn("Object.assign",function(a){return a||hi}),gn("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 Ve=typeof globalThis=="object"&&globalThis||typeof Bt.g=="object"&&Bt.g.global===Bt.g&&Bt.g||typeof self=="object"&&self.self===self&&self||{};Ve.requestAnimationFrame===void 0&&(Ve.setImmediate===void 0?Ve.requestAnimationFrame=function(a){Ve.setTimeout(a,0)}:Ve.requestAnimationFrame=Ve.setImmediate);function ni(){}function Bi(a,y){var x=-1;return function(){var b=this,E=arguments;x!==-1&&Ve.clearTimeout(x),x=_i(function(){x=-1,a.apply(b,E)},y)}}function _i(a,y){return Ve.setTimeout(a,y)}function tr(a){return Ve.document.createElement(a)}function sn(a){throw Error(a)}function fi(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),sn(a)}function Zi(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),sn(x+" is not in the range "+y+": "+a)}function Tr(a){Ve.console&&Ve.console.log(a)}function ii(a){return typeof a=="object"&&a!==null}function xi(a){return Array.isArray(a)||Ve.NodeList&&a instanceof Ve.NodeList||Ve.HTMLCollection&&a instanceof Ve.HTMLCollection}function fr(a){return Array.prototype.slice.call(a)}function mi(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):sn("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function wi(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):sn("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function yi(){var a=cs.pop();return a===void 0?[]:a}function nr(a){a.length=0,cs.push(a)}function sr(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(ii(a)&&a.constructor)return sr(a.constructor);return typeof a}function Rr(a){var y=a;return ii(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 Zr(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 Xr(a,y,x){Object.defineProperty(Zt.prototype,a,{get:y,set:x})}function ei(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 z="",nt=0;nt<a.length;nt++)x=(x+1)%256,b=(b+y[x])%256,E=y[x],y[x]=y[b],y[b]=E,z+=String.fromCharCode(a.charCodeAt(nt)^y[(y[x]+y[b])%256]);return z.indexOf("GoJS 2.1 evaluation")>-1||z.indexOf("\xA9 1998-2021 Northwoods Software")>-1||z.indexOf("Not for distribution or production use")>-1||z.indexOf("gojs.net")>-1?"":z}var Ho=Ve.navigator!==void 0&&0<Ve.navigator.userAgent.indexOf("Trident/7"),Zo=Ve.navigator!==void 0&&Ve.navigator.platform!==void 0&&Ve.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,cs=[];Object.freeze([]),ni.className="Util",ni.Dx="32ab5ff3b26f42dc0ed90f21472913b5",ni.adym="gojs.net",ni.vfo="28e645fdb266",ni.className="Util";function ri(a,y,x){ns(this),this.j=a,this.xa=y,this.o=x}ri.prototype.toString=function(){return"EnumValue."+this.xa};function or(a,y){return y==null||y===""?null:a[y]}Re.Object.defineProperties(ri.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),ri.className="EnumValue";function Er(){this.ew=[]}Er.prototype.toString=function(){return this.ew.join("")},Er.prototype.add=function(a){a!==""&&this.ew.push(a)},Er.className="StringBuilder";function no(){}no.className="PropertyCollection";var Lr={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){Ve.console&&Ve.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 z=Object.getOwnPropertyDescriptor(b.prototype,y.Zl[E.Tj]);z.get!==void 0&&z.set===void 0&&Object.defineProperty(b.prototype,y.Zl[E.Tj],{set:function(nt,ot){return function(){throw Error("Property "+nt.Zl[ot.Tj]+" of "+nt.x+" is read-only.")}}(y,E)})}}}y={Zl:y.Zl,x:y.x}}}};function Wr(){}Wr.prototype.reset=function(){},Wr.prototype.next=function(){return!1},Wr.prototype.Ad=function(){return!1},Wr.prototype.first=function(){return null},Wr.prototype.any=function(){return!1},Wr.prototype.all=function(){return!0},Wr.prototype.each=function(){return this},Wr.prototype.map=function(){return this},Wr.prototype.filter=function(){return this},Wr.prototype.de=function(){},Wr.prototype.toString=function(){return"EmptyIterator"},Re.Object.defineProperties(Wr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),Wr.prototype.first=Wr.prototype.first,Wr.prototype.hasNext=Wr.prototype.Ad,Wr.prototype.next=Wr.prototype.next,Wr.prototype.reset=Wr.prototype.reset;var wo=null;Wr.className="EmptyIterator",wo=new Wr;function fo(a){this.key=-1,this.value=a}fo.prototype.reset=function(){this.key=-1},fo.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},fo.prototype.Ad=function(){return this.next()},fo.prototype.first=function(){return this.key=0,this.value},fo.prototype.any=function(a){return this.key=-1,a(this.value)},fo.prototype.all=function(a){return this.key=-1,a(this.value)},fo.prototype.each=function(a){return this.key=-1,a(this.value),this},fo.prototype.map=function(a){return new fo(a(this.value))},fo.prototype.filter=function(a){return a(this.value)?new fo(this.value):wo},fo.prototype.de=function(){this.value=null},fo.prototype.toString=function(){return"SingletonIterator("+this.value+")"},Re.Object.defineProperties(fo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),fo.prototype.first=fo.prototype.first,fo.prototype.hasNext=fo.prototype.Ad,fo.prototype.next=fo.prototype.next,fo.prototype.reset=fo.prototype.reset,fo.className="SingletonIterator";function xo(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}xo.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},xo.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},xo.prototype.Ad=function(){return this.next()},xo.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},xo.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 z=y[E];if((b===null||b(z))&&a(z))return!0}return!1},xo.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 z=y[E];if((b===null||b(z))&&!a(z))return!1}return!0},xo.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 z=y[E];(b===null||b(z))&&a(z)}return this},xo.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,z=0;z<b;z++){var nt=y[z];(E===null||E(nt))&&x.push(a(nt))}return a=new Ci,a.s=x,a.xb(),a.iterator},xo.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,z=0;z<b;z++){var nt=y[z];(E===null||E(nt))&&a(nt)&&x.push(nt)}return a=new Ci,a.s=x,a.xb(),a.iterator},xo.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},xo.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},Re.Object.defineProperties(xo.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}}}),xo.prototype.first=xo.prototype.first,xo.prototype.hasNext=xo.prototype.Ad,xo.prototype.next=xo.prototype.next,xo.prototype.reset=xo.prototype.reset,xo.className="ListIterator";function _r(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}_r.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},_r.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)},_r.prototype.Ad=function(){return this.next()},_r.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},_r.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},_r.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},_r.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},_r.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 Ci,a.s=x,a.xb(),a.iterator},_r.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 Ci,a.s=x,a.xb(),a.iterator},_r.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},_r.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},Re.Object.defineProperties(_r.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),_r.prototype.first=_r.prototype.first,_r.prototype.hasNext=_r.prototype.Ad,_r.prototype.next=_r.prototype.next,_r.prototype.reset=_r.prototype.reset,_r.className="ListIteratorBackwards";function Ci(a){ns(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&sn("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Vt=Ci.prototype,Vt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Vt.freeze=function(){return this._isFrozen=!0,this},Vt.ka=function(){return this._isFrozen=!1,this},Vt.toString=function(){return"List()#"+fs(this)},Vt.add=function(a){return a===null?this:(this._isFrozen&&fi(this,a),this.s.push(a),this.xb(),this)},Vt.push=function(a){this.add(a)},Vt.addAll=function(a){if(a===null)return this;this._isFrozen&&fi(this);var y=this.s;if(xi(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},Vt.clear=function(){this._isFrozen&&fi(this),this.s.length=0,this.xb()},Vt.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},Vt.has=function(a){return this.contains(a)},Vt.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},Vt.M=function(a){var y=this.s;return(0>a||a>=y.length)&&Zi(a,"0 <= i < length",Ci,"elt:i"),y[a]},Vt.get=function(a){return this.M(a)},Vt.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Zi(a,"0 <= i < length",Ci,"setElt:i"),this._isFrozen&&fi(this,a),x[a]=y},Vt.set=function(a,y){this.cd(a,y)},Vt.first=function(){var a=this.s;return a.length===0?null:a[0]},Vt.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},Vt.pop=function(){this._isFrozen&&fi(this);var a=this.s;return 0<a.length?a.pop():null},Ci.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},Ci.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},Ci.prototype.each=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)a(y[b]);return this},Ci.prototype.map=function(a){for(var y=new Ci,x=[],b=this.s,E=b.length,z=0;z<E;z++)x.push(a(b[z]));return y.s=x,y.xb(),y},Ci.prototype.filter=function(a){for(var y=new Ci,x=[],b=this.s,E=b.length,z=0;z<E;z++){var nt=b[z];a(nt)&&x.push(nt)}return y.s=x,y.xb(),y},Vt=Ci.prototype,Vt.Gb=function(a,y){0>a&&Zi(a,">= 0",Ci,"insertAt:i"),this._isFrozen&&fi(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Vt.remove=function(a){if(a===null)return!1;this._isFrozen&&fi(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)},Vt.delete=function(a){return this.remove(a)},Vt.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Zi(a,"0 <= i < length",Ci,"removeAt:i"),this._isFrozen&&fi(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Vt.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&&fi(this);for(var E=a,z=y+1;z<b;)x[E++]=x[z++];return x.length=b-(y-a+1),this.xb(),this},Ci.prototype.copy=function(){var a=new Ci,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},Vt=Ci.prototype,Vt.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),b=0;b<y;b++)x[b]=a[b];return x},Vt.Iv=function(){for(var a=new bi,y=this.s,x=this.count,b=0;b<x;b++)a.add(y[b]);return a},Vt.sort=function(a){return this._isFrozen&&fi(this),this.s.sort(a),this.xb(),this},Vt.zi=function(a,y,x){var b=this.s,E=b.length;y===void 0&&(y=0),x===void 0&&(x=E),this._isFrozen&&fi(this);var z=x-y;if(1>=z)return this;if((0>y||y>=E-1)&&Zi(y,"0 <= from < length",Ci,"sortRange:from"),z===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},Vt.reverse=function(){return this._isFrozen&&fi(this),this.s.reverse(),this.xb(),this},Re.Object.defineProperties(Ci.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 wo;var a=this.Sa;return a!==null?(a.reset(),a):new xo(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return wo;var a=this.Hg;return a!==null?(a.reset(),a):new _r(this)}}}),Ci.prototype.reverse=Ci.prototype.reverse,Ci.prototype.sortRange=Ci.prototype.zi,Ci.prototype.sort=Ci.prototype.sort,Ci.prototype.toSet=Ci.prototype.Iv,Ci.prototype.toArray=Ci.prototype.Fa,Ci.prototype.removeRange=Ci.prototype.removeRange,Ci.prototype.removeAt=Ci.prototype.mb,Ci.prototype.delete=Ci.prototype.delete,Ci.prototype.remove=Ci.prototype.remove,Ci.prototype.insertAt=Ci.prototype.Gb,Ci.prototype.pop=Ci.prototype.pop,Ci.prototype.last=Ci.prototype.jc,Ci.prototype.first=Ci.prototype.first,Ci.prototype.set=Ci.prototype.set,Ci.prototype.setElt=Ci.prototype.cd,Ci.prototype.get=Ci.prototype.get,Ci.prototype.elt=Ci.prototype.M,Ci.prototype.indexOf=Ci.prototype.indexOf,Ci.prototype.has=Ci.prototype.has,Ci.prototype.contains=Ci.prototype.contains,Ci.prototype.clear=Ci.prototype.clear,Ci.prototype.addAll=Ci.prototype.addAll,Ci.prototype.push=Ci.prototype.push,Ci.prototype.add=Ci.prototype.add,Ci.prototype.thaw=Ci.prototype.ka,Ci.prototype.freeze=Ci.prototype.freeze,Ci.className="List";function Qo(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Qo.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},Qo.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)},Qo.prototype.Ad=function(){return this.next()},Qo.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},Qo.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},Qo.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},Qo.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},Qo.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new Ci;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Qo.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new Ci;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},Qo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Qo.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},Re.Object.defineProperties(Qo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),Qo.prototype.first=Qo.prototype.first,Qo.prototype.hasNext=Qo.prototype.Ad,Qo.prototype.next=Qo.prototype.next,Qo.prototype.reset=Qo.prototype.reset,Qo.className="SetIterator";function bi(a){ns(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&sn("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Vt=bi.prototype,Vt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Vt.freeze=function(){return this._isFrozen=!0,this},Vt.ka=function(){return this._isFrozen=!1,this},Vt.toString=function(){return"Set()#"+fs(this)},Vt.add=function(a){if(a===null)return this;this._isFrozen&&fi(this,a);var y=a;return ii(a)&&(y=qs(a)),this.Tb[y]===void 0&&(this.Sb++,a=new us(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},Vt.addAll=function(a){if(a===null)return this;if(this._isFrozen&&fi(this),xi(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},Vt.contains=function(a){if(a===null)return!1;var y=a;return ii(a)&&(y=fs(a),y===void 0)?!1:this.Tb[y]!==void 0},Vt.has=function(a){return this.contains(a)},Vt.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},Vt.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},Vt.first=function(){var a=this.ea;return a===null?null:a.value},bi.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},bi.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},bi.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},bi.prototype.map=function(a){for(var y=new bi,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},bi.prototype.filter=function(a){for(var y=new bi,x=this.ea;x!==null;){var b=x.value;a(b)&&y.add(b),x=x.va}return y},Vt=bi.prototype,Vt.remove=function(a){if(a===null)return!1;this._isFrozen&&fi(this,a);var y=a;if(ii(a)&&(y=fs(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},Vt.delete=function(a){return this.remove(a)},Vt.hp=function(a){if(a===null)return this;if(this._isFrozen&&fi(this),xi(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},Vt.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&fi(this);var y=new bi;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},Vt.clear=function(){this._isFrozen&&fi(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},bi.prototype.copy=function(){var a=new bi,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},bi.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},bi.prototype.Hv=function(){var a=new Ci,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function ns(a){a.__gohashid=Hs++}function qs(a){var y=a.__gohashid;return y===void 0&&(y=Hs++,a.__gohashid=y),y}function fs(a){return a.__gohashid}Re.Object.defineProperties(bi.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return wo;var a=this.Sa;return a!==null?(a.reset(),a):new Qo(this)}}}),bi.prototype.toList=bi.prototype.Hv,bi.prototype.toArray=bi.prototype.Fa,bi.prototype.clear=bi.prototype.clear,bi.prototype.retainAll=bi.prototype.pA,bi.prototype.removeAll=bi.prototype.hp,bi.prototype.delete=bi.prototype.delete,bi.prototype.remove=bi.prototype.remove,bi.prototype.first=bi.prototype.first,bi.prototype.containsAny=bi.prototype.Ty,bi.prototype.containsAll=bi.prototype.Sy,bi.prototype.has=bi.prototype.has,bi.prototype.contains=bi.prototype.contains,bi.prototype.addAll=bi.prototype.addAll,bi.prototype.add=bi.prototype.add,bi.prototype.thaw=bi.prototype.ka,bi.prototype.freeze=bi.prototype.freeze;var Hs=1;bi.className="Set",bi.uniqueHash=ns,bi.hashIdUnique=qs,bi.hashId=fs;function Gs(a){this.ma=a,this.qa=a.Ja,this.sa=null}Gs.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Gs.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)},Gs.prototype.Ad=function(){return this.next()},Gs.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},Gs.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},Gs.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},Gs.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},Gs.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new Ci;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Gs.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new Ci;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},Gs.prototype.de=function(){this.value=this.key=null,this.qa=-1},Gs.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},Re.Object.defineProperties(Gs.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Gs.prototype.first=Gs.prototype.first,Gs.prototype.hasNext=Gs.prototype.Ad,Gs.prototype.next=Gs.prototype.next,Gs.prototype.reset=Gs.prototype.reset,Gs.className="MapKeySetIterator";function si(a){bi.call(this),ns(this),this._isFrozen=!0,this.ma=a}On(si,bi),Vt=si.prototype,Vt.freeze=function(){return this},Vt.ka=function(){return this},Vt.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Vt.add=function(){sn("This Set is read-only: "+this.toString())},Vt.contains=function(a){return this.ma.contains(a)},Vt.has=function(a){return this.contains(a)},Vt.remove=function(){sn("This Set is read-only: "+this.toString())},Vt.delete=function(a){return this.remove(a)},Vt.clear=function(){sn("This Set is read-only: "+this.toString())},Vt.first=function(){var a=this.ma.ea;return a!==null?a.key:null},si.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},si.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},si.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},si.prototype.map=function(a){for(var y=new bi,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},si.prototype.filter=function(a){for(var y=new bi,x=this.ma.ea;x!==null;){var b=x.key;a(b)&&y.add(b),x=x.va}return y},si.prototype.copy=function(){return new si(this.ma)},si.prototype.Iv=function(){var a=new bi,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},si.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},si.prototype.Hv=function(){var a=new Ci,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Re.Object.defineProperties(si.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?wo:new Gs(this.ma)}}}),si.prototype.toList=si.prototype.Hv,si.prototype.toArray=si.prototype.Fa,si.prototype.toSet=si.prototype.Iv,si.prototype.first=si.prototype.first,si.prototype.clear=si.prototype.clear,si.prototype.delete=si.prototype.delete,si.prototype.remove=si.prototype.remove,si.prototype.has=si.prototype.has,si.prototype.contains=si.prototype.contains,si.prototype.add=si.prototype.add,si.prototype.thaw=si.prototype.ka,si.prototype.freeze=si.prototype.freeze,si.className="MapKeySet";function To(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}To.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},To.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)},To.prototype.Ad=function(){return this.next()},To.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},To.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},To.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},To.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},To.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Ci;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},To.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Ci;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},To.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},To.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},Re.Object.defineProperties(To.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),To.prototype.first=To.prototype.first,To.prototype.hasNext=To.prototype.Ad,To.prototype.next=To.prototype.next,To.prototype.reset=To.prototype.reset,To.className="MapValueSetIterator";function us(a,y){this.key=a,this.value=y,this.ll=this.va=null}us.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},us.className="KeyValuePair";function rs(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}rs.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},rs.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)},rs.prototype.Ad=function(){return this.next()},rs.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},rs.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},rs.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},rs.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},rs.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Ci;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},rs.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Ci;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},rs.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},rs.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},Re.Object.defineProperties(rs.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),rs.prototype.first=rs.prototype.first,rs.prototype.hasNext=rs.prototype.Ad,rs.prototype.next=rs.prototype.next,rs.prototype.reset=rs.prototype.reset,rs.className="MapIterator";function Cr(a){ns(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"&&sn("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Vt=Cr.prototype,Vt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Vt.freeze=function(){return this._isFrozen=!0,this},Vt.ka=function(){return this._isFrozen=!1,this},Vt.toString=function(){return"Map()#"+fs(this)},Vt.add=function(a,y){this._isFrozen&&fi(this,a);var x=a;ii(a)&&(x=qs(a));var b=this.Tb[x];return b===void 0?(this.Sb++,a=new us(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},Vt.set=function(a,y){return this.add(a,y)},Vt.addAll=function(a){if(a===null)return this;if(xi(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];this.add(b.key,b.value)}else if(a instanceof Cr)for(a=a.iterator;a.next();)this.add(a.key,a.value);else for(a=a.iterator;a.next();)y=a.value,this.add(y.key,y.value);return this},Vt.first=function(){return this.ea},Cr.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},Cr.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},Cr.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},Cr.prototype.map=function(a){for(var y=new Cr,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},Cr.prototype.filter=function(a){for(var y=new Cr,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},Vt=Cr.prototype,Vt.contains=function(a){var y=a;return ii(a)&&(y=fs(a),y===void 0)?!1:this.Tb[y]!==void 0},Vt.has=function(a){return this.contains(a)},Vt.I=function(a){var y=a;return ii(a)&&(y=fs(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},Vt.get=function(a){return this.I(a)},Vt.remove=function(a){if(a===null)return!1;this._isFrozen&&fi(this,a);var y=a;if(ii(a)&&(y=fs(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},Vt.delete=function(a){return this.remove(a)},Vt.clear=function(){this._isFrozen&&fi(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.jf!==null&&this.jf.reset(),this.kf=this.ea=null,this.xb()},Cr.prototype.copy=function(){var a=new Cr,y=this.Tb,x;for(x in y){var b=y[x];a.add(b.key,b.value)}return a},Cr.prototype.Fa=function(){var a=this.Tb,y=Array(this.Sb),x=0,b;for(b in a){var E=a[b];y[x]=new us(E.key,E.value),x++}return y},Cr.prototype.Lf=function(){return new si(this)},Re.Object.defineProperties(Cr.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return wo;var a=this.Sa;return a!==null?(a.reset(),a):new rs(this)}},iteratorKeys:{get:function(){return 0>=this.count?wo:new Gs(this)}},iteratorValues:{get:function(){if(0>=this.count)return wo;var a=this.jf;return a!==null?(a.reset(),a):new To(this)}}}),Cr.prototype.toKeySet=Cr.prototype.Lf,Cr.prototype.toArray=Cr.prototype.Fa,Cr.prototype.clear=Cr.prototype.clear,Cr.prototype.delete=Cr.prototype.delete,Cr.prototype.remove=Cr.prototype.remove,Cr.prototype.get=Cr.prototype.get,Cr.prototype.getValue=Cr.prototype.I,Cr.prototype.has=Cr.prototype.has,Cr.prototype.contains=Cr.prototype.contains,Cr.prototype.first=Cr.prototype.first,Cr.prototype.addAll=Cr.prototype.addAll,Cr.prototype.set=Cr.prototype.set,Cr.prototype.add=Cr.prototype.add,Cr.prototype.thaw=Cr.prototype.ka,Cr.prototype.freeze=Cr.prototype.freeze,Cr.className="Map";function ke(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):sn("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var ts,ta,qa,ol,ml;ke.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},ke.prototype.h=function(a,y){return this.x=a,this.y=y,this},ke.prototype.sg=function(a,y){return this.x=a,this.y=y,this},ke.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},ke.prototype.copy=function(){var a=new ke;return a.x=this.x,a.y=this.y,a},Vt=ke.prototype,Vt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Vt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Vt.freeze=function(){return this._isFrozen=!0,this},Vt.ka=function(){return Object.isFrozen(this)&&sn("cannot thaw constant: "+this),this._isFrozen=!1,this};function yr(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 ke(x,E)}return new ke}function $r(a){return a.x.toString()+" "+a.y.toString()}Vt.toString=function(){return"Point("+this.x+","+this.y+")"},Vt.D=function(a){return a instanceof ke?this.x===a.x&&this.y===a.y:!1},Vt.hi=function(a,y){return this.x===a&&this.y===y},Vt.Xa=function(a){return Ln.B(this.x,a.x)&&Ln.B(this.y,a.y)},Vt.add=function(a){return this.x+=a.x,this.y+=a.y,this},Vt.re=function(a){return this.x-=a.x,this.y-=a.y,this},Vt.offset=function(a,y){return this.x+=a,this.y+=y,this},ke.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},Vt=ke.prototype,Vt.scale=function(a,y){return this.x*=a,this.y*=y,this},Vt.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Vt.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Vt.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},Vt.ab=function(a){return Jo(a.x-this.x,a.y-this.y)},Vt.direction=function(a,y){return Jo(a-this.x,y-this.y)};function Jo(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}Vt.Ry=function(a,y){return Ln.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Vt.fA=function(a,y,x,b){return Ln.qh(a,y,x,b,this.x,this.y,this),this},Vt.gA=function(a,y){return Ln.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Vt.uA=function(a,y,x,b){return Ln.No(this.x,this.y,a,y,x,b,this),this},Vt.vA=function(a,y){return Ln.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Vt.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},Vt.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},Vt.transform=function(a){return a.Ga(this),this};function Lo(a,y){return y.Cd(a),a}function os(a,y,x,b,E,z){var nt=E-x,ot=z-b,at=nt*nt+ot*ot;x-=a,b-=y;var ht=-x*nt-b*ot;return 0>=ht||ht>=at?(nt=E-a,ot=z-y,Math.min(x*x+b*b,nt*nt+ot*ot)):(a=nt*b-ot*x,a*a/at)}function Fa(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function lo(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)}Vt.w=function(){return isFinite(this.x)&&isFinite(this.y)},ke.alloc=function(){var a=vo.pop();return a===void 0?new ke:a},ke.allocAt=function(a,y){var x=vo.pop();return x===void 0?new ke(a,y):(x.x=a,x.y=y,x)},ke.free=function(a){vo.push(a)},ke.prototype.isReal=ke.prototype.w,ke.prototype.setSpot=ke.prototype.yi,ke.prototype.setRectSpot=ke.prototype.xi,ke.prototype.snapToGridPoint=ke.prototype.vA,ke.prototype.snapToGrid=ke.prototype.uA,ke.prototype.projectOntoLineSegmentPoint=ke.prototype.gA,ke.prototype.projectOntoLineSegment=ke.prototype.fA,ke.intersectingLineSegments=function(a,y,x,b,E,z,nt,ot){return Ln.Rl(a,y,x,b,E,z,nt,ot)},ke.prototype.compareWithLineSegmentPoint=ke.prototype.Ry,ke.compareWithLineSegment=function(a,y,x,b,E,z){return Ln.Fl(a,y,x,b,E,z)},ke.prototype.direction=ke.prototype.direction,ke.prototype.directionPoint=ke.prototype.ab,ke.prototype.normalize=ke.prototype.normalize,ke.prototype.distanceSquared=ke.prototype.zd,ke.prototype.distanceSquaredPoint=ke.prototype.Bf,ke.prototype.scale=ke.prototype.scale,ke.prototype.rotate=ke.prototype.rotate,ke.prototype.offset=ke.prototype.offset,ke.prototype.subtract=ke.prototype.re,ke.prototype.add=ke.prototype.add,ke.prototype.equalsApprox=ke.prototype.Xa,ke.prototype.equalTo=ke.prototype.hi,ke.prototype.equals=ke.prototype.D,ke.prototype.set=ke.prototype.set,ke.prototype.setTo=ke.prototype.sg;var vo=[];ke.className="Point",ke.parse=yr,ke.stringify=$r,ke.distanceLineSegmentSquared=os,ke.distanceSquared=Fa,ke.direction=lo,ke.Origin=ts=new ke(0,0).ja(),ke.InfiniteTopLeft=ta=new ke(-1/0,-1/0).ja(),ke.InfiniteBottomRight=qa=new ke(1/0,1/0).ja(),ke.SixPoint=ol=new ke(6,6).ja(),ke.NoPoint=ml=new ke(NaN,NaN).ja(),ke.parse=yr,ke.stringify=$r,ke.distanceLineSegmentSquared=os,ke.distanceSquared=Fa,ke.direction=lo;function Ki(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):sn("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var Eo,Es,la,ca,zo,Vs,Ka;Ki.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},Ki.prototype.h=function(a,y){return this.width=a,this.height=y,this},Ki.prototype.sg=function(a,y){return this.width=a,this.height=y,this},Ki.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},Ki.prototype.copy=function(){var a=new Ki;return a.width=this.width,a.height=this.height,a},Vt=Ki.prototype,Vt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Vt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Vt.freeze=function(){return this._isFrozen=!0,this},Vt.ka=function(){return Object.isFrozen(this)&&sn("cannot thaw constant: "+this),this._isFrozen=!1,this};function Wl(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 Ki(x,E)}return new Ki}function La(a){return a.width.toString()+" "+a.height.toString()}Vt.toString=function(){return"Size("+this.width+","+this.height+")"},Vt.D=function(a){return a instanceof Ki?this.width===a.width&&this.height===a.height:!1},Vt.hi=function(a,y){return this.width===a&&this.height===y},Vt.Xa=function(a){return Ln.B(this.width,a.width)&&Ln.B(this.height,a.height)},Vt.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},Vt.w=function(){return isFinite(this.width)&&isFinite(this.height)},Ki.alloc=function(){var a=vs.pop();return a===void 0?new Ki:a},Ki.free=function(a){vs.push(a)},Ki.prototype.isReal=Ki.prototype.w,Ki.prototype.inflate=Ki.prototype.Bc,Ki.prototype.equalsApprox=Ki.prototype.Xa,Ki.prototype.equalTo=Ki.prototype.hi,Ki.prototype.equals=Ki.prototype.D,Ki.prototype.set=Ki.prototype.set,Ki.prototype.setTo=Ki.prototype.sg;var vs=[];Ki.className="Size",Ki.parse=Wl,Ki.stringify=La,Ki.ZeroSize=Eo=new Ki(0,0).ja(),Ki.OneSize=Es=new Ki(1,1).ja(),Ki.SixSize=la=new Ki(6,6).ja(),Ki.EightSize=ca=new Ki(8,8).ja(),Ki.TenSize=zo=new Ki(10,10).ja(),Ki.InfiniteSize=Vs=new Ki(1/0,1/0).ja(),Ki.NoSize=Ka=new Ki(NaN,NaN).ja(),Ki.parse=Wl,Ki.stringify=La;function ai(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 ke?(x=a.x,a=a.y,y instanceof ke?(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 Ki?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):sn("Incorrect second argument supplied to Rect constructor "+y)):sn("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Vt=ai.prototype,Vt.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Vt.h=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this};function Ta(a,y,x){a.width=y,a.height=x}Vt.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},Vt.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Vt.dd=function(a){return this.x=a.x,this.y=a.y,this},Vt.tA=function(a){return this.width=a.width,this.height=a.height,this},ai.prototype.copy=function(){var a=new ai;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Vt=ai.prototype,Vt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Vt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Vt.freeze=function(){return this._isFrozen=!0,this},Vt.ka=function(){return Object.isFrozen(this)&&sn("cannot thaw constant: "+this),this._isFrozen=!1,this};function bc(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 z=0;a[y]==="";)y++;(b=a[y++])&&(z=parseFloat(b));for(var nt=0;a[y]==="";)y++;return(b=a[y++])&&(nt=parseFloat(b)),new ai(x,E,z,nt)}return new ai}function Vl(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Vt.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Vt.D=function(a){return a instanceof ai?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Vt.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},Vt.Xa=function(a){return Ln.B(this.x,a.x)&&Ln.B(this.y,a.y)&&Ln.B(this.width,a.width)&&Ln.B(this.height,a.height)};function Th(a,y){return Ln.$(a.x,y.x)&&Ln.$(a.y,y.y)&&Ln.$(a.width,y.width)&&Ln.$(a.height,y.height)}Vt.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Vt.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},Vt.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},Vt.offset=function(a,y){return this.x+=a,this.y+=y,this},Vt.Bc=function(a,y){return sl(this,y,a,y,a)},Vt.Co=function(a){return sl(this,a.top,a.right,a.bottom,a.left)},Vt.Fv=function(a){return sl(this,-a.top,-a.right,-a.bottom,-a.left)},Vt.Hz=function(a,y,x,b){return sl(this,a,y,x,b)};function sl(a,y,x,b,E){var z=a.width;return x+E<=-z?(a.x+=z/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}Vt.Ex=function(a){return Wc(this,a.x,a.y,a.width,a.height)},Vt.Uu=function(a,y,x,b){return Wc(this,a,y,x,b)};function Wc(a,y,x,b,E){var z=Math.max(a.x,y),nt=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=z,a.y=nt,a.width=Math.max(0,y-z),a.height=Math.max(0,x-nt),a}Vt.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Vt.Vu=function(a,y,x,b){var E=this.width,z=this.x;return E!==1/0&&x!==1/0&&(E+=z,x+=a,isNaN(x)||isNaN(E)||z>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 Fl(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))}Vt.Ye=function(a){return Is(this,a.x,a.y,0,0)},Vt.ed=function(a){return Is(this,a.x,a.y,a.width,a.height)},Vt.Kv=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),Is(this,a,y,x,b)};function Is(a,y,x,b,E){var z=Math.min(a.x,y),nt=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=z,a.y=nt,a.width=y-z,a.height=x-nt,a}Vt.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 ia(a,y,x,b,E,z,nt,ot){return nt===void 0&&(nt=0),ot===void 0&&(ot=0),a<=E&&E+nt<=a+x&&y<=z&&z+ot<=y+b}function Ph(a,y,x,b,E,z,nt,ot){return a>nt+E||E>x+a?!1:!(y>ot+z||z>b+y)}Vt.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Vt.Mz=function(){return this.width===0&&this.height===0},ai.alloc=function(){var a=ys.pop();return a===void 0?new ai:a},ai.allocAt=function(a,y,x,b){var E=ys.pop();return E===void 0?new ai(a,y,x,b):E.h(a,y,x,b)},ai.free=function(a){ys.push(a)},Re.Object.defineProperties(ai.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 ke(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new Ki(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new ke(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}}}),ai.prototype.isEmpty=ai.prototype.Mz,ai.prototype.isReal=ai.prototype.w,ai.intersectsLineSegment=function(a,y,x,b,E,z,nt,ot){return Ln.Fx(a,y,x,b,E,z,nt,ot)},ai.prototype.setSpot=ai.prototype.yi,ai.prototype.union=ai.prototype.Kv,ai.prototype.unionRect=ai.prototype.ed,ai.prototype.unionPoint=ai.prototype.Ye,ai.prototype.intersects=ai.prototype.Vu,ai.prototype.intersectsRect=ai.prototype.Yc,ai.prototype.intersect=ai.prototype.Uu,ai.prototype.intersectRect=ai.prototype.Ex,ai.prototype.grow=ai.prototype.Hz,ai.prototype.subtractMargin=ai.prototype.Fv,ai.prototype.addMargin=ai.prototype.Co,ai.prototype.inflate=ai.prototype.Bc,ai.prototype.offset=ai.prototype.offset,ai.prototype.contains=ai.prototype.contains,ai.prototype.containsRect=ai.prototype.Re,ai.prototype.containsPoint=ai.prototype.ca,ai.prototype.equalsApprox=ai.prototype.Xa,ai.prototype.equalTo=ai.prototype.hi,ai.prototype.equals=ai.prototype.D,ai.prototype.setSize=ai.prototype.tA,ai.prototype.setPoint=ai.prototype.dd,ai.prototype.set=ai.prototype.set,ai.prototype.setTo=ai.prototype.sg;var is=null,Zs=null,ys=[];ai.className="Rect",ai.parse=bc,ai.stringify=Vl,ai.contains=ia,ai.intersects=Ph,ai.ZeroRect=is=new ai(0,0,0,0).ja(),ai.NoRect=Zs=new ai(NaN,NaN,NaN,NaN).ja(),ai.parse=bc,ai.stringify=Vl,ai.contains=ia,ai.intersects=Ph;function Hr(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):sn("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Hr.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Hr.prototype.sg=function(a,y,x,b){return this.top=a,this.right=y,this.bottom=x,this.left=b,this},Hr.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Hr.prototype.copy=function(){var a=new Hr;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Vt=Hr.prototype,Vt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Vt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Vt.freeze=function(){return this._isFrozen=!0,this},Vt.ka=function(){return Object.isFrozen(this)&&sn("cannot thaw constant: "+this),this._isFrozen=!1,this};function Tl(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 Hr;for(var E=NaN;a[y]==="";)y++;if((b=a[y++])&&(E=parseFloat(b)),isNaN(E))return new Hr(x);for(var z=NaN;a[y]==="";)y++;if((b=a[y++])&&(z=parseFloat(b)),isNaN(z))return new Hr(x,E);for(var nt=NaN;a[y]==="";)y++;return(b=a[y++])&&(nt=parseFloat(b)),isNaN(nt)?new Hr(x,E):new Hr(x,E,z,nt)}return new Hr}function Ol(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Vt.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Vt.D=function(a){return a instanceof Hr?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Vt.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},Vt.Xa=function(a){return Ln.B(this.top,a.top)&&Ln.B(this.right,a.right)&&Ln.B(this.bottom,a.bottom)&&Ln.B(this.left,a.left)},Vt.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Hr.alloc=function(){var a=da.pop();return a===void 0?new Hr:a},Hr.free=function(a){da.push(a)},Hr.prototype.isReal=Hr.prototype.w,Hr.prototype.equalsApprox=Hr.prototype.Xa,Hr.prototype.equalTo=Hr.prototype.hi,Hr.prototype.equals=Hr.prototype.D,Hr.prototype.set=Hr.prototype.set,Hr.prototype.setTo=Hr.prototype.sg;var Ao=null,Ns=null,da=[];Hr.className="Margin",Hr.parse=Tl,Hr.stringify=Ol,Hr.ZeroMargin=Ao=new Hr(0,0,0,0).ja(),Hr.TwoMargin=Ns=new Hr(2,2,2,2).ja(),Hr.parse=Tl,Hr.stringify=Ol;function xr(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 Ma,Oa,Bl,su,au,Yo,va,Cs,lu,Ll,Ml,tl,tu,Pl,Io,dc,al,zu,hh,dh,Ga,ih,Ec,Vc,Zc,Bs,ya,Mu,el,ll,Wa,Aa,nl,Dl,Ac,rh;xr.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},xr.prototype.sg=function(a,y,x,b){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=b,this},xr.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},xr.prototype.copy=function(){var a=new xr;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Vt=xr.prototype,Vt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Vt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Vt.freeze=function(){return this._isFrozen=!0,this},Vt.ka=function(){return Object.isFrozen(this)&&sn("cannot thaw constant: "+this),this._isFrozen=!1,this};function cl(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function Ud(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return Ma;if(a==="TopLeft")return Oa;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Bl;if(a==="TopRight")return su;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return au;if(a==="Center")return Yo;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return va;if(a==="BottomLeft")return Cs;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return lu;if(a==="BottomRight")return Ll;if(a==="TopSide")return Ml;if(a==="LeftSide")return tl;if(a==="RightSide")return tu;if(a==="BottomSide")return Pl;if(a==="TopBottomSides")return Io;if(a==="LeftRightSides")return dc;if(a==="TopLeftSides")return al;if(a==="TopRightSides")return zu;if(a==="BottomLeftSides")return hh;if(a==="BottomRightSides")return dh;if(a==="NotTopSide")return Ga;if(a==="NotLeftSide")return ih;if(a==="NotRightSide")return Ec;if(a==="NotBottomSide")return Vc;if(a==="AllSides")return Zc;if(a==="Default")return Bs;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 z=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(z=parseFloat(b));for(var nt=0;a[y]==="";)y++;return b=a[y++],b!==void 0&&0<b.length&&(nt=parseFloat(b)),new xr(x,E,z,nt)}return new xr}function od(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}Vt.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(Ma)?"None":this.D(Oa)?"TopLeft":this.D(Bl)?"Top":this.D(su)?"TopRight":this.D(au)?"Left":this.D(Yo)?"Center":this.D(va)?"Right":this.D(Cs)?"BottomLeft":this.D(lu)?"Bottom":this.D(Ll)?"BottomRight":this.D(Ml)?"TopSide":this.D(tl)?"LeftSide":this.D(tu)?"RightSide":this.D(Pl)?"BottomSide":this.D(Io)?"TopBottomSides":this.D(dc)?"LeftRightSides":this.D(al)?"TopLeftSides":this.D(zu)?"TopRightSides":this.D(hh)?"BottomLeftSides":this.D(dh)?"BottomRightSides":this.D(Ga)?"NotTopSide":this.D(ih)?"NotLeftSide":this.D(Ec)?"NotRightSide":this.D(Vc)?"NotBottomSide":this.D(Zc)?"AllSides":this.D(Bs)?"Default":"None"},Vt.D=function(a){return a instanceof xr?(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},Vt.gv=function(){return new xr(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},Vt.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(ya))a=tl;else if(a.D(Mu))a=tu;else if(a.D(el))a=Ml;else if(a.D(ll))a=Pl;else return!1;return a=a.offsetY,(this.offsetY&a)===a},Vt.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},Vt.Mc=function(){return isNaN(this.x)||isNaN(this.y)},Vt.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},Vt.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},Vt.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},xr.alloc=function(){var a=Ah.pop();return a===void 0?new xr:a},xr.free=function(a){Ah.push(a)},xr.prototype.isDefault=xr.prototype.Xb,xr.prototype.isNone=xr.prototype.ys,xr.prototype.isSide=xr.prototype.$c,xr.prototype.isNoSpot=xr.prototype.Mc,xr.prototype.isSpot=xr.prototype.sb,xr.prototype.includesSide=xr.prototype.Hf,xr.prototype.opposite=xr.prototype.gv,xr.prototype.equals=xr.prototype.D,xr.prototype.set=xr.prototype.set,xr.prototype.setTo=xr.prototype.sg;var Ah=[];xr.className="Spot",xr.parse=Ud,xr.stringify=od,xr.None=Ma=cl(new xr(0,0,0,0),0).ja(),xr.Default=Bs=cl(new xr(0,0,-1,0),-1).ja(),xr.TopLeft=Oa=new xr(0,0,0,0).ja(),xr.TopCenter=Bl=new xr(.5,0,0,0).ja(),xr.TopRight=su=new xr(1,0,0,0).ja(),xr.LeftCenter=au=new xr(0,.5,0,0).ja(),xr.Center=Yo=new xr(.5,.5,0,0).ja(),xr.RightCenter=va=new xr(1,.5,0,0).ja(),xr.BottomLeft=Cs=new xr(0,1,0,0).ja(),xr.BottomCenter=lu=new xr(.5,1,0,0).ja(),xr.BottomRight=Ll=new xr(1,1,0,0).ja(),xr.MiddleTop=Wa=Bl,xr.MiddleLeft=Aa=au,xr.MiddleRight=nl=va,xr.MiddleBottom=Dl=lu,xr.Top=el=Bl,xr.Left=ya=au,xr.Right=Mu=va,xr.Bottom=ll=lu,xr.TopSide=Ml=cl(new xr(0,0,1,1),1).ja(),xr.LeftSide=tl=cl(new xr(0,0,1,2),1).ja(),xr.RightSide=tu=cl(new xr(0,0,1,4),1).ja(),xr.BottomSide=Pl=cl(new xr(0,0,1,8),1).ja(),xr.TopBottomSides=Io=cl(new xr(0,0,1,9),1).ja(),xr.LeftRightSides=dc=cl(new xr(0,0,1,6),1).ja(),xr.TopLeftSides=al=cl(new xr(0,0,1,3),1).ja(),xr.TopRightSides=zu=cl(new xr(0,0,1,5),1).ja(),xr.BottomLeftSides=hh=cl(new xr(0,0,1,10),1).ja(),xr.BottomRightSides=dh=cl(new xr(0,0,1,12),1).ja(),xr.NotTopSide=Ga=cl(new xr(0,0,1,14),1).ja(),xr.NotLeftSide=ih=cl(new xr(0,0,1,13),1).ja(),xr.NotRightSide=Ec=cl(new xr(0,0,1,11),1).ja(),xr.NotBottomSide=Vc=cl(new xr(0,0,1,7),1).ja(),xr.AllSides=Zc=cl(new xr(0,0,1,15),1).ja(),Ac=new xr(.156,.156).ja(),rh=new xr(.844,.844).ja(),xr.parse=Ud,xr.stringify=od;function Ko(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}Ko.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},Ko.prototype.setTransform=function(a,y,x,b,E,z){return this.m11=a,this.m12=y,this.m21=x,this.m22=b,this.dx=E,this.dy=z,this},Ko.prototype.copy=function(){var a=new Ko;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},Ko.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},Ko.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},Ko.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},Ko.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},Ko.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},Ko.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,z=a.m11*y,nt=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*z,E=this.m12*E+this.m22*z,this.dx=this.m11*nt+this.m21*a+this.dx,this.dy=this.m12*nt+this.m22*a+this.dy,this.m11=y,this.m12=x,this.m21=b,this.m22=E,this},Ko.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),z=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=z,this},Ko.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,z=this.m11*-b+this.m21*a,nt=this.m12*-b+this.m22*a;return this.m11=this.m11*a+this.m21*b,this.m12=E,this.m21=z,this.m22=nt,this.translate(-y,-x),this},Vt=Ko.prototype,Vt.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Vt.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Vt.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)},Vt.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))},Vt.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))},Vt.pp=function(a){var y=a.x,x=a.y,b=y+a.width,E=x+a.height,z=this.m11,nt=this.m12,ot=this.m21,at=this.m22,ht=this.dx,ct=this.dy,gt=y*z+x*ot+ht,Nt=y*nt+x*at+ct,Kt=b*z+x*ot+ht,Xt=b*nt+x*at+ct;return x=y*z+E*ot+ht,y=y*nt+E*at+ct,z=b*z+E*ot+ht,b=b*nt+E*at+ct,E=Math.min(gt,Kt),gt=Math.max(gt,Kt),Kt=Math.min(Nt,Xt),Nt=Math.max(Nt,Xt),E=Math.min(E,x),gt=Math.max(gt,x),Kt=Math.min(Kt,y),Nt=Math.max(Nt,y),E=Math.min(E,z),gt=Math.max(gt,z),Kt=Math.min(Kt,b),Nt=Math.max(Nt,b),a.h(E,Kt,gt-E,Nt-Kt),a},Ko.alloc=function(){var a=sA.pop();return a===void 0?new Ko:a},Ko.free=function(a){sA.push(a)},Ko.prototype.transformRect=Ko.prototype.pp,Ko.prototype.transformPoint=Ko.prototype.Ga,Ko.prototype.scale=Ko.prototype.scale,Ko.prototype.translate=Ko.prototype.translate,Ko.prototype.rotate=Ko.prototype.rotate,Ko.prototype.invert=Ko.prototype.Vj,Ko.prototype.multiplyInverted=Ko.prototype.bv,Ko.prototype.multiply=Ko.prototype.multiply,Ko.prototype.reset=Ko.prototype.reset,Ko.prototype.isIdentity=Ko.prototype.ws,Ko.prototype.equals=Ko.prototype.D,Ko.prototype.setTransform=Ko.prototype.setTransform,Ko.prototype.set=Ko.prototype.set;var sA=[];Ko.className="Transform",Ko.xF="54a702f3e53909c447824c6706603faf4c";var Ln={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Ln.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);Ln.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,z,nt){if(0>=E&&(E=1e-6),a<x)var ot=a,at=x;else ot=x,at=a;if(y<b)var ht=y,ct=b;else ht=b,ct=y;if(a===x)return ht<=nt&&nt<=ct&&a-E<=z&&z<=a+E;if(y===b)return ot<=z&&z<=at&&y-E<=nt&&nt<=y+E;if(at+=E,ot-=E,ot<=z&&z<=at&&(ct+=E,ht-=E,ht<=nt&&nt<=ct))if(at-ot>ct-ht)if(a-x>E||x-a>E){if(z=(b-y)/(x-a)*(z-a)+y,z-E<=nt&&nt<=z+E)return!0}else return!0;else if(y-b>E||b-y>E){if(nt=(x-a)/(b-y)*(nt-y)+a,nt-E<=z&&z<=nt+E)return!0}else return!0;return!1},cs:function(a,y,x,b,E,z,nt,ot,at,ht,ct,gt){if(Ln.Yb(a,y,nt,ot,gt,x,b)&&Ln.Yb(a,y,nt,ot,gt,E,z))return Ln.Yb(a,y,nt,ot,gt,ht,ct);var Nt=(a+x)/2,Kt=(y+b)/2,Xt=(x+E)/2,ce=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(Nt+Xt)/2,x=(Kt+ce)/2,Xt=(Xt+E)/2,ce=(ce+z)/2;var Ke=(b+Xt)/2,Te=(x+ce)/2;return Ln.cs(a,y,Nt,Kt,b,x,Ke,Te,at,ht,ct,gt)||Ln.cs(Ke,Te,Xt,ce,E,z,nt,ot,at,ht,ct,gt)},ax:function(a,y,x,b,E,z,nt,ot,at){var ht=(x+E)/2,ct=(b+z)/2;return at.h((((a+x)/2+ht)/2+(ht+(E+nt)/2)/2)/2,(((y+b)/2+ct)/2+(ct+(z+ot)/2)/2)/2),at},My:function(a,y,x,b,E,z,nt,ot){var at=(x+E)/2,ht=(b+z)/2;return lo(((a+x)/2+at)/2,((y+b)/2+ht)/2,(at+(E+nt)/2)/2,(ht+(z+ot)/2)/2)},Dl:function(a,y,x,b,E,z,nt,ot,at,ht){if(Ln.Yb(a,y,nt,ot,at,x,b)&&Ln.Yb(a,y,nt,ot,at,E,z))Is(ht,a,y,0,0),Is(ht,nt,ot,0,0);else{var ct=(a+x)/2,gt=(y+b)/2,Nt=(x+E)/2,Kt=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(ct+Nt)/2,x=(gt+Kt)/2,Nt=(Nt+E)/2,Kt=(Kt+z)/2;var Xt=(b+Nt)/2,ce=(x+Kt)/2;Ln.Dl(a,y,ct,gt,b,x,Xt,ce,at,ht),Ln.Dl(Xt,ce,Nt,Kt,E,z,nt,ot,at,ht)}return ht},Qe:function(a,y,x,b,E,z,nt,ot,at,ht){if(Ln.Yb(a,y,nt,ot,at,x,b)&&Ln.Yb(a,y,nt,ot,at,E,z))ht.length===0&&(ht.push(a),ht.push(y)),ht.push(nt),ht.push(ot);else{var ct=(a+x)/2,gt=(y+b)/2,Nt=(x+E)/2,Kt=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(ct+Nt)/2,x=(gt+Kt)/2,Nt=(Nt+E)/2,Kt=(Kt+z)/2;var Xt=(b+Nt)/2,ce=(x+Kt)/2;Ln.Qe(a,y,ct,gt,b,x,Xt,ce,at,ht),Ln.Qe(Xt,ce,Nt,Kt,E,z,nt,ot,at,ht)}return ht},jv:function(a,y,x,b,E,z,nt,ot,at,ht){if(Ln.Yb(a,y,E,z,ht,x,b))return Ln.Yb(a,y,E,z,ht,ot,at);var ct=(a+x)/2,gt=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var Nt=(ct+x)/2,Kt=(gt+b)/2;return Ln.jv(a,y,ct,gt,Nt,Kt,nt,ot,at,ht)||Ln.jv(Nt,Kt,x,b,E,z,nt,ot,at,ht)},OA:function(a,y,x,b,E,z,nt){return nt.h(((a+x)/2+(x+E)/2)/2,((y+b)/2+(b+z)/2)/2),nt},iv:function(a,y,x,b,E,z,nt,ot){if(Ln.Yb(a,y,E,z,nt,x,b))Is(ot,a,y,0,0),Is(ot,E,z,0,0);else{var at=(a+x)/2,ht=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ct=(at+x)/2,gt=(ht+b)/2;Ln.iv(a,y,at,ht,ct,gt,nt,ot),Ln.iv(ct,gt,x,b,E,z,nt,ot)}return ot},ep:function(a,y,x,b,E,z,nt,ot){if(Ln.Yb(a,y,E,z,nt,x,b))ot.length===0&&(ot.push(a),ot.push(y)),ot.push(E),ot.push(z);else{var at=(a+x)/2,ht=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ct=(at+x)/2,gt=(ht+b)/2;Ln.ep(a,y,at,ht,ct,gt,nt,ot),Ln.ep(ct,gt,x,b,E,z,nt,ot)}return ot},Eo:function(a,y,x,b,E,z,nt,ot,at,ht,ct,gt,Nt,Kt){if(Ln.Yb(a,y,nt,ot,Nt,x,b)&&Ln.Yb(a,y,nt,ot,Nt,E,z))return!Ln.Rl(a,y,nt,ot,at,ht,ct,gt)||(Nt=(a-nt)*(ht-gt)-(y-ot)*(at-ct),Nt===0)?!1:(Kt.h(((a*ot-y*nt)*(at-ct)-(a-nt)*(at*gt-ht*ct))/Nt,((a*ot-y*nt)*(ht-gt)-(y-ot)*(at*gt-ht*ct))/Nt),!0);var Xt=(a+x)/2,ce=(y+b)/2,Ke=(x+E)/2,Te=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(Xt+Ke)/2,x=(ce+Te)/2,Ke=(Ke+E)/2,Te=(Te+z)/2;var $e=(b+Ke)/2,rn=(x+Te)/2,ln=1/0,Bn=!1,Gn=0,lr=0;return Ln.Eo(a,y,Xt,ce,b,x,$e,rn,at,ht,ct,gt,Nt,Kt)&&(a=(Kt.x-at)*(Kt.x-at)+(Kt.y-ht)*(Kt.y-ht),a<ln&&(ln=a,Bn=!0,Gn=Kt.x,lr=Kt.y)),Ln.Eo($e,rn,Ke,Te,E,z,nt,ot,at,ht,ct,gt,Nt,Kt)&&(Kt.x-at)*(Kt.x-at)+(Kt.y-ht)*(Kt.y-ht)<ln&&(Bn=!0,Gn=Kt.x,lr=Kt.y),Bn&&(Kt.x=Gn,Kt.y=lr),Bn},Fo:function(a,y,x,b,E,z,nt,ot,at,ht,ct,gt,Nt){var Kt=0;if(Ln.Yb(a,y,nt,ot,Nt,x,b)&&Ln.Yb(a,y,nt,ot,Nt,E,z)){if(Nt=(a-nt)*(ht-gt)-(y-ot)*(at-ct),Nt===0)return Kt;var Xt=((a*ot-y*nt)*(at-ct)-(a-nt)*(at*gt-ht*ct))/Nt,ce=((a*ot-y*nt)*(ht-gt)-(y-ot)*(at*gt-ht*ct))/Nt;if(Xt>=ct)return Kt;if((at>ct?at-ct:ct-at)<(ht>gt?ht-gt:gt-ht)){if(y<ot?(at=y,a=ot):(at=ot,a=y),ce<at||ce>a)return Kt}else if(a<nt?(at=a,a=nt):at=nt,Xt<at||Xt>a)return Kt;0<Nt?Kt++:0>Nt&&Kt--}else{Xt=(a+x)/2,ce=(y+b)/2;var Ke=(x+E)/2,Te=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(Xt+Ke)/2,x=(ce+Te)/2,Ke=(Ke+E)/2,Te=(Te+z)/2;var $e=(b+Ke)/2,rn=(x+Te)/2;Kt+=Ln.Fo(a,y,Xt,ce,b,x,$e,rn,at,ht,ct,gt,Nt),Kt+=Ln.Fo($e,rn,Ke,Te,E,z,nt,ot,at,ht,ct,gt,Nt)}return Kt},qh:function(a,y,x,b,E,z,nt){return Ln.$(a,x)?(y<b?(x=y,y=b):x=b,z<x?(nt.h(a,x),!1):z>y?(nt.h(a,y),!1):(nt.h(a,z),!0)):Ln.$(y,b)?(a<x?(b=a,a=x):b=x,E<b?(nt.h(b,y),!1):E>a?(nt.h(a,y),!1):(nt.h(E,y),!0)):(E=((a-E)*(a-x)+(y-z)*(y-b))/((x-a)*(x-a)+(b-y)*(b-y)),-5e-6>E?(nt.h(a,y),!1):1.000005<E?(nt.h(x,b),!1):(nt.h(a+E*(x-a),y+E*(b-y)),!0))},Ve:function(a,y,x,b,E,z,nt,ot,at){return Ln.B(a,x)&&Ln.B(y,b)?(at.h(a,y),!1):Ln.$(E,nt)?Ln.$(a,x)?(Ln.qh(a,y,x,b,E,z,at),!1):Ln.qh(a,y,x,b,E,(b-y)/(x-a)*(E-a)+y,at):(ot=(ot-z)/(nt-E),Ln.$(a,x)?(x=ot*(a-E)+z,y<b?(E=y,y=b):E=b,x<E?(at.h(a,E),!1):x>y?(at.h(a,y),!1):(at.h(a,x),!0)):(nt=(b-y)/(x-a),Ln.$(ot,nt)?(Ln.qh(a,y,x,b,E,z,at),!1):(E=(nt*a-ot*E+z-y)/(nt-ot),Ln.$(nt,0)?(a<x?(b=a,a=x):b=x,E<b?(at.h(b,y),!1):E>a?(at.h(a,y),!1):(at.h(E,y),!0)):Ln.qh(a,y,x,b,E,nt*(E-a)+y,at))))},MA:function(a,y,x,b,E){return Ln.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,z,nt,ot,at,ht){function ct(Ke,Te){var $e=(Ke-a)*(Ke-a)+(Te-y)*(Te-y);$e<gt&&(gt=$e,at.h(Ke,Te))}var gt=1/0;ct(at.x,at.y);var Nt=0,Kt=0,Xt=0,ce=0;if(E<nt?(Nt=E,Kt=nt):(Nt=nt,Kt=E),z<ot?(Xt=E,ce=nt):(Xt=nt,ce=E),Nt=(Kt-Nt)/2+ht,ht=(ce-Xt)/2+ht,E=(E+nt)/2,z=(z+ot)/2,Nt===0||ht===0)return at;if(.5>(x>a?x-a:a-x)){if(Nt=1-(x-E)*(x-E)/(Nt*Nt),0>Nt)return at;Nt=Math.sqrt(Nt),b=-ht*Nt+z,ct(x,ht*Nt+z),ct(x,b)}else{if(x=(b-y)/(x-a),b=1/(Nt*Nt)+x*x/(ht*ht),ot=2*x*(y-x*a)/(ht*ht)-2*x*z/(ht*ht)-2*E/(Nt*Nt),Nt=ot*ot-4*b*(2*x*a*z/(ht*ht)-2*y*z/(ht*ht)+z*z/(ht*ht)+E*E/(Nt*Nt)-1+(y-x*a)*(y-x*a)/(ht*ht)),0>Nt)return at;Nt=Math.sqrt(Nt),ht=(-ot+Nt)/(2*b),ct(ht,x*ht-x*a+y),Nt=(-ot-Nt)/(2*b),ct(Nt,x*Nt-x*a+y)}return at},Ff:function(a,y,x,b,E,z,nt,ot,at){var ht=1e21,ct=a,gt=y;if(Ln.Ve(a,y,a,b,E,z,nt,ot,at)){var Nt=(at.x-E)*(at.x-E)+(at.y-z)*(at.y-z);Nt<ht&&(ht=Nt,ct=at.x,gt=at.y)}return Ln.Ve(x,y,x,b,E,z,nt,ot,at)&&(Nt=(at.x-E)*(at.x-E)+(at.y-z)*(at.y-z),Nt<ht&&(ht=Nt,ct=at.x,gt=at.y)),Ln.Ve(a,y,x,y,E,z,nt,ot,at)&&(y=(at.x-E)*(at.x-E)+(at.y-z)*(at.y-z),y<ht&&(ht=y,ct=at.x,gt=at.y)),Ln.Ve(a,b,x,b,E,z,nt,ot,at)&&(a=(at.x-E)*(at.x-E)+(at.y-z)*(at.y-z),a<ht&&(ht=a,ct=at.x,gt=at.y)),at.h(ct,gt),1e21>ht},us:function(a,y,x){return Ln.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,b,E,z,nt,ot){var at=a+x,ht=y+b;return E===nt?(z<ot?(nt=z,z=ot):nt=ot,a<=E&&E<=at&&nt<=ht&&z>=y):z===ot?(E<nt?(ot=E,E=nt):ot=nt,y<=z&&z<=ht&&ot<=at&&E>=a):!!(ia(a,y,x,b,E,z)||ia(a,y,x,b,nt,ot)||Ln.Rl(a,y,at,y,E,z,nt,ot)||Ln.Rl(at,y,at,ht,E,z,nt,ot)||Ln.Rl(at,ht,a,ht,E,z,nt,ot)||Ln.Rl(a,ht,a,y,E,z,nt,ot))},Rl:function(a,y,x,b,E,z,nt,ot){return a===x&&y===b&&E===nt&&z===ot?a===E&&y===z:0>=Ln.Fl(a,y,x,b,E,z)*Ln.Fl(a,y,x,b,nt,ot)&&0>=Ln.Fl(E,z,nt,ot,a,y)*Ln.Fl(E,z,nt,ot,x,b)},Fl:function(a,y,x,b,E,z){return x-=a,b-=y,a=E-a,y=z-y,z=a*b-y*x,z===0&&(z=a*x+y*b,0<z&&(z=(a-x)*x+(y-b)*b,0>z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,b,E,z){var nt=Math.PI;z||(b*=nt/180,E*=nt/180);var ot=b>E?-1:1;z=[];var at=nt/2,ht=b;if(b=Math.min(2*nt,Math.abs(E-b)),1e-5>b)return at=ht+ot*Math.min(b,at),ot=a+x*Math.cos(ht),ht=y+x*Math.sin(ht),a+=x*Math.cos(at),y+=x*Math.sin(at),x=(ot+a)/2,at=(ht+y)/2,z.push([ot,ht,x,at,x,at,a,y]),z;for(;1e-5<b;)E=ht+ot*Math.min(b,at),z.push(Ln.Vy(x,ht,E,a,y)),b-=Math.abs(E-ht),ht=E;return z},Vy:function(a,y,x,b,E){var z=(x-y)/2,nt=a*Math.cos(z),ot=a*Math.sin(z),at=-ot,ht=nt*nt+at*at,ct=ht+nt*nt+at*ot;return ht=4/3*(Math.sqrt(2*ht*ct)-ct)/(nt*ot-at*nt),ot=nt-ht*at,nt=at+ht*nt,at=-nt,ht=z+y,z=Math.cos(ht),ht=Math.sin(ht),[b+a*Math.cos(y),E+a*Math.sin(y),b+ot*z-nt*ht,E+ot*ht+nt*z,b+ot*z-at*ht,E+ot*ht+at*z,b+a*Math.cos(x),E+a*Math.sin(x)]},No:function(a,y,x,b,E,z,nt){x=Math.floor((a-x)/E)*E+x,b=Math.floor((y-b)/z)*z+b;var ot=x;return x+E-a<E/2&&(ot=x+E),a=b,b+z-y<z/2&&(a=b+z),nt.h(ot,a),nt},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,z=0>b;if(a<y)var nt=1,ot=0;else nt=0,ot=1;var at=nt===0?a:y,ht=nt===0?x:b;return(nt===0?E:z)&&(ht=-ht),nt=ot,x=nt===0?x:b,(nt===0?E:z)&&(x=-x),Ln.az(at,nt===0?a:y,ht,x,0,0)},az:function(a,y,x,b,E,z){if(0<b)if(0<x){E=a*a,z=y*y,a*=x;var nt=y*b,ot=-z+nt,at=-z+Math.sqrt(a*a+nt*nt);y=ot;for(var ht=0;9999999999>ht&&(y=.5*(ot+at),!(y===ot||y===at));++ht){var ct=a/(y+E),gt=nt/(y+z);if(ct=ct*ct+gt*gt-1,0<ct)ot=y;else if(0>ct)at=y;else break}x=E*x/(y+E)-x,b=z*b/(y+z)-b,x=Math.sqrt(x*x+b*b)}else x=Math.abs(b-y);else b=a*a-y*y,z=a*x,z<b?(b=z/b,z=y*Math.sqrt(Math.abs(1-b*b)),x=a*b-x,x=Math.sqrt(x*x+z*z)):x=Math.abs(x-a);return x},Ze:new no,um:new no,Mf:new no,Nf:0,vm:100};Ln.za=Ln.AA;function $i(a){ns(this),this.l=2,a===void 0&&(a=$i.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===$i.o?this.ee=new Ci:($i.V===null&&($i.V=new Ci().freeze()),this.ee=$i.V),this.aq=this.ee.Ja,this.Ip=new ai().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=Oa,this.gg=Ll,this.Rk=this.Sk=NaN,this.Uf=Ni}$i.prototype.copy=function(){var a=new $i;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===$i.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},$i.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},$i.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==$i.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},$i.prototype.ka=function(){if(Object.isFrozen(this)&&sn("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==$i.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},$i.prototype.Xa=function(a){if(!(a instanceof $i))return!1;if(this.type!==a.type)return this.type===$i.j&&a.type===$i.o?aA(this,a):a.type===$i.j&&this.type===$i.o?aA(a,this):!1;if(this.type===$i.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 Ln.B(this.startX,a.startX)&&Ln.B(this.startY,a.startY)&&Ln.B(this.endX,a.endX)&&Ln.B(this.endY,a.endY)};function aA(a,y){return a.type!==$i.j||y.type!==$i.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&Ln.B(a.startX,y.startX)&&Ln.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===sa&&Ln.B(a.endX,y.endX)&&Ln.B(a.endY,y.endY))))}$i.ia=function(a){return a.toString()},$i.prototype.qb=function(a){a.classType===$i&&(this.type=a)},$i.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case $i.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 $i.u:var y=new ai(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 $i.F:if(y=new ai(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 $i.o:y="",x=this.figures.s;for(var b=x.length,E=0;E<b;E++){var z=x[E];0<E&&(y+=" x "),z.isFilled&&(y+="F "),y+=z.toString(a)}return y;default:return this.type.toString()}},$i.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},$i.parse=function(a,y){function x(){return ce>=ln-1?!0:ht[ce+1].match(Bn)!==null}function b(){return ce++,ht[ce]}function E(Uo){var Bo=parseFloat(b()),ks=parseFloat(b());Ke===Ke.toLowerCase()&&(Bo=rn.x+Bo,ks=rn.y+ks),Uo.h(Bo,ks)}function z(){return E(rn),rn}function nt(){return E($e),$e}function ot(){var Uo=Te.toLowerCase();return Uo!=="c"&&Uo!=="s"&&Uo!=="q"&&Uo!=="t"?rn:new ke(2*rn.x-$e.x,2*rn.y-$e.y)}y===void 0&&(y=!1);var at=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(at,"$1 $2"),a=a.replace(at,"$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 ht=a.split(" ");for(a=0;a<ht.length;a++){var ct=ht[a];if(ct.match(/(\.[0-9]*)(\.)/gm)!==null){at=yi();for(var gt="",Nt=!1,Kt=0;Kt<ct.length;Kt++){var Xt=ct[Kt];Xt!=="."||Nt?Xt==="."?(at.push(gt),gt="."):gt+=Xt:(Nt=!0,gt+=Xt)}for(at.push(gt),ht.splice(a,1),ct=0;ct<at.length;ct++)ht.splice(a+ct,0,at[ct]);a+=at.length-1,nr(at)}}var ce=-1,Ke="",Te="";at=new ke(0,0);var $e=new ke(0,0),rn=new ke(0,0),ln=ht.length;a=jy(null),Nt=gt=ct=!1,Kt=!0,Xt=null;for(var Bn=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(ce>=ln-1);)if(Te=Ke,Ke=b(),Ke!=="")switch(Ke.toUpperCase()){case"X":Kt=!0,gt=ct=!1;break;case"M":for(Xt=z(),a.mc===null||Kt===!0?(jp(a,Xt.x,Xt.y,ct,!gt,Nt),Kt=!1):a.moveTo(Xt.x,Xt.y),at.assign(rn);!x();)Xt=z(),a.lineTo(Xt.x,Xt.y);break;case"L":for(;!x();)Xt=z(),a.lineTo(Xt.x,Xt.y);break;case"H":for(;!x();)rn=new ke((Ke===Ke.toLowerCase()?rn.x:0)+parseFloat(b()),rn.y),a.lineTo(rn.x,rn.y);break;case"V":for(;!x();)rn=new ke(rn.x,(Ke===Ke.toLowerCase()?rn.y:0)+parseFloat(b())),a.lineTo(rn.x,rn.y);break;case"C":for(;!x();){Xt=new ke,E(Xt);var Gn=nt(),lr=z();Ff(a,Xt.x,Xt.y,Gn.x,Gn.y,lr.x,lr.y)}break;case"S":for(;!x();)Xt=ot(),Gn=nt(),lr=z(),Ff(a,Xt.x,Xt.y,Gn.x,Gn.y,lr.x,lr.y);break;case"Q":for(;!x();)Xt=nt(),Gn=z(),rm(a,Xt.x,Xt.y,Gn.x,Gn.y);break;case"T":for(;!x();)$e=Xt=ot(),Gn=z(),rm(a,Xt.x,Xt.y,Gn.x,Gn.y);break;case"B":for(;!x();){Xt=parseFloat(b()),Gn=parseFloat(b()),lr=parseFloat(b());var kr=parseFloat(b()),Sr=parseFloat(b()),Wi=Sr,Mi=!1;x()||(Wi=parseFloat(b()),x()||(Mi=parseFloat(b())!==0)),Ke===Ke.toLowerCase()&&(lr+=rn.x,kr+=rn.y),a.arcTo(Xt,Gn,lr,kr,Sr,Wi,Mi)}break;case"A":for(;!x();)Xt=Math.abs(parseFloat(b())),Gn=Math.abs(parseFloat(b())),lr=parseFloat(b()),Sr=kr=!1,Mi=Wi=0,Wi=b(),Wi.length===1?(kr=!!parseFloat(Wi),Sr=!!parseFloat(b()),Wi=parseFloat(b())):Wi.length===2?(kr=!!parseFloat(Wi[0]),Sr=!!parseFloat(Wi[1]),Wi=parseFloat(b())):(kr=!!parseFloat(Wi[0]),Sr=!!parseFloat(Wi[1]),Wi=parseFloat(Wi.slice(2))),Mi=parseFloat(b()),Ke===Ke.toLowerCase()&&(Wi=rn.x+Wi,Mi=rn.y+Mi),rn.h(Wi,Mi),Lw(a,Xt,Gn,lr,kr,Sr,Wi,Mi);break;case"Z":Fw(a),rn.assign(at);break;case"F":for(Xt="",Gn=1;ht[ce+Gn];)if(ht[ce+Gn]==="0")Nt=!0,Gn++;else if(ht[ce+Gn].match(/[Uu]/)!==null)Gn++;else if(ht[ce+Gn].match(Bn)===null)Gn++;else{Xt=ht[ce+Gn];break}Xt.match(/[Mm]/)?ct=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Xt="",Gn=1;ht[ce+Gn];)if(ht[ce+Gn].match(/[Ff]/)!==null)Gn++;else if(ht[ce+Gn].match(Bn)===null)Gn++;else{Xt=ht[ce+Gn];break}Xt.match(/[Mm]/)?gt=!0:a.mc.isShadowed=!1}if(at=a.os,om=a,y)for(y=at.figures.iterator;y.next();)y.value.isFilled=!0;return at},$i.Ha=function(a,y){for(var x=a.length,b=ke.alloc(),E=0;E<x;E++){var z=a[E];b.x=z[0],b.y=z[1],y.Ga(b),z[0]=b.x,z[1]=b.y,b.x=z[2],b.y=z[3],y.Ga(b),z[2]=b.x,z[3]=b.y,b.x=z[4],b.y=z[5],y.Ga(b),z[4]=b.x,z[5]=b.y,b.x=z[6],b.y=z[7],y.Ga(b),z[6]=b.x,z[7]=b.y}ke.free(b)},$i.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===$i.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},$i.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===$i.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 z=0;z<E;z++){var nt=b[z];nt._isInvalidBounds=!1,nt.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),tc(this,a,!1),Is(a,0,0,0,0),a.freeze()},$i.prototype.ix=function(){var a=new ai;return tc(this,a,!0),a};function tc(a,y,x){switch(a.type){case $i.j:case $i.u:case $i.F:x?y.h(a.od,a.pd,0,0):Is(y,a.od,a.pd,0,0),Is(y,a.Dc,a.Ec,0,0);break;case $i.o:var b=a.figures;a=b.s,b=b.length;for(var E=0;E<b;E++){var z=a[E];x&&E===0?y.h(z.startX,z.startY,0,0):Is(y,z.startX,z.startY,0,0);for(var nt=z.segments.s,ot=nt.length,at=z.startX,ht=z.startY,ct=0;ct<ot;ct++){var gt=nt[ct];switch(gt.type){case sa:case bl:at=gt.endX,ht=gt.endY,Is(y,at,ht,0,0);break;case pu:Ln.Dl(at,ht,gt.point1X,gt.point1Y,gt.point2X,gt.point2Y,gt.endX,gt.endY,.5,y),at=gt.endX,ht=gt.endY;break;case gh:Ln.iv(at,ht,gt.point1X,gt.point1Y,gt.endX,gt.endY,.5,y),at=gt.endX,ht=gt.endY;break;case xl:case Oh:var Nt=gt.type===xl?Xu(gt,z):Ku(gt,z,at,ht),Kt=Nt.length;if(Kt===0){at=gt.type===xl?gt.centerX:gt.endX,ht=gt.type===xl?gt.centerY:gt.endY,Is(y,at,ht,0,0);break}gt=null;for(var Xt=0;Xt<Kt;Xt++)gt=Nt[Xt],Ln.Dl(gt[0],gt[1],gt[2],gt[3],gt[4],gt[5],gt[6],gt[7],.5,y);gt!==null&&(at=gt[6],ht=gt[7]);break;default:sn("Unknown Segment type: "+gt.type)}}}break;default:sn("Unknown Geometry type: "+a.type)}}$i.prototype.normalize=function(){this._isFrozen&&fi(this);var a=this.ix();return this.offset(-a.x,-a.y),new ke(-a.x,-a.y)},$i.prototype.offset=function(a,y){return this._isFrozen&&fi(this),this.transform(1,0,0,1,a,y),this},$i.prototype.scale=function(a,y){return this._isFrozen&&fi(this),this.transform(a,0,0,y,0,0),this},$i.prototype.rotate=function(a,y,x){this._isFrozen&&fi(this),y===void 0&&(y=0),x===void 0&&(x=0);var b=Ko.alloc();return b.reset(),b.rotate(a,y,x),this.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy),Ko.free(b),this},Vt=$i.prototype,Vt.transform=function(a,y,x,b,E,z){switch(this.type){case $i.j:case $i.u:case $i.F:var nt=this.od,ot=this.pd;this.od=nt*a+ot*x+E,this.pd=nt*y+ot*b+z,nt=this.Dc,ot=this.Ec,this.Dc=nt*a+ot*x+E,this.Ec=nt*y+ot*b+z;break;case $i.o:for(var at=this.figures.s,ht=at.length,ct=0;ct<ht;ct++){var gt=at[ct];nt=gt.startX,ot=gt.startY,gt.startX=nt*a+ot*x+E,gt.startY=nt*y+ot*b+z,gt=gt.segments.s;for(var Nt=gt.length,Kt=0;Kt<Nt;Kt++){var Xt=gt[Kt];switch(Xt.type){case sa:case bl:nt=Xt.endX,ot=Xt.endY,Xt.endX=nt*a+ot*x+E,Xt.endY=nt*y+ot*b+z;break;case pu:nt=Xt.point1X,ot=Xt.point1Y,Xt.point1X=nt*a+ot*x+E,Xt.point1Y=nt*y+ot*b+z,nt=Xt.point2X,ot=Xt.point2Y,Xt.point2X=nt*a+ot*x+E,Xt.point2Y=nt*y+ot*b+z,nt=Xt.endX,ot=Xt.endY,Xt.endX=nt*a+ot*x+E,Xt.endY=nt*y+ot*b+z;break;case gh:nt=Xt.point1X,ot=Xt.point1Y,Xt.point1X=nt*a+ot*x+E,Xt.point1Y=nt*y+ot*b+z,nt=Xt.endX,ot=Xt.endY,Xt.endX=nt*a+ot*x+E,Xt.endY=nt*y+ot*b+z;break;case xl:nt=Xt.centerX,ot=Xt.centerY,Xt.centerX=nt*a+ot*x+E,Xt.centerY=nt*y+ot*b+z,y!==0&&(nt=180*Math.atan2(y,a)/Math.PI,0>nt&&(nt+=360),Xt.startAngle+=nt),0>a&&(Xt.startAngle=180-Xt.startAngle,Xt.sweepAngle=-Xt.sweepAngle),0>b&&(Xt.startAngle=-Xt.startAngle,Xt.sweepAngle=-Xt.sweepAngle),Xt.radiusX*=Math.sqrt(a*a+x*x),Xt.radiusY!==void 0&&(Xt.radiusY*=Math.sqrt(y*y+b*b));break;case Oh:if(nt=Xt.endX,ot=Xt.endY,Xt.endX=nt*a+ot*x+E,Xt.endY=nt*y+ot*b+z,Xt.radiusX===0||Xt.radiusY===0)break;y!==0&&(nt=180*Math.atan2(y,a)/Math.PI,0>nt&&(nt+=360),Xt.xAxisRotation+=nt),0>a&&(Xt.xAxisRotation=180-Xt.xAxisRotation,Xt.isClockwiseArc=!Xt.isClockwiseArc),0>b&&(Xt.xAxisRotation=-Xt.xAxisRotation,Xt.isClockwiseArc=!Xt.isClockwiseArc),Xt.radiusX*=Math.sqrt(a*a+x*x),Xt.radiusY*=Math.sqrt(y*y+b*b);break;default:sn("Unknown Segment type: "+Xt.type)}}}}return this._isInvalidBounds=!0,this},Vt.ca=function(a,y){y===void 0&&(y=0);var x=this.od,b=this.pd,E=this.Dc,z=this.Ec;switch(this.type){case $i.j:return Ln.Yb(x,b,E,z,y,a.x,a.y);case $i.u:var nt=ai.allocAt(Math.min(x,E)-y,Math.min(b,z)-y,Math.abs(E-x)+2*y,Math.abs(z-b)+2*y);return a=nt.ca(a),ai.free(nt),a;case $i.F:nt=Math.min(x,E)-y;var ot=Math.min(b,z)-y;return x=(Math.abs(E-x)+2*y)/2,y=(Math.abs(z-b)+2*y)/2,0>=x||0>=y?!1:(nt=a.x-(nt+x),ot=a.y-(ot+y),1>=nt*nt/(x*x)+ot*ot/(y*y));case $i.o:return ju(this,a,y,!0,!1);default:return!1}};function ju(a,y,x,b,E){var z=y.x;y=y.y;for(var nt=a.bounds.x-20,ot=0,at,ht,ct,gt,Nt=a.figures.s,Kt=Nt.length,Xt=0;Xt<Kt;Xt++){var ce=Nt[Xt],Ke=!ce.isEvenOdd;if(ce.isFilled){if(b&&ce.ca(z,y,x))return!0;var Te=ce.segments;at=ce.startX,ht=ce.startY;for(var $e=at,rn=ht,ln=Te.s,Bn=0;Bn<=Te.length;Bn++){var Gn=void 0;if(Bn!==Te.length){Gn=ln[Bn];var lr=Gn.type;a=Gn.endX,gt=Gn.endY}else lr=sa,a=$e,gt=rn;switch(lr){case bl:if($e=Uu(z,y,nt,y,at,ht,$e,rn),isNaN($e))return!0;ot+=$e,$e=a,rn=gt;break;case sa:if(at=Uu(z,y,nt,y,at,ht,a,gt),isNaN(at))return!0;ot+=at;break;case pu:ct=Ln.Fo(at,ht,Gn.point1X,Gn.point1Y,Gn.point2X,Gn.point2Y,a,gt,nt,y,z,y,.5),ot+=ct;break;case gh:ct=Ln.Fo(at,ht,(at+2*Gn.point1X)/3,(ht+2*Gn.point1Y)/3,(2*Gn.point1X+a)/3,(2*Gn.point1Y+gt)/3,a,gt,nt,y,z,y,.5),ot+=ct;break;case xl:case Oh:lr=Gn.type===xl?Xu(Gn,ce):Ku(Gn,ce,at,ht);var kr=lr.length;if(kr===0){if(at=Uu(z,y,nt,y,at,ht,Gn.type===xl?Gn.centerX:Gn.endX,Gn.type===xl?Gn.centerY:Gn.endY),isNaN(at))return!0;ot+=at;break}Gn=null;for(var Sr=0;Sr<kr;Sr++){if(Gn=lr[Sr],Sr===0){if(ct=Uu(z,y,nt,y,at,ht,Gn[0],Gn[1]),isNaN(ct))return!0;ot+=ct}ct=Ln.Fo(Gn[0],Gn[1],Gn[2],Gn[3],Gn[4],Gn[5],Gn[6],Gn[7],nt,y,z,y,.5),ot+=ct}Gn!==null&&(a=Gn[6],gt=Gn[7]);break;default:sn("Unknown Segment type: "+Gn.type)}at=a,ht=gt}if(Ke){if(ot!==0)return!0}else if(ot%2!==0)return!0;ot=0}else if(ce.ca(z,y,E?x:x+2))return!0}return!1}function Uu(a,y,x,b,E,z,nt,ot){if(Ln.Yb(E,z,nt,ot,.05,a,y))return NaN;var at=(a-x)*(z-ot);if(at===0)return 0;var ht=((a*b-y*x)*(E-nt)-(a-x)*(E*ot-z*nt))/at;if(y=(a*b-y*x)*(z-ot)/at,ht>=a)return 0;if((E>nt?E-nt:nt-E)<(z>ot?z-ot:ot-z)){if(z<ot){if(y<z||y>ot)return 0}else if(y<ot||y>z)return 0}else if(E<nt){if(ht<E||ht>nt)return 0}else if(ht<nt||ht>E)return 0;return 0<at?1:-1}function fh(a,y,x,b){a=a.figures.s;for(var E=a.length,z=0;z<E;z++)if(a[z].ca(y,x,b))return!0;return!1}Vt.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new ke),this.type===$i.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,z=this.flattenedTotalLength*a,nt=0,ot=0;ot<E;ot++){var at=b[ot],ht=at.length;for(a=0;a<ht;a++){var ct=at[a];if(nt+ct>=z)return b=z-nt,b=ct===0?0:b/ct,x=x[ot],ot=x[2*a],E=x[2*a+1],y.h(ot+(x[2*a+2]-ot)*b,E+(x[2*a+3]-E)*b),y;nt+=ct}}return y},Vt.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===$i.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,z=0,nt=0;nt<b;nt++){var ot=x[nt],at=ot.length;for(a=0;a<at;a++){var ht=ot[a];if(z+ht>=E)return E=y[nt],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;z+=ht}}return NaN},Vt.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===$i.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,z=this.flattenedTotalLength*a,nt=0,ot=0;ot<E;ot++){var at=b[ot],ht=at.length;for(a=0;a<ht;a++){var ct=at[a];if(nt+ct>=z)return b=z-nt,b=ct===0?0:b/ct,ct=x[ot],x=ct[2*a],ot=ct[2*a+1],E=ct[2*a+2],a=ct[2*a+3],y[0]=x+(E-x)*b,y[1]=ot+(a-ot)*b,y[2]=1>Math.abs(E-x)&&1>Math.abs(a-ot)?0:1>Math.abs(E-x)?0<=a-ot?90:270:1>Math.abs(a-ot)?0<=E-x?0:180:180*Math.atan2(a-ot,E-x)/Math.PI,y;nt+=ct}}return y},Vt.xx=function(a){if(this.type===$i.j){var y=this.startX,x=this.startY,b=this.endX,E=this.endY;if(y!==b||x!==E){var z=a.x;if(a=a.y,y===b){if(x<E){var nt=x;b=E}else nt=E,b=x;return a<=nt?nt===x?0:1:a>=b?b===x?0:1:Math.abs(a-x)/(b-nt)}if(x===E)return y<b?nt=y:(nt=b,b=y),z<=nt?nt===y?0:1:z>=b?b===y?0:1:Math.abs(z-y)/(b-nt);nt=(b-y)*(b-y)+(E-x)*(E-x);var ot=ke.alloc();return Ln.qh(y,x,b,E,z,a,ot),a=ot.x,z=ot.y,ke.free(ot),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/nt)}}else if(this.type===$i.u){nt=this.startX,ot=this.startY;var at=this.endX;if(E=this.endY,nt!==at||ot!==E){y=at-nt,x=E-ot,z=2*y+2*x,b=a.x,a=a.y,b=Math.min(Math.max(b,nt),at),a=Math.min(Math.max(a,ot),E),nt=Math.abs(b-nt),at=Math.abs(b-at),ot=Math.abs(a-ot),E=Math.abs(a-E);var ht=Math.min(nt,at,ot,E);if(ht===ot)return b/z;if(ht===at)return(y+a)/z;if(ht===E)return(2*y+x-b)/z;if(ht===nt)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,b=ke.alloc(),E=1/0,ot=nt=0,at=y.length;for(var ct=ht=0,gt=0;gt<at;gt++)for(var Nt=y[gt],Kt=x[gt],Xt=Nt.length,ce=0;ce<Xt;ce+=2){var Ke=Nt[ce],Te=Nt[ce+1];if(ce!==0){Ln.qh(ht,ct,Ke,Te,a.x,a.y,b);var $e=(b.x-a.x)*(b.x-a.x)+(b.y-a.y)*(b.y-a.y);$e<E&&(E=$e,nt=ot,nt+=Math.sqrt((b.x-ht)*(b.x-ht)+(b.y-ct)*(b.y-ct))),ot+=Kt[(ce-2)/2]}ht=Ke,ct=Te}return ke.free(b),a=nt/z,0>a?0:1<a?1:a}return 0};function _A(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],b=[],E=[];if(a.type===$i.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===$i.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===$i.F){var z=new il;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var nt=new gs(xl);if(nt.startAngle=0,nt.sweepAngle=360,nt.centerX=(a.startX+a.endX)/2,nt.centerY=(a.startY+a.endY)/2,nt.radiusX=Math.abs(a.startX-a.endX)/2,nt.radiusY=Math.abs(a.startY-a.endY)/2,z.add(nt),a=Xu(nt,z),E=a.length,E===0)b.push(nt.centerX),b.push(nt.centerY);else{nt=z.startX,z=z.startY;for(var ot=0;ot<E;ot++){var at=a[ot];Ln.Qe(nt,z,at[2],at[3],at[4],at[5],at[6],at[7],.5,b),nt=at[6],z=at[7]}}y.push(b),x.push(sd(b))}else for(a=a.figures.iterator;a.next();){E=a.value,b=[],b.push(E.startX),b.push(E.startY),nt=E.startX,z=E.startY,ot=nt,at=z;for(var ht=E.segments.s,ct=ht.length,gt=0;gt<ct;gt++){var Nt=ht[gt];switch(Nt.type){case bl:4<=b.length&&(y.push(b),x.push(sd(b))),b=[],b.push(Nt.endX),b.push(Nt.endY),nt=Nt.endX,z=Nt.endY,ot=nt,at=z;break;case sa:b.push(Nt.endX),b.push(Nt.endY),nt=Nt.endX,z=Nt.endY;break;case pu:Ln.Qe(nt,z,Nt.point1X,Nt.point1Y,Nt.point2X,Nt.point2Y,Nt.endX,Nt.endY,.5,b),nt=Nt.endX,z=Nt.endY;break;case gh:Ln.ep(nt,z,Nt.point1X,Nt.point1Y,Nt.endX,Nt.endY,.5,b),nt=Nt.endX,z=Nt.endY;break;case xl:var Kt=Xu(Nt,E),Xt=Kt.length;if(Xt===0){b.push(Nt.centerX),b.push(Nt.centerY),nt=Nt.centerX,z=Nt.centerY;break}for(var ce=0;ce<Xt;ce++){var Ke=Kt[ce];Ln.Qe(nt,z,Ke[2],Ke[3],Ke[4],Ke[5],Ke[6],Ke[7],.5,b),nt=Ke[6],z=Ke[7]}break;case Oh:if(Kt=Ku(Nt,E,nt,z),Xt=Kt.length,ce=Nt.endX,Ke=Nt.endY,Xt===0){b.push(ce),b.push(Ke),nt=ce,z=Ke;break}for(ce=0;ce<Xt;ce++)Ke=Kt[ce],Ln.Qe(nt,z,Ke[2],Ke[3],Ke[4],Ke[5],Ke[6],Ke[7],.5,b),nt=Ke[6],z=Ke[7];break;default:sn("Segment not of valid type: "+Nt.type)}Nt.isClosed&&(b.push(ot),b.push(at))}4<=b.length&&(y.push(b),x.push(sd(b)))}}}function sd(a){for(var y=[],x=0,b=0,E=a.length,z=0;z<E;z+=2){var nt=a[z],ot=a[z+1];z!==0&&y.push(Math.sqrt(Fa(x,b,nt,ot))),x=nt,b=ot}return y}Vt.add=function(a){return this.ee.add(a),this},Vt.pm=function(a,y,x,b,E,z,nt,ot){return this._isFrozen&&fi(this),this.fg=new xr(a,y,E,z).freeze(),this.gg=new xr(x,b,nt,ot).freeze(),this},Re.Object.defineProperties($i.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 _A(this),this.tk}},flattenedLengths:{get:function(){return _A(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===$i.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===$i.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],z=E.length,nt=0;nt<z;nt++)a+=E[nt]}this.zm=a}return a}},type:{get:function(){return this.na},set:function(a){this.na!==a&&(this._isFrozen&&fi(this,a),this.na=a,a===$i.o?this.ee=new Ci:($i.V===null&&($i.V=new Ci().freeze()),this.ee=$i.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&fi(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&fi(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&fi(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&fi(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&fi(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&fi(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&fi(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&fi(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),$i.prototype.setSpots=$i.prototype.pm,$i.prototype.add=$i.prototype.add,$i.prototype.getFractionForPoint=$i.prototype.xx,$i.prototype.getPointAndAngleAlongPath=$i.prototype.Qu,$i.prototype.getAngleAlongPath=$i.prototype.wx,$i.prototype.getPointAlongPath=$i.prototype.Pu,$i.prototype.containsPoint=$i.prototype.ca,$i.prototype.transform=$i.prototype.transform,$i.prototype.rotate=$i.prototype.rotate,$i.prototype.scale=$i.prototype.scale,$i.prototype.offset=$i.prototype.offset,$i.prototype.normalize=$i.prototype.normalize,$i.prototype.computeBoundsWithoutOrigin=$i.prototype.ix,$i.prototype.equalsApprox=$i.prototype.Xa,$i.className="Geometry",$i.j=new ri($i,"Line",0),$i.u=new ri($i,"Rectangle",1),$i.F=new ri($i,"Ellipse",2),$i.o=new ri($i,"Path",3),$i.V=null,$i.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",$i.className="Geometry",$i.stringify=$i.ia,$i.fillPath=$i.nb,$i.parse=$i.parse,$i.Line=$i.j,$i.Rectangle=$i.u,$i.Ellipse=$i.F,$i.Path=$i.o;function il(a,y,x,b,E){ns(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 Ci,this.sr=this.pl.Ja,this.fw=null}il.prototype.copy=function(){var a=new il;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 z=y[E].copy();b.add(z)}return a.sr=this.sr,a.fw=this.fw,a},Vt=il.prototype,Vt.Xa=function(a){if(!(a instanceof il&&Ln.B(this.startX,a.startX)&&Ln.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},Vt.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},Vt.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},Vt.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},Vt.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},Vt.add=function(a){return this.pl.add(a),this},Vt.ca=function(a,y,x){for(var b=this.startX,E=this.startY,z=b,nt=E,ot=this.segments.s,at=ot.length,ht=0;ht<at;ht++){var ct=ot[ht];switch(ct.type){case bl:z=ct.endX,nt=ct.endY,b=ct.endX,E=ct.endY;break;case sa:if(Ln.Yb(b,E,ct.endX,ct.endY,x,a,y))return!0;b=ct.endX,E=ct.endY;break;case pu:if(Ln.cs(b,E,ct.point1X,ct.point1Y,ct.point2X,ct.point2Y,ct.endX,ct.endY,.5,a,y,x))return!0;b=ct.endX,E=ct.endY;break;case gh:if(Ln.jv(b,E,ct.point1X,ct.point1Y,ct.endX,ct.endY,.5,a,y,x))return!0;b=ct.endX,E=ct.endY;break;case xl:case Oh:var gt=ct.type===xl?Xu(ct,this):Ku(ct,this,b,E),Nt=gt.length,Kt=ct.type===xl?ct.centerX:ct.endX,Xt=ct.type===xl?ct.centerY:ct.endY;if(Nt===0){if(Ln.Yb(b,E,Kt,Xt,x,a,y))return!0;b=Kt,E=Xt;break}for(Kt=null,Xt=0;Xt<Nt;Xt++)if(Kt=gt[Xt],Xt===0&&Ln.Yb(b,E,Kt[0],Kt[1],x,a,y)||Ln.cs(Kt[0],Kt[1],Kt[2],Kt[3],Kt[4],Kt[5],Kt[6],Kt[7],.5,a,y,x))return!0;Kt!==null&&(b=Kt[6],E=Kt[7]);break;default:sn("Unknown Segment type: "+ct.type)}if(ct.isClosed&&(b!==z||E!==nt)&&Ln.Yb(b,E,z,nt,x,a,y))return!0}return!1},Re.Object.defineProperties(il.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&&fi(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&fi(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&fi(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&fi(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&fi(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&fi(this,a),this.pl=a,this._isInvalidBounds=!0}}}),il.prototype.add=il.prototype.add,il.prototype.equalsApprox=il.prototype.Xa,il.className="PathFigure";function gs(a,y,x,b,E,z,nt,ot){ns(this),a===void 0&&(a=sa),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),z===void 0&&(z=0),nt===void 0&&(nt=0),a===Oh?(a=z%360,0>a&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(b,0),this.Pg=Math.max(E,0),typeof nt=="boolean"?nt&&(this.isLargeArc=!0):typeof nt=="number"&&nt&&(this.isLargeArc=!0),ot&&(this.isClockwiseArc=!0)):(this.Ne=b,this.Vh=E,a===xl&&(z=Math.max(z,0)),this.Wh=z,typeof nt=="number"?(a===xl&&(nt=Math.max(nt,0)),this.Pg=nt):this.Pg=0),this.ae=null}gs.prototype.copy=function(){var a=new gs;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},Vt=gs.prototype,Vt.Xa=function(a){if(!(a instanceof gs)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case bl:case sa:return Ln.B(this.endX,a.endX)&&Ln.B(this.endY,a.endY);case pu:return Ln.B(this.endX,a.endX)&&Ln.B(this.endY,a.endY)&&Ln.B(this.point1X,a.point1X)&&Ln.B(this.point1Y,a.point1Y)&&Ln.B(this.point2X,a.point2X)&&Ln.B(this.point2Y,a.point2Y);case gh:return Ln.B(this.endX,a.endX)&&Ln.B(this.endY,a.endY)&&Ln.B(this.point1X,a.point1X)&&Ln.B(this.point1Y,a.point1Y);case xl:return Ln.B(this.startAngle,a.startAngle)&&Ln.B(this.sweepAngle,a.sweepAngle)&&Ln.B(this.centerX,a.centerX)&&Ln.B(this.centerY,a.centerY)&&Ln.B(this.radiusX,a.radiusX)&&Ln.B(this.radiusY,a.radiusY);case Oh:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Ln.B(this.xAxisRotation,a.xAxisRotation)&&Ln.B(this.endX,a.endX)&&Ln.B(this.endY,a.endY)&&Ln.B(this.radiusX,a.radiusX)&&Ln.B(this.radiusY,a.radiusY);default:return!1}},Vt.qb=function(a){a.classType===gs&&(this.type=a)},Vt.toString=function(a){switch(a===void 0&&(a=-1),this.type){case bl:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case sa:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case pu: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 gh: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 xl: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 Oh: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":"")},Vt.freeze=function(){return this._isFrozen=!0,this},Vt.ka=function(){return this._isFrozen=!1,this},Vt.close=function(){return this.isClosed=!0,this};function Xu(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,z=Ln.jx(0,0,x<b?x:b,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==b){var nt=Ko.alloc();nt.reset(),x<b?nt.scale(1,b/x):nt.scale(x/b,1),$i.Ha(z,nt),Ko.free(nt)}for(x=z.length,b=0;b<x;b++)nt=z[b],nt[0]+=y,nt[1]+=E,nt[2]+=y,nt[3]+=E,nt[4]+=y,nt[5]+=E,nt[6]+=y,nt[7]+=E;return a.ae=z,a.ae}function Ku(a,y,x,b){function E(ce,Ke,Te,$e){return(ce*$e<Ke*Te?-1:1)*Math.acos((ce*Te+Ke*$e)/(Math.sqrt(ce*ce+Ke*Ke)*Math.sqrt(Te*Te+$e*$e)))}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 z=a.Pg;y===0&&(y=1e-4),z===0&&(z=1e-4);var nt=Math.PI/180*a.Ne,ot=a.isLargeArc,at=a.isClockwiseArc,ht=a.Dc,ct=a.Ec,gt=Math.cos(nt),Nt=Math.sin(nt),Kt=gt*(x-ht)/2+Nt*(b-ct)/2;nt=-Nt*(x-ht)/2+gt*(b-ct)/2;var Xt=Kt*Kt/(y*y)+nt*nt/(z*z);return 1<Xt&&(y*=Math.sqrt(Xt),z*=Math.sqrt(Xt)),Xt=(ot===at?-1:1)*Math.sqrt((y*y*z*z-y*y*nt*nt-z*z*Kt*Kt)/(y*y*nt*nt+z*z*Kt*Kt)),isNaN(Xt)&&(Xt=0),ot=Xt*y*nt/z,Xt=Xt*-z*Kt/y,isNaN(ot)&&(ot=0),isNaN(Xt)&&(Xt=0),x=(x+ht)/2+gt*ot-Nt*Xt,b=(b+ct)/2+Nt*ot+gt*Xt,ct=E(1,0,(Kt-ot)/y,(nt-Xt)/z),gt=(Kt-ot)/y,ht=(nt-Xt)/z,Kt=(-Kt-ot)/y,ot=(-nt-Xt)/z,nt=E(gt,ht,Kt,ot),Kt=(gt*Kt+ht*ot)/(Math.sqrt(gt*gt+ht*ht)*Math.sqrt(Kt*Kt+ot*ot)),-1>=Kt?nt=Math.PI:1<=Kt&&(nt=0),!at&&0<nt&&(nt-=2*Math.PI),at&&0>nt&&(nt+=2*Math.PI),at=y>z?1:y/z,Kt=y>z?z/y:1,y=Ln.jx(0,0,y>z?y:z,ct,ct+nt,!0),z=Ko.alloc(),z.reset(),z.translate(x,b),z.rotate(a.Ne,0,0),z.scale(at,Kt),$i.Ha(y,z),Ko.free(z),a.ae=y,a.ae}Re.Object.defineProperties(gs.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&&fi(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&fi(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&fi(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&fi(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&fi(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&fi(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&fi(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&fi(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&fi(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Zi(a,">= zero",gs,"radiusX"),this._isFrozen&&fi(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Zi(a,">= zero",gs,"radiusY"),this._isFrozen&&fi(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&fi(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&&fi(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&&fi(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&&fi(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&&fi(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),gs.prototype.equalsApprox=gs.prototype.Xa;var bl=new ri(gs,"Move",0),sa=new ri(gs,"Line",1),pu=new ri(gs,"Bezier",2),gh=new ri(gs,"QuadraticBezier",3),xl=new ri(gs,"Arc",4),Oh=new ri(gs,"SvgArc",4);gs.className="PathSegment",gs.Move=bl,gs.Line=sa,gs.Bezier=pu,gs.QuadraticBezier=gh,gs.Arc=xl,gs.SvgArc=Oh;function Su(){this.H=null,this.xu=new ke(0,0).freeze(),this.mt=new ke(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}Su.prototype.copy=function(){var a=new Su;return this.clone(a)},Su.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},Su.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},Su.prototype.So=function(a,y){var x=this.diagram;return x===null||Ed(x,a,y),y},Su.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(Ed(x,a,y),y.assign(x.Ps(y))),y},Re.Object.defineProperties(Su.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}}}),Su.prototype.getMultiTouchDocumentPoint=Su.prototype.Bz,Su.prototype.getMultiTouchViewPoint=Su.prototype.So,Su.className="InputEvent";function xd(){this.H=null,this.xa="",this.ar=this.Lr=null}xd.prototype.copy=function(){var a=new xd;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},xd.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},Re.Object.defineProperties(xd.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}}}),xd.className="DiagramEvent";function Da(){this.Fm=ja,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Da.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Da.prototype.copy=function(){var a=new Da;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=ii(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=ii(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=ii(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=ii(y)&&typeof y.J=="function"?y.J():y,a},Da.prototype.qb=function(a){a.classType===Da&&(this.change=a)},Da.prototype.toString=function(){var a="";return a=this.change===Ju?a+"* ":this.change===ja?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===Ju?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=Rr(this.object)),this.oldValue!==null&&(a+=" old: "+Rr(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Rr(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},Da.prototype.I=function(a){return a?this.oldValue:this.newValue},Da.prototype.Dz=function(a){return a?this.oldParam:this.newParam},Da.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Da.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Da.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Da.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},Re.Object.defineProperties(Da.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===Ju&&(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}}}),Da.prototype.redo=Da.prototype.redo,Da.prototype.canRedo=Da.prototype.canRedo,Da.prototype.undo=Da.prototype.undo,Da.prototype.canUndo=Da.prototype.canUndo,Da.prototype.getParam=Da.prototype.Dz,Da.prototype.getValue=Da.prototype.I,Da.prototype.clear=Da.prototype.clear;var Ju=new ri(Da,"Transaction",-1),ja=new ri(Da,"Property",0),vl=new ri(Da,"Insert",1),Zl=new ri(Da,"Remove",2);Da.className="ChangedEvent",Da.Transaction=Ju,Da.Property=ja,Da.Insert=vl,Da.Remove=Zl;function Pt(){this.o=new Ci().freeze(),this.xa="",this.j=!1}Pt.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},Pt.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()},Pt.prototype.canUndo=function(){return this.isComplete},Pt.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()}},Pt.prototype.canRedo=function(){return this.isComplete},Pt.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()}},Pt.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new Cr,x=0;x<a.count;x++){var b=a.M(x);if(b!==null&&b.change===ja&&b.object){var E=y.get(b.object);E||(E=new Cr,y.set(b.object,E));var z=E.get(b.propertyName);z===null?E.set(b.propertyName,-1):(0<z&&a.cd(z,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()}},Re.Object.defineProperties(Pt.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}}}),Pt.prototype.optimize=Pt.prototype.ak,Pt.prototype.redo=Pt.prototype.redo,Pt.prototype.canRedo=Pt.prototype.canRedo,Pt.prototype.undo=Pt.prototype.undo,Pt.prototype.canUndo=Pt.prototype.canUndo,Pt.prototype.clear=Pt.prototype.clear,Pt.className="Transaction";function mt(){this.Pt=new bi,this.Jd=!1,this.u=new Ci().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Ci().freeze(),this.hl=new Ci,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}mt.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},mt.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},mt.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},Vt=mt.prototype,Vt.Xw=function(a){this.Pt.add(a)},Vt.Rx=function(a){this.Pt.remove(a)},Vt.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},Vt.eb=function(a){return a===void 0&&(a=""),Et(this,!0,a)},Vt.Kf=function(){return Et(this,!1,"")};function Et(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&Tr("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 z=0;if(0<a.transactionLevel&&(a.bi--,a.isEnabled)){var nt=a.Ie.count;0<nt&&(x===""&&(x=a.Ie.M(0)),a.Ie.ka(),a.Ie.mb(nt-1),a.Ie.freeze()),nt=a.hl.count,0<nt&&(z=a.hl.M(nt-1),a.hl.mb(nt-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&&(z=y.M(0),z!==null&&z.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=z,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}Vt.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()}},mt.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},mt.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){Tr("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},mt.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},mt.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){Tr("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},mt.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var b=new Da;for(b.change=Ju,b.propertyName=a,b.object=x,b.oldValue=y,a=this.models;a.next();)y=a.value,b.model=y,y.ds(b)},mt.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new Pt);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||Tr("Change not within a transaction: "+x.toString()))}},mt.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},Re.Object.defineProperties(mt.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}}}),mt.prototype.handleChanged=mt.prototype.Tu,mt.prototype.redo=mt.prototype.redo,mt.prototype.undo=mt.prototype.undo,mt.prototype.canUndo=mt.prototype.canUndo,mt.prototype.discardHistoryAfterIndex=mt.prototype.lx,mt.prototype.rollbackTransaction=mt.prototype.Kf,mt.prototype.commitTransaction=mt.prototype.eb,mt.prototype.startTransaction=mt.prototype.Ea,mt.prototype.removeModel=mt.prototype.Rx,mt.prototype.addModel=mt.prototype.Xw,mt.prototype.clear=mt.prototype.clear,mt.className="UndoManager";function jt(){ns(this),this.H=jh,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new Su,this.Zr=-1}jt.prototype.toString=function(){return this.name!==""?this.name+" Tool":sr(this.constructor)},jt.prototype.updateAdornments=function(){},jt.prototype.canStart=function(){return this.isEnabled},jt.prototype.doStart=function(){},jt.prototype.doActivate=function(){this.isActive=!0},jt.prototype.doDeactivate=function(){this.isActive=!1},jt.prototype.doStop=function(){},jt.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},jt.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},jt.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},jt.prototype.doMouseMove=function(){},jt.prototype.doMouseUp=function(){this.stopTool()},jt.prototype.doMouseWheel=function(){},jt.prototype.canStartMultiTouch=function(){return!0},jt.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,ke.allocAt(NaN,NaN)),b=y.So(1,ke.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){a.Bw=a.scale;var E=b.x-x.x,z=b.y-x.y;a.Jw=Math.sqrt(E*E+z*z),y.bubbles=!1}ke.free(x),ke.free(b)},jt.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,ke.allocAt(NaN,NaN)),b=y.So(1,ke.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){var E=b.x-x.x,z=b.y-x.y;z=Math.sqrt(E*E+z*z)/a.Jw,E=new ke((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),z*=a.Bw;var nt=a.commandHandler;if(z!==a.scale&&nt.canResetZoom(z)){var ot=a.zoomPoint;a.zoomPoint=E,nt.resetZoom(z),a.zoomPoint=ot}y.bubbles=!1}ke.free(x),ke.free(b)},jt.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},jt.prototype.doKeyUp=function(){},jt.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},jt.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},jt.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(Zo?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||(Zo?y.meta:y.control)||y.shift||a.clearSelection()}},jt.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,le(a,b,x),b.handled};function le(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)}}}jt.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 z=a.Ck,nt=z;for(a.Ck=b,this.doCurrentObjectChanged(z,b),y.handled=!1;z!==null;){var ot=z.mouseLeave;if(ot!==null&&(b===z||b!==null&&b.rg(z)||(ot(y,z,b),E=!0,y.handled)))break;z=z.panel}for(z=nt,y.handled=!1;b!==null&&(nt=b.mouseEnter,!(nt!==null&&(z===b||z!==null&&z.rg(b)||(nt(y,b,z),E=!0,y.handled))));)b=b.panel;b=a.Ck}if(b!==null){for(z=b,nt="";z!==null&&(nt=z.cursor,nt==="");)z=z.panel;for(a.currentCursor=nt,y.handled=!1,z=b;z!==null&&(b=z.mouseOver,!(b!==null&&(b(y,z),E=!0,y.handled)));)z=z.panel}else this.doUpdateCursor(null),b=a.mouseOver,b!==null&&(b(y),E=!0);E&&a.$b(),a.skipsUndoManager=x}},jt.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},jt.prototype.doCurrentObjectChanged=function(){},jt.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===Ie&&!y.shift||E===Se&&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===Ie&&y.shift||E===Se&&!y.control){b=a.position.copy();var z=y.event;E=z.deltaMode;var nt=z.deltaX;z=z.deltaY;var ot="pixel";if(nt===0&&z===0||y.shift)!y.shift&&a.allowVerticalScroll?(x=3*x*a.scrollVerticalLineChange,a.scroll(ot,0<x?"up":"down",Math.abs(x))):y.shift&&a.allowHorizontalScroll&&(x=3*x*a.scrollHorizontalLineChange,a.scroll(ot,0<x?"left":"right",Math.abs(x)));else{switch(E){case 0:ot="pixel";break;case 1:ot="line";break;case 2:ot="page"}nt!==0&&a.allowHorizontalScroll&&(nt*=a.scrollHorizontalLineChange/16,a.scroll(ot,0<nt?"right":"left",Math.abs(nt))),z!==0&&a.allowVerticalScroll&&(z*=a.scrollVerticalLineChange/16,a.scroll(ot,0<z?"down":"up",Math.abs(z)))}this.doWheelChange(a,b,y)}}},jt.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},jt.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,b=y.clone(this.yy);this.Zr=_i(function(){x.doWaitAfter(b)},a)},jt.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Ve.clearTimeout(this.Zr),this.Zr=-1},jt.prototype.doWaitAfter=function(){},jt.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof bs);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},jt.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},Re.Object.defineProperties(jt.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof _n&&(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}}}),jt.prototype.startTransaction=jt.prototype.Ea,jt.className="Tool";function Zt(){jt.call(this),this.name="ToolManager",this.hb=new Ci,this.ob=new Ci,this.Hb=new Ci,this.F=this.V=850,this.o=new Ki(2,2).ja(),this.Ha=5e3,this.ia=Se,this.u=mn,this.Mp=this.j=null,this.zj=-1}On(Zt,jt),Zt.prototype.initializeStandardTools=function(){},Zt.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof bs&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},Zt.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===pn&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Tn){y.bubbles=!0;return}if(this.gestureBehavior===pn)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===Se?this.mouseWheelBehavior=Ie:this.mouseWheelBehavior===Ie&&(this.mouseWheelBehavior=Se)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},Zt.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===Tn){y.bubbles=!0;return}if(this.gestureBehavior===pn)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}}ye(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function ye(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}Zt.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof bs&&(y===a||y.rg(a))||this.hideToolTip()},Zt.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()))},Zt.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)},Zt.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 bs)||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()},Zt.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof bs){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 Or&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(Ve.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var E=this;this.zj=_i(function(){E.hideToolTip()},a)}},Zt.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}},Zt.prototype.hideToolTip=function(){this.zj!==-1&&(Ve.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof bs?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Or&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},Zt.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()},Zt.prototype.doMouseWheel=function(){this.standardMouseWheel()},Zt.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},Zt.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},Zt.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},Zt.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},Zt.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)},Re.Object.defineProperties(Zt.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 bs?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}}}),Zt.prototype.replaceStandardTool=Zt.prototype.gb;var Se=new ri(Zt,"WheelScroll",0),Ie=new ri(Zt,"WheelZoom",1),tn=new ri(Zt,"WheelNone",2),mn=new ri(Zt,"GestureZoom",3),pn=new ri(Zt,"GestureCancel",4),Tn=new ri(Zt,"GestureNone",5);Zt.className="ToolManager",Zt.WheelScroll=Se,Zt.WheelZoom=Ie,Zt.WheelNone=tn,Zt.GestureZoom=mn,Zt.GestureCancel=pn,Zt.GestureNone=Tn;function ze(){jt.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 ke(NaN,NaN),this.Fr=new ke,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new bi().freeze(),this.ia=new st,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var di;On(ze,jt),ze.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},ze.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},ze.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,(Zo?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},ze.prototype.doActivate=function(){var a=this.diagram;this.Bn=null,this.currentPart===null&&this.standardMouseSelect();var y=this.currentPart;y!==null&&(y.canMove()||y.canCopy())&&(a.Fu(!0),on=null,this.isActive=!0,this.tl.set(a.position),$n(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&&vu(a),Kd(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,on=this,cn=this.diagram,this.doSimulatedDragOut()))};function $n(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof Vi?(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 oi,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}ze.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},ze.prototype.Pd=function(a){return a===void 0?new sc(ts):this.isGridSnapEnabled?new sc(new ke(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new sc(a.copy())},ze.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),pi(this),gc(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<di.count){for(var y=di,x=y.length,b=0;b<x;b++){var E=y.M(b);ur(E),Hi(E),pi(E),E.diagram.ug()}y.clear()}ur(this),this.tl.h(NaN,NaN),cn!==null&&(cn.currentCursor=""),on=cn=null,Hi(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),Sd(a,!0)},ze.prototype.stopTransaction=function(){var a=this.diagram,y=jt.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function pi(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,Ti(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function Hn(){var a=on;Hi(a),io(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}ze.prototype.doCancel=function(){Hi(this),io(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},ze.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},ze.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function gi(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")):io(a),x.skipsUndoManager=!y,x.partManager.addsToTemporaryLayer=!y,a.startPoint=x.firstInput.documentPoint,y=a.copiesEffectiveCollection?a.draggedParts.Lf():x.selection,y=x.Kj(y,x,!0),x=new Cr,b=a.draggedParts.iterator;b.next();){var E=b.key;if(E.Zc()&&E.canCopy()){var z=y.I(E);z!==null&&(z.location=E.location,z.Va(),x.add(z,a.Pd(z.location)))}}for(y=y.iterator;y.next();)b=y.value,b instanceof Vi&&b.canCopy()&&x.add(b,a.Pd());a.copiedParts=x,$n(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Nf(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function Hi(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 Vi&&(x.value.point=new ke(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function ur(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 Ir(a,y,x){var b=a.diagram,E=a.startPoint,z=ke.alloc();z.assign(b.lastInput.documentPoint),a.moveParts(y,z.re(E),x),ke.free(z),b.Gf("temporaryPixelRatio")===!0&&b.Yh===null&&30<b.$w&&(vu(b),b.hk())}ze.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var b=this.diagram;b!==null&&Ic(b,a,y,this.dragOptions,x)};function io(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 Vi&&b.suspendsRouting){var E=x.value.point;a.draggedParts.add(b,a.Pd()),Nf(b,-E.x,-E.y)}y.bd()}}function vr(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),zn(a,!1));var b=a.findDragOverObject(y),E=x.lastInput;E.targetObject=b,a.doUpdateCursor(b);var z=x.skipsUndoManager,nt=!1;try{if(x.skipsUndoManager=!0,nt=Ti(a,E,b),!a.isActive&&on===null)return;var ot=b!==null?b.part:null;if(ot===null||x.handlesDragDropForTopLevelParts&&ot.isTopLevel&&!(ot instanceof _o)){var at=x.mouseDragOver;at!==null&&(at(E),nt=!0)}if(!a.isActive&&on===null||(a.doDragOver(y,b),!a.isActive&&on===null))return}finally{x.skipsUndoManager=z,nt&&x.bd()}a.Bn=b,x.isReadOnly||!x.allowMove&&!x.allowCopy||!x.allowHorizontalScroll&&!x.allowVerticalScroll||x.gs(E.viewPoint)}ze.prototype.findDragOverObject=function(a){var y=this;return Ys(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof bs||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},ze.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 Ti(a,y,x){var b=!1,E=a.Cg.length,z=0<E?a.Cg[0]:null;if(x===z)return!1;y.handled=!1;for(var nt=0;nt<E;nt++){var ot=a.Cg[nt],at=ot.mouseDragLeave;if(at!==null&&(at(y,ot,x),b=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&on===null||x===null)return b;for(y.handled=!1,E=x;E!==null;)a.Cg.push(E),E=Br(E);for(E=a.Cg.length,x=0;x<E&&(nt=a.Cg[x],ot=nt.mouseDragEnter,ot===null||(ot(y,nt,z),b=!0,!y.handled));x++);return b}function Br(a){var y=a.panel;return y!==null?y:a instanceof Yr&&!(a instanceof _o)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function Vr(a,y,x){var b=a.Oe;if(b===null)return null;var E=a.diagram.og(y,b.portGravity,function(ht){return b.findValidLinkablePort(ht,x)});a=ke.alloc();var z=1/0,nt=null;for(E=E.iterator;E.next();){var ot=E.value;if(ot.part!==null){var at=ot.ga(Yo,a);at=y.Bf(at),at<z&&(nt=ot,z=at)}}return ke.free(a),nt}function zn(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 z=null,nt=null;x.fromNode===null&&(z=Vr(a,x.i(0),!1),z!==null&&(nt=z.part));var ot=null,at=null;x.toNode===null&&(ot=Vr(a,x.i(x.pointsCount-1),!0),ot!==null&&(at=ot.part)),E.isValidLink(nt,z,at,ot)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=nt,z!==null&&(x.fromPortId=z.portId),x.toNode=at,ot!==null&&(x.toPortId=ot.portId),x.fromPort!==b.Mx&&b.R("LinkRelinked",x,b.Mx),x.toPort!==b.Nx&&b.R("LinkRelinked",x,b.Nx)):Fi(E,nt,z,at,ot):Fi(E,null,null,null,null)}}}}ze.prototype.doDragOver=function(){};function Xn(a,y){var x=a.diagram;a.dragsLink&&zn(a,!0),pi(a);var b=a.findDragOverObject(y),E=x.lastInput;if(E.targetObject=b,b!==null){E.handled=!1;for(var z=b;z!==null;){var nt=z.mouseDrop;if(nt!==null&&(nt(E,z),E.handled))break;Yi(a,E,z),z=Br(z)}}else z=x.mouseDrop,z!==null&&z(E);if(a.isActive||on!==null){for(E=(a.copiedParts||a.draggedParts).iterator;E.next();)z=E.key,z instanceof Ar&&z.linksConnected.each(function(ot){ot.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||on!==null){for(a=ai.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof Ar&&ve(x,b,a);ai.free(a)}}}function Yi(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof _o||(x=a.mouseDrop,x!==null&&x(y))}function ve(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 Vi},!0,function(E){return E instanceof Vi},b),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}ze.prototype.doDropOnto=function(){},ze.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()?(gi(this,!1),Kd(a,this.copiedParts),Ir(this,this.copiedParts,!1),gc(a,this.copiedParts)):this.mayMove()?(Hi(this),Ir(this,this.draggedParts,!0)):this.mayDragOut()?(gi(this,!1),Ir(this,this.copiedParts,!1)):Hi(this),vr(this,a.lastInput.documentPoint))}},ze.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?(Hi(this),gi(this,!0),Kd(a,this.copiedParts),Ir(this,this.copiedParts,!1),gc(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,Hi(this),this.mayMove()&&(Ir(this,this.draggedParts,!0),vr(this,a.lastInput.documentPoint))),this.Ym=!0,Xn(this,a.lastInput.documentPoint),this.isActive){var b=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&Ee(this),a.Ya(),gc(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",b)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},ze.prototype.simulatedMouseMove=function(a,y,x){if(on===null)return!1;var b=on.diagram;x instanceof _n||(x=null);var E=cn;return x!==E&&(E!==null&&E!==b&&(E.ug(),on.isDragOutStarted=!1,E=E.toolManager.findTool("Dragging"),E!==null&&E.doSimulatedDragLeave()),cn=x,x!==null&&x!==b&&(Hn(),E=x.toolManager.findTool("Dragging"),E!==null&&(di.contains(E)||di.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)},ze.prototype.simulatedMouseUp=function(a,y,x){if(on===null)return!1;var b=cn,E=on.diagram;if(x===null)return on.doCancel(),!0;if(x!==b){var z=b.toolManager.findTool("Dragging");if(b!==null&&b!==E&&z!==null)return b.ug(),on.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;cn=x,b=x.toolManager.findTool("Dragging"),b!==null&&(Hn(),di.contains(b)||di.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 ke),x.lastInput.documentPoint=y,x.lastInput.viewPoint=x.op(y),x.lastInput.down=!1,x.lastInput.up=!0,a=x.toolManager.findTool("Dragging"),a!==null&&a.doSimulatedDrop(),a=on,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function Ee(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof Ar&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}ze.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(Zo?!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())},ze.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())},ze.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())},ze.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},ze.prototype.Az=function(){return on},ze.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=on;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},ze.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),cu(a),a.animationManager.Cc(),a=on,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},ze.prototype.doSimulatedDragLeave=function(){var a=on;a!==null&&a.doSimulatedDragOut(),this.doCancel()},ze.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=on;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;Ye(this,y.draggedParts.Lf(),!1,a.firstInput),Ir(this,this.copiedParts,!1),vr(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},ze.prototype.doSimulatedDrop=function(){var a=this.diagram,y=on;if(y!==null){var x=y.diagram;if(y.Ym=!0,Hi(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),Ye(this,y.draggedParts.Lf(),!0,a.lastInput),Ir(this,this.copiedParts,!1);var b=new bi;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0,b.add(E)})),Xn(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 Ye(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 z=ai.alloc();E=b=1/0;for(var nt=-1/0,ot=-1/0,at=y.iterator;at.next();){var ht=at.value;if(ht.isVisible()){var ct=ht.location;ht=ct.x,ct=ct.y,isNaN(ht)||isNaN(ct)||(ht<b&&(b=ht),ct<E&&(E=ct),ht>nt&&(nt=ht),ct>ot&&(ot=ct))}}for(b===1/0?z.h(0,0,0,0):z.h(b,E,nt-b,ot-E),b=z.x+z.width/2,E=z.y+z.height/2,ai.free(z),z=a.Fr,nt=new Cr,ot=ke.alloc(),at=y.iterator;at.next();)ht=at.value,ht instanceof Vi&&ht.canCopy()&&(ct=x.I(ht),ct!==null&&(ct.points=ht.points,Nf(ct,z.x-b,z.y-E),ct.suspendsRouting=!0,nt.add(ct,a.Pd())));for(y=y.iterator;y.next();)ht=y.value,ht.Zc()&&ht.canCopy()&&(at=x.I(ht),at!==null&&(ht=ht.location,ot.h(z.x-(b-ht.x),z.y-(E-ht.y)),at.location=ot,at.Va(),nt.add(at,a.Pd(ot))));ke.free(ot),a.copiedParts=nt,$n(a,nt.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Nf(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}ze.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},ze.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new ke},Re.Object.defineProperties(ze.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}}}),ze.prototype.getDraggingSource=ze.prototype.Az;var on=null,cn=null;ze.className="DraggingTool",di=new Ci,Xr("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Zt.prototype.doCancel=function(){on!==null&&on.doCancel(),jt.prototype.doCancel.call(this)};function dn(){jt.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Vi,y=new Go;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Go,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new Ar,y=new Go,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Es,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new Ar,y=new Go,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Es,a.add(y),a.selectable=!1,a.layerName="Tool",this.Di=a,this.o=y,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new Cr,this.Of=this.gj=this.Pf=null}On(dn,jt),dn.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},dn.prototype.copyPortProperties=function(a,y,x,b,E){if(a!==null&&y!==null&&x!==null&&b!==null){var z=y.Df(),nt=Ki.alloc();nt.width=y.naturalBounds.width*z,nt.height=y.naturalBounds.height*z,b.desiredSize=nt,Ki.free(nt),E?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=Yo,z=ke.alloc(),x.location=y.ga(Yo,z),ke.free(z),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,E)}},dn.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=Es,y.fromSpot=Ma,y.toSpot=Ma),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},dn.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},dn.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof Ar){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)}},dn.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof Ar))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof Ar)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(b===!1)break;a=a.panel}return null},dn.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,b=this.portGravity;0>=b&&(b=.1);var E=this,z=y.og(x,b,function(gt){return E.findValidLinkablePort(gt,a)},null,!0);for(b=1/0,y=null,z=z.iterator;z.next();){var nt=z.value,ot=nt.part;if(ot instanceof Ar){var at=nt.ga(Yo,ke.alloc()),ht=x.x-at.x,ct=x.y-at.y;ke.free(at),at=ht*ht+ct*ct,at<b&&(ht=this.validPortsCache.I(nt),ht!==null?ht&&(y=nt,b=at):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,ot,nt)||!a&&this.isValidLink(ot,nt,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(nt,!0),y=nt,b=at):this.validPortsCache.add(nt,!1))}}return y!==null&&(x=y.part,x instanceof Ar&&(x.layer===null||x.layer.allowLink))?y:null},dn.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},dn.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},dn.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},dn.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof Ar))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof Ar))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},dn.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)},dn.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 bi;return b.add(a),Dn(this,x,y,b)};function Dn(a,y,x,b){if(y===x)return!0;var E=y.fromNode;return E!==null&&E.isLinkLabel&&(b.add(E),Dn(a,E.labeledLink,x,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),Dn(a,y.labeledLink,x,b))))}dn.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!==Eh){if(b===dA){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!Jn(this,a,y,x,!0)}if(b===AA){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!Jn(this,a,y,x,!0)}if(b===oc)return a===y?a=!0:(b=new bi,b.add(y),a=Ue(this,b,a,y,x)),!a;if(b===Vd)return!Jn(this,a,y,x,!1);if(b===cA)return a===y?a=!0:(b=new bi,b.add(y),a=hn(this,b,a,y,x)),!a}return!0};function Jn(a,y,x,b,E){if(y===x)return!0;if(y===null||x===null)return!1;for(var z=y.linksConnected;z.next();){var nt=z.value;if(nt!==b&&(!E||nt.isTreeLink)&&nt.toNode===y&&(nt=nt.fromNode,nt!==y&&Jn(a,nt,x,b,E)))return!0}return!1}function Ue(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 z=x.linksConnected;z.next();){var nt=z.value;if(nt!==E&&nt.toNode===x&&(nt=nt.fromNode,nt!==x&&Ue(a,y,nt,b,E)))return!0}return!1}function hn(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 z=x.linksConnected;z.next();){var nt=z.value;if(nt!==E){var ot=nt.fromNode;if(nt=nt.toNode,ot=ot===x?nt:ot,ot!==x&&hn(a,y,ot,b,E))return!0}}return!1}Re.Object.defineProperties(dn.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}}}),dn.className="LinkingBaseTool";function yn(){dn.call(this),this.name="Linking",this.V={},this.F=null,this.K=Mn,this.Xd=null}On(yn,dn),yn.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},yn.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 Ar)))return null;var x=this.direction;if(x===Mn||x===Zn){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===Mn||x===li)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},yn.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 Ar&&(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 Ar&&(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)},yn.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()},yn.prototype.doStop=function(){dn.prototype.doStop.call(this),this.startObject=null},yn.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,b=null,E=null,z=null;try{var nt=this.targetPort=this.findTargetPort(this.isForwards);if(nt!==null){var ot=nt.part;ot instanceof Ar&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),b=ot,E=nt):(y=ot,x=nt,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?(z=this.insertLink(y,x,b,E),z!==null?(nt===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),z.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",z)):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(),z&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},yn.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof Vi)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)},yn.prototype.insertLink=function(a,y,x,b){return this.diagram.partManager.insertLink(a,y,x,b)},yn.prototype.doNoLink=function(){},Re.Object.defineProperties(yn.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 Mn=new ri(yn,"Either",0),Zn=new ri(yn,"ForwardsOnly",0),li=new ri(yn,"BackwardsOnly",0);yn.className="LinkingTool",yn.Either=Mn,yn.ForwardsOnly=Zn,yn.BackwardsOnly=li;function oi(){dn.call(this),this.name="Relinking";var a=new Go;a.figure="Diamond",a.desiredSize=ca,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Go,a.figure="Diamond",a.desiredSize=ca,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new ai}On(oi,dn),oi.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Vi){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)}},oi.prototype.makeAdornment=function(a,y){var x=new bs;return x.type=qn.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},oi.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},oi.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 bs&&x.adornedPart instanceof Vi))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=Eo),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=Eo),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},oi.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===_p||x===If)&&(x=Vh),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}},oi.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()},oi.prototype.doStop=function(){dn.prototype.doStop.call(this),this.handle=null},oi.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,z=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var nt=this.targetPort.part;nt instanceof Ar&&(this.isForwards?(b=nt,E=this.targetPort):(y=nt,x=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?E=b=null:x=y=null:z=null;z!==null?(this.reconnectLink(z,this.isForwards?b:y,this.isForwards?E:x,this.isForwards),this.targetPort===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint,z.bb()),this.transactionResult=this.name,a.R("LinkRelinked",z,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.Xo(this.Ew)}finally{this.stopTool()}}},oi.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},oi.prototype.doNoRelink=function(){};function Fi(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)}Re.Object.defineProperties(oi.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 bs))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),oi.className="RelinkingTool",Xr("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),Xr("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function ki(){jt.call(this),this.name="LinkReshaping";var a=new Go;a.figure="Rectangle",a.desiredSize=la,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new Go,a.figure="Diamond",a.desiredSize=ca,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new ke,this.Yq=new Ci}On(ki,jt),ki.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:ar},ki.prototype.om=function(a,y){a.reshapingBehavior=y},ki.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Vi){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)}},ki.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,b=y.isOrthogonal,E=null;if(y.points!==null&&1<x){E=new bs,E.type=qn.Link,x=y.firstPickIndex;var z=y.lastPickIndex,nt=b?1:0;if(y.resegmentable&&y.computeCurve()!==nd)for(var ot=x+nt;ot<z-nt;ot++){var at=this.makeResegmentHandle(a,ot);at!==null&&(at.segmentIndex=ot,at.segmentFraction=.5,at.fromMaxLinks=999,E.add(at))}for(nt=x+1;nt<z;nt++)if(ot=this.makeHandle(a,nt),ot!==null){if(ot.segmentIndex=nt,nt!==x)if(nt===x+1&&b){at=y.i(x);var ht=y.i(x+1);Ln.B(at.x,ht.x)&&Ln.B(at.y,ht.y)&&(ht=y.i(x-1)),Ln.B(at.x,ht.x)?(this.om(ot,qr),ot.cursor="n-resize"):Ln.B(at.y,ht.y)&&(this.om(ot,gr),ot.cursor="w-resize")}else nt===z-1&&b?(at=y.i(z-1),ht=y.i(z),Ln.B(at.x,ht.x)&&Ln.B(at.y,ht.y)&&(at=y.i(z+1)),Ln.B(at.x,ht.x)?(this.om(ot,qr),ot.cursor="n-resize"):Ln.B(at.y,ht.y)&&(this.om(ot,gr),ot.cursor="w-resize")):nt!==z&&(this.om(ot,qi),ot.cursor="move");E.add(ot)}E.adornedObject=a}return E},ki.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},ki.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},ki.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},ki.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 Vi){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}}},ki.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},ki.prototype.stopTransaction=function(){var a=this.diagram,y=jt.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},ki.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},ki.prototype.getResegmentingPoint=function(){return this.handle.ga(Yo)},ki.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},ki.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),z=y.i(x+1);if(y.isOrthogonal){if(x>y.firstPickIndex+1&&x<y.lastPickIndex-1){var nt=y.i(x-2);if(Math.abs(b.x-E.x)<this.resegmentingDistance&&Math.abs(b.y-E.y)<this.resegmentingDistance&&(Xi(this,nt,b,E,z,!0)||Xi(this,nt,b,E,z,!1))){var ot=y.points.copy();Xi(this,nt,b,E,z,!0)?(ot.cd(x-2,new ke(nt.x,(z.y+nt.y)/2)),ot.cd(x+1,new ke(z.x,(z.y+nt.y)/2))):(ot.cd(x-2,new ke((z.x+nt.x)/2,nt.y)),ot.cd(x+1,new ke((z.x+nt.x)/2,z.y))),ot.mb(x),ot.mb(x-1),y.points=ot,y.Wb()}else nt=y.i(x+2),Math.abs(E.x-z.x)<this.resegmentingDistance&&Math.abs(E.y-z.y)<this.resegmentingDistance&&(Xi(this,b,E,z,nt,!0)||Xi(this,b,E,z,nt,!1))&&(ot=y.points.copy(),Xi(this,b,E,z,nt,!0)?(ot.cd(x-1,new ke(b.x,(b.y+nt.y)/2)),ot.cd(x+2,new ke(nt.x,(b.y+nt.y)/2))):(ot.cd(x-1,new ke((b.x+nt.x)/2,b.y)),ot.cd(x+2,new ke((b.x+nt.x)/2,nt.y))),ot.mb(x+1),ot.mb(x),y.points=ot,y.Wb())}}else nt=ke.alloc(),Ln.qh(b.x,b.y,z.x,z.y,E.x,E.y,nt)&&nt.Bf(E)<this.resegmentingDistance*this.resegmentingDistance&&(b=y.points.copy(),b.mb(x),y.points=b,y.Wb()),ke.free(nt)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function Xi(a,y,x,b,E,z){return z?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}ki.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===qr?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):b===gr&&(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===qr?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):b===gr&&(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),z=y.i(b-1),nt=y.i(b+1);Ln.B(z.x,E.x)&&Ln.B(E.y,nt.y)?(Ln.B(z.x,y.i(b-2).x)&&!Ln.B(z.y,y.i(b-2).y)?(y.m(b,a.x,z.y),x++,b++):y.L(b-1,a.x,z.y),Ln.B(nt.y,y.i(b+2).y)&&!Ln.B(nt.x,y.i(b+2).x)?y.m(b+1,nt.x,a.y):y.L(b+1,nt.x,a.y)):Ln.B(z.y,E.y)&&Ln.B(E.x,nt.x)?(Ln.B(z.y,y.i(b-2).y)&&!Ln.B(z.x,y.i(b-2).x)?(y.m(b,z.x,a.y),x++,b++):y.L(b-1,z.x,a.y),Ln.B(nt.x,y.i(b+2).x)&&!Ln.B(nt.y,y.i(b+2).y)?y.m(b+1,a.x,nt.y):y.L(b+1,a.x,nt.y)):Ln.B(z.x,E.x)&&Ln.B(E.x,nt.x)?(Ln.B(z.x,y.i(b-2).x)&&!Ln.B(z.y,y.i(b-2).y)?(y.m(b,a.x,z.y),x++,b++):y.L(b-1,a.x,z.y),Ln.B(nt.x,y.i(b+2).x)&&!Ln.B(nt.y,y.i(b+2).y)?y.m(b+1,a.x,nt.y):y.L(b+1,a.x,nt.y)):Ln.B(z.y,E.y)&&Ln.B(E.y,nt.y)&&(Ln.B(z.y,y.i(b-2).y)&&!Ln.B(z.x,y.i(b-2).x)?(y.m(b,z.x,a.y),x++,b++):y.L(b-1,z.x,a.y),Ln.B(nt.y,y.i(b+2).y)&&!Ln.B(nt.x,y.i(b+2).x)?y.m(b+1,nt.x,a.y):y.L(b+1,nt.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&&(z=b.findVisibleNode(),z!==null&&z!==b&&(b=z,E=b.port)),x===1&&y.computeSpot(!0,E).Mc()&&(z=E.ga(Yo,ke.alloc()),b=y.getLinkPointFromPoint(b,E,z,a,!0,ke.alloc()),y.L(0,b.x,b.y),ke.free(z),ke.free(b)),b=y.toNode,E=y.toPort,b!==null&&(z=b.findVisibleNode(),z!==null&&z!==b&&(b=z,E=b.port)),x===y.pointsCount-2&&y.computeSpot(!1,E).Mc()&&(x=E.ga(Yo,ke.alloc()),a=y.getLinkPointFromPoint(b,E,x,a,!1,ke.alloc()),y.L(y.pointsCount-1,a.x,a.y),ke.free(x),ke.free(a));y.zf()},ki.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case qi:return a;case qr:return new ke(y.i(x).x,a.y);case gr:return new ke(a.x,y.i(x).y);default:case ar:return y.i(x)}},Re.Object.defineProperties(ki.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 bs))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}}}),ki.prototype.setReshapingBehavior=ki.prototype.om,ki.prototype.getReshapingBehavior=ki.prototype.Ru;var ar=new ri(ki,"None",0),gr=new ri(ki,"Horizontal",1),qr=new ri(ki,"Vertical",2),qi=new ri(ki,"All",3);ki.className="LinkReshapingTool",ki.None=ar,ki.Horizontal=gr,ki.Vertical=qr,ki.All=qi,Xr("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function Qn(){jt.call(this),this.name="Resizing",this.o=new Ki(1,1).freeze(),this.j=new Ki(9999,9999).freeze(),this.yg=new Ki(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new Go;a.alignmentFocus=Yo,a.figure="Rectangle",a.desiredSize=la,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new ke,this.Dw=new Ki,this.Tn=new ke,this.rt=new Ki(0,0),this.qt=new Ki(1/0,1/0),this.pt=new Ki(1,1)}On(Qn,jt),Qn.prototype.updateAdornments=function(a){if(!(a===null||a instanceof Vi)){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(),ng(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},Qn.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new bs,y.type=qn.Spot,y.locationSpot=Yo;var x=new Wh;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,Oa)),y.add(this.makeHandle(a,su)),y.add(this.makeHandle(a,Ll)),y.add(this.makeHandle(a,Cs)),y.add(this.makeHandle(a,Wa)),y.add(this.makeHandle(a,nl)),y.add(this.makeHandle(a,Dl)),y.add(this.makeHandle(a,Aa))}else if(lh(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Qn.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},Qn.prototype.updateResizeHandles=function(a,y){if(a!==null){if(!a.alignment.Xb()&&(a.cursor==="pointer"||0<a.cursor.indexOf("resize")))t:{var x=a.alignment;if(x.Mc()&&(x=Yo),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 t;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 qn)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},Qn.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},Qn.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))},Qn.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},Qn.prototype.stopTransaction=function(){var a=this.diagram,y=jt.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Qn.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},Qn.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,ke.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),a.bd(),ke.free(E)}},Qn.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,ke.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),ke.free(E),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},Qn.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 _o){var b=new Ci;if(b.add(a),!this.dragsMembers&&a.placeholder===null){var E=new st;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()}},Qn.prototype.computeResize=function(a,y,x,b,E,z){y.Mc()&&(y=Yo);var nt=this.adornedObject.naturalBounds,ot=nt.x,at=nt.y,ht=nt.x+nt.width,ct=nt.y+nt.height,gt=1;if(!z){gt=nt.width;var Nt=nt.height;0>=gt&&(gt=1),0>=Nt&&(Nt=1),gt=Nt/gt}return Nt=ke.alloc(),Ln.No(a.x,a.y,ot,at,E.width,E.height,Nt),a=nt.copy(),0>=y.x?0>=y.y?(a.x=Math.max(Nt.x,ht-b.width),a.x=Math.min(a.x,ht-x.width),a.width=Math.max(ht-a.x,x.width),a.y=Math.max(Nt.y,ct-b.height),a.y=Math.min(a.y,ct-x.height),a.height=Math.max(ct-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(gt*a.width,b.height),x.height),a.width=a.height/gt):(a.width=Math.max(Math.min(a.height/gt,b.width),x.width),a.height=gt*a.width),a.x=ht-a.width,a.y=ct-a.height)):1<=y.y?(a.x=Math.max(Nt.x,ht-b.width),a.x=Math.min(a.x,ht-x.width),a.width=Math.max(ht-a.x,x.width),a.height=Math.max(Math.min(Nt.y-at,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(gt*a.width,b.height),x.height),a.width=a.height/gt):(a.width=Math.max(Math.min(a.height/gt,b.width),x.width),a.height=gt*a.width),a.x=ht-a.width)):(a.x=Math.max(Nt.x,ht-b.width),a.x=Math.min(a.x,ht-x.width),a.width=ht-a.x,z||(a.height=Math.max(Math.min(gt*a.width,b.height),x.height),a.width=a.height/gt,a.y=at+.5*(ct-at-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(Nt.x-ot,b.width),x.width),a.y=Math.max(Nt.y,ct-b.height),a.y=Math.min(a.y,ct-x.height),a.height=Math.max(ct-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(gt*a.width,b.height),x.height),a.width=a.height/gt):(a.width=Math.max(Math.min(a.height/gt,b.width),x.width),a.height=gt*a.width),a.y=ct-a.height)):1<=y.y?(a.width=Math.max(Math.min(Nt.x-ot,b.width),x.width),a.height=Math.max(Math.min(Nt.y-at,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(gt*a.width,b.height),x.height),a.width=a.height/gt):(a.width=Math.max(Math.min(a.height/gt,b.width),x.width),a.height=gt*a.width))):(a.width=Math.max(Math.min(Nt.x-ot,b.width),x.width),z||(a.height=Math.max(Math.min(gt*a.width,b.height),x.height),a.width=a.height/gt,a.y=at+.5*(ct-at-a.height))):0>=y.y?(a.y=Math.max(Nt.y,ct-b.height),a.y=Math.min(a.y,ct-x.height),a.height=ct-a.y,z||(a.width=Math.max(Math.min(a.height/gt,b.width),x.width),a.height=gt*a.width,a.x=ot+.5*(ht-ot-a.width))):1<=y.y&&(a.height=Math.max(Math.min(Nt.y-at,b.height),x.height),z||(a.width=Math.max(Math.min(a.height/gt,b.width),x.width),a.height=gt*a.width,a.x=ot+.5*(ht-ot-a.width))),ke.free(Nt),a},Qn.prototype.computeReshape=function(){var a=Ei;return this.adornedObject instanceof Go&&(a=$A(this.adornedObject)),!(a===Nr||this.diagram.lastInput.shift)},Qn.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},Qn.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},Qn.prototype.computeCellSize=function(){var a=new Ki(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},Re.Object.defineProperties(Qn.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 bs))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 bs)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}}}),Qn.className="ResizingTool",Xr("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function so(){jt.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new ke,this.ue=null;var a=new Go;a.figure="Ellipse",a.desiredSize=ca,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new ke(NaN,NaN),this.u=0,this.F=50}On(so,jt),so.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)}},so.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new bs,y.type=qn.Position,y.locationSpot=Yo;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(lh(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},so.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},so.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)},so.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(Yo)},so.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)},so.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new ke(NaN,NaN),this.isActive=a.isMouseCaptured=!1},so.prototype.stopTransaction=function(){var a=this.diagram,y=jt.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},so.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},so.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},so.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()},so.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()}},so.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},Re.Object.defineProperties(so.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 bs))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 bs)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}}}),so.className="RotatingTool",Xr("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function uo(){jt.call(this),this.name="ClickSelecting"}On(uo,jt),uo.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},uo.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},uo.className="ClickSelectingTool";function rr(){jt.call(this),this.name="Action",this.pk=null}On(rr,jt),rr.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},rr.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()},rr.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))}},rr.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()},rr.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())},rr.prototype.doStop=function(){this.pk=null},rr.className="ActionTool";function wr(){jt.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new ke(0,0)}On(wr,jt),wr.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)},wr.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},wr.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 Yr)x.Zc()&&(lh(x),b=x.copy(),b!==null&&y.add(b));else if(x!==null){var E=y.model.copyNodeData(x);ii(E)&&(y.model.xf(E),b=y.Lc(E))}if(b!==null){var z=ke.allocAt(a.x,a.y);this.isGridSnapEnabled&&ic(this.diagram,b,a,z),b.location=z,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),ke.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},Re.Object.defineProperties(wr.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}}}),wr.className="ClickCreatingTool";function mr(){jt.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Yr;a.layerName="Tool",a.selectable=!1;var y=new Go;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}On(mr,jt),mr.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))},mr.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},mr.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},mr.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=Ki.alloc().h(y.width,y.height);x.desiredSize=b,this.box.mm(y.x,y.y,!1),Ki.free(b),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},mr.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()},mr.prototype.computeBoxBounds=function(){var a=this.diagram;return new ai(a.firstInput.documentPoint,a.lastInput.documentPoint)},mr.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),Zo?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 Ci,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)}},Re.Object.defineProperties(mr.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}}}),mr.className="DragSelectingTool";function ir(){jt.call(this),this.name="Panning",this.Xt=new ke,this.xy=new ke,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(Ve.document,"scroll",a.Kw,!1),a.stopTool()}}On(ir,jt),ir.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())},ir.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(Ve.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},ir.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},ir.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},ir.prototype.doMouseMove=function(){this.move()},ir.prototype.doMouseUp=function(){this.move(),this.stopTool()},ir.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)}},Re.Object.defineProperties(ir.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),ir.className="PanningTool",Xr("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),Xr("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),Xr("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),Xr("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),Xr("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function Or(){this.F=this.u=this.j=this.o=null}Re.Object.defineProperties(Or.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}}}),Or.className="HTMLInfo";function ho(a,y,x){this.text=a,this.hx=y,this.visible=x}ho.className="ContextMenuButtonInfo";function So(){jt.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new ke,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}On(So,jt);function Fo(a){var y=new Or;y.show=function(E,z,nt){nt.showDefaultContextMenu()},y.hide=function(E,z){z.hideDefaultContextMenu()},co=y,a.tu=function(){a.stopTool()},y=tr("div");var x=tr("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=tr("style");Ve.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",Gr,!1),b.addEventListener(y,"selectstart",Gr,!1),b.addEventListener(x,"contextmenu",Gr,!1)),y.className="goCXforeground",x.className="goCXbackground",Ve.document.body&&(Ve.document.body.appendChild(y),Ve.document.body.appendChild(x)),Ps=y,Os=x,Pa=!0}function Gr(a){return a.preventDefault(),!1}So.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)},So.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},So.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},So.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,b=null;if(a instanceof _n||(a instanceof xn?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},So.prototype.doActivate=function(){},So.prototype.doMouseDown=function(){if(jt.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof bs){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&Vo(this)},So.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof bs){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}Vo(this)};function Vo(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var b=null;x instanceof Or||(b=y.ic(y.lastInput.documentPoint,null,null),b!==null&&b.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(b)}}else a.canStart()&&(No(a,!0),a.isActive||a.stopTool())}So.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function No(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=co,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var b=x.contextMenu;b!==null?(a.currentObject=x instanceof xn?x:null,a.showContextMenu(b,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof bs&&!a.currentContextMenu.visible&&a.stopTool()}}So.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},So.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof bs){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 Or&&a.show(y,x,this);this.currentContextMenu=a},So.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}},So.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof bs?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Or&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function hs(a){var y=new Ci;return y.add(new ho("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new ho("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new ho("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new ho("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new ho("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new ho("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new ho("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new ho("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new ho("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new ho("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new ho("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new ho("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new ho("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}So.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=hs(this)),Ps.innerHTML="",Os.addEventListener("pointerdown",this.tu,!1);var y=this,x=tr("ul");x.className="goCXul",Ps.appendChild(x),x.innerHTML="";for(var b=this.jt.iterator;b.next();){var E=b.value,z=E.visible;if(typeof E.hx=="function"&&(typeof z!="function"||z(a))){z=tr("li"),z.className="goCXli";var nt=tr("a");nt.className="goCXa",nt.href="#",nt.ky=E.hx,nt.addEventListener("pointerdown",function(ot){return this.ky(a),y.stopTool(),ot.preventDefault(),!1},!1),nt.textContent=E.text,z.appendChild(nt),x.appendChild(z)}}Ps.style.display="block",Os.style.display="block"},So.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===co){Ps.style.display="none",Os.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(Os,"pointerdown",this.tu,!1),this.currentContextMenu=null}},Re.Object.defineProperties(So.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof bs?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return Pa===!1&&co===null&&Us&&Fo(this),co},set:function(a){a===null&&(Pa=!0),co=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var co=null,Pa=!1,Os=null,Ps=null;So.className="ContextMenuTool",Xr("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function ko(){jt.call(this),this.name="TextEditing",this.Zh=new ha,this.ia=null,this.V=Oo,this.vj=null,this.qa=bo,this.u=1,this.F=!0,this.o=null,this.j=new Or,this.kt=null,Fs(this,this.j)}On(ko,jt);function Fs(a,y){if(Us){var x=tr("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(as)):E==="Tab"?(a.acceptText(Po),b.preventDefault()):E==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==bo){var b=a.kt;a.qa===Ls&&(a.qa=_s),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==bo){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,z){if(b instanceof ha&&z instanceof ko)if(z.state===Yl)x.style.border="3px solid red",x.focus();else{var nt=b.ga(Yo),ot=E.position,at=E.scale,ht=b.Df()*at;ht<z.minimumEditorScale&&(ht=z.minimumEditorScale);var ct=b.naturalBounds.width*ht+6,gt=b.naturalBounds.height*ht+2,Nt=(nt.x-ot.x)*at;nt=(nt.y-ot.y)*at,ot=b.verticalAlignment,at=(b.lineHeight+b.spacingAbove+b.spacingBelow)*b.lineCount*ht,gt=ot.y*gt-ot.y*at+ot.offsetY-(.5*gt-.5*at)-at/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*ht+"%",x.style.lineHeight="normal",x.style.width=ct+"px",x.style.left=(Nt-ct/2|0)-1+"px",x.style.top=(nt+gt|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=ht,x.className="goTXarea",E.div.appendChild(x),x.focus(),z.selectsTextOnActivate&&(x.select(),x.setSelectionRange(0,9999))}},y.hide=function(b){b.div.removeChild(x)}}}ko.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||eu&&eu!==this&&(eu.acceptText(jl),eu&&eu!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof ha&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===Oo&&!y.isSelected||this.starting===qo&&2>a.lastInput.clickCount)):!1},ko.prototype.doStart=function(){eu=this,this.textBlock!==null&&this.doActivate()},ko.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 ha&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=Ls;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var b=new ai(this.textBlock.ga(Oa),this.textBlock.ga(Ll));a.tv(b),x.show(y,a,this),this.currentTextEditor=x}}}},ko.prototype.doCancel=function(){this.stopTool()},ko.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},ko.prototype.doMouseDown=function(){this.isActive&&this.acceptText(jl)},ko.prototype.acceptText=function(a){switch(a){case jl:this.qa===As?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Ls||this.qa===Yl||this.qa===_s)&&(this.qa=ea,$a(this));break;case js:case as:case Po:(as!==a||this.textBlock.isMultiline!==!0)&&(this.qa===Ls||this.qa===Yl||this.qa===_s)&&(this.qa=ea,$a(this))}};function $a(a){var y=a.textBlock,x=a.diagram,b=a.currentTextEditor;if(y!==null&&b!==null){var E=y.text,z="";b.valueFunction!==null&&(z=b.valueFunction()),a.isValidText(y,E,z)?(a.Ea(a.name),a.qa=As,a.transactionResult=a.name,y.text=z,a.doSuccess(E,z),x!==null&&x.R("TextEdited",y,E),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=Yl,a.doError(E,z))}}ko.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)},ko.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},ko.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=bo,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},ko.prototype.doStop=function(){eu=null},ko.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)))},ko.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},Re.Object.defineProperties(ko.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)}}}),ko.prototype.measureTemporaryTextBlock=ko.prototype.Lx;var js=new ri(ko,"LostFocus",0),jl=new ri(ko,"MouseDown",1),Po=new ri(ko,"Tab",2),as=new ri(ko,"Enter",3),ds=new ri(ko,"SingleClick",0),Oo=new ri(ko,"SingleClickSelected",1),qo=new ri(ko,"DoubleClick",2),bo=new ri(ko,"StateNone",0),Ls=new ri(ko,"StateActive",1),_s=new ri(ko,"StateEditing",2),ea=new ri(ko,"StateValidating",3),Yl=new ri(ko,"StateInvalid",4),As=new ri(ko,"StateValidated",5),eu=null;ko.className="TextEditingTool",ko.LostFocus=js,ko.MouseDown=jl,ko.Tab=Po,ko.Enter=as,ko.SingleClick=ds,ko.SingleClickSelected=Oo,ko.DoubleClick=qo,ko.StateNone=bo,ko.StateActive=Ls,ko.StateEditing=_s,ko.StateValidating=ea,ko.StateInvalid=Yl,ko.StateValidated=As,Xr("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function fa(a){ku||(Iu(),ku=!0),this.H=jh,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=Gu,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new bi,this.ce=new Va,this.ce.Yd=this,this.Ei=new bi,this.pu=new bi,this.Sr=new bi,this.pr=new bi,a&&Object.assign(this,a)}fa.prototype.Xe=function(a){this.H=a},fa.prototype.canStart=function(){return!0};function yl(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),du(a.H),a.zb=!0)}function po(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,b=a.Zd.contains("Model");b&&(a.Ok=!0,a.Pk===Gu?(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===sh&&y.vc.clear(),a.Qw=!!(a.Pk===oh&&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(),Cu(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,b=y.vc.get(x),x.autoScale!==Al&&b!==null&&(delete b.start.scale,delete b.end.scale),Ve.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&vu(x),Rd(x),a.zb=!1,y.start(),y.bc&&(Na(a),x.Ya(),ec(y,0),cu(x,!0),Xa(a),x.R("AnimationStarting",a)))}))}}function Ra(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Nu(a,y,x,b){a.isTicking||Ra(a)||y instanceof Vi&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}Vt=fa.prototype,Vt.fv=function(a){return this.ce.fv(a)},Vt.Xu=function(a){return this.ce.Xu(a)};function wa(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 z=E.pu.iterator;z.next();){var nt=z.value;if(nt.bc!==!1){t:if(0<nt.yl.count)var ot=!0;else{for(ot=nt.vc.iterator;ot.next();){var at=ot.key;if(at instanceof xn&&at.diagram!==null||at instanceof _n){ot=!0;break t}}ot=!1}ot?ph(nt,!1):nt.Xk=!0}}E.pu.clear(),E.bc!==!1&&(Na(E),cu(E.H),Xa(E)),Ve.requestAnimationFrame(x)}}var b=a.Ei,E=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),Ve.requestAnimationFrame(function(){x()}))}function na(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function Na(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 Xa(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}Vt.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(),Cu(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),Cu(y,this.H)},Vt.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))},Vt.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),Ia(this,a))},Vt.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),Sl(this.ce,y,"position",y.position,y.position),Ia(this,a))};function ul(a,y,x){!a.zb||y.D(x)||Ra(a)||(a.H.pi||(y=x.copy()),Sl(a.ce,a.H,"position",y,x))}function Qs(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function Ia(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function Nl(a,y,x,b,E){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var z=a[0],nt=a[1],ot=a[2];a=a[3];var at=y[0],ht=y[1],ct=y[2];return y=y[3],ot===0||ot===100?(z=at,nt=ht):(ct===0||ct===100)&&(at=z,ht=nt),180<Math.abs(at-z)&&(at>z?z+=360:at+=360),z=E(x,z,at-z,b)%360,nt=E(x,nt,ht-nt,b),ot=E(x,ot,ct-ot,b),x=E(x,a,y-a,b),"hsla("+z+", "+nt+"%, "+ot+"%, "+x+")"}function Iu(){function a(x,b,E,z,nt,ot){x.position=new ke(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot))}var y=new Cr;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,b,E,z,nt,ot){nt<ot?x.mm(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot),!1):x.position=new ke(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot))}),y.add("location",function(x,b,E,z,nt,ot){nt<ot?x.mm(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot),!0):x.location=new ke(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot))}),y.add("position:placeholder",function(x,b,E,z,nt,ot){nt<ot?x.mm(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot),!1):x.position=new ke(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot))}),y.add("position:nodeCollapse",function(x,b,E,z,nt,ot){var at=x.actualBounds,ht=E.actualBounds;E=ht.x+ht.width/2-at.width/2,at=ht.y+ht.height/2-at.height/2,nt<ot?x.mm(z(nt,b.x,E-b.x,ot),z(nt,b.y,at-b.y,ot),!1):x.position=new ke(z(nt,b.x,E-b.x,ot),z(nt,b.y,at-b.y,ot))}),y.add("desiredSize",function(x,b,E,z,nt,ot){x.desiredSize=new ai(z(nt,b.width,E.width-b.width,ot),z(nt,b.height,E.height-b.height,ot))}),y.add("width",function(x,b,E,z,nt,ot){x.width=z(nt,b,E-b,ot)}),y.add("height",function(x,b,E,z,nt,ot){x.height=z(nt,b,E-b,ot)}),y.add("fill",function(x,b,E,z,nt,ot){x.fill=Nl(b,E,nt,ot,z)}),y.add("stroke",function(x,b,E,z,nt,ot){x.stroke=Nl(b,E,nt,ot,z)}),y.add("strokeWidth",function(x,b,E,z,nt,ot){x.strokeWidth=z(nt,b,E-b,ot)}),y.add("strokeDashOffset",function(x,b,E,z,nt,ot){x.strokeDashOffset=z(nt,b,E-b,ot)}),y.add("background",function(x,b,E,z,nt,ot){x.background=Nl(b,E,nt,ot,z)}),y.add("areaBackground",function(x,b,E,z,nt,ot){x.areaBackground=Nl(b,E,nt,ot,z)}),y.add("opacity",function(x,b,E,z,nt,ot){x.opacity=z(nt,b,E-b,ot)}),y.add("scale",function(x,b,E,z,nt,ot){x.scale=z(nt,b,E-b,ot)}),y.add("angle",function(x,b,E,z,nt,ot){x.angle=z(nt,b,E-b,ot)}),mu=y}Re.Object.defineProperties(fa.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&&Zi(a,">= 1",fa,"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}}}),fa.prototype.stopAnimation=fa.prototype.Cc;var mu=null,ku=!1,Gu=new ri(fa,"Default",1),oh=new ri(fa,"AnimateLocations",2),sh=new ri(fa,"None",3);fa.className="AnimationManager",fa.defineAnimationEffect=function(a,y){ku||(Iu(),ku=!0),mu.add(a,y)},fa.Default=Gu,fa.AnimateLocations=oh,fa.None=sh;function Va(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=bh,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=ts,this.vc=new Cr,this.Tt=new Cr,this.yl=new bi,this.Ut=new bi,this.dw=Tc,a&&Object.assign(this,a)}Va.prototype.suspend=function(){this.Xk=!0},Va.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,ph(this,!0),Na(this.Yd),cu(this.H),Xa(this.Yd),this.H.redraw()};function Cu(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}Vt=Va.prototype,Vt.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 _n?a=x:x instanceof xn&&(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===Gu&&this===y.defaultAnimation&&(this.Lp=Dh,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=Ld),Na(y),this.yl.each(function(b){b.data=null,a.add(b)}),Xa(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,wa(y,this),this)},Vt.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},Vt.add=function(a,y,x,b,E){if(y==="position"&&x.Xa(b))return this;if(this.H===null&&(a instanceof _n?this.H=a:a instanceof xn&&a.diagram!==null&&(this.H=a.diagram)),a instanceof Yr){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return Sl(this,a,y,x,b,E),this};function Sl(a,y,x,b,E,z){var nt=a.vc;if(y instanceof _n&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(fd(b),bg(),b=[Di.j,Di.u,Di.o,Di.F],fd(E),bg(),E=[Di.j,Di.u,Di.o,Di.F]),nt.contains(y)){var ot=nt.I(y),at=ot.start,ht=ot.end;at[x]===void 0&&(at[x]=dl(b)),ht[x]=dl(E)}else at={},ht={},at[x]=dl(b),ht[x]=dl(E),ot=at.position,y instanceof xn&&ot instanceof ke&&!ot.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&ot.assign(ht.position),ot=new fc(at,ht,z),nt.add(y,ot);nt=at[x],nt instanceof ke&&!nt.w()&&nt.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof Yr?ot.Ku.location=dl(y.location):z&&(ot.Ku[x]=dl(b))}function dl(a){return a instanceof ke||a instanceof Ki?a.copy():a}Vt.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},Vt.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function ph(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),Na(x),ec(a,E),cu(a.H,!0),Xa(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 ec(a,y){for(var x=a.Gd,b=a.vc.iterator,E=a.Wk;b.next();){var z=b.key;if(!(z instanceof xn&&z.diagram===null)){var nt=b.value,ot=E?nt.end:nt.start;nt=E?nt.start:nt.end;var at=mu,ht;for(ht in nt)ht==="position"&&(nt["position:placeholder"]||nt["position:nodeCollapse"])||at.get(ht)===null||at.get(ht)(z,ot[ht],nt[ht],a.Lp,y,x,a)}}}Vt.stop=function(){return this.bc?(this.Ml(!0),this):this},Vt.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,Na(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 z=mu;b.next();){var nt=b.key,ot=b.value,at=E?ot.end:ot.start,ht=E?ot.start:ot.end,ct=ot.Ku,gt;for(gt in ht)if(z.get(gt)!==null){var Nt=gt;!ot.Hu||Nt!=="position:nodeCollapse"&&Nt!=="position:placeholder"||(Nt="position"),z.get(Nt)(nt,at[gt],ct[gt]!==void 0?ct[gt]:ot.Hu?at[gt]:ht[gt],this.Lp,this.Gd,this.Gd,this)}ot.Hu&&ct.location!==void 0&&nt instanceof Yr&&(nt.location=ct.location),ot.nv&&nt instanceof Yr&&nt.Zb(!1)}if(y.As.clear(),Sd(y,!1),y.Ya(),y.N(),cu(y,!0),x.defaultAnimation===this){for(gt=x.pr.iterator;gt.next();)E=gt.value,E.Tg!==null&&(E.points=E.Tg,E.Tg=null);x.pr.clear()}cu(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),Xa(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),Cu(this,null),x.Ml(this),y.$b())}},Vt.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof _o&&(b=y.placeholder),b!==null?(x=b.ga(Oa),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new ke(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof _o)for(a=a.memberParts;a.next();)b=a.value,b instanceof Ar&&this.Cj(b,y)},Vt.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof _o&&(x=y.placeholder),x!==null){var b=x.ga(Oa);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 _o)for(a=a.memberParts;a.next();)b=a.value,b instanceof Ar&&this.Aj(b,y)}},Vt.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},Re.Object.defineProperties(Va.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Zi(a,">= 1",Va,"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:sn("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}}}),Va.prototype.getTemporaryState=Va.prototype.Ez,Va.prototype.stop=Va.prototype.stop,Va.prototype.add=Va.prototype.add,Va.prototype.addTemporaryPart=Va.prototype.Iy;function bh(a,y,x,b){return a/=b/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Dh(a,y,x,b){return a===b?y+x:x*(-Math.pow(2,-10*a/b)+1)+y}Va.className="Animation",Va.EaseLinear=function(a,y,x,b){return x*a/b+y},Va.EaseInOutQuad=bh,Va.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},Va.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},Va.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},Va.EaseOutExpo=Dh;function fc(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}fc.className="AnimationState";function Wu(a,y,x){this.xd=null,this.rf=a,this.so=x||ra,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=uu))}Wu.prototype.copy=function(){var a=new Wu(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 ka(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))}Re.Object.defineProperties(Wu.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 ra=new ri(Wu,"Default",1),uu=new ri(Wu,"Immediate",2),wl=new ri(Wu,"Bundled",3);Wu.className="AnimationTrigger",Wu.Default=ra,Wu.Immediate=uu,Wu.Bundled=wl;function ga(a){ns(this),this.H=null,this.Pa=new Ci,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)}Vt=ga.prototype,Vt.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,Ro(x)}a.clear(),this.Zq.length=0},Vt.Xe=function(a){this.H=a},Vt.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,z=0,nt=0,ot=this.Pa.iterator;ot.next();){var at=ot.value;at instanceof _o?E++:at instanceof Ar?b++:at instanceof Vi?z++:at instanceof bs?nt++:x++}if(ot="",0<x&&(ot+=x+" Parts "),0<b&&(ot+=b+" Nodes "),0<E&&(ot+=E+" Groups "),0<z&&(ot+=z+" Links "),0<nt&&(ot+=nt+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)x=a.value,ot+=`
|
|
|
`+x.toString(),b=x.data,b!==null&&fs(b)&&(ot+=" #"+fs(b)),x instanceof Ar?ot+=" "+Rr(b):x instanceof Vi&&(ot+=" "+Rr(x.fromNode)+" "+Rr(x.toNode));return y+" "+this.Pa.count+": "+ot},Vt.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=ke.alloc(),z=this.Pa.s,nt=z.length;nt--;){var ot=z[nt];if((b!==!0||ng(ot)!==!1)&&ot.isVisible()&&(E.assign(a),Lo(E,ot.oe),ot=ot.ic(E,y,x),ot!==null&&(y!==null&&(ot=y(ot)),ot!==null&&(x===null||x(ot)))))return ke.free(E),ot}return ke.free(E),null},Vt.ji=function(a,y,x,b){if(y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Ci||b instanceof bi||(b=new bi),this.Uh===!1)return b;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var z=ke.alloc(),nt=this.Pa.s,ot=nt.length;ot--;){var at=nt[ot];if((E!==!0||ng(at)!==!1)&&at.isVisible()){z.assign(a),Lo(z,at.oe);var ht=at;at.ji(z,y,x,b)&&(y!==null&&(ht=y(ht)),ht===null||x!==null&&!x(ht)||b.add(ht))}}return ke.free(z),b},Vt.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 Ci||E instanceof bi||(E=new bi),this.Uh===!1)return E;var z=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(z=!0);for(var nt=this.Pa.s,ot=nt.length;ot--;){var at=nt[ot];if((z!==!0||ng(at)!==!1)&&at.isVisible()){var ht=at;at.Cf(a,y,x,b,E)&&(y!==null&&(ht=y(ht)),ht===null||x!==null&&!x(ht)||E.add(ht))}}return E},Vt.Nu=function(a,y,x,b,E,z,nt){if(this.Uh===!1)return E;for(var ot=this.Pa.s,at=ot.length;at--;){var ht=ot[at];if((nt!==!0||ng(ht)!==!1)&&z(ht)&&ht.isVisible()){var ct=ht;ht.Cf(a,y,x,b,E)&&(y!==null&&(ct=y(ct)),ct===null||x!==null&&!x(ct)||E.add(ct))}}return E},Vt.og=function(a,y,x,b,E,z){if(x===void 0&&(x=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof Ci||E instanceof bi)&&(z=E),E=!0),z instanceof Ci||z instanceof bi||(z=new bi),this.Uh===!1)return z;var nt=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(nt=!0);for(var ot=ke.alloc(),at=ke.alloc(),ht=this.Pa.s,ct=ht.length;ct--;){var gt=ht[ct];if((nt!==!0||ng(gt)!==!1)&>.isVisible()){ot.assign(a),Lo(ot,gt.oe),at.h(a.x+y,a.y),Lo(at,gt.oe);var Nt=gt;gt.og(ot,at,x,b,E,z)&&(x!==null&&(Nt=x(Nt)),Nt===null||b!==null&&!b(Nt)||z.add(Nt))}}return ke.free(ot),ke.free(at),z},Vt.Fd=function(a,y){if(this.visible){var x=this.Pa.s,b=x.length;if(b!==0){a=yi();for(var E=yi(),z=0;z<b;z++){var nt=x[z];if(nt.vw=z,nt instanceof Vi){if(nt.fd===!1)continue}else if(nt instanceof bs&&nt.adornedPart!==null)continue;var ot=nt.actualBounds;nt.isVisible()&&Fl(ot,y)?(nt.Fd(!0),a.push(nt)):(nt.Fd(!1),nt.adornments!==null&&0<nt.adornments.count&&E.push(nt))}for(y=0;y<a.length;y++)for(x=a[y],wv(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++)wv(E[y]);nr(a),nr(E)}}};function hu(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}Vt.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=hu(this,a);var z=this.Zq;z.length=0;for(var nt=y.scale,ot=ai.alloc(),at=0;at<b;at++)this.Oj(a,x[at],y,z,nt,ot,!0);if(ai.free(ot),a.isTemporary)for(y=0;y<b;y++)x[y].Gj();a.globalAlpha=E}}};function Ru(a,y,x,b,E){if(a.visible&&a.pb!==0&&(E||!a.isTemporary)){E=a.Pa.s;var z=E.length;if(z!==0){var nt=hu(a,y),ot=a.Zq;ot.length=0;for(var at=x.scale,ht=ai.alloc(),ct=0;ct<z;ct++){var gt=E[ct];b.contains(gt)&&a.Oj(y,gt,x,ot,at,ht,!1)}ai.free(ht),y.globalAlpha=nt}}}Vt.Oj=function(a,y,x,b,E,z,nt){if(nt&&!ng(y))a.Hs(y);else{if(b!==null&&y instanceof Vi&&(y.isOrthogonal&&b.push(y),y.fd===!1)){a.Hs(y);return}for(nt=!1,b=y.containingGroup;b!==null;)nt?b.tb!==null&&z.Ex(b.tb):b.tb!==null&&(nt=!0,z.assign(b.tb)),b=b.containingGroup;var ot=y.actualBounds;if(b=!1,nt&&y.isVisible()){if(!z.Yc(ot)){a.Hs(y);return}b=!z.Re(ot)}b&&(a.save(),a instanceof Sh?a.bk=z.copy():(a.beginPath(),a.rect(z.x,z.y,z.width,z.height),a.clip())),ot.width*E>x.Oq||ot.height*E>x.Oq?y.gc(a,x):(E=y.actualBounds,z=y.naturalBounds,E.width===0||E.height===0||isNaN(E.x)||isNaN(E.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(Ca(y,a,y.areaBackground,!0,!0,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.areaBackground===null&&y.background===null&&(Ca(y,a,"rgba(0,0,0,0.3)",!0,!1,z,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),Ca(y,a,y.background,!0,!1,z,E),a.fillRect(0,0,z.width/2,z.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))}},Vt.g=function(a,y,x,b,E){var z=this.diagram;z!==null&&z.cb(ja,a,this,y,x,b,E)},Vt.oi=function(a,y,x){var b=this.Pa;if(y.Ig=this,this===null&&Ro(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)),Tu(this,a,y),a},Vt.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,Ro(y),a};function Tu(a,y,x){if(y=Yc(a,y,x),x instanceof _o&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var b=-1,E=a.Pa.s,z=E.length,nt=0;nt<z;nt++){var ot=E[nt];if(ot===x&&(y=nt,0<=b)||0>b&&ot.containingGroup===x&&(b=nt,0<=y))break}!(0>b)&&b<y&&(E=a.Pa,E.mb(y),E.Gb(b,x))}y=x.containingGroup,y!==null&&Tu(a,-1,y)}x.svg!==null&&x.svg.remove()}function Yc(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 z=y-1,nt=NaN;0<=z&&(nt=a.M(z).zOrder,!!isNaN(nt));)z--;for(var ot=y+1,at=NaN;ot<E&&(at=a.M(ot).zOrder,!!isNaN(at));)ot++;if(!isNaN(nt)&&nt>b)for(;;){if(z===-1||nt<=b){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(nt=NaN;0<=--z&&(nt=a.M(z).zOrder,isNaN(nt)););}else if(!isNaN(at)&&at<b)for(;;){if(ot===E||at>=b){if(ot--,ot===y)break;return a.mb(y),a.Gb(ot,x),ot}for(at=NaN;++ot<E&&(at=a.M(ot).zOrder,isNaN(at)););}return y}Re.Object.defineProperties(ga.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===""&&sn("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&sn("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)&&Zi(a,"0 <= value <= 1",ga,"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))}}}),ga.prototype.findObjectsNear=ga.prototype.og,ga.prototype.findObjectsIn=ga.prototype.Cf,ga.prototype.findObjectsAt=ga.prototype.ji,ga.prototype.findObjectAt=ga.prototype.ic,ga.className="Layer";function _n(a,y){if(cd||(Rl(),cd=!0),ns(this),jh=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,Us){var x=this,b=function(){x.removeEventListener(Ve.document,"DOMContentLoaded",b,!1),x.setRTL()};Ve.document.body!==null?this.setRTL():x.addEventListener(Ve.document,"DOMContentLoaded",b,!1)}this.ol=null,ba.add("Model",$s);var E=this;return this.Hb=function(z){var nt=E.partManager;if(z.model===nt.diagram.model&&nt.diagram.aa){nt.diagram.aa=!1;try{var ot=z.change;z.modelChange===""&&ot===ja&&nt.updateDataBindings(z.object,z.propertyName)}finally{nt.diagram.aa=!0}}},this.Oc=function(z){E.partManager.doModelChanged(z)},this.hu=this.ku=null,EA(this),this.model=Yv(),this.Wg=!0,ld(this),this.layout=new Ya,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 Yd,a!==void 0&&(typeof a=="string"||Ve.Element&&a instanceof Element?ad(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var nc,jh;function EA(a){a.Yd=new fa,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new Ci,a.pj=new Cr,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new ke(NaN,NaN).freeze(),a.du=new ke(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new ke(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new Ko,a.zu=new ke(NaN,NaN).freeze(),a.ut=new ai(NaN,NaN,NaN,NaN).freeze(),a.rj=new Hr(0,0,0,0).freeze(),a.sj=Tc,a.nu=!1,a.Zt=null,a.fu=null,a.yh=Al,a.zk=Bs,a.Fg=Al,a.pq=Bs,a.yt=Oa,a.Bt=Oa,a.Fc=!0,a.pn=!1,a.De=new bi,a.Eh=new Cr,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new Hr(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new Su,a.bq.diagram=a,a.Qg=new Su,a.Qg.diagram=a,a.cj=new Su,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,KA(a),a.ai=new bi,a.Ht=!0,a.uu=Oc,a.pw=!1,a.wu=Eh,a.it="auto",a.Op="auto",a.zh=null,a.Fh=null,a.Bh=null,a.Qh=null,a.Oh=null,a.Nh=null,a.Qt=null,a.Lh=null,a.xt=!1,a.Mh=null,a.Ph=null,a.$h=null,a.Ch=null,a.Rt=!1,a.Yt={},a.oj=[null,null],a.Wg=!1,a.Iw=!1,a.ou=!1,a.lt=!1,a.rw=!0,a.ld=!1,a.$i=!1,a.Tw=!0,a.Ce=-2,a.Og=new Cr,a.Xn=new Ci,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 Hr(5).freeze(),a.Hw=new bi().freeze(),a.Nt=999999999,a.nw=new bi().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 bi,a.ow=new bi,a.Xh=null,a.aw=new Ki(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new ke,bounds:new ai,Py:new Ki,bA:new Ki,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new ai(NaN,NaN,NaN,NaN).freeze(),a.wo=new Ki(NaN,NaN).freeze(),a.Sp=new ai(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new Cr;var y=new Ar,x=new ha;x.bind(new iu("text","",Rr)),y.add(x),a.ny=y,a.Lg.add("",y),y=new Ar,x=new ha,x.stroke="brown",x.bind(new iu("text","",Rr)),y.add(x),a.Lg.add("Comment",y),y=new Ar,y.selectable=!1,y.avoidable=!1,x=new Go,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new Ki(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new Cr,y=new _o,y.selectionObjectName="GROUPPANEL",y.type=qn.Vertical,x=new ha,x.font="bold 12pt sans-serif",x.bind(new iu("text","",Rr)),y.add(x),x=new qn(qn.Auto),x.name="GROUPPANEL";var b=new Go;b.figure="Rectangle",b.fill="rgba(128,128,128,0.2)",b.stroke="black",x.add(b),b=new Wh,b.padding=new Hr(5,5,5,5).ja(),x.add(b),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new Cr,y=new Vi,x=new Go,x.isPanelMain=!0,y.add(x),x=new Go,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new Vi,x=new Go,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new bs,y.type=qn.Auto,x=new Go,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new Wh,x.margin=new Hr(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new bs,y.type=qn.Link,x=new Go,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 $s,a.toolManager=new Zt,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new st,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=Fc(),a.eq=null,a.fq=ml,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 ke,a.zy=500,a.wp=new ke,a.wq=!1}_n.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),Au=null,yu="",$c(this,!1),this.Xn.clear(),Op(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function $c(a,y){a.animationManager.Cc(!0),a.Hw=new bi().freeze(),a.nw=new bi().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 z=[],nt=a.Wa.length;if(y){for(y=0;y<nt;y++)for(var ot=a.Wa.s[y].parts;ot.next();){var at=ot.value;at!==E&&at.data===null&&z.push(at)}for(y=0;y<z.length;y++)a.remove(z[y])}for(y=0;y<nt;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(),Op(),a.Og.clear(),cs=[],E!==null&&(a.add(E),a.partManager.parts.remove(E)),b&&(a.skipsUndoManager=x),z}function Fc(){return null}_n.prototype.reset=function(){this.clear(),this.vb=!0,EA(this),Rh(this),this.Wg=!0,ld(this),this.layout=new Ya,this.Wg=!1,this.model=Yv(),this.model.undoManager=new mt,this.vb=this.rn=!1,this.N()},_n.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=Ve.document.body);var y=tr("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},_n.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=Ve.document.body);var y=0;if(Us){var x=Cl;y=nc,x===null&&(x=Cl=tr("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=nc=tr("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||Zo||(y=11)}this.Db=y,this.Gw=!0},_n.prototype.qb=function(a){a.classType===_n&&(this.autoScale=a)},_n.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 ad(a,y){if(Us){if(y!=null||sn("Diagram setup requires an argument DIV."),a.Ka!==null&&sn("Diagram has already completed setup."),typeof y=="string"?a.Ka=Ve.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:sn("No DIV or DIV id supplied: "+y),a.Ka===null&&sn("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&sn("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Ve.ResizeObserver){var x=Bi(function(){a.$b()},250);a.ol=new Ve.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Ve.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=Ve.go;var E=new yc(a);if(E.style!==void 0&&(E.style.position="absolute",E.style.top="0px",E.style.left="0px",Ve.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),zd(a,a.Aa,a.ya),a.Ka.insertBefore(E.Oa,a.Ka.firstChild),E=new yc(null),E.width=1,E.height=1,a.jw=E,a.oy=E.context,Us){E=tr("div");var z=tr("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",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(E),E.appendChild(z),E.onscroll=_d,E.addEventListener("pointerdown",Cd),E.H=a,E.uy=!0,E.vy=!0,a.ku=E,a.hu=z}a.hk=Bi(function(){a.Yh=null,a.N()},300),a.Ov=Bi(function(){Rd(a)},250),a.preventDefault=function(nt){return nt.preventDefault(),!1},a.$j=function(nt){if(a.isEnabled){var ot=qu(a,nt,!0);ot.bubbles=!0;var at=0,ht=0;ot.delta=0,nt.deltaX!==void 0?(nt.deltaX!==0&&(at=0<nt.deltaX?1:-1),nt.deltaY!==0&&(ht=0<nt.deltaY?1:-1),ot.delta=Math.abs(nt.deltaX)>Math.abs(nt.deltaY)?-at:-ht):nt.wheelDeltaX!==void 0?(nt.wheelDeltaX!==0&&(at=0<nt.wheelDeltaX?-1:1),nt.wheelDeltaY!==0&&(ht=0<nt.wheelDeltaY?-1:1),ot.delta=Math.abs(nt.wheelDeltaX)>Math.abs(nt.wheelDeltaY)?-at:-ht):nt.wheelDelta!==void 0&&nt.wheelDelta!==0&&(ot.delta=0<nt.wheelDelta?1:-1),a.doMouseWheel(),th(ot,nt)}},a.aA=function(nt){a.isEnabled&&(a.Vk=!1,qu(a,nt,!0),nt=a.currentTool,nt.cancelWaitAfter(),nt.standardMouseOver())},a.ui=function(nt){if(a.isEnabled){a.Vk=!0;var ot=a.Yt;ot[nt.pointerId]===void 0&&(ot[nt.pointerId]=nt),ot=a.oj;var at=!1;if(ot[0]===null||ot[0].pointerId!==nt.pointerId&&ot[0].pointerType===nt.pointerType)if(ot[1]!==null&&ot[1].pointerId===nt.pointerId)ot[1]=nt,at=!0;else if(ot[0]===null)ot[0]=nt;else if(ot[1]===null)ot[1]=nt,at=!0;else{nt.preventDefault();return}else ot[0]=nt;(ot=nt.pointerType==="touch"||nt.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var ht=at;at=ud(a,nt,!0,!1,!0,ht),bd(a,nt,at),at.targetDiagram=Hd(nt,nt.target),at.targetObject=null,ht||at.clone(a.bq),ht=a.uw,ot=ot?25:10,nt.timeStamp-a.tw<a.zy&&!(Math.abs(ht.x-nt.screenX)>ot||Math.abs(ht.y-nt.screenY)>ot)?a.yq++:a.yq=1,at.clickCount=a.yq,a.tw=nt.timeStamp,a.uw.sg(nt.screenX,nt.screenY),a.doMouseDown(),nt.button===1?nt.preventDefault():th(at,nt)}},a.dk=function(nt){if(a.isEnabled){a.Vk=!0;var ot=a.oj;if(ot[0]===null||ot[0].pointerId!==nt.pointerId&&ot[0].pointerType===nt.pointerType){if(ot[1]!==null&&ot[1].pointerId===nt.pointerId){ot[1]=nt;return}if(ot[0]===null)ot[0]=nt;else return}else ot[0]=nt;if(ot[0].pointerId===nt.pointerId){ot=ud(a,nt,!1,!1,!1,ot[1]!==null);var at=Ve.document.elementFromPoint(nt.clientX,nt.clientY)||null;at!==null&&at.shadowRoot!==void 0&&at.shadowRoot!==null&&(at=at.shadowRoot.elementFromPoint(nt.clientX,nt.clientY));var ht=a,ct=nt;at&&at.H&&(ct=nt,ht=at.H),ot.targetDiagram=ht,bd(a,ct,ot),ot.targetObject=null,a.doMouseMove(),th(ot,nt)}}},a.fk=function(nt){if(a.isEnabled){a.Vk=!0;var ot=nt.pointerType==="touch"||nt.pointerType==="pen",at=a.Yt;if(ot&&a.qu)delete at[nt.pointerId],nt.preventDefault();else if(at=a.oj,at[0]===null||at[0].pointerId!==nt.pointerId&&at[0].pointerType===nt.pointerType)at[1]!==null&&at[1].pointerId===nt.pointerId&&(at[1]=null);else{at[0]=null,at=ud(a,nt,!1,!0,!0,!1);var ht=Ve.document.elementFromPoint(nt.clientX,nt.clientY)||null;ht!==null&&ht.shadowRoot!==void 0&&ht.shadowRoot!==null&&(ht=ht.shadowRoot.elementFromPoint(nt.clientX,nt.clientY)),ht!==null&&ht.H instanceof _n&&ht.H!==a&&bd(ht.H,nt,at),ht===null&&(ht=nt.target),bd(a,nt,at),at.clickCount=a.yq,at.targetDiagram=Hd(nt,ht),at.targetObject=null,a.doMouseUp(),th(at,nt),ot&&(a.wq=!1)}}},a.ek=function(nt){if(a.isEnabled){a.Vk=!1;var ot=a.Yt;ot[nt.pointerId]&&delete ot[nt.pointerId],ot=a.oj,ot[0]!==null&&ot[0].pointerId===nt.pointerId&&(ot[0]=null),ot[1]!==null&&ot[1].pointerId===nt.pointerId&&(ot[1]=null),nt.pointerType!=="touch"&&nt.pointerType!=="pen"&&(nt=a.currentTool,nt.cancelWaitAfter(),nt.standardMouseOver())}},a.ck=function(nt){var ot=a.oj;ot[0]!==null&&ot[0].pointerId===nt.pointerId?(ot[0]=null,a.wq=!1):ot[1]!==null&&ot[1].pointerId===nt.pointerId&&(ot[1]=null)},a.Vp=b.Z["d"+$d[1]+$d[2]+"wI"+_h.slice(1,5)]["b"+Rw.slice(1,y)](b.Z,_u,y,y),b.Vc(!0),HA(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}_n.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},_n.prototype.removeEventListener=function(a,y,x,b){a.removeEventListener(y,x,{capture:b})};function HA(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(Ve,"resize",a.Ov,!1)}function vu(a){30<a.Sq&&(a.Yh=1)}function Sd(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),Lr&&Lr.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}_n.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Ve.devicePixelRatio||1},_n.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},_n.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},_n.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},_n.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},_n.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},_n.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},_n.prototype.doFocus=function(){this.focus()},_n.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=Ve.scrollX||Ve.pageXOffset,y=Ve.scrollY||Ve.pageYOffset;this.ta.focus(),Ve.scrollTo(a,y)}},_n.prototype.Oy=function(){this.H.R("GainedFocus")},_n.prototype.Ny=function(){this.H.R("LostFocus")};function Rd(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===Al&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function ld(a){var y=new ga;y.name="Background",a.Al(y),y=new ga,y.name="",a.Al(y),y=new ga,y.name="Foreground",a.Al(y),y=new ga,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new ga,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new ga,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function Lc(a){var y=new qn(qn.Grid);y.name="GRID";var x=new Go;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Go,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Go,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Go,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Go,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Go,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Yr,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 _d(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Nc(this.H)}function Cd(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Nc(this.H)}_n.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,z=this.rj,nt=b.x-z.left,ot=b.y-z.top,at=b.width+z.left+z.right,ht=b.height+z.top+z.bottom,ct=b.right+z.right;z=b.bottom+z.bottom;var gt=E.x;b=E.y;var Nt=E.width,Kt=E.height,Xt=E.right,ce=E.bottom;E=this.scale;var Ke=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":Ke=Ke+a.scrollWidth-a.clientWidth;break;case"reverse":Ke=a.scrollWidth-Ke-a.clientWidth}var Te=Ke;Nt<at||Kt<ht?(Ke=ke.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Te&&(Ke.x=Te/E+nt,this.ju=Te),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(Ke.y=a.scrollTop/E+ot,this.lu=a.scrollTop),this.position=Ke,ke.free(Ke),this.Ee=this.qr=!1):(Ke=ke.alloc(),a.uy&&this.allowHorizontalScroll&&(nt<gt&&(this.position=Ke.h(Te+nt,this.position.y)),ct>Xt&&(this.position=Ke.h(-(y.scrollWidth-this.Aa)+Te-this.Aa/E+ct,this.position.y))),a.vy&&this.allowVerticalScroll&&(ot<b&&(this.position=Ke.h(this.position.x,a.scrollTop+ot)),z>ce&&(this.position=Ke.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/E+z))),ke.free(Ke),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,E=this.viewportBounds,ct=b.right,Xt=E.right,z=b.bottom,ce=E.bottom,nt=b.x,gt=E.x,ot=b.y,b=E.y,Nt>=at&&nt>=gt&&ct<=Xt&&(x.style.width="1px"),Kt>=ht&&ot>=b&&z<=ce&&(x.style.height="1px"))}},_n.prototype.computeBounds=function(a){return a===void 0&&(a=new ai),du(this),ah(this,a)};function ah(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,z=0;z<E;z++){var nt=b[z];if(nt.visible&&nt.isInDocumentBounds){nt=nt.Pa.s;for(var ot=nt.length,at=0;at<ot;at++){var ht=nt[at];ht.isInDocumentBounds&&ht.isVisible()&&(ht=ht.actualBounds,ht.w()&&(x?(x=!1,y.assign(ht)):y.ed(ht)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}_n.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(xi(a))for(var b=0;b<a.length;b++){var E=a[b];!y&&E instanceof Vi||(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 Vi||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds));return x===null?new ai(NaN,NaN,0,0):x};function Ul(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=ke.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=ai.allocAt(0,0,b.width,b.height);var E=ke.alloc();E.xi(b,a.initialViewportSpot),E.h(x.x-E.x,x.y-E.y),a.position=E,ai.free(b),ke.free(E),ke.free(x)}x=a.yh,y&&a.Fg!==Al&&(x=a.Fg);var z=x!==Al?Bd(a,x):a.scale;x=a.pa.x,b=a.pa.y,E=a.Aa/z;var nt=a.ya/z,ot=a.zk,at=a.pq;y&&!ot.sb()&&(at.sb()||at.Xb())&&(ot=at.Xb()?Yo:at),lA(a,a.documentBounds,E,nt,ot,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,Ln.B(z.x,x)&&Ln.B(z.y,b)&&Ln.B(z.width,E)&&Ln.B(z.height,nt)||a.onViewportBoundsChanged(new ai(x,b,E,nt),z,y,!1)}}function Bd(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 z=a.Aa+(a.gf?a.Db:0),nt=a.ya+(a.Be?a.Db:0),ot=z/E,at=nt/b;return y===Il?(y=Math.min(at,ot),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===wh?(y=at>ot?(nt-a.Db)/b:(z-a.Db)/E,y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):a.scale}_n.prototype.zoomToFit=function(){var a=this.sj;this.sj=Tc,this.scale=Bd(this,Il),a!==Tc&&(Ul(this,!1),lA(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Vt=_n.prototype,Vt.BA=function(a,y){y===void 0&&(y=Il);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var E=1;if(y===Il||y===wh)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 z=this.ya;E=y===wh?z/b>E/x?(z-(this.Be?this.Db:0))/b:(E-(this.gf?this.Db:0))/x:Math.min(z/b,E/x)}this.scale=E,this.position=new ke(a.x,a.y)}},Vt.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new ke(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))},Vt.zz=function(a){if(a instanceof xn){this.eq=a;var y=ke.alloc();this.fq=this.op(a.ga(Oa,y)),ke.free(y)}else this.eq=null,this.fq=ml};function lA(a,y,x,b,E,z){var nt=ke.allocAt(a.pa.x,a.pa.y),ot=nt.x,at=nt.y;if(a.eq!==null){var ht=ke.alloc();ht=a.eq.ga(Oa,ht),ot=ht.x-a.fq.x/a.scale,at=ht.y-a.fq.y/a.scale,E=Ma,ke.free(ht)}(z||a.scrollMode===Tc)&&(E.sb()&&(x>y.width&&(ot=y.x+(E.x*y.width+E.offsetX)-(E.x*x-E.offsetX)),b>y.height&&(at=y.y+(E.y*y.height+E.offsetY)-(E.y*b-E.offsetY))),E=a.rj,z=x-y.width,x<y.width+E.left+E.right?(ot=Math.min(ot+x/2,y.right+Math.max(z,E.right)-x/2),ot=Math.max(ot,y.left-Math.max(z,E.left)+x/2),ot-=x/2):ot>y.left?ot=y.left:ot<y.right-x&&(ot=y.right-x),x=b-y.height,b<y.height+E.top+E.bottom?(at=Math.min(at+b/2,y.bottom+Math.max(x,E.bottom)-b/2),at=Math.max(at,y.top-Math.max(x,E.top)+b/2),at-=b/2):at>y.top?at=y.top:at<y.bottom-b&&(at=y.bottom-b)),nt.x=isFinite(ot)?ot:-a.yb.left,nt.y=isFinite(at)?at:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,nt),nt.x=y.x,nt.y=y.y),ul(a.Yd,a.pa,nt),a.pa.h(nt.x,nt.y),Rh(a),ke.free(nt)}Vt.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Ys(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof Yr)return a}else if(a=Ys(this,a,function(x){return x.part}),a instanceof Yr)return a;return null},Vt.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),du(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 Ys(a,y,x,b){for(x===void 0&&(x=null),b===void 0&&(b=null),du(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}Vt.lz=function(a,y,x){return y===void 0&&(y=!0),Xc(this,a,function(b){return b.part},y?function(b){return b instanceof Yr&&b.canSelect()}:null,x)};function Xc(a,y,x,b,E){for(x===void 0&&(x=null),b===void 0&&(b=null),E instanceof Ci||E instanceof bi||(E=new bi),du(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,x,b,E)}return E}Vt.ji=function(a,y,x,b){y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Ci||b instanceof bi||(b=new bi),du(this);for(var E=this.Wa.iteratorBackwards;E.next();){var z=E.value;z.visible&&z.ji(a,y,x,b)}return b},Vt.ux=function(a,y,x,b){return y===void 0&&(y=!1),x===void 0&&(x=!0),Pd(this,a,function(E){return E instanceof Yr&&(!x||E.canSelect())},y,b)},Vt.Cf=function(a,y,x,b,E){y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Ci||E instanceof bi||(E=new bi),du(this);for(var z=this.Wa.iteratorBackwards;z.next();){var nt=z.value;nt.visible&&nt.Cf(a,y,x,b,E)}return E},Vt.Nu=function(a,y,x,b,E,z){var nt=new bi;du(this);for(var ot=this.Wa.iteratorBackwards;ot.next();){var at=ot.value;at.visible&&at.Nu(a,y,x,b,nt,E,z)}return nt};function Pd(a,y,x,b,E){var z=null;for(z===void 0&&(z=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Ci||E instanceof bi||(E=new bi),du(a),a=a.Wa.iteratorBackwards;a.next();){var nt=a.value;nt.visible&&!nt.isTemporary&&nt.Cf(y,z,x,b,E)}return E}Vt.mz=function(a,y,x,b,E){return x===void 0&&(x=!0),b===void 0&&(b=!0),mh(this,a,y,function(z){return z instanceof Yr&&(!b||z.canSelect())},x,E)},Vt.og=function(a,y,x,b,E,z){x===void 0&&(x=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof Ci||E instanceof bi)&&(z=E),E=!0),z instanceof Ci||z instanceof bi||(z=new bi),du(this);for(var nt=this.Wa.iteratorBackwards;nt.next();){var ot=nt.value;ot.visible&&ot.og(a,y,x,b,E,z)}return z};function mh(a,y,x,b,E,z){var nt=null;for(nt===void 0&&(nt=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof Ci||E instanceof bi)&&(z=E),E=!0),z instanceof Ci||z instanceof bi||(z=new bi),du(a),a=a.Wa.iteratorBackwards;a.next();){var ot=a.value;ot.visible&&!ot.isTemporary&&ot.og(y,x,nt,b,E,z)}return z}_n.prototype.acceptEvent=function(a){return qu(this,a,a instanceof MouseEvent)};function qu(a,y,x){var b=a.Qg;return a.Qg=a.cj,a.cj=b,b.diagram=a,b.event=y,x?bd(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),Zo&&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=Hd(y,y.target),b.targetObject=null,b}function Hd(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 ud(a,y,x,b,E,z){var nt=a.Qg;return a.Qg=a.cj,a.cj=nt,nt.diagram=a,nt.clickCount=1,a=nt.delta=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),nt.modifiers=a,nt.event=y,nt.timestamp=y.timeStamp,nt.button=y.button,nt.buttons=y.buttons,Zo&&y.button===0&&y.ctrlKey&&(nt.button=2),nt.down=x,nt.up=b,nt.handled=!1,nt.bubbles=E,nt.isMultiTouch=z,nt}function th(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}_n.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=qu(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(),th(x,a)},_n.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=qu(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(),th(x,a)},_n.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=qu(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),th(x,a)},_n.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=qu(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),th(x,a)},_n.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new ke(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?Lo(new ke(y,a),this.Ab):new ke(y,a)};function bd(a,y,x){var b=a.ta,E=a.Aa,z=a.ya,nt=0,ot=0;b!==null&&(b=b.getBoundingClientRect(),nt=y.clientX-E/b.width*b.left,ot=y.clientY-z/b.height*b.top),x.viewPoint.h(nt,ot),a.Ab!==null?(y=ke.allocAt(nt,ot),a.Ab.Cd(y),x.documentPoint.assign(y),ke.free(y)):x.documentPoint.h(nt,ot)}function Ed(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))}}_n.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function Qd(a){a.ld||du(a),a.Va()}_n.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},Vt=_n.prototype,Vt.Pz=function(){return this.kg},Vt.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,cu(this),this.hf=!1,this.du=new ke(NaN,NaN),y.isEnabled=x,this.ld=!0;var b=this;a!==null&&_i(function(){b.ld=!1,yl(y,"Model"),a(b)},1)},Vt.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;Ve.requestAnimationFrame(function(){y.kg&&y.bd()})}},Vt.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),cu(this))};function nu(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Nc(a)||(y&&du(a),x&&Ul(a,!1))}function cu(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,z=E.length,nt=0;nt<z;nt++){var ot=E[nt];Ql(ot,!1),ot.v()}b.clear()}b=a.ow,0<b.count&&(b.each(function(at){at.Nv()}),b.clear()),E=b=!1,x.defaultAnimation.isAnimating&&(E=!0,b=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||Rd(a),nu(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(rc(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),du(a),z=!1,(!a.hf||a.xh)&&(a.hf?LA(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),LA(a,!1)),z=!0),a.Jk=!1,du(a),a.ou||Qd(a),nu(a,!0,!1),nt=!1,z?(x=ai.alloc(),x.assign(a.viewportBounds),a.hf||(nt=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,Mc(a)),a.R("LayoutCompleted"),nu(a,!0,!1),ai.free(x)):x.Ok&&x.Qw&&(a.Fg!==Al?a.scale=Bd(a,a.Fg):a.yh!==Al?a.scale=Bd(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),Ul(a,!0)),z&&nt&&a.eb("Initial Layout"),du(a),y||a.gc(a.ib),E&&(a.skipsUndoManager=b),a.ld=!1}}function Mc(a){if(a.Fg!==Al)a.scale=Bd(a,a.Fg);else if(a.yh!==Al)a.scale=Bd(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}Ul(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),rc(a)}function du(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 bi,a.Nv(x,a.De)}a.nodes.each(function(b){b instanceof _o&&b.U&65536&&(b.U=b.U^65536)})}}Vt.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof _o||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof _o&&x.isVisible()&&xa(this,x);for(a.reset();a.next();)x=a.value,x instanceof Vi&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x));for(a.reset();a.next();)x=a.value,x instanceof bs&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function xa(a,y){for(var x=yi(),b=yi(),E=y.memberParts;E.next();){var z=E.value;z.isVisible()&&(z instanceof _o?(xh(z)||Hu(z)||eg(z))&&xa(a,z):z instanceof Vi?z.fromNode===y||z.toNode===y?b.push(z):x.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=x.length,E=0;E<a;E++)z=x[E],z.measure(1/0,1/0),z.arrange();for(nr(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();nr(b)}Vt.Fd=function(a,y,x,b){if(this.vd||this.animationManager.isAnimating)for(var E=0;E<y;E++)a[E].Fd(x,b)},Vt.gc=function(a){if(this.Ka!==null){if(this.ta===null&&sn("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){yh(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,z=Math.round(y.x*E)/E,nt=Math.round(y.y*E)/E,ot=this.Ab;for(ot.reset(),E!==1&&ot.scale(E),y.x===0&&y.y===0||ot.translate(-z,-nt),a.ti=null,Zf(a,ot.m11,ot.m12,ot.m21,ot.m22,ot.dx,ot.dy),this.pb!==1&&(a.globalAlpha=this.pb),Bu(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?Eu(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(Ko.prototype.Cd=Ko.prototype.Eu),this.Fc=this.vd=!1}}}}else t:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(x=new Date,yh(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&&!z.isAnimating)break t;z=this.Ab,z.reset(),nt=this.Mb,ot=this.pa;var at=this.Ca,ht=Math.round(ot.x*at)/at,ct=Math.round(ot.y*at)/at;for(at!==1&&z.scale(at),ot.x===0&&ot.y===0||z.translate(-ht,-ct),a.setTransform(nt,0,0,nt,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),Bu(this,a),ot=0;ot<E;ot++)a.setTransform(nt,0,0,nt,0,0),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),a.yc(),y[ot].gc(a,this);if(y=!1,this.Yf?Eu(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(Ko.prototype.Cd=Ko.prototype.Eu),b?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,b=Lr&&Lr.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 hl(a,y,x,b,E,z,nt,ot,at,ht){if(a.Ka!==null){a.ta===null&&sn("No canvas specified"),nt===void 0&&(nt=null),ot===void 0&&(ot=null),at===void 0&&(at=!1),ht===void 0&&(ht=!1),yh(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var ct=a.Ca;a.Ca=E;var gt=a.Wa.s,Nt=gt.length;try{var Kt=new ai(z.x,z.y,b.width/E,b.height/E),Xt=Kt.copy();Xt.Co(x),rc(a,Xt),du(a),a.Fd(gt,Nt,a,Kt),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,b.width,b.height),ot!==null&&ot!==""&&(y.fillStyle=ot,y.ox(0,0,b.width,b.height));var ce=a.Mb;y.scale(ce,ce);var Ke=Ko.alloc();Ke.reset(),Ke.translate(x.left,x.top),Ke.scale(E),z.x===0&&z.y===0||Ke.translate(-z.x,-z.y),y.setTransform(Ke.m11,Ke.m12,Ke.m21,Ke.m22,Ke.dx,Ke.dy),y.yc(),y instanceof Sh&&Zf(y,Ke.m11,Ke.m12,Ke.m21,Ke.m22,Ke.dx,Ke.dy),Ko.free(Ke),Bu(a,y),y.globalAlpha=a.pb;var Te=a.Qj("Grid");if(nt){var $e=new bi,rn=nt.iterator;for(rn.reset();rn.next();){var ln=rn.value;ln instanceof Yr&&(ht||ln.layer!==Te)&&(ln.Gj(),$e.add(ln))}for(ht=0;ht<Nt;ht++)Ru(gt[ht],y,a,$e,at);$e.each(function(Gn){return Gn.Gj()})}else for($e=0;$e<Nt;$e++){var Bn=gt[$e];Bn===Te?ht&&Bn.gc(y,a,!0):Bn.gc(y,a,at)}a.$i=!1,a.Yf&&Eu(a.Yf,a)&&a.Vp()}finally{a.Ca=ct,a.ib.Vc(!0),a.vd=!0,a.Fd(gt,Nt,a,a.viewportBounds),rc(a),a.ib instanceof Sh&&(a.ib.Nj.PA(),a.redraw())}}}Vt.Gf=function(a){return this.Rg[a]},Vt.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},Vt.Tx=function(){this.Rg=new no,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(Zo||Ho),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function Bu(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}Vt.Ql=function(a){return this.on[a]},Vt.sA=function(a,y){this.on[a]=y},Vt.Sx=function(){this.on=new no,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},Vt.set=function(a){return Object.assign(this,a),this},Vt.Du=function(a){return this.nm(a)},Vt.nm=function(a){return vh(this,a),this};function vh(a,y){var x=a instanceof qn,b=a instanceof _n,E;for(E in y){E===""&&sn("Setting properties requires non-empty property names");var z=a,nt=E;if(x||b){var ot=E.indexOf(".");if(0<ot){var at=E.substring(0,ot);x?z=a.fb(at):(z=a[at],z==null&&(z=a.toolManager[at])),ii(z)?nt=E.substr(ot+1):sn("Unable to find object named: "+at+" in "+a.toString()+" when trying to set property: "+E)}}if(nt[0]!=="_"&&!Zr(z,nt))if(b&&nt==="ModelChanged"){a.Yw(y[nt]);continue}else if(b&&nt==="Changed"){a.Pe(y[nt]);continue}else if(b&&Zr(a.toolManager,nt))z=a.toolManager;else if(b&&pe(a,nt)){a.Bj(nt,y[nt]);continue}else if(a instanceof Ur&&nt==="Changed"){a.Pe(y[nt]);continue}else sn('Trying to set undefined property "'+nt+'" on object: '+z.toString());z[nt]=y[E],nt[0]==="_"&&z instanceof xn&&z.Vw(nt)}}Vt.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new Cr,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},Vt.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")},_n.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!==Ld&&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),z=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,z-E)*b){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(b=ai.alloc(),zA(this,this.computeBounds(b)),ai.free(b)),b=this.ta,b===null||b instanceof Pu)))){var nt=this.Mb;E=this.Aa*nt;var ot=this.ya*nt,at=this.scale*nt;z=Math.round(Math.round(y.x*at)-Math.round(a.x*at)),y=Math.round(Math.round(y.y*at)-Math.round(a.y*at)),at=this.jw,a=this.oy,at.width!==E&&(at.width=E),at.height!==ot&&(at.height=ot),a.clearRect(0,0,E,ot),at=190*nt;var ht=70*nt,ct=Math.max(z,0),gt=Math.max(y,0),Nt=Math.floor(E-ct),Kt=Math.floor(ot-gt);a.drawImage(b.Oa,ct,gt,Nt,Kt,0,0,Nt,Kt),Eu(this.Yf,this)&&a.clearRect(0,0,at,ht),b=yi(),a=yi(),Kt=Math.abs(z),Nt=Math.abs(y);var Xt=ct===0?0:E-Kt;ct=ke.allocAt(Xt,0),Kt=ke.allocAt(Kt+Xt,ot),a.push(new ai(Math.min(ct.x,Kt.x),Math.min(ct.y,Kt.y),Math.abs(ct.x-Kt.x),Math.abs(ct.y-Kt.y)));var ce=this.Ab;if(ce.reset(),ce.scale(nt,nt),this.Ca!==1&&ce.scale(this.Ca),nt=this.pa,(nt.x!==0||nt.y!==0)&&isFinite(nt.x)&&isFinite(nt.y)&&ce.translate(-nt.x,-nt.y),Lo(ct,ce),Lo(Kt,ce),b.push(new ai(Math.min(ct.x,Kt.x),Math.min(ct.y,Kt.y),Math.abs(ct.x-Kt.x),Math.abs(ct.y-Kt.y))),Xt=gt===0?0:ot-Nt,ct.h(0,Xt),Kt.h(E,Nt+Xt),a.push(new ai(Math.min(ct.x,Kt.x),Math.min(ct.y,Kt.y),Math.abs(ct.x-Kt.x),Math.abs(ct.y-Kt.y))),Lo(ct,ce),Lo(Kt,ce),b.push(new ai(Math.min(ct.x,Kt.x),Math.min(ct.y,Kt.y),Math.abs(ct.x-Kt.x),Math.abs(ct.y-Kt.y))),Eu(this.Yf,this)&&(E=0<z?0:-z,ot=0<y?0:-y,ct.h(E,ot),Kt.h(at+E,ht+ot),a.push(new ai(Math.min(ct.x,Kt.x),Math.min(ct.y,Kt.y),Math.abs(ct.x-Kt.x),Math.abs(ct.y-Kt.y))),Lo(ct,ce),Lo(Kt,ce),b.push(new ai(Math.min(ct.x,Kt.x),Math.min(ct.y,Kt.y),Math.abs(ct.x-Kt.x),Math.abs(ct.y-Kt.y)))),ke.free(ct),ke.free(Kt),nu(this,!1,!0),this.Ka===null&&sn("No div specified"),this.ta===null&&sn("No canvas specified"),!this.animationManager.zb&&(E=this.ib,this.Fc)){for(yh(this),ot=this.Mb,E.setTransform(1,0,0,1,0,0),E.clearRect(0,0,this.Aa*ot,this.ya*ot),E.drawImage(this.jw.Oa,0<z?0:Math.round(-z),0<y?0:Math.round(-y)),z=this.pa,nt=this.Ca,at=Math.round(z.x*nt)/nt,ht=Math.round(z.y*nt)/nt,y=this.Ab,y.reset(),nt!==1&&y.scale(nt),z.x===0&&z.y===0||y.translate(-at,-ht),E.save(),E.beginPath(),z=a.length,nt=0;nt<z;nt++)at=a[nt],at.width!==0&&at.height!==0&&E.rect(Math.floor(at.x),Math.floor(at.y),Math.ceil(at.width),Math.ceil(at.height));for(E.clip(),E.setTransform(ot,0,0,ot,0,0),E.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),E.yc(),y=this.Wa.s,z=y.length,this.Fd(y,z,this,this.viewportBounds),Bu(this,E),E.globalAlpha=this.pb,ot=0;ot<z;ot++)if(nt=y[ot],at=b,nt.visible&&nt.pb!==0){ht=hu(nt,E),gt=nt.Zq,gt.length=0,ct=this.scale,Nt=ai.alloc(),Kt=nt.Pa.s,ce=Kt.length,Xt=at.length;for(var Ke=0;Ke<ce;Ke++){var Te=Kt[Ke],$e=Ig(Te,Te.actualBounds);t:{for(var rn=2/ct,ln=4/ct,Bn=0;Bn<Xt;Bn++){var Gn=at[Bn];if(Gn.width!==0&&Gn.height!==0&&$e.Vu(Gn.x-rn,Gn.y-rn,Gn.width+ln,Gn.height+ln)){$e=!0;break t}}$e=!1}$e&&nt.Oj(E,Te,this,gt,ct,Nt,!0)}ai.free(Nt),E.globalAlpha=ht}E.restore(),E.Vc(!0),this.Yf&&Eu(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}nr(b),nr(a),this.ld=!1}}else this.bd();x&&(vu(this),this.bd(),Sd(this,!0))}else x?(vu(this),this.bd(),Sd(this,!0)):this.bd()}};function yh(a){a.pn!==!1&&(a.pn=!1,zd(a,a.Aa,a.ya))}function zd(a,y,x){Rh(a);var b=a.Mb;a.ta.resize(y*b,x*b,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function Nc(a){var y=a.ta;if(y===null||a.wo.w())return!0;var x=a.Aa,b=a.ya,E=a.Ka,z=!1,nt=a.gf?a.Db:0,ot=a.Be?a.Db:0,at=E.clientWidth||x+nt,ht=E.clientHeight||b+ot,ct=a.viewportBounds;E=ct.x;var gt=ct.y,Nt=ct.width,Kt=ct.height;if((at!==x+nt||ht!==b+ot)&&(a.gf=!1,a.Be=!1,ot=nt=0,a.Aa=at,a.ya=ht,z=a.pn=!0,Rh(a)),!a.hf||!a.viewportBounds.w())return!0;var Xt=a.ku,ce=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var Ke=a.documentBounds,Te=0,$e=0,rn=0,ln=0,Bn=ct.width,Gn=ct.height,lr=a.rj;a.contentAlignment.sb()?(Ke.width>Bn&&(Te=lr.left,$e=lr.right),Ke.height>Gn&&(rn=lr.top,ln=lr.bottom)):(Te=lr.left,$e=lr.right,rn=lr.top,ln=lr.bottom);var kr=Ke.width+Te+$e,Sr=Ke.height+rn+ln;lr=a.scale;var Wi=kr>at/lr,Mi=Sr>ht/lr;if(!(z||a.gf||a.Be||Wi||Mi))return!0;Te=Ke.x-Te,at=ct.x,$e=Ke.right+$e,ht=ct.right+nt,rn=Ke.y-rn;var Uo=ct.y;Ke=Ke.bottom+ln,ct=ct.bottom+ot;var Bo="1px";if(ln="1px",a.scrollMode===Tc&&(Wi||Mi)&&(Wi&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Wi=1,Te+1<at&&(Wi=Math.max((at-Te)*lr+a.Aa,Wi)),$e>ht+1&&(Wi=Math.max(($e-ht)*lr+a.Aa,Wi)),Bn+nt+1<kr&&(Wi=Math.max((kr-Bn)*lr+a.Aa,Wi)),Bo=Wi.toString()+"px"),Mi&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Wi=1,rn+1<Uo&&(Wi=Math.max((Uo-rn)*lr+a.ya,Wi)),Ke>ct+1&&(Wi=Math.max((Ke-ct)*lr+a.ya,Wi)),Gn+ot+1<Sr&&(Wi=Math.max((Sr-Gn)*lr+a.ya,Wi)),ln=Wi.toString()+"px")),Wi=Bo!=="1px",Mi=ln!=="1px",Wi&&Mi||!Wi&&!Mi||(Mi&&(ht-=a.Db),Wi&&(ct-=a.Db),kr<Bn+nt||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(nt=1,Te+1<at&&(nt=Math.max((at-Te)*lr+a.Aa,nt)),$e>ht+1&&(nt=Math.max(($e-ht)*lr+a.Aa,nt)),Bn+1<kr&&(nt=Math.max((kr-Bn)*lr+a.Aa,nt)),Bo=nt.toString()+"px"),Wi=Bo!=="1px",nt=a.ya,Wi!==a.Be&&(nt=Wi?a.ya-a.Db:a.ya+a.Db),Sr<Gn+ot||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(ot=1,rn+1<Uo&&(ot=Math.max((Uo-rn)*lr+nt,ot)),Ke>ct+1&&(ot=Math.max((Ke-ct)*lr+nt,ot)),Gn+1<Sr&&(ot=Math.max((Sr-Gn)*lr+nt,ot)),ln=ot.toString()+"px"),Mi=ln!=="1px"),a.qr&&Wi===a.Be&&Mi===a.gf)return x===a.Aa&&b===a.ya||a.bd(),!1;if(Wi!==a.Be&&(Bo==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=Wi,ce.style.width=Bo,Mi!==a.gf&&(ln==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(ot=ke.alloc(),Mi?(y.style.left=a.Db+"px",a.position=ot.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=ot.h(a.pa.x-a.Db/a.scale,a.pa.y)),ke.free(ot))),z&&Rh(a),a.gf=Mi,ce.style.height=ln,a.gu=!0,z&&(a.pn=!0),y=Xt.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Bn+1<kr?y=(a.position.x-Te)*lr:Te+1<at?y=Xt.scrollWidth-Xt.clientWidth:$e>ht+1&&(y=a.position.x*lr)),a.tn)switch(a.bu){case"negative":y=-(Xt.scrollWidth-y-Xt.clientWidth);break;case"reverse":y=Xt.scrollWidth-y-Xt.clientWidth}return Xt.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Gn+1<Sr?Xt.scrollTop=(a.position.y-rn)*lr:rn+1<Uo?Xt.scrollTop=Xt.scrollHeight-Xt.clientHeight:Ke>ct+1&&(Xt.scrollTop=a.position.y*lr)),at=a.Aa,ht=a.ya,Xt.style.width=at+(a.gf?a.Db:0)+"px",Xt.style.height=ht+(a.Be?a.Db:0)+"px",x!==at||b!==ht||a.animationManager.zb?(x=ai.allocAt(E,gt,Nt,Kt),a.onViewportBoundsChanged(x,a.viewportBounds,lr,z),ai.free(x),!1):!0}Vt=_n.prototype,Vt.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&sn("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&&sn('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(vl,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},Vt.oi=function(a){this.partManager.oi(a);var y=this;ua(a,function(x){pc(y,x)}),(a instanceof bs||a instanceof _o&&a.placeholder!==null)&&a.v(),a.data!==null&&ua(a,function(x){Wv(y.partManager,x)}),Hu(a)!==!0&&eg(a)!==!0||this.De.add(a),Ky(a,!0,this),Wy(a)?(a.actualBounds.w()&&this.N(Ig(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Ig(a,a.actualBounds)),this.$b()},Vt.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&ua(a,function(x){Vv(y.partManager,x,y)}),this.De.remove(a),Wy(a)?(a.actualBounds.w()&&this.N(Ig(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Ig(a,a.actualBounds)),this.$b()},Vt.remove=function(a){Uh(this,a,!0)};function Uh(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(Zl,"parts",b,y,null,x,null),a=y.layerChanged,a!==null&&a(y,b,null))}Vt.Is=function(a,y){if(y===void 0&&(y=!1),xi(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 bi,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},Vt.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},_n.prototype.moveParts=function(a,y,x,b){if(x===void 0&&(x=!1),b===void 0&&(b=Jc(this)),this.toolManager!==null){var E=new Cr;if(a!==null)if(xi(a))for(var z=0;z<a.length;z++)Vu(this,E,a[z],x,b);else for(a=a.iterator;a.next();)Vu(this,E,a.value,x,b);else{for(a=this.parts;a.next();)Vu(this,E,a.value,x,b);for(a=this.nodes;a.next();)Vu(this,E,a.value,x,b);for(a=this.links;a.next();)Vu(this,E,a.value,x,b)}Ic(this,E,y,b,x)}};function Vu(a,y,x,b,E,z){if(!y.contains(x)&&(z===void 0&&(z=!1),!b||z||x.canMove()||x.canCopy()))if(E===void 0&&(E=Jc(a)),x instanceof Ar){if(y.add(x,a.Pd(E,x,x.location)),x instanceof _o&&(x.placeholder!==null||E.dragsMembers))for(z=x.memberParts;z.next();)Vu(a,y,z.value,b,E,E.groupsAlwaysMove);for(z=x.linksConnected;z.next();){var nt=z.value;if(!y.contains(nt)){var ot=nt.fromNode,at=nt.toNode;ot!==null&&y.contains(ot)&&at!==null&&y.contains(at)&&Vu(a,y,nt,b,E)}}if(E.dragsTree)for(x=x.Ou();x.next();)Vu(a,y,x.value,b,E)}else if(x instanceof Vi)for(y.add(x,a.Pd(E,x)),x=x.labelNodes;x.next();)Vu(a,y,x.value,b,E);else x instanceof bs||y.add(x,a.Pd(E,x,x.location))}function Ic(a,y,x,b,E){if(y!==null&&y.count!==0){var z=ke.alloc(),nt=ke.alloc();nt.assign(x),isNaN(nt.x)&&(nt.x=0),isNaN(nt.y)&&(nt.y=0),(x=a.Mr)||Kd(a,y);for(var ot=yi(),at=yi(),ht=y.iterator,ct=ke.alloc();ht.next();){var gt=ht.key,Nt=ht.value;if(gt.Zc()){var Kt=FA(a,gt,y);Kt!==null?ot.push(new it(gt,Nt,Kt)):(!E||gt.canMove())&&(Kt=Nt.point,z.assign(Kt),a.computeMove(gt,z.add(nt),b,ct),gt.location=ct,Nt.shifted===void 0&&(Nt.shifted=new ke),Nt.shifted.assign(ct.re(Kt)))}else ht.key instanceof Vi&&at.push(ht.sa)}for(ke.free(ct),E=ot.length,ht=0;ht<E;ht++)gt=ot[ht],z.assign(gt.info.point),gt.Su.shifted===void 0&&(gt.Su.shifted=new ke),gt.node.location=z.add(gt.Su.shifted);for(E=ke.alloc(),ht=ke.alloc(),gt=at.length,Nt=0;Nt<gt;Nt++){var Xt=at[Nt];if(Kt=Xt.key,Kt instanceof Vi)if(Kt.suspendsRouting){Kt.Tg=null,ct=Kt.fromNode;var ce=Kt.toNode;if(a.draggedLink!==null&&b.dragsLink)if(ce=Xt.value.point,Kt.dragComputation===null)y.add(Kt,a.Pd(b,Kt,nt)),Nf(Kt,nt.x-ce.x,nt.y-ce.y);else{Xt=ke.allocAt(0,0),(ct=Kt.i(0))&&ct.w()&&Xt.assign(ct);var Ke=ct=ke.alloc().assign(Xt).add(nt);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(Ke=ke.alloc(),ic(a,Kt,ct,Ke,b)),ct.assign(Kt.dragComputation(Kt,ct,Ke)).re(Xt),y.add(Kt,a.Pd(b,Kt,ct)),Nf(Kt,ct.x-ce.x,ct.y-ce.y),ke.free(Xt),ke.free(ct),Ke!==ct&&ke.free(Ke)}else ct!==null&&(E.assign(ct.location),Ke=y.I(ct),Ke!==null&&E.re(Ke.point)),ce!==null&&(ht.assign(ce.location),Ke=y.I(ce),Ke!==null&&ht.re(Ke.point)),ct!==null&&ce!==null?E.Xa(ht)?(ct=Xt.value.point,ce=z,ce.assign(E),ce.re(ct),y.add(Kt,a.Pd(b,Kt,E)),Nf(Kt,ce.x,ce.y)):(Kt.suspendsRouting=!1,Kt.bb()):(Xt=Xt.value.point,ct=ct!==null?E:ce!==null?ht:nt,y.add(Kt,a.Pd(b,Kt,ct)),Nf(Kt,ct.x-Xt.x,ct.y-Xt.y))}else(Kt.fromNode===null||Kt.toNode===null)&&(ct=Xt.value.point,y.add(Kt,a.Pd(b,Kt,nt)),Nf(Kt,nt.x-ct.x,nt.y-ct.y))}ke.free(z),ke.free(nt),ke.free(E),ke.free(ht),nr(ot),nr(at),x||(du(a),gc(a,y))}}_n.prototype.computeMove=function(a,y,x,b){if(b===void 0&&(b=new ke),b.assign(y),a===null)return b;var E=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(E=ke.alloc(),ic(this,a,y,E,x)),x=a.dragComputation!==null?a.dragComputation(a,y,E):E;var nt=a.minLocation,ot=nt.x;isNaN(ot)&&(ot=z?Math.round(1e3*a.location.x)/1e3:a.location.x),nt=nt.y,isNaN(nt)&&(nt=z?Math.round(1e3*a.location.y)/1e3:a.location.y);var at=a.maxLocation,ht=at.x;return isNaN(ht)&&(ht=z?Math.round(1e3*a.location.x)/1e3:a.location.x),at=at.y,isNaN(at)&&(at=z?Math.round(1e3*a.location.y)/1e3:a.location.y),b.h(Math.max(ot,Math.min(x.x,ht)),Math.max(nt,Math.min(x.y,at))),E!==y&&ke.free(E),b};function Jc(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function ic(a,y,x,b,E){if(E===void 0&&(E=Jc(a)),b.assign(x),y!==null){var z=a.grid;y=E.gridSnapCellSize,a=y.width,y=y.height;var nt=E.gridSnapOrigin,ot=nt.x;if(nt=nt.y,E=E.gridSnapCellSpot,z!==null){var at=z.gridCellSize;isNaN(a)&&(a=at.width),isNaN(y)&&(y=at.height),z=z.gridOrigin,isNaN(ot)&&(ot=z.x),isNaN(nt)&&(nt=z.y)}z=ke.allocAt(0,0),z.yi(0,0,a,y,E),Ln.No(x.x,x.y,ot+z.x,nt+z.y,a,y,b),ke.free(z)}}function Kd(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof Vi&&(y.suspendsRouting=!0)}function gc(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof Vi&&(x.suspendsRouting=!1,Iv(x)&&x.bb())}a.Mr=!1}}function FA(a,y,x){return y=y.containingGroup,y!==null&&(a=FA(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}Vt=_n.prototype,Vt.Pd=function(a,y,x){if(x===void 0)return new sc(ts);var b=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(b=!1),b?new sc(new ke(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new sc(x.copy())};function uA(a,y,x){if(y.diagram!==null&&y.diagram!==a&&sn("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&sn("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&sn("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&sn("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&&sn("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}Vt.Al=function(a){uA(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(vl,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},Vt.Ww=function(a,y){uA(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(Zl,"layers",this,a,null,b,null));var E=x.count,z;for(z=0;z<E;z++)if(x.M(z)===y){x.Gb(z,a);break}return this.cc!==null&&this.cb(vl,"layers",this,null,a,null,z),this.N(),0>b&&this.Ya(),this},Vt.Cy=function(a,y){uA(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(Zl,"layers",this,a,null,b,null));var E=x.count,z;for(z=0;z<E;z++)if(x.M(z)===y){x.Gb(z+1,a);break}return this.cc!==null&&this.cb(vl,"layers",this,null,a,null,z+1),this.N(),0>b&&this.Ya(),this},Vt.kA=function(a){if(a.diagram!==this&&sn("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(Zl,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Vt.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Vt.Yw=function(a){return this.pf===null&&(this.pf=new Ci),this.pf.add(a),this.model.Pe(a),this},Vt.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Vt.Pe=function(a){return this.zg===null&&(this.zg=new Ci),this.zg.add(a),this},Vt.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Vt.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==Ju&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,b=0;b<x;b++)y.M(b)(a)},Vt.cb=function(a,y,x,b,E,z,nt){z===void 0&&(z=null),nt===void 0&&(nt=null);var ot=new Da;ot.diagram=this,ot.change=a,ot.propertyName=y,ot.object=x,ot.oldValue=b,ot.oldParam=z,ot.newValue=E,ot.newParam=nt,this.ds(ot)},Vt.g=function(a,y,x,b,E){this.cb(ja,a,this,y,x,b,E)},_n.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===ja){var E=a.object;if(za(E,a.propertyName,a.I(y)),E instanceof xn){var z=E.part;z!==null&&z.Wb()}this.isModified=!0}else if(b===vl){var nt=a.object,ot=a.newParam,at=a.newValue;if(nt instanceof qn)if(typeof ot=="number"&&at instanceof xn){y?nt.pc(ot):nt.Gb(ot,at);var ht=nt.part;ht!==null&&ht.Wb()}else typeof ot=="number"&&at instanceof Kl&&(at.isRow?Jd(nt,ot,y?void 0:at):kA(nt,ot,y?void 0:at));else if(nt instanceof ga){var ct=a.oldParam===!0;typeof ot=="number"&&at instanceof Yr&&(y?(at.isSelected=!1,at.isHighlighted=!1,at.Wb(),nt.pc(ct?ot:-1,at,ct)):nt.oi(ot,at,ct))}else nt instanceof _n?typeof ot=="number"&&at instanceof ga&&(y?this.Wa.mb(ot):(at.Xe(this),this.Wa.Gb(ot,at))):sn("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===Zl){var gt=a.object,Nt=a.oldParam,Kt=a.oldValue;if(gt instanceof qn)typeof Nt=="number"&&Kt instanceof xn?y?gt.Gb(Nt,Kt):gt.pc(Nt):typeof Nt=="number"&&Kt instanceof Kl&&(Kt.isRow?Jd(gt,Nt,y?Kt:void 0):kA(gt,Nt,y?Kt:void 0));else if(gt instanceof ga){var Xt=a.newParam===!0;typeof Nt=="number"&&Kt instanceof Yr&&(y?0>gt.Pa.indexOf(Kt)&>.oi(Nt,Kt,Xt):(Kt.isSelected=!1,Kt.isHighlighted=!1,Kt.Wb(),gt.pc(Xt?Nt:-1,Kt,Xt)))}else gt instanceof _n?typeof Nt=="number"&&Kt instanceof ga&&(y?(Kt.Xe(this),this.Wa.Gb(Nt,Kt)):this.Wa.mb(Nt)):sn("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==Ju&&sn("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},_n.prototype.Ea=function(a){return this.undoManager.Ea(a)},_n.prototype.eb=function(a){return this.undoManager.eb(a)},_n.prototype.Kf=function(){return this.undoManager.Kf()},_n.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}},_n.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},_n.prototype.rp=function(){this.partManager.rp()};function lf(a,y,x){var b=a.animationManager;if(a.vb||a.ld)a.Ca=x,Rh(a),a.N(),a.Ee=!0,b.zb&&(Ra(b)||b.ce.add(b.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,Rh(a);else{a.vb=!0;var E=a.viewportBounds.copy(),z=a.Aa,nt=a.ya,ot=a.zoomPoint.x,at=a.zoomPoint.y,ht=a.contentAlignment;isNaN(ot)&&(ht.$c()?ht.Hf(tl)?ot=0:ht.Hf(tu)&&(ot=z-1):ot=ht.sb()?ht.x*(z-1):z/2),isNaN(at)&&(ht.$c()?ht.Hf(Ml)?at=0:ht.Hf(Pl)&&(at=nt-1):at=ht.sb()?ht.y*(nt-1):nt/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),z=ke.allocAt(a.pa.x+ot/y-ot/x,a.pa.y+at/y-at/x),a.position=z,ke.free(z),a.Ca=x,Rh(a),a.vb=!1,a.onViewportBoundsChanged(E,a.viewportBounds,y,!1),Ul(a,!1),b.zb&&(Ra(b)||b.ce.add(b.H,"scale",y,a.Ca))}}_n.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!==Al||a.width===y.width&&a.height===y.height||E.C(),E=this.currentTool,this.Vk===!0&&E instanceof Zt&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),ye(E,this)),this.vb||this.invalidateViewport(a,y),rc(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(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function rc(a,y){var x=a.fe;if(x!==null&&x.visible){for(var b=Ki.alloc(),E=1,z=1,nt=x.O.s,ot=nt.length,at=0;at<ot;at++){var ht=nt[at],ct=Math.abs(ht.interval);2>ct||(zl(ht.figure)?z=z*ct/Ln.vx(z,ct):E=E*ct/Ln.vx(E,ct))}if(nt=x.gridCellSize,b.h(z*nt.width,E*nt.height),y!==void 0)E=y.width,z=y.height,a=y.x,nt=y.y;else{if(y=ai.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){ai.free(y);return}E=y.width,z=y.height,a=y.x,nt=y.y,ai.free(y)}x.width=E+2*b.width,x.height=z+2*b.height,y=ke.alloc(),Ln.No(a,nt,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),Ki.free(b),x.part.location=y,ke.free(y)}}_n.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)}},_n.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))},_n.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),xi(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];b instanceof Yr||sn("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 Yr||sn("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},_n.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()}},Vt=_n.prototype,Vt.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},Vt.Jz=function(a){a=new bi().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 Yr||sn("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},Vt.scroll=function(a,y,x){x===void 0&&(x=1);var b=y==="up"||y==="down",E=0,z=ke.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=z.h(x.x,E.y):y==="left"?this.position=z.h(E.x,x.y):y==="down"?this.position=z.h(x.x,E.bottom-x.height):y==="right"&&(this.position=z.h(E.right-x.width,x.y)),ke.free(z);return}sn("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+a)}E/=this.scale,x=this.position,y==="up"?this.position=z.h(x.x,x.y-E):y==="down"?this.position=z.h(x.x,x.y+E):y==="left"?this.position=z.h(x.x-E,x.y):y==="right"?this.position=z.h(x.x+E,x.y):sn("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),ke.free(z)},Vt.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)},Vt.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},Vt.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)},Vt.zA=function(a){var y=this.Ab,x=a.x,b=a.y,E=x+a.width,z=b+a.height,nt=y.m11,ot=y.m12,at=y.m21,ht=y.m22,ct=y.dx,gt=y.dy,Nt=x*nt+b*at+ct;y=x*ot+b*ht+gt;var Kt=E*nt+b*at+ct;return a=E*ot+b*ht+gt,b=x*nt+z*at+ct,x=x*ot+z*ht+gt,nt=E*nt+z*at+ct,E=E*ot+z*ht+gt,z=Math.min(Nt,Kt),Nt=Math.max(Nt,Kt),Kt=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,b),Nt=Math.max(Nt,b),Kt=Math.min(Kt,x),y=Math.max(y,x),z=Math.min(z,nt),Nt=Math.max(Nt,nt),Kt=Math.min(Kt,E),y=Math.max(y,E),new ai(z,Kt,Nt-z,y-Kt)},Vt.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),Lo(a.copy(),this.Ab)};function QA(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function Gd(a){return a=ba.get(a),a!==null?new a:new $s}_n.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,b=a.propertyName;if(x===Ju&&b[0]==="S")if(b==="StartingFirstTransaction"){var E=this;a=this.toolManager,a.mouseDownTools.each(function(at){return at.diagram=E}),a.mouseMoveTools.each(function(at){return at.diagram=E}),a.mouseUpTools.each(function(at){return at.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===Ju){(b==="FinishedUndo"||b==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),du(this));var z=this.animationManager;b==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||po(z),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 nt=a.isTransactionFinished;if(nt&&(QA(this),this.As.clear(),na(this.animationManager)),!this.Rt&&nt&&this.lastInput.targetDiagram){this.Rt=!0;var ot=this;_i(function(){ot.currentTool.standardMouseOver(),ot.Rt=!1},10)}}}finally{this.aa=!0}}}};function pc(a,y){y=y.O.s;for(var x=y.length,b=0;b<x;b++)hd(a,y[b])}function hd(a,y){if(y instanceof uc){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof bi&&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 hA(a,y){if(y instanceof uc){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 z=0;z<E.length;z++)if(E[z]===y){E.splice(z,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 bi&&x.Bg.remove(a),Op(b));break}}}}}_n.prototype.Wd=function(){this.partManager.Wd()},_n.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},_n.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},_n.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},_n.prototype.Vb=function(a){return this.partManager.Vb(a)},_n.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},Vt=_n.prototype,Vt.Lc=function(a){return this.partManager.Lc(a)},Vt.ii=function(a){return this.partManager.ii(a)},Vt.Kc=function(a){return this.partManager.Kc(a)},Vt.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:Ms(Ss(y)))},Vt.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:Ms(Ss(y)))};function Rh(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 zA(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),Ul(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}Vt.Va=function(){if(this.Zi){var a=ai.alloc();zA(this,this.computeBounds(a)),ai.free(a)}},Vt.rz=function(){for(var a=new bi,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},Vt.qz=function(){return this.ai.iterator},Vt.Uz=function(a){du(this),a&&Fd(this,!0),this.ld?LA(this,!1):(this.Jk=!0,cu(this))};function Fd(a,y){for(var x=a.ai.iterator;x.next();)Wd(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function Wd(a,y,x){if(y!==null){for(var b=y.gl.iterator;b.next();)Wd(a,b.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function LA(a,y){if(a.xh&&!a.lt){var x=a.aa;a.aa=!0;var b=a.undoManager.transactionLevel,E=a.layout,z=a.animationManager;try{b===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=b&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||yl(z,"Layout")),a.xh=!1;for(var nt=a.ai.iterator;nt.next();)kc(a,nt.value,y,b);E.isValidLayout||(!y||E.isRealtime||E.isRealtime===null||b===0?(E.doLayout(a),du(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||po(z),a.aa=x}}}function kc(a,y,x,b){if(y!==null){for(var E=y.gl.iterator;E.next();)kc(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),xa(a,y),E.isValidLayout=!0):a.xh=!0)}}Vt.yz=function(){for(var a=new Ci,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function KA(a){function y(E){var z=E.toLowerCase(),nt=new Ci;x.add(E,nt),x.add(z,nt),b.add(E,E),b.add(z,E)}var x=new Cr,b=new Cr;y("InitialAnimationStarting"),y("AnimationStarting"),y("AnimationFinished"),y("BackgroundSingleClicked"),y("BackgroundDoubleClicked"),y("BackgroundContextClicked"),y("ClipboardChanged"),y("ClipboardPasted"),y("DocumentBoundsChanged"),y("ExternalObjectsDropped"),y("GainedFocus"),y("InitialLayoutCompleted"),y("LayoutCompleted"),y("LinkDrawn"),y("LinkRelinked"),y("LinkReshaped"),y("LostFocus"),y("Modified"),y("ObjectSingleClicked"),y("ObjectDoubleClicked"),y("ObjectContextClicked"),y("PartCreated"),y("PartResized"),y("PartRotated"),y("SelectionMoved"),y("SelectionCopied"),y("SelectionDeleting"),y("SelectionDeleted"),y("SelectionGrouped"),y("SelectionUngrouped"),y("ChangingSelection"),y("ChangedSelection"),y("SubGraphCollapsed"),y("SubGraphExpanded"),y("TextEdited"),y("TreeCollapsed"),y("TreeExpanded"),y("ViewportBoundsChanged"),y("InvalidateDraw"),a.iw=x,a.hw=b}function pe(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function wn(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;sn("Unknown DiagramEvent name: "+y)}Vt.Bj=function(a,y){return a=wn(this,a),a!==null&&a.add(y),this},Vt.am=function(a,y){a=wn(this,a),a!==null&&a.remove(y)},Vt.R=function(a,y,x){var b=wn(this,a),E=new xd;if(E.diagram=this,a=pe(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 vi(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}Vt.Yj=function(a,y){return Ri(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},_n.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?ah(this,a):a.assign(this.documentBounds)};function Ri(a,y,x,b){var E=a.Xh;if(E===null&&(a.Xh=E=new P0(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=cr(a,x)),x===null){y=ai.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),E.initialize(y);for(var z=a.nodes;z.next();){var nt=z.value,ot=nt.layer;ot!==null&&ot.visible&&!ot.isTemporary&&Qr(a,nt,b,y)}ai.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),E.initialize(y)),y=ai.alloc(),z=x.memberParts;z.next();)nt=z.value,nt instanceof Ar&&Qr(a,nt,b,y);ai.free(y)}E.group=x,E.Yx=b,E.vs=!1}else y&&c1(E);return E}function cr(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?cr(a,y.containingGroup):null}function Qr(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,z=y.y;if(Hp(a,E,z))for(x=(z-a.Od)/a.sc|0,b=Math.min((E+y.width-a.Nd)/a.rc|0,a.di),y=Math.min((z+y.height-a.Od)/a.sc|0,a.ei),E=(E-a.Nd)/a.rc|0;E<=b;E++)if(z=a.ac[E],z.fill)z.fill(kf,x,y+1);else for(var nt=x;nt<=y;nt++)z[nt]=kf}else if(y instanceof _o)for(y=y.memberParts;y.next();)E=y.value,E instanceof Ar&&Qr(a,E,x,b)}}function yo(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}_n.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():ps(this)};function ps(a){a.vk===-1&&(a.vk=_i(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=ai.alloc(),a.computeBounds(y),y.ed(a.documentBounds),zA(a,y),ai.free(y),a.Fc=!0,a.bd(),ps(a))}},a.vp))}_n.prototype.ug=function(){this.vk!==-1&&(Ve.clearTimeout(this.vk),this.vk=-1)},_n.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=ai.allocAt(0,0,b.width*E,b.height*E);var z=ke.allocAt(0,0);if(a.x>=b.x&&a.x<b.x+x.left&&this.allowHorizontalScroll){var nt=Math.max(this.scrollHorizontalLineChange,1);nt|=0,z.x-=nt,a.x<b.x+x.left/2&&(z.x-=nt),a.x<b.x+x.left/4&&(z.x-=4*nt)}else a.x<=b.x+b.width&&a.x>b.x+b.width-x.right&&this.allowHorizontalScroll&&(nt=Math.max(this.scrollHorizontalLineChange,1),nt|=0,z.x+=nt,a.x>b.x+b.width-x.right/2&&(z.x+=nt),a.x>b.x+b.width-x.right/4&&(z.x+=4*nt));return a.y>=b.y&&a.y<b.y+x.top&&this.allowVerticalScroll?(nt=Math.max(this.scrollVerticalLineChange,1),nt|=0,z.y-=nt,a.y<b.y+x.top/2&&(z.y-=nt),a.y<b.y+x.top/4&&(z.y-=4*nt)):a.y<=b.y+b.height&&a.y>b.y+b.height-x.bottom&&this.allowVerticalScroll&&(nt=Math.max(this.scrollVerticalLineChange,1),nt|=0,z.y+=nt,a.y>b.y+b.height-x.bottom/2&&(z.y+=nt),a.y>b.y+b.height-x.bottom/4&&(z.y+=4*nt)),z.Xa(ts)||(y=new ke(y.x+z.x/E,y.y+z.y/E)),ai.free(b),ke.free(z),y},Vt=_n.prototype,Vt.Cs=function(){return null},Vt.av=function(){return null},Vt.bs=function(a,y){this.pj.add(a,y)},Vt.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof _o&&(y.$p=null)})};function Ws(a,y,x){function b(){var ct=+new Date;for(z=!0,nt.reset();nt.next();)if(!nt.value[0].al){z=!1;break}z||ct-ht>at?y(x,E,ot):Ve.requestAnimationFrame(b)}for(var E=x.callback,z=!0,nt=a.Og.iterator;nt.next();)if(!nt.value[0].al){z=!1;break}if(typeof E!="function"||z)return y(x,E,a);var ot=a,at=x.callbackTimeout||300,ht=+new Date;return Ve.requestAnimationFrame(function(){b()}),null}Vt.Wz=function(a){return Us?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Vt.Jx=function(a){return a===void 0&&(a={}),Ws(this,this.Xz,a)},Vt.Xz=function(a,y,x){var b=_a(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 _h+"data":E=b.getImageData(0,0,x.width,x.height);break;case _h:b=(a.document||document).createElement("img"),b.src=x.toDataURL(a.type,a.details),E=b;break;case"blob":return typeof y!="function"&&sn('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 _a(a,y,x,b){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&sn("properties argument must be an Object.");var E=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var nt=y.maxSize;y.maxSize===void 0&&(nt=x==="SVG"?new Ki(1/0,1/0):new Ki(2e3,2e3));var ot=y.position||null,at=y.parts||null,ht=y.padding===void 0?1:y.padding,ct=y.background||null,gt=y.omitTemporary;gt===void 0&&(gt=!0);var Nt=y.document||document,Kt=y.elementFinished||null,Xt=y.showTemporary;Xt===void 0&&(Xt=!gt),y=y.showGrid,y===void 0&&(y=Xt),E!==null&&isNaN(E.width)&&isNaN(E.height)&&(E=null),typeof ht=="number"?ht=new Hr(ht):ht instanceof Hr||sn("MakeImage padding must be a Margin or a number."),ht.left=Math.max(ht.left,0),ht.right=Math.max(ht.right,0),ht.top=Math.max(ht.top,0),ht.bottom=Math.max(ht.bottom,0),a.ib.Vc(!0),gt=new yc(null,Nt,void 0,!0);var ce=gt.context;if(!(E||z||at||ot))return gt.width=a.Aa+Math.ceil(ht.left+ht.right),gt.height=a.ya+Math.ceil(ht.top+ht.bottom),x==="SVG"?b===null?null:(b.resize(gt.width,gt.height,gt.width,gt.height),b.ownerDocument=Nt,b.hs=Kt,hl(a,b.context,ht,new Ki(gt.width,gt.height),a.Ca,a.pa,at,ct,Xt,y),b.context):(a.Xm=!1,hl(a,ce,ht,new Ki(gt.width,gt.height),a.Ca,a.pa,at,ct,Xt,y),a.Xm=!0,gt.context);var Ke=a.Pp,Te=a.documentBounds.copy();if(Te.Fv(a.yb),Xt)for(var $e=a.Wa.s,rn=$e.length,ln=0;ln<rn;ln++){var Bn=$e[ln];if(Bn.visible&&Bn.isTemporary){Bn=Bn.Pa.s;for(var Gn=Bn.length,lr=0;lr<Gn;lr++){var kr=Bn[lr];kr.isInDocumentBounds&&kr.isVisible()&&(kr=kr.actualBounds,kr.w()&&Te.ed(kr))}}}if($e=new ke(Te.x,Te.y),at!==null){for(rn=new ai(0,0,0,0),ln=!0,Bn=at.iterator,Bn.reset();Bn.next();)Gn=Bn.value,Gn instanceof Yr&&(lr=Gn.layer,lr!==null&&!lr.visible||lr!==null&&!Xt&&lr.isTemporary||!Gn.isVisible()||(Gn=Gn.actualBounds,Gn.w()&&(ln?(ln=!1,rn.assign(Gn)):rn.ed(Gn))));Te.width=rn.width,Te.height=rn.height,$e.x=rn.x,$e.y=rn.y}return ot!==null&&ot.w()&&($e=ot,z||(z=Ke)),rn=ot=0,ht!==null&&(ot=ht.left+ht.right,rn=ht.top+ht.bottom),ln=Bn=0,E!==null&&(Bn=E.width,ln=E.height,isFinite(Bn)&&(Bn=Math.max(0,Bn-ot)),isFinite(ln)&&(ln=Math.max(0,ln-rn))),E!==null&&z!==null?(z==="NaN"&&(z=Ke),E.w()?(E=Bn,Te=ln):isNaN(ln)?(E=Bn,Te=Te.height*z):(E=Te.width*z,Te=ln)):E!==null?E.w()?(z=Math.min(Bn/Te.width,ln/Te.height),E=Bn,Te=ln):isNaN(ln)?(z=Bn/Te.width,E=Bn,Te=Te.height*z):(z=ln/Te.height,E=Te.width*z,Te=ln):z!==null?z==="NaN"&&nt.w()?(z=Math.min((nt.width-ot)/Te.width,(nt.height-rn)/Te.height),z>Ke?(z=Ke,E=Te.width,Te=Te.height):(E=nt.width,Te=nt.height)):(E=Te.width*z,Te=Te.height*z):(z=Ke,E=Te.width,Te=Te.height),ht!==null?(E+=ot,Te+=rn):ht=new Hr(0),nt!==null&&(Ke=nt.width,nt=nt.height,isNaN(Ke)&&(Ke=2e3),isNaN(nt)&&(nt=2e3),isFinite(Ke)&&(E=Math.min(E,Ke)),isFinite(nt)&&(Te=Math.min(Te,nt))),gt.width=Math.ceil(E),gt.height=Math.ceil(Te),x==="SVG"?b===null?null:(b.resize(gt.width,gt.height,gt.width,gt.height),b.ownerDocument=Nt,b.hs=Kt,hl(a,b.context,ht,new Ki(Math.ceil(E),Math.ceil(Te)),z,$e,at,ct,Xt,y),b.context):(a.Xm=!1,hl(a,ce,ht,new Ki(Math.ceil(E),Math.ceil(Te)),z,$e,at,ct,Xt,y),a.Xm=!0,gt.context)}Re.Object.defineProperties(_n.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof xt||(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 Pu(this,Ve.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 Pu(this,Ve.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(Ve,"resize",this.Ov,!1),this.removeEventListener(Ve,"wheel",this.$j,!0),jh===this&&(jh=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),ad(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)&&Zi(a,"0 <= value <= 1",_n,"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),Ul(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),Ul(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),Ul(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),Ul(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&Zi(a,">= 0",_n,"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&&Zi(a,">= 0",_n,"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 Zi(a,">= 0",_n,"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||QA(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&&sn("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=$c(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var b=this.vb;this.vb=!0,yl(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(z){return y.ik(z)}),y.ik(this.Oc)),this.cc=a,this.partManager=Gd(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(z){return a.Pe(z)}),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(Ve,"pointermove",this.dk,!0),this.addEventListener(Ve,"pointerdown",this.ui,!0),this.addEventListener(Ve,"pointerup",this.fk,!0),this.addEventListener(Ve,"pointerout",this.ek,!0),this.addEventListener(Ve,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(Ve,"wheel",this.$j,!0),this.addEventListener(Ve,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Ve,"pointermove",this.dk,!0),this.removeEventListener(Ve,"pointerdown",this.ui,!0),this.removeEventListener(Ve,"pointerup",this.fk,!0),this.removeEventListener(Ve,"pointerout",this.ek,!0),this.removeEventListener(Ve,"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(Ve,"wheel",this.$j,!0),this.removeEventListener(Ve,"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=ke.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),ul(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?Rh(this):(this.vb=!0,a=this.scale,lA(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)}ke.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=Lc(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=Lc(this)),a.type!==qn.Grid&&sn("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),rc(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),Rh(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||sn("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 Hr(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===Tc&&Ul(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,Ul(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,lf(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&&lf(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!==Al&&Ul(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()||sn("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()||sn("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)):Zi(a,"> 0",_n,"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)):Zi(a,"> 0",_n,"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),Ul(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 Hr(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&&sn("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();)g0(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==Oc&&a!==Sa&&a!==mc&&sn("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 Ki(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 Hr(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),Re.Object.defineProperties(_n,{licenseKey:{get:function(){return Zd.jc()},set:function(a){Zd.add(a.replace(/\s/g,""))}},version:{get:function(){return Jl}}}),_n.prototype.makeImageData=_n.prototype.Jx,_n.prototype.makeImage=_n.prototype.Wz,_n.prototype.cacheGroupExternalLinks=_n.prototype.Fu,_n.prototype.addRenderer=_n.prototype.bs,_n.prototype.makeSVG=_n.prototype.av,_n.prototype.makeSvg=_n.prototype.Cs,_n.prototype.stopAutoScroll=_n.prototype.ug,_n.prototype.doAutoScroll=_n.prototype.gs,_n.prototype.isUnoccupied=_n.prototype.Yj,_n.prototype.raiseDiagramEvent=_n.prototype.R,_n.prototype.removeDiagramListener=_n.prototype.am,_n.prototype.addDiagramListener=_n.prototype.Bj,_n.prototype.findTreeRoots=_n.prototype.yz,_n.prototype.layoutDiagram=_n.prototype.Uz,_n.prototype.findTopLevelGroups=_n.prototype.qz,_n.prototype.findTopLevelNodesAndLinks=_n.prototype.rz,_n.prototype.ensureBounds=_n.prototype.Va,_n.prototype.findLinksByExample=_n.prototype.ls,_n.prototype.findNodesByExample=_n.prototype.ms,_n.prototype.findLinkForData=_n.prototype.Kc,_n.prototype.findNodeForData=_n.prototype.ii,_n.prototype.findPartForData=_n.prototype.Lc,_n.prototype.findLinkForKey=_n.prototype.findLinkForKey,_n.prototype.findNodeForKey=_n.prototype.Vb,_n.prototype.findPartForKey=_n.prototype.findPartForKey,_n.prototype.rebuildParts=_n.prototype.Wd,_n.prototype.transformViewToDoc=_n.prototype.Ps,_n.prototype.transformRectDocToView=_n.prototype.zA,_n.prototype.transformDocToView=_n.prototype.op,_n.prototype.centerRect=_n.prototype.es,_n.prototype.scrollToRect=_n.prototype.tv,_n.prototype.scroll=_n.prototype.scroll,_n.prototype.highlightCollection=_n.prototype.Jz,_n.prototype.highlight=_n.prototype.Iz,_n.prototype.selectCollection=_n.prototype.rA,_n.prototype.select=_n.prototype.select,_n.prototype.updateAllRelationshipsFromData=_n.prototype.rp,_n.prototype.updateAllTargetBindings=_n.prototype.updateAllTargetBindings,_n.prototype.commit=_n.prototype.commit,_n.prototype.rollbackTransaction=_n.prototype.Kf,_n.prototype.commitTransaction=_n.prototype.eb,_n.prototype.startTransaction=_n.prototype.Ea,_n.prototype.raiseChanged=_n.prototype.g,_n.prototype.raiseChangedEvent=_n.prototype.cb,_n.prototype.removeChangedListener=_n.prototype.ik,_n.prototype.addChangedListener=_n.prototype.Pe,_n.prototype.removeModelChangedListener=_n.prototype.mA,_n.prototype.addModelChangedListener=_n.prototype.Yw,_n.prototype.findLayer=_n.prototype.Qj,_n.prototype.removeLayer=_n.prototype.kA,_n.prototype.addLayerAfter=_n.prototype.Cy,_n.prototype.addLayerBefore=_n.prototype.Ww,_n.prototype.addLayer=_n.prototype.Al,_n.prototype.moveParts=_n.prototype.moveParts,_n.prototype.copyParts=_n.prototype.Kj,_n.prototype.removeParts=_n.prototype.Is,_n.prototype.remove=_n.prototype.remove,_n.prototype.add=_n.prototype.add,_n.prototype.clearDelayedGeometries=_n.prototype.bx,_n.prototype.setProperties=_n.prototype.nm,_n.prototype.attach=_n.prototype.Du,_n.prototype.set=_n.prototype.set,_n.prototype.resetInputOptions=_n.prototype.Sx,_n.prototype.setInputOption=_n.prototype.sA,_n.prototype.getInputOption=_n.prototype.Ql,_n.prototype.resetRenderingHints=_n.prototype.Tx,_n.prototype.setRenderingHint=_n.prototype.Xx,_n.prototype.getRenderingHint=_n.prototype.Gf,_n.prototype.maybeUpdate=_n.prototype.bd,_n.prototype.requestUpdate=_n.prototype.$b,_n.prototype.delayInitialization=_n.prototype.Xy,_n.prototype.isUpdateRequested=_n.prototype.Pz,_n.prototype.invalidateDocumentBounds=_n.prototype.Ya,_n.prototype.findObjectsNear=_n.prototype.og,_n.prototype.findPartsNear=_n.prototype.mz,_n.prototype.findObjectsIn=_n.prototype.Cf,_n.prototype.findPartsIn=_n.prototype.ux,_n.prototype.findObjectsAt=_n.prototype.ji,_n.prototype.findPartsAt=_n.prototype.lz,_n.prototype.findObjectAt=_n.prototype.ic,_n.prototype.findPartAt=_n.prototype.Ol,_n.prototype.focusObject=_n.prototype.zz,_n.prototype.alignDocument=_n.prototype.Jy,_n.prototype.zoomToRect=_n.prototype.BA,_n.prototype.zoomToFit=_n.prototype.zoomToFit,_n.prototype.diagramScroll=_n.prototype.kx,_n.prototype.focus=_n.prototype.focus;var ba=new Cr,Cl=null,Us=Ve.document!==void 0,Au=null,yu="",Al=new ri(_n,"None",0),Il=new ri(_n,"Uniform",1),wh=new ri(_n,"UniformToFill",2),Eh=new ri(_n,"CycleAll",10),oc=new ri(_n,"CycleNotDirected",11),Vd=new ri(_n,"CycleNotDirectedFast",12),cA=new ri(_n,"CycleNotUndirected",13),dA=new ri(_n,"CycleDestinationTree",14),AA=new ri(_n,"CycleSourceTree",15),Tc=new ri(_n,"DocumentScroll",1),Ld=new ri(_n,"InfiniteScroll",2),Oc=new ri(_n,"TreeParentCollapsed",21),Sa=new ri(_n,"AllParentsCollapsed",22),mc=new ri(_n,"AnyParentsCollapsed",23),Zd=new Ci,Jl="2.3.10",_h="image",_u=null,cd=!1;function Rl(){if(Us){var a=Ve.document.createElement("canvas"),y=a.getContext("2d"),x=ei("7ca11abfd022028846");y[x]=ei("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",ni.Dx+"4ae6247590da4bb21c324ba3a84e385776",Ko.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Ln.za],E=1;5>E;E++)y[ei("7ca11abfd7330390")](ei(b[E-1]),10,15*E);for(y[x]=ei("39f046ebb36e4b"),x=1;5>x;x++)y[ei("7ca11abfd7330390")](ei(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(Ko.prototype.Cd=Ko.prototype.Eu),_u=a}}_n.className="Diagram",_n.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Ve.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof _n?y.H:null},_n.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},_n.useDOM=function(a){Us=a?Ve.document!==void 0:!1},_n.isUsingDOM=function(){return Us},_n.None=Al,_n.Uniform=Il,_n.UniformToFill=wh,_n.CycleAll=Eh,_n.CycleNotDirected=oc,_n.CycleNotDirectedFast=Vd,_n.CycleNotUndirected=cA,_n.CycleDestinationTree=dA,_n.CycleSourceTree=AA,_n.DocumentScroll=Tc,_n.InfiniteScroll=Ld,_n.TreeParentCollapsed=Oc,_n.AllParentsCollapsed=Sa,_n.AnyParentsCollapsed=mc;function Yd(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Eu(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)t:{y="f";var x=Ve[ei("76a715b2f73f148a")][ei("72ba13b5")]||"";if(a.Rc=!0,Us){var b=_n[ei("76a115b6ed251eaf4692")];if(b)for(var E=Zd.iterator;E.next()&&(b=E.value,b=ei(b).split(ei("39e9")),!(6>b.length));){var z=ei(b[1]).split(".");if(b[4]!=="7da71ca0")break;var nt=ei(ni[ei("6cae19")]).split(".");if(z[0]>nt[0]||z[0]===nt[0]&&z[1]>=nt[1]){var ot=Ve[ei("74a900bae4370f8b51")][ei("6fbb13a1c2311e8a57")].toLowerCase();if(nt=ot[ei("73a612b6fb191d")](ei("3aad1ab6e022098b4dc4")),z=ei(b[2]),-1<nt&&(ot=ot[ei("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<ot&&ot<nt),!a.Rc))break;for(nt=x[ei("76ad18b4f73e")],ot=x[ei("73a612b6fb191d")](ei("35e7"))+2;ot<nt;ot++)y+=x[ot];if(nt=y[ei("73a612b6fb191d")](z),0>nt&&z!==ei("7da71ca0ad381e90")&&(nt=y[ei("73a612b6fb191d")](ei("76a715b2ef3e149757"))),0>nt&&(nt=y[ei("73a612b6fb191d")](ei("76a715b2ef3e149757"))),0>nt&&(nt=y[ei("73a612b6fb191d")](ei("2bfa41fdb3784bca12"))),0>nt&&(nt=x[ei("73a612b6fb191d")](ei("7baa19a6f76c1988428554"))),a.Rc=!(0<=nt&&nt<y[ei("73a612b6fb191d")](ei("35"))||y[ei("73a612b6fb191d")](ei("35"))===-1),!a.Rc||x[ei("73a612b6fb191d")](ei("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[ei("73a612b6fb191d")](z)),!a.Rc)||(nt=Ve[ei("76a715b2f73f148a")][ei("69ad17a1e03e")],ot=nt[ei("73a612b6fb191d")](ei("7fb002b6ed25128b4da25b2e")),-1<ot&&(a.Rc=!(nt[ei("73a612b6fb191d")](z)>ot),!a.Rc)))break;if(z[0]==="#"){nt=Ve.document.createElement("div");for(var at=b[0].replace(/[A-Za-z]/g,"");4>at.length;)at+="9";if(ot=at,at=at.substr(at.length-4),b="",b+=["gsh","gsf"][parseInt(at.substr(0,1),10)%2],b+=["Header","Background","Display","Feedback"][parseInt(at.substr(0,1),10)%4],nt[ei("79a417a0f0181a8946")]=b,Ve.document[ei("78a712aa")]){Ve.document[ei("78a712aa")][ei("7bb806b6ed32388c4a875b")](nt),at=Ve.getComputedStyle(nt).getPropertyValue(ei("78a704b7e62456904c9b12701b6532a8"));var ht=Ve.getComputedStyle(nt).getPropertyValue(ei("75b817b0ea2202"));if(Ve.document[ei("78a712aa")][ei("68ad1bbcf533388c4a875b")](nt),at){if(nt=Ve[ei("77a902b0eb1b1e804a8a")],ht==="0."+parseInt(ot,10)%100||at.indexOf(parseInt(z[1]+z[2],16))!==-1&&at.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(nt&&nt(ei("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(b="."+b,z=0;z<document.styleSheets.length;z++){nt=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var ct in nt)if(b===nt[ct].selectorText){a.Rc=!1;break t}}}}else a.Rc=null,a.Rc=!1}}}else{for(ct=x[ei("76ad18b4f73e")],E=x[ei("73a612b6fb191d")](ei("35e7"))+2;E<ct;E++)y+=x[E];x=y[ei("73a612b6fb191d")](ei("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[ei("73a612b6fb191d")](ei("35")))}}}return 0<a.Rc&&a!==a.wy}Yd.className="DiagramHelper";function sc(a){this.j=a===void 0?new ke:a,this.o=new ke}Re.Object.defineProperties(sc.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 $d="DraggingInfo";sc.className="DraggingInfo";function it(a,y,x){this.node=a,this.info=y,this.Su=x}it.className="DraggingNodeInfoPair";function st(){this.reset()}st.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new Ki(NaN,NaN).freeze(),this.gridSnapCellSpot=Oa,this.gridSnapOrigin=new ke(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},st.className="DraggingOptions";function ft(a,y){if(typeof a=="string"||Ve.Element&&a instanceof Element)var x=_n.call(this,a)||this;else x=_n.call(this)||this,y=a;return At(x),y&&x.nm(y),x}On(ft,_n);function At(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Bl,a.layout=new Yu}ft.prototype.reset=function(){_n.prototype.reset.call(this),At(this)},ft.className="Palette";function xt(a,y){if(typeof a=="string"||Ve.Element&&a instanceof Element)var x=_n.call(this,a)||this;else x=_n.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 Yr;var E=new Go;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 Hr(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new He,x.toolManager.mouseMoveTools),x.click=function(){var z=b.observed;if(z!==null){var nt=z.viewportBounds,ot=b.lastInput.documentPoint;z.position=new ke(ot.x-nt.width/2,ot.y-nt.height/2)}},x.Pf=function(){b.Ya(),Be(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&&Be(b)},x.autoScale=Il,x.vb=!1,y&&Object.assign(x,y),x}On(xt,_n),xt.prototype.computePixelRatio=function(){return 1},xt.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(yh(this),this.ql===null){var x=new yc(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),ne(this)}finally{this.ta=a,this.ib=y}}}_n.prototype.redraw.call(this)},xt.prototype.gc=function(){if(this.Ka===null&&sn("No div specified"),this.ta===null&&sn("No canvas specified"),!(this.ta instanceof Pu)&&(wv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){yh(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?ne(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 ne(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=ai.alloc().assign(a.viewportBounds).ed(y.viewportBounds),rc(y,E),ai.free(E),du(y));var z=a.Ab;z.reset(),a.scale!==1&&z.scale(a.scale),a.position.x===0&&a.position.y===0||z.translate(-a.position.x,-a.position.y),E=a.ib,E.scale(a.Mb,a.Mb),E.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),E.yc(),y=y.Wa.s,z=y.length;for(var nt=0;nt<z;nt++){var ot=y[nt],at=a;if(ot.visible&&ot.opacity!==0){var ht=ot.diagram.grid.part;if(!x&&ot.isTemporary)b&&ht.layer===ot&&(ot=hu(ot,E),ht.gc(E,at),E.globalAlpha=ot);else{for(var ct=hu(ot,E),gt=at.scale,Nt=ai.alloc(),Kt=ot.Pa.s,Xt=Kt.length,ce=0;ce<Xt;ce++){var Ke=Kt[ce];(b||Ke!==ht)&&ot.Oj(E,Ke,at,null,gt,Nt,!1)}ai.free(Nt),E.globalAlpha=ct}}}}}function Be(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=Ki.alloc();E.h(x.width,x.height),b.desiredSize=E,Ki.free(E),a=2/a.scale,b instanceof Go&&(b.strokeWidth=a),y.location=new ke(x.x-a/2,x.y-a/2),y.isSelected=!0}}}xt.prototype.computeBounds=function(){var a=this.observed;if(a===null)return is;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},xt.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},xt.prototype.onViewportBoundsChanged=function(a,y,x,b){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),Be(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))},Re.Object.defineProperties(xt.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof xt&&sn("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),Be(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),Be(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)}}}),xt.className="Overview";function He(){ze.call(this),this.j=null}On(He,ze),He.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 ke(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new ke(a.x-this.j.x,a.y-this.j.y)),!0)},He.prototype.doActivate=function(){this.j=null,ze.prototype.doActivate.call(this)},He.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},He.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 ke(b.x-x.x,b.y-x.y)}a=a.lastInput.documentPoint,y.position=new ke(a.x-this.j.x,a.y-this.j.y)}}},He.className="OverviewDraggingTool";function _e(){ns(this),this.H=jh,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=is,this.hb=!0,this.cg=null,this.ob=200}_e.prototype.toString=function(){return"CommandHandler"},_e.prototype.Xe=function(a){this.H=a},_e.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=Zo?y.meta:y.control,b=y.shift,E=y.alt,z=y.key;!x||z!=="C"&&z!=="Insert"?x&&z==="X"||b&&z==="Del"?this.canCutSelection()&&this.cutSelection():x&&z==="V"||b&&z==="Insert"?this.canPasteSelection()&&this.pasteSelection():x&&z==="Y"||E&&b&&z==="Backspace"?this.canRedo()&&this.redo():x&&z==="Z"||E&&z==="Backspace"?this.canUndo()&&this.undo():z==="Del"||z==="Backspace"?this.canDeleteSelection()&&this.deleteSelection():x&&z==="A"?this.canSelectAll()&&this.selectAll():z==="Esc"?this.canStopCommand()&&this.stopCommand():z==="Up"?a.allowVerticalScroll&&(x?a.scroll("pixel","up"):a.scroll("line","up")):z==="Down"?a.allowVerticalScroll&&(x?a.scroll("pixel","down"):a.scroll("line","down")):z==="Left"?a.allowHorizontalScroll&&(x?a.scroll("pixel","left"):a.scroll("line","left")):z==="Right"?a.allowHorizontalScroll&&(x?a.scroll("pixel","right"):a.scroll("line","right")):z==="PageUp"?b&&a.allowHorizontalScroll?a.scroll("page","left"):a.allowVerticalScroll&&a.scroll("page","up"):z==="PageDown"?b&&a.allowHorizontalScroll?a.scroll("page","right"):a.allowVerticalScroll&&a.scroll("page","down"):z==="Home"?x&&a.allowVerticalScroll?a.scroll("document","up"):!x&&a.allowHorizontalScroll&&a.scroll("document","left"):z==="End"?x&&a.allowVerticalScroll?a.scroll("document","down"):!x&&a.allowHorizontalScroll&&a.scroll("document","right"):z===" "?this.canScrollToPart()&&this.scrollToPart():z==="Subtract"?this.canDecreaseZoom()&&this.decreaseZoom():z==="Add"?this.canIncreaseZoom()&&this.increaseZoom():x&&z==="0"?this.canResetZoom()&&this.resetZoom():b&&z==="Z"?this.canZoomToFit()&&this.zoomToFit():x&&!b&&z==="G"?this.canGroupSelection()&&this.groupSelection():x&&b&&z==="G"?this.canUngroupSelection()&&this.ungroupSelection():z==="F2"||y.event&&y.event.key==="F2"?this.canEditTextBlock()&&this.editTextBlock():z==="ContextMenu"||y.event&&y.event.key==="ContextMenu"?this.canShowContextMenu()&&this.showContextMenu():y.bubbles=!0:this.canCopySelection()&&this.copySelection()},_e.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},_e.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof Zt&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},_e.prototype.canStopCommand=function(){return!0},_e.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=""}},_e.prototype.canSelectAll=function(){return this.diagram.allowSelect},_e.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 bi,x=a.selection.iterator;x.next();)ig(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=""}},_e.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},_e.prototype.copySelection=function(){var a=this.diagram,y=new bi;for(a=a.selection.iterator;a.next();)ig(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},_e.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},_e.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},_e.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},_e.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)Au=null,yu="";else{x=y.model;var b=!1,E=!1,z=null;try{x.Tl()&&(b=x.Jj,x.Jj=this.copiesParentKey),x.Wj()&&(E=x.Ij,x.Ij=this.copiesGroupKey),z=y.Kj(a,null,!0)}finally{x.Tl()&&(x.Jj=b),x.Wj()&&(x.Ij=E),x=new Ci,x.addAll(z),Au=x,yu=y.model.dataFormat}}y.R("ClipboardChanged",x)},_e.prototype.pasteFromClipboard=function(){var a=new bi,y=Au;if(y===null)return a;var x=this.diagram;if(yu!==x.model.dataFormat)return a;var b=x.model,E=!1,z=!1,nt=null;try{b.Tl()&&(E=b.Jj,b.Jj=this.copiesParentKey),b.Wj()&&(z=b.Ij,b.Ij=this.copiesGroupKey),nt=x.Kj(y,x,!1)}finally{for(b.Tl()&&(b.Jj=E),b.Wj()&&(b.Ij=z),y=nt.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},_e.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 z=this.computeEffectiveCollection(y.selection,y.Wm);Ic(y,z,new ke(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=""}},_e.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||Au===null||Au.count===0||yu!==a.model.dataFormat)},_e.prototype.undo=function(){this.diagram.undoManager.undo()},_e.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},_e.prototype.redo=function(){this.diagram.undoManager.redo()},_e.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},_e.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===Al&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},_e.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Al?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},_e.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Al&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},_e.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Al?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},_e.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},_e.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},_e.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,b=a.scale;yl(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=is):(this.Jt=b,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),po(y)},_e.prototype.canZoomToFit=function(){return this.diagram.allowZoom},_e.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(at){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;yl(x,"Scroll To Part");var b=this.scrollToPartPause;if(0<b){var E=un(this,a,[a]);if(E.length===1)y.Ea(),y.es(a.actualBounds),y.eb("Scroll To Part");else{var z=function(){y.Ea();for(var at=E.pop();0<E.length&&at instanceof Ar&&at.isTreeExpanded&&(!(at instanceof _o)||at.isSubGraphExpanded);)at=E.pop();0<E.length?(at instanceof Yr&&y.tv(at.actualBounds),at instanceof Ar&&!at.isTreeExpanded&&(at.isTreeExpanded=!0),at instanceof _o&&!at.isSubGraphExpanded&&(at.isSubGraphExpanded=!0)):(at instanceof Yr&&y.es(at.actualBounds),y.am("LayoutCompleted",nt)),y.eb("Scroll To Part")},nt=function(){_i(z,(x.isEnabled?x.duration:0)+b)};y.Bj("LayoutCompleted",nt),z()}}else{var ot=y.position.copy();y.es(a.actualBounds),ot.Xa(y.position)&&x.Cc()}}};function un(a,y,x){if(y.isVisible())return x;if(y instanceof bs)un(a,y.adornedPart,x);else if(y instanceof Vi){var b=y.fromNode;b!==null&&un(a,b,x),y=y.toNode,y!==null&&un(a,y,x)}else y instanceof Ar&&(b=y.labeledLink,b!==null&&un(a,b,x),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||x.push(b),un(a,b,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),un(a,y,x));return x}_e.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof Yr)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},_e.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),yl(y.animationManager,"Collapse Tree");var x=new Ci;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 Ar&&E.isTreeExpanded&&(E.collapseTree(),x.add(E))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},_e.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Ar&&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 Ar&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},_e.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),yl(y.animationManager,"Expand Tree");var x=new Ci;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 Ar&&!E.isTreeExpanded&&(E.expandTree(),x.add(E))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},_e.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Ar)||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 Ar&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},_e.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 Ci,z=a.selection.iterator;z.next();){var nt=z.value;nt.Zc()&&nt.canGroup()&&E.add(nt)}for(var ot=new Ci,at=E.iterator;at.next();){var ht=at.value;z=!1;for(var ct=E.iterator;ct.next();)if(ht.Td(ct.value)){z=!0;break}z||ot.add(ht)}if(0<ot.count){var gt=ot.first().containingGroup;if(gt!==null)for(;gt!==null;){E=!1;for(var Nt=ot.iterator;Nt.next();)if(!Nt.value.Td(gt)){E=!0;break}if(E)gt=gt.containingGroup;else break}if(x instanceof _o)lh(x),b=x.copy(),b!==null&&a.add(b);else if(y.Yu(x)){var Kt=y.copyNodeData(x);ii(Kt)&&(y.xf(Kt),b=a.ii(Kt))}if(b!==null){gt!==null&&this.isValidMember(gt,b)&&(b.containingGroup=gt);for(var Xt=ot.iterator;Xt.next();){var ce=Xt.value;this.isValidMember(b,ce)&&(ce.containingGroup=b)}a.clearSelection(!0),b.isSelected=!0}}a.R("SelectionGrouped",b)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},_e.prototype.canGroupSelection=function(){var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowGroup||!a.model.Xj()||this.archetypeGroupData===null)return!1;for(a=a.selection.iterator;a.next();){var y=a.value;if(y.Zc()&&y.canGroup())return!0}return!1};function Yn(a){var y=yi();for(a=a.iterator;a.next();){var x=a.value;x instanceof Vi||y.push(x)}a=new bi,x=y.length;for(var b=0;b<x;b++){for(var E=y[b],z=!0,nt=0;nt<x;nt++)if(E.Td(y[nt])){z=!1;break}z&&a.add(E)}return nr(y),a}_e.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof Vi)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},_e.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 Ci;if(a!==null)b.add(a);else for(var E=y.selection.iterator;E.next();){var z=E.value;z instanceof _o&&z.canUngroup()&&b.add(z)}var nt=new Ci;if(0<b.count){y.clearSelection(!0);for(var ot=b.iterator;ot.next();){var at=ot.value;at.expandSubGraph();var ht=at.containingGroup,ct=ht!==null&&ht.data!==null?x.wa(ht.data):void 0;nt.addAll(at.memberParts);for(var gt=nt.iterator;gt.next();){var Nt=gt.value;if(Nt.isSelected=!0,!(Nt instanceof Vi)){var Kt=Nt.data;Kt!==null?x.mp(Kt,ct):Nt.containingGroup=ht}}y.remove(at)}}y.R("SelectionUngrouped",b,nt)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},_e.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 _o))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof _o&&y.canUngroup())return!0;return!1},_e.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=Yn(a).iterator;a.next();){var b=a.value;b.containingGroup!==null&&(!y||this.isValidMember(null,b)?b.containingGroup=null:x=!1)}return x},_e.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),yl(y.animationManager,"Collapse SubGraph");var x=new Ci;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 _o&&E.isSubGraphExpanded&&(E.collapseSubGraph(),x.add(E))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},_e.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof _o&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof _o&&y.isSubGraphExpanded)return!0;return!1},_e.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),yl(y.animationManager,"Expand SubGraph");var x=new Ci;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 _o&&!E.isSubGraphExpanded&&(E.expandSubGraph(),x.add(E))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},_e.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof _o&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof _o&&!y.isSubGraphExpanded)return!0;return!1},_e.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(z){return z instanceof ha&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},_e.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 ha))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 ha&&x.editable}),a!==null))return!0;return!1},_e.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 xn?E=a.ga(Yo):y.viewportBounds.ca(b.documentPoint)||(E=y.viewportBounds,E=new ke(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,No(x,!1,a)}},_e.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)},_e.prototype.computeEffectiveCollection=function(a,y){var x=this.diagram,b=x.toolManager.findTool("Dragging"),E=x.currentTool===b;if(y===void 0&&(y=E?b.dragOptions:x.Wm),b=new Cr,a===null)return b;for(var z=a.iterator;z.next();)Vu(x,b,z.value,E,y);if(x.draggedLink!==null&&y.dragsLink)return b;for(z=a.iterator;z.next();)a=z.value,a instanceof Vi&&(y=a.fromNode,y===null||b.contains(y)?(y=a.toNode,y===null||b.contains(y)||b.remove(a)):b.remove(a));return b},Re.Object.defineProperties(_e.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||sn("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}}}),_e.className="CommandHandler",Fc=function(){return new _e};function xn(){ns(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new ke(NaN,NaN).freeze(),this.jd=Ka,this.Ab=new Ko,this.wh=new Ko,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=Ao,this.uc=new ai(NaN,NaN,NaN,NaN).freeze(),this.Ib=new ai(NaN,NaN,NaN,NaN).freeze(),this.dc=new ai(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Bs,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 Ni,Ei,Nr,jr,to,Co,$o,Do,ss,Ds;xn.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=fr(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},xn.prototype.Vw=function(a){var y=this.Dh;if(xi(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},xn.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},xn.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},xn.prototype.copy=function(){return this.clone()},Vt=xn.prototype,Vt.qb=function(a){a.classType===Vi?a.name.indexOf("Orient")===0?this.segmentOrientation=a:sn("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===xn&&(this.stretch=a)},Vt.toString=function(){return sr(this.constructor)+"#"+fs(this)},Vt.th=function(){this.A!==null&&(this.A.nc=!0)};function jo(a){a.A===null?a.A=new GA:a.A.nc&&(a.A=a.A.copy())}Vt.Xc=function(){if(this.ba===null){var a=new Vf;a.Xi=Ma,a.yj=Ma,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},Vt.cb=function(a,y,x,b,E,z,nt){var ot=this.part;if(ot!==null&&(ot.gk(a,y,x,b,E,z,nt),x===this&&a===ja&&fu(this)&&Js(this,ot,y),z=this.diagram,this.animationTriggers===null||z===null||!z.pi||z.undoManager.isUndoingRedoing||z.animationManager.Dm||(a=this.animationTriggers.get(y),a!==null&&z.animationManager.isEnabled&&!z.animationManager.isTicking&&(this.jo===null&&(this.jo=new Cr),nt=z.undoManager.transactionLevel===0,a.startCondition===uu?nt=!0:a.startCondition===wl&&(nt=!1),nt?(z=new Va,ka(a,z),nt=this.jo.get(a),nt!==null&&nt.stop(),this.jo.add(a,z),z.vu=this,z.Nw=a,z.add(this,y,b,E),z.start()):(yl(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,b,E)))),this instanceof qn&&x===ot&&(ot.l&16777216)!==0&&ot.data!==null))for(x=this.O.s,b=x.length,E=0;E<b;E++)ot=x[E],ot instanceof qn&&ua(ot,function(at){at.data!==null&&at.l&16777216&&at.La(y)})};function Js(a,y,x){var b=a.ih();if(b!==null)for(var E=a.localBindings.iterator;E.next();){var z=E.value,nt=null;if(z.sourceName!==null){if(nt=k1(z,b,a),nt===null)continue;z.sp(a,nt,x,null)}else if(z.isToModel){var ot=y.diagram;ot===null||ot.skipsModelSourceBindings||z.sp(a,ot.model.modelData,x,b)}else{if(ot=b.data,ot===null)continue;var at=y.diagram;at===null||at.skipsModelSourceBindings||z.sp(a,ot,x,b)}nt===a&&(ot=b.ks(z.Ai),ot!==null&&z.Mv(ot,nt,x))}}Vt.ks=function(a){return this.bindingId===a?this:null},Vt.g=function(a,y,x){this.cb(ja,a,this,y,x)},Vt.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 Ko);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),z.pp(E)}};function _l(a,y,x,b){return a.pickable===!1?!1:(b.multiply(a.transform),x?a.Yc(y,b):a.fh(y,b))}Vt.tx=function(a,y,x){if(this.pickable===!1)return!1;var b=this.naturalBounds;return y=a.Bf(y),x?os(a.x,a.y,0,0,0,b.height)<=y||os(a.x,a.y,0,b.height,b.width,b.height)<=y||os(a.x,a.y,b.width,b.height,b.width,0)<=y||os(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},Vt.se=function(){return!0},Vt.ca=function(a){var y=ke.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return ke.free(y),!1;var b=this.diagram;if(b!==null&&b.wq){var E=b.Ql("extraTouchThreshold"),z=b.Ql("extraTouchArea"),nt=z/2,ot=this.naturalBounds;b=this.Df()*b.scale;var at=1/b;if(ot.width*b<E&&ot.height*b<E)return a=ia(x.x-nt*at,x.y-nt*at,x.width+z*at,x.height+z*at,y.x,y.y),ke.free(y),a}return E=!1,(this instanceof bs||this instanceof Go?ia(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)),ke.free(y),E},Vt.gh=function(a){var y=this.naturalBounds;return ia(0,0,y.width,y.height,a.x,a.y)},Vt.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=ai.allocAt(0,0,y.width,y.height);var x=this.transform,b=!1,E=ke.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)))),ke.free(E),ai.free(y),b},Vt.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,b=!1,E=ke.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)))),ke.free(E),b},Vt.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,b=ke.allocAt(0,0),E=ke.allocAt(0,x.height),z=ke.allocAt(x.width,x.height),nt=ke.allocAt(x.width,0),ot=!1;if(a.ca(y.Ga(b))||a.ca(y.Ga(E))||a.ca(y.Ga(z))||a.ca(y.Ga(nt)))ot=!0;else{x=ai.allocAt(0,0,x.width,x.height);var at=ke.allocAt(a.x,a.y);x.ca(y.Cd(at))?ot=!0:(at.h(a.x,a.bottom),x.ca(y.Cd(at))?ot=!0:(at.h(a.right,a.bottom),x.ca(y.Cd(at))?ot=!0:(at.h(a.right,a.y),x.ca(y.Cd(at))&&(ot=!0)))),ke.free(at),ai.free(x),!ot&&(Ln.us(a,b,E)||Ln.us(a,E,z)||Ln.us(a,z,nt)||Ln.us(a,nt,b))&&(ot=!0)}return ke.free(b),ke.free(E),ke.free(z),ke.free(nt),ot},Vt.ga=function(a,y){if(y===void 0&&(y=new ke),a instanceof xr){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},Vt.mi=function(a){a===void 0&&(a=new ai);var y=this.naturalBounds,x=this.oe,b=ke.allocAt(0,0).transform(x);return a.h(b.x,b.y,0,0),b.h(y.width,0).transform(x),Is(a,b.x,b.y,0,0),b.h(y.width,y.height).transform(x),Is(a,b.x,b.y,0,0),b.h(0,y.height).transform(x),Is(a,b.x,b.y,0,0),ke.free(b),a},Vt.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},Vt.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Vt.qs=function(a,y){return y===void 0&&(y=new ke),y.assign(a),this.oe.Cd(y),y},Vt.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Vt.Sj=function(a,y,x,b,E){var z=this.transform,nt=1/(z.m11*z.m22-z.m12*z.m21),ot=z.m22*nt,at=-z.m12*nt,ht=-z.m21*nt,ct=z.m11*nt,gt=nt*(z.m21*z.dy-z.m22*z.dx),Nt=nt*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,Ln.Ff(z.left,z.top,z.right,z.bottom,a,y,x,b,E)):(nt=a*ot+y*ht+gt,a=a*at+y*ct+Nt,y=x*ot+b*ht+gt,x=x*at+b*ct+Nt,E.h(0,0),b=this.naturalBounds,x=Ln.Ff(0,0,b.width,b.height,nt,a,y,x,E),E.transform(z),x)},xn.prototype.measure=function(a,y,x,b){if(xh(this)!==!1){var E=this.Kg,z=E.right+E.left;E=E.top+E.bottom,a=Math.max(a-z,0),y=Math.max(y-E,0),x=Math.max((x||0)-z,0),b=Math.max((b||0)-E,0),z=this.angle,E=this.desiredSize;var nt=this.kq();z===90||z===270?(a=isFinite(E.height)?E.height+nt:a,y=isFinite(E.width)?E.width+nt:y):(a=isFinite(E.width)?E.width+nt:a,y=isFinite(E.height)?E.height+nt:y),E=x||0,nt=b||0;var ot=this instanceof qn;switch(Zu(this,!0)){case Ei:nt=E=0,ot&&(y=a=1/0);break;case Ni:isFinite(a)&&a>x&&(E=a),isFinite(y)&&y>b&&(nt=y);break;case jr:isFinite(a)&&a>x&&(E=a),nt=0,ot&&(y=1/0);break;case to:isFinite(y)&&y>b&&(nt=y),E=0,ot&&(a=1/0)}ot=this.maxSize;var at=this.minSize;E>ot.width&&at.width<ot.width&&(E=ot.width),nt>ot.height&&at.height<ot.height&&(nt=ot.height),x=Math.max(E,at.width),b=Math.max(nt,at.height),ot.width<x&&(x=Math.min(at.width,x)),ot.height<b&&(b=Math.min(at.height,b)),a=Math.min(ot.width,a),y=Math.min(ot.height,y),a=Math.max(x,a),y=Math.max(b,y),(z===90||z===270)&&(z=a,a=y,y=z,z=x,x=b,b=z),this.uc.ka(),this.Wl(a,y,x,b),this.uc.freeze(),this.uc.w()||sn("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Ql(this,!1)}},xn.prototype.Wl=function(){},xn.prototype.Dd=function(){return!1},xn.prototype.arrange=function(a,y,x,b,E){this.Uk();var z=ai.alloc();z.assign(this.Ib),this.Ib.ka(),Hu(this)===!1?this.Ib.h(a,y,x,b):this.eh(a,y,x,b),this.Ib.freeze(),E===void 0?this.tb=null:this.tb=E,x=!1,E!==void 0?x=!0:(E=this.panel,E!==null&&Ch(E)&&(E=E.panel),E!==null&&(E=E.dc,b=this.measuredBounds,this.areaBackground!==null&&(b=this.Ib),x=y+b.height,b=a+b.width,x=!(0<=a+.05&&b<=E.width+.05&&0<=y+.05&&x<=E.height+.05),this instanceof ha&&(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()||sn("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),qc(this,!1),ai.free(z)},Vt=xn.prototype,Vt.eh=function(){};function $l(a,y,x,b,E){if(a.Ib.h(y,x,b,E),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var nt=x.top+x.bottom;switch(x=z.width+y,z=z.height+nt,b+=y,E+=nt,y=Zu(a,!0),x===b&&z===E&&(y=Ei),y){case Ei:(x>b||z>E)&&(Ql(a,!0),a.measure(x>b?b:x,z>E?E:z,0,0));break;case Ni:Ql(a,!0),a.measure(b,E,0,0);break;case jr:Ql(a,!0),a.measure(b,z,0,0);break;case to:Ql(a,!0),a.measure(x,E,0,0)}}}Vt.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||Cv(x,!0),this.N(),Th(a,y)||(x.oh(),this.Pn(x)))},Vt.Pn=function(a){this.portId!==null&&(Cv(a,!0),a instanceof Ar&&$y(a,this))},Vt.gc=function(a,y){if(!El(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 z=this instanceof qn&&Ch(this),nt=this.Ib;if(z){var ot=this.Ib,at=this.dc,ht=this.areaBackground,ct=this.Ma;ht===null&&ct===null||a.yc(),ht!==null&&(Ca(this,a,ht,!0,!0,at,ot),ht instanceof Rs&&ht.type===Je?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(ht)):a.fillRect(ot.x,ot.y,ot.width,ot.height)),ct!==null&&(Ca(this,a,ct,!0,!1,at,ot),ct instanceof Rs&&ct.type===Je?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(ct)):a.fillRect(ot.x,ot.y,ot.width,ot.height)),this.hh(a,y)}if(!z&&(z||nt.width!==0&&nt.height!==0&&!isNaN(nt.x)&&!isNaN(nt.y))){z=this.transform,ot=this.panel,this.l&4096&&Xl(this),ht=this.part,at=!1;var gt=0;ht&&y.Gf("drawShadows")&&(at=ht.isShadowed)&&(ct=ht.shadowOffset,gt=Math.max(ct.y,ct.x)*y.scale*y.Mb),ct=this.Dd();var Nt;if(!(Nt=y.$i||!ct)){var Kt=this.naturalBounds;Nt=this.wh;var Xt=Nt.m11,ce=Nt.m21,Ke=Nt.dx,Te=Nt.m12,$e=Nt.m22,rn=Nt.dy,ln,Bn=ln=0;Nt=ln*Xt+Bn*ce+Ke;var Gn=ln*Te+Bn*$e+rn;ln=Kt.width+gt,Bn=0;var lr=ln*Xt+Bn*ce+Ke;ln=ln*Te+Bn*$e+rn,Bn=Math.min(Nt,lr);var kr=Math.min(Gn,ln),Sr=Math.max(Nt+0,lr)-Bn,Wi=Math.max(Gn+0,ln)-kr;Nt=Bn,Gn=kr,ln=Kt.width+gt,Bn=Kt.height+gt,lr=ln*Xt+Bn*ce+Ke,ln=ln*Te+Bn*$e+rn,Bn=Math.min(Nt,lr),kr=Math.min(Gn,ln),Sr=Math.max(Nt+Sr,lr)-Bn,Wi=Math.max(Gn+Wi,ln)-kr,Nt=Bn,Gn=kr,ln=0,Bn=Kt.height+gt,lr=ln*Xt+Bn*ce+Ke,ln=ln*Te+Bn*$e+rn,Bn=Math.min(Nt,lr),kr=Math.min(Gn,ln),Sr=Math.max(Nt+Sr,lr)-Bn,Wi=Math.max(Gn+Wi,ln)-kr,Nt=Bn,Gn=kr,gt=y.viewportBounds,Kt=gt.x,Xt=gt.y,Nt=!(Nt>gt.width+Kt||Kt>Sr+Nt||Gn>gt.height+Xt||Xt>Wi+Gn)}if(Nt){if(Nt=(this.l&256)!==0,a.clipInsteadOfFill&&(Nt=!1),this instanceof ha&&(a.font=this.font),Nt){if(Gn=ot.se()?ot.naturalBounds:ot.actualBounds,Sr=Math.max(nt.x,Gn.x),Wi=Math.max(nt.y,Gn.y),gt=Math.min(nt.right,Gn.right)-Sr,Kt=Math.min(nt.bottom,Gn.bottom)-Wi,Xt=this.tb,Xt!==null&&(Sr=Xt.x,Wi=Xt.y,gt=Xt.width,Kt=Xt.height),Sr>nt.width+nt.x||nt.x>Gn.width+Gn.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}a.save(),a.beginPath(),a.rect(Sr,Wi,gt,Kt),a.clip()}if(ct){if(!ht.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}at&&(Gn=ht.shadowOffset,a.Ev(Gn.x*y.scale*this.scale*y.Mb,Gn.y*y.scale*this.scale*y.Mb,ht.shadowBlur),zh(a),a.shadowColor=ht.shadowColor)}at&&this.shadowVisible===!0?zh(a):at&&this.shadowVisible===!1&&td(a),ht=this.naturalBounds,this.areaBackground!==null&&(a.yc(),Ja(this,a,ht,nt)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),at&&fl(this,ot)&&this.shadowVisible===null&&td(a),this.Ma!==null&&(a.yc(),Ua(this,a,ht,nt)),at&&(this.Ma!==null||this.areaBackground!==null||fl(this,ot))?(ch(this,!0),this.shadowVisible===null&&td(a)):ch(this,!1),this.hh(a,y),at&&this.l&512&&zh(a),ct&&at&&td(a),Nt&&(a.restore(),a.Vc(this instanceof qn)),z.ws()||(y=1/(z.m11*z.m22-z.m12*z.m21),a.transform(z.m22*y,-z.m12*y,-z.m21*y,z.m11*y,y*(z.m21*z.dy-z.m22*z.dx),y*(z.m12*z.dx-z.m11*z.dy)))}}x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E)}}};function fl(a,y){return y===null?!1:(Ch(y)&&(y=y.panel),(y.l&512)!==0||(y.type===qn.Auto||y.type===qn.Spot)&&y.Pb()!==a)}Vt.Dv=function(){};function Ja(a,y,x,b){Ca(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof Rs&&a.areaBackground.type===Je?(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 Ua(a,y,x,b){var E=a.kq(),z=x.x,nt=x.y,ot=x.width+E,at=x.height+E;Ca(a,y,a.Ma,!0,!1,x,b),a.Ma instanceof Rs&&a.Ma.type===Je?(y.beginPath(),y.rect(z-E/2,nt-E/2,ot,at),y.ng(a.Ma)):y.fillRect(z-E/2,nt-E/2,ot,at)}function Za(a,y,x){for(var b=y.O.s,E=b.length,z=-1,nt=0;nt<E;nt++)if(b[nt]===a){z=nt;break}if(a=z,a!==-1)if(a===0)y.svg.gd?y.svg.gd.after(x):y.svg.Ma?y.svg.Ma.after(x):y.type===qn.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 El(a,y,x){if(!(y instanceof Sh))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&&Za(a,b,a.svg),!0);if(a.Dd()&&a.isShadowed){var z=a.shadowOffset;y.Ev(z.x*x.scale*a.scale*x.Mb,z.y*x.scale*a.scale*x.Mb,a.shadowBlur),zh(y),y.shadowColor=a.shadowColor}a instanceof ha&&(y.font=a.font),y.yd=null;var nt=a.transform;z=a instanceof qn;var ot=a instanceof qn?Ch(a):!1;a.l&4096&&Xl(a);var at=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,E&&(y.o=!0,z&&ot?(Ad(y,1,0,0,1,0,0),a.svg=y.ad):z?(Ad(y,nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy),a.svg=y.ad):Ad(y,1,0,0,1,0,0)),E=a.naturalBounds,a.areaBackground!==null){var ht=nt.copy().Vj();y.rb.ha=[ht.m11,ht.m12,ht.m21,ht.m22,ht.dx,ht.dy],Ja(a,y,E,at),y.rb.ha=[1,0,0,1,0,0],y.yd.gd=y.ad,y.yd.prepend(y.ad)}return z||(y.rb.ha=[nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy]),a.background!==null&&(z?(ot&&(y.rb.ha=[nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy]),Ua(a,y,E,at),ot&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy],Ua(a,y,E,at)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),nt=y.yd,E=a.part,ot=!1,E&&x.Gf("drawShadows")&&(ot=E.isShadowed),y.clipInsteadOfFill&&(ot=!1),a.Dd()&&ot&&zh(y),ot&&a.shadowVisible===!0?zh(y):ot&&a.shadowVisible===!1&&td(y),E=a.panel,ot&&fl(a,E)&&a.shadowVisible===null&&td(y),y.Il&&(ht=x.computePixelRatio(),ht="drop-shadow("+y.shadowOffsetX/ht+"px "+y.shadowOffsetY/ht+"px "+y.shadowBlur/ht/2+"px "+y.shadowColor+")",a.background!==null&&nt.Ma.setAttributeNS(null,"filter",ht),a.areaBackground!==null&&nt.gd.setAttributeNS(null,"filter",ht)),ot&&(a.Ma!==null||a.areaBackground!==null||fl(a,E))?(ch(a,!0),a.shadowVisible===null&&td(y)):ch(a,!1),E=ot,a.hh(y,x),z&&y.nh.pop(),y.o&&y.nh.pop(),nt=y.Gv.hs,ot=z?a.svg:y.yd,ht=a.svg,!z&&ht!==null&&ot!==ht&&ht.parentNode===a.panel.svg?(a.svg.replaceWith(ot),a.svg=ot,ot!==null&&a.$o(y,b,at,ot),wu(y,ht),!0):(a.svg=ot,nt!==null&&ot===null&&(Pg(y),y.nh.pop()),ot===null||(a.$o(y,b,at,ot),y.Il&&(x=x.computePixelRatio(),a.Dv(ot,"drop-shadow("+y.shadowOffsetX/x+"px "+y.shadowOffsetY/x+"px "+y.shadowBlur/x/2+"px "+y.shadowColor+")")),E&&a.l&512&&zh(y),a.Dd()&&td(y),x=a.Dd()?a.opacity*y.globalAlpha:a.opacity,x!==1&&ot.setAttributeNS(null,"opacity",x.toString()),a.filter!==""&&ot.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(ot):y.Nj.prepend(ot),y.ti=ot):b!==null&&Za(a,b,ot),nt!==null&&nt(a,ot)),!0)}Vt.$o=function(a,y,x,b){var E=(this.l&256)!==0;if(a.clipInsteadOfFill&&(E=!1),E){var z=y.se()?y.naturalBounds:y.actualBounds;y=Math.max(x.x,z.x),E=Math.max(x.y,z.y);var nt=Math.min(x.right,z.right)-y;x=Math.min(x.bottom,z.bottom)-E,z=this.tb,z!==null&&(y=z.x,E=z.y,nt=z.width,x=z.height),z=b.getAttribute("clip-path");var ot=null;z!==null&&(ot=a.svg.getElementById(z.split("#")[1].slice(0,-1))),ot===null?(z="CLIP"+Hs++,ot=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:E,width:nt,height:x}),this instanceof qn&&(E=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")")),ot.appendChild(y),a.svg.appendChild(ot),b.setAttributeNS(null,"clip-path","url(#"+z+")")):(a=ot.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",E.toString()),a.setAttribute("width",nt.toString()),a.setAttribute("height",x.toString()))}else b.removeAttributeNS(null,"clip-path"),wu(a,b)};function wu(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function Ro(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=Ss(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()}}Vt.hh=function(){},Vt.lv=function(){this.Uc=!0},Vt.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 qn?Ch(this):!1;if(!(this instanceof qn&&E))if(this instanceof uc){var z=this.bt;a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy],z!==null&&Kg(a,z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7]),x?y.lastElementChild.setAttributeNS(null,"transform",wp(a)):y.setAttributeNS(null,"transform",wp(a))}else if(!x||this instanceof qn)y.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");else if(this instanceof Go){z=y.getElementsByTagName("path");for(var nt=0;nt<z.length;nt++)z[nt].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 z=this.Dd()?this.opacity*a.globalAlpha:this.opacity,z===1?y.removeAttribute("opacity"):y.setAttributeNS(null,"opacity",z.toString()),a.rb.ha=[1,0,0,1,0,0],(this.areaBackground!==null||y.gd!==void 0)&&(z=y.gd,this.areaBackground===null?(y.gd.remove(),y.gd=void 0):(nt=b.copy().Vj(),a.rb.ha=[nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy],Ja(this,a,this.naturalBounds,this.actualBounds),a.rb.ha=[1,0,0,1,0,0],y.gd?(nt=y.gd.getAttribute("filter"),nt!==null&&a.ad.setAttribute("filter",nt),y.gd.replaceWith(a.ad)):y.prepend(a.ad),y.gd=a.ad),z&&vc(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(vc(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((E||x&&!(this instanceof qn))&&(a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy]),Ua(this,a,this.naturalBounds,this.actualBounds),y.Ma?(vc(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),z&&vc(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},Vt.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 Ca(a,y,x,b,E,z,nt){if(x!==null){var ot=1,at=1;if(typeof x=="string")b?y.fillStyle=x:y.strokeStyle=x;else if(x.type===me)b?y.fillStyle=x.color:y.strokeStyle=x.color;else{var ht=a.kq();if(ot=z.width,at=z.height,E?(ot=nt.width,at=nt.height):b||(ot+=ht,at+=ht),(z=y instanceof ZA)&&x.xe&&(x.type===vn||x.yk===ot&&x.ft===at))var ct=x.xe;else{var gt=0,Nt=0,Kt=0,Xt=0,ce=0,Ke=0;if(Ke=ce=0,E?(ce=nt.x,Ke=nt.y):b||(ce-=ht/2,Ke-=ht/2),gt=x.start.x*ot+x.start.offsetX,Nt=x.start.y*at+x.start.offsetY,Kt=x.end.x*ot+x.end.offsetX,Xt=x.end.y*at+x.end.offsetY,gt+=ce,Kt+=ce,Nt+=Ke,Xt+=Ke,x.type===Ne)ct=y.createLinearGradient(gt,Nt,Kt,Xt);else if(x.type===Je)Ke=isNaN(x.endRadius)?Math.max(ot,at)/2:x.endRadius,isNaN(x.startRadius)?(ce=0,Ke=Math.max(ot,at)/2):ce=x.startRadius,ct=y.createRadialGradient(gt,Nt,ce,Kt,Xt,Ke);else if(x.type===vn)try{ct=y.createPattern(x.pattern,"repeat")}catch($e){ct=null}if(x.type!==vn&&(E=x.colorStops,E!==null))for(E=E.iterator;E.next();)ct.addColorStop(E.key,E.value);if(z&&(x.xe=ct,ct!==null&&(x.yk=ot,x.ft=at),ct===null&&x.type===vn&&x.yk!==-1)){x.yk=-1;var Te=a.diagram;Te!==null&&x.yk===-1&&_i(function(){Te.redraw()},600)}}b?y.fillStyle=ct:y.strokeStyle=ct}}}Vt.rg=function(a){if(a instanceof qn)t:{if(this!==a&&a!==null)for(var y=this.panel;y!==null;){if(y===a){a=!0;break t}y=y.panel}a=!1}else a=!1;return a},Vt.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},Vt.If=function(){for(var a=this instanceof qn?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function Xl(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){Fh(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)}Fh(a,!1),eh(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,eh(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,eh(a,!1)))}Vt.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=ke.alloc();z.yi(y,x,b,E,Yo),a.rotate(this.Kb,z.x,z.y),ke.free(z)}},Vt.v=function(a){if(!xh(this)){a===void 0&&(a=!1),Ql(this,!0),qc(this,!0);var y=this.panel;y===null||a||y.v()}},Vt.Uj=function(){xh(this)||(Ql(this,!0),qc(this,!0))};function Hl(a){if(!Hu(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof Ar&&a.Bd(),y.$b())),qc(a,!0)}}Vt.Uk=function(){!(this.l&2048)&&(Fh(this,!0),eh(this,!0))},Vt.Wu=function(){eh(this,!0)},Vt.N=function(){var a=this.part;a!==null&&a.N()};function Zu(a,y){var x=a.stretch,b=a.panel;return b!==null&&b.type===qn.Table?aa(a,b.Fb(a.row),b.Eb(a.column),y):b!==null&&b.type===qn.Auto&&b.Pb()===a?zs(a,Ni,y):x===Co?b!==null?b.type===qn.Spot&&b.Pb()===a?zs(a,Ni,y):(x=b.defaultStretch,x===Co?zs(a,Ei,y):zs(a,x,y)):zs(a,Ei,y):zs(a,x,y)}function aa(a,y,x,b){var E=a.stretch;if(E!==Co)return zs(a,E,b);var z=E=null;switch(y.stretch){case to:z=!0;break;case Ni:z=!0}switch(x.stretch){case jr:E=!0;break;case Ni:E=!0}return y=a.panel.defaultStretch,E===null&&(E=y===jr||y===Ni),z===null&&(z=y===to||y===Ni),E===!0&&z===!0?zs(a,Ni,b):E===!0?zs(a,jr,b):z===!0?zs(a,to,b):zs(a,Ei,b)}function zs(a,y,x){if(x)return y;if(y===Ei||(x=a.desiredSize,x.w()))return Ei;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===jr)return Ei;if(y===Ni)return to}else{if(y===to)return Ei;if(y===Ni)return jr}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===to)return Ei;if(y===Ni)return jr}else{if(y===jr)return Ei;if(y===Ni)return to}return y}function ch(a,y){a.l=y?a.l|512:a.l&-513}function fu(a){return(a.l&1024)!==0}function Xd(a,y){a.l=y?a.l|1024:a.l&-1025}function Fh(a,y){a.l=y?a.l|2048:a.l&-2049}function eh(a,y){a.l=y?a.l|4096:a.l&-4097}function xh(a){return(a.l&8192)!==0}function Ql(a,y){a.l=y?a.l|8192:a.l&-8193}function Hu(a){return(a.l&16384)!==0}function qc(a,y){a.l=y?a.l|16384:a.l&-16385}Vt.Gj=function(){this.svg=null},Vt.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},Vt.Av=function(){},Vt.zv=function(a){return this.pa=a,Hl(this),!0},Vt.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},Vt.kq=function(){return 0};function Md(a){var y=a.part;if(y instanceof Ar&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||$y(y,a)}}function Cg(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof qn?a instanceof Ar?a.Bd():a.qm(a,function(x){Md(x)}):Md(a))}Vt.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new iu(a,y,x,b):E=a,E.xd=this,a=this.ih(),a!==null&&lc(a)&&sn("Cannot add a Binding to a template that has already been copied: "+E),this.localBindings===null&&(this.localBindings=new Ci),this.localBindings.add(E),this},Vt.set=function(a){return Object.assign(this,a),this},Vt.Du=function(a){return Bg(this,a),this},Vt.apply=function(a){return a(this),this},Vt.nm=function(a){return vh(this,a),this},Vt.pz=function(){return this.ih()},Vt.ih=function(){for(var a=this instanceof qn?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},Vt.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new Cr),this.animationTriggers.add(a.propertyName,a),this};function Hh(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 z=yf.I(a);typeof z=="function"?(x=fr(arguments),b=z(x),ii(b)||sn('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):E=Ve.go[a]}if(b===null&&(E!=null&&E.constructor||sn("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 _n&&1<x.length){z=b;var nt=x[1];(typeof nt=="string"||nt instanceof HTMLDivElement)&&(ad(z,nt),E++)}for(;E<x.length;E++)z=x[E],z===void 0?sn("Undefined value at argument "+E+" for object being constructed by GraphObject.make: "+b):Bg(b,z);return b}function Bg(a,y){if(typeof y=="string")if(a instanceof ha)a.text=y;else if(a instanceof Go)a.figure=y;else if(a instanceof uc)a.source=y;else if(a instanceof qn)y=Gh.I(y),y!==null&&(a.type=y);else if(a instanceof Rs){var x=or(Rs,y);x!==null?a.type=x:sn("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof $i?(y=or($i,y),y!==null&&(a.type=y)):a instanceof gs&&(y=or(gs,y),y!==null&&(a.type=y));else if(y instanceof xn)a instanceof qn||sn("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof Kl){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 Kl?Yg(b,y):sn("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof ri)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Fn)a.type=y;else if(y instanceof iu)a instanceof xn||a instanceof Kl?a.bind(y):sn("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof Wu)a instanceof xn?a.Jv(y):sn("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof il)a instanceof $i&&a.type===$i.o?a.figures.add(y):sn("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof gs)a instanceof il?a.segments.add(y):sn("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Ya)a instanceof _n||a instanceof _o?a.layout=y:sn("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++)Bg(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof Rs){x=new no;for(var E in y)b=parseFloat(E),isNaN(b)?x[E]=y[E]:a.addColorStop(b,y[E]);vh(a,x)}else if(a instanceof Kl){y.row!==void 0?(E=y.row,(E==null||E===1/0||isNaN(E)||0>E)&&sn("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)&&sn("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+E),a.isRow=!1,a.index=E),E=new no;for(x in y)x!=="row"&&x!=="column"&&(E[x]=y[x]);vh(a,E)}else vh(a,y);else sn('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function dd(a,y){yf.add(a,y)}function Wf(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}Re.Object.defineProperties(xn.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new GA),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 GA),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 GA),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(jo(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&&(jo(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Vh},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new MA),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===Vh&&(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 MA),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 MA),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:ts},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new MA),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:Co},set:function(a){var y=this.stretch;y!==a&&(jo(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&&(jo(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)&&Zi(a,"0 <= value <= 1",xn,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Ig(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(Ig(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(),Cg(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&&Qt(a,"GraphObject.areaBackground"),a instanceof Rs&&a.freeze(),jo(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&&Qt(a,"GraphObject.background"),a instanceof Rs&&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 Yr)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 ke(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&&sn("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,Cg(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,z=b.height;(E===y||isNaN(E)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof Go&&this.qc(),this.g("desiredSize",b,a),fu(this)&&(a=this.part,a!==null&&(Js(this,a,"width"),Js(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 Ki(a,this.jd.height).freeze(),this.v(),this instanceof Go&&this.qc(),this.g("desiredSize",y,a),fu(this)&&(a=this.part,a!==null&&Js(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 Ki(this.jd.width,a).freeze(),this.v(),this instanceof Go&&this.qc(),this.g("desiredSize",y,a),fu(this)&&(a=this.part,a!==null&&Js(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:Eo},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(),jo(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Vs},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(),jo(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 Hr(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&&Xl(this),this.Ab}},oe:{get:function(){return this.l&4096&&Xl(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(jo(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:Ei},set:function(a){this.reshapingBehavior!==a&&(jo(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()&&sn("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),Hl(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&&Zi(a,">= 0",xn,"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&&Zi(a,">= 1",xn,"columnSpan"),jo(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&&Zi(a,">= 0",xn,"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&&Zi(a,">= 1",xn,"rowSpan"),jo(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&&(jo(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 Ar||sn("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Ev(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,qy(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Ma},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Md(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Zi(a,">= 0",xn,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Md(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),Md(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&&Zi(a,">= 0",xn,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Ma},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Md(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Zi(a,">= 0",xn,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Md(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),Md(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&&Zi(a,">= 0",xn,"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&&(jo(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&&(jo(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&&(jo(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&&(jo(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&&(jo(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&&(jo(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&&(jo(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&&(jo(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&&(jo(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&&(jo(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&&(jo(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&&(jo(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&&(jo(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&&(jo(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&&(jo(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&&(jo(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&&(jo(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&&(jo(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),xn.prototype.trigger=xn.prototype.Jv,xn.prototype.findBindingPanel=xn.prototype.ih,xn.prototype.findTemplateBinder=xn.prototype.pz,xn.prototype.setProperties=xn.prototype.nm,xn.prototype.apply=xn.prototype.apply,xn.prototype.attach=xn.prototype.Du,xn.prototype.set=xn.prototype.set,xn.prototype.isEnabledObject=xn.prototype.If,xn.prototype.isVisibleObject=xn.prototype.Ed,xn.prototype.isContainedBy=xn.prototype.rg,xn.prototype.getNearestIntersectionPoint=xn.prototype.rs,xn.prototype.getLocalPoint=xn.prototype.qs,xn.prototype.getDocumentScale=xn.prototype.Df,xn.prototype.getDocumentAngle=xn.prototype.li,xn.prototype.getDocumentBounds=xn.prototype.mi,xn.prototype.getDocumentPoint=xn.prototype.ga,xn.prototype.intersectsRect=xn.prototype.Yc,xn.prototype.containedInRect=xn.prototype.fh,xn.prototype.containsRect=xn.prototype.Re,xn.prototype.containsPoint=xn.prototype.ca,xn.prototype.raiseChanged=xn.prototype.g,xn.prototype.raiseChangedEvent=xn.prototype.cb,xn.prototype.addCopyProperty=xn.prototype.Vw;var yf=null;xn.className="GraphObject",yf=new Cr,dd("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=Hh(qn,qn.Auto,{isActionable:!0,enabledChanged:function(x,b){if(x instanceof qn){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"},Hh(Go,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new xr(0,0,2.76142374915397,2.761423749153969),spot2:new xr(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 qn&&(x=b.fb("ButtonBorder"),x instanceof Go)){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 qn&&(x=b.fb("ButtonBorder"),x instanceof Go&&(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal))},y.actionDown=function(x,b){if(b.If()&&b instanceof qn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof Go){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var nt=b._buttonFillPressed;b._buttonFillOver=E.fill,E.fill=nt,nt=b._buttonStrokePressed,b._buttonStrokeOver=E.stroke,E.stroke=nt,x.skipsUndoManager=z}}},y.actionUp=function(x,b){if(b.If()&&b instanceof qn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof Go){var z=x.diagram,nt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),z.skipsUndoManager=nt}}},y.actionCancel=function(x,b){if(b.If()&&b instanceof qn&&b._buttonFillPressed!==null){var E=b.fb("ButtonBorder");if(E instanceof Go){var z=x.diagram,nt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),z.skipsUndoManager=nt}}},y.actionMove=function(x,b){if(b.If()&&b instanceof qn&&b._buttonFillPressed!==null){var E=x.diagram;if(E.firstInput.button===0&&(E.currentTool.standardMouseOver(),a(x,b)&&(x=b.fb("ButtonBorder"),x instanceof Go))){var z=E.skipsUndoManager;E.skipsUndoManager=!0;var nt=b._buttonFillPressed;x.fill!==nt&&(x.fill=nt),nt=b._buttonStrokePressed,x.stroke!==nt&&(x.stroke=nt),E.skipsUndoManager=z}}},y}),dd("TreeExpanderButton",function(){var a=Hh("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Hh(Go,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:ca},new iu("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new iu("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof bs&&(x=x.adornedPart),x instanceof Ar){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}),dd("SubGraphExpanderButton",function(){var a=Hh("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Hh(Go,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:ca},new iu("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 bs&&(x=x.adornedPart),x instanceof _o){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}),dd("ToolTip",function(){return Hh(bs,qn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new ke(0,3),shadowBlur:5},Hh(Go,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new xr(0,0,4,6),spot2:new xr(1,1,-4,-4)}))}),dd("ContextMenu",function(){return Hh(bs,qn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new ke(0,3),shadowBlur:5},new iu("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),dd("ContextMenuButton",function(){var a=Hh("Button");a.stretch=jr;var y=a.fb("ButtonBorder");return y instanceof Go&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new xr(0,0,2,3),y.spot2=new xr(1,1,-2,-2)),a}),dd("PanelExpanderButton",function(a){var y=Wf(a,"COLLAPSIBLE"),x=Hh("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},Hh(Go,{name:"ButtonIcon",strokeWidth:2},new iu("geometryString","visible",function(b){return b?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof Go&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(b,E){var z=E.diagram;if(z!==null&&!z.isReadOnly){var nt=E.ih();nt===null&&(nt=E.part),nt!==null&&(E=nt.fb(y),E!==null&&(b.handled=!0,z.Ea("Collapse/Expand Panel"),E.visible=!E.visible,z.eb("Collapse/Expand Panel")))}},x}),dd("CheckBoxButton",function(a){var y=Wf(a);return a=Hh("Button",{desiredSize:new Ki(14,14)},Hh(Go,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Ni,geometryStretch:Nr,visible:!1},y!==""?new iu("visible",y).Kx():[])),a.click=function(x,b){if(b instanceof qn){var E=x.diagram;if(!(E===null||E.isReadOnly||y!==""&&E.model.isReadOnly)){x.handled=!0;var z=b.fb("ButtonIcon");E.Ea("checkbox"),z.visible=!z.visible,typeof b._doClick=="function"&&b._doClick(x,b),E.eb("checkbox")}}},a}),dd("CheckBox",function(a){a=Wf(a),a=Hh("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Hr(0,1,0,0)});var y=Hh(qn,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Hr(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}),xn.None=Ei=new ri(xn,"None",0),xn.Default=Co=new ri(xn,"Default",0),xn.Vertical=to=new ri(xn,"Vertical",4),xn.Horizontal=jr=new ri(xn,"Horizontal",5),xn.Fill=Ni=new ri(xn,"Fill",3),xn.Uniform=Nr=new ri(xn,"Uniform",1),xn.UniformToFill=$o=new ri(xn,"UniformToFill",2),xn.FlipVertical=Do=new ri(xn,"FlipVertical",1),xn.FlipHorizontal=ss=new ri(xn,"FlipHorizontal",2),xn.FlipBoth=Ds=new ri(xn,"FlipBoth",3),xn.make=Hh,xn.getBuilders=function(){var a=new Cr,y;for(y in yf)if(y!==y.toLowerCase()){var x=yf.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},xn.defineBuilder=dd,xn.build=function(a,y,x){for(var b=[],E=2;E<arguments.length;++E)b[E-2]=arguments[E];if(E=yf.I(a),typeof E=="function"&&(b=E([a].concat(b)),b instanceof xn))return y&&b.set(y),b;sn('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},xn.takeBuilderArgument=Wf;function GA(){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=Eo,this.o=Vs,this.hg=Co,this.ob=this.Bi=1,this.Pf=Ei,this.Pc=this.Ci=this.gd=null,this.Oc="category"}GA.prototype.copy=function(){var a=new GA;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 MA(){this.u=-1/0,this.o=0,this.F=ts,this.rr=Vh,this.j=this.V="None"}MA.prototype.copy=function(){var a=new MA;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},MA.className="LinkElementSettings";function Vf(){this.yj=this.Xi=Bs,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}Vf.prototype.copy=function(){var a=new Vf;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},Vf.className="LinkSettings";function fA(){this.ha=[1,0,0,1,0,0]}fA.prototype.copy=function(){var a=new fA;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},fA.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},fA.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},fA.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,z=this.ha[0]*-b+this.ha[2]*a,nt=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]=z,this.ha[3]=nt,this.translate(-y,-x)}},fA.className="STransform";function Nd(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}Nd.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},Nd.className="SGradient";function Pu(a,y,x){this.ownerDocument=a=y===void 0?Ve.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 Sh(this,x)}Pu.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},Pu.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),ii(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},Pu.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Pu.prototype.focus=function(){this.Oa.focus()},Pu.prototype.mx=function(){this.ownerDocument=null},Re.Object.defineProperties(Pu.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}}}),Pu.className="SVGSurface";function Sh(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 fA,this.j=Pg(this),this.Nj=Pg(this,"gojs-diagram"),this.Hl=this.ti=null;var x=Hs++,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 Zf(a,y,x,b,E,z,nt){a.Nj===void 0?Ad(a,y,x,b,E,z,nt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+b+", "+E+", "+z+", "+nt+")")}Vt=Sh.prototype,Vt.arc=function(a,y,x,b,E,z,nt,ot){var at=2*Math.PI,ht=at-1e-6,ct=x*Math.cos(b),gt=x*Math.sin(b),Nt=a+ct,Kt=y+gt,Xt=z?0:1;b=z?b-E:E-b,(1e-6<Math.abs(nt-Nt)||1e-6<Math.abs(ot-Kt))&&this.path.push(["L",Nt,+Kt]),0>b&&(b=b%at+at),b>ht?(this.path.push(["A",x,x,0,1,Xt,a-ct,y-gt]),this.path.push(["A",x,x,0,1,Xt,Nt,Kt])):1e-6<b&&this.path.push(["A",x,x,0,+(b>=Math.PI),Xt,a+x*Math.cos(E),y+x*Math.sin(E)])},Vt.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Vt.Se=function(a){this.addPath(this.path,this.rb,a||0)},Vt.bezierCurveTo=function(a,y,x,b,E,z){this.path.push(["C",a,y,x,b,E,z])},Vt.clearRect=function(){},Vt.clip=function(){this.Yl.clipPath=!0},Vt.closePath=function(){this.path.push(["z"])},Vt.createLinearGradient=function(a,y,x,b){var E=new Nd("linear");return E.x1=a,E.y1=y,E.x2=x,E.y2=b,E},Vt.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"+Hs++,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(_h,E)),this.svg.appendChild(a),x[y]=b,"url(#"+b+")"},Vt.createRadialGradient=function(a,y,x,b,E,z){var nt=new Nd("radial");return nt.x1=a,nt.y1=y,nt.r1=x,nt.x2=b,nt.y2=E,nt.r2=z,nt};function Kg(a,y,x,b,E,z,nt,ot,at){b=ot/b,E=at/E,z===0&&nt===0||a.rb.translate(z,nt),b===1&&E===1||a.rb.scale(b,E),y===0&&x===0||a.rb.translate(-y,-x)}Vt.drawImage=function(a,y,x,b,E,z,nt,ot,at){var ht="";a instanceof HTMLCanvasElement&&(ht=a.toDataURL()),a instanceof HTMLImageElement&&(ht=a.getAttribute("src"));var ct=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,b===void 0&&(z=y,nt=x,ot=b=ct,at=E=a),b=b||0,E=E||0,ot=ot||0,at=at||0,Kg(this,y,x,b,E,z||0,nt||0,ot,at),z={x:0,y:0,width:ct||b,height:a||E,href:ht},Ln.$(b,ot)&&Ln.$(E,at)?ht.toLowerCase().indexOf(".svg")===-1&&ht.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||b!==ct||E!==a)&&(b+=y,E+=x,z["clip-path"]="path('M "+y+","+x+" L "+b+" "+x+" L "+b+" "+E+" L "+y+" "+E+" z')"),WA(this,_h,z,this.rb),this.addElement(_h,z)},Vt.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),VA(this,this.Yl)},Vt.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Vt.fillRect=function(a,y,x,b){a=[a,y,x,b],a={x:a[0],y:a[1],width:a[2],height:a[3]},WA(this,"fill",a,this.rb),this.addElement("rect",a)},Vt.ox=function(a,y,x,b){a={x:a,y,width:x,height:b},WA(this,"fill",a,this.rb),VA(this,a),this.svg.prepend(this.Ud("rect",a))},Vt.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},WA(this,"fill",y,this.rb),this.addElement("text",y,a[0])},Vt.lineTo=function(a,y){this.path.push(["L",a,y])},Vt.moveTo=function(a,y){this.path.push(["M",a,y])},Vt.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},Vt.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"])},Vt.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},Vt.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())},Vt.setTransform=function(a,y,x,b,E,z){a===1&&y===0&&x===0&&b===1&&E===0&&z===0||Ad(this,a,y,x,b,E,z)};function wp(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}Vt.scale=function(a,y){this.rb.scale(a,y)},Vt.translate=function(a,y){this.rb.translate(a,y)},Vt.transform=function(){},Vt.yc=function(){},Vt.stroke=function(){NA(this,this.Yl)},Vt.jk=function(){this.clipInsteadOfFill||this.stroke()},Vt.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},Vt.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 WA(a,y,x,b){y==="fill"?VA(a,x):y==="stroke"&&NA(a,x),b!==null&&(a=b.ha,x.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function VA(a,y){a.fillStyle instanceof Nd?y.fill=Qh(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 Yf(a,y,x){x=x?"fill":"stroke",a.fillStyle instanceof Nd?y.setAttributeNS(null,"fill",Qh(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 NA(a,y){if(a.strokeStyle instanceof Nd)y.stroke=Qh(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 Qh(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"+Hs++,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 z=[],nt=0;nt<y;nt++){var ot=E[nt],at=ot.color;ot={offset:ot.offset,"stop-color":at},/^rgba\(/.test(at)&&(at=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(at),ot["stop-color"]="rgb("+at[1]+","+at[2]+","+at[3]+")",ot["stop-opacity"]=at[4]),z.push(ot)}for(z.sort(function(ht,ct){return ht.offset>ct.offset?1:-1}),E=0;E<y;E++)x.appendChild(a.Ud("stop",z[E]));return a.svg.appendChild(x),"url(#"+b+")"}Vt.addPath=function(a,y,x){for(var b=[],E=0;E<a.length;E++){var z=fr(a[E]),nt=[z.shift()];if(nt[0]==="A")nt.push(z.shift()+","+z.shift(),z.shift(),z.shift()+","+z.shift(),z.shift()+","+z.shift());else for(;z.length;)nt.push(z.shift()+","+z.shift());b.push(nt.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,WA(this,"",a,y),this.Hl!==null)if(y=this.Hl,y.nodeName!=="g")for(var ot in a)ot!=="transform"&&y.setAttributeNS(null,ot,a[ot]);else{ot=y.getElementsByTagName("path");for(var at in a)at!=="transform"&&ot[x].setAttributeNS(null,at,a[at])}else this.addElement("path",a)};function Ad(a,y,x,b,E,z,nt){var ot=new fA;ot.ha=[y,x,b,E,z,nt],y={},WA(a,"g",y,ot),ot=a.addElement("g",y),a.nh.push(ot)}function Pg(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}Vt.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function td(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function zh(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}Vt.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},Vt.fs=function(){this.Ct=!1},Vt.Vc=function(){},Vt.Wx=function(){},Sh.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},Sh.prototype.getImageData=function(){return null},Sh.prototype.measureText=function(){return null};function vc(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()))}Sh.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},Sh.className="SVGContext",_n.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new Pu(this,Ve.document));var y=new Pu(this,Ve.document,!0);a===void 0&&(a=new no);var x=this;return Ws(this,function(b,E){return b=_a(x,b,"SVG",y),b=b!==null?b.svg:null,typeof E=="function"?(E(b),null):b},a)},_n.prototype.makeSvg=_n.prototype.Cs,_n.prototype.av=function(a){return this.Cs(a)},_n.prototype.makeSVG=_n.prototype.av;function yc(a,y,x,b){this.ownerDocument=y=y===void 0?Ve.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new ZA(y,x,b),y.H=a}yc.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},yc.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},yc.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},yc.prototype.focus=function(){this.Oa.focus()},yc.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},Re.Object.defineProperties(yc.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}}}),yc.className="CanvasSurface";function ZA(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&sn("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 Ko,this.isTemporary=!!x}Vt=ZA.prototype,Vt.Wx=function(a){this.Z.imageSmoothingEnabled=a},Vt.arc=function(a,y,x,b,E,z){this.Z.arc(a,y,x,b,E,z)},Vt.beginPath=function(){this.Z.beginPath()},Vt.Se=function(){},Vt.bezierCurveTo=function(a,y,x,b,E,z){this.Z.bezierCurveTo(a,y,x,b,E,z)},Vt.clearRect=function(a,y,x,b){this.yc(),this.Z.clearRect(a,y,x,b)},Vt.clip=function(){this.Z.clip()},Vt.closePath=function(){this.Z.closePath()},Vt.createLinearGradient=function(a,y,x,b){return this.Z.createLinearGradient(a,y,x,b)},Vt.createPattern=function(a,y){return this.Z.createPattern(a,y)},Vt.createRadialGradient=function(a,y,x,b,E,z){return this.Z.createRadialGradient(a,y,x,b,E,z)},Vt.drawImage=function(a,y,x,b,E,z,nt,ot,at){b===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,b,E,z,nt,ot,at)},Vt.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},Vt.fillRect=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},Vt.ox=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},Vt.fillText=function(a,y,x){this.Z.fillText(a,y,x)},Vt.getImageData=function(a,y,x,b){return this.Z.getImageData(a,y,x,b)},Vt.lineTo=function(a,y){this.Z.lineTo(a,y)},Vt.measureText=function(a){return this.Z.measureText(a)},Vt.moveTo=function(a,y){this.Z.moveTo(a,y)},Vt.quadraticCurveTo=function(a,y,x,b){this.Z.quadraticCurveTo(a,y,x,b)},Vt.rect=function(a,y,x,b){this.Z.rect(a,y,x,b)},Vt.restore=function(){this.Z.restore()},Vt.save=function(){this.yc(),this.Z.save()},ZA.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},Vt=ZA.prototype,Vt.setTransform=function(a,y,x,b,E,z){this.El.setTransform(a,y,x,b,E,z)},Vt.scale=function(a,y){this.El.scale(a,y)},Vt.translate=function(a,y){this.El.translate(a,y)},Vt.stroke=function(){this.Z.stroke()},Vt.transform=function(a,y,x,b,E,z){if(a!==1||y!==0||x!==0||b!==1||E!==0||z!==0){var nt=this.El,ot=nt.m11*a+nt.m21*y;a=nt.m12*a+nt.m22*y,y=nt.m11*x+nt.m21*b,x=nt.m12*x+nt.m22*b,nt.dx=nt.m11*E+nt.m21*z+nt.dx,nt.dy=nt.m12*E+nt.m22*z+nt.dy,nt.m11=ot,nt.m12=a,nt.m21=y,nt.m22=x}},Vt.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},Vt.ng=function(a,y){if(a instanceof Rs&&a.type===Je){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)},Vt.jk=function(){this.Hm||this.stroke()},Vt.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Vt.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Vt.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(xp),a.lineDashOffset=0)},Vt.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Vt.Hs=function(){},Re.Object.defineProperties(ZA.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 xp=Object.freeze([]);ZA.className="CanvasSurfaceContext";function wf(){this.F=this.o=this.u=this.j=0}wf.className="ColorNumbers";function Rs(a,y){Ut||(Ht(),Ut=!0),ns(this),this._isFrozen=!1,a===void 0?(this.na=me,this.xk="black"):typeof a=="string"?(this.na=me,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===Ne?(this.Qd=Bl,this.Lk=lu):this.Lk=a===Je?this.Qd=Yo:this.Qd=Ma,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}Rs.prototype.copy=function(){var a=new Rs;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},Vt=Rs.prototype,Vt.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Vt.ka=function(){return Object.isFrozen(this)&&sn("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Vt.qb=function(a){a.classType===Rs&&(this.type=a)},Vt.toString=function(){var a="Brush(";if(this.type===me)a+=this.color;else if(a=this.type===Ne?a+"Linear ":this.type===Je?a+"Radial ":this.type===vn?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+")"},Vt.addColorStop=function(a,y){return this._isFrozen&&fi(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&Zi(a,"0 <= loc <= 1",Rs,"addColorStop:loc"),this.we===null&&(this.we=new Cr),this.we.add(a,y),this.na===me&&(this.type=Ne),this.xe=null,this},Vt.Vz=function(a,y){if(this._isFrozen&&fi(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?An:y,this.type===me)fd(this.color),this.color=gA(a,y);else if((this.type===Ne||this.type===Je)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)fd(x.value),this.addColorStop(x.key,gA(a,y));return this};function Gg(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?An:x,fd(a),gA(y,x)}Vt.Wy=function(a,y){if(this._isFrozen&&fi(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?An:y,this.type===me)fd(this.color),this.color=gA(-a,y);else if((this.type===Ne||this.type===Je)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)fd(x.value),this.addColorStop(x.key,gA(-a,y));return this};function Sp(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?An:x,fd(a),gA(-y,x)}function xf(a,y,x){fd(a),a=Rn.j;var b=Rn.u,E=Rn.o,z=Rn.F;return fd(y),x===void 0&&(x=.5),"rgba("+Math.round((Rn.j-a)*x+a)+", "+Math.round((Rn.u-b)*x+b)+", "+Math.round((Rn.o-E)*x+E)+", "+Math.round((Rn.F-z)*x+z)+")"}Vt.Gx=function(){if(this.type===me)return IA(this.color);if((this.type===Ne||this.type===Je)&&this.colorStops!==null){var a=this.colorStops;if(this.type===Je)return IA(a.first().value);if(a.get(.5)!==null)return IA(a.get(.5));if(a.count===2)return a=a.Fa(),IA(xf(a[0].value,a[1].value));for(var y=a.iterator,x=-1,b=-1,E=1,z=1;y.next();){var nt=y.key,ot=Math.abs(.5-y.key);E>z&&ot<E?(x=nt,E=ot):z>=E&&ot<z&&(b=nt,z=ot)}return x>b&&(z=x,x=b,b=z,z=E),E=b-x,IA(xf(a.get(x),a.get(b),1-z/E))}return!1};function IA(a){return a?a instanceof Rs?a.Gx():(fd(a),128>(299*Rn.j+587*Rn.u+114*Rn.o)/1e3):!1}function gA(a,y){switch(y){case An:y=100*Wg(Rn.j);var x=100*Wg(Rn.u),b=100*Wg(Rn.o);return Qi.j=.4124564*y+.3575761*x+.1804375*b,Qi.u=.2126729*y+.7151522*x+.072175*b,Qi.o=.0193339*y+.119192*x+.9503041*b,Qi.F=Rn.F,y=Ot(Qi.j/In[0]),x=Ot(Qi.u/In[1]),b=Ot(Qi.o/In[2]),vt.j=116*x-16,vt.u=500*(y-x),vt.o=200*(x-b),vt.F=Qi.F,vt.j=Math.min(100,Math.max(0,vt.j+100*a)),a=(vt.j+16)/116,y=a-vt.o/200,Qi.j=In[0]*It(vt.u/500+a),Qi.u=In[1]*(vt.j>nn*Le?Math.pow(a,3):vt.j/nn),Qi.o=In[2]*It(y),Qi.F=vt.F,a=-.969266*Qi.j+1.8760108*Qi.u+.041556*Qi.o,y=.0556434*Qi.j+-.2040259*Qi.u+1.0572252*Qi.o,Rn.j=255*Eg((3.2404542*Qi.j+-1.5371385*Qi.u+-.4985314*Qi.o)/100),Rn.u=255*Eg(a/100),Rn.o=255*Eg(y/100),Rn.F=Qi.F,Rn.j=Math.round(Rn.j),255<Rn.j?Rn.j=255:0>Rn.j&&(Rn.j=0),Rn.u=Math.round(Rn.u),255<Rn.u?Rn.u=255:0>Rn.u&&(Rn.u=0),Rn.o=Math.round(Rn.o),255<Rn.o?Rn.o=255:0>Rn.o&&(Rn.o=0),"rgba("+Rn.j+", "+Rn.u+", "+Rn.o+", "+Rn.F+")";case Sn:return bg(),Di.o=Math.min(100,Math.max(0,Di.o+100*a)),"hsla("+Di.j+", "+Di.u+"%, "+Di.o+"%, "+Di.F+")";default:sn("Unknown color space: "+y)}}function fd(a){Ut||(Ht(),Ut=!0);var y=ti;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,Rn.j=a[0],Rn.u=a[1],Rn.o=a[2],Rn.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Rn.j=0,Rn.u=0,Rn.o=0,Rn.F=1)}}function bg(){var a=Rn.j/255,y=Rn.u/255,x=Rn.o/255,b=Math.max(a,y,x),E=Math.min(a,y,x),z=b-E;if(E=(b+E)/2,z===0)var nt=a=0;else{switch(b){case a:nt=(y-x)/z%6;break;case y:nt=(x-a)/z+2;break;case x:nt=(a-y)/z+4}nt*=60,0>nt&&(nt+=360),a=z/(1-Math.abs(2*E-1))}Di.j=Math.round(nt),Di.u=Math.round(100*a),Di.o=Math.round(100*E),Di.F=Rn.F}function Wg(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function Eg(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function Ot(a){return a>Le?Math.pow(a,1/3):(nn*a+16)/116}function It(a){var y=a*a*a;return y>Le?y:(116*a-16)/nn}function Qt(a,y){typeof a!="string"&&(a instanceof Rs||sn("Value for "+y+" must be a color string or a Brush, not "+a))}function Ht(){ti=Us?new yc(null,void 0,{willReadFrequently:!0}).context:null}Re.Object.defineProperties(Rs.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&fi(this,a),this.na=a,this.start.Mc()&&(a===Ne?this.start=Bl:a===Je&&(this.start=Yo)),this.end.Mc()&&(a===Ne?this.end=lu:a===Je&&(this.end=Yo)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&fi(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&fi(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&fi(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&fi(this,a),0>a&&Zi(a,">= zero",Rs,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&fi(this,a),0>a&&Zi(a,">= zero",Rs,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&fi(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&fi(this,a),this.cr=a,this.xe=null}}}),Rs.prototype.isDark=Rs.prototype.Gx,Rs.prototype.darkenBy=Rs.prototype.Wy,Rs.prototype.lightenBy=Rs.prototype.Vz,Rs.prototype.addColorStop=Rs.prototype.addColorStop;var Le=216/24389,nn=24389/27,In=[95.047,100,108.883],ti=null,Rn=new wf,Di=new wf,Qi=new wf,vt=new wf,Ut=!1;Rs.className="Brush";var me;Rs.Solid=me=new ri(Rs,"Solid",0);var Ne;Rs.Linear=Ne=new ri(Rs,"Linear",1);var Je;Rs.Radial=Je=new ri(Rs,"Radial",2);var vn;Rs.Pattern=vn=new ri(Rs,"Pattern",4);var An;Rs.Lab=An=new ri(Rs,"Lab",5);var Sn;Rs.HSL=Sn=new ri(Rs,"HSL",6),Rs.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},Rs.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;Ut||(Ht(),Ut=!0);var y=ti;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)},Rs.lighten=function(a){return Gg(a)},Rs.lightenBy=Gg,Rs.darken=function(a){return Sp(a)},Rs.darkenBy=Sp,Rs.mix=xf,Rs.isDark=IA;function Fn(){this.xa="Base"}Fn.prototype.measure=function(){},Fn.prototype.Yz=function(a,y,x,b,E){a.measure(y,x,b,E)},Fn.prototype.arrange=function(){},Fn.prototype.Ly=function(a,y,x,b,E,z){a.arrange(y,x,b,E,z)},Fn.prototype.iA=function(a){a.Uj()},Fn.prototype.gc=function(){},Re.Object.defineProperties(Fn.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return qn}}}),Fn.prototype.remeasureObject=Fn.prototype.iA,Fn.prototype.arrangeElement=Fn.prototype.Ly,Fn.prototype.measureElement=Fn.prototype.Yz,Fn.className="PanelLayout";function Kn(){this.xa="Base"}On(Kn,Fn),Kn.prototype.measure=function(a,y,x,b,E,z,nt){var ot=b.length;a=Ha(a);for(var at=0;at<ot;at++){var ht=b[at];if(ht.visible||ht===a){var ct=ht.margin,gt=ct.right+ct.left;ct=ct.top+ct.bottom,ht.measure(y,x,z,nt);var Nt=ht.measuredBounds;gt=Math.max(Nt.width+gt,0),ct=Math.max(Nt.height+ct,0),Nt=ht.position.x;var Kt=ht.position.y;isFinite(Nt)||(Nt=0),isFinite(Kt)||(Kt=0),ht instanceof Go&&ht.isGeometryPositioned&&(ht=ht.strokeWidth/2,Nt-=ht,Kt-=ht),Is(E,Nt,Kt,gt,ct)}}},Kn.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 z=y[E],nt=z.measuredBounds,ot=z.margin,at=z.position.x,ht=z.position.y;if(at=isNaN(at)?-a:at-a,ht=isNaN(ht)?-x:ht-x,z instanceof Go&&z.isGeometryPositioned){var ct=z.strokeWidth/2;at-=ct,ht-=ct}z.visible&&z.arrange(at+ot.left,ht+ot.top,nt.width,nt.height)}};function Pi(){this.xa="Base"}On(Pi,Fn),Pi.prototype.measure=function(a,y,x,b,E,z,nt){var ot=b.length;y=yi(),z=Ha(a);for(var at=0;at<ot;at++){var ht=b[at];if(ht.visible||ht===z){var ct=Zu(ht,!1);if(ct!==Ei&&ct!==jr)y.push(ht);else{ht.measure(1/0,x,0,nt),ct=ht.margin,ht=ht.measuredBounds;var gt=Math.max(ht.height+ct.top+ct.bottom,0);E.width+=Math.max(ht.width+ct.right+ct.left,0),E.height=Math.max(E.height,gt)}}}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++)at=y[a],(at.visible||at===z)&&(ct=at.margin,ot=ct.right+ct.left,ct=ct.top+ct.bottom,at.measure(1/0,x,0,nt),at=at.measuredBounds,ct=Math.max(at.height+ct,0),E.width+=Math.max(at.width+ot,0),E.height=Math.max(E.height,ct));nr(y)},Pi.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.top,nt=a.isOpposite,ot=nt?x.width:E.left,at=0;at<b;at++){var ht=z,ct=y[at];if(ct.visible){var gt=ct.measuredBounds,Nt=ct.margin,Kt=Nt.top+Nt.bottom,Xt=z+E.bottom,ce=gt.height,Ke=Zu(ct,!1);(isNaN(ct.desiredSize.height)&&Ke===Ni||Ke===to)&&(ce=Math.max(x.height-Kt-Xt,0)),Kt=ce+Kt+Xt,Xt=ct.alignment,Xt.Xb()&&(Xt=a.defaultAlignment),Xt.sb()||(Xt=Yo),nt&&(ot-=gt.width+Nt.left+Nt.right),ct.arrange(ot+Xt.offsetX+Nt.left,ht+Xt.offsetY+Nt.top+(x.height*Xt.y-Kt*Xt.y),gt.width,ce),nt||(ot+=gt.width+Nt.left+Nt.right)}}};function Ii(){this.xa="Base"}On(Ii,Fn),Ii.prototype.measure=function(a,y,x,b,E,z){var nt=b.length;x=yi();for(var ot=Ha(a),at=0;at<nt;at++){var ht=b[at];if(ht.visible||ht===ot){var ct=Zu(ht,!1);if(ct!==Ei&&ct!==to)x.push(ht);else{var gt=ht.margin;ct=gt.right+gt.left,gt=gt.top+gt.bottom,ht.measure(y,1/0,z,0),ht=ht.measuredBounds,Ta(E,Math.max(E.width,Math.max(ht.width+ct,0)),E.height+Math.max(ht.height+gt,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++)at=x[a],(at.visible||at===ot)&&(ht=at.margin,nt=ht.right+ht.left,ht=ht.top+ht.bottom,at.measure(y,1/0,z,0),at=at.measuredBounds,ht=Math.max(at.height+ht,0),E.width=Math.max(E.width,Math.max(at.width+nt,0)),E.height+=ht);nr(x)}},Ii.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.left,nt=a.isOpposite,ot=nt?x.height:E.top,at=0;at<b;at++){var ht=z,ct=y[at];if(ct.visible){var gt=ct.measuredBounds,Nt=ct.margin,Kt=Nt.left+Nt.right,Xt=z+E.right,ce=gt.width,Ke=Zu(ct,!1);(isNaN(ct.desiredSize.width)&&Ke===Ni||Ke===jr)&&(ce=Math.max(x.width-Kt-Xt,0)),Kt=ce+Kt+Xt,Xt=ct.alignment,Xt.Xb()&&(Xt=a.defaultAlignment),Xt.sb()||(Xt=Yo),nt&&(ot-=gt.height+Nt.bottom+Nt.top),ct.arrange(ht+Xt.offsetX+Nt.left+(x.width*Xt.x-Kt*Xt.x),ot+Xt.offsetY+Nt.top,ce,gt.height),nt||(ot+=gt.height+Nt.bottom+Nt.top)}}};function er(){this.xa="Base"}On(er,Fn),er.prototype.measure=function(a,y,x,b,E,z,nt){var ot=b.length,at=a.Pb(),ht=at.margin,ct=ht.right+ht.left,gt=ht.top+ht.bottom;at.measure(y,x,z,nt);var Nt=at.measuredBounds;z=Nt.width,nt=Nt.height;var Kt=Math.max(z+ct,0),Xt=Math.max(nt+gt,0),ce=a.isClipping,Ke=ai.allocAt(-ht.left,-ht.top,Kt,Xt),Te=ai.allocAt(0,0,z,nt);Ui(at,Te,!0),z=Te.width,nt=Te.height;for(var $e=!0,rn=Ha(a),ln=0;ln<ot;ln++){var Bn=b[ln];Nt=y;var Gn=x;if(Bn!==at&&(Bn.visible||Bn===rn)){ht=Bn.margin;var lr=ht.left,kr=ht.top;switch(Kt=ht.right+ht.left,Xt=ht.top+ht.bottom,ht=Zu(Bn,!1),ht){case Ni:Nt=z,Gn=nt,kr=lr=Xt=Kt=0;break;case jr:Nt=z,lr=Kt=0;break;case to:Gn=nt,kr=Xt=0}Bn.measure(Nt,Gn,0,0),Nt=Bn.measuredBounds,Kt=Math.max(Nt.width+Kt,0),Xt=Math.max(Nt.height+Xt,0),ht=Bn.alignment,ht.Xb()&&(ht=a.defaultAlignment),ht.sb()||(ht=Yo);var Sr=Bn.alignmentFocus;if(Sr.Xb()&&(Sr=Yo),Gn=null,Bn instanceof qn&&Bn.$e!==""&&(Gn=Bn.fb(Bn.$e),Gn===Bn&&(Gn=null)),lr=Te.x-lr,kr=Te.y-kr,Gn!==null){for(Bn.arrange(0,0,Nt.width,Nt.height),Nt=Gn.actualBounds,Nt=ke.allocAt(Nt.x+(Sr.x*Nt.width-Sr.offsetX),Nt.y+(Sr.y*Nt.height-Sr.offsetY)),Gn=Gn.panel;Gn!==Bn;)Gn.transform.Ga(Nt),Gn=Gn.panel;lr+=ht.x*z+ht.offsetX-Nt.x,kr+=ht.y*nt+ht.offsetY-Nt.y,ke.free(Nt)}else lr+=ht.x*z+ht.offsetX-(Sr.x*Nt.width+Sr.offsetX),kr+=ht.y*nt+ht.offsetY-(Sr.y*Nt.height+Sr.offsetY);$e?($e=!1,E.h(lr,kr,Kt,Xt)):Is(E,lr,kr,Kt,Xt)}}switch($e?E.assign(Ke):ce?E.Uu(Te.x,Te.y,Te.width,Te.height):Is(E,Ke.x,Ke.y,Ke.width,Ke.height),ai.free(Ke),ai.free(Te),ht=at.stretch,ht===Co&&(ht=Zu(at,!1)),ht){case Ei:return;case Ni:if(!isFinite(y)&&!isFinite(x))return;break;case jr:if(!isFinite(y))return;break;case to:if(!isFinite(x))return}for(Nt=at.measuredBounds,z=Nt.width,nt=Nt.height,Kt=Math.max(z+ct,0),Xt=Math.max(nt+gt,0),ht=at.margin,Te=ai.allocAt(-ht.left,-ht.top,Kt,Xt),Ui(at,Te,!0),z=Te.width,nt=Te.height,y=0;y<ot;y++)x=b[y],x===at||!x.visible&&x!==rn||(ht=x.margin,Kt=ht.right+ht.left,Xt=ht.top+ht.bottom,Nt=x.measuredBounds,Kt=Math.max(Nt.width+Kt,0),Xt=Math.max(Nt.height+Xt,0),ct=x.alignment,ct.Xb()&&(ct=a.defaultAlignment),ct.sb()||(ct=Yo),x=x.alignmentFocus,x.Xb()&&(x=Yo),$e?($e=!1,E.h(ct.x*z+ct.offsetX-(x.x*Nt.width+x.offsetX)-ht.left,ct.y*nt+ct.offsetY-(x.y*Nt.height+x.offsetY)-ht.top,Kt,Xt)):Is(E,ct.x*z+ct.offsetX-(x.x*Nt.width+x.offsetX)-ht.left,ct.y*nt+ct.offsetY-(x.y*Nt.height+x.offsetY)-ht.top,Kt,Xt));$e?E.assign(Ke):ce?E.Uu(Te.x,Te.y,Te.width,Te.height):Is(E,Ke.x,Ke.y,Ke.width,Ke.height),ai.free(Te)},er.prototype.arrange=function(a,y,x){var b=y.length,E=a.Pb(),z=E.measuredBounds,nt=z.width,ot=z.height,at=a.padding;z=at.left,at=at.top;var ht=z-x.x,ct=at-x.y;for(E.arrange(ht,ct,nt,ot),nt=ai.allocAt(0,0,nt,ot),Ui(E,nt,!1),ot=0;ot<b;ot++){var gt=y[ot];if(gt!==E){ht=gt.measuredBounds;var Nt=ht.width,Kt=ht.height;ct=gt.alignment,ct.Xb()&&(ct=a.defaultAlignment),ct.sb()||(ct=Yo);var Xt=gt.alignmentFocus;if(Xt.Xb()&&(Xt=Yo),ht=null,gt instanceof qn&>.$e!==""&&(ht=gt.fb(gt.$e),ht===gt&&(ht=null)),ht!==null){var ce=ht.actualBounds;for(Xt=ke.allocAt(ce.x+(Xt.x*ce.width-Xt.offsetX),ce.y+(Xt.y*ce.height-Xt.offsetY)),ht=ht.panel;ht!==gt;)ht.transform.Ga(Xt),ht=ht.panel;ht=ct.x*nt.width+ct.offsetX-Xt.x,ct=ct.y*nt.height+ct.offsetY-Xt.y,ke.free(Xt)}else ht=ct.x*nt.width+ct.offsetX-(Xt.x*Nt+Xt.offsetX),ct=ct.y*nt.height+ct.offsetY-(Xt.y*Kt+Xt.offsetY);ht+=nt.x-x.x,ct+=nt.y-x.y,gt.visible&>.arrange(z+ht,at+ct,Nt,Kt)}}ai.free(nt)};function Ui(a,y,x){var b=null;if(a instanceof qn&&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 Pr(){this.xa="Base"}On(Pr,Fn),Pr.prototype.measure=function(a,y,x,b,E,z,nt){var ot=b.length,at=a.Pb(),ht=at.margin,ct=y,gt=x,Nt=ht.right+ht.left,Kt=ht.top+ht.bottom;at.measure(y,x,z,nt),ht=at.measuredBounds;var Xt=0,ce=null;at instanceof Go&&(ce=at,Xt=ce.strokeWidth*ce.scale);var Ke=Math.max(ht.width+Nt,0);ht=Math.max(ht.height+Kt,0);var Te=Kh(at),$e=Te.x*Ke+Te.offsetX;Te=Te.y*ht+Te.offsetY;var rn=ac(at),ln=rn.x*Ke+rn.offsetX;for(rn=rn.y*ht+rn.offsetY,isFinite(y)&&(ct=Math.max(Math.abs($e-ln)-Xt,0)),isFinite(x)&&(gt=Math.max(Math.abs(Te-rn)-Xt,0)),Xt=Ki.alloc(),Xt.h(0,0),a=Ha(a),rn=0;rn<ot;rn++)Te=b[rn],Te===at||!Te.visible&&Te!==a||(ht=Te.margin,Ke=ht.right+ht.left,$e=ht.top+ht.bottom,Te.measure(ct,gt,0,0),ht=Te.measuredBounds,Ke=Math.max(ht.width+Ke,0),ht=Math.max(ht.height+$e,0),Xt.h(Math.max(Ke,Xt.width),Math.max(ht,Xt.height)));if(ot===1)E.width=Ke,E.height=ht,Ki.free(Xt);else{switch(Te=Kh(at),rn=ac(at),ot=b=0,rn.x!==Te.x&&rn.y!==Te.y&&(b=Xt.width/Math.abs(rn.x-Te.x),ot=Xt.height/Math.abs(rn.y-Te.y)),Ki.free(Xt),Xt=0,ce!==null&&(Xt=ce.strokeWidth*ce.scale,$A(ce)===Nr&&(b=ot=Math.max(b,ot))),b+=Math.abs(Te.offsetX)+Math.abs(rn.offsetX)+Xt,ot+=Math.abs(Te.offsetY)+Math.abs(rn.offsetY)+Xt,ce=at.stretch,ce===Co&&(ce=Zu(at,!1)),ce){case Ei:nt=z=0;break;case Ni:isFinite(y)&&(b=y),isFinite(x)&&(ot=x);break;case jr:isFinite(y)&&(b=y),nt=0;break;case to:z=0,isFinite(x)&&(ot=x)}at.Uj(),at.measure(b,ot,z,nt),E.width=at.measuredBounds.width+Nt,E.height=at.measuredBounds.height+Kt}},Pr.prototype.arrange=function(a,y){var x=y.length,b=a.Pb(),E=b.measuredBounds,z=ai.alloc();z.h(0,0,1,1);var nt=b.margin,ot=nt.left;nt=nt.top;var at=a.padding,ht=at.left;at=at.top,b.arrange(ht+ot,at+nt,E.width,E.height);var ct=Kh(b),gt=ac(b),Nt=ct.y*E.height+ct.offsetY,Kt=gt.x*E.width+gt.offsetX;for(gt=gt.y*E.height+gt.offsetY,z.x=ct.x*E.width+ct.offsetX,z.y=Nt,Is(z,Kt,gt,0,0),z.x+=ot+ht,z.y+=nt+at,E=0;E<x;E++)ot=y[E],ot!==b&&(ht=ot.measuredBounds,nt=ot.margin,at=Math.max(ht.width+nt.right+nt.left,0),ct=Math.max(ht.height+nt.top+nt.bottom,0),Nt=ot.alignment,Nt.Xb()&&(Nt=a.defaultAlignment),Nt.sb()||(Nt=Yo),at=z.width*Nt.x+Nt.offsetX-at*Nt.x+nt.left+z.x,nt=z.height*Nt.y+Nt.offsetY-ct*Nt.y+nt.top+z.y,ot.visible&&(ia(z.x,z.y,z.width,z.height,at,nt,ht.width,ht.height)?ot.arrange(at,nt,ht.width,ht.height):ot.arrange(at,nt,ht.width,ht.height,new ai(z.x,z.y,z.width,z.height))));ai.free(z)};function Mr(){this.xa="Base",this.name="Table"}On(Mr,Fn),Mr.prototype.measure=function(a,y,x,b,E){for(var z=b.length,nt=yi(),ot=yi(),at=0;at<z;at++){var ht=b[at],ct=ht instanceof qn?ht:null;if(ct!==null&&Ch(ct)&&ht.visible){ot.push(ct);for(var gt=ct.O.s,Nt=gt.length,Kt=0;Kt<Nt;Kt++){var Xt=gt[Kt];ct.type===qn.TableRow?Xt.row=ht.row:ct.type===qn.TableColumn&&(Xt.column=ht.column),nt.push(Xt)}}else nt.push(ht)}z=nt.length,z===0&&(a.Fb(0),a.Eb(0));for(var ce=[],Ke=0;Ke<z;Ke++){var Te=nt[Ke];Te.visible&&(Ql(Te,!0),qc(Te,!0),ce[Te.row]||(ce[Te.row]=[]),ce[Te.row][Te.column]||(ce[Te.row][Te.column]=[]),ce[Te.row][Te.column].push(Te))}nr(nt);var $e=yi(),rn=yi(),ln=yi(),Bn={count:0},Gn={count:0},lr=y,kr=x,Sr=a.rowDefs,Wi=a.colDefs,Mi=null;z=Sr.length;for(var Uo=0;Uo<z;Uo++)Mi=Sr[Uo],Mi!==void 0&&(Mi.actual=0);z=Wi.length;for(var Bo=0;Bo<z;Bo++)Mi=Wi[Bo],Mi!==void 0&&(Mi.actual=0);for(var ks=ce.length,pa=0,Fu=0;Fu<ks;Fu++)ce[Fu]&&(pa=Math.max(pa,ce[Fu].length));var Du=Math.min(a.topIndex,ks-1),Nh=Math.min(a.leftIndex,pa-1),Lu=0;ks=ce.length;for(var jf=Ha(a),ru=0;ru<ks;ru++)if(ce[ru]){pa=ce[ru].length;var SA=a.Fb(ru);SA.actual=0;for(var Ih=SA.oc=0;Ih<pa;Ih++)if(ce[ru][Ih]){var Uf=a.Eb(Ih);$e[Ih]===void 0&&(Uf.actual=0,Uf.oc=0,$e[Ih]=!0);for(var rd=ce[ru][Ih],Od=rd.length,Qc=0;Qc<Od;Qc++){var Sc=rd[Qc];if(Sc.visible||Sc===jf){var fg=1<Sc.rowSpan||1<Sc.columnSpan;fg&&(ru<Du||Ih<Nh||rn.push(Sc));var CA=Sc.margin,t0=CA.right+CA.left,zc=CA.top+CA.bottom,kh=aa(Sc,SA,Uf,!1),V0=Sc.desiredSize,dp=!isNaN(V0.height),DA=!isNaN(V0.width)&&dp;if(fg||kh===Ei||DA||ru<Du||Ih<Nh||(Bn[Ih]!==void 0||kh!==Ni&&kh!==jr||(Bn[Ih]=-1,Bn.count++),Gn[ru]!==void 0||kh!==Ni&&kh!==to||(Gn[ru]=-1,Gn.count++),ln.push(Sc)),Sc.measure(1/0,1/0,0,0),!(ru<Du||Ih<Nh)){var Cc=Sc.measuredBounds,jg=Math.max(Cc.width+t0,0),Kc=Math.max(Cc.height+zc,0);if(Sc.rowSpan===1&&(kh===Ei||kh===jr)){Mi=a.Fb(ru);var gg=Mi.Wc();Lu=Math.max(Kc-Mi.actual,0),Lu+gg>kr&&(Lu=Math.max(kr-gg,0));var av=Mi.oa===0;Mi.oc=Mi.oc+Lu,Mi.actual=Mi.oa+Lu,kr=Math.max(kr-(Lu+(av?gg:0)),0)}if(Sc.columnSpan===1&&(kh===Ei||kh===to)){Mi=a.Eb(Ih);var Z0=Mi.Wc();Lu=Math.max(jg-Mi.actual,0),Lu+Z0>lr&&(Lu=Math.max(lr-Z0,0));var Py=Mi.oa===0;Mi.oc=Mi.oc+Lu,Mi.actual=Mi.oa+Lu,lr=Math.max(lr-(Lu+(Py?Z0:0)),0)}fg&&Sc.Uj()}}}}}nr($e);var of=0,Af=0;z=a.columnCount;for(var Ap=0;Ap<z;Ap++){var pg=Wi[Ap];pg!==void 0&&(of+=isNaN(pg.Hc)?pg.oc:pg.Hc,pg.oc!==0&&(of+=pg.Wc()))}z=a.rowCount;for(var e0=0;e0<z;e0++){var mg=Sr[e0];mg!==void 0&&(Af+=isNaN(mg.Hc)?mg.oc:mg.Hc,mg.oc!==0&&(Af+=mg.Wc()))}lr=Math.max(y-of,0);var sf=kr=Math.max(x-Af,0),Rf=lr;z=ln.length;for(var Bc=0;Bc<z;Bc++){var jA=ln[Bc],lv=a.Fb(jA.row),ff=a.Eb(jA.column),n0=jA.measuredBounds,BA=jA.margin,Ug=BA.right+BA.left,UA=BA.top+BA.bottom;Bn[jA.column]=ff.oc===0&&Bn[jA.column]!==void 0?Math.max(n0.width+Ug,Bn[jA.column]):null,Gn[jA.row]=lv.oc===0&&Gn[jA.row]!==void 0?Math.max(n0.height+UA,Gn[jA.row]):null}var fp=0,i0=0,rA;for(rA in Gn)rA!=="count"&&(fp+=Gn[rA]);for(rA in Bn)rA!=="count"&&(i0+=Bn[rA]);for(var $u=Ki.alloc(),Y0=0;Y0<z;Y0++){var Jh=ln[Y0];if(Jh.visible||Jh===jf){var ou=a.Fb(Jh.row),qh=a.Eb(Jh.column),gf=0;isFinite(qh.width)?gf=qh.width:(isFinite(lr)&&Bn[Jh.column]!==null?i0===0?gf=qh.actual+lr:gf=Bn[Jh.column]/i0*Rf:Bn[Jh.column]!==null?gf=lr:gf=qh.actual||lr,gf=Math.max(0,gf-qh.Wc()));var _f=0;switch(isFinite(ou.height)?_f=ou.height:(isFinite(kr)&&Gn[Jh.row]!==null?fp===0?_f=ou.actual+kr:_f=Gn[Jh.row]/fp*sf:Gn[Jh.row]!==null?_f=kr:_f=ou.actual||kr,_f=Math.max(0,_f-ou.Wc())),$u.h(Math.max(qh.minimum,Math.min(gf,qh.maximum)),Math.max(ou.minimum,Math.min(_f,ou.maximum))),kh=aa(Jh,ou,qh,!1),kh){case jr:$u.height=Math.max($u.height,ou.actual+kr);break;case to:$u.width=Math.max($u.width,qh.actual+lr)}var Rg=Jh.margin,by=Rg.right+Rg.left,uv=Rg.top+Rg.bottom;Jh.Uj(),Jh.measure($u.width,$u.height,qh.minimum,ou.minimum);var r0=Jh.measuredBounds,_g=Math.max(r0.width+by,0),gp=Math.max(r0.height+uv,0);isFinite(lr)&&(_g=Math.min(_g,$u.width)),isFinite(kr)&&(gp=Math.min(gp,$u.height));var Pc=0;Pc=ou.actual,ou.actual=Math.max(ou.actual,gp),ou.oc=Math.max(ou.oc,gp),Lu=ou.actual-Pc,kr=Math.max(kr-Lu,0),Gn[Jh.row]===null&&(sf=Math.max(sf-Lu,0)),Pc=qh.actual,qh.actual=Math.max(qh.actual,_g),qh.oc=Math.max(qh.oc,_g),Lu=qh.actual-Pc,lr=Math.max(lr-Lu,0),Bn[Jh.column]===null&&(Rf=Math.max(Rf-Lu,0))}}nr(ln);var pf=Ki.alloc(),PA=yi(),wd=yi();if(z=rn.length,z!==0){for(var vg=0;vg<ks;vg++)if(ce[vg]){pa=ce[vg].length;var o0=a.Fb(vg);PA[vg]=o0.actual;for(var yg=0;yg<pa;yg++)if(ce[vg][yg]){var hv=a.Eb(yg);wd[yg]=hv.actual}}}for(var s0=0;s0<z;s0++){var Gl=rn[s0];if(Gl.visible||Gl===jf){var oA=a.Fb(Gl.row),Dd=a.Eb(Gl.column);switch($u.h(Math.max(Dd.minimum,Math.min(y,Dd.maximum)),Math.max(oA.minimum,Math.min(x,oA.maximum))),kh=aa(Gl,oA,Dd,!1),kh){case Ni:wd[Dd.index]!==0&&($u.width=Math.min($u.width,wd[Dd.index])),PA[oA.index]!==0&&($u.height=Math.min($u.height,PA[oA.index]));break;case jr:wd[Dd.index]!==0&&($u.width=Math.min($u.width,wd[Dd.index]));break;case to:PA[oA.index]!==0&&($u.height=Math.min($u.height,PA[oA.index]))}isFinite(Dd.width)&&($u.width=Dd.width),isFinite(oA.height)&&($u.height=oA.height),pf.h(0,0);for(var cv=Dd.minimum,Gc=oA.minimum,Hf=1;Hf<Gl.rowSpan&&!(Gl.row+Hf>=a.rowCount);Hf++)Mi=a.Fb(Gl.row+Hf),Lu=0,Lu=kh===Ni||kh===to?Math.max(Mi.minimum,PA[Gl.row+Hf]===0?Mi.maximum:Math.min(PA[Gl.row+Hf],Mi.maximum)):Math.max(Mi.minimum,isNaN(Mi.Hc)?Mi.maximum:Math.min(Mi.Hc,Mi.maximum)),pf.height+=Lu,Gc+=Mi.minimum;for(var jd=1;jd<Gl.columnSpan&&!(Gl.column+jd>=a.columnCount);jd++)Mi=a.Eb(Gl.column+jd),Lu=0,Lu=kh===Ni||kh===jr?Math.max(Mi.minimum,wd[Gl.column+jd]===0?Mi.maximum:Math.min(wd[Gl.column+jd],Mi.maximum)):Math.max(Mi.minimum,isNaN(Mi.Hc)?Mi.maximum:Math.min(Mi.Hc,Mi.maximum)),pf.width+=Lu,cv+=Mi.minimum;$u.width+=pf.width,$u.height+=pf.height;var a0=Gl.margin,wg=a0.right+a0.left,$0=a0.top+a0.bottom;Gl.measure($u.width,$u.height,cv,Gc);for(var l0=Gl.measuredBounds,RA=Math.max(l0.width+wg,0),Hg=Math.max(l0.height+$0,0),xg=0,u0=0;u0<Gl.rowSpan&&!(Gl.row+u0>=a.rowCount);u0++)Mi=a.Fb(Gl.row+u0),xg+=Mi.total||0;if(xg<Hg){var Qf=Hg-xg,af=Hg-xg;if(Gl.spanAllocation!==null)for(var zf=Gl.spanAllocation,mf=0;mf<Gl.rowSpan&&!(0>=Qf)&&!(Gl.row+mf>=a.rowCount);mf++){Mi=a.Fb(Gl.row+mf);var Kf=Mi.oa||0,Qg=zf(Gl,Mi,af);Mi.actual=Math.min(Mi.maximum,Kf+Qg),Mi.oa!==Kf&&(Qf-=Mi.oa-Kf)}for(;0<Qf;){var bA=Mi.oa||0;if(isNaN(Mi.height)&&Mi.maximum>bA&&(Mi.actual=Math.min(Mi.maximum,bA+Qf),Mi.oa!==bA&&(Qf-=Mi.oa-bA)),Mi.index===0)break;Mi=a.Fb(Mi.index-1)}}for(var pp=0,Gf=0;Gf<Gl.columnSpan&&!(Gl.column+Gf>=a.columnCount);Gf++)Mi=a.Eb(Gl.column+Gf),pp+=Mi.total||0;if(pp<RA){var mp=RA-pp,Ey=RA-pp;if(Gl.spanAllocation!==null)for(var vf=Gl.spanAllocation,zg=0;zg<Gl.columnSpan&&!(0>=mp)&&!(Gl.column+zg>=a.columnCount);zg++){Mi=a.Eb(Gl.column+zg);var X0=Mi.oa||0,Fy=vf(Gl,Mi,Ey);Mi.actual=Math.min(Mi.maximum,X0+Fy),Mi.oa!==X0&&(mp-=Mi.oa-X0)}for(;0<mp;){var dv=Mi.oa||0;if(isNaN(Mi.width)&&Mi.maximum>dv&&(Mi.actual=Math.min(Mi.maximum,dv+mp),Mi.oa!==dv&&(mp-=Mi.oa-dv)),Mi.index===0)break;Mi=a.Eb(Mi.index-1)}}}}nr(rn),Ki.free(pf),Ki.free($u),PA!==void 0&&nr(PA),wd!==void 0&&nr(wd);var vp=0,yp=0,Av=a.desiredSize,xw=a.maxSize;kh=Zu(a,!0);var J0=Af=of=0,q0=0;z=a.columnCount;for(var fv=0;fv<z;fv++)Wi[fv]!==void 0&&(Mi=a.Eb(fv),isFinite(Mi.width)?(J0+=Mi.width,J0+=Mi.Wc()):Jf(Mi)===Sf?(J0+=Mi.oa,J0+=Mi.Wc()):Mi.oa!==0&&(of+=Mi.oa,of+=Mi.Wc()));isFinite(Av.width)?vp=Math.min(Av.width,xw.width):vp=kh!==Ei&&isFinite(y)?y:of,vp=Math.max(vp,a.minSize.width),vp=Math.max(vp-J0,0);for(var r2=of===0?1:Math.max(vp/of,1),gv=0;gv<z;gv++)Wi[gv]!==void 0&&(Mi=a.Eb(gv),isFinite(Mi.width)||Jf(Mi)===Sf||(Mi.actual=Mi.oa*r2),Mi.position=E.width,Mi.oa!==0&&(E.width+=Mi.oa,E.width+=Mi.Wc()));z=a.rowCount;for(var pv=0;pv<z;pv++)Sr[pv]!==void 0&&(Mi=a.Fb(pv),isFinite(Mi.height)?(q0+=Mi.height,q0+=Mi.Wc()):Jf(Mi)===Sf?(q0+=Mi.oa,q0+=Mi.Wc()):Mi.oa!==0&&(Af+=Mi.oa,Af+=Mi.Wc()));isFinite(Av.height)?yp=Math.min(Av.height,xw.height):yp=kh!==Ei&&isFinite(x)?x:Af,yp=Math.max(yp,a.minSize.height),yp=Math.max(yp-q0,0);for(var o2=Af===0?1:Math.max(yp/Af,1),mv=0;mv<z;mv++)Sr[mv]!==void 0&&(Mi=a.Fb(mv),isFinite(Mi.height)||Jf(Mi)===Sf||(Mi.actual=Mi.oa*o2),Mi.position=E.height,Mi.oa!==0&&(E.height+=Mi.oa,E.height+=Mi.Wc()));z=ot.length;for(var Ly=0;Ly<z;Ly++){var tm=ot[Ly],My=0,Ny=0;tm.type===qn.TableRow?(My=E.width,Mi=a.Fb(tm.row),Ny=Mi.actual):(Mi=a.Eb(tm.column),My=Mi.actual,Ny=E.height),tm.measuredBounds.h(0,0,My,Ny),Ql(tm,!1)}nr(ot),a.inRowsCols=ce},Mr.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding,z=E.left;E=E.top;var nt=a.inRowsCols;if(nt!==null){for(var ot,at,ht=nt.length,ct=0,gt=0;gt<ht;gt++)nt[gt]&&(ct=Math.max(ct,nt[gt].length));at=a.rowDefs,ot=a.colDefs;var Nt=gt=0,Kt=Math.min(a.topIndex,ht-1);if(0<at.length){for(;Kt!==ht&&(at[Kt]===void 0||at[Kt].oa===0);)Kt++;Kt=Math.max(Math.min(Kt,ht-1),0),gt=-at[Kt].position}var Xt=Math.min(a.leftIndex,ct-1);if(0<ot.length){for(;Xt!==ct&&(ot[Xt]===void 0||ot[Xt].oa===0);)Xt++;Xt=Math.max(Math.min(Xt,ct-1),0),Nt=-ot[Xt].position}for(var ce=0,Ke=0;ce!==ht&&at[ce]===void 0;)ce++;for(;Ke!==ht&&ot[Ke]===void 0;)Ke++;ct=a.part,a.Fb(ce),a.Eb(Ke);for(var Te=0;Te<y.length;Te++){var $e=y[Te];if($e instanceof qn&&$e.visible&&Ch($e)){if($e.type===qn.TableRow){ot=a.Fb($e.row);var rn=a.Eb(Ke)}else ot=a.Fb(ce),rn=a.Eb($e.column);at=ot.position+gt+E,ot.oa!==0&&(at+=ot.Io(Math.max(ce,Kt))),ot=rn.position+Nt+z,rn.oa!==0&&(ot+=rn.Io(Math.max(Ke,Xt))),rn=$e.measuredBounds,$e.Uk(),$e.actualBounds.ka();var ln=$e.actualBounds,Bn=ai.allocAt(ln.x,ln.y,ln.width,ln.height);ln.x=$e.type===qn.TableRow?z:ot,ln.y=$e.type===qn.TableColumn?E:at,ln.width=rn.width,ln.height=rn.height,$e.actualBounds.freeze(),qc($e,!1),Th(Bn,ln)||ct===null||(ct.oh(),$e.Pn(ct)),ai.free(Bn)}}for(Te=Ki.alloc(),$e=0;$e<ht;$e++)if(nt[$e]){for(ct=nt[$e].length,rn=a.Fb($e),at=rn.position+gt+E,rn.oa!==0&&(at+=rn.Io(Math.max(ce,Kt))),ln=0;ln<ct;ln++)if(nt[$e][ln]){Bn=a.Eb(ln),ot=Bn.position+Nt+z,Bn.oa!==0&&(ot+=Bn.Io(Math.max(Ke,Xt)));for(var Gn=nt[$e][ln],lr=Gn.length,kr=0;kr<lr;kr++){var Sr=Gn[kr],Wi=Sr.measuredBounds;Te.h(0,0);for(var Mi=1;Mi<Sr.rowSpan&&!($e+Mi>=a.rowCount);Mi++){var Uo=a.Fb($e+Mi);Uo.oa!==0&&(Te.height+=Uo.total)}for(Mi=1;Mi<Sr.columnSpan&&!(ln+Mi>=a.columnCount);Mi++)Uo=a.Eb(ln+Mi),Uo.oa!==0&&(Te.width+=Uo.total);var Bo=Bn.oa+Te.width,ks=rn.oa+Te.height;Mi=ot,Uo=at;var pa=Bo,Fu=ks,Du=ot,Nh=at,Lu=Bo,jf=ks;ot+Bo>x.width&&(Lu=Math.max(x.width-ot,0)),at+ks>x.height&&(jf=Math.max(x.height-at,0));var ru=Sr.alignment;if(ru.Xb()){ru=a.defaultAlignment,ru.sb()||(ru=Yo);var SA=ru.x,Ih=ru.y,Uf=ru.offsetX;ru=ru.offsetY;var rd=Bn.alignment,Od=rn.alignment;rd.sb()&&(SA=rd.x,Uf=rd.offsetX),Od.sb()&&(Ih=Od.y,ru=Od.offsetY)}else SA=ru.x,Ih=ru.y,Uf=ru.offsetX,ru=ru.offsetY;(isNaN(SA)||isNaN(Ih))&&(Ih=SA=.5,ru=Uf=0),rd=Wi.width,Od=Wi.height;var Qc=Sr.margin,Sc=Qc.left+Qc.right,fg=Qc.top+Qc.bottom,CA=aa(Sr,rn,Bn,!1);!isNaN(Sr.desiredSize.width)||CA!==Ni&&CA!==jr||(rd=Math.max(Bo-Sc,0)),!isNaN(Sr.desiredSize.height)||CA!==Ni&&CA!==to||(Od=Math.max(ks-fg,0)),Bo=Sr.maxSize,ks=Sr.minSize,rd=Math.min(Bo.width,rd),Od=Math.min(Bo.height,Od),rd=Math.max(ks.width,rd),Od=Math.max(ks.height,Od),Bo=Od+fg,Mi+=pa*SA-(rd+Sc)*SA+Uf+Qc.left,Uo+=Fu*Ih-Bo*Ih+ru+Qc.top,Sr.visible&&(ia(Du,Nh,Lu,jf,Mi,Uo,Wi.width,Wi.height)?Sr.arrange(Mi,Uo,rd,Od):Sr.arrange(Mi,Uo,rd,Od,new ai(Du,Nh,Lu,jf)))}}}for(Ki.free(Te),a=0;a<b;a++)x=y[a],z=x instanceof qn?x:null,z!==null&&Ch(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function ji(){this.xa="Base"}On(ji,Fn),ji.prototype.measure=function(){},ji.prototype.arrange=function(){};function Gi(){this.xa="Base"}On(Gi,Fn),Gi.prototype.measure=function(){},Gi.prototype.arrange=function(){};function Dr(){this.xa="Base"}On(Dr,Fn),Dr.prototype.measure=function(a,y,x,b,E,z,nt){1<b.length&&sn("Viewbox Panel cannot contain more than one GraphObject."),b=b[0],b.Ca=1,b.Uj(),b.measure(1/0,1/0,z,nt);var ot=b.measuredBounds,at=b.margin,ht=at.right+at.left;if(at=at.top+at.bottom,isFinite(y)||isFinite(x)){var ct=b.scale,gt=ot.width;ot=ot.height;var Nt=Math.max(y-ht,0),Kt=Math.max(x-at,0),Xt=1;a.viewboxStretch===Nr?gt!==0&&ot!==0&&(Xt=Math.min(Nt/gt,Kt/ot)):gt!==0&&ot!==0&&(Xt=Math.max(Nt/gt,Kt/ot)),Xt===0&&(Xt=1e-4),b.Ca*=Xt,ct!==b.scale&&(Ql(b,!0),b.measure(1/0,1/0,z,nt))}ot=b.measuredBounds,E.width=isFinite(y)?y:Math.max(ot.width+ht,0),E.height=isFinite(x)?x:Math.max(ot.height+at,0)},Dr.prototype.arrange=function(a,y,x){y=y[0];var b=y.measuredBounds,E=y.margin,z=Math.max(b.width+(E.right+E.left),0);E=Math.max(b.height+(E.top+E.bottom),0);var nt=y.alignment;nt.Xb()&&(nt=a.defaultAlignment),nt.sb()||(nt=Yo),y.arrange(x.width*nt.x-z*nt.x+nt.offsetX,x.height*nt.y-E*nt.y+nt.offsetY,b.width,b.height)};function eo(){this.xa="Base"}On(eo,Fn),eo.prototype.measure=function(){},eo.prototype.arrange=function(){},eo.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 z=a.naturalBounds,nt=a.actualBounds,ot=z.width,at=z.height,ht=Math.ceil(ot/E),ct=Math.ceil(at/b),gt=a.gridOrigin,Nt=gt.x;gt=gt.y,y.save(),y.beginPath(),y.rect(0,0,ot,at),y.clip(),y.Se();for(var Kt=[],Xt=a.O.s,ce=Xt.length,Ke=0;Ke<ce;Ke++){var Te=Xt[Ke],$e=[];if(Kt.push($e),Te.visible){var rn=Te.interval;if(!(0>rn)){Te=zl(Te.figure);for(var ln=0;ln<ce;ln++)if(ln!==Ke){var Bn=Xt[ln];Bn.visible&&zl(Bn.figure)===Te&&(Bn=Bn.interval,Bn>rn&&$e.push(Bn))}}}}for(Xt=a.O.s,ce=Xt.length,Ke=0;Ke<ce;Ke++){var Gn=Xt[Ke];if(Gn.visible&&($e=Gn.interval||1,Te=Math.abs($e),!(2>E*Te*x))){if(rn=Gn.segmentIndex,(!isFinite(rn)||isNaN(rn))&&(rn=0),0>rn&&(rn=Te-Math.min(-rn,Te)),rn=Math.round(rn%Te),Te=Gn.opacity,ln=1,Te!==1){if(Te===0)continue;ln=y.globalAlpha,y.globalAlpha=ln*Te}Bn=Kt[Ke];var lr=!1,kr=Gn.strokeDashArray;if(kr!==null&&(lr=!0,y.js(kr,Gn.strokeDashOffset)),Gn.figure==="LineV"&&Gn.stroke!==null&&0<Gn.strokeWidth){for(y.lineWidth=Gn.strokeWidth,Ca(a,y,Gn.stroke,!1,!1,z,nt),y.beginPath(),kr=Gn=Math.floor((Nt-E)/E);kr<=Gn+ht;kr++){var Sr=kr*E+Nt;0<=Sr&&Sr<=ot&&ro(kr,$e,rn,Bn)&&(y.moveTo(Sr,0),y.lineTo(Sr,at))}y.stroke(),y.Se()}else if(Gn.figure==="LineH"&&Gn.stroke!==null&&0<Gn.strokeWidth){for(y.lineWidth=Gn.strokeWidth,Ca(a,y,Gn.stroke,!1,!1,z,nt),y.beginPath(),kr=Gn=Math.floor((gt-b)/b);kr<=Gn+ct;kr++)Sr=kr*b+gt,0<=Sr&&Sr<=at&&ro(kr,$e,rn,Bn)&&(y.moveTo(0,Sr),y.lineTo(ot,Sr));y.stroke(),y.Se()}else if(Gn.figure==="BarV"&&Gn.fill!==null)for(Ca(a,y,Gn.fill,!0,!1,z,nt),Gn=Gn.width,isNaN(Gn)&&(Gn=E),Sr=kr=Math.floor((Nt-E)/E);Sr<=kr+ht;Sr++){var Wi=Sr*E+Nt;0<=Wi+Gn&&Wi<=ot&&ro(Sr,$e,rn,Bn)&&y.fillRect(Wi,0,Gn,at)}else if(Gn.figure==="BarH"&&Gn.fill!==null)for(Ca(a,y,Gn.fill,!0,!1,z,nt),Gn=Gn.height,isNaN(Gn)&&(Gn=b),Sr=kr=Math.floor((gt-b)/b);Sr<=kr+ct;Sr++)Wi=Sr*b+gt,0<=Wi+Gn&&Wi<=at&&ro(Sr,$e,rn,Bn)&&y.fillRect(0,Wi,ot,Gn);lr&&y.fs(),Te!==1&&(y.globalAlpha=ln)}}y.restore(),y.Vc(!1)};function ro(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 es(){this.xa="Base"}On(es,Fn),es.prototype.measure=function(a,y,x,b,E){var z=b.length;if(a instanceof bs||a instanceof Vi){var nt=null,ot=null;if(a instanceof Vi&&(nt=a),a instanceof bs&&(ot=a,nt=ot.adornedPart,a.j===null&&(a.j=[])),nt instanceof Vi){var at=nt;if(z===0)Ta(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var ht=a instanceof bs?null:nt.path;y=nt.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var ct=at.points,gt=nt.pointsCount;ot!==null?ot.Ul(!1):nt!==null&&nt.Ul(!1),ot=y.width;var Nt=y.height,Kt=a.j;if(Kt.length=0,ht!==null){Wo(a,ot,Nt,ht);var Xt=ht.measuredBounds;x.ed(Xt),Kt.push(Xt)}Xt=Ko.alloc();for(var ce=ke.alloc(),Ke=ke.alloc(),Te=0;Te<z;Te++){var $e=b[Te];if($e!==ht)if($e.isPanelMain&&$e instanceof Go){Wo(a,ot,Nt,$e);var rn=$e.measuredBounds;x.ed(rn),Kt.push(rn)}else if(2>gt)$e.measure(1/0,1/0,0,0),rn=$e.measuredBounds,x.ed(rn),Kt.push(rn);else{var ln=$e.segmentIndex,Bn=$e.segmentFraction,Gn=$e.alignmentFocus;Gn.Mc()&&(Gn=Yo);var lr=$e.segmentOrientation,kr=$e.segmentOffset;if(isNaN(ln)){var Sr=at.ua;rn=yi(),Sr.Qu(Bn,rn);var Wi=ke.allocAt(rn[0],rn[1]);if(Wi.add(at.i(0)),Sr.type===$i.j?Wi.offset(-Sr.startX,-Sr.startY):(Sr=Sr.figures.first(),Sr!==null&&Wi.offset(-Sr.startX,-Sr.startY)),Sr=rn[2],lr!==Vh){var Mi=at.computeAngle($e,lr,Sr);$e.Kb=Mi}Mi=Wi.x-y.x;var Uo=Wi.y-y.y;ke.free(Wi),nr(rn)}else if(ln<-gt||ln>=gt)rn=ke.alloc(),at.vg(),at.computeMidPoint(rn),Sr=at.midAngle,lr!==Vh&&(Mi=at.computeAngle($e,lr,Sr),$e.Kb=Mi),Mi=rn.x-y.x,Uo=rn.y-y.y,ke.free(rn);else{if(Mi=0,0<=ln?(Uo=ct.M(ln),rn=ln<gt-1?ct.M(ln+1):Uo):(Mi=gt+ln,Uo=ct.M(Mi),rn=0<Mi?ct.M(Mi-1):Uo),Uo.Xa(rn)){0<=ln?(Sr=0<ln?ct.M(ln-1):Uo,Mi=ln<gt-2?ct.M(ln+2):rn):(Sr=Mi<gt-1?ct.M(Mi+1):Uo,Mi=1<Mi?ct.M(Mi-2):rn),Wi=Sr.Bf(Uo);var Bo=rn.Bf(Mi);Sr=Wi>Bo+10?0<=ln?Sr.ab(Uo):Uo.ab(Sr):Bo>Wi+10?0<=ln?rn.ab(Mi):Mi.ab(rn):0<=ln?Sr.ab(Mi):Mi.ab(Sr)}else Sr=0<=ln?Uo.ab(rn):rn.ab(Uo);lr!==Vh&&(Mi=at.computeAngle($e,lr,Sr),$e.Kb=Mi),Mi=Uo.x+(rn.x-Uo.x)*Bn-y.x,Uo=Uo.y+(rn.y-Uo.y)*Bn-y.y}$e.measure(1/0,1/0,0,0),rn=$e.measuredBounds,Wi=$e.naturalBounds;var ks=0;$e instanceof Go&&(ks=$e.strokeWidth),Bo=Wi.width+ks;var pa=Wi.height+ks;Xt.reset(),Xt.translate(-rn.x,-rn.y),Xt.scale($e.scale,$e.scale),Xt.rotate(lr===Vh?$e.angle:Sr,Bo/2,pa/2),lr!==w0&&lr!==S0||Xt.rotate(90,Bo/2,pa/2),lr!==x0&&lr!==C0||Xt.rotate(-90,Bo/2,pa/2),lr===ym&&(45<Sr&&135>Sr||225<Sr&&315>Sr)&&Xt.rotate(-Sr,Bo/2,pa/2),Wi=new ai(0,0,Bo,pa),ce.xi(Wi,Gn),Xt.Ga(ce),Gn=-ce.x+ks/2*$e.scale,$e=-ce.y+ks/2*$e.scale,Ke.assign(kr),ks=isNaN(kr.x);var Fu=isNaN(kr.y);if(ks||Fu){Bo=Bo/2+3,pa=pa/2+3;var Du=45<=Sr&&135>=Sr,Nh=225<=Sr&&315>=Sr;lr===Vh&&(Du||Nh)?(Ke.x=Fu?Bo:kr.y,Ke.y=ks?pa:kr.x,Du?0<=ln||isNaN(ln)&&.5>Bn||!ks||(Ke.y=-pa):Nh&&((0<=ln||isNaN(ln)&&.5>Bn)&&ks&&(Ke.y=-pa),Fu&&(Ke.x=-Bo))):(ks&&(Ke.x=0<=ln||isNaN(ln)&&.5>Bn?Bo:-Bo),Fu&&(Ke.y=-pa),Ke.rotate(Sr))}else Ke.rotate(Sr);Mi+=Ke.x,Uo+=Ke.y,Wi.set(rn),Wi.h(Mi+Gn,Uo+$e,rn.width,rn.height),Kt.push(Wi),x.ed(Wi)}}if(nt!==null)for(b=nt.labelNodes;b.next();)b.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),Ta(E,x.width||0,x.height||0),Ko.free(Xt),ke.free(ce),ke.free(Ke)}}}},es.prototype.arrange=function(a,y){var x=y.length;if(a instanceof bs||a instanceof Vi){var b=a,E=null;a instanceof bs&&(E=a,b=E.adornedPart);var z=a instanceof bs?null:b.path,nt=a.j;if(nt.length!==0){var ot=0;if(z!==null&&ot<nt.length){var at=nt[ot];ot++,z.arrange(at.x-a.jg.x,at.y-a.jg.y,at.width,at.height)}for(at=0;at<x;at++){var ht=y[at];if(ht!==z&&ot<nt.length){var ct=nt[ot];ot++,ht.arrange(ct.x-a.jg.x,ct.y-a.jg.y,ct.width,ct.height)}}}if(y=b.points,x=y.count,2<=x&&a instanceof Vi)for(z=a.labelNodes;z.next();){var gt=a;nt=z.value,ot=nt.segmentIndex,at=nt.segmentFraction;var Nt=nt.alignmentFocus;if(ht=nt.segmentOrientation,ct=nt.segmentOffset,isNaN(ot)){var Kt=gt.ua,Xt=yi();Kt.Qu(at,Xt);var ce=ke.allocAt(Xt[0],Xt[1]);ce.add(gt.i(0)),Kt.type===$i.j||(Kt=Kt.figures.first()),ce.offset(-Kt.startX,-Kt.startY),Kt=Xt[2],ht!==Vh&&(gt=gt.computeAngle(nt,ht,Kt),nt.angle=gt),gt=ce.x;var Ke=ce.y;ke.free(ce),nr(Xt)}else if(ot<-x||ot>=x)Xt=ke.alloc(),Kt=gt,Ke=Xt,Kt.vg(),Kt.computeMidPoint(Ke),Kt=gt.midAngle,ht!==Vh&&(gt=gt.computeAngle(nt,ht,Kt),nt.angle=gt),gt=Xt.x,Ke=Xt.y,ke.free(Xt);else{if(ce=0,0<=ot?(Xt=y.s[ot],Ke=ot<x-1?y.s[ot+1]:Xt):(ce=x+ot,Xt=y.s[ce],Ke=0<ce?y.s[ce-1]:Xt),Xt.Xa(Ke)){0<=ot?(Kt=0<ot?y.s[ot-1]:Xt,ce=ot<x-2?y.s[ot+2]:Ke):(Kt=ce<x-1?y.s[ce+1]:Xt,ce=1<ce?y.s[ce-2]:Ke);var Te=Kt.Bf(Xt),$e=Ke.Bf(ce);Kt=Te>$e+10?0<=ot?Kt.ab(Xt):Xt.ab(Kt):$e>Te+10?0<=ot?Ke.ab(ce):ce.ab(Ke):0<=ot?Kt.ab(ce):ce.ab(Kt)}else Kt=0<=ot?Xt.ab(Ke):Ke.ab(Xt);ht!==Vh&&(gt=gt.computeAngle(nt,ht,Kt),nt.angle=gt),gt=Xt.x+(Ke.x-Xt.x)*at,Ke=Xt.y+(Ke.y-Xt.y)*at}if(Nt.ys())nt.location=new ke(gt,Ke);else{Nt.Mc()&&(Nt=Yo),Xt=Ko.alloc(),Xt.reset(),Xt.scale(nt.scale,nt.scale),Xt.rotate(nt.angle,0,0);var rn=nt.naturalBounds;ce=ai.allocAt(0,0,rn.width,rn.height),Te=ke.alloc(),Te.xi(ce,Nt),Xt.Ga(Te),Nt=-Te.x,$e=-Te.y;var ln=rn.width,Bn=rn.height;rn=ke.alloc(),rn.assign(ct);var Gn=isNaN(ct.x),lr=isNaN(ct.y);if(Gn||lr){ln=ln/2+3,Bn=Bn/2+3;var kr=45<=Kt&&135>=Kt,Sr=225<=Kt&&315>=Kt;ht===Vh&&(kr||Sr)?(rn.x=lr?ln:ct.y,rn.y=Gn?Bn:ct.x,kr?0<=ot||isNaN(ot)&&.5>at||!Gn||(rn.y=-Bn):Sr&&((0<=ot||isNaN(ot)&&.5>at)&&Gn&&(rn.y=-Bn),lr&&(rn.x=-ln))):(Gn&&(rn.x=0<=ot||isNaN(ot)&&.5>at?ln:-ln),lr&&(rn.y=-Bn),rn.rotate(Kt))}else rn.rotate(Kt);gt+=rn.x,Ke+=rn.y,Xt.pp(ce),Nt+=ce.x,$e+=ce.y,ot=ke.allocAt(gt+Nt,Ke+$e),nt.move(ot),ke.free(ot),ke.free(rn),ke.free(Te),ai.free(ce),Ko.free(Xt)}}E!==null?E.Ul(!1):b.Ul(!1),b=Ry(a),a.location.h(a.position.x+b.x,a.position.y+b.y),ke.free(b)}};function Wo(a,y,x,b){if(xh(b)!==!1){var E=b.strokeWidth;E===0&&a instanceof bs&&a.type===qn.Link&&a.adornedObject instanceof Go&&(E=a.adornedObject.strokeWidth),E*=b.Ca,a instanceof Vi&&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 bs&&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),Ql(b,!1)}}function Ks(){this.xa="Base"}On(Ks,Fn),Ks.prototype.measure=function(a,y,x,b,E,z,nt){var ot=a.Pb();a.graduatedBounds=[];var at=ot.margin,ht=at.right+at.left,ct=at.top+at.bottom;ot.measure(y,x,z,nt);var gt=ot.measuredBounds,Nt=new ai(-at.left,-at.top,Math.max(gt.width+ht,0),Math.max(gt.height+ct,0));a.graduatedBounds.push(Nt),E.assign(Nt);for(var Kt=ot.geometry,Xt=ot.strokeWidth,ce=Kt.flattenedSegments,Ke=Kt.flattenedLengths,Te=Kt.flattenedTotalLength,$e=ce.length,rn=0,ln=0,Bn=yi(),Gn=0;Gn<$e;Gn++){var lr=ce[Gn],kr=[];ln=rn=0;for(var Sr=lr.length,Wi=0;Wi<Sr;Wi+=2){var Mi=lr[Wi],Uo=lr[Wi+1];if(Wi!==0){var Bo=180*Math.atan2(Uo-ln,Mi-rn)/Math.PI;0>Bo&&(Bo+=360),kr.push(Bo)}rn=Mi,ln=Uo}Bn.push(kr)}if(a.graduatedIntervals===null){for(var ks=[],pa=a.O.s,Fu=pa.length,Du=0;Du<Fu;Du++){var Nh=pa[Du],Lu=[];if(ks.push(Lu),Nh.visible){var jf=Nh.interval;if(!(0>jf)){for(var ru=0;ru<Fu;ru++)if(ru!==Du){var SA=pa[ru];if(SA.visible&&Nh.constructor===SA.constructor){var Ih=SA.interval;Ih>jf&&Lu.push(Ih)}}}}}a.graduatedIntervals=ks}var Uf=a.graduatedIntervals,rd=a.O.s,Od=rd.length,Qc=0,Sc=0,fg=Te;a.graduatedMarks=[];for(var CA,t0=0;t0<Od;t0++){var zc=rd[t0];if(CA=[],zc.visible&&zc!==ot){var kh=Math.abs(zc.interval),V0=a.graduatedTickUnit;if(!(2>V0*kh*Te/a.graduatedRange&&zc.graduatedSkip===null)){var dp=Ke[0][0],DA=0,Cc=0;Sc=Te*zc.graduatedStart-1e-4,fg=Te*zc.graduatedEnd+1e-4;var jg=V0*kh,Kc=a.graduatedTickBase;if(Kc<a.graduatedMin){var gg=(a.graduatedMin-Kc)/jg;gg=gg%1===0?gg:Math.floor(gg+1),Kc+=gg*jg}else Kc>a.graduatedMin+jg&&(Kc-=Math.floor((Kc-a.graduatedMin)/jg)*jg);for(var av=Uf[t0],Z0=Kc,Py=1e-6*a.graduatedMax,of=1;Kc<=a.graduatedMax+Py;of++){t:{for(var Af=av.length,Ap=0;Ap<Af;Ap++){var pg=(Kc-a.graduatedTickBase)%(av[Ap]*a.graduatedTickUnit),e0=1e-6*a.graduatedTickUnit;if(pg<e0&&pg>-e0){var mg=!1;break t}}mg=!0}if(mg&&(Kc>a.graduatedMax&&(Kc=a.graduatedMax),zc.graduatedSkip===null||zc instanceof ha&&!zc.graduatedSkip(Kc,zc)||zc instanceof Go&&!zc.graduatedSkip(Kc,zc))&&(Qc=(Kc-a.graduatedMin)*Te/a.graduatedRange,Qc>Te&&(Qc=Te),Sc<=Qc&&Qc<=fg)){for(var sf=Bn[DA][Cc],Rf=Ke[DA][Cc];DA<Ke.length;){for(;Qc>dp&&Cc<Ke[DA].length-1;)Cc++,sf=Bn[DA][Cc],Rf=Ke[DA][Cc],dp+=Rf;if(Qc<=dp)break;DA++,Cc=0,sf=Bn[DA][Cc],Rf=Ke[DA][Cc],dp+=Rf}var Bc=ce[DA],jA=Bc[2*Cc],lv=Bc[2*Cc+1],ff=(Qc-(dp-Rf))/Rf,n0=new ke(jA+(Bc[2*Cc+2]-jA)*ff+Xt/2-Kt.bounds.x,lv+(Bc[2*Cc+3]-lv)*ff+Xt/2-Kt.bounds.y);n0.scale(ot.scale,ot.scale);t:{var BA=sf,Ug=Bn[DA];if(!(.5005>ff&&.4995<ff)){var UA=BA;if(.5>ff?0<Cc?UA=Ug[Cc-1]:Ln.$(Bc[0],Bc[Bc.length-2])&&Ln.$(Bc[1],Bc[Bc.length-1])&&(UA=Ug[Ug.length-1]):.5<ff&&(Cc+1<Ug.length?UA=Ug[Cc+1]:Ln.$(Bc[0],Bc[Bc.length-2])&&Ln.$(Bc[1],Bc[Bc.length-1])&&(UA=Ug[0])),BA!==UA){var fp=Math.abs(BA-UA);if(180<fp&&(BA<UA?BA+=360:UA+=360,fp=Math.abs(BA-UA)),5e-4>ff||.9995<ff){sf=(BA+UA)/2%360;break t}if(10>fp){var i0=1-Math.abs(.5-ff);sf=(BA*i0+UA*(1-i0))%360;break t}}}sf=BA}if(zc instanceof ha){var rA="";zc.graduatedFunction!==null?(rA=zc.graduatedFunction(Kc,zc),rA=rA!=null?rA.toString():""):rA=(+Kc.toFixed(2)).toString(),rA!==""&&CA.push({$l:n0,angle:sf,text:rA})}else CA.push({$l:n0,angle:sf})}Kc=Z0+of*jg}}}a.graduatedMarks.push(CA)}nr(Bn);var $u=a.graduatedMarks;if($u!==null)for(var Y0=b.length,Jh=0;Jh<Y0;Jh++){var ou=b[Jh],qh=$u[Jh];if(ou.visible&&ou!==ot&&qh.length!==0){if(ou instanceof Go){var gf=a,_f=E,Rg=ou.alignmentFocus;Rg.Mc()&&(Rg=Bl);var by=ou.angle;ou.Kb=0,ou.measure(1/0,1/0,0,0),ou.Kb=by;var uv=ou.measuredBounds,r0=uv.width,_g=uv.height,gp=ai.allocAt(0,0,r0,_g),Pc=ke.alloc();Pc.xi(gp,Rg),ai.free(gp);for(var pf=-Pc.x,PA=-Pc.y,wd=new ai,vg=qh.length,o0=0;o0<vg;o0++)for(var yg=qh[o0],hv=yg.$l.x,s0=yg.$l.y,Gl=yg.angle,oA=0;4>oA;oA++){switch(oA){case 0:Pc.h(pf,PA);break;case 1:Pc.h(pf+r0,PA);break;case 2:Pc.h(pf,PA+_g);break;case 3:Pc.h(pf+r0,PA+_g)}Pc.rotate(Gl+ou.angle),Pc.offset(hv,s0),o0===0&&oA===0?wd.h(Pc.x,Pc.y,0,0):wd.Ye(Pc),Pc.offset(-hv,-s0),Pc.rotate(-Gl-ou.angle)}ke.free(Pc),gf.graduatedBounds!==null&&gf.graduatedBounds.push(wd),Is(_f,wd.x,wd.y,wd.width,wd.height)}else if(ou instanceof ha){var Dd=a,cv=E;Dd.temporaryTextBlock===null&&(Dd.temporaryTextBlock=new ha);var Gc=Dd.temporaryTextBlock;c0(Gc,ou);var Hf=ou.alignmentFocus;Hf.Mc()&&(Hf=Bl);for(var jd=ou.segmentOrientation,a0=ou.segmentOffset,wg=new ai,$0=0,l0=0,RA=0,Hg=0,xg=0,u0=qh.length,Qf=0;Qf<u0;Qf++){var af=qh[Qf];$0=af.$l.x,l0=af.$l.y,RA=af.angle,xg=Hg=ou.angle,jd!==Vh&&(xg=jd===y0||jd===vm?RA+ou.angle:RA,Hg=Vi.computeAngle(jd,xg)),Gc.Kb=Hg,Gc.text=af.text||"",Gc.measure(1/0,1/0,0,0);var zf=Gc.measuredBounds,mf=Gc.naturalBounds,Kf=mf.width,Qg=mf.height,bA=Ko.alloc();bA.reset(),bA.translate(-zf.x,-zf.y),bA.scale(Gc.scale,Gc.scale),bA.rotate(xg,Kf/2,Qg/2),jd!==w0&&jd!==S0||bA.rotate(90,Kf/2,Qg/2),jd!==x0&&jd!==C0||bA.rotate(-90,Kf/2,Qg/2),jd===ym&&(45<RA&&135>RA||225<RA&&315>RA)&&bA.rotate(-RA,Kf/2,Qg/2);var pp=ai.allocAt(0,0,Kf,Qg),Gf=ke.alloc();Gf.xi(pp,Hf),bA.Ga(Gf);var mp=-Gf.x,Ey=-Gf.y,vf=ke.alloc();vf.assign(a0),isNaN(vf.x)&&(vf.x=Kf/2+3),isNaN(vf.y)&&(vf.y=-(Qg/2+3)),vf.rotate(RA),$0+=vf.x+mp,l0+=vf.y+Ey;var zg=new ai($0,l0,zf.width,zf.height),X0=new ai(zf.x,zf.y,zf.width,zf.height),Fy=new ai(mf.x,mf.y,mf.width,mf.height);af.Sz=Hg,af.lineCount=Gc.lineCount,af.lines=[Gc.Cb,Gc.Ih,Gc.df,Gc.Le,Gc.Qc,Gc.Qb,Gc.ze],af.actualBounds=zg,af.measuredBounds=X0,af.naturalBounds=Fy,Qf===0?wg.assign(zg):wg.ed(zg),ke.free(vf),ke.free(Gf),ai.free(pp),Ko.free(bA)}Dd.graduatedBounds!==null&&Dd.graduatedBounds.push(wg),Is(cv,wg.x,wg.y,wg.width,wg.height)}Ql(ou,!1)}}},Ks.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var b=a.Pb(),E=a.graduatedMarks;if(E!==null){var z=a.graduatedBounds,nt=0,ot=z[nt];nt++,b!==null&&b.arrange(ot.x-x.x,ot.y-x.y,ot.width,ot.height);for(var at=y.length,ht=0;ht<at;ht++){var ct=y[ht];ot=E[ht],ct.visible&&ct!==b&&ot.length!==0&&(ot=z[nt],nt++,ct.arrange(ot.x-x.x,ot.y-x.y,ot.width,ot.height))}a.graduatedBounds=null}}},Ks.prototype.gc=function(a,y,x){var b=x.$i;x.$i=!0;var E=a.naturalBounds,z=E.width,nt=E.height;E=y instanceof Sh,y.save(),y.beginPath(),y.rect(-1,-1,z+1,nt+1),y.clip(),y.Se(),z=a.Pb(),z.gc(y,x),nt=a.Df()*x.scale,0>=nt&&(nt=1);for(var ot=z.actualBounds,at=a.O.s,ht=a.graduatedMarks,ct=at.length,gt=0;gt<ct;gt++){var Nt=at[gt],Kt=ht[gt],Xt=Kt.length;if(Nt.visible&&Nt!==z&&Kt.length!==0){if(Nt instanceof Go){if(!(2>a.graduatedTickUnit*Nt.interval*z.geometry.flattenedTotalLength/a.graduatedRange*nt&&Nt.graduatedSkip===null)){var ce=Nt.measuredBounds,Ke=Nt.strokeWidth*Nt.scale,Te=Nt.alignmentFocus;Te.Mc()&&(Te=Bl);for(var $e=0;$e<Xt;$e++){var rn=Kt[$e].$l,ln=Kt[$e].angle,Bn=Te,Gn=Nt.Ab;Gn.reset(),Gn.translate(rn.x+ot.x,rn.y+ot.y),Gn.rotate(ln+Nt.angle,0,0),Gn.translate(-ce.width*Bn.x+Bn.offsetX+Ke/2,-ce.height*Bn.y+Bn.offsetY+Ke/2),Gn.scale(Nt.scale,Nt.scale),Fh(Nt,!1),Nt.wh.set(Nt.Ab),Nt.Kk=Nt.scale,eh(Nt,!1),Nt.gc(y,x),E&&(a.svg.appendChild(Nt.svg),Nt.svg=null),Nt.Ab.reset()}}}else if(Nt instanceof ha)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new ha),ce=a.temporaryTextBlock,c0(ce,Nt),Ke=0;Ke<Xt;Ke++)Te=Kt[Ke],Te.actualBounds&&Te.measuredBounds&&Te.naturalBounds&&(ce.ec=Te.text||"",ce.Kb=Te.Sz||0,ce.Gc=Te.lineCount||0,$e=Te.lines,$e!==void 0&&(ce.Cb=$e[0],ce.Ih=$e[1],ce.df=$e[2],ce.Le=$e[3],ce.Qc=$e[4],ce.Qb=$e[5],ce.ze=$e[6]),Te.naturalBounds&&(ce.dc=Te.naturalBounds),Te.actualBounds&&($e=Te.actualBounds,ce.arrange($e.x,$e.y,$e.width,$e.height)),$e=Te.actualBounds,ce.arrange($e.x,$e.y,$e.width,$e.height),rn=Te.measuredBounds,Te=Te.naturalBounds,ln=ce.Ab,ln.reset(),ln.translate($e.x+ot.x,$e.y+ot.y),ln.translate(-rn.x,-rn.y),ce.no(ln,Te.x,Te.y,Te.width,Te.height),Fh(ce,!1),ce.wh.set(ce.Ab),ce.Kk=ce.scale,eh(ce,!1),ce.Ng=Nt.part,ce.Me=Nt.panel,ce.gc(y,x),ce.Me=null,ce.Ng=null,E&&(a.svg.appendChild(ce.svg),ce.svg=null))}}x.$i=b,y.restore(),y.Vc(!0)};function qn(a,y){if(xn.call(this),this.na=null,a===void 0)this.na=qn.Position;else if(typeof a=="string"){var x=Gh.I(a);x!==null&&(this.na=x)}else a instanceof Fn?this.na=a:a&&(this.na=qn.Position,y=a);this.na===null&&sn("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===qn.Grid?1048576:0),this.O=new Ci,this.yb=Ao,this.Tm=Bs,this.Uf=Co,this.$g=null,this.$e="",this.jg=new ai(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=Nr,this.jn=zo,this.kn=ts,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}On(qn,xn),qn.prototype.cloneProtected=function(a){xn.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},qn.prototype.Af=function(a){xn.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},qn.prototype.copy=function(){var a=xn.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 z=a.O,nt=z.count;if(z.Gb(nt,E),z=a.part,z!==null){z.Rh=null,E.portId!==null&&z instanceof Ar&&(z.Te=!0);var ot=a.diagram;ot!==null&&ot.undoManager.isUndoingRedoing||z.cb(vl,"elements",a,null,E,null,nt)}}return a}return null},Vt=qn.prototype,Vt.toString=function(){return"Panel("+this.type.name+")#"+fs(this)},Vt.Pn=function(a){xn.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,b=0;b<x;b++)y[b].Pn(a)},Vt.hh=function(a,y){if(this.na===qn.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===qn.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===qn.Table)if(a.yc(),a instanceof Sh){var x=a.yd;a.yd=Pg(a,"gojs-ts"),gl(this,a),a.nh.pop(),a.yd=x}else gl(this,a);(x=this.isClipping&&this.na===qn.Spot)&&a.save();for(var b=this.Pb(),E=this.O.s,z=E.length,nt=0;nt<z;nt++){var ot=E[nt];x&&ot===b&&(a.clipInsteadOfFill=!0),ot.gc(a,y),x&&ot===b&&(a.clipInsteadOfFill=!1)}x&&(a.restore(),a.Vc(!0))}};function gl(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,b=0<a.columnCount?a.colDefs:null;x!==null&&rl(a,y,!0,x,!0),b!==null&&rl(a,y,!1,b,!0),x!==null&&kl(a,y,!0,x),b!==null&&kl(a,y,!1,b),x!==null&&rl(a,y,!0,x,!1),b!==null&&rl(a,y,!1,b,!1)}function kl(a,y,x,b){for(var E=b.length,z=a.actualBounds,nt=a.naturalBounds,ot=!0,at=0;at<E;at++){var ht=b[at];if(ht!==void 0&&ht.actual!==0)if(ot)ot=!1;else{if(x){if(ht.position>nt.height)continue}else if(ht.position>nt.width)continue;var ct=ht.separatorStrokeWidth;isNaN(ct)&&(ct=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var gt=ht.separatorStroke;if(gt===null&&(gt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ct!==0&>!==null){Ca(a,y,gt,!1,!1,nt,z),gt=!1;var Nt=ht.separatorDashArray;Nt===null&&(Nt=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),Nt!==null&&(gt=!0,y.js(Nt,0)),y.beginPath(),Nt=ht.position+ct,x?Nt>nt.height&&(ct-=Nt-nt.height):Nt>nt.width&&(ct-=Nt-nt.width),ht=ht.position+ct/2,y.lineWidth=ct,ct=a.yb,x?(ht+=ct.top,Nt=nt.width-ct.right,y.moveTo(ct.left,ht),y.lineTo(Nt,ht)):(ht+=ct.left,Nt=nt.height-ct.bottom,y.moveTo(ht,ct.top),y.lineTo(ht,Nt)),y.stroke(),y.Se(),gt&&y.fs()}}}}function rl(a,y,x,b,E){for(var z=b.length,nt=a.actualBounds,ot=a.naturalBounds,at=Qa(a,!0),ht=Qa(a,!1),ct=0;ct<z;ct++){var gt=b[ct];if(gt!==void 0&>.background!==null&>.coversSeparators!==E&>.actual!==0){var Nt=x?nt.height:nt.width;if(!(gt.position>Nt)){var Kt=gt.Wc(),Xt=gt.separatorStrokeWidth;isNaN(Xt)&&(Xt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ce=gt.separatorStroke;ce===null&&(ce=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(ce===null||gt.index===(x?at:ht))&&(Xt=0),Kt-=Xt,Xt=gt.position+Xt,Kt+=gt.actual,Xt+Kt>Nt&&(Kt=Nt-Xt),0>=Kt||(Nt=a.yb,Ca(a,y,gt.background,!0,!1,ot,nt),x?y.fillRect(Nt.left,Xt+Nt.top,nt.width-(Nt.left+Nt.right),Kt):y.fillRect(Xt+Nt.left,Nt.top,Kt,nt.height-(Nt.top+Nt.bottom)))}}}}function Qa(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 zl(a){return a==="LineV"||a==="BarV"}Vt.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},Vt.kk=function(a,y,x){if(!xn.prototype.kk.call(this,a,y,x))return!1;if(this.type===qn.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,gl(this,a),a.yd=null;else if(this.na===qn.Grid||this.na===qn.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},Vt.nk=function(){return!0},Vt.$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,z=0,nt=0;nt<y.length;nt++)if(y[nt].Ed()){var ot=y[nt].actualBounds;E=nt===0?ot.x:Math.min(ot.x,E),z=nt===0?ot.y:Math.min(ot.y,z)}b.setAttributeNS(null,"clip-path","path('M "+(a.x-x.x-E)+","+(a.y-x.y-z)+" l "+a.width+" 0 l 0 "+a.height+" l -"+a.width+" 0 z')")}else xn.prototype.$o.call(this,a,y,x,b)},Vt.Sj=function(a,y,x,b,E){var z=this.se(),nt=this.transform,ot=1/(nt.m11*nt.m22-nt.m12*nt.m21),at=nt.m22*ot,ht=-nt.m12*ot,ct=-nt.m21*ot,gt=nt.m11*ot,Nt=ot*(nt.m21*nt.dy-nt.m22*nt.dx),Kt=ot*(nt.m12*nt.dx-nt.m11*nt.dy);if(this.areaBackground!==null)return nt=this.actualBounds,Ln.Ff(nt.left,nt.top,nt.right,nt.bottom,a,y,x,b,E);if(this.background!==null)return z=a*at+y*ct+Nt,ot=a*ht+y*gt+Kt,a=x*at+b*ct+Nt,at=x*ht+b*gt+Kt,E.h(0,0),x=this.naturalBounds,z=Ln.Ff(0,0,x.width,x.height,z,ot,a,at,E),E.transform(nt),z;z||(at=1,ct=ht=0,gt=1,Kt=Nt=0),ot=a*at+y*ct+Nt,a=a*ht+y*gt+Kt,at=x*at+b*ct+Nt,x=x*ht+b*gt+Kt,E.h(at,x),b=(at-ot)*(at-ot)+(x-a)*(x-a),ht=!1,gt=this.O.s,Kt=gt.length,ct=ke.alloc(),Nt=null,y=1/0;var Xt=null,ce=this.isClipping&&this.na===qn.Spot;ce&&(Xt=ke.alloc(),Nt=this.Pb(),(ht=Nt.Sj(ot,a,at,x,Xt))&&(y=(ot-Xt.x)*(ot-Xt.x)+(a-Xt.y)*(a-Xt.y)));for(var Ke=0;Ke<Kt;Ke++){var Te=gt[Ke];Te.visible&&Te!==Nt&&Te.Sj(ot,a,at,x,ct)&&(ht=!0,Te=(ot-ct.x)*(ot-ct.x)+(a-ct.y)*(a-ct.y),Te<b&&(b=Te,E.set(ct)))}return ce&&(y>b&&E.set(Xt),ke.free(Xt)),ke.free(ct),z&&E.transform(nt),ht},Vt.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();xn.prototype.Gj.call(this)},Vt.v=function(a){if(!xh(this)){xn.prototype.v.call(this,a),a=null,(this.na===qn.Auto||this.na===qn.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 z=Zu(E,!1);(E instanceof Wh||E instanceof qn||E instanceof ha||z!==Ei)&&E.v(!0)}}}},Vt.Uj=function(){if(!xh(this)){Ql(this,!0),qc(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},Vt.Uk=function(){if(!(this.l&2048)){Fh(this,!0),eh(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},Vt.Wu=function(){eh(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},Vt.Wl=function(a,y,x,b){var E=this.jg;E.h(0,0,0,0);var z=this.desiredSize,nt=this.minSize;x===void 0&&(x=nt.width,b=nt.height),x=Math.max(x,nt.width),b=Math.max(b,nt.height);var ot=this.maxSize;isNaN(z.width)||(a=Math.min(z.width,ot.width)),isNaN(z.height)||(y=Math.min(z.height,ot.height)),a=Math.max(x,a),y=Math.max(b,y);var at=this.yb;a=Math.max(a-at.left-at.right,0),y=Math.max(y-at.top-at.bottom,0);var ht=this.O.s;ht.length!==0&&this.na.measure(this,a,y,ht,E,x,b),a=E.width+at.left+at.right,at=E.height+at.top+at.bottom,isFinite(z.width)&&(a=z.width),isFinite(z.height)&&(at=z.height),a=Math.min(ot.width,a),at=Math.min(ot.height,at),a=Math.max(nt.width,a),at=Math.max(nt.height,at),a=Math.max(x,a),at=Math.max(b,at),Ta(E,a,at),Ta(this.naturalBounds,a,at),this.Ge(0,0,a,at)},Vt.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 Ha(a){return a.part!==null?a.part.locationObject:null}Vt.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=Zu(this,!0);var z=this.measuredBounds;y=z.width,z=z.height;var nt=this.Kg,ot=nt.left+nt.right;switch(nt=nt.top+nt.bottom,y===x&&z===b&&(a=Ei),a){case Ei:(y>x||z>b)&&(this.v(),this.measure(y>x?x:y,z>b?b:z,0,0));break;case Ni:this.v(!0),this.measure(x+ot,b+nt,0,0);break;case jr:this.v(!0),this.measure(x+ot,z+nt,0,0);break;case to:this.v(!0),this.measure(y+ot,b+nt,0,0)}}this.na.arrange(this,E,this.jg)}},Vt.gh=function(a){var y=this.naturalBounds,x=Ha(this);if(ia(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,E=ke.allocAt(0,0);b--;){var z=y[b];if((z.visible||z===x)&&(Lo(E.set(a),z.transform),z.ca(E)))return ke.free(E),!0}return ke.free(E),!(this.Ma===null&&this.areaBackground===null)}return!1},Vt.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},Vt.qm=function(a,y){if(y(this,a),a instanceof qn){a=a.O.s;for(var x=a.length,b=0;b<x;b++)this.qm(a[b],y)}};function ua(a,y){Qu(a,a,y)}function Qu(a,y,x){x(y),y=y.O.s;for(var b=y.length,E=0;E<b;E++){var z=y[E];z instanceof qn&&Qu(a,z,x)}}function Id(a,y){Lh(a,a,y)}function Lh(a,y,x){if(x(y),y instanceof qn){y=y.O.s;for(var b=y.length,E=0;E<b;E++)Lh(a,y[E],x)}}Vt.Nl=function(a){return gd(this,this,a)};function gd(a,y,x){if(x(y))return y;if(y instanceof qn){y=y.O.s;for(var b=y.length,E=0;E<b;E++){var z=gd(a,y[E],x);if(z!==null)return z}}return null}Vt.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=YA(this));for(var b=0;b<x;b++){var E=y[b];if(E instanceof qn){var z=E.fb(a);if(z!==null)return z}if(E.name===a)return E}return null};function bu(a){a=a.O.s;for(var y=a.length,x=0,b=0;b<y;b++){var E=a[b];E instanceof qn?x=Math.max(x,bu(E)):E instanceof Go&&(x=Math.max(x,E.ig/2*E.strokeMiterLimit*E.Df()))}return x}Vt.se=function(){return!(this.type===qn.TableRow||this.type===qn.TableColumn)};function Ch(a){return a.type===qn.TableRow||a.type===qn.TableColumn}Vt.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),Hu(this)))return null;var b=this.naturalBounds,E=1/this.Df(),z=this.se(),nt=z?a:Lo(ke.allocAt(a.x,a.y),this.transform),ot=this.diagram,at=10,ht=5;if(ot!==null&&(at=ot.Ql("extraTouchArea"),ht=at/2),ia(-(ht*E),-(ht*E),b.width+at*E,b.height+at*E,nt.x,nt.y)){if(!this.isAtomic){E=this.O.s;var ct=E.length;if(ot=ke.alloc(),ht=(at=this.isClipping&&this.na===qn.Spot)?this.Pb():null,at&&(ht.se()?Lo(ot.set(a),ht.transform):ot.set(a),!ht.ca(ot)))return ke.free(ot),z||ke.free(nt),null;for(var gt=Ha(this);ct--;){var Nt=E[ct];if((Nt.visible||Nt===gt)&&(Nt.se()?Lo(ot.set(a),Nt.transform):ot.set(a),!at||Nt!==ht)){var Kt=null;if(Nt instanceof qn?Kt=Nt.ic(ot,y,x):Nt.pickable===!0&&Nt.ca(ot)&&(Kt=Nt),Kt!==null&&(y!==null&&(Kt=y(Kt)),Kt!==null&&(x===null||x(Kt))))return ke.free(ot),z||ke.free(nt),Kt}}ke.free(ot)}return this.background===null&&this.areaBackground===null?(z||ke.free(nt),null):(a=ia(0,0,b.width,b.height,nt.x,nt.y)?this:null,z||ke.free(nt),a)}return z||ke.free(nt),null},Vt.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,z=this.se(),nt=z?a:Lo(ke.allocAt(a.x,a.y),this.transform);if(E=ia(0,0,E.width,E.height,nt.x,nt.y),Ch(this)||E){if(!this.isAtomic){for(var ot=this.O.s,at=ot.length,ht=ke.alloc(),ct=Ha(this);at--;){var gt=ot[at];if(gt.visible||gt===ct){gt.se()?Lo(ht.set(a),gt.transform):ht.set(a);var Nt=gt;gt=gt instanceof qn?gt:null,(gt!==null?gt.ji(ht,y,x,b):Nt.ca(ht))&&Nt.pickable!==!1&&(y!==null&&(Nt=y(Nt)),Nt===null||x!==null&&!x(Nt)||b.add(Nt))}}ke.free(ht)}return z||ke.free(nt),E&&(this.background!==null||this.areaBackground!==null)}return z||ke.free(nt),!1},Vt.Cf=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var nt=z;if(z===void 0&&(nt=Ko.alloc(),nt.reset()),nt.multiply(this.transform),this.fh(a,nt))return pd(this,y,x,E),z===void 0&&Ko.free(nt),!0;if(this.Yc(a,nt)){if(!this.isAtomic)for(var ot=Ha(this),at=this.O.s,ht=at.length;ht--;){var ct=at[ht];if(ct.visible||ct===ot){var gt=ct.actualBounds,Nt=this.naturalBounds;gt.x>Nt.width||gt.y>Nt.height||0>gt.x+gt.width||0>gt.y+gt.height||(gt=ct,ct=ct instanceof qn?ct:null,Nt=Ko.alloc(),Nt.set(nt),(ct!==null?ct.Cf(a,y,x,b,E,Nt):_l(gt,a,b,Nt))&&(y!==null&&(gt=y(gt)),gt===null||x!==null&&!x(gt)||E.add(gt)),Ko.free(Nt))}}return z===void 0&&Ko.free(nt),b}return z===void 0&&Ko.free(nt),!1};function pd(a,y,x,b){for(var E=a.O.s,z=E.length;z--;){var nt=E[z];if(nt.visible){var ot=nt.actualBounds,at=a.naturalBounds;ot.x>at.width||ot.y>at.height||0>ot.x+ot.width||0>ot.y+ot.height||(nt instanceof qn&&pd(nt,y,x,b),y!==null&&(nt=y(nt)),nt===null||x!==null&&!x(nt)||b.add(nt))}}}Vt.og=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;x===void 0&&(x=null),b===void 0&&(b=null);var nt=this.naturalBounds,ot=this.se(),at=ot?a:Lo(ke.allocAt(a.x,a.y),this.transform),ht=ot?y:Lo(ke.allocAt(y.x,y.y),this.transform),ct=at.Bf(ht),gt=0<at.x&&at.x<nt.width&&0<at.y&&at.y<nt.height||os(at.x,at.y,0,0,0,nt.height)<=ct||os(at.x,at.y,0,nt.height,nt.width,nt.height)<=ct||os(at.x,at.y,nt.width,nt.height,nt.width,0)<=ct||os(at.x,at.y,nt.width,0,0,0)<=ct;if(nt=at.zd(0,0)<=ct&&at.zd(0,nt.height)<=ct&&at.zd(nt.width,0)<=ct&&at.zd(nt.width,nt.height)<=ct,ot||(ke.free(at),ke.free(ht)),gt){if(!this.isAtomic){at=ke.alloc(),ht=ke.alloc(),ct=Ha(this);for(var Nt=this.O.s,Kt=Nt.length;Kt--;){var Xt=Nt[Kt];if(Xt.visible||Xt===ct){var ce=Xt.actualBounds,Ke=this.naturalBounds;(!ot||!(ce.x>Ke.width||ce.y>Ke.height||0>ce.x+ce.width||0>ce.y+ce.height))&&(Xt.se()?(ce=Xt.transform,Lo(at.set(a),ce),Lo(ht.set(y),ce)):(at.set(a),ht.set(y)),ce=Xt,Xt=Xt instanceof qn?Xt:null,(Xt!==null?Xt.og(at,ht,x,b,E,z):ce.tx(at,ht,E))&&(x!==null&&(ce=x(ce)),ce===null||b!==null&&!b(ce)||z.add(ce)))}}ke.free(at),ke.free(ht)}return E?gt:nt}return!1};function Kh(a){var y=null;return a instanceof Go&&(y=a.spot1,y===Bs&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=Oa),y}function ac(a){var y=null;return a instanceof Go&&(y=a.spot2,y===Bs&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=Ll),y}Vt.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},Vt.M=function(a){return this.O.M(a)},Vt.Gb=function(a,y){y instanceof Yr&&sn("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&sn("Cannot make a Panel contain itself: "+this.toString()),sn("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&sn("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!==qn.Grid||y instanceof Go||sn("Can only add Shapes to a Grid Panel, not: "+y),this.na!==qn.Graduated||y instanceof Go||y instanceof ha||sn("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+y),y.wi(this),y.Ng=null,this.itemArray!==null){var b=y.data;b!==null&&typeof b=="object"&&(this.ge===null&&(this.ge=new Cr),this.ge.add(b,y))}var E=this.O;if(b=-1,x===this){for(var z=-1,nt=this.O.s,ot=nt.length,at=0;at<ot;at++)if(nt[at]===y){z=at;break}if(z!==-1){if(z===a||z+1>=E.count&&a>=E.count)return;E.mb(z),b=z}else sn("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),xh(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof qn&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Xf(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof Ar&&(x.Te=!0),x.Te&&x instanceof Ar&&(x.wc=null),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||(b!==-1&&x.cb(Zl,"elements",this,y,null,b,null),x.cb(vl,"elements",this,null,y,null,a)))};function Dc(a,y){a.l=y?a.l|16777216:a.l&-16777217}Vt.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)},Vt.mb=function(a){0<=a&&this.pc(a,!0)},Vt.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),Ql(this,!1),this.v(),this.$g===b&&(this.$g=null),this.graduatedIntervals=null;var z=this.part;z!==null&&(z.Rh=null,z.ag=NaN,z.Wb(),z instanceof Ar&&(b instanceof qn?b.qm(b,function(nt,ot){Ev(z,ot,y)}):Ev(z,b,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(Zl,"elements",this,b,null,a,null))},Vt.Fb=function(a){0>a&&Zi(a,">= 0",qn,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Kl;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(vl,"rowdefs",this,null,x,null,a)}return y[a]},Vt.oA=function(a){if(0>a&&Zi(a,">= 0",qn,"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(Zl,"rowdefs",this,x,null,a,null),this.v()}}};function Jd(a,y,x){var b=a.rowDefs;if(!(0>y)){if(b[y]=x instanceof Kl?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Vt.Eb=function(a){0>a&&Zi(a,">= 0",qn,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Kl;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(vl,"coldefs",this,null,x,null,a)}return y[a]},Vt.jA=function(a){if(0>a&&Zi(a,">= 0",qn,"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(Zl,"coldefs",this,x,null,a,null),this.v()}}};function kA(a,y,x){var b=a.colDefs;if(!(0>y)){if(b[y]=x instanceof Kl?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Vt.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Yg(y,a),this},Vt.Hy=function(a,y){return(a=this.Fb(a))&&Yg(a,new Kl(y)),this},Vt.By=function(a,y){return(a=this.Eb(a))&&Yg(a,new Kl(y)),this},Vt.nz=function(a){if(0>a||this.type!==qn.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,b=x.length,E=this.topIndex;E<b;E++){var z=x[E];if(z!==void 0&&(y+=z.total,a<y))break}return E},Vt.fz=function(a){if(0>a||this.type!==qn.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,b=x.length,E=this.leftIndex;E<b;E++){var z=x[E];if(z!==void 0&&(y+=z.total,a<y))break}return E},Vt.Fz=function(a,y){if(y===void 0&&(y=new ke(NaN,NaN)),this.type!==qn.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)},Vt.Gz=function(a){if(this.type!==qn.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function lc(a){return a=a.allBindings,a!==null&&a._isFrozen}function lh(a){var y=a.allBindings;if(y===null)a.data!==null&&sn("Template cannot have .data be non-null: "+a),a.allBindings=y=new Ci;else if(y._isFrozen)return;var x=new Ci;Dc(a,!1),a.qm(a,function(ht,ct){ct.th();var gt=ct.localBindings;if(gt!==null)for(Xd(ct,!1),gt=gt.iterator;gt.next();){var Nt=gt.value;Nt.mode===N0&&Xd(ct,!0);var Kt=Nt.sourceName;Kt!==null&&(Kt==="/"&&Dc(ht,!0),Kt=k1(Nt,ht,ct),Kt!==null&&(x.add(Kt),Kt.srcBindings===null&&(Kt.srcBindings=new Ci),Kt.srcBindings.add(Nt))),y.add(Nt)}if(ct instanceof qn&&ct.type===qn.Table){if(0<ct.rowCount){for(ht=ct.rowDefs,gt=ht.length,Nt=0;Nt<gt;Nt++)if(Kt=ht[Nt],Kt!==void 0&&Kt.be!==null)for(var Xt=Kt.be.iterator;Xt.next();){var ce=Xt.value;ce.xd=Kt,ce.to=2,ce.wl=Kt.index,y.add(ce)}}if(0<ct.columnCount){for(ct=ct.colDefs,ht=ct.length,gt=0;gt<ht;gt++)if(Nt=ct[gt],Nt!==void 0&&Nt.be!==null)for(Kt=Nt.be.iterator;Kt.next();)Xt=Kt.value,Xt.xd=Nt,Xt.to=1,Xt.wl=Nt.index,y.add(Xt)}}});for(var b=x.iterator;b.next();){var E=b.value;if(E.srcBindings!==null){Xd(E,!0);for(var z=E.srcBindings.iterator;z.next();){var nt=z.value;E.localBindings===null&&(E.localBindings=new Ci),E.localBindings.add(nt)}}E.srcBindings=null}for(b=y.iterator;b.next();)if(E=b.value,z=E.xd,z!==null){E.xd=null;var ot=E.targetProperty,at=ot.indexOf(".");0<at&&z instanceof qn&&(nt=ot.substring(0,at),ot=ot.substr(at+1),at=z.fb(nt),at!==null?(z=at,E.targetProperty=ot):Tr('Warning: unable to find GraphObject named "'+nt+'" for Binding: '+E.toString())),z instanceof Kl?(nt=fs(z.panel),E.Ai=nt===void 0?-1:nt,z.panel.bindingId=E.Ai):z instanceof xn?(nt=fs(z),E.Ai=nt===void 0?-1:nt,z.bindingId=E.Ai):sn("Unknown type of binding target: "+z)}y.freeze(),a instanceof Yr&&a.Zc()&&a.Va()}Vt.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return Id(y,function(x){x instanceof qn&&(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&&lh(y),y},Vt.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 z=this,nt=x.Ai;if(nt!==-1){if(z=this.ks(nt),z===null)continue}else x.xd!==null&&(z=x.xd);if(E==="/"?b=z.part:E==="."?b=z:E===".."&&(b=z.panel),E=x.to,E!==0){if(!(z instanceof qn))continue;E===1?z=z.Eb(x.wl):E===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,b)}}},Vt.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function $f(a,y){a=a.O.s;for(var x=a.length,b=y.length,E=0,z=null;E<x&&(z=a[E],!(z instanceof qn&&z.data!==null));)E++,z=a[E];if(x-E!==b)return!0;if(z===null)return 0<b;for(var nt=0;E<x&&nt<b;){if(z=a[E],!(z instanceof qn)||z.data!==y[nt])return!0;E++,nt++}return!1}function YA(a){if(a.type===qn.Spot||a.type===qn.Auto)return Math.min(a.O.length,1);if(a.type===qn.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var b=a.M(x);if(!(b instanceof Go&&b.isPanelMain))break}return x}return a.type===qn.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof qn&&Ch(a))?1:0}Vt.mv=function(){for(var a=YA(this);this.O.length>a;)this.pc(this.O.length-1,!1);uf(this,this.itemArray)};function uf(a,y){var x=YA(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++)nh(a,y[b],b,!0)}else{b=x;for(var E=0;E<y.length;E++,b++){var z=y[E],nt=b<a.O.length?a.O.M(b):null;if(nt instanceof qn){if(nt.data!==z){var ot=Cp(a,nt.data),at=Cp(a,z),ht=at!==ot;ht||(ot=Bp(a,ot),ht=Bp(a,at)!==ot),ht?(a.pc(b,!1),nh(a,z,E,!1)):nt.data=z}}else nh(a,z,E,!1)}for(;b<a.O.length;)a.pc(b,!1);a.$g=null,Vg(a,x,0),xh(a)||a.v(),a.graduatedIntervals=null,a.If()||Xf(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof Ar&&(y.Te=!0),y.Te&&y instanceof Ar&&(y.wc=null))}}function nh(a,y,x,b){if(!(y==null||0>x)){var E=Cp(a,y);if(E=Bp(a,E),E!==null){if(lh(E),E=E.copy(),E.l&16777216){var z=a.ih();z!==null&&Dc(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new Cr),a.ge.add(y,E)),z=x+YA(a),a.Gb(z,E),b&&(E.ub=y,Vg(a,z,x),E.ub=null),E.data=y}}}function Vg(a,y,x){for(a=a.O;y<a.length;){var b=a.M(y);if(b instanceof qn){var E=y,z=x;b.type===qn.TableRow?b.row=E:b.type===qn.TableColumn&&(b.column=E),b.itemIndex=z}y++,x++}}function Cp(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=ql(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;sn("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function Bp(a,y){var x=a.itemTemplateMap,b=null;return x!==null&&(b=x.I(y)),b===null&&(x!==null&&(b=x.I("")),b===null&&(Zg||(Zg=!0,Tr('No item template Panel found for category "'+y+'" on '+a),Tr(" Using default item template."),a=new qn,y=new ha,y.bind(new iu("text","",Rr)),a.add(y),pA=a),b=pA)),b}function Xf(a,y,x){var b=y.enabledChanged;if(b!==null&&b(y,x),y instanceof qn){y=y.O.s,b=y.length;for(var E=0;E<b;E++){var z=y[E];x&&z instanceof qn&&!z.isEnabled||Xf(a,z,x)}}}function jc(a,y){y.name=a,Gh.add(a,y)}Re.Object.defineProperties(qn.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===qn.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&&Zi(a,">= 0",qn,"padding"),a=new Hr(a)):(0>a.left&&Zi(a.left,">= 0",qn,"padding:value.left"),0>a.right&&Zi(a.right,">= 0",qn,"padding:value.right"),0>a.top&&Zi(a.top,">= 0",qn,"padding:value.top"),0>a.bottom&&Zi(a.bottom,">= 0",qn,"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:Ao},set:function(a){typeof a=="number"&&(a=new Hr(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new wc),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 Rs)&&(a instanceof Rs&&a.freeze(),this.T===null&&(this.T=new wc),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 wc),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 z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||sn("defaultRowSeparatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new wc),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 Rs)&&(a instanceof Rs&&a.freeze(),this.T===null&&(this.T=new wc),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 wc),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 z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||sn("defaultColumnSeparatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new wc),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 wc),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||sn("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&rc(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()||sn("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&rc(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 ed),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),fu(this)&&(a=this.part,a!==null&&Js(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 ed),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),fu(this)&&(a=this.part,a!==null&&Js(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 ed),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 ed),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 ed,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 ed,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 ed,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 ed,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 wc),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new wc),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:Cf},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new wc),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:Cf},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new wc),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)&&sn("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new wc),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)&&sn("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new wc),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 Yr&&!(this instanceof bs);lh(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof Vi?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof Yr&&(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 GA),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&$f(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&Vv(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&Wv(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||uf(this,a)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(a){if(this.itemTemplateMap===null){if(a===null)return;this.itemTemplateMap=new Cr}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof Yr||a.isPanelMain)&&sn("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(););jo(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&&(jo(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 _o&&(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&&Xf(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))}}}),Re.Object.defineProperties(qn,{Position:{get:function(){return Gh.I("Position")}},Horizontal:{get:function(){return Gh.I("Horizontal")}},Vertical:{get:function(){return Gh.I("Vertical")}},Spot:{get:function(){return Gh.I("Spot")}},Auto:{get:function(){return Gh.I("Auto")}},Table:{get:function(){return Gh.I("Table")}},Viewbox:{get:function(){return Gh.I("Viewbox")}},TableRow:{get:function(){return Gh.I("TableRow")}},TableColumn:{get:function(){return Gh.I("TableColumn")}},Link:{get:function(){return Gh.I("Link")}},Grid:{get:function(){return Gh.I("Grid")}},Graduated:{get:function(){return Gh.I("Graduated")}}}),qn.prototype.rebuildItemElements=qn.prototype.mv,qn.prototype.findItemPanelForData=qn.prototype.sx,qn.prototype.updateTargetBindings=qn.prototype.La,qn.prototype.copyTemplate=qn.prototype.Uy,qn.prototype.graduatedValueForPoint=qn.prototype.Gz,qn.prototype.graduatedPointForValue=qn.prototype.Fz,qn.prototype.findColumnForLocalX=qn.prototype.fz,qn.prototype.findRowForLocalY=qn.prototype.nz,qn.prototype.addColumnDefinition=qn.prototype.By,qn.prototype.addRowDefinition=qn.prototype.Hy,qn.prototype.addRowColumnDefinition=qn.prototype.Gy,qn.prototype.removeColumnDefinition=qn.prototype.jA,qn.prototype.getColumnDefinition=qn.prototype.Eb,qn.prototype.removeRowDefinition=qn.prototype.oA,qn.prototype.getRowDefinition=qn.prototype.Fb,qn.prototype.removeAt=qn.prototype.mb,qn.prototype.remove=qn.prototype.remove,qn.prototype.insertAt=qn.prototype.Gb,qn.prototype.elt=qn.prototype.M,qn.prototype.add=qn.prototype.add,qn.prototype.findObject=qn.prototype.fb,qn.prototype.findInVisualTree=qn.prototype.Nl,qn.prototype.walkVisualTreeFrom=qn.prototype.qm,qn.prototype.findMainElement=qn.prototype.Pb;var Zg=!1,pA=null,Gh=new Cr;qn.className="Panel",qn.definePanelLayout=jc,jc("Position",new Kn),jc("Vertical",new Ii),jc("Auto",new Pr),jc("Link",new es);function ed(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}ed.prototype.copy=function(){var a=new ed;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},ed.className="GradPanelSettings";function wc(){this.Pc=[],this.Oc=[],this.j=this.ob=Cf,this.hb=this.Hb=0,this.Qp=Ao,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}wc.prototype.copy=function(a){for(var y=new wc,x=this.Pc,b=x.length,E=y.Pc,z=0;z<b;z++)if(x[z]!==void 0){var nt=x[z].copy();nt.wi(a),E[z]=nt}for(x=this.Oc,b=x.length,E=y.Oc,z=0;z<b;z++)x[z]!==void 0&&(nt=x[z].copy(),nt.wi(a),E[z]=nt);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},wc.className="TablePanelSettings";function Kl(a){ns(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Bs,this.pa=this.oc=this.oa=0,this.be=null,this.oo=$g,this.hg=Co,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))}Kl.prototype.copy=function(){var a=new Kl;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=fr(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function Yg(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=fr(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}Vt=Kl.prototype,Vt.qb=function(a){a.classType===Kl&&(this.sizing=a)},Vt.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+fs(this)},Vt.wi=function(a){this.Me=a},Vt.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)},Vt.Wc=function(){var a=0,y=this.Me,x=0,b=this.isRow;if(y!==null&&y.type===qn.Table)for(var E=b?y.rowDefs.length:y.colDefs.length,z=0;z<E;z++){var nt=b?y.rowDefs[z]:y.colDefs[z];if(nt!==void 0&&nt.oa!==0){x=nt.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)},Vt.Ob=function(a,y,x){var b=this.Me;if(b!==null&&(b.cb(ja,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 Jf(a){if(a.sizing===$g){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}Vt.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new iu(a,y,x,b):E=a,E.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&lc(y)&&sn("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+E+" on "+a)),this.be===null&&(this.be=new Ci),this.be.add(E),this},Re.Object.defineProperties(Kl.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&&Zi(a,">= 0",Kl,"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&&Zi(a,">= 0",Kl,"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))&&Zi(a,">= 0",Kl,"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&&Zi(a,">= 0",Kl,"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 Hr(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&&Qt(a,"RowColumnDefinition.separatorStroke"),a instanceof Rs&&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 z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||sn("separatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}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&&Qt(a,"RowColumnDefinition.background"),a instanceof Rs&&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}}}),Kl.prototype.computeEffectiveSpacing=Kl.prototype.Wc,Kl.prototype.computeEffectiveSpacingTop=Kl.prototype.Io;var $g=new ri(Kl,"Default",0),Sf=new ri(Kl,"None",1),Cf=new ri(Kl,"ProportionalExtra",2);Kl.className="RowColumnDefinition",Kl.Default=$g,Kl.None=Sf,Kl.ProportionalExtra=Cf;function Go(a,y){xn.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)}On(Go,xn),Go.prototype.cloneProtected=function(a){xn.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=fr(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 Bf(a){a.Na===null?a.Na=new Fg:a.Na.nc&&(a.Na=a.Na.copy())}Vt=Go.prototype,Vt.th=function(){xn.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},Vt.qb=function(a){a===Ei||a===Nr||a===$o||a===Co?this.geometryStretch=a:xn.prototype.qb.call(this,a)},Vt.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+fs(this)};function Pf(a,y,x,b){var E=x.length;if(!(4>E)){var z=b.measuredBounds,nt=Math.max(1,z.width);z=z.height;for(var ot=x[0],at=x[1],ht,ct,gt,Nt,Kt,Xt,ce=0,Ke=yi(),Te=2;Te<E;Te+=2)ht=x[Te],ct=x[Te+1],gt=ht-ot,ot=ct-at,gt===0&&(gt=.001),Nt=ot/gt,Kt=Math.atan2(ot,gt),Xt=Math.sqrt(gt*gt+ot*ot),Ke.push([gt,Kt,Nt,Xt]),ce+=Xt,ot=ht,at=ct;ot=x[0],at=x[1],gt=b.measuredBounds.width,b instanceof Go&&(gt-=b.strokeWidth),1>gt&&(gt=1),E=x=gt,ht=nt/2,ct=ht!==0,Te=0,Xt=Ke[Te],gt=Xt[0],Kt=Xt[1],Nt=Xt[2],Xt=Xt[3];for(var $e=0;.1<=ce;){if($e===0&&(ct?(E=x,E-=ht,ce-=ht,ct=!1):E=x,E===0&&(E=1)),E>ce){nr(Ke);return}E>Xt?($e=E-Xt,E=Xt):$e=0;var rn=Math.sqrt(E*E/(1+Nt*Nt));if(0>gt&&(rn=-rn),ot+=rn,at+=Nt*rn,a.translate(ot,at),a.rotate(Kt),a.translate(-(nt/2),-(z/2)),$e===0&&b.hh(a,y),a.translate(nt/2,z/2),a.rotate(-Kt),a.translate(-ot,-at),ce-=E,Xt-=E,$e!==0){if(Te++,Te===Ke.length){nr(Ke);return}Xt=Ke[Te],gt=Xt[0],Kt=Xt[1],Nt=Xt[2],Xt=Xt[3],E=$e}}nr(Ke)}}Vt.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 z=this.actualBounds,nt=this.naturalBounds;b!==null&&Ca(this,a,b,!0,!1,nt,z);var ot=this.part,at=this.ig;if(x===null||at!==0||ot===null||!this.isPanelMain&&ot.Pb()!==this||(at=ot.type===qn.Link&&ot instanceof bs&&ot.category==="Selection"&&ot.adornedObject instanceof Go&&ot.adornedPart.Pb()===ot.adornedObject?ot.adornedObject.strokeWidth:0),at===0&&(x=null),x!==null&&at!==0&&(Ca(this,a,x,!1,!1,nt,z),a.lineWidth=at,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,ot&&y.Gf("drawShadows")&&(z=ot.isShadowed),a.Il===!1&&(z=!1),ot=!0,x===null||b!==null&&b!=="transparent"||(ot=!1),nt=!1,at=this.strokeDashArray,at!==null&&(nt=!0,a.js(at,this.strokeDashOffset)),E.type===$i.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===$i.u){var ht=E.startX;at=E.startY;var ct=E.endX,gt=E.endY;E=Math.min(ht,ct);var Nt=Math.min(at,gt);ht=Math.abs(ct-ht),at=Math.abs(gt-at),a.beginPath(),a.rect(E,Nt,ht,at),b!==null&&a.ng(b),x!==null&&(ot&&z&&td(a),a.jk(),ot&&z&&zh(a)),a.Se()}else if(E.type===$i.F)ht=E.startX,at=E.startY,ct=E.endX,gt=E.endY,E=Math.abs(ct-ht)/2,Nt=Math.abs(gt-at)/2,ht=Math.min(ht,ct)+E,at=Math.min(at,gt)+Nt,a.beginPath(),a.moveTo(ht,at-Nt),a.bezierCurveTo(ht+Ln.wg*E,at-Nt,ht+E,at-Ln.wg*Nt,ht+E,at),a.bezierCurveTo(ht+E,at+Ln.wg*Nt,ht+Ln.wg*E,at+Nt,ht,at+Nt),a.bezierCurveTo(ht-Ln.wg*E,at+Nt,ht-E,at+Ln.wg*Nt,ht-E,at),a.bezierCurveTo(ht-E,at-Ln.wg*Nt,ht-Ln.wg*E,at-Nt,ht,at-Nt),a.closePath(),b!==null&&a.ng(b),x!==null&&(ot&&z&&td(a),a.jk(),ot&&z&&zh(a)),a.Se();else if(E.type===$i.o)for(E=E.figures,at=E.length,Nt=0;Nt<at;Nt++){ht=E.s[Nt],a.beginPath(),a.moveTo(ht.startX,ht.startY),ct=ht.segments.s,gt=ct.length;for(var Kt=null,Xt=0;Xt<gt;Xt++){var ce=ct[Xt];switch(ce.type){case bl:a.moveTo(ce.endX,ce.endY);break;case sa:a.lineTo(ce.endX,ce.endY);break;case pu:a.bezierCurveTo(ce.point1X,ce.point1Y,ce.point2X,ce.point2Y,ce.endX,ce.endY);break;case gh:a.quadraticCurveTo(ce.point1X,ce.point1Y,ce.endX,ce.endY);break;case xl:if(ce.radiusX===ce.radiusY){var Ke=Math.PI/180;a.arc(ce.point1X,ce.point1Y,ce.radiusX,ce.startAngle*Ke,(ce.startAngle+ce.sweepAngle)*Ke,0>ce.sweepAngle,Kt!==null?Kt.endX:ht.startX,Kt!==null?Kt.endY:ht.startY)}else if(Kt=Xu(ce,ht),Ke=Kt.length,Ke===0)a.lineTo(ce.centerX,ce.centerY);else for(var Te=0;Te<Ke;Te++){var $e=Kt[Te];Te===0&&a.lineTo($e[0],$e[1]),a.bezierCurveTo($e[2],$e[3],$e[4],$e[5],$e[6],$e[7])}break;case Oh:if(Te=Ke=0,Kt!==null&&Kt.type===xl){if(Kt=Xu(Kt,ht),$e=Kt.length,$e===0){a.lineTo(ce.endX,ce.endY);break}Kt=Kt[$e-1]||null,Kt!==null&&(Ke=Kt[6],Te=Kt[7])}else Ke=Kt!==null?Kt.endX:ht.startX,Te=Kt!==null?Kt.endY:ht.startY;if(Kt=Ku(ce,ht,Ke,Te),Ke=Kt.length,Ke===0){a.lineTo(ce.endX,ce.endY);break}for(Te=0;Te<Ke;Te++)$e=Kt[Te],a.bezierCurveTo($e[2],$e[3],$e[4],$e[5],$e[6],$e[7]);break;default:sn("Segment not of valid type: "+ce.type)}ce.isClosed&&a.closePath(),Kt=ce}ct=ht.isFilled,z?ht.isShadowed?(ct===!0&&b!=="transparent"&&b!==null&&a.ng(b,ht.isEvenOdd),x!==null&&(ct&&ot&&td(a),a.jk(),ct&&ot&&zh(a))):(td(a),ct&&b!=="transparent"&&b!==null&&a.ng(b,ht.isEvenOdd),x!==null&&a.jk(),zh(a)):(ct&&b!==null&&a.ng(b,ht.isEvenOdd),x!==null&&a.jk()),a.Se(Nt)}if(nt&&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),z=this.geometry,a.save(),a.beginPath(),b=yi(),z.type===$i.j)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.endY),Pf(a,y,b,x);else if(z.type===$i.o)for(z=z.figures.iterator;z.next();){for(ot=z.value,b.length=0,b.push(ot.startX),b.push(ot.startY),nt=ot.startX,E=ot.startY,at=nt,Nt=E,ht=ot.segments.s,ct=ht.length,gt=0;gt<ct;gt++){switch(Xt=ht[gt],Xt.type){case bl:Pf(a,y,b,x),b.length=0,b.push(Xt.endX),b.push(Xt.endY),nt=Xt.endX,E=Xt.endY,at=nt,Nt=E;break;case sa:b.push(Xt.endX),b.push(Xt.endY),nt=Xt.endX,E=Xt.endY;break;case pu:Ln.Qe(nt,E,Xt.point1X,Xt.point1Y,Xt.point2X,Xt.point2Y,Xt.endX,Xt.endY,.5,b),nt=Xt.endX,E=Xt.endY;break;case gh:Ln.ep(nt,E,Xt.point1X,Xt.point1Y,Xt.endX,Xt.endY,.5,b),nt=Xt.endX,E=Xt.endY;break;case xl:if(ce=Xu(Xt,ot),Kt=ce.length,Kt===0){b.push(Xt.centerX),b.push(Xt.centerY),nt=Xt.centerX,E=Xt.centerY;break}for(Ke=0;Ke<Kt;Ke++)Te=ce[Ke],Ln.Qe(nt,E,Te[2],Te[3],Te[4],Te[5],Te[6],Te[7],.5,b),nt=Te[6],E=Te[7];break;case Oh:if(ce=Ku(Xt,ot,nt,E),Kt=ce.length,Kt===0){b.push(Xt.endX),b.push(Xt.endY),nt=Xt.endX,E=Xt.endY;break}for(Ke=0;Ke<Kt;Ke++)Te=ce[Ke],Ln.Qe(nt,E,Te[2],Te[3],Te[4],Te[5],Te[6],Te[7],.5,b),nt=Te[6],E=Te[7];break;default:sn("Segment not of valid type: "+Xt.type)}Xt.isClosed&&(b.push(at),b.push(Nt),Pf(a,y,b,x))}Pf(a,y,b,x)}else if(z.type===$i.u)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.startY),b.push(z.endX),b.push(z.endY),b.push(z.startX),b.push(z.endY),b.push(z.startX),b.push(z.startY),Pf(a,y,b,x);else if(z.type===$i.F){if(E=new il,E.startX=z.endX,E.startY=(z.startY+z.endY)/2,nt=new gs(xl),nt.startAngle=0,nt.sweepAngle=360,nt.centerX=(z.startX+z.endX)/2,nt.centerY=(z.startY+z.endY)/2,nt.radiusX=Math.abs(z.startX-z.endX)/2,nt.radiusY=Math.abs(z.startY-z.endY)/2,E.add(nt),z=Xu(nt,E),ot=z.length,ot===0)b.push(nt.centerX),b.push(nt.centerY);else for(nt=E.startX,E=E.startY,at=0;at<ot;at++)Nt=z[at],Ln.Qe(nt,E,Nt[2],Nt[3],Nt[4],Nt[5],Nt[6],Nt[7],.5,b),nt=Nt[6],E=Nt[7];Pf(a,y,b,x)}nr(b),a.restore(),a.Vc(!1)}}}},Vt.kk=function(a,y,x){return!xn.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)},Vt.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:xn.prototype.nk.call(this,a)},Vt.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)}},Vt.ga=function(a,y){if(y===void 0&&(y=new ke),a instanceof xr){a.Mc()&&sn("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},Vt.mi=function(a){a===void 0&&(a=new ai);var y=this.naturalBounds,x=this.oe;y=ai.allocAt(y.x,y.y,y.width,y.height);var b=this.strokeWidth;return y.Bc(b/2,b/2),b=ke.allocAt(y.x,y.y).transform(x),a.h(b.x,b.y,0,0),b.h(y.right,y.y).transform(x),Is(a,b.x,b.y,0,0),b.h(y.right,y.bottom).transform(x),Is(a,b.x,b.y,0,0),b.h(y.x,y.bottom).transform(x),Is(a,b.x,b.y,0,0),ai.free(y),ke.free(b),a},Vt.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!==$i.j||y||(E+=2);var z=ai.alloc();if(z.assign(b),z.Bc(E+2,E+2),!z.ca(a))return ai.free(z),!1;if(b=E+1e-4,x.type===$i.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:(ai.free(z),Ln.Yb(x.startX,x.startY,x.endX,x.endY,E,a.x,a.y));if(x.type===$i.u){y=x.startX;var nt=x.startY,ot=x.endX;if(x=x.endY,z.x=Math.min(y,ot),z.y=Math.min(nt,x),z.width=Math.abs(ot-y),z.height=Math.abs(x-nt),this.fill===null){if(z.Bc(-b,-b),z.ca(a))return ai.free(z),!1;z.Bc(b,b)}return this.stroke!==null&&z.Bc(E,E),a=z.ca(a),ai.free(z),a}if(x.type===$i.F){nt=x.startX,E=x.startY,ot=x.endX;var at=x.endY;if(x=Math.min(nt,ot),y=Math.min(E,at),nt=Math.abs(ot-nt)/2,E=Math.abs(at-E)/2,x=a.x-(x+nt),y=a.y-(y+E),this.fill===null){if(nt-=b,E-=b,0>=nt||0>=E||1>=x*x/(nt*nt)+y*y/(E*E))return ai.free(z),!1;nt+=b,E+=b}return this.stroke!==null&&(nt+=b,E+=b),ai.free(z),0>=nt||0>=E?!1:1>=x*x/(nt*nt)+y*y/(E*E)}if(x.type===$i.o)return ai.free(z),this.fill===null?fh(x,a.x,a.y,E):ju(x,a,E,1<this.strokeWidth,y);sn("Unknown Geometry type: "+x.type)},Vt.Wl=function(a,y,x,b){var E=this.desiredSize,z=this.ig;if(a=Math.max(a,0),y=Math.max(y,0),this.Rd!==null)var nt=this.geometry.bounds;else{var ot=this.figure,at=Ep[ot];if(at===void 0){var ht=Ln.Ze[ot];typeof ht=="string"&&(ht=Ln.Ze[ht]),typeof ht=="function"?(at=ht(null,100,100),Ep[ot]=at):sn("Unsupported Figure: "+ot)}nt=at.bounds}ot=nt.width,at=nt.height,ht=nt.width;var ct=nt.height;switch(Zu(this,!0)){case Ei:b=x=0;break;case Ni:ht=Math.max(a-z,0),ct=Math.max(y-z,0);break;case jr:ht=Math.max(a-z,0),b=0;break;case to:x=0,ct=Math.max(y-z,0)}isFinite(E.width)&&(ht=E.width),isFinite(E.height)&&(ct=E.height);var gt=this.maxSize,Nt=this.minSize;switch(x=Math.max(x-z,Nt.width),b=Math.max(b-z,Nt.height),ht=Math.min(gt.width,ht),ct=Math.min(gt.height,ct),ht=isFinite(ht)?Math.max(x,ht):Math.max(ot,x),ct=isFinite(ct)?Math.max(b,ct):Math.max(at,b),x=$A(this),x){case Ei:break;case Ni:ot=ht,at=ct;break;case Nr:x=Math.min(ht/ot,ct/at),isFinite(x)||(x=1),ot*=x,at*=x;break;default:sn(x+" is not a valid geometryStretch.")}this.Rd!==null?(ot===0&&(ot=.001),at===0&&(at=.001),x=this.Rd!==null?this.Rd:this.ua,nt=x.bounds,b=ot/nt.width,nt=at/nt.height,isFinite(b)||(b=1),isFinite(nt)||(nt=1),this.ua=b===1&&nt===1?x:x.copy().scale(b,nt)):this.ua!==null&&Ln.$(this.ua.Sk,a-z)&&Ln.$(this.ua.Rk,y-z)||(this.ua=Go.makeGeometry(this,ot,at)),nt=this.ua.bounds,a===1/0||y===1/0?this.Ge(nt.x-z/2,nt.y-z/2,a===0&&ot===0?0:nt.width+z,y===0&&at===0?0:nt.height+z):this.Ge(-(z/2),-(z/2),ht+z,ct+z),E.w()?(ht=E.width,ct=E.height,ht=Math.min(gt.width,ht),ct=Math.min(gt.height,ct),ht=Math.max(Nt.width,ht),ct=Math.max(Nt.height,ct),this.dc.h(0,0,ht,ct)):this.dc.assign(nt)};function $A(a){var y=a.geometryStretch;return a.Rd!==null?y===Co?Ni:y:y===Co?Ep[a.figure].defaultStretch:y}Vt.eh=function(a,y,x,b){$l(this,a,y,x,b)},Vt.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Vt.Sj=function(a,y,x,b,E){var z=this.transform,nt=1/(z.m11*z.m22-z.m12*z.m21),ot=z.m22*nt,at=-z.m12*nt,ht=-z.m21*nt,ct=z.m11*nt,gt=nt*(z.m21*z.dy-z.m22*z.dx),Nt=nt*(z.m12*z.dx-z.m11*z.dy);z=a*ot+y*ht+gt,nt=a*at+y*ct+Nt,ot=x*ot+b*ht+gt,at=x*at+b*ct+Nt,gt=this.ig/2,ht=this.ua,ht===null&&(this.measure(1/0,1/0),ht=this.ua);var Kt=ht.bounds;if(ct=!1,ht.type===$i.j)if(1.5>=this.strokeWidth)ct=Ln.Ve(ht.startX,ht.startY,ht.endX,ht.endY,z,nt,ot,at,E);else{if(ht.startX===ht.endX?(b=gt,ct=0):(y=(ht.endY-ht.startY)/(ht.endX-ht.startX),ct=gt/Math.sqrt(1+y*y),b=ct*y),y=yi(),a=new ke,Ln.Ve(ht.startX+b,ht.startY+ct,ht.endX+b,ht.endY+ct,z,nt,ot,at,a)&&y.push(a),a=new ke,Ln.Ve(ht.startX-b,ht.startY-ct,ht.endX-b,ht.endY-ct,z,nt,ot,at,a)&&y.push(a),a=new ke,Ln.Ve(ht.startX+b,ht.startY+ct,ht.startX-b,ht.startY-ct,z,nt,ot,at,a)&&y.push(a),a=new ke,Ln.Ve(ht.endX+b,ht.endY+ct,ht.endX-b,ht.endY-ct,z,nt,ot,at,a)&&y.push(a),ot=y.length,ot===0)return nr(y),!1;for(ct=!0,at=1/0,b=0;b<ot;b++)a=y[b],x=(a.x-z)*(a.x-z)+(a.y-nt)*(a.y-nt),x<at&&(at=x,E.x=a.x,E.y=a.y);nr(y)}else if(ht.type===$i.u)ct=Ln.Ff(Kt.x-gt,Kt.y-gt,Kt.x+Kt.width+gt,Kt.y+Kt.height+gt,z,nt,ot,at,E);else if(ht.type===$i.F){y=ai.allocAt(Kt.x,Kt.y,Kt.width,Kt.height).Bc(gt,gt);t:if(y.width===0)ct=Ln.Ve(y.x,y.y,y.x,y.y+y.height,z,nt,ot,at,E);else if(y.height===0)ct=Ln.Ve(y.x,y.y,y.x+y.width,y.y,z,nt,ot,at,E);else{if(a=y.width/2,ht=y.height/2,b=y.x+a,ct=y.y+ht,x=9999,z!==ot&&(x=(nt-at)/(z-ot)),9999>Math.abs(x)){if(at=nt-ct-x*(z-b),0>a*a*x*x+ht*ht-at*at){E.x=NaN,E.y=NaN,ct=!1;break t}gt=Math.sqrt(a*a*x*x+ht*ht-at*at),ot=(-(a*a*x*at)+a*ht*gt)/(ht*ht+a*a*x*x)+b,a=(-(a*a*x*at)-a*ht*gt)/(ht*ht+a*a*x*x)+b,ht=x*(ot-b)+at+ct,at=x*(a-b)+at+ct,Math.abs((z-ot)*(z-ot))+Math.abs((nt-ht)*(nt-ht))<Math.abs((z-a)*(z-a))+Math.abs((nt-at)*(nt-at))?(E.x=ot,E.y=ht):(E.x=a,E.y=at)}else{if(ot=ht*ht,at=z-b,ot-=ot/(a*a)*at*at,0>ot){E.x=NaN,E.y=NaN,ct=!1;break t}at=Math.sqrt(ot),ot=ct+at,at=ct-at,Math.abs(ot-nt)<Math.abs(at-nt)?(E.x=z,E.y=ot):(E.x=z,E.y=at)}ct=!0}ai.free(y)}else if(ht.type===$i.o){Nt=ke.alloc();var Xt=ot-z,ce=at-nt,Ke=Xt*Xt+ce*ce,Te=z,$e=nt;if(0<Ke&&Kt.contains(Te,$e)&&(Nt.x=Te,Nt.y=$e,this.ca(Nt)))for(Xt!==0&&.5>Math.abs(Xt)?(ce*=.5/Xt,Xt=.5):ce!==0&&.5>Math.abs(ce)&&(Xt*=.5/ce,ce=.5),Te-=Xt,$e-=ce;Kt.contains(Te,$e);)Te-=Xt,$e-=ce;for(E.x=ot,E.y=at,ce=0;ce<ht.figures.count;ce++){var rn=ht.figures.s[ce],ln=rn.isFilled?Te:z,Bn=rn.isFilled?$e:nt,Gn=rn.segments;Kt=rn.startX,Xt=rn.startY;for(var lr=Kt,kr=Xt,Sr=0;Sr<Gn.count;Sr++){var Wi=Gn.s[Sr],Mi=Wi.type,Uo=Wi.endX,Bo=Wi.endY,ks=!1;switch(Mi){case bl:lr=Uo,kr=Bo;break;case sa:ks=bp(Kt,Xt,Uo,Bo,ln,Bn,ot,at,Nt);break;case pu:ks=Ln.Eo(Kt,Xt,Wi.point1X,Wi.point1Y,Wi.point2X,Wi.point2Y,Uo,Bo,ln,Bn,ot,at,.6,Nt);break;case gh:ks=Ln.Eo(Kt,Xt,Kt+2/3*(Wi.point1X-Kt),Xt+2/3*(Wi.point1Y-Xt),Uo+2/3*(Wi.point1X-Uo),Bo+2/3*(Wi.point1Y-Bo),Uo,Bo,ln,Bn,ot,at,.6,Nt);break;case xl:case Oh:Mi=Wi.type===xl?Xu(Wi,rn):Ku(Wi,rn,Kt,Xt);var pa=Mi.length;if(pa===0){ks=bp(Kt,Xt,Wi.type===xl?Wi.centerX:Wi.endX,Wi.type===xl?Wi.centerY:Wi.endY,ln,Bn,ot,at,Nt);break}for(Bo=null,Uo=0;Uo<pa;Uo++){if(Bo=Mi[Uo],Uo===0&&bp(Kt,Xt,Bo[0],Bo[1],ln,Bn,ot,at,Nt)){var Fu=Pp(ln,Bn,Nt,Ke,E);Fu<Ke&&(Ke=Fu,ct=!0)}Ln.Eo(Bo[0],Bo[1],Bo[2],Bo[3],Bo[4],Bo[5],Bo[6],Bo[7],ln,Bn,ot,at,.6,Nt)&&(Fu=Pp(ln,Bn,Nt,Ke,E),Fu<Ke&&(Ke=Fu,ct=!0))}Uo=Bo[6],Bo=Bo[7];break;default:sn("Unknown Segment type: "+Mi)}Kt=Uo,Xt=Bo,ks&&(ks=Pp(ln,Bn,Nt,Ke,E),ks<Ke&&(Ke=ks,ct=!0)),Wi.isClosed&&(Uo=lr,Bo=kr,bp(Kt,Xt,Uo,Bo,ln,Bn,ot,at,Nt)&&(Wi=Pp(ln,Bn,Nt,Ke,E),Wi<Ke&&(Ke=Wi,ct=!0)))}}z=x-a,nt=b-y,ot=Math.sqrt(z*z+nt*nt),ot!==0&&(z/=ot,nt/=ot),E.x-=z*gt,E.y-=nt*gt,ke.free(Nt)}else sn("Unknown Geometry type: "+ht.type);return ct?(this.transform.Ga(E),!0):!1};function Pp(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 bp(a,y,x,b,E,z,nt,ot,at){if(Ln.$(a,x)&&Ln.$(y,b)||Ln.$(E,nt)&&Ln.$(z,ot))return!1;var ht=!1,ct=(E-nt)*(y-b)-(z-ot)*(a-x);return ct===0?!1:(at.x=((E*ot-z*nt)*(a-x)-(E-nt)*(a*b-y*x))/ct,at.y=((E*ot-z*nt)*(y-b)-(z-ot)*(a*b-y*x))/ct,(a>x?a-x:x-a)<(y>b?y-b:b-y)?(a=y<b?y:b,y=y<b?b:y,(at.y>a||Ln.$(at.y,a))&&(at.y<y||Ln.$(at.y,y))&&(ht=!0)):(y=a<x?a:x,a=a<x?x:a,(at.x>y||Ln.$(at.x,y))&&(at.x<a||Ln.$(at.x,a))&&(ht=!0)),ht)}Vt.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,z=ke.alloc();return z.h(x.x-b,x.y-b),a.ca(y.Ga(z))&&(z.h(x.x-b,x.bottom+b),a.ca(y.Ga(z))&&(z.h(x.right+b,x.bottom+b),a.ca(y.Ga(z))&&(z.h(x.right+b,x.y-b),a.ca(y.Ga(z))&&(E=!0)))),ke.free(z),E},Vt.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=Ko.alloc();x.set(y),x.Vj();var b=a.left,E=a.right,z=a.top;a=a.bottom;var nt=ke.alloc();if(nt.h(b,z),x.Ga(nt),this.gh(nt,!0)||(nt.h(E,z),x.Ga(nt),this.gh(nt,!0))||(nt.h(b,a),x.Ga(nt),this.gh(nt,!0))||(nt.h(E,a),x.Ga(nt),this.gh(nt,!0)))return ke.free(nt),!0;var ot=ke.alloc(),at=ke.alloc();return x.set(y),x.bv(this.transform),x.Vj(),ot.x=E,ot.y=z,ot.transform(x),nt.x=b,nt.y=z,nt.transform(x),y=!1,bf(this,nt,ot,at)?y=!0:(nt.x=E,nt.y=a,nt.transform(x),bf(this,nt,ot,at)?y=!0:(ot.x=b,ot.y=a,ot.transform(x),bf(this,nt,ot,at)?y=!0:(nt.x=b,nt.y=z,nt.transform(x),bf(this,nt,ot,at)&&(y=!0)))),ke.free(nt),Ko.free(x),ke.free(ot),ke.free(at),y};function bf(a,y,x,b){if(!a.rs(y,x,b))return!1;a=y.x,y=y.y;var E=x.x,z=x.y;return x=b.x,b=b.y,a===E?(y<z?(a=y,y=z):a=z,b>=a&&b<=y):(a<E?(b=a,a=E):b=E,x>=b&&x<=a)}Vt.tx=function(a,y,x){function b(Ke,Te){for(var $e=Ke.length,rn=0;rn<$e;rn+=2)if(Te.zd(Ke[rn],Ke[rn+1])>E)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var E=a.Bf(y),z=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 nt=y.bounds,ot=nt.x,at=nt.y,ht=nt.x+nt.width;if(nt=nt.y+nt.height,Fa(a.x,a.y,ot,at)<=E&&Fa(a.x,a.y,ht,at)<=E&&Fa(a.x,a.y,ot,nt)<=E&&Fa(a.x,a.y,ht,nt)<=E)return!0}if(ot=y.startX,at=y.startY,ht=y.endX,nt=y.endY,y.type===$i.j){if(x=(ot-ht)*(a.x-ht)+(at-nt)*(a.y-nt),os(a.x,a.y,ot,at,ht,nt)<=(0<=(ht-ot)*(a.x-ot)+(nt-at)*(a.y-at)&&0<=x?E:z))return!0}else{if(y.type===$i.u)return y=!1,x&&(y=os(a.x,a.y,ot,at,ot,nt)<=E||os(a.x,a.y,ot,at,ht,at)<=E||os(a.x,a.y,ht,at,ht,nt)<=E||os(a.x,a.y,ot,nt,ht,nt)<=E),y;if(y.type===$i.F){y=a.x-(ot+ht)/2,z=a.y-(at+nt)/2;var ct=Math.abs(ht-ot)/2,gt=Math.abs(nt-at)/2;if(ct===0||gt===0)return os(a.x,a.y,ot,at,ht,nt)<=E;if(x){if(a=Ln.$y(ct,gt,y,z),a*a<=E)return!0}else return!(Fa(y,z,-ct,0)>=E||Fa(y,z,0,-gt)>=E||Fa(y,z,0,gt)>=E||Fa(y,z,ct,0)>=E)}else if(y.type===$i.o){if(ht=y.bounds,z=ht.x,ot=ht.y,at=ht.x+ht.width,ht=ht.y+ht.height,a.x>at&&a.x<z&&a.y>ht&&a.y<ot&&os(a.x,a.y,z,ot,z,ht)>E&&os(a.x,a.y,z,ot,at,ot)>E&&os(a.x,a.y,at,ht,z,ht)>E&&os(a.x,a.y,at,ht,at,ot)>E)return!1;if(z=Math.sqrt(E),x){if(this.fill===null?fh(y,a.x,a.y,z):ju(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;y<x.count;y++){if(z=x.s[y],nt=z.startX,ct=z.startY,a.zd(nt,ct)>E)return!1;for(ot=z.segments.s,at=ot.length,ht=0;ht<at;ht++)switch(gt=ot[ht],gt.type){case bl:case sa:if(nt=gt.endX,ct=gt.endY,a.zd(nt,ct)>E)return!1;break;case pu:var Nt=yi();if(Ln.Qe(nt,ct,gt.point1X,gt.point1Y,gt.point2X,gt.point2Y,gt.endX,gt.endY,.8,Nt),nt=b(Nt,a),nr(Nt),nt||(nt=gt.endX,ct=gt.endY,a.zd(nt,ct)>E))return!1;break;case gh:if(Nt=yi(),Ln.ep(nt,ct,gt.point1X,gt.point1Y,gt.endX,gt.endY,.8,Nt),nt=b(Nt,a),nr(Nt),nt||(nt=gt.endX,ct=gt.endY,a.zd(nt,ct)>E))return!1;break;case xl:case Oh:Nt=gt.type===xl?Xu(gt,z):Ku(gt,z,nt,ct);var Kt=Nt.length;if(Kt===0){if(nt=gt.type===xl?gt.centerX:gt.endX,ct=gt.type===xl?gt.centerY:gt.endY,a.zd(nt,ct)>E)return!1;break}gt=null;for(var Xt=yi(),ce=0;ce<Kt;ce++)if(gt=Nt[ce],Xt.length=0,Ln.Qe(gt[0],gt[1],gt[2],gt[3],gt[4],gt[5],gt[6],gt[7],.8,Xt),b(Xt,a))return nr(Xt),!1;nr(Xt),gt!==null&&(nt=gt[6],ct=gt[7]);break;default:sn("Unknown Segment type: "+gt.type)}}return!0}}}return!1},Vt.qc=function(){this.ua=null},Vt.kq=function(){return this.ig};function h0(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=y0,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=nl):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new xr(1-nl.x,nl.y)))}Go.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var b=qd[a.toArrow];else a.fromArrow!=="None"?b=qd[a.fromArrow]:(b=Ln.Ze[a.figure],typeof b=="string"&&(b=Ln.Ze[b]),b===void 0&&sn("Unknown Shape.figure: "+a.figure),b=b(a,y,x),b.Sk=y,b.Rk=x);if(b===null){var E=Ln.Ze.Rectangle;typeof E=="function"&&(b=E(a,y,x))}return b};function Xg(a){var y=qd[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=qd[x],y===void 0){var b=null,E;for(E in Ln.um)if(E.toLowerCase()===x){b=E;break}if(b!==null)return a=$i.parse(Ln.um[b],!1),qd[b]=a,x!==b&&(qd[x]=b),b}}return typeof y=="string"?y:y instanceof $i?a:null}Re.Object.defineProperties(Go.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),fu(this)&&(a=this.part,a!==null&&Js(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=$i.parse(a);var y=a.normalize();this.geometry=a,this.position=a=ke.allocAt(-y.x,-y.y),ke.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&&Qt(a,"Shape.fill"),a instanceof Rs&&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&&Qt(a,"Shape.stroke"),a instanceof Rs&&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 Zi(a,"value >= 0",Go,"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"?Zi(a,'"butt", "round", or "square"',Go,"strokeCap"):(Bf(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"?Zi(a,'"miter", "bevel", or "round"',Go,"strokeJoin"):(Bf(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){Bf(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 z=a[E];0<=z&&isFinite(z)||sn("strokeDashArray:value "+z+" at index "+E+" must be a positive number or zero."),b+=z}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&&(Bf(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=Ln.Ze[a];typeof x=="function"?x=a:(x=Ln.Ze[a.toLowerCase()])||sn("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=Xg(a);x===null?sn("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new MA),this.Ua.V=x,this.Rd=null,this.qc(),this.v(),h0(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=Xg(a);x===null?sn("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new MA),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),h0(this),this.g("fromArrow",y,x))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:Bs},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),Bf(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:Bs},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),Bf(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&&(Bf(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:Co},set:function(a){var y=this.geometryStretch;y!==a&&(Bf(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 XA),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&rc(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 XA),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 XA),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 XA),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),Go.prototype.intersectsRect=Go.prototype.Yc,Go.prototype.containedInRect=Go.prototype.fh,Go.prototype.getNearestIntersectionPoint=Go.prototype.rs,Go.prototype.getDocumentBounds=Go.prototype.mi,Go.prototype.getDocumentPoint=Go.prototype.ga;var qd=new no,Ep=new no;Go.className="Shape",Go.getFigureGenerators=function(){var a=new Cr,y;for(y in Ln.Ze)y!==y.toLowerCase()&&a.add(y,Ln.Ze[y]);return a.freeze(),a},Go.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),b=Ln.Ze;b[a]=y,b[x]=a},Go.getArrowheadGeometries=function(){var a=new Cr;for(b in Ln.um)if(qd[b]===void 0){var y=$i.parse(Ln.um[b],!1);qd[b]=y,y=b.toLowerCase(),y!==b&&(qd[y]=b)}for(var x in qd)if(x!==x.toLowerCase()){var b=qd[x];b instanceof $i&&a.add(x,b)}return a.freeze(),a},Go.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=$i.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||sn("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var b=qd;b[a]=x,b[y]=a};function Fg(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=Co,this.gg=this.fg=Bs}Fg.prototype.copy=function(){var a=new Fg;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 ha(a,y){return xn.call(this),Ng||(Mh=Us?new yc(null).context:null,Ng=!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}On(ha,xn),ha.prototype.cloneProtected=function(a){xn.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 Uc(a){a.da===null?a.da=new tp:a.da.nc&&(a.da=a.da.copy())}Vt=ha.prototype,Vt.th=function(){xn.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function c0(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}Vt.qb=function(a){a.classType===ha?this.wrap=a:xn.prototype.qb.call(this,a)},Vt.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},Vt.v=function(){xn.prototype.v.call(this)},Vt.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,z=x.height,nt=mA(this),ot=a.textAlign=this.textAlign,at=y.tn;ot==="start"?ot=at?"right":"left":ot==="end"&&(ot=at?"left":"right"),at=this.isUnderline;var ht=this.isStrikethrough;Ca(this,a,this.xc,!0,!1,x,b),(at||ht)&&Ca(this,a,this.xc,!1,!1,x,b),b=0,x=!1;var ct=this.oe,gt=ct.dx-(nt*ct.m21+ct.dx);ct=ct.dy-(nt*ct.m22+ct.dy);var Nt=y.scale;switch(8>(gt*gt+ct*ct)*Nt*Nt&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof Sh&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,gt=this.spacingBelow,this.flip){case ss:a.translate(E,0),a.scale(-1,1);break;case Do:a.translate(0,z),a.scale(1,-1);break;case Ds:a.translate(E,z),a.scale(-1,-1)}if(a.yc(),ct=this.Gc,Nt=(y+nt+gt)*ct,z>Nt&&(b=this.verticalAlignment,b=b.y*z-b.y*Nt+b.offsetY),ct===1&&this.ze!==null)gt=this.Cb,gt>E&&(gt=E),this.Oj(this.ze,a,0,b+y,E,nt,gt,x,ot,at,ht);else if(this.Qc!==null&&this.Qb!==null)for(Nt=0;Nt<ct;Nt++){var Kt=this.Qc[Nt];Kt>E&&(Kt=E),b+=y,this.Oj(this.Qb[Nt],a,0,b,E,nt,Kt,x,ot,at,ht),b+=nt+gt}switch(this.flip){case ss:a.scale(-1,1),a.translate(-E,0);break;case Do:a.scale(1,-1),a.translate(0,-z);break;case Ds:a.scale(-1,-1),a.translate(-E,-z)}}},Vt.Oj=function(a,y,x,b,E,z,nt,ot,at,ht,ct){var gt=0;if(ot)at==="left"?gt=0:at==="right"?gt=E-nt:at==="center"&&(gt=(E-nt)/2),y.fillRect(x+gt,b+.25*z,nt,1);else{if(at==="left"?gt=0:at==="right"?gt=E:at==="center"&&(gt=E/2),E=Fp!==null?Fp(this,z):.75*z,y.fillText(a,x+gt,b+E),a=z/20|0,a===0&&(a=1),at==="right"?gt-=nt:at==="center"&&(gt-=nt/2),ht){ot=qg!==null?qg(this,z):.8*z,at=x+gt,ht=b+ot,E=x+gt+nt,ot=b+ot;var Nt=a;y.beginPath(),y.lineWidth=Nt,y.moveTo(at,ht),y.lineTo(E,ot),y.stroke(),y.Se(),y instanceof Sh&&y.ad.classList.add("gojs-td")}ct&&(ct=b+z-z/2.2|0,a%2!==0&&(ct+=.5),b=x+gt,z=ct,x=x+gt+nt,nt=ct,gt=a,y.beginPath(),y.lineWidth=gt,y.moveTo(b,z),y.lineTo(x,nt),y.stroke(),y.Se(),y instanceof Sh&&y.ad.classList.add("gojs-td"))}},Vt.kk=function(a,y,x){if(!xn.prototype.kk.call(this,a,y,x))return!1;if(Ca(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++)Yf(a,y[x],!1)}else y=this.svg,y.innerHTML=this.text,Yf(a,y,!0);return!0},Vt.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:xn.prototype.nk.call(this,a)},Vt.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)}},Vt.Wl=function(a,y,x,b){var E=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;Mh!==null&&f0!==z&&(f0=Mh.font=z),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var nt;if(isNaN(this.desiredSize.width)){if(z=this.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),z.length===0)z=8;else if(this.isMultiline){for(var ot=nt=0,at=!1;!at;){var ht=z.indexOf(`
|
|
|
`,ot);ht===-1&&(ht=z.length,at=!0),ot=z.substr(ot,ht-ot),this.formatting===hf&&(ot=ot.trim()),nt=Math.max(nt,Rc(ot)),ot=ht+1}z=nt}else nt=z.indexOf(`
|
|
|
`,0),0<=nt&&(z=z.substr(0,nt)),z=Rc(z);z=Math.min(z,a/this.scale)}else z=this.desiredSize.width;if(this.panel!==null&&(z=Math.min(z,this.panel.maxSize.width)),nt=A0(this,z),isNaN(this.desiredSize.height)?nt=Math.min(nt,y/this.scale):nt=this.desiredSize.height,at=nt,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===Np&&(y=this.Ae,y=this.overflow===Np?d0(y):0,ht=this.spacingAbove+this.spacingBelow,ht=Math.max(0,mA(this)+ht),at=Math.min(this.maxLines-1,Math.max(Math.floor(at/ht+.01)-1,0)),!(at+1>=this.Qb.length))){for(this.l|=16777216,ht=this.Qb[at],y=Math.max(1,a-y);Rc(ht)>y&&1<ht.length;)ht=ht.substr(0,ht.length-1);ht+=tg,y=Rc(ht),this.Qb[at]=ht,this.Qb=this.Qb.slice(0,at+1),this.Qc[at]=y,this.Qc=this.Qc.slice(0,at+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===em||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(x,z),nt=Math.max(b,nt),Ta(this.dc,z,nt),this.Ge(0,0,z,nt),this.svg!==null&&E!==this.Gc&&(this.Uc=!0)},Vt.eh=function(a,y,x,b){$l(this,a,y,x,b)};function Jg(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 Lg(a,y,x,b){var E=a.formatting===hf;E&&(y=y.trim());var z=0,nt=a.Ae,ot=a.spacingAbove+a.spacingBelow;ot=Math.max(0,mA(a)+ot);var at=a.overflow===Np?d0(nt):0;if(a.Gc>=a.maxLines)b!==null&&b.h(0,ot);else if(nt=y,a.wrap===Ef){a.Le=1;var ht=Rc(y);if(at===0||ht<=x)a.Cb=Math.max(a.Cb,ht),Jg(a,y,a.Cb),b!==null&&b.h(ht,ot);else{for(z=qf(a,nt),nt=nt.substr(z.length),y=qf(a,nt),ht=Rc(z+y);0<y.length&&ht<=x;)z+=y,nt=nt.substr(y.length),y=qf(a,nt),ht=z+y,E&&(ht=ht.trim()),ht=Rc(ht);for(E&&(y=y.trim()),z+=y,x=Math.max(1,x-at);Rc(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=tg;var ct=Rc(z);a.Cb=ct,Jg(a,z,ct),b!==null&&b.h(ct,ot)}}else{for(at=0,nt.length===0&&(at=1,Jg(a,nt,0));0<nt.length;){for(y=qf(a,nt),nt=nt.substr(y.length);Rc(y)>x;){var gt=1;for(ht=Rc(y.substr(0,gt)),ct=0;ht<=x;)gt++,ct=ht,ht=Rc(y.substr(0,gt));if(gt===1){var Nt=ht;z=Math.max(z,ht)}else Nt=ct,z=Math.max(z,ct);if(gt--,1>gt&&(gt=1),Jg(a,y.substr(0,gt),Nt),at++,y=y.substr(gt),a.Gc+at>a.maxLines)break}for(ct=qf(a,nt),ht=Rc(y+ct);0<ct.length&&ht<=x;)y+=ct,nt=nt.substr(ct.length),ct=qf(a,nt),ht=y+ct,E&&(ht=ht.trim()),ht=Rc(ht);if(E&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),ct.length===0?(gt=ht,z=Math.max(z,ht)):(gt=ct=Rc(y),z=Math.max(z,ct)),Jg(a,y,gt),at++,a.Gc+at>a.maxLines))break}a.Le=Math.min(a.maxLines,at),a.Cb=Math.max(a.Cb,z),b!==null&&b.h(a.Cb,ot*a.Le)}}function qf(a,y){if(a.wrap===nm)return y.substr(0,1);for(var x=y.length,b=0,E=kp;b<x&&!E.test(y.charAt(b));)b++;for(a.formatting===Ip&&(x=Math.min(x,b+1));b<x&&E.test(y.charAt(b));)b++;return b>=y.length?y:y.substr(0,b)}function Rc(a){return Mh===null?8*a.length:Mh.measureText(a).width}function mA(a){if(a.df!==null)return a.df;var y=a.Ae;if(Mh===null){var x=16;return a.df=x}return TA[y]!==void 0&&5e3>cf?x=TA[y]:(x=1.3*Mh.measureText("M").width,TA[y]=x,cf++),a.df=x}function d0(a){if(Mh===null)return 6;if(OA[a]!==void 0&&5e3>Mg)var y=OA[a];else y=Mh.measureText(tg).width,OA[a]=y,Mg++;return y}function A0(a,y){var x=a.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),b=a.spacingAbove+a.spacingBelow;if(b=Math.max(0,mA(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 z=a.Gc=0,nt,ot=!1;!ot;){if(nt=x.indexOf(`
|
|
|
`,z),nt===-1&&(nt=x.length,ot=!0),z<=nt){if(z=x.substr(z,nt-z),a.wrap!==Ef){a.Le=0;var at=Ki.alloc();Lg(a,z,y,at),E+=at.height,Ki.free(at),a.Gc+=a.Le}else Lg(a,z,y,null),E+=b,a.Gc++;a.Gc===a.maxLines&&(ot=!0)}z=nt+1}return a.Lq=E}Re.Object.defineProperties(ha.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"||(Uc(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:Ei},set:function(a){var y=this.flip;y!==a&&(Uc(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:el},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),Uc(this),this.da.Yr=a,Hl(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=Ki.alloc();Lg(this,this.ec,999999,a);var y=a.width;Ki.free(a),a=A0(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),Ta(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:Lp},set:function(a){var y=this.wrap;y!==a&&(Uc(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:Mp},set:function(a){var y=this.overflow;y!==a&&(Uc(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&&Qt(a,"TextBlock.stroke"),a instanceof Rs&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return mA(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&&(Uc(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&&(Uc(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 XA),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 XA),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 XA),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 XA),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 XA),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&&(Uc(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&&(Uc(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&&(Uc(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&&(Uc(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:hf},set:function(a){var y=this.formatting;y!==a&&(Uc(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&&Zi(a,"> 0",ha,"maxLines"),Uc(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 Fp=null,qg=null,Ef=new ri(ha,"None",0),em=new ri(ha,"WrapFit",1),Lp=new ri(ha,"WrapDesiredSize",2),nm=new ri(ha,"WrapBreakAll",3),Mp=new ri(ha,"OverflowClip",0),Np=new ri(ha,"OverflowEllipsis",1),hf=new ri(ha,"FormatTrim",0),Ip=new ri(ha,"FormatNone",0),kp=/[ \u200b\u00ad]/,TA=new no,cf=0,OA=new no,Mg=0,tg="...",f0="",Mh=null,Ng=!1;ha.className="TextBlock";function tp(){this.nc=!1,this.Hd=null,this.Xf=Ei,this.gq=hf,this.Jq=1/0,this.$q=Mp,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=el,this.$r=Lp}tp.prototype.copy=function(){var a=new tp;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},ha.getEllipsis=function(){return tg},ha.setEllipsis=function(a){tg=a,OA=new no,Mg=0},ha.getBaseline=function(){return Fp},ha.setBaseline=function(a){Fp=a},ha.getUnderline=function(){return qg},ha.setUnderline=function(a){qg=a},ha.isValidFont=function(a){if(Ng||(Mh=Us?new yc(null).context:null,Ng=!0),Mh===null)return!0;var y=Mh.font;if(a===y||a==="10px sans-serif")return!0;Mh.font="10px sans-serif",Mh.font=a;var x=Mh.font;if(x!=="10px sans-serif")return Mh.font=y,!0;Mh.font="19px serif";var b=Mh.font;return Mh.font=a,x=Mh.font,Mh.font=y,x!==b},ha.FormatNone=Ip,ha.FormatTrim=hf,ha.None=Ef,ha.OverflowClip=Mp,ha.OverflowEllipsis=Np,ha.WrapBreakAll=nm,ha.WrapDesiredSize=Lp,ha.WrapFit=em;function XA(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}XA.prototype.copy=function(){var a=new XA;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},XA.className="GradElementSettings";function uc(a,y){xn.call(this),this.Eg=null,this.qo="",this.Xg=Zs,this.Nk=Ni,this.Zg=this.Hd=null,this.Mk=Yo,this.Xf=Ei,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 Tp;On(uc,xn),uc.prototype.cloneProtected=function(a){xn.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},uc.prototype.qb=function(a){a===Ei||a===Nr||a===$o?this.imageStretch=a:xn.prototype.qb.call(this,a)},uc.prototype.toString=function(){return"Picture("+this.source+")#"+fs(this)};function Op(a){a===void 0&&(a=""),a!==""?Tp[a]&&(delete Tp[a],im--):(Tp=new no,im=0)}function ky(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 z=y.getAttribute("src")||"",nt=E.Og.I(z);if(nt!==null)for(var ot=nt.length,at=0;at<ot;at++)z=nt[at],E.Xn.add(z),z.Uc=!0,E.$b(),y.hn&&(y.eu===void 0&&(y.eu=x),z.Zg!==null&&z.Zg(z,x))}y.Bg.clear()}a.desiredSize.w()||(Ql(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,z=y.getAttribute("src")||"",nt=E.Og.I(z);if(nt!==null){E=nt.length,z=yi();for(var ot=0;ot<E;ot++)z.push(nt[ot]);if(y.hn)for(ot=0;ot<E;ot++)nt=z[ot],nt.Hd!==null&&nt.Hd(nt,x);nr(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}uc.prototype.hA=function(){if(this.source!==""){Op(this.source);var a=this.source;this.source="",this.source=a}},uc.prototype.redraw=function(){this.N(),this.Uc=!0},uc.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 ZA)){var E=a instanceof Sh;b=this.naturalBounds;var z=0,nt=0,ot=this.qn,at=ot?+x.width:x.naturalWidth;if(ot=ot?+x.height:x.naturalHeight,at===void 0&&x.videoWidth&&(at=x.videoWidth),ot===void 0&&x.videoHeight&&(ot=x.videoHeight),at=at||b.width,ot=ot||b.height,at!==0&&ot!==0){var ht=at,ct=ot;this.sourceRect.w()&&(z=this.Xg.x,nt=this.Xg.y,at=this.Xg.width,ot=this.Xg.height);var gt=at,Nt=ot,Kt=this.Nk,Xt=this.Mk;switch(Kt){case Ei:if(this.sourceRect.w())break;gt>=b.width&&(z=z+Xt.offsetX+(gt*Xt.x-b.width*Xt.x)),Nt>=b.height&&(nt=nt+Xt.offsetY+(Nt*Xt.y-b.height*Xt.y)),at=Math.min(b.width,gt),ot=Math.min(b.height,Nt);break;case Ni:gt=b.width,Nt=b.height;break;case Nr:case $o:Kt===Nr?(Kt=Math.min(b.height/Nt,b.width/gt),gt*=Kt,Nt*=Kt):Kt===$o&&(Kt=Math.max(b.height/Nt,b.width/gt),gt*=Kt,Nt*=Kt,gt>=b.width&&(z=(z+Xt.offsetX+(gt*Xt.x-b.width*Xt.x)/gt)*at),Nt>=b.height&&(nt=(nt+Xt.offsetY+(Nt*Xt.y-b.height*Xt.y)/Nt)*ot),at*=1/(gt/b.width),ot*=1/(Nt/b.height),gt=b.width,Nt=b.height)}Kt=this.Df()*y.scale;var ce=gt*Kt*Nt*Kt,Ke=at*ot/ce,Te=x.__goCache;Kt=null;var $e=Ew;if(!E){if(x.sq&&Te!==void 0&&4<ce&&Ke>$e*$e)for(Te.gi===null&&(Oy(Te,4,ht,ct,x),Oy(Te,16,ht,ct,x)),E=Te.gi,ht=E.length,ct=0;ct<ht&&E[ct].ratio*E[ct].ratio<Ke;ct++)Kt=E[ct];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{E=new yc(null).context;try{E.drawImage(this.Eg,0,0)}catch(rn){this.en=!1}try{E.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(rn){this.vl=!0}}if(this.vl)return}}switch(E=gt<b.width?Xt.offsetX+(b.width*Xt.x-gt*Xt.x):0,Xt=Nt<b.height?Xt.offsetY+(b.height*Xt.y-Nt*Xt.y):0,this.flip){case ss:a.translate(Math.min(b.width,gt),0),a.scale(-1,1);break;case Do:a.translate(0,Math.min(b.height,Nt)),a.scale(1,-1);break;case Ds:a.translate(Math.min(b.width,gt),Math.min(b.height,Nt)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&Te!==void 0&&Kt!==null&&Kt.ratio!==1){a.save(),y=Kt.ratio;try{a.drawImage(Kt.source,z/y,nt/y,Math.min(Kt.source.width,at/y),Math.min(Kt.source.height,ot/y),E,Xt,Math.min(b.width,gt),Math.min(b.height,Nt)),a instanceof Sh&&(this.bt=[z/y,nt/y,Math.min(Kt.source.width,at/y),Math.min(Kt.source.height,ot/y),E,Xt,Math.min(b.width,gt),Math.min(b.height,Nt)])}catch(rn){this.en=!1}a.restore()}else try{a.drawImage(x,z,nt,at,ot,E,Xt,Math.min(b.width,gt),Math.min(b.height,Nt)),a instanceof Sh&&(this.bt=[z,nt,at,ot,E,Xt,Math.min(b.width,gt),Math.min(b.height,Nt)])}catch(rn){this.en=!1}switch(this.flip){case ss:a.scale(-1,1),a.translate(-Math.min(b.width,gt),0);break;case Do:a.scale(1,-1),a.translate(0,-Math.min(b.height,Nt));break;case Ds:a.scale(-1,-1),a.translate(-Math.min(b.width,gt),-Math.min(b.height,Nt))}}}}},uc.prototype.Wl=function(a,y,x,b){var E=this.desiredSize,z=Zu(this,!0),nt=this.Eg,ot=this.qn,at=0,ht=0;(ot||!this.al&&nt&&nt.complete)&&(this.al=!0),nt===null?(isFinite(E.width)||(a=0),isFinite(E.height)||(y=0)):(at=ot?+nt.width:nt.naturalWidth,ht=ot?+nt.height:nt.naturalHeight),isFinite(E.width)||z===Ni||z===jr?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:nt!==null&&(a=at)),x=0):nt!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:at),isFinite(E.height)||z===Ni||z===to?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:nt!==null&&(y=ht)),b=0):nt!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:ht),isFinite(E.width)&&(a=E.width),isFinite(E.height)&&(y=E.height),E=this.maxSize,z=this.minSize,x=Math.max(x||0,z.width),b=Math.max(b||0,z.height),a=Math.min(E.width,a),y=Math.min(E.height,y),a=Math.max(x,a),y=Math.max(b,y),nt===null||nt.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),Ta(this.dc,a,y),this.Ge(0,0,a,y)},uc.prototype.eh=function(a,y,x,b){$l(this,a,y,x,b)},Re.Object.defineProperties(uc.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||sn("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var b=this.diagram;b!==null&&hA(b,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new bi),b!==null&&x&&hd(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()||(Ql(this,!1),this.v())):x&&ky(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=Tp;if(Us){var b=null;if(x[a]!==void 0)b=x[a];else if(a!==""){30<im&&(Op(),x=Tp),b=tr("img"),b.hn=!0,ky(this,b);var E=this.rl;E!==null&&(b.crossOrigin=E(this)),b.src=a,x[a]=b,im++}this.element=b,b!==null&&b.__goCache===void 0&&(b.__goCache=new Ty),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}}}),uc.prototype.redraw=uc.prototype.redraw,uc.prototype.reloadSource=uc.prototype.hA;var im=0,Ew=4;uc.className="Picture",Tp=new no,uc.clearCache=Op;function Ty(){this.gi=null}function Oy(a,y,x,b,E){a.gi===null&&(a.gi=[]);var z=new yc(null),nt=z.context,ot=1/y;z.width=x/y,z.height=b/y,z.width!==0&&z.height!==0&&(y=new Dy(z.Oa,y),x=1,0<a.gi.length&&(x=a.gi[a.gi.length-1],E=x.source,x=x.ratio),nt.setTransform(ot*x,0,0,ot*x,0,0),nt.yc(),nt.drawImage(E,0,0),a.gi.push(y))}Ty.className="PictureCacheArray";function Dy(a,y){this.source=a,this.ratio=y}Dy.className="PictureCacheInstance";function Dp(){this.os=new $i,this.mc=null}Dp.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new $i,this.mc=null};function jp(a,y,x,b,E,z){a.mc=new il,a.mc.startX=y,a.mc.startY=x,a.mc.isFilled=b,a.mc.isEvenOdd=z||!1,a.os.figures.add(a.mc),E!==void 0&&(a.mc.isShadowed=E)}function Fw(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}Dp.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var b=new gs(bl);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)},Dp.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var b=new gs(sa);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)};function Ff(a,y,x,b,E,z,nt){var ot;ot===void 0&&(ot=!1);var at=new gs(pu);at.point1X=y,at.point1Y=x,at.point2X=b,at.point2Y=E,at.endX=z,at.endY=nt,ot&&at.close(),a.mc.segments.add(at)}function rm(a,y,x,b,E){var z;z===void 0&&(z=!1);var nt=new gs(gh);nt.point1X=y,nt.point1Y=x,nt.endX=b,nt.endY=E,z&&nt.close(),a.mc.segments.add(nt)}Dp.prototype.arcTo=function(a,y,x,b,E,z,nt){z===void 0&&(z=0),nt===void 0&&(nt=!1);var ot=new gs(xl);ot.startAngle=a,ot.sweepAngle=y,ot.centerX=x,ot.centerY=b,ot.radiusX=E,ot.radiusY=z!==0?z:E,nt&&ot.close(),this.mc.segments.add(ot)};function Lw(a,y,x,b,E,z,nt,ot){var at;at===void 0&&(at=!1),y=new gs(Oh,nt,ot,y,x,b,E,z),at&&y.close(),a.mc.segments.add(y)}function jy(a){var y=om;return y!==null?(om=null,y.reset(a),y):(y=new Dp,y.reset(a),y)}var om=null;Dp.className="StreamGeometryContext";function Bh(a,y){var x=a.toLowerCase(),b=Ln.Ze;b[a]=y,b[x]=a}Bh("Rectangle",function(a,y,x){a="r"+y+","+x;var b=Ln.Mf[a];return b!==void 0||(b=new $i($i.u),b.endX=y,b.endY=x,Ln.Nf<Ln.vm&&(Ln.Mf[a]=b,Ln.Nf++)),b}),Bh("Square",function(a,y,x){a="s"+y+","+x;var b=Ln.Mf[a];return b!==void 0||(b=new $i($i.u),b.endX=y,b.endY=x,b.defaultStretch=Nr,Ln.Nf<Ln.vm&&(Ln.Mf[a]=b,Ln.Nf++)),b}),Bh("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=Ln.Mf[b];if(E!==void 0)return E;var z=a*Ln.wg;return E=new $i().add(new il(a,0,!0).add(new gs(sa,y-a,0)).add(new gs(pu,y,a,y-z,0,y,z)).add(new gs(sa,y,x-a)).add(new gs(pu,y-a,x,y,x-z,y-z,x)).add(new gs(sa,a,x)).add(new gs(pu,0,x-a,z,x,0,x-z)).add(new gs(sa,0,a)).add(new gs(pu,a,0,0,z,z,0).close())),1<z&&(E.spot1=new xr(0,0,z,z),E.spot2=new xr(1,1,-z,-z)),Ln.Nf<Ln.vm&&(Ln.Mf[b]=E,Ln.Nf++),E}),Bh("Border","RoundedRectangle"),Bh("Ellipse",function(a,y,x){a="e"+y+","+x;var b=Ln.Mf[a];return b!==void 0||(b=new $i($i.F),b.endX=y,b.endY=x,b.spot1=Ac,b.spot2=rh,Ln.Nf<Ln.vm&&(Ln.Mf[a]=b,Ln.Nf++)),b}),Bh("Circle",function(a,y,x){a="c"+y+","+x;var b=Ln.Mf[a];return b!==void 0||(b=new $i($i.F),b.endX=y,b.endY=x,b.spot1=Ac,b.spot2=rh,b.defaultStretch=Nr,Ln.Nf<Ln.vm&&(Ln.Mf[a]=b,Ln.Nf++)),b}),Bh("TriangleRight",function(a,y,x){return new $i().add(new il(0,0).add(new gs(sa,y,.5*x)).add(new gs(sa,0,x).close())).pm(0,.25,.5,.75)}),Bh("TriangleDown",function(a,y,x){return new $i().add(new il(0,0).add(new gs(sa,y,0)).add(new gs(sa,.5*y,x).close())).pm(.25,0,.75,.5)}),Bh("TriangleLeft",function(a,y,x){return new $i().add(new il(y,x).add(new gs(sa,0,.5*x)).add(new gs(sa,y,0).close())).pm(.5,.25,1,.75)}),Bh("TriangleUp",function(a,y,x){return new $i().add(new il(y,x).add(new gs(sa,0,x)).add(new gs(sa,.5*y,0).close())).pm(.25,.5,.75,1)}),Bh("Triangle","TriangleUp"),Bh("Diamond",function(a,y,x){return new $i().add(new il(.5*y,0).add(new gs(sa,0,.5*x)).add(new gs(sa,.5*y,x)).add(new gs(sa,y,.5*x).close())).pm(.25,.25,.75,.75)}),Bh("LineH",function(a,y,x){return a=new $i($i.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),Bh("LineV",function(a,y,x){return a=new $i($i.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),Bh("None","Rectangle"),Bh("BarH","Rectangle"),Bh("BarV","Rectangle"),Bh("MinusLine","LineH"),Bh("PlusLine",function(a,y,x){return new $i().add(new il(0,x/2,!1).add(new gs(sa,y,x/2)).add(new gs(bl,y/2,0)).add(new gs(sa,y/2,x)))}),Bh("XLine",function(a,y,x){return new $i().add(new il(0,x,!1).add(new gs(sa,y,0)).add(new gs(bl,0,0)).add(new gs(sa,y,x)))}),Bh("LineRight",function(a,y,x){return new $i().add(new il(.25*y,0,!1).add(new gs(sa,.75*y,.5*x)).add(new gs(sa,.25*y,x)))}),Bh("LineDown",function(a,y,x){return new $i().add(new il(0,.25*x,!1).add(new gs(sa,.5*y,.75*x)).add(new gs(sa,y,.25*x)))}),Bh("LineLeft",function(a,y,x){return new $i().add(new il(.75*y,0,!1).add(new gs(sa,.25*y,.5*x)).add(new gs(sa,.75*y,x)))}),Bh("LineUp",function(a,y,x){return new $i().add(new il(0,.75*x,!1).add(new gs(sa,.5*y,.25*x)).add(new gs(sa,y,.75*x)))}),Ln.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 yv(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=Ka,this.ir=null,this.jr="",this.lr=Bs,this.Gq="",this.Hq=Oa,this.Pq=ta,this.Kq=qa,this.Up=null,this.Cq=127,this.zr=ol,this.yr="gray",this.Vg=4}yv.prototype.copy=function(){var a=new yv;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 Yr(a,y){a===void 0||a instanceof Fn||typeof a=="string"?qn.call(this,a):(qn.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 ke(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new ai,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}On(Yr,qn),Yr.prototype.cloneProtected=function(a){qn.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},Vt=Yr.prototype,Vt.Af=function(a){qn.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},Vt.toString=function(){var a=sr(this.constructor)+"#"+fs(this);return this.data!==null&&(a+="("+Rr(this.data)+")"),a};function hc(a){a.P===null?a.P=new yv:a.P.nc&&(a.P=a.P.copy())}Vt.th=function(){qn.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},Vt.gk=function(a,y,x,b,E,z,nt){var ot=this.diagram;ot!==null&&(a===vl&&y==="elements"?E instanceof qn?ua(E,function(at){Wv(ot.partManager,at),pc(ot,at)}):hd(ot,E):a===Zl&&y==="elements"&&(E instanceof qn?ua(E,function(at){Vv(ot.partManager,at,ot)}):hA(ot,E)),ot.cb(a,y,x,b,E,z,nt))},Vt.La=function(a){if(qn.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 qn&&ua(E,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},Yr.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},Yr.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},Yr.prototype.bh=function(a,y){if(y!==null){var x=null,b=this.Qf;if(b!==null&&(x=b.I(a)),x!==y){if(x!==null){var E=x.diagram;E!==null&&E.remove(x)}b===null&&(this.Qf=b=new Cr),y.Tf!==a&&(y.category=a),b.add(a,y),a=this.diagram,a!==null&&(a.add(y),a=y.adornedObject,a!==null&&(a=a.ih(),a!==null&&(y.data=a.data)))}}},Yr.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)}},Yr.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=yi();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);nr(y)}},Yr.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()}t:{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 _o?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof bs))break t;lh(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=qn.Link),x.adornedObject=y)}if(x!==null){x.type===qn.Link&&x.v(),this.bh("Selection",x);break t}}this.Jf("Selection")}for(Mw(this,a),y=this.adornments;y.next();)y.value.La()}},Yr.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function wv(a){a.G&16384&&(a.updateAdornments(),a.G&=-16385)}function Mw(a,y){y.toolManager.mouseDownTools.each(function(x){x.isEnabled&&x.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function sm(a){if(eg(a)===!1){Sv(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function Uy(a){if(a.G|=2097152,eg(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||Hy(a,y,x),x=a.Ib;var b=ai.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(b,x),ai.free(b),Sv(a,!1)}}Yr.prototype.Ge=function(a,y,x,b){var E=this.uc;E.h(a,y,x,b),this.Lb===null&&(this.Lb=new Ko);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),this.Lb=z,z.ws()||z.pp(E)},Yr.prototype.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Yo;this.locationSpot.sb()&&(z=this.locationSpot);var nt=ke.alloc();if(this.locationObject!==this)for(y=this.locationObject,x=y.naturalBounds,nt.yi(x.x,x.y,x.width,x.height,z),y.Lb!==null&&y.Lb.Ga(nt),nt.offset(-y.measuredBounds.x,-y.measuredBounds.y),z=y.panel;z!==null&&z!==this;)z.Lb!==null&&z.Lb.Ga(nt),nt.offset(-z.measuredBounds.x,-z.measuredBounds.y),z=z.panel;else nt.yi(y,x,b,E,z);a.rotate(this.Kb,nt.x,nt.y),ke.free(nt)}},Yr.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},Yr.prototype.moveTo=function(a,y,x){a=ke.allocAt(a,y),this.move(a,x),ke.free(a)},Yr.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())},Yr.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())},Yr.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new Cr),y.I(a)!==null)return y.I(a);var x=qn.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function Lf(a,y,x,b){b===void 0&&(b=new ke),x=x.Mc()?Yo: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}Yr.prototype.mi=function(a){return a===void 0&&(a=new ai),a.assign(this.actualBounds)},Yr.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function Ry(a){var y=ke.alloc(),x=a.locationObject,b=x.naturalBounds,E=x instanceof Go?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 Ig(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=bu(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 z=y.width;y=y.height;var nt=a.shadowBlur;return a=a.shadowOffset,z+=nt,y+=nt,b-=nt/2,E-=nt/2,0<a.x?z+=a.x:(b+=a.x,z-=a.x),0<a.y?y+=a.y:(E+=a.y,y-=a.y),x.h(b-1,E-1,z+2,y+2),x}Yr.prototype.arrange=function(){if(Hu(this)===!1)Uy(this);else{qc(this,!1);var a=this.Ib,y=ai.alloc();y.assign(a);var x=ng(this);this.eh(0,0,this.uc.width,this.uc.height);var b=this.position;Hy(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()||Ln.B(y.width,a.width)&&Ln.B(y.height,a.height)||0<=this.vw&&this.C(16),ai.free(y),Sv(this,!1)}},Vt=Yr.prototype,Vt.Xl=function(a,y){var x=this.diagram;if(x!==null){var b=!1;if(x.Zi===!1&&a.w()){var E=ai.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),ai.free(E)}!(this.G&65536)&&a.D(y)||Ky(this,b,x),x.N(),!a.w()&&!y.w()||Th(a,y)||(this instanceof Ar&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},Vt.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var b=this.diagram;return b!==null&&_y(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 ke(b.x+(a.x-y),b.y+(a.y-x)),this.g("location",b,this.ke.copy())),eg(this)===!1&&Hu(this)===!1&&(sm(this),Uy(this)),!0};function _y(a,y,x,b,E){y===null||a instanceof bs||(y=y.animationManager,y.zb&&Nu(y,a,new ke(b,E),x))}Vt.mm=function(a,y,x){var b=this.ke,E=this.pa;if(x){if(b.x===a&&b.y===y)return;eg(this)||Hu(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)}sm(this)},Vt.Av=function(){this.G&=-2097153,sm(this)};function Hy(a,y,x){var b=Ry(a),E=a.diagram,z=x.w(),nt=y.w();z&&nt?a.G&2097152?Qy(a,y,x,E,b):zy(a,y,x,E,b):z?Qy(a,y,x,E,b):nt&&zy(a,y,x,E,b),a.G|=2097152,ke.free(b),a.Uk()}function Qy(a,y,x,b,E){var z=y.x,nt=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 bs||Nu(x,a,new ke(z,nt),y),b||y.x===z&&y.y===nt||a.g("position",new ke(z,nt),y.copy()))}function zy(a,y,x,b,E){var z=x.copy();x.h(y.x+E.x,y.y+E.y),x.D(z)||b===null||a.g("location",z,x.copy())}function Ky(a,y,x){Cv(a,!1),a instanceof Ar&&yo(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var b=x.viewportBounds;b.w()?ng(a)?(Fl(y,b)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(b)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}Vt.si=function(){return!0},Vt.Zc=function(){return!0},Vt.ph=function(){return!1},Vt.Dd=function(){return!0};function xv(a,y,x,b){y.constructor===a.constructor||Vy||(Vy=!0,Tr('Should not change the class of the Part when changing category from "'+x+'" to "'+b+'"'),Tr(" Old class: "+sr(a.constructor)+", new class: "+sr(y.constructor)+", part: "+a.toString())),a.Ej();var E=a.data;x=a.layerName;var z=a.isSelected,nt=a.isHighlighted,ot=!0,at=!0,ht=!1;a instanceof Ar&&(ot=a.isTreeLeaf,at=a.isTreeExpanded,ht=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=z?a.G|4096:a.G&-4097,a.G=nt?a.G|524288:a.G&-524289,a instanceof Ar&&(a.U=ot?a.U|4:a.U&-5,a.U=at?a.U|1:a.U&-2,a.U=ht?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)}Yr.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},Yr.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},Yr.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},Yr.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},Yr.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},Yr.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},Yr.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},Yr.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},Yr.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 eg(a){return(a.G&32768)!==0}function Sv(a,y){a.G=y?a.G|32768:a.G&-32769}function Cv(a,y){a.G=y?a.G|65536:a.G&-65537}function ng(a){return(a.G&131072)!==0}Vt=Yr.prototype,Vt.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function am(a,y){a.G=y?a.G|1048576:a.G&-1048577}Vt.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},Vt.N=function(){var a=this.diagram;a!==null&&!Hu(this)&&!eg(this)&&this.isVisible()&&this.Ib.w()&&a.N(Ig(this,this.Ib))},Vt.v=function(){qn.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof Ar&&this.labeledLink!==null&&Hl(this.labeledLink),a.$b(!0))},Vt.Vo=function(a){a||(a=this.Ah,a!==null&&Lv(a,this))},Vt.Wo=function(a){a||(a=this.Ah,a!==null&&Mv(a,this))},Vt.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},Vt.oz=function(){return Bv(this,this)};function Bv(a,y){var x=y.containingGroup;return x!==null?1+Bv(a,x):y instanceof Ar&&(y=y.labeledLink,y!==null)?Bv(a,y):0}Vt.sz=function(){return Gy(this,this)};function Gy(a,y){var x=y.containingGroup;return x!==null||y instanceof Ar&&(x=y.labeledLink,x!==null)?Gy(a,x):y}Vt.Td=function(a){return a instanceof _o?Pv(this,this,a):!1};function Pv(a,y,x){if(y===x||x===null)return!1;var b=y.containingGroup;return b===null||b!==x&&!Pv(a,b,x)?y instanceof Ar&&(y=y.labeledLink,y!==null)?Pv(a,y,x):!1:!0}Vt.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof _o&&am(y,!0),y instanceof Ar){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 Ar&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof _o&&am(y,!1),y instanceof Ar&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},Yr.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof Ar&&this.isLinkLabel)},Yr.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 Ar&&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 Wy(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function ig(a,y,x,b,E,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof bs)){if(a.add(y),y instanceof Ar){if(x&&y instanceof _o)for(var nt=y.memberParts;nt.next();)ig(a,nt.value,x,b,E,z);if(E!==!1)for(nt=y.linksConnected;nt.next();){var ot=nt.value;if(!a.contains(ot)){var at=ot.fromNode,ht=ot.toNode;at=at===null||a.contains(at),ht=ht===null||a.contains(ht),(E?at&&ht:at||ht)&&ig(a,ot,x,b,E,z)}}if(1<b)for(y=y.Ou();y.next();)ig(a,y.value,x,b-1,E,z)}else if(y instanceof Vi)for(y=y.labelNodes;y.next();)ig(a,y.value,x,b,E,z)}}Re.Object.defineProperties(Yr.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?wo: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(Zl,"parts",y,this,null,b,!0),b=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=b&&x.cb(vl,"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&&(hc(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&&Tu(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 bs?this.type!==qn.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:ta},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),hc(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:qa},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),hc(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&&(hc(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:Oa},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),hc(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,Hu(this)===!1&&(sm(this),x=this.pa,x.w())){var E=this.diagram;if(E===null||E.animationManager.isTicking||!E.undoManager.isUndoingRedoing){var z=x.copy();x.h(x.x+(y.x-b.x),x.y+(y.y-b.y)),_y(this,E,x,z.x,z.y),this.g("position",z,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 bs)){var z=x.model.undoManager;z.isEnabled&&!z.isUndoingRedoing&&(E=this.clone(),E.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),x===null||b===null||this instanceof bs?this instanceof bs&&(E=this.adornedPart,E!==null&&(a=E.Qf,a!==null&&a.remove(y),E.bh(this.category,this))):(z=x.model,z.undoManager.isUndoingRedoing||(this.ph()?(x.partManager.setLinkCategoryForData(b,a),x=x.partManager.findLinkTemplateForCategory(a),x!==null&&(lh(x),x=x.copy(),x!==null&&xv(this,x,y,a))):(z!==null&&z.jm(b,a),x=v1(x.partManager,b,a),x!==null&&(lh(x),x=x.copy(),x===null||x instanceof Vi||(b=this.location.copy(),xv(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){xv(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&&(hc(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&&(hc(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&&(hc(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 Vi?(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&&(hc(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&&(hc(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&&(hc(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:Ka},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),hc(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&&(hc(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&&(hc(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:Bs},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),hc(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&&sn("Cannot make a Group a member of itself: "+this.toString()),sn("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Mv(y,this):this instanceof _o&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Lv(a,this):this instanceof _o&&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 z=E.wa(a!==null?a.data:null);E.mp(b,z)}}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 _o){for(x=new bi,ig(x,this,!0,0,!0),x=x.iterator;x.next();)if(b=x.value,b instanceof Ar)for(b=b.linksConnected;b.next();)Up(b.value)}if(this instanceof Ar){for(x=this.linksConnected;x.next();)Up(x.value);x=this.labeledLink,x!==null&&Up(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&Tu(y,-1,a))}}else sn("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&&(hc(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof Ar&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(hc(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&&(hc(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:ol},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),hc(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&&(hc(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&&(hc(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),Yr.prototype.invalidateLayout=Yr.prototype.C,Yr.prototype.findCommonContainingGroup=Yr.prototype.px,Yr.prototype.isMemberOf=Yr.prototype.Td,Yr.prototype.findTopLevelPart=Yr.prototype.sz,Yr.prototype.findSubGraphLevel=Yr.prototype.oz,Yr.prototype.ensureBounds=Yr.prototype.Va,Yr.prototype.getDocumentBounds=Yr.prototype.mi,Yr.prototype.findObject=Yr.prototype.fb,Yr.prototype.moveTo=Yr.prototype.moveTo,Yr.prototype.invalidateAdornments=Yr.prototype.Wb,Yr.prototype.clearAdornments=Yr.prototype.Ej,Yr.prototype.removeAdornment=Yr.prototype.Jf,Yr.prototype.addAdornment=Yr.prototype.bh,Yr.prototype.findAdornment=Yr.prototype.Pj,Yr.prototype.updateTargetBindings=Yr.prototype.La;var Vy=!1;Yr.className="Part",Yr.LayoutNone=0,Yr.LayoutAdded=1,Yr.LayoutRemoved=2,Yr.LayoutShown=4,Yr.LayoutHidden=8,Yr.LayoutNodeSized=16,Yr.LayoutGroupLayout=32,Yr.LayoutNodeReplaced=64,Yr.LayoutStandard=127,Yr.LayoutAll=16777215;function bs(a,y){a===void 0||a instanceof Fn||typeof a=="string"?Yr.call(this,a):(Yr.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)}On(bs,Yr),bs.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},bs.prototype.updateRelationshipsFromData=function(){},bs.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof Vi&&y instanceof Go){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 Go&&(E.ua=a)}}},bs.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!Hu(a))},bs.prototype.Zc=function(){return!1},bs.prototype.gk=function(a,y,x,b,E,z,nt){if(a===vl&&y==="elements"){if(E instanceof Wh)this.$a===null&&(this.$a=E);else if(E instanceof qn){var ot=E.Nl(function(at){return at instanceof Wh});ot instanceof Wh&&this.$a===null&&(this.$a=ot)}}else a===Zl&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof qn&&this.$a.rg(b)&&(this.$a=null));Yr.prototype.gk.call(this,a,y,x,b,E,z,nt)},bs.prototype.updateAdornments=function(){},bs.prototype.Lj=function(){},Re.Object.defineProperties(bs.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}}}),bs.className="Adornment";function bv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=Ns,this.er=hm,this.Kr=this.ij=this.Nq=this.Mq=null}bv.prototype.copy=function(){var a=new bv;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 Ar(a,y){a===void 0||a instanceof Fn||typeof a=="string"?Yr.call(this,a):(Yr.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new Ci,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}On(Ar,Yr),Ar.prototype.cloneProtected=function(a){Yr.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},Vt=Ar.prototype,Vt.Af=function(a){Yr.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function Mf(a){a.Ba===null?a.Ba=new bv:a.Ba.nc&&(a.Ba=a.Ba.copy())}Vt.th=function(){Yr.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function Zy(a,y){y!==null&&(a.af===null&&(a.af=new bi),a.af.add(y))}function Yy(a,y,x,b){if(y===null||a.af===null)return null;for(var E=a.af.iterator;E.next();){var z=E.value;if(z.Ds===a&&z.cv===y&&z.Ox===x&&z.Px===b||z.Ds===y&&z.cv===a&&z.Ox===b&&z.Px===x)return z}return null}Vt.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=Yy(this,a,y,x),a!==null&&a.Sl()},Vt.gk=function(a,y,x,b,E,z,nt){a===vl&&y==="elements"?this.wc=null:a===Zl&&y==="elements"&&(this.wc=null),Yr.prototype.gk.call(this,a,y,x,b,E,z,nt)},Vt.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(_c(x.fromPort),_c(x.toPort),x.bb())}};function $y(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(_c(x.fromPort),_c(x.toPort),x.bb())}}function _c(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||_c(y.port)}}Vt.si=function(){return!0},Ar.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},Ar.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},Ar.prototype.isVisible=function(){if(!Yr.prototype.isVisible.call(this))return!1;var a=!0,y=Oc,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===Oc){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===Sa){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(b){return!b.isTreeExpanded}))return!1}else if(y===mc&&(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},Ar.prototype.Zb=function(a){Yr.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)}},Ar.prototype.qx=function(){var a=new bi,y=new bi;return Xy(this,this,a,y),y.iterator};function Xy(a,y,x,b){if(y!==null&&!x.has(y)){x.add(y);var E=!0,z=a.diagram;z!==null&&(E=z.isTreePathToChildren),y.linksConnected.each(function(nt){nt.isTreeLink?(E?nt.fromNode===y:nt.toNode===y)&&Xy(a,E?nt.toNode:nt.fromNode,x,b):b.add(nt)})}}Ar.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new xo(this.jb),x=this;return y.predicate=function(b){return b.fromNode===x&&b.fromPortId===a||b.toNode===x&&b.toPortId===a},y},Vt=Ar.prototype,Vt.Mo=function(a){a===void 0&&(a=null);var y=new xo(this.jb),x=this;return y.predicate=function(b){return b.fromNode!==x?!1:a===null?!0:b.fromPortId===a},y},Vt.Sd=function(a){a===void 0&&(a=null);var y=new xo(this.jb),x=this;return y.predicate=function(b){return b.toNode!==x?!1:a===null?!0:b.toPortId===a},y},Vt.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 bi,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 bi,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new fo(x):wo},Vt.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 bi,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new fo(x):wo},Vt.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 bi,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new fo(x):wo},Vt.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new xo(this.jb),E=this;return b.predicate=function(z){return!((z.fromNode!==E||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)&&(z.fromNode!==a||z.toNode!==E||x!==null&&z.fromPortId!==x||y!==null&&z.toPortId!==y))},b},Vt.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new xo(this.jb),E=this;return b.predicate=function(z){return!(z.fromNode!==E||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)},b};function lm(a,y,x){_c(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 z=!0,nt=a.diagram;nt!==null&&(z=nt.aa,nt.aa=!0),E(a,y,x),nt!==null&&(nt.aa=z)}}!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,z=b?x:y,E.ci||(E.ci=z),!z.isTreeLeaf||a!==null&&a.undoManager.isUndoingRedoing||(b?x===z&&(z.isTreeLeaf=!1):y===z&&(z.isTreeLeaf=!1))))}function um(a,y,x){_c(x);var b=a.jb.remove(y),E=null;if(b||y.toNode===y.fromNode){var z=a.linkDisconnected;if(E=a.diagram,z!==null){var nt=!0;E!==null&&(nt=E.aa,E.aa=!0),z(a,y,x),E!==null&&(E.aa=nt)}}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)):g0(y)))}function g0(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}}}Ar.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},Vt=Ar.prototype,Vt.Vo=function(a){Yr.prototype.Vo.call(this,a),a||(g0(this),a=this.Yk,a!==null&&s1(a,this))},Vt.Wo=function(a){Yr.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},Vt.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,Yr.prototype.Lj.call(this)},Vt.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;Jy(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function Jy(a){a.wc===null?a.wc=new Cr:a.wc.clear(),a.qm(a,function(y,x){qy(y,x)}),a.wc.count===0&&a.wc.add("",a)}function qy(a,y){var x=y.portId;x!==null&&a.wc!==null&&a.wc.add(x,y)}function Ev(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=yi()),x.push(b);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);nr(x)}}}Vt.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},Vt.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}},Vt.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)am(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;)am(y,!1),y=y.pg();return x},Vt.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},Vt.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof Ar)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},Vt.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 bi;return a(this,y),y},Vt.uz=function(){return t1(this,this)};function t1(a,y){return y=y.pg(),y===null?0:1+t1(a,y)}Vt.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new xo(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},Vt.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 Ci,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 Ci,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new fo(x):wo},Vt.wz=function(a){a===void 0&&(a=1/0);var y=new bi;return ig(y,this,!1,a,!0),y},Ar.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 bi;x.add(this),e1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Oc),y.Ue=!1}};function e1(a,y,x,b,E,z,nt){if(1<b)for(var ot=x?a.Mo():a.Sd();ot.next();){var at=ot.value;at.isTreeLink&&(at=at.To(a),at===null||at===a||y.contains(at)||(y.add(at),e1(at,y,x,b-1,E,z,nt)))}else n1(a,y,x,E,z,nt)}function n1(a,y,x,b,E,z){for(var nt=E===a?!0:a.isTreeExpanded,ot=x?a.Mo():a.Sd(),at={};ot.next();){var ht=ot.value;if(ht.isTreeLink&&(ht=ht.To(a),ht!==null&&ht!==a)){var ct=y.contains(ht);if(ct||y.add(ht),nt){var gt=x?ht.Oo():ht.Po();at.uv=a,gt.all(function(Nt){return function(Kt){return Kt===Nt.uv||!Kt.isTreeExpanded}}(at))&&b.Aj(ht,E),ht.oh(),ht.Zb(!1)}ht.isTreeExpanded&&(ht.wasTreeExpanded=ht.isTreeExpanded,ct||n1(ht,y,x,b,E,z))}at={uv:at.uv}}a.isTreeExpanded=!1}Ar.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 bi;x.add(this),i1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Oc),y.Ue=!1}};function i1(a,y,x,b,E,z,nt){for(var ot=z===a?!1:a.isTreeExpanded,at=x?a.Mo():a.Sd(),ht={};at.next();){var ct=at.value;if(ct.isTreeLink&&(ot||ct.fd||ct.bb(),ct=ct.To(a),ct!==null&&ct!==a&&!y.contains(ct))){if(y.add(ct),!ot){ct.Zb(!0),ct.oh();var gt=x?ct.Oo():ct.Po();ht.vv=a,gt.all(function(Nt){return function(Kt){return Kt===Nt.vv||!Kt.isTreeExpanded}}(ht))&&E.Cj(ct,z)}(2<b||ct.wasTreeExpanded)&&(ct.wasTreeExpanded=!1,i1(ct,y,x,b-1,E,z,nt))}ht={vv:ht.vv}}a.isTreeExpanded=!0}Re.Object.defineProperties(Ar.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:hm},set:function(a){var y=this.portSpreading;y!==a&&(Mf(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&&yo(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:Ns},set:function(a){typeof a=="number"&&(a=new Hr(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Mf(this),this.Ba.yp=a;var x=this.diagram;x!==null&&yo(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&&(Mf(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&&(Mf(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&&(Mf(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,z=x.model;if(E!==null&&z.ri()){var nt=z.wa(b);nt!==void 0&&z.Qx(E,nt)}}this.containingGroup=null}this.Yk=a,a!==null&&(s1(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),Hl(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&Jy(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&&(Mf(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))}}}),Ar.prototype.expandTree=Ar.prototype.expandTree,Ar.prototype.collapseTree=Ar.prototype.collapseTree,Ar.prototype.findTreeParts=Ar.prototype.wz,Ar.prototype.findTreeChildrenNodes=Ar.prototype.Ou,Ar.prototype.findTreeChildrenLinks=Ar.prototype.Qo,Ar.prototype.findTreeLevel=Ar.prototype.uz,Ar.prototype.findTreeParentChain=Ar.prototype.vz,Ar.prototype.findTreeParentNode=Ar.prototype.pg,Ar.prototype.findTreeParentLink=Ar.prototype.kh,Ar.prototype.findCommonTreeParent=Ar.prototype.gz,Ar.prototype.findTreeRoot=Ar.prototype.xz,Ar.prototype.isInTreeOf=Ar.prototype.Nz,Ar.prototype.findPort=Ar.prototype.ns,Ar.prototype.findLinksTo=Ar.prototype.kz,Ar.prototype.findLinksBetween=Ar.prototype.jz,Ar.prototype.findNodesInto=Ar.prototype.Oo,Ar.prototype.findNodesOutOf=Ar.prototype.Po,Ar.prototype.findNodesConnected=Ar.prototype.Mu,Ar.prototype.findLinksInto=Ar.prototype.Sd,Ar.prototype.findLinksOutOf=Ar.prototype.Mo,Ar.prototype.findExternalTreeLinksConnected=Ar.prototype.qx,Ar.prototype.invalidateConnectedLinks=Ar.prototype.Bd,Ar.prototype.invalidateLinkBundle=Ar.prototype.Lz;var Nw=new ri(Ar,"SpreadingNone",10),hm=new ri(Ar,"SpreadingEvenly",11),Fv=new ri(Ar,"SpreadingPacked",12);Ar.className="Node",Ar.SpreadingNone=Nw,Ar.SpreadingEvenly=hm,Ar.SpreadingPacked=Fv;function _o(a,y){a===void 0||a instanceof Fn||typeof a=="string"?Ar.call(this,a):(Ar.call(this),a&&(y=a)),this.U|=4608,this.Gn=new bi,this.$a=null,this.Sc=new Ya,this.Sc.group=this,this.gl=new bi,this.tb=this.$p=null,y&&Object.assign(this,y)}On(_o,Ar),_o.prototype.cloneProtected=function(a){Ar.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof Wh});y instanceof Wh?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())},Vt=_o.prototype,Vt.Af=function(a){Ar.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 Ar)x.Bd(y);else if(x instanceof Vi)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},Vt.gk=function(a,y,x,b,E,z,nt){if(a===vl&&y==="elements"){if(E instanceof Wh)this.$a===null?this.$a=E:this.$a!==E&&sn("Cannot insert a second Placeholder into the visual tree of a Group.");else if(E instanceof qn){var ot=E.Nl(function(at){return at instanceof Wh});ot instanceof Wh&&(this.$a===null?this.$a=ot:this.$a!==ot&&sn("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===Zl&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof qn&&this.$a.rg(b)&&(this.$a=null));Ar.prototype.gk.call(this,a,y,x,b,E,z,nt)},Vt.Xl=function(a,y){Ar.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==qn.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof qn&&(a=a.Pb()),this.tb===null&&(this.tb=new ai),a.mi(this.tb),a instanceof Go&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},Vt.eh=function(a,y,x,b){this.nf=this.$a,Ar.prototype.eh.call(this,a,y,x,b)},Vt.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof Vi||y.Va()}),Ar.prototype.Va.call(this)},Vt.si=function(){if(!Ar.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof Ar){if(y.isVisible()&&Hu(y))return!1}else if(y instanceof Vi&&y.isVisible()&&Hu(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Lv(a,y){if(a.Gn.add(y)){y instanceof _o&&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 Vi&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Mv(a,y){if(a.Gn.remove(y)){y instanceof _o&&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 Vi&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}Vt.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)}Ar.prototype.Lj.call(this)},_o.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=Yn(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},_o.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var b=!0;for(a=Yn(a).iterator;a.next();){var E=a.value;!y||x.isValidMember(this,E)?E.containingGroup=this:b=!1}return b},_o.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))},Vt=_o.prototype,Vt.Bd=function(a){var y=(this.U&65536)!==0;if(Ar.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()?(_c(x.fromPort),_c(x.toPort),x.bb()):(b=x.toNode,b!==null&&b!==this&&b.Td(this)&&!b.isVisible()&&(_c(x.fromPort),_c(x.toPort),x.bb()))}}},Vt.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 bi,b=y.iterator;b.next();){var E=b.value;if(E instanceof Ar)for(E=E.linksConnected;E.next();){var z=E.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},Vt.iz=function(){var a=this.Rj();a.add(this);for(var y=new bi,x=a.iterator;x.next();){var b=x.value;if(b instanceof Ar)for(b=b.linksConnected;b.next();){var E=b.value,z=E.fromNode;z===null||a.contains(z)&&z!==this||y.add(z),E=E.toNode,E===null||a.contains(E)&&E!==this||y.add(E)}}return y.iterator},Vt.hz=function(){function a(x,b){x!==null&&(b.add(x),a(x.containingGroup,b))}var y=new bi;return a(this,y),y},Vt.Rj=function(){var a=new bi;return ig(a,this,!0,0,!0),a.remove(this),a},Vt.Zb=function(a){Ar.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},_o.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();r1(this,y,a,this),a.Ue=!1}};function r1(a,y,x,b){for(var E=a.memberParts;E.next();){var z=E.value;if(z.Zb(!1),z instanceof _o&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,r1(z,y,x,b)),z instanceof Ar)z.Bd(y),x.Aj(z,b);else if(z instanceof Vi)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}_o.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();o1(this,y,a,this),a.Ue=!1}};function o1(a,y,x,b){for(var E=a.memberParts;E.next();){var z=E.value;if(z.Zb(!0),z instanceof _o&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,o1(z,y,x,b)),z instanceof Ar)z.Bd(y),x.Cj(z,b);else if(z instanceof Vi)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}_o.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,z=a.y;if(!(b===E||isNaN(b)&&isNaN(E))||!(x===z||isNaN(x)&&isNaN(z))){for(b=E-(isNaN(b)?0:b),x=z-(isNaN(x)?0:x),z=ke.alloc(),Ar.prototype.move.call(this,a,y),a=new bi,y=this.Rj().iterator;y.next();)E=y.value,E instanceof Vi&&(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 Ar&&E.isLinkLabel)){var nt=E.position,ot=E.location;nt.w()?(z.x=nt.x+b,z.y=nt.y+x,E.position=z):ot.w()&&(z.x=ot.x+b,z.y=ot.y+x,E.location=z)}for(y.reset();y.next();)E=y.value,E instanceof Vi&&(E.suspendsRouting=a.contains(E),E.fd||E.fromNode!==this&&E.toNode!==this)&&(nt=E.position,z.x=nt.x+b,z.y=nt.y+x,z.w()?E.move(z):E.bb(),Iv(E)&&E.bb());ke.free(z)}},Re.Object.defineProperties(_o.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&&sn("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&&(Mf(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&&(Mf(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&&(Mf(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&&(Mf(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)}}}),_o.prototype.expandSubGraph=_o.prototype.expandSubGraph,_o.prototype.collapseSubGraph=_o.prototype.collapseSubGraph,_o.prototype.findSubGraphParts=_o.prototype.Rj,_o.prototype.findContainingGroupChain=_o.prototype.hz,_o.prototype.findExternalNodesConnected=_o.prototype.iz,_o.prototype.findExternalLinksConnected=_o.prototype.Lu,_o.prototype.ensureBounds=_o.prototype.Va,_o.className="Group";function Wh(a){xn.call(this),this.yb=Ao,this.ko=new ai(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}On(Wh,xn),Wh.prototype.cloneProtected=function(a){xn.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},Wh.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return ia(0,0,y.width,y.height,a.x,a.y)},Wh.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof _o||a instanceof bs)||sn("Placeholder is not inside a Group or Adornment."),a instanceof _o){var y=this.computeBorder(this.ko),x=this.minSize,b=this.dc;for(Ta(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=ke.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),ke.free(x))}else{y=this.dc,x=this.yb,b=x.left+x.right;var E=x.top+x.bottom,z=a.adornedObject;a.angle=z.li();var nt=0;z instanceof Go&&(nt=z.strokeWidth);var ot=z.Df(),at=z.naturalBounds,ht=(at.width+nt)*ot;nt=(at.height+nt)*ot,a.type!==qn.Link&&(ot=z.ga(a.category==="Selection"?Oa:a.locationSpot,ke.alloc()),a.location=ot,ke.free(ot)),isNaN(ht)||isNaN(nt)?(a=z.ga(Oa,ke.alloc()),ht=ai.allocAt(a.x,a.y,0,0),ht.Ye(z.ga(Ll,a)),ht.Ye(z.ga(su,a)),ht.Ye(z.ga(Cs,a)),Ta(y,ht.width+b||0,ht.height+E||0),this.Ge(-x.left,-x.top,y.width,y.height),ke.free(a),ai.free(ht)):(Ta(y,ht+b||0,nt+E||0),this.Ge(-x.left,-x.top,y.width,y.height))}},Wh.prototype.eh=function(a,y,x,b){this.actualBounds.h(a,y,x,b)},Wh.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,b=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof _o&&!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=ai.alloc(),E=this.computeMemberBounds(x);var z=this.yb;return y instanceof _o&&!y.isSubGraphExpanded?a.h(E.x-z.left,E.y-z.top,0,0):a.h(E.x-z.left,E.y-z.top,Math.max(E.width+z.left+z.right,0),Math.max(E.height+z.top+z.bottom,0)),ai.free(x),b&&y instanceof _o&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},Wh.prototype.computeMemberBounds=function(a){if(!(this.part instanceof _o))return a.h(0,0,0,0),a;for(var y=this.part,x=1/0,b=1/0,E=-1/0,z=-1/0,nt=y.memberParts;nt.next();){var ot=nt.value;if(ot.isVisible()){if(ot instanceof Vi&&(!y.computesBoundsIncludingLinks||xh(ot)||ot.fromNode===y||ot.toNode===y))continue;ot=ot.actualBounds,ot.left<x&&(x=ot.left),ot.top<b&&(b=ot.top),ot.right>E&&(E=ot.right),ot.bottom>z&&(z=ot.bottom)}}return isFinite(x)&&isFinite(b)?a.h(x,b,E-x,z-b):(y=y.location,a.h(y.x,y.y,0,0)),a},Re.Object.defineProperties(Wh.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Hr(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),Wh.className="Placeholder";function Vi(a){Yr.call(this,qn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Vh,this.Om=0,this.Qm=Vh,this.Rm=NaN,this.qj=Ov,this.po=.5,this.wd=null,this.Nb=new Ci().freeze(),this.Tg=this.Mg=null,this.ml=new ai,this.ua=new $i,this.u=this.o=this.Sf=this.Wf=null,this.su=new ke,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}On(Vi,Yr),Vi.prototype.cloneProtected=function(a){Yr.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())},Vt=Vi.prototype,Vt.Af=function(a){Yr.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&&_c(y),a=a.toPort,a!==null&&_c(a)},Vt.qb=function(a){a.classType===Vi?(a.value&2)===2?this.routing=a:a===nd||a===If||a===_p?this.curve=a:a===v0||a===pm||a===mm?this.adjusting=a:a!==Ov&&a!==Vh&&sn("Unknown Link enum value for a Link property: "+a):Yr.prototype.qb.call(this,a)},Vt.Xc=function(){this.ba===null&&(this.ba=new Vf)},Vt.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),Hu(a)||eg(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),Hu(a)||eg(a)))},Vt.zv=function(){return!1},Vt.Av=function(){},Vt.Zc=function(){return!1},Vi.prototype.computeAngle=function(a,y,x){return Vi.computeAngle(y,x)},Vi.computeAngle=function(a,y){switch(a){default:case Vh:a=0;break;case y0:a=y;break;case w0:a=y+90;break;case x0:a=y-90;break;case Dv:a=y+180;break;case vm:a=Ln.bp(y),90<a&&270>a&&(a-=180);break;case S0:a=Ln.bp(y+90),90<a&&270>a&&(a-=180);break;case C0:a=Ln.bp(y-90),90<a&&270>a&&(a-=180);break;case ym:if(a=Ln.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return Ln.bp(a)};function Up(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&&Mv(x,a),a.Ah=y,y!==null&&Lv(y,a);var E=a.containingGroupChanged;if(E!==null){var z=!0,nt=a.diagram;nt!==null&&(z=nt.aa,nt.aa=!0),E(a,x,y),nt!==null&&(nt.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=b}Vt=Vi.prototype,Vt.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Yr.prototype.oh.call(this)},Vt.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Vt.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function s1(a,y){a.wd===null&&(a.wd=new bi),a.wd.add(y),a.v()}Vt.Vo=function(a){if(Yr.prototype.Vo.call(this,a),kg(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,lm(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||lm(x,this,b)}p0(this)}},Vt.Wo=function(a){if(Yr.prototype.Wo.call(this,a),kg(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,um(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||um(x,this,b)}m0(this)}},Vt.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))},Vi.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Vi.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?Yr.prototype.move.call(this,a,!1):(a=ke.allocAt(x.x+b,x.y+E),Yr.prototype.move.call(this,a,!1),ke.free(a)),Nf(this,b,E),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+b,x.y+E)},Vi.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},Vi.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},Vi.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(ml),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()===nd))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()===nd){if(y===3){x=this.i(0),b=this.i(1);var E=this.i(2);return Ln.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 z=this.i(x+2);x=this.i(x+3),Ln.ax(b.x,b.y,E.x,E.y,z.x,z.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var nt=this.flattenedLengths;for(x=this.flattenedTotalLength,E=z=b=0;b<x/2&&z<y&&(E=nt[z],!(b+E>x/2));)b+=E,z++;return y=this.i(z),z=this.i(z+1),1>Math.abs(y.x-z.x)?y.y>z.y?a.h(y.x,y.y-(x/2-b)):a.h(y.x,y.y+(x/2-b)):1>Math.abs(y.y-z.y)?y.x>z.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*(z.x-y.x),y.y+x*(z.y-y.y))),a},Vi.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()===nd))return this.ua.wx(.5);if(this.computeCurve()===nd&&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),Ln.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 z;E<b/2&&x<a&&(z=y[x],!(E+z>b/2));)E+=z,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)},Vt=Vi.prototype,Vt.i=function(a){return this.Nb.s[a]},Vt.dd=function(a,y){this.Nb.cd(a,y)},Vt.L=function(a,y,x){this.Nb.cd(a,new ke(y,x))},Vt.Kz=function(a,y){this.Nb.Gb(a,y)},Vt.m=function(a,y,x){this.Nb.Gb(a,new ke(y,x))},Vt.ne=function(a){this.Nb.add(a)},Vt.yf=function(a,y){this.Nb.add(new ke(a,y))},Vt.pv=function(a){this.Nb.mb(a)},Vt.Fj=function(){this.Nb.clear()};function Nf(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 Ci,z=a.Nb.iterator;z.next();){var nt=z.value;E.add(new ke(nt.x+y,nt.y+x).freeze())}E.freeze(),z=a.Nb,a.Nb=E,nt=a.diagram,isNaN(y)||isNaN(x)||nt!==null&&nt.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),Hl(a)),b?cm(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),nt!==null&&nt.animationManager.zb&&Qs(nt.animationManager,a,E),a.g("points",z,E)}}Vt.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Vt.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,b=1/0,E=a.s,z=E.length,nt=0;nt<z;nt++){var ot=E[nt];x=Math.min(ot.x,x),b=Math.min(ot.y,b)}ot=nt=1/0;for(var at=y.s,ht=at.length,ct=0;ct<ht;ct++){var gt=at[ct];nt=Math.min(gt.x,nt),ot=Math.min(gt.y,ot),gt.freeze()}if(y.freeze(),ht===z){for(z=0;z<ht;z++)if(ct=E[z],gt=at[z],ct.x-x!==gt.x-nt||ct.y-b!==gt.y-ot){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&Qs(x.animationManager,this,y),cm(this),this.g("points",a,y)}},Vt.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function cm(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),gm(a,!1))}Vt.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())}},Vt.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()}}},Vi.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(ip||(ip=new Ar,ip.desiredSize=Eo,ip.Va()),this.defaultFromPoint&&(ip.location=this.defaultFromPoint,ip.Va(),y=a=ip)):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?(rp||(rp=new Ar,rp.desiredSize=Eo,rp.Va()),this.defaultToPoint&&(rp.location=this.defaultToPoint,rp.Va(),E=b=rp)):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 z=this.pointsCount,nt=this.computeSpot(!0,y);x=this.computeSpot(!1,E);var ot=Rp(nt),at=Rp(x),ht=y===E&&y!==null,ct=this.isOrthogonal,gt=this.curve===nd;this.Wf=ht&&!ct?gt=!0:!1;var Nt=this.computeAdjusting()===Vh||ht;if(!ct&&!ht&&ot&&at){if(ot=!1,!Nt&&3<=z&&(Nt=this.getLinkPoint(a,y,nt,!0,!1,b,E),at=this.getLinkPoint(b,E,x,!1,!1,a,y),ot=this.adjustPoints(0,Nt,z-1,at))&&(Nt=this.getLinkPoint(a,y,nt,!0,!1,b,E),at=this.getLinkPoint(b,E,x,!1,!1,a,y),this.adjustPoints(0,Nt,z-1,at)),!ot)if(this.Fj(),gt){z=this.getLinkPoint(a,y,nt,!0,!1,b,E),Nt=this.getLinkPoint(b,E,x,!1,!1,a,y),ot=Nt.x-z.x,at=Nt.y-z.y,ht=this.computeCurviness(),gt=ct=0;var Kt=z.x+ot/3,Xt=z.y+at/3,ce=Kt,Ke=Xt;Ln.B(at,0)?Ke=0<ot?Ke-ht:Ke+ht:(ct=-ot/at,gt=Math.sqrt(ht*ht/(ct*ct+1)),0>ht&&(gt=-gt),ce=(0>at?-1:1)*gt+Kt,Ke=ct*(ce-Kt)+Xt),Kt=z.x+2*ot/3,Xt=z.y+2*at/3;var Te=Kt,$e=Xt;Ln.B(at,0)?$e=0<ot?$e-ht:$e+ht:(Te=(0>at?-1:1)*gt+Kt,$e=ct*(Te-Kt)+Xt),this.Fj(),this.ne(z),this.yf(ce,Ke),this.yf(Te,$e),this.ne(Nt),this.dd(0,this.getLinkPoint(a,y,nt,!0,!1,b,E)),this.dd(3,this.getLinkPoint(b,E,x,!1,!1,a,y))}else z=b,Nt=E,b=this.getLinkPoint(a,y,nt,!0,!1,z,Nt),E=this.getLinkPoint(z,Nt,x,!1,!1,a,y),this.hasCurviness()?(Nt=E.x-b.x,x=E.y-b.y,nt=this.computeCurviness(),a=b.x+Nt/2,y=b.y+x/2,z=a,ot=y,Ln.B(x,0)?ot=0<Nt?ot-nt:ot+nt:(Nt=-Nt/x,z=Math.sqrt(nt*nt/(Nt*Nt+1)),0>nt&&(z=-z),z=(0>x?-1:1)*z+a,ot=Nt*(z-a)+y),this.ne(b),this.yf(z,ot),this.ne(E)):(this.ne(b),this.ne(E),ot=ai.alloc(),y.mi(ot),at=ot.ca(E),Nt.mi(ot),ht=ot.ca(b),(at||ht)&&(nt=y.ga(Am(nt),new ke),this.dd(0,this.getLinkPointFromPoint(a,y,nt,E,!0,nt)),x=Nt.ga(Am(x),new ke),this.dd(1,this.getLinkPointFromPoint(z,Nt,x,b,!1,x))),ai.free(ot))}else{gt=this.isAvoiding,Nt&&(ct&>||ht)&&this.Fj();var rn=ht?this.computeCurviness():0;gt=this.getLinkPoint(a,y,nt,!0,ct,b,E),Kt=ce=Xt=0,(ct||!ot||ht)&&(Ke=this.computeEndSegmentLength(a,y,nt,!0),Kt=this.getLinkDirection(a,y,gt,nt,!0,ct,b,E),ht&&(ot||nt.D(x)||!ct&&nt.x+x.x===1&&nt.y+x.y===1)&&(Kt-=ct?90:30,0>rn&&(Kt-=180)),0>Kt?Kt+=360:360<=Kt&&(Kt-=360),ht&&(Ke+=Math.abs(rn)*(ct?1:2)),Kt===0?Xt=Ke:Kt===90?ce=Ke:Kt===180?Xt=-Ke:Kt===270?ce=-Ke:(Xt=Ke*Math.cos(Kt*Math.PI/180),ce=Ke*Math.sin(Kt*Math.PI/180)),nt.Mc()&&ht&&(Ke=y.ga(Yo,ke.alloc()),Te=ke.allocAt(Ke.x+1e3*Xt,Ke.y+1e3*ce),this.getLinkPointFromPoint(a,y,Ke,Te,!0,gt),ke.free(Ke),ke.free(Te))),Ke=this.getLinkPoint(b,E,x,!1,ct,a,y);var ln=$e=Te=0;if(ct||!at||ht){var Bn=this.computeEndSegmentLength(b,E,x,!1);ln=this.getLinkDirection(b,E,Ke,x,!1,ct,a,y),ht&&(at||nt.D(x)||!ct&&nt.x+x.x===1&&nt.y+x.y===1)&&(ln+=ct?0:30,0>rn&&(ln+=180)),0>ln?ln+=360:360<=ln&&(ln-=360),ht&&(Bn+=Math.abs(rn)*(ct?1:2)),ln===0?Te=Bn:ln===90?$e=Bn:ln===180?Te=-Bn:ln===270?$e=-Bn:(Te=Bn*Math.cos(ln*Math.PI/180),$e=Bn*Math.sin(ln*Math.PI/180)),x.Mc()&&ht&&(x=E.ga(Yo,ke.alloc()),nt=ke.allocAt(x.x+1e3*Te,x.y+1e3*$e),this.getLinkPointFromPoint(b,E,x,nt,!1,Ke),ke.free(x),ke.free(nt))}x=gt,(ct||!ot||ht)&&(x=new ke(gt.x+Xt,gt.y+ce)),nt=Ke,(ct||!at||ht)&&(nt=new ke(Ke.x+Te,Ke.y+$e)),!Nt&&!ct&&ot&&3<z&&this.adjustPoints(0,gt,z-2,nt)?this.dd(z-1,Ke):!Nt&&!ct&&at&&3<z&&this.adjustPoints(1,x,z-1,Ke)?this.dd(0,gt):!Nt&&(ct?6<=z:4<z)&&this.adjustPoints(1,x,z-2,nt)?(this.dd(0,gt),this.dd(z-1,Ke)):(this.Fj(),this.ne(gt),(ct||!ot||ht)&&this.ne(x),ct&&this.addOrthoPoints(x,Kt,nt,ln,a,b),(ct||!at||ht)&&this.ne(nt),this.ne(Ke))}return!0};function Nv(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}Vi.prototype.getLinkPointFromPoint=function(a,y,x,b,E,z){if(z===void 0&&(z=new ke),a===null||y===null)return z.assign(x),z;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 nt=x.x;x=x.y}else{a=E.oe,E=1/(a.m11*a.m22-a.m12*a.m21),nt=a.m22*E;var ot=-a.m12*E,at=-a.m21*E,ht=a.m11*E,ct=E*(a.m21*a.dy-a.m22*a.dx),gt=E*(a.m12*a.dx-a.m11*a.dy);E=b.x*nt+b.y*at+ct,b=b.x*ot+b.y*ht+gt,nt=x.x*nt+x.y*at+ct,x=x.x*ot+x.y*ht+gt}return y.Sj(E,b,nt,x,z),a!==null&&z.transform(a),z};function dm(a,y){var x=y.Zn;return x===null&&(x=new op,x.port=y,x.node=y.part,y.Zn=x),f1(x,a)}Vi.prototype.getLinkPoint=function(a,y,x,b,E,z,nt,ot){if(ot===void 0&&(ot=new ke),x.sb()&&!Rp(x))return y.ga(x,ot),ot;if(x.$c()){var at=dm(this,y);if(at!==null){if(ot.assign(at.Zo),E&&this.routing===l1){var ht=dm(this,nt);if(ht!==null&&at.Gl<ht.Gl){at=ke.alloc(),ht=ke.alloc();var ct=new ai(y.ga(Oa,at),y.ga(Ll,ht)),gt=this.computeSpot(!b,nt);a=this.getLinkPoint(z,nt,gt,!b,E,a,y,ht),(x.Hf(tl)||x.Hf(tu))&&a.y>=ct.y&&a.y<=ct.y+ct.height?ot.y=a.y:(x.Hf(Ml)||x.Hf(Pl))&&a.x>=ct.x&&a.x<=ct.x+ct.width&&(ot.x=a.x),ke.free(at),ke.free(ht)}}return ot}}return x=y.ga(Am(x),ke.alloc()),this.pointsCount>(E?6:2)?(nt=b?this.i(1):this.i(this.pointsCount-2),E&&(nt=Nv(x,nt.copy()))):(at=this.computeSpot(!b,nt),z=ke.alloc(),nt=nt.ga(Am(at),z),E&&(nt=Nv(x,nt)),ke.free(z)),this.getLinkPointFromPoint(a,y,x,nt,b,ot),ke.free(x),ot},Vi.prototype.getLinkDirection=function(a,y,x,b,E,z,nt,ot){t:if(b.sb())var at=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()&&(at=dm(this,y),at!==null))switch(at.Nc){case 1:at=270;break t;case 2:at=180;break t;default:case 4:at=0;break t;case 8:at=90;break t}at=y.ga(Yo,ke.alloc()),this.pointsCount>(z?6:2)?(ot=E?this.i(1):this.i(this.pointsCount-2),ot=z?Nv(at,ot.copy()):x):(x=ke.alloc(),ot=ot.ga(Yo,x),ke.free(x)),x=Math.abs(ot.x-at.x)>Math.abs(ot.y-at.y)?ot.x>=at.x?0:180:ot.y>=at.y?90:270,ke.free(at),at=x}return b.Mc()&&nt.Td(a)&&(at+=180,360<=at&&(at-=360)),Rp(b)||(a=y.li(),a===0)||(45<=a&&135>a?at+=90:135<=a&&225>a?at+=180:225<=a&&315>a&&(at+=270),360<=at&&(at-=360)),at},Vi.prototype.computeEndSegmentLength=function(a,y,x,b){return y!==null&&x.$c()&&(a=dm(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)},Vi.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=Yo:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Bs?Ma:y)):(a=y||this.toPort,a===null?a=Yo:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Bs?Ma:y)),a};function Rp(a){return a===Ma||a.x===.5&&a.y===.5}function Am(a){return a.x===.5&&a.y===.5?a:Yo}Vi.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Vh&&4<this.pointsCount?this.computeMidPoint(new ke):(a=y.Zn,a=a!==null?f1(a,this):null,a!==null?a.Zo:y.ga(Yo))},Vi.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},Vi.prototype.Cf=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var nt=z;if(z===void 0&&(nt=Ko.alloc(),nt.reset()),nt.multiply(this.transform),this.fh(a,nt))return pd(this,y,x,E),z===void 0&&Ko.free(nt),!0;if(this.Yc(a,nt)){var ot=!1;if(!this.isAtomic)for(var at=this.O.s,ht=at.length;ht--;){var ct=at[ht];if(ct.visible||ct===this.locationObject){var gt=ct.actualBounds,Nt=this.naturalBounds;if(!(gt.x>Nt.width||gt.y>Nt.height||0>gt.x+gt.width||0>gt.y+gt.height)){if(gt=Ko.alloc(),gt.set(nt),ct instanceof qn)ot=ct.Cf(a,y,x,b,E,gt);else if(this.path===ct){if(ct instanceof Go)if(ot=a,Nt=b,ct.pickable===!1)ot=!1;else if(gt.multiply(ct.transform),Nt)t:{var Kt=ot,Xt=gt;if(ct.fh(Kt,Xt))ot=!0;else{if(Xt===void 0&&(Xt=ct.transform,Kt.Re(ct.actualBounds))){ot=!0;break t}ot=Kt.left,Nt=Kt.right;var ce=Kt.top;Kt=Kt.bottom;var Ke=ke.alloc(),Te=ke.alloc(),$e=ke.alloc(),rn=Ko.alloc();rn.set(Xt),rn.bv(ct.transform),rn.Vj(),Te.x=Nt,Te.y=ce,Te.transform(rn),Ke.x=ot,Ke.y=ce,Ke.transform(rn),Xt=!1,bf(ct,Ke,Te,$e)?Xt=!0:(Ke.x=Nt,Ke.y=Kt,Ke.transform(rn),bf(ct,Ke,Te,$e)?Xt=!0:(Te.x=ot,Te.y=Kt,Te.transform(rn),bf(ct,Ke,Te,$e)?Xt=!0:(Ke.x=ot,Ke.y=ce,Ke.transform(rn),bf(ct,Ke,Te,$e)&&(Xt=!0)))),Ko.free(rn),ke.free(Ke),ke.free(Te),ke.free($e),ot=Xt}}else ot=ct.fh(ot,gt)}else ot=_l(ct,a,b,gt);ot&&(Nt=ct,y!==null&&(Nt=y(ct)),Nt&&(x===null||x(Nt))&&E.add(Nt)),Ko.free(gt)}}}return z===void 0&&Ko.free(nt),ot||this.background!==null||this.areaBackground!==null}return z===void 0&&Ko.free(nt),!1},Vi.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?nd:this.curve},Vi.prototype.computeCorner=function(){if(this.curve===nd)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Vi.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},Vi.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=h1;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,z=b.margin,nt=isNaN(E.width)?30:E.width*b.scale+z.left+z.right;E=isNaN(E.height)?14:E.height*b.scale+z.top+z.bottom,b=b.segmentOrientation,b===y0||b===vm||b===Dv?a=Math.max(a,E):b===x0||b===C0||b===w0||b===S0?a=Math.max(a,nt):(y=y.ga(Yo).ab(x.ga(Yo))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*nt)+Math.abs(Math.cos(y)*E)+1)),this.curve===nd&&(a*=1.333)}}return a},Vi.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===Vh&&x.bb()}},Vi.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=u1;var y=this.Sf;if(y!==null){for(var x=yi(),b=0,E=y.links,z=0;z<E.length;z++){var nt=E[z].computeSpacing();x.push(nt),b+=nt}for(b=-b/2,z=0;z<E.length;z++){if(E[z]===this){a=b+x[z]/2;break}b+=x[z]}y.Ds===this.fromNode&&(a=-a),nr(x)}}return a},Vi.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},Vi.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},Vi.prototype.adjustPoints=function(a,y,x,b){var E=this.computeAdjusting();if(this.isOrthogonal){if(E===pm)return!1;E===mm&&(E=v0)}switch(E){case pm:var z=this.i(a),nt=this.i(x);if(!z.Xa(y)||!nt.Xa(b)){E=z.x,z=z.y;var ot=nt.x-E,at=nt.y-z,ht=Math.sqrt(ot*ot+at*at);if(!Ln.$(ht,0)){if(Ln.$(ot,0))var ct=0>at?-Math.PI/2:Math.PI/2;else ct=Math.atan(at/Math.abs(ot)),0>ot&&(ct=Math.PI-ct);nt=y.x;var gt=y.y;ot=b.x-nt;var Nt=b.y-gt;for(at=Math.sqrt(ot*ot+Nt*Nt),Ln.$(ot,0)?Nt=0>Nt?-Math.PI/2:Math.PI/2:(Nt=Math.atan(Nt/Math.abs(ot)),0>ot&&(Nt=Math.PI-Nt)),ht=at/ht,ct=Nt-ct,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),ot=y.x-E,at=y.y-z,y=Math.sqrt(ot*ot+at*at),Ln.$(y,0)||(Ln.$(ot,0)?at=0>at?-Math.PI/2:Math.PI/2:(at=Math.atan(at/Math.abs(ot)),0>ot&&(at=Math.PI-at)),ot=at+ct,y*=ht,this.L(a,nt+y*Math.cos(ot),gt+y*Math.sin(ot)));this.dd(x,b)}}return!0;case mm:if(z=this.i(a),gt=this.i(x),!z.Xa(y)||!gt.Xa(b)){E=z.x,z=z.y,nt=gt.x,gt=gt.y,ht=(nt-E)*(nt-E)+(gt-z)*(gt-z),ot=y.x,ct=y.y,at=b.x,Nt=b.y;var Kt=1;if(at-ot!==0){var Xt=(Nt-ct)/(at-ot);Kt=Math.sqrt(1+1/(Xt*Xt))}else Xt=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var ce=y.x,Ke=y.y,Te=.5;ht!==0&&(Te=((E-ce)*(E-nt)+(z-Ke)*(z-gt))/ht);var $e=E+Te*(nt-E),rn=z+Te*(gt-z);y=Math.sqrt((ce-$e)*(ce-$e)+(Ke-rn)*(Ke-rn)),Ke<Xt*(ce-$e)+rn&&(y=-y),0<Xt&&(y=-y),ce=ot+Te*(at-ot),Te=ct+Te*(Nt-ct),Xt!==0?(y=ce+y/Kt,this.L(a,y,Te-(y-ce)/Xt)):this.L(a,ce,Te+y)}this.dd(x,b)}return!0;case v0:t:{if(this.isOrthogonal&&(E=this.i(a),z=this.i(a+1),nt=this.i(a+2),ot=z.x,ct=z.y,gt=ot,ht=ct,Ln.B(E.y,z.y)?Ln.B(z.x,nt.x)?ct=y.y:Ln.B(z.y,nt.y)&&(ot=y.x):Ln.B(E.x,z.x)&&(Ln.B(z.y,nt.y)?ot=y.x:Ln.B(z.x,nt.x)&&(ct=y.y)),this.L(a+1,ot,ct),E=this.i(x),z=this.i(x-1),nt=this.i(x-2),ot=z.x,ct=z.y,at=ot,Nt=ct,Ln.B(E.y,z.y)?Ln.B(z.x,nt.x)?ct=b.y:Ln.B(z.y,nt.y)&&(ot=b.x):Ln.B(E.x,z.x)&&(Ln.B(z.y,nt.y)?ot=b.x:Ln.B(z.x,nt.x)&&(ct=b.y)),this.L(x-1,ot,ct),Iv(this))){this.L(a+1,gt,ht),this.L(x-1,at,Nt),x=!1;break t}this.dd(a,y),this.dd(x,b),x=!0}return x;default:return!1}},Vi.prototype.addOrthoPoints=function(a,y,x,b,E,z){0>y?y+=360:360<=y&&(y-=360),0>b?b+=360:360<=b&&(b-=360);var nt=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 ot=E.actualBounds.copy(),at=z.actualBounds.copy();if(ot.w()&&at.w()){ot.Bc(B0,B0),at.Bc(B0,B0),ot.Ye(a),at.Ye(x);var ht=ke.alloc(),ct=ke.alloc();y===0?x.x>a.x||b===270&&x.y<a.y&&at.right>a.x||b===90&&x.y>a.y&&at.right>a.x?(ht.h(x.x,a.y),ct.h(x.x,(a.y+x.y)/2),b===180?(ht.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ct.x=ht.x,ct.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(ht.x=a.x<at.left?this.computeMidOrthoPosition(a.x,a.y,at.left,x.y,!1):a.x<at.right&&(b===270&&a.y<at.top||b===90&&a.y>at.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):at.right,ct.x=ht.x,ct.y=x.y):b===0&&a.x<at.left&&a.y>at.top&&a.y<at.bottom&&(ht.x=a.x,ht.y=a.y<x.y?Math.min(x.y,at.top):Math.max(x.y,at.bottom),ct.y=ht.y)):(ht.h(a.x,x.y),ct.h((a.x+x.x)/2,x.y),(b===180||b===90&&x.y<ot.top||b===270&&x.y>ot.bottom)&&(b===180&&(at.ca(a)||ot.ca(x))?ht.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===180||b===90)?ht.y=this.computeMidOrthoPosition(a.x,ot.top,x.x,Math.max(x.y,at.bottom),!0):x.y>a.y&&(b===180||b===270)&&(ht.y=this.computeMidOrthoPosition(a.x,ot.bottom,x.x,Math.min(x.y,at.top),!0)),ct.x=x.x,ct.y=ht.y),ht.y>ot.top&&ht.y<ot.bottom&&(x.x>=ot.left&&x.x<=a.x||a.x<=at.right&&a.x>=x.x?(b===90||b===270)&&(ht.h(Math.max((a.x+x.x)/2,a.x),a.y),ct.h(ht.x,x.y)):(ht.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===0?ot.top:Math.min(ot.top,at.top)):Math.max(x.y,b===0?ot.bottom:Math.max(ot.bottom,at.bottom)),ct.x=x.x,ct.y=ht.y))):y===180?x.x<a.x||b===270&&x.y<a.y&&at.left<a.x||b===90&&x.y>a.y&&at.left<a.x?(ht.h(x.x,a.y),ct.h(x.x,(a.y+x.y)/2),b===0?(ht.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ct.x=ht.x,ct.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(ht.x=a.x>at.right?this.computeMidOrthoPosition(a.x,a.y,at.right,x.y,!1):a.x>at.left&&(b===270&&a.y<at.top||b===90&&a.y>at.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):at.left,ct.x=ht.x,ct.y=x.y):b===180&&a.x>at.right&&a.y>at.top&&a.y<at.bottom&&(ht.x=a.x,ht.y=a.y<x.y?Math.min(x.y,at.top):Math.max(x.y,at.bottom),ct.y=ht.y)):(ht.h(a.x,x.y),ct.h((a.x+x.x)/2,x.y),(b===0||b===90&&x.y<ot.top||b===270&&x.y>ot.bottom)&&(b===0&&(at.ca(a)||ot.ca(x))?ht.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===0||b===90)?ht.y=this.computeMidOrthoPosition(a.x,ot.top,x.x,Math.max(x.y,at.bottom),!0):x.y>a.y&&(b===0||b===270)&&(ht.y=this.computeMidOrthoPosition(a.x,ot.bottom,x.x,Math.min(x.y,at.top),!0)),ct.x=x.x,ct.y=ht.y),ht.y>ot.top&&ht.y<ot.bottom&&(x.x<=ot.right&&x.x>=a.x||a.x>=at.left&&a.x<=x.x?(b===90||b===270)&&(ht.h(Math.min((a.x+x.x)/2,a.x),a.y),ct.h(ht.x,x.y)):(ht.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===180?ot.top:Math.min(ot.top,at.top)):Math.max(x.y,b===180?ot.bottom:Math.max(ot.bottom,at.bottom)),ct.x=x.x,ct.y=ht.y))):y===90?x.y>a.y||b===180&&x.x<a.x&&at.bottom>a.y||b===0&&x.x>a.x&&at.bottom>a.y?(ht.h(a.x,x.y),ct.h((a.x+x.x)/2,x.y),b===270?(ht.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ct.x=x.x,ct.y=ht.y):b===180&&x.x<a.x||b===0&&x.x>a.x?(ht.y=a.y<at.top?this.computeMidOrthoPosition(a.x,a.y,x.x,at.top,!0):a.y<at.bottom&&(b===180&&a.x<at.left||b===0&&a.x>at.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):at.bottom,ct.x=x.x,ct.y=ht.y):b===90&&a.y<at.top&&a.x>at.left&&a.x<at.right&&(ht.x=a.x<x.x?Math.min(x.x,at.left):Math.max(x.x,at.right),ht.y=a.y,ct.x=ht.x)):(ht.h(x.x,a.y),ct.h(x.x,(a.y+x.y)/2),(b===270||b===0&&x.x<ot.left||b===180&&x.x>ot.right)&&(b===270&&(at.ca(a)||ot.ca(x))?ht.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===270||b===0)?ht.x=this.computeMidOrthoPosition(ot.left,a.y,Math.max(x.x,at.right),x.y,!1):x.x>a.x&&(b===270||b===180)&&(ht.x=this.computeMidOrthoPosition(ot.right,a.y,Math.min(x.x,at.left),x.y,!1)),ct.x=ht.x,ct.y=x.y),ht.x>ot.left&&ht.x<ot.right&&(x.y>=ot.top&&x.y<=a.y||a.y<=at.bottom&&a.y>=x.y?(b===0||b===180)&&(ht.h(a.x,Math.max((a.y+x.y)/2,a.y)),ct.h(x.x,ht.y)):(ht.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===90?ot.left:Math.min(ot.left,at.left)):Math.max(x.x,b===90?ot.right:Math.max(ot.right,at.right)),ct.x=ht.x,ct.y=x.y))):x.y<a.y||b===180&&x.x<a.x&&at.top<a.y||b===0&&x.x>a.x&&at.top<a.y?(ht.h(a.x,x.y),ct.h((a.x+x.x)/2,x.y),b===90?(ht.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ct.x=x.x,ct.y=ht.y):b===180&&x.x<a.x||b===0&&x.x>=a.x?(ht.y=a.y>at.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,at.bottom,!0):a.y>at.top&&(b===180&&a.x<at.left||b===0&&a.x>at.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):at.top,ct.x=x.x,ct.y=ht.y):b===270&&a.y>at.bottom&&a.x>at.left&&a.x<at.right&&(ht.x=a.x<x.x?Math.min(x.x,at.left):Math.max(x.x,at.right),ht.y=a.y,ct.x=ht.x)):(ht.h(x.x,a.y),ct.h(x.x,(a.y+x.y)/2),(b===90||b===0&&x.x<ot.left||b===180&&x.x>ot.right)&&(b===90&&(at.ca(a)||ot.ca(x))?ht.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===90||b===0)?ht.x=this.computeMidOrthoPosition(ot.left,a.y,Math.max(x.x,at.right),x.y,!1):x.x>a.x&&(b===90||b===180)&&(ht.x=this.computeMidOrthoPosition(ot.right,a.y,Math.min(x.x,at.left),x.y,!1)),ct.x=ht.x,ct.y=x.y),ht.x>ot.left&&ht.x<ot.right&&(x.y<=ot.bottom&&x.y>=a.y||a.y>=at.top&&a.y<=x.y?(b===0||b===180)&&(ht.h(a.x,Math.min((a.y+x.y)/2,a.y)),ct.h(x.x,ht.y)):(ht.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===270?ot.left:Math.min(ot.left,at.left)):Math.max(x.x,b===270?ot.right:Math.max(ot.right,at.right)),ct.x=ht.x,ct.y=x.y)));var gt=x;if(this.isAvoiding){var Nt=this.diagram;if(Nt===null||E===z||this.layer.isTemporary||!vi(Nt)||ot.ca(gt)&&!z.Td(E)||at.ca(a)&&!E.Td(z))y=!1;else{var Kt=Ri(Nt,!0,this.containingGroup,null);if(this.segmentIndex!==17&&Kt.Yj(Math.min(a.x,ht.x),Math.min(a.y,ht.y),Math.abs(a.x-ht.x),Math.abs(a.y-ht.y))&&Kt.Yj(Math.min(ht.x,ct.x),Math.min(ht.y,ct.y),Math.abs(ht.x-ct.x),Math.abs(ht.y-ct.y))&&Kt.Yj(Math.min(ct.x,gt.x),Math.min(ct.y,gt.y),Math.abs(ct.x-gt.x),Math.abs(ct.y-gt.y)))y=!1;else{E=a,z=gt;var Xt=x=null;if(Nt.isVirtualized){Nt=Kt.bounds.copy(),Nt.Bc(-Kt.Ho,-Kt.Go);var ce=ke.alloc();Hp(Kt,a.x,a.y)||(Ln.Ff(Nt.x,Nt.y,Nt.x+Nt.width,Nt.y+Nt.height,a.x,a.y,ht.x,ht.y,ce)?(x=a=ce.copy(),y=ce.ab(ht)):Ln.Ff(Nt.x,Nt.y,Nt.x+Nt.width,Nt.y+Nt.height,ht.x,ht.y,ct.x,ct.y,ce)?(x=a=ce.copy(),y=ce.ab(ct)):Ln.Ff(Nt.x,Nt.y,Nt.x+Nt.width,Nt.y+Nt.height,ct.x,ct.y,gt.x,gt.y,ce)&&(x=a=ce.copy(),y=ce.ab(gt))),Hp(Kt,gt.x,gt.y)||(Ln.Ff(Nt.x,Nt.y,Nt.x+Nt.width,Nt.y+Nt.height,gt.x,gt.y,ct.x,ct.y,ce)?(Xt=gt=ce.copy(),b=ct.ab(ce)):Ln.Ff(Nt.x,Nt.y,Nt.x+Nt.width,Nt.y+Nt.height,ct.x,ct.y,ht.x,ht.y,ce)?(Xt=gt=ce.copy(),b=ht.ab(ce)):Ln.Ff(Nt.x,Nt.y,Nt.x+Nt.width,Nt.y+Nt.height,ht.x,ht.y,a.x,a.y,ce)&&(Xt=gt=ce.copy(),b=a.ab(ce))),ke.free(ce)}ot=ot.copy().ed(at),ot.Bc(Kt.Ho*Kt.Os,Kt.Go*Kt.Os),d1(Kt,a,y,gt,b,ot,!0),at=JA(Kt,gt.x,gt.y),!Kt.abort&&at>=Qp&&(c1(Kt),ot.Bc(Kt.Ho*Kt.Hx,Kt.Go*Kt.Ix),d1(Kt,a,y,gt,b,ot,!1),at=JA(Kt,gt.x,gt.y)),!Kt.abort&&at<Qp&&JA(Kt,gt.x,gt.y)!==kf?(kv(this,Kt,gt.x,gt.y,b,!0,nt),ot=this.i(2),4>this.pointsCount?(y===0||y===180?(ot.x=a.x,ot.y=gt.y):(ot.x=gt.x,ot.y=a.y),this.L(2,ot.x,ot.y),this.m(3,ot.x,ot.y)):(nt=this.i(3),y===0||y===180?Ln.B(ot.x,nt.x)?(ot=y===0?Math.max(ot.x,a.x):Math.min(ot.x,a.x),this.L(2,ot,a.y),this.L(3,ot,nt.y)):Ln.B(ot.y,nt.y)?(Math.abs(a.y-ot.y)<=Kt.Go/2&&(this.L(2,ot.x,a.y),this.L(3,nt.x,a.y)),this.m(2,ot.x,a.y)):this.L(2,a.x,ot.y):(y===90||y===270)&&(Ln.B(ot.y,nt.y)?(ot=y===90?Math.max(ot.y,a.y):Math.min(ot.y,a.y),this.L(2,a.x,ot),this.L(3,nt.x,ot)):Ln.B(ot.x,nt.x)?(Math.abs(a.x-ot.x)<=Kt.Ho/2&&(this.L(2,a.x,ot.y),this.L(3,a.x,nt.y)),this.m(2,a.x,ot.y)):this.L(2,ot.x,a.y))),x!==null&&(a=this.i(1),nt=this.i(2),a.x!==nt.x&&a.y!==nt.y?y===0||y===180?this.m(2,a.x,nt.y):this.m(2,nt.x,a.y):y===0||y===180?this.m(2,E.x,x.y):this.m(2,x.x,E.y)),Xt!==null&&(b===0||b===180?this.yf(z.x,Xt.y):this.yf(Xt.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(ht.copy()),this.ne(ct.copy())),ke.free(ht),ke.free(ct)}},Vi.prototype.computeMidOrthoPosition=function(a,y,x,b,E){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),E?(y+b)/2+z:(a+x)/2+z};function Iv(a){if(a.diagram===null||!a.isAvoiding||!vi(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=Ri(a.diagram,!0,a.containingGroup,null);for(var b=1;b<x-2;b++){var E=y[b],z=y[b+1];if(!a.Yj(Math.min(E.x,z.x),Math.min(E.y,z.y),Math.abs(E.x-z.x),Math.abs(E.y-z.y)))return!0}return!1}function kv(a,y,x,b,E,z,nt){var ot=y.Ho,at=y.Go,ht=JA(y,x,b),ct=x,gt=b;for(E===0?ct+=ot:E===90?gt+=at:E===180?ct-=ot:gt-=at,E!==nt&&ht>Tg&&JA(y,ct,gt)!==ht-1&&(JA(y,x-ot,b)===ht-1?(E=180,ct=x-ot,gt=b):JA(y,x+ot,b)===ht-1?(E=0,ct=x+ot,gt=b):JA(y,x,b-at)===ht-1?(E=270,ct=x,gt=b-at):JA(y,x,b+at)===ht-1&&(E=90,ct=x,gt=b+at));ht>Tg&&JA(y,ct,gt)===ht-1;)x=ct,b=gt,E===0?ct+=ot:E===90?gt+=at:E===180?ct-=ot:gt-=at,--ht;z?ht>Tg&&(E===180||E===0?x=Math.floor(x/ot)*ot+ot/2:(E===90||E===270)&&(b=Math.floor(b/at)*at+at/2)):(x=Math.floor(x/ot)*ot+ot/2,b=Math.floor(b/at)*at+at/2),ht>Tg&&(z=E,nt=x,ct=b,E===0?(z=90,ct+=at):E===90?(z=180,nt-=ot):E===180?(z=270,ct-=at):E===270&&(z=0,nt+=ot),JA(y,nt,ct)===ht-1?kv(a,y,nt,ct,z,!1,z):(nt=x,ct=b,E===0?(z=270,ct-=at):E===90?(z=0,nt+=ot):E===180?(z=90,ct+=at):E===270&&(z=180,nt-=ot),JA(y,nt,ct)===ht-1&&kv(a,y,nt,ct,z,!1,z))),a.yf(x,b)}Vi.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),b=this.i(1),E=os(y,a,x.x,x.y,b.x,b.y),z=0,nt=1;nt<this.pointsCount-1;nt++){x=this.i(nt+1);var ot=os(y,a,b.x,b.y,x.x,x.y);b=x,ot<E&&(z=nt,E=ot)}return z},Vi.prototype.qc=function(){this.lk=!1,this.v()},Vi.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 Go&&(E.ua=this.ua)}}},Vi.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,b=this.diagram;b!==null&&kg(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(),z=E.copy();b=this.Nb.s;var nt=this.computeCurve();if(nt===nd&&3<=y&&!Ln.$(this.smoothness,0))if(y===3){var ot=this.i(1);b=Math.min(E.x,ot.x);var at=Math.min(E.y,ot.y);ot=this.i(2),b=Math.min(b,ot.x),at=Math.min(at,ot.y)}else{if(this.isOrthogonal)for(at=0;at<y;at++)ot=b[at],z.x=Math.min(ot.x,z.x),z.y=Math.min(ot.y,z.y);else for(b=3;b<y;b+=3)b+3>=y&&(b=y-1),at=this.i(b),z.x=Math.min(at.x,z.x),z.y=Math.min(at.y,z.y);b=z.x,at=z.y}else{for(at=0;at<y;at++)ot=b[at],z.x=Math.min(ot.x,z.x),z.y=Math.min(ot.y,z.y);b=z.x,at=z.y}if(b-=this.su.x,at-=this.su.y,E.x-=b,E.y-=at,y!==2||kg(this)){if(a.type=$i.o,ot=jy(a),this.computeShortLength(!0)!==0&&(E=ep(this,E,!0,z)),jp(ot,E.x,E.y,!1),nt===nd&&3<=y&&!Ln.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-b,x=x.y-at,E=this.i(2).copy(),E.x-=b,E.y-=at,this.computeShortLength(!1)!==0&&(E=ep(this,E,!1,z)),Ff(ot,y,x,y,x,E.x,E.y);else if(this.isOrthogonal){y=ke.allocAt(b,at),x=ke.alloc(),x.assign(this.i(1)),z=ke.allocAt(b,at),E=ke.allocAt(b,at),nt=this.i(0);for(var ht,ct=this.smoothness/3,gt=1;gt<this.pointsCount-1;gt++){ht=this.i(gt);var Nt=nt,Kt=ht,Xt=this.i(Tv(this,ht,gt,!1));if((!Ln.$(Nt.x,Kt.x)||!Ln.$(Kt.x,Xt.x))&&(!Ln.$(Nt.y,Kt.y)||!Ln.$(Kt.y,Xt.y))){var ce=ct;isNaN(ce)&&(ce=this.smoothness/3);var Ke=Nt.x;Nt=Nt.y;var Te=Kt.x;Kt=Kt.y;var $e=Xt.x;Xt=Xt.y;var rn=ce*fm(Ke,Nt,Te,Kt);ce*=fm(Te,Kt,$e,Xt),Ln.$(Nt,Kt)&&Ln.$(Te,$e)&&(Te>Ke?Xt>Kt?(z.x=Te-rn,z.y=Kt-rn,E.x=Te+ce,E.y=Kt+ce):(z.x=Te-rn,z.y=Kt+rn,E.x=Te+ce,E.y=Kt-ce):Xt>Kt?(z.x=Te+rn,z.y=Kt-rn,E.x=Te-ce,E.y=Kt+ce):(z.x=Te+rn,z.y=Kt+rn,E.x=Te-ce,E.y=Kt-ce)),Ln.$(Ke,Te)&&Ln.$(Kt,Xt)&&(Kt>Nt?($e>Te?(z.x=Te-rn,z.y=Kt-rn,E.x=Te+ce):(z.x=Te+rn,z.y=Kt-rn,E.x=Te-ce),E.y=Kt+ce):($e>Te?(z.x=Te-rn,z.y=Kt+rn,E.x=Te+ce):(z.x=Te+rn,z.y=Kt+rn,E.x=Te-ce),E.y=Kt-ce)),(Ln.$(Ke,Te)&&Ln.$(Te,$e)||Ln.$(Nt,Kt)&&Ln.$(Kt,Xt))&&(Ke=.5*(Ke+$e),Nt=.5*(Nt+Xt),z.x=Ke,z.y=Nt,E.x=Ke,E.y=Nt),(gt===1||gt===2&&Ln.$(nt.x,this.i(0).x)&&Ln.$(nt.y,this.i(0).y))&&(x.x=.5*(nt.x+ht.x),x.y=.5*(nt.y+ht.y)),Ff(ot,x.x-b,x.y-at,z.x-b,z.y-at,ht.x-b,ht.y-at),y.set(z),x.set(E),nt=ht}}ht=nt.x,nt=nt.y,ct=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ct=ep(this,ct.copy(),!1,ts)),ht=.5*(ht+ct.x),nt=.5*(nt+ct.y),Ff(ot,E.x-b,E.y-at,ht-b,nt-at,ct.x-b,ct.y-at),ke.free(y),ke.free(x),ke.free(z),ke.free(E)}else for(x=3;x<y;x+=3)z=this.i(x-2),x+3>=y&&(x=y-1),E=this.i(x-1),nt=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(nt=ep(this,nt.copy(),!1,ts)),Ff(ot,z.x-b,z.y-at,E.x-b,E.y-at,nt.x-b,nt.y-at);else{for(z=ke.alloc(),z.assign(this.i(0)),E=ke.alloc(),E.assign(z),nt=this.computeCorner(),gt=1,ht=0;gt<y;){if(gt=Tv(this,z,gt,1<gt),ct=this.i(gt),gt>=y-1){if(!z.D(ct))this.computeShortLength(!1)!==0&&(ct=ep(this,ct.copy(),!1,ts)),np(this,ot,-b,-at,z,ct,x);else if(ht===0)for(gt=1;gt<y;)E.assign(z),ct=this.i(gt++),np(this,ot,-b,-at,z,ct,x),z.assign(ct);break}if(ht=Tv(this,ct,gt+1,gt<y-3),gt=-b,Ke=-at,Nt=ct,Te=this.i(ht),ce=x,Ln.B(z.y,Nt.y)&&Ln.B(Nt.x,Te.x))if(Xt=Math.min(nt,Math.abs(Nt.x-E.x)/2),Xt=rn=Math.min(Xt,Math.abs(Te.y-Nt.y)/2),Ln.B(Xt,0))np(this,ot,gt,Ke,z,Nt,ce),z.assign(Nt);else{var ln=Nt.x,Bn=Nt.y;Kt=ln,$e=Bn,Nt.x>z.x?ln=Nt.x-Xt:ln=Nt.x+Xt,Te.y>Nt.y?$e=Nt.y+rn:$e=Nt.y-rn,Te=ke.allocAt(ln,Bn),np(this,ot,gt,Ke,z,Te,ce),ke.free(Te),rm(ot,Nt.x+gt,Nt.y+Ke,Kt+gt,$e+Ke),z.h(Kt,$e)}else Ln.B(z.x,Nt.x)&&Ln.B(Nt.y,Te.y)?(Xt=Math.min(nt,Math.abs(Nt.y-E.y)/2),Xt=rn=Math.min(Xt,Math.abs(Te.x-Nt.x)/2),Ln.B(rn,0)?(np(this,ot,gt,Ke,z,Nt,ce),z.assign(Nt)):(ln=Nt.x,Bn=Nt.y,Kt=ln,$e=Bn,Nt.y>z.y?Bn=Nt.y-Xt:Bn=Nt.y+Xt,Te.x>Nt.x?Kt=Nt.x+rn:Kt=Nt.x-rn,Te=ke.allocAt(ln,Bn),np(this,ot,gt,Ke,z,Te,ce),ke.free(Te),rm(ot,Nt.x+gt,Nt.y+Ke,Kt+gt,$e+Ke),z.h(Kt,$e))):(np(this,ot,gt,Ke,z,Nt,ce),z.assign(Nt));E.assign(ct),gt=ht}ke.free(z)}om=ot}else ot=this.i(1).copy(),ot.x-=b,ot.y-=at,this.computeShortLength(!0)!==0&&(E=ep(this,E,!0,z)),this.computeShortLength(!1)!==0&&(ot=ep(this,ot,!1,z)),a.type=$i.j,a.startX=E.x,a.startY=E.y,a.endX=ot.x,a.endY=ot.y;return this.lk=!0,a};function fm(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),Ln.$(a,0)?y:Ln.$(y,0)?a:Math.sqrt(a*a+y*y)))}function ep(a,y,x,b){var E=a.pointsCount;if(2>E)return y;if(x){var z=a.i(1);if(x=z.x-b.x,z=z.y-b.y,b=fm(y.x,y.y,x,z),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!0),a>E&&(a=E),E=a*(z-y.y)/b,y.x+=a*(x-y.x)/b,y.y+=E}else{if(z=a.i(E-2),x=z.x-b.x,z=z.y-b.y,b=fm(y.x,y.y,x,z),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!1),a>E&&(a=E),E=a*(y.y-z)/b,y.x-=a*(y.x-x)/b,y.y-=E}return y}function Tv(a,y,x,b){for(var E=a.pointsCount,z=y;Ln.$(y.x,z.x)&&Ln.$(y.y,z.y);){if(x>=E)return E-1;z=a.i(x++)}if(!Ln.$(y.x,z.x)&&!Ln.$(y.y,z.y))return x-1;for(var nt=z;Ln.$(y.x,z.x)&&Ln.$(z.x,nt.x)&&(!b||(y.y>=z.y?z.y>=nt.y:z.y<=nt.y))||Ln.$(y.y,z.y)&&Ln.$(z.y,nt.y)&&(!b||(y.x>=z.x?z.x>=nt.x:z.x<=nt.x));){if(x>=E)return E-1;nt=a.i(x++)}return x-2}Vi.prototype.computeJumpLength=function(){return 10};function np(a,y,x,b,E,z,nt){if(!nt&&kg(a)){nt=a.computeJumpLength();var ot=nt/2,at=[],ht=0;if(a.isVisible()&&(ht=Iw(a,E,z,at)),0<ht){if(Ln.B(E.y,z.y))if(E.x<z.x)for(var ct=0;ct<ht;){var gt=Math.max(E.x,Math.min(at[ct++]-ot,z.x-nt));y.lineTo(gt+x,z.y+b);for(var Nt=gt+x,Kt=Math.min(gt+nt,z.x);ct<ht&&(gt=at[ct],gt<Kt+nt);)ct++,Kt=Math.min(gt+ot,z.x);gt=z.y-nt+b,Kt+=x;var Xt=z.y+b;a.curve===If?jp(y,Kt,Xt,!1):Ff(y,Nt,gt,Kt,gt,Kt,Xt)}else for(--ht;0<=ht;){for(ct=Math.min(E.x,Math.max(at[ht--]+ot,z.x+nt)),y.lineTo(ct+x,z.y+b),Nt=ct+x,gt=Math.max(ct-nt,z.x);0<=ht&&(ct=at[ht],ct>gt-nt);)ht--,gt=Math.max(ct-ot,z.x);ct=z.y-nt+b,gt+=x,Kt=z.y+b,a.curve===If?jp(y,gt,Kt,!1):Ff(y,Nt,ct,gt,ct,gt,Kt)}else if(Ln.B(E.x,z.x))if(E.y<z.y)for(ct=0;ct<ht;){for(gt=Math.max(E.y,Math.min(at[ct++]-ot,z.y-nt)),y.lineTo(z.x+x,gt+b),Nt=gt+b,gt=Math.min(gt+nt,z.y);ct<ht&&(Kt=at[ct],Kt<gt+nt);)ct++,gt=Math.min(Kt+ot,z.y);Kt=z.x-nt+x,Xt=z.x+x,gt+=b,a.curve===If?jp(y,Xt,gt,!1):Ff(y,Kt,Nt,Kt,gt,Xt,gt)}else for(--ht;0<=ht;){for(ct=Math.min(E.y,Math.max(at[ht--]+ot,z.y+nt)),y.lineTo(z.x+x,ct+b),Nt=ct+b,ct=Math.max(ct-nt,z.y);0<=ht&&(gt=at[ht],gt>ct-nt);)ht--,ct=Math.max(gt-ot,z.y);gt=z.x-nt+x,Kt=z.x+x,ct+=b,a.curve===If?jp(y,Kt,ct,!1):Ff(y,gt,Nt,gt,ct,Kt,ct)}}}y.lineTo(z.x+x,z.y+b)}function Iw(a,y,x,b){var E=a.diagram;if(E===null||y.D(x))return 0;for(E=E.layers;E.next();){var z=E.value;if(z!==null&&z.visible){z=z.Pa.s;for(var nt=z.length,ot=0;ot<nt;ot++){var at=z[ot];if(at instanceof Vi){if(at===a)return 0<b.length&&b.sort(function(ct,gt){return ct-gt}),b.length;if(at.isVisible()&&kg(at)){var ht=at.routeBounds;ht.w()&&a.routeBounds.Yc(ht)&&!a.usesSamePort(at)&&(ht=at.path,ht!==null&&ht.Ed()&&kw(y,x,b,at))}}}}}return 0<b.length&&b.sort(function(ct,gt){return ct-gt}),b.length}function kw(a,y,x,b){for(var E=Ln.B(a.y,y.y),z=b.pointsCount,nt=b.i(0),ot=ke.alloc(),at=1;at<z;at++){var ht=b.i(at);if(at<z-1){var ct=b.i(at+1);if(nt.y===ht.y&&ht.y===ct.y){if(ht.x>nt.x&&ct.x>=ht.x||ht.x<nt.x&&ct.x<=ht.x)continue}else if(nt.x===ht.x&&ht.x===ct.x&&(ht.y>nt.y&&ct.y>=ht.y||ht.y<nt.y&&ct.y<=ht.y))continue}t:{ct=a.x;var gt=a.y,Nt=y.x,Kt=y.y,Xt=nt.x;nt=nt.y;var ce=ht.x,Ke=ht.y;if(Ln.B(ct,Nt)){if(!Ln.B(gt,Kt)&&Ln.B(nt,Ke)&&Math.min(gt,Kt)<nt&&Math.max(gt,Kt)>nt&&Math.min(Xt,ce)<ct&&Math.max(Xt,ce)>ct&&!Ln.B(Xt,ce)){ot.x=ct,ot.y=nt,ct=!0;break t}}else if(Ln.B(gt,Kt)&&Ln.B(Xt,ce)&&Math.min(ct,Nt)<Xt&&Math.max(ct,Nt)>Xt&&Math.min(nt,Ke)<gt&&Math.max(nt,Ke)>gt&&!Ln.B(nt,Ke)){ot.x=Xt,ot.y=gt,ct=!0;break t}ot.x=0,ot.y=0,ct=!1}ct&&(E?x.push(ot.x):x.push(ot.y)),nt=ht}ke.free(ot)}function kg(a){return a=a.curve,a===_p||a===If}function gm(a,y){(y||kg(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()))}Vi.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 z=!1;E=E.Pa.s;for(var nt=E.length,ot=0;ot<nt;ot++){var at=E[ot];at instanceof Vi&&(at===this?z=!0:z&&a1(this,at,a))}}else if(b)for(z=E.Pa.s,E=z.length,nt=0;nt<E;nt++)ot=z[nt],ot instanceof Vi&&a1(this,ot,a)}}}}};function a1(a,y,x){if(y!==null&&y.lk&&y.fd&&kg(y)){var b=y.routeBounds;b.w()&&(a.routeBounds.Yc(b)||x.Yc(b))&&(a.usesSamePort(y)||y.qc())}}Vi.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},Vi.prototype.isVisible=function(){if(!Yr.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},Vi.prototype.Zb=function(a){if(Yr.prototype.Zb.call(this,a),a&&gm(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},Vi.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?v0:this.qk};function p0(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,z=a=null,nt=y.jb.s,ot=nt.length,at=0;at<ot;at++){var ht=nt[at];(ht.ef===y&&ht.ff===b&&ht.uf===x&&ht.vf===E||ht.ef===x&&ht.ff===E&&ht.uf===y&&ht.vf===b)&&(z===null?z=ht:(a===null&&(a=[],a.push(z)),a.push(ht)))}if(a!==null){for(z=Yy(y,x,b,E),z===null&&(z=new wm(y,b,x,E),Zy(y,z),Zy(x,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function m0(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(wi(y.links,a),y.Sl()))}Vi.prototype.ph=function(){return!0},Re.Object.defineProperties(Vi.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&&um(y,this,x),m0(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,z=this.fromPortChanged;if(z!==null){var nt=!0;b!==null&&(nt=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=nt)}a!==null&&(this.uf!==a&&lm(a,this,E),p0(this),this.C(1)),this.g("fromNode",y,a),Up(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&_c(x),m0(this),this.ff=a;var b=this.fromPort;b!==null&&_c(b);var E=this.diagram;if(E!==null){var z=this.data,nt=E.model;z!==null&&nt.ri()&&nt.xv(z,a)}x!==b&&(this.Wf=null,this.bb(),z=this.fromPortChanged,z!==null&&(nt=!0,E!==null&&(nt=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=nt))),p0(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&&um(y,this,x),m0(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,z=this.toPortChanged;if(z!==null){var nt=!0;b!==null&&(nt=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=nt)}a!==null&&(this.ef!==a&&lm(a,this,E),p0(this),this.C(1)),this.g("toNode",y,a),Up(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&_c(x),m0(this),this.vf=a;var b=this.toPort;b!==null&&_c(b);var E=this.diagram;if(E!==null){var z=this.data,nt=E.model;z!==null&&nt.ri()&&nt.Cv(z,a)}x!==b&&(this.Wf=null,this.bb(),z=this.toPortChanged,z!==null&&(nt=!0,E!==null&&(nt=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=nt))),p0(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:Bs},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&&_c(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&&Zi(a,">= 0",Vi,"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:Bs},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&&_c(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&&Zi(a,">= 0",Vi,"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?wo: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&&g0(this.fromNode),this.toNode!==null&&g0(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof Go?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()===nd&&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 z=this.i(2);y=Math.min(z.x,y),x=Math.min(z.y,x),Ln.Dl(E.x,E.y,b.x,b.y,b.x,b.y,z.x,z.y,.5,a)}else for(z=3;z<b;z+=3){var nt=this.i(z-2);z+3>=b&&(z=b-1);var ot=this.i(z-1),at=this.i(z);Ln.Dl(E.x,E.y,nt.x,nt.y,ot.x,ot.y,at.x,at.y,.5,a),y=Math.min(at.x,y),x=Math.min(at.y,x),E=at}else for(E=this.i(0),z=this.i(1),y=Math.min(E.x,z.x),x=Math.min(E.y,z.y),a.h(E.x,E.y,0,0),a.Ye(z),E=2;E<b;E++)z=this.i(E),y=Math.min(z.x,y),x=Math.min(z.y,x),a.Ye(z);this.su.h(y-a.x,x-a.y)}return a}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new ke)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||cm(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);Ln.$(b.x,E.x)?(b=E.y-b.y,0>b&&(b=-b)):Ln.$(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 Ci,b=0;b<a.length/2;b++)E=new ke(a[2*b],a[2*b+1]).freeze(),x.add(E);else{for(b=!0,E=0;E<a.length;E++){var z=a[E];if(!ii(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){b=!1;break}}if(b)for(x=new Ci,b=0;b<a.length;b++)E=a[b],x.add(new ke(E.x,E.y).freeze())}}else if(a instanceof Ci)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else sn("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),cm(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&Qs(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||!Rp(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Rp(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(),gm(this,y===If||y===_p||a===If||a===_p),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(),gm(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)}}}),Vi.prototype.invalidateOtherJumpOvers=Vi.prototype.Xo,Vi.prototype.findClosestSegment=Vi.prototype.ez,Vi.prototype.updateRoute=Vi.prototype.vg,Vi.prototype.invalidateRoute=Vi.prototype.bb,Vi.prototype.rollbackRoute=Vi.prototype.rv,Vi.prototype.commitRoute=Vi.prototype.zf,Vi.prototype.startRoute=Vi.prototype.uh,Vi.prototype.clearPoints=Vi.prototype.Fj,Vi.prototype.removePoint=Vi.prototype.pv,Vi.prototype.addPointAt=Vi.prototype.yf,Vi.prototype.addPoint=Vi.prototype.ne,Vi.prototype.insertPointAt=Vi.prototype.m,Vi.prototype.insertPoint=Vi.prototype.Kz,Vi.prototype.setPointAt=Vi.prototype.L,Vi.prototype.setPoint=Vi.prototype.dd,Vi.prototype.getPoint=Vi.prototype.i,Vi.prototype.getOtherPort=Vi.prototype.Cz,Vi.prototype.getOtherNode=Vi.prototype.To;var ip=null,rp=null,Ov=new ri(Vi,"Normal",1),Tw=new ri(Vi,"Orthogonal",2),Ow=new ri(Vi,"AvoidsNodes",6),l1=new ri(Vi,"AvoidsNodesStraight",7),Vh=new ri(Vi,"None",0),nd=new ri(Vi,"Bezier",9),If=new ri(Vi,"JumpGap",10),_p=new ri(Vi,"JumpOver",11),v0=new ri(Vi,"End",17),pm=new ri(Vi,"Scale",18),mm=new ri(Vi,"Stretch",19),y0=new ri(Vi,"OrientAlong",21),w0=new ri(Vi,"OrientPlus90",22),x0=new ri(Vi,"OrientMinus90",23),Dv=new ri(Vi,"OrientOpposite",24),vm=new ri(Vi,"OrientUpright",25),S0=new ri(Vi,"OrientPlus90Upright",26),C0=new ri(Vi,"OrientMinus90Upright",27),ym=new ri(Vi,"OrientUpright45",28),u1=16,h1=14,B0=8;Vi.className="Link",Vi.Normal=Ov,Vi.Orthogonal=Tw,Vi.AvoidsNodes=Ow,Vi.AvoidsNodesStraight=l1,Vi.None=Vh,Vi.Bezier=nd,Vi.JumpGap=If,Vi.JumpOver=_p,Vi.End=v0,Vi.Scale=pm,Vi.Stretch=mm,Vi.OrientAlong=y0,Vi.OrientPlus90=w0,Vi.OrientMinus90=x0,Vi.OrientOpposite=Dv,Vi.OrientUpright=vm,Vi.OrientPlus90Upright=S0,Vi.OrientMinus90Upright=C0,Vi.OrientUpright45=ym,Vi.EndSegmentStep=8,Vi.CurvinessStart=u1,Vi.SpacingMin=h1,Vi.OrthoShortCut=B0;function wm(a,y,x,b){ns(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=b,this.links=[]}wm.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},wm.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))}},wm.className="LinkBundle";function P0(a){ns(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}P0.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=jv,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 Hp(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function JA(a,y,x){return Hp(a,y,x)?(y-=a.Nd,y/=a.rc,x-=a.Od,x/=a.sc,a.ac[y|0][x|0]):jv}function c1(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]>=Tg&&(x[b]=jv)}P0.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 z=y;z<=x;z++)if(E[z]===kf)return!1}return!0};function qA(a,y,x,b,E,z,nt,ot,at){if(!(y<z||y>nt||x<ot||x>at)){var ht=y|0,ct=x|0,gt=a.ac[ht][ct];if(gt>=Tg&><Qp)for(E?ct+=b:ht+=b,gt+=1;z<=ht&&ht<=nt&&ot<=ct&&ct<=at&&!(gt>=a.ac[ht][ct]);)a.ac[ht][ct]=gt,gt+=1,E?ct+=b:ht+=b;if(ht=E?ct:ht,E)if(0<b)for(x+=b;x<ht;x+=b)qA(a,y,x,1,!E,z,nt,ot,at),qA(a,y,x,-1,!E,z,nt,ot,at);else for(x+=b;x>ht;x+=b)qA(a,y,x,1,!E,z,nt,ot,at),qA(a,y,x,-1,!E,z,nt,ot,at);else if(0<b)for(y+=b;y<ht;y+=b)qA(a,y,x,1,!E,z,nt,ot,at),qA(a,y,x,-1,!E,z,nt,ot,at);else for(y+=b;y>ht;y+=b)qA(a,y,x,1,!E,z,nt,ot,at),qA(a,y,x,-1,!E,z,nt,ot,at)}}function xm(a,y,x,b,E,z,nt,ot,at){y|=0,x|=0;var ht=kf,ct=Tg;for(a.ac[y][x]=ct;ht===kf&&y>z&&y<nt&&x>ot&&x<at;)ct+=1,a.ac[y][x]=ct,E?x+=b:y+=b,ht=a.ac[y][x]}function Sm(a,y,x,b,E,z,nt,ot,at){y|=0,x|=0;var ht=kf,ct=Qp;for(a.ac[y][x]=ct;ht===kf&&y>z&&y<nt&&x>ot&&x<at;)a.ac[y][x]=ct,E?x+=b:y+=b,ht=a.ac[y][x]}function d1(a,y,x,b,E,z,nt){if(a.ac!==null){a.abort=!1;var ot=y.x,at=y.y;if(Hp(a,ot,at)){ot-=a.Nd,ot/=a.rc,at-=a.Od,at/=a.sc;var ht=b.x,ct=b.y;if(Hp(a,ht,ct))if(ht-=a.Nd,ht/=a.rc,ct-=a.Od,ct/=a.sc,1>=Math.abs(ot-ht)&&1>=Math.abs(at-ct))a.abort=!0;else{var gt=z.x;b=z.y,y=z.x+z.width;var Nt=z.y+z.height;gt-=a.Nd,gt/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,Nt-=a.Od,Nt/=a.sc,z=Math.max(0,Math.min(a.di,gt|0)),y=Math.min(a.di,Math.max(0,y|0)),gt=Math.max(0,Math.min(a.ei,b|0)),Nt=Math.min(a.ei,Math.max(0,Nt|0)),b=a.ac,ot|=0,at|=0,ht|=0,ct|=0;var Kt=x===0||x===90?1:-1;if(x=x===90||x===270,b[ot][at]===kf?(xm(a,ot,at,Kt,x,z,y,gt,Nt),xm(a,ot,at,1,!x,z,y,gt,Nt),xm(a,ot,at,-1,!x,z,y,gt,Nt)):xm(a,ot,at,Kt,x,ot,at,ot,at),b[ht][ct]===kf?(Sm(a,ht,ct,E===0||E===90?1:-1,E===90||E===270,z,y,gt,Nt),Sm(a,ht,ct,1,!(E===90||E===270),z,y,gt,Nt),Sm(a,ht,ct,-1,!(E===90||E===270),z,y,gt,Nt)):Sm(a,ht,ct,Kt,x,ht,ct,ht,ct),x=yi(),nt&&A1(a,ht,ct,E,ot,at,x))for((x[0]!==ht||x[1]!==ct)&&(x.unshift(ct),x.unshift(ht)),(x[x.length-2]!==ot||x[x.length-1]!==at)&&(x.push(ot),x.push(at)),a=Tg,E=x[x.length-2],nt=x[x.length-1],b[E][nt]=a++,z=x.length-4;0<=z;z-=2)for(E=x[z+2],nt=x[z+3],y=x[z],ht=x[z+1];y>E?E++:y<E?E--:ht>nt?nt++:ht<nt&&nt--,b[E][nt]=a++,E!==y||nt!==ht;);else qA(a,ot,at,1,!1,z,y,gt,Nt),qA(a,ot,at,-1,!1,z,y,gt,Nt),qA(a,ot,at,1,!0,z,y,gt,Nt),qA(a,ot,at,-1,!0,z,y,gt,Nt);nr(x)}}}}function A1(a,y,x,b,E,z,nt){for(var ot=a.ac,at=y,ht=x;;){if(at===E&&ht===z)return!0;var ct=at,gt=ht;if(b===0)if(ct<E)ct++;else break;else if(b===90)if(gt<z)gt++;else break;else if(b===180)if(ct>E)ct--;else break;else if(gt>z)gt--;else break;var Nt=ot[ct][gt];if(Nt===0||Nt===Uv)break;at=ct,ht=gt}for(;;){if(ct=b,gt=at,Nt=ht,b===0?Nt<z?(ct=90,Nt++):Nt>z&&(ct=270,Nt--):b===90?gt<E?(ct=0,gt++):gt>E&&(ct=180,gt--):b===180?Nt<z?(ct=90,Nt++):Nt>z&&(ct=270,Nt--):gt<E?(ct=0,gt++):gt>E&&(ct=180,gt--),gt=ot[gt][Nt],ct!==b&>!==0&>!==Uv){if(nt.push(at),nt.push(ht),A1(a,at,ht,ct,E,z,nt))return!0;nt.pop(),nt.pop()}if(ot[at][ht]=Uv,b===0){if(at===y)return!1;at--}else if(b===90){if(ht===x)return!1;ht--}else if(b===180){if(at===y)return!1;at++}else{if(ht===x)return!1;ht++}}}Re.Object.defineProperties(P0.prototype,{bounds:{get:function(){return new ai(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 kf=0,Tg=1,Qp=999999,jv=Qp+1,Uv=Qp+2;P0.className="PositionArray";function op(){ns(this),this.port=this.node=null,this.pe=[],this.ap=!1}op.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 Dw(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}op.prototype.Sl=function(){this.pe.length=0};function f1(a,y){var x=a.pe;if(x.length===0){t:if(!a.ap){x=a.ap,a.ap=!0;var b=null,E=a.node,z=E instanceof _o?E:null;if(z===null||z.isSubGraphExpanded)var nt=E.isTreeExpanded?E.findLinksConnected(a.port.portId):E.qx();else{if(!z.actualBounds.w()){a.ap=x;break t}b=z,nt=b.Lu()}z=a.pe.length=0;var ot=a.port.ga(Oa,ke.alloc()),at=a.port.ga(Ll,ke.alloc());for(E=ai.allocAt(ot.x,ot.y,0,0),E.Ye(at),ke.free(ot),ke.free(at),ot=ke.allocAt(E.x+E.width/2,E.y+E.height/2),at=a.port.li(),nt=nt.iterator;nt.next();){var ht=nt.value;if(ht.isVisible()&&ht.fromPort!==ht.toPort){var ct=ht.fromPort===a.port||ht.fromNode!==null&&ht.fromNode.Td(b),gt=ht.computeSpot(ct,a.port);if(gt.$c()&&(ct=ct?ht.toPort:ht.fromPort,ct!==null)){var Nt=ct.part;if(Nt!==null){var Kt=Nt.findVisibleNode();Kt!==null&&Kt!==Nt&&(Nt=Kt,ct=Nt.port),ct=ht.computeOtherPoint(Nt,ct),Nt=ot.ab(ct),Nt-=at,0>Nt?Nt+=360:360<=Nt&&(Nt-=360),gt=Dw(E,gt,Nt,ht.isOrthogonal),gt===0?(gt=4,180<Nt&&(Nt-=360)):gt===90?(gt=8,270<Nt&&(Nt-=360)):gt===180?gt=2:(gt=1,90>Nt&&(Nt+=360)),Kt=a.pe[z],Kt===void 0?(Kt=new Rv(ht,Nt,gt),a.pe[z]=Kt):(Kt.link=ht,Kt.angle=Nt,Kt.Nc=gt),Kt.hv.set(ct),z++}}}}for(ke.free(ot),a.pe.sort(op.prototype.j),at=a.pe.length,b=-1,z=ot=0;z<at;z++)nt=a.pe[z],nt!==void 0&&(nt.Nc!==b&&(b=nt.Nc,ot=0),nt.Uo=ot,ot++);for(b=-1,ot=0,z=at-1;0<=z;z--)at=a.pe[z],at!==void 0&&(at.Nc!==b&&(b=at.Nc,ot=at.Uo+1),at.Gl=ot);if(z=a.pe,gt=a.port,b=a.node.portSpreading,ot=ke.alloc(),at=ke.alloc(),nt=ke.alloc(),ht=ke.alloc(),gt.ga(Oa,ot),gt.ga(su,at),gt.ga(Ll,nt),gt.ga(Cs,ht),Kt=Nt=ct=gt=0,b===Fv)for(var Xt=0;Xt<z.length;Xt++){var ce=z[Xt];if(ce!==null){var Ke=ce.link.computeThickness();switch(ce.Nc){case 8:Nt+=Ke;break;case 2:Kt+=Ke;break;case 1:gt+=Ke;break;default:case 4:ct+=Ke}}}var Te=Xt=0,$e=1,rn=ce=0;for(Ke=0;Ke<z.length;Ke++){var ln=z[Ke];if(ln!==null){if(Xt!==ln.Nc){switch(Xt=ln.Nc,Xt){case 8:var Bn=nt;Te=ht;break;case 2:Bn=ht,Te=ot;break;case 1:Bn=ot,Te=at;break;default:case 4:Bn=at,Te=nt}switch(ce=Te.x-Bn.x,rn=Te.y-Bn.y,Xt){case 8:Nt>Math.abs(ce)?($e=Math.abs(ce)/Nt,Nt=Math.abs(ce)):$e=1;break;case 2:Kt>Math.abs(rn)?($e=Math.abs(rn)/Kt,Kt=Math.abs(rn)):$e=1;break;case 1:gt>Math.abs(ce)?($e=Math.abs(ce)/gt,gt=Math.abs(ce)):$e=1;break;default:case 4:ct>Math.abs(rn)?($e=Math.abs(rn)/ct,ct=Math.abs(rn)):$e=1}Te=0}var Gn=ln.Zo;if(b===Fv){switch(ln=ln.link.computeThickness(),ln*=$e,Gn.set(Bn),Xt){case 8:Gn.x=Bn.x+ce/2+Nt/2-Te-ln/2;break;case 2:Gn.y=Bn.y+rn/2+Kt/2-Te-ln/2;break;case 1:Gn.x=Bn.x+ce/2-gt/2+Te+ln/2;break;default:case 4:Gn.y=Bn.y+rn/2-ct/2+Te+ln/2}Te+=ln}else{var lr=.5;b===hm&&(lr=(ln.Uo+1)/(ln.Gl+1)),Gn.x=Bn.x+ce*lr,Gn.y=Bn.y+rn*lr}}}for(ke.free(ot),ke.free(at),ke.free(nt),ke.free(ht),Bn=a.pe,z=0;z<Bn.length;z++)b=Bn[z],b!==null&&(b.Ju=a.computeEndSegmentLength(b));a.ap=x,ai.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}op.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},op.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,Ma,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 z=a.Zo;return(a.Nc===2||a.Nc===8)&&(b=E-1-b),((a=a.Nc===2||a.Nc===4)?y.y<z.y:y.x<z.x)?x+8*b:(a?y.y===z.y:y.x===z.x)?x:x+8*(E-1-b)},op.className="Knot";function Rv(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new ke,this.Gl=this.Uo=0,this.Zo=new ke,this.Ju=0}Rv.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()},Rv.className="LinkInfo";function Ya(a){ns(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new ke(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}Ya.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},Ya.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Ya.prototype.qb=function(){},Ya.prototype.toString=function(){var a=sr(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},Ya.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())}}},Ya.prototype.createNetwork=function(){return new Ba(this)},Ya.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof _n?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof _o?y.lg(a.memberParts):y.lg(a.iterator),y},Ya.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")}},Ya.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()}},Ya.prototype.doLayout=function(a){var y=new bi;a instanceof _n?(rg(this,y,a.nodes,!0,this.rh,!0,!1,!0),rg(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof _o?rg(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},Ya.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,z=0,nt=0;for(a=a.iterator;a.next();){var ot=a.value;b0(ot);var at=ot.measuredBounds,ht=at.width;at=at.height,ot.moveTo(b,E),ot instanceof _o&&(ot.rh=!1),b+=Math.max(ht,50)+20,nt=Math.max(nt,Math.max(at,50)),z>=y-1?(z=0,b=x,E+=nt+20,nt=0):z++}},Ya.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,z=0,nt=this.network.vertexes.iterator;nt.next();){var ot=nt.value.node;if(!(ot===null||ot instanceof Vi)&&(b0(ot),this.rh(ot))){var at=ot.measuredBounds,ht=at.width;at=at.height,ot.moveTo(x,b),ot instanceof _o&&(ot.rh=!1),x+=Math.max(ht,50)+20,z=Math.max(z,Math.max(at,50)),E>=a-1?(E=0,x=y,b+=z+20,z=0):E++}}},Ya.prototype.rh=function(a){return!!(!a.location.w()||a instanceof _o&&a.rh)};function rg(a,y,x,b,E,z,nt,ot){for(x=x.iterator;x.next();){var at=x.value;b&&!at.isTopLevel||E!==null&&!E(at)||!at.canLayout()||(z&&at instanceof Ar?at.isLinkLabel||(at instanceof _o&&at.layout===null?rg(a,y,at.memberParts,!1,E,z,nt,ot):(b0(at),y.add(at))):nt&&at instanceof Vi?y.add(at):!ot||!at.Zc()||at instanceof Ar||(b0(at),y.add(at)))}}function b0(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Ya.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new ai),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Ya.prototype.ex=function(a){var y=new bi;return a instanceof _n?(rg(this,y,a.nodes,!0,null,!0,!0,!0),rg(this,y,a.links,!0,null,!0,!0,!0),rg(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof _o?rg(this,y,a.memberParts,!1,null,!0,!0,!0):rg(this,y,a.iterator,!1,null,!0,!0,!0),y},Ya.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(Oa),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},Re.Object.defineProperties(Ya.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())}}}),Ya.prototype.collectParts=Ya.prototype.ex,Ya.prototype.getLayoutBounds=Ya.prototype.ni,Ya.prototype.invalidateLayout=Ya.prototype.C,Ya.className="Layout";function Ba(a){ns(this),this.Sc=a,this.wf=new bi,this.ye=new bi,this.Es=new Cr,this.zs=new Cr}Ba.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 bi,this.ye=new bi,this.Es=new Cr,this.zs=new Cr},Ba.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},Ba.prototype.createVertex=function(){return new xu(this)},Ba.prototype.createEdge=function(){return new Hc(this)},Ba.prototype.lg=function(a,y,x){if(a!==null){for(y===void 0&&(y=!1),x===void 0&&(x=null),x===null&&(x=function(nt){if(nt instanceof Ar)return!nt.isLinkLabel;if(nt instanceof Vi){var ot=nt.fromNode;return ot===null||ot.isLinkLabel?!1:(nt=nt.toNode,!(nt===null||nt.isLinkLabel))}return!1}),a=a.iterator;a.next();){var b=a.value;if(b instanceof Ar&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)){if(b instanceof _o&&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 Vi&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)&&this.Lo(b)===null){var z=b.fromNode;E=b.toNode,z!==null&&E!==null&&z!==E&&(z=this.findGroupVertex(z),E=this.findGroupVertex(E),z!==null&&E!==null&&this.Zj(z,E,b))}}},Ba.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},Vt=Ba.prototype,Vt.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},Vt.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},Vt.Iu=function(a){if(a!==null&&g1(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 g1(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}Vt.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},Vt.ki=function(a){return a===null?null:this.Es.I(a)},Vt.Bo=function(a){if(a!==null){_v(this,a);var y=a.toVertex;y!==null&&y.Cl(a),y=a.fromVertex,y!==null&&y.zl(a)}};function _v(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}}Vt.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},Vt.Mj=function(a){if(a!==null){var y=a.toVertex;y!==null&&y.Kl(a),y=a.fromVertex,y!==null&&y.Jl(a),Hv(this,a)}};function Hv(a,y){y!==null&&a.ye.remove(y)&&(y=y.link,y!==null&&a.zs.remove(y))}Vt.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},Vt.Lo=function(a){return a===null?null:this.zs.I(a)},Vt.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},Vt.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))}},Vt.Ko=function(){for(var a=yi(),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]);nr(a)},Ba.prototype.deleteArtificialVertexes=function(){for(var a=yi(),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=yi(),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]);nr(a),nr(y)};function jw(a){for(var y=yi(),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]);nr(y)}Ba.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),jw(this),this.Ko()),a=new Ci;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),Qv(this,y,b),y=!0;break}}}return a.sort(function(E,z){return E===null||z===null||E===z?0:z.vertexes.count-E.vertexes.count}),a};function Qv(a,y,x){if(x!==null&&x.network!==y){g1(a,x),y.dh(x);for(var b=x.sourceEdges;b.next();){var E=b.value;E.network!==y&&(Hv(a,E),_v(y,E),Qv(a,y,E.fromVertex))}for(b=x.destinationEdges;b.next();)x=b.value,x.network!==y&&(Hv(a,x),_v(y,x),Qv(a,y,x.toVertex))}}Ba.prototype.dz=function(){for(var a=new bi,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},Re.Object.defineProperties(Ba.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}}}),Ba.prototype.findAllParts=Ba.prototype.dz,Ba.prototype.splitIntoSubNetworks=Ba.prototype.Zx,Ba.prototype.deleteSelfEdges=Ba.prototype.Ko,Ba.prototype.reverseEdge=Ba.prototype.gm,Ba.prototype.linkVertexes=Ba.prototype.Zj,Ba.prototype.findEdge=Ba.prototype.Lo,Ba.prototype.deleteLink=Ba.prototype.Yy,Ba.prototype.deleteEdge=Ba.prototype.Mj,Ba.prototype.addLink=Ba.prototype.Dy,Ba.prototype.addEdge=Ba.prototype.Bo,Ba.prototype.findVertex=Ba.prototype.ki,Ba.prototype.deleteNode=Ba.prototype.Zy,Ba.prototype.deleteVertex=Ba.prototype.Iu,Ba.prototype.addNode=Ba.prototype.Bl,Ba.prototype.addVertex=Ba.prototype.dh,Ba.prototype.addParts=Ba.prototype.lg,Ba.className="LayoutNetwork";function xu(a){ns(this),this.ob=a,this.j=new ai(0,0,10,10).freeze(),this.o=new ke(5,5).freeze(),this.Sh=this.ub=null,this.tg=new Ci,this.mg=new Ci}xu.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new Ci,this.mg=new Ci},xu.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+fs(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 z=b.value;x?x=!1:E+=",",E+=z.toString(0)}y+=" sources: "+a+" destinations: "+E}return y},xu.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;ii(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 _o)){x=ai.alloc(),a.Va();var b=this.network.layout.ni(a,x),E=a.locationObject.ga(Yo);if(b.w()&&E.w()){a.moveTo(y.x+this.focusX-(E.x-b.x),y.y+this.focusY-(E.y-b.y)),ai.free(x);return}ai.free(x)}a.moveTo(y.x,y.y)}},xu.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},xu.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},xu.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},xu.prototype.Jl=function(a){a!==null&&this.mg.remove(a)};function zv(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}Re.Object.defineProperties(xu.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=ai.alloc(),b=y.ni(a,x);y=b.x;var E=b.y,z=b.width;if(b=b.height,isNaN(y)&&(y=0),isNaN(E)&&(E=0),this.j.h(y,E,z,b),ai.free(x),!(a instanceof _o)&&(a=a.locationObject.ga(Yo),a.w())){this.o.h(a.x-y,a.y-E);return}this.o.h(z/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 bi,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new bi,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new bi,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 Ci,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}}}),xu.prototype.deleteDestinationEdge=xu.prototype.Jl,xu.prototype.addDestinationEdge=xu.prototype.zl,xu.prototype.deleteSourceEdge=xu.prototype.Kl,xu.prototype.addSourceEdge=xu.prototype.Cl,xu.className="LayoutVertex",xu.standardComparer=zv,xu.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 Hc(a){ns(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}Hc.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},Hc.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+fs(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},Hc.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Hc.prototype.commit=function(){},Hc.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},Re.Object.defineProperties(Hc.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)}}}),Hc.prototype.getOtherVertex=Hc.prototype.Ax,Hc.className="LayoutEdge";function Yu(a){Ya.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new Ki(NaN,NaN).freeze(),this.tf=new Ki(10,10).freeze(),this.Jb=E0,this.Rb=Bm,this.nd=F0,this.hd=p1,a&&Object.assign(this,a)}On(Yu,Ya),Yu.prototype.cloneProtected=function(a){Ya.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},Yu.prototype.qb=function(a){a.classType===Yu?a===F0||a===bm||a===Kv||a===Pm?this.sorting=a:a===Bm||a===vA?this.arrangement=a:a===E0||a===Cm?this.alignment=a:sn("Unknown enum value: "+a):Ya.prototype.qb.call(this,a)},Yu.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 _o)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 Pm:E.reverse();break;case F0:E.sort(this.comparer);break;case bm:E.sort(this.comparer),E.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var nt=this.wrappingWidth;switch(isNaN(nt)&&a!==null?(y=a.padding,nt=Math.max(a.viewportBounds.width-y.left-y.right,0)):nt=Math.max(this.wrappingWidth,0),0>=z&&0>=nt&&(z=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 Cm:var ot=y,at=x,ht=ai.alloc(),ct=Math.max(this.cellSize.width,1);if(!isFinite(ct))for(var gt=ct=0;gt<E.length;gt++){var Nt=this.ni(E[gt],ht);ct=Math.max(ct,Nt.width)}if(ct=Math.max(ct+ot,1),gt=Math.max(this.cellSize.height,1),!isFinite(gt))for(Nt=gt=0;Nt<E.length;Nt++){var Kt=this.ni(E[Nt],ht);gt=Math.max(gt,Kt.height)}gt=Math.max(gt+at,1),Nt=this.arrangement;for(var Xt=Kt=this.arrangementOrigin.x,ce=this.arrangementOrigin.y,Ke=0,Te=0,$e=0;$e<E.length;$e++){var rn=E[$e],ln=this.ni(rn,ht),Bn=Math.ceil((ln.width+ot)/ct)*ct,Gn=Math.ceil((ln.height+at)/gt)*gt;switch(Nt){case vA:var lr=Math.abs(Xt-ln.width);break;default:lr=Xt+ln.width}switch((0<z&&Ke>z-1||0<nt&&0<Ke&&lr-Kt>nt)&&(b.push(new ai(0,ce,nt+ot,Te)),Ke=0,Xt=Kt,ce+=Te,Te=0),Te=Math.max(Te,Gn),Nt){case vA:ln=-ln.width;break;default:ln=0}switch(rn.moveTo(Xt+ln,ce),Nt){case vA:Xt-=Bn;break;default:Xt+=Bn}Ke++}b.push(new ai(0,ce,nt+ot,Te)),ai.free(ht);break;case E0:for(at=nt,ct=z,gt=y,Nt=x,nt=ai.alloc(),Kt=Math.max(this.cellSize.width,1),z=ce=ht=0,ot=ke.alloc(),Xt=0;Xt<E.length;Xt++)Te=E[Xt],Ke=this.ni(Te,nt),Te=Lf(Te,Te.locationObject,Te.locationSpot,ot),ht=Math.max(ht,Te.x),ce=Math.max(ce,Ke.width-Te.x),z=Math.max(z,Te.y);switch(Xt=this.arrangement,Xt){case vA:ht+=gt;break;default:ce+=gt}Kt=isFinite(Kt)?Math.max(Kt+gt,1):Math.max(ht+ce,1);var kr=Te=this.arrangementOrigin.x;for($e=this.arrangementOrigin.y,ce=0,at>=ht&&(at-=ht),ht=rn=0,Bn=Math.max(this.cellSize.height,1),ln=z=0,Gn=!0,Ke=ke.alloc(),lr=0;lr<E.length;lr++){var Sr=E[lr],Wi=this.ni(Sr,nt),Mi=Lf(Sr,Sr.locationObject,Sr.locationSpot,ot);if(0<ce)switch(Xt){case vA:kr=(kr-Te-(Wi.width-Mi.x))/Kt,kr=Ln.$(Math.round(kr),kr)?Math.round(kr):Math.floor(kr),kr=kr*Kt+Te;break;default:kr=(kr-Te+Mi.x)/Kt,kr=Ln.$(Math.round(kr),kr)?Math.round(kr):Math.ceil(kr),kr=kr*Kt+Te}else switch(Xt){case vA:rn=kr+Mi.x+Wi.width;break;default:rn=kr-Mi.x}switch(Xt){case vA:var Uo=-(kr+Mi.x)+rn;break;default:Uo=kr+Wi.width-Mi.x-rn}if(0<ct&&ce>ct-1||0<at&&0<ce&&Uo>at){for(b.push(new ai(0,Gn?$e-z:$e,at+gt,ln+z+Nt)),kr=0;kr<ce&&lr!==ce;kr++){Uo=E[lr-ce+kr];var Bo=Lf(Uo,Uo.locationObject,Uo.locationSpot,Ke);Uo.moveTo(Uo.position.x,Uo.position.y+z-Bo.y)}ln+=Nt,$e=Gn?$e+ln:$e+(ln+z),ce=ln=z=0,kr=Te,Gn=!1}switch(kr===Te&&(ht=Xt===vA?Math.max(ht,Wi.width-Mi.x):Math.min(ht,-Mi.x)),z=Math.max(z,Mi.y),ln=Math.max(ln,Wi.height-Mi.y),isFinite(Bn)&&(ln=Math.max(ln,Math.max(Wi.height,Bn)-Mi.y)),Gn?Sr.moveTo(kr-Mi.x,$e-Mi.y):Sr.moveTo(kr-Mi.x,$e),Xt){case vA:kr-=Mi.x+gt;break;default:kr+=Wi.width-Mi.x+gt}ce++}if(b.push(new ai(0,$e,at+gt,(Gn?ln:ln+z)+Nt)),E.length!==ce)for(at=0;at<ce;at++)ct=E[E.length-ce+at],gt=Lf(ct,ct.locationObject,ct.locationSpot,ot),ct.moveTo(ct.position.x,ct.position.y+z-gt.y);if(ke.free(ot),ke.free(Ke),Xt===vA)for(E=0;E<b.length;E++)z=b[E],z.width+=ht,z.x-=ht;else for(E=0;E<b.length;E++)z=b[E],z.x>ht&&(z.width+=z.x-ht,z.x=ht);ai.free(nt)}for(ot=z=nt=E=0;ot<b.length;ot++)at=b[ot],E=Math.min(E,at.x),nt=Math.min(nt,at.y),z=Math.max(z,at.x+at.width);this.arrangement===vA?this.commitLayers(b,new ke(E+y/2-(z+E),nt-x/2)):this.commitLayers(b,new ke(E-y/2,nt-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},Yu.prototype.commitLayers=function(){};function p1(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}Re.Object.defineProperties(Yu.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!==E0&&a!==Cm||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==Bm&&a!==vA||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==Kv&&a!==Pm&&a!==F0&&a!==bm||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var Cm=new ri(Yu,"Position",0),E0=new ri(Yu,"Location",1),Bm=new ri(Yu,"LeftToRight",2),vA=new ri(Yu,"RightToLeft",3),Kv=new ri(Yu,"Forward",4),Pm=new ri(Yu,"Reverse",5),F0=new ri(Yu,"Ascending",6),bm=new ri(Yu,"Descending",7);Yu.className="GridLayout",Yu.standardComparer=p1,Yu.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},Yu.Position=Cm,Yu.Location=E0,Yu.LeftToRight=Bm,Yu.RightToLeft=vA,Yu.Forward=Kv,Yu.Reverse=Pm,Yu.Ascending=F0,Yu.Descending=bm;function $s(){this.On=new bi,this.Dn=new bi,this.Pa=new bi,this.cf=new Cr,this.bf=new Cr,this.aj=new Cr,this.H=null,this.tp=!1}Vt=$s.prototype,Vt.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},Vt.Xe=function(a){this.H=a},Vt.oi=function(a){if(a instanceof Ar){if(this.On.add(a),a instanceof _o){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 Vi?this.Dn.add(a):a instanceof bs||this.Pa.add(a);y=a.data,y===null||a instanceof bs||(a instanceof Vi?this.bf.add(y,a):this.cf.add(y,a))},Vt.pc=function(a){if(a.Ej(),a instanceof Ar){if(this.On.remove(a),a instanceof _o){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 Vi?this.Dn.remove(a):a instanceof bs||this.Pa.remove(a);y=a.data,y===null||a instanceof bs||(a instanceof Vi?this.bf.remove(y):this.cf.remove(y))},Vt.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 _o)&&sn('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 _o||sn('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 Vi||sn('Invalid link template in Diagram.linkTemplateMap: template for "'+b+'" must be a Link, not a normal Node or simple Part: '+x);for(y=yi(),x=a.selection.iterator;x.next();)(b=x.value.data)&&y.push(b);for(x=yi(),a=a.highlighteds.iterator;a.next();)(b=a.value.data)&&x.push(b);for(a=yi(),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]);nr(y),nr(x),nr(a)}},$s.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},$s.prototype.addModeledParts=function(a,y){var x=this,b=this.diagram.model;a.forEach(function(E){b.lb(E)&&m1(x,E,!1)}),a.forEach(function(E){b.lb(E)&&x.resolveReferencesForData(E)}),y!==!1&&Fd(this.diagram,!1)};function m1(a,y,x){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){x===void 0&&(x=!0);t:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var b=a.Ro(y),E=v1(a,y,b);if(E!==null&&(lh(E),E=E.copy(),E!==null)){var z=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=z,b=E;break t}}b=null}b!==null&&x&&a.resolveReferencesForData(y)}}$s.prototype.insertLink=function(){return null},$s.prototype.resolveReferencesForData=function(){},$s.prototype.Ro=function(a){return this.H.model.Ro(a)};function v1(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&&(x1||(x1=!0,Tr('No Group template found for category "'+x+'"'),Tr(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(w1||(w1=!0,Tr('No Node template found for category "'+x+'"'),Tr(" Using default node template")),y=a.ny))),y}$s.prototype.getLinkCategoryForData=function(){return""},$s.prototype.setLinkCategoryForData=function(){},$s.prototype.setFromNodeForLink=function(){},$s.prototype.setToNodeForLink=function(){},$s.prototype.findLinkTemplateForCategory=function(a){var y=this.H,x=y.linkTemplateMap.I(a);return x===null&&(x=y.linkTemplateMap.I(""),x===null&&(S1||(S1=!0,Tr('No Link template found for category "'+a+'"'),Tr(" Using default link template")),x=y.my)),x},$s.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},$s.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},$s.prototype.ip=function(a){a=this.Lc(a),a!==null&&(Uh(this.diagram,a,!1),this.unresolveReferencesForPart(a))},$s.prototype.unresolveReferencesForPart=function(){},$s.prototype.removeDataForLink=function(){},$s.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},$s.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof Ar?a:null)},$s.prototype.findLinkForKey=function(){return null},Vt=$s.prototype,Vt.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},Vt.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof Ar?a:null)},Vt.Kc=function(a){return a===null?null:this.bf.I(a)},Vt.ms=function(a){for(var y=0;y<arguments.length;++y);y=new bi;for(var x=this.On.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var z=0;z<arguments.length;z++){var nt=arguments[z];if(ii(nt)&&Gv(this,E,nt)){y.add(b);break}}}return y.iterator},Vt.ls=function(a){for(var y=0;y<arguments.length;++y);y=new bi;for(var x=this.Dn.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var z=0;z<arguments.length;z++){var nt=arguments[z];if(ii(nt)&&Gv(this,E,nt)){y.add(b);break}}}return y.iterator};function Gv(a,y,x){for(var b in x){var E=y[b],z=x[b];if(xi(z)){if(!xi(E)||E.length<z.length)return!1;for(var nt=0;nt<E.length;nt++){var ot=z[nt];if(ot!==void 0&&!y1(a,E[nt],ot))return!1}}else if(!y1(a,E,z))return!1}return!0}function y1(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(ii(y)&&ii(x)){if(!Gv(a,y,x))return!1}else if(y!==x)return!1;return!0}$s.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===ja){if(b==="nodeCategory"){var E=this.Lc(a.object),z=a.newValue;E!==null&&typeof z=="string"&&(E.category=z)}else b==="nodeDataArray"&&(this.Gs(a.oldValue),this.addModeledParts(a.newValue));y.isModified=!0}else if(x===vl){var nt=a.newValue;b==="nodeDataArray"&&ii(nt)&&m1(this,nt),y.isModified=!0}else if(x===Zl){var ot=a.oldValue;b==="nodeDataArray"&&ii(ot)&&this.ip(ot),y.isModified=!0}else x===Ju&&(b==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):b==="ModelDisplaced"&&this.Wd());else if(x===ja){var at=a.propertyName,ht=a.object;ht===y.model?(at==="nodeKeyProperty"||at==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(ht,at),y.isModified=!0}else if(x===vl||x===Zl){var ct=a.change===vl,gt=ct?a.newParam:a.oldParam,Nt=ct?a.newValue:a.oldValue,Kt=this.aj.I(a.object);if(Array.isArray(Kt))for(a=0;a<Kt.length;a++){var Xt=Kt[a];if(ct)nh(Xt,Nt,gt,!0);else if(!(0>gt)){var ce=gt+YA(Xt);Xt.pc(ce,!0),Vg(Xt,ce,gt)}}y.isModified=!0}}finally{y.aa=!0}}}}},$s.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)},$s.prototype.rp=function(){for(var a=this.H.model,y=new bi,x=a.nodeDataArray,b=0;b<x.length;b++)y.add(x[b]);var E=[];for(this.nodes.each(function(nt){nt.data===null||y.contains(nt.data)||E.push(nt.data)}),this.parts.each(function(nt){nt.data===null||y.contains(nt.data)||E.push(nt.data)}),E.forEach(function(nt){N1(a,nt,!1)}),b=0;b<x.length;b++){var z=x[b];this.Lc(z)===null&&M1(a,z,!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()},$s.prototype.refreshDataBoundLinks=function(){},$s.prototype.updateRelationshipsFromData=function(){},$s.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,z=0;z<E.length;z++){var nt=E[z].sx(a);nt!==null&&(x===null&&(x=yi()),x.push(nt))}if(x!==null)break}if(x!==null){for(b=0;b<x.length;b++)x[b].La(y);nr(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function Wv(a,y){var x=y.Hh;if(xi(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 Vv(a,y,x){ua(y,function(nt){nt=nt.O.s;for(var ot=nt.length,at=0;at<ot;at++)hA(x,nt[at])});var b=y.Hh;if(xi(b)){var E=a.aj.I(b);if(E!==null){for(var z=0;z<E.length;z++)if(E[z]===y){E.splice(z,1),E.length===0&&a.aj.remove(b);break}}}}$s.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var b=new Cr;if(xi(a))for(var E=0;E<a.length;E++)Em(this,a[E],y,b,x);else for(a=a.iterator;a.next();)Em(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 bi;for(var z=new Cr,nt=b.iterator;nt.next();){var ot=nt.value;if(ot instanceof Vi)a||ot.fromNode!==null&&ot.toNode!==null||E.add(ot);else if(ot instanceof Ar&&ot.data!==null&&x.Tl()){var at=ot;ot=nt.key;var ht=ot.pg();ht!==null&&(ht=b.I(ht),ht!==null?(x.qe(at.data,x.wa(ht.data)),at=y.Kc(at.data),ot=ot.kh(),ot!==null&&at!==null&&z.add(ot,at)):x.qe(at.data,void 0))}}if(0<E.count&&y.Is(E,!1),0<z.count)for(x=z.iterator;x.next();)b.add(x.key,x.value)}if(y!==null&&this.H!==null&&(y=y.model,x=y.afterCopyFunction,x!==null)){var ct=new Cr;b.each(function(gt){gt.key.data!==null&&ct.add(gt.key.data,gt.value.data)}),x(ct,y,this.H.model)}for(y=b.iterator;y.next();)y.value.La();return b};function Em(a,y,x,b,E){if(y===null||E&&!y.canCopy())return null;if(b.contains(y))return b.I(y);var z=a.copyPartData(y,x);if(!(z instanceof Yr))return null;if(z.isSelected=!1,z.isHighlighted=!1,b.add(y,z),y instanceof Ar){for(var nt=y.linksConnected;nt.next();){var ot=nt.value;if(ot.fromNode===y){var at=b.I(ot);at!==null&&(at.fromNode=z)}ot.toNode===y&&(ot=b.I(ot),ot!==null&&(ot.toNode=z))}if(y instanceof _o&&z instanceof _o)for(y=y.memberParts;y.next();)nt=Em(a,y.value,x,b,E),nt instanceof Vi||nt===null||(nt.containingGroup=z)}else if(y instanceof Vi&&z instanceof Vi)for(nt=y.fromNode,nt!==null&&(nt=b.I(nt),nt!==null&&(z.fromNode=nt)),nt=y.toNode,nt!==null&&(nt=b.I(nt),nt!==null&&(z.toNode=nt)),y=y.labelNodes;y.next();)nt=Em(a,y.value,x,b,E),nt!==null&&nt instanceof Ar&&(nt.labeledLink=z);return z}$s.prototype.copyPartData=function(a,y){var x=null,b=a.data;if(b!==null&&y!==null){var E=y.model;a instanceof Vi||(b=E.copyNodeData(b),ii(b)&&(E.xf(b),x=y.Lc(b)))}else lh(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 Vi||(E=y.copyNodeData(b)),ii(E)&&(x.data=E)));return x},Re.Object.defineProperties($s.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}}}),$s.prototype.updateAllRelationshipsFromData=$s.prototype.rp,$s.prototype.findLinksByExample=$s.prototype.ls,$s.prototype.findNodesByExample=$s.prototype.ms,$s.prototype.findLinkForData=$s.prototype.Kc,$s.prototype.findNodeForData=$s.prototype.ii,$s.prototype.findPartForData=$s.prototype.Lc,$s.prototype.findNodeForKey=$s.prototype.Vb,$s.prototype.removeModeledPart=$s.prototype.ip,$s.prototype.removeModeledParts=$s.prototype.Gs,$s.prototype.rebuildParts=$s.prototype.Wd;var w1=!1,x1=!1,S1=!1;$s.className="PartManager";function Ou(a){$s.apply(this,arguments)}On(Ou,$s),Ou.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),C1(this,a.linkDataArray)},Ou.prototype.addModeledParts=function(a){for($s.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)Up(a.value);Fd(this.diagram,!1)};function C1(a,y){y.forEach(function(x){B1(a,x)}),Fd(a.diagram,!1)}function B1(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){lh(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 z=Nm(x,y,!0);z!==""&&(E.fromPortId=z),z=id(x,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof Ar&&(E.fromNode=z)),z=Nm(x,y,!1),z!==""&&(E.toPortId=z),z=id(x,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof Ar&&(E.toNode=z)),x=x.Ef(y),Array.isArray(x)&&x.forEach(function(nt){nt=a.Vb(nt),nt!==null&&(nt.labeledLink=E)}),a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=b}}}}Ou.prototype.removeAllModeledParts=function(){var a=this.diagram.model;P1(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function P1(a,y){y.forEach(function(x){a.ip(x)})}Ou.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},Ou.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},Ou.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},Ou.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},Ou.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},Ou.prototype.findPartForKey=function(a){var y=$s.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},Ou.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},Ou.prototype.doModelChanged=function(a){var y=this;if($s.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===ja){if(E==="linkFromKey"){var z=this.Kc(a.object);if(z!==null){var nt=this.Vb(a.newValue);z.fromNode=nt}}else if(E==="linkToKey"){var ot=this.Kc(a.object);if(ot!==null){var at=this.Vb(a.newValue);ot.toNode=at}}else if(E==="linkFromPortId"){var ht=this.Kc(a.object);if(ht!==null){var ct=a.newValue;typeof ct=="string"&&(ht.fromPortId=ct)}}else if(E==="linkToPortId"){var gt=this.Kc(a.object);if(gt!==null){var Nt=a.newValue;typeof Nt=="string"&&(gt.toPortId=Nt)}}else if(E==="nodeGroupKey"){var Kt=this.Lc(a.object);if(Kt!==null){var Xt=a.newValue;if(Xt!==void 0){var ce=this.Vb(Xt);ce instanceof _o?Kt.containingGroup=ce:Kt.containingGroup=null}else Kt.containingGroup=null}}else if(E==="linkLabelKeys"){var Ke=this.Kc(a.object);if(Ke!==null){var Te=a.oldValue,$e=a.newValue;Array.isArray(Te)&&Te.forEach(function(Mi){0<=$e.indexOf(Mi)||(Mi=y.Vb(Mi),Mi!==null&&(Mi.labeledLink=null))}),Array.isArray($e)&&$e.forEach(function(Mi){Mi=y.Vb(Mi),Mi!==null&&(Mi.labeledLink=Ke)})}}else if(E==="linkCategory"){var rn=this.Kc(a.object),ln=a.newValue;rn!==null&&typeof ln=="string"&&(rn.category=ln)}else E==="linkDataArray"&&(P1(this,a.oldValue),C1(this,a.newValue));x.isModified=!0}else if(b===vl){var Bn=a.newValue;if(E==="linkDataArray"&&typeof Bn=="object"&&Bn!==null)B1(this,Bn);else if(E==="linkLabelKeys"&&sg(Bn)){var Gn=this.Kc(a.object),lr=this.Vb(Bn);Gn!==null&&lr!==null&&(lr.labeledLink=Gn)}x.isModified=!0}else if(b===Zl){var kr=a.oldValue;if(E==="linkDataArray"&&typeof kr=="object"&&kr!==null)this.ip(kr);else if(E==="linkLabelKeys"&&sg(kr)){var Sr=this.Vb(kr);Sr!==null&&(Sr.labeledLink=null)}x.isModified=!0}}else if(b===ja){var Wi=a.propertyName;a.object!==x.model||Wi!=="linkFromKeyProperty"&&Wi!=="linkToKeyProperty"&&Wi!=="linkFromPortIdProperty"&&Wi!=="linkToPortIdProperty"&&Wi!=="linkLabelKeysProperty"&&Wi!=="nodeIsGroupProperty"&&Wi!=="nodeGroupKeyProperty"&&Wi!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},Ou.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new bi,b=y.linkDataArray;b.forEach(function(z){x.add(z)});var E=[];this.links.each(function(z){z.data===null||x.contains(z.data)||E.push(z.data)}),E.forEach(function(z){j1(y,z,!1)}),b.forEach(function(z){a.Kc(z)===null&&D1(y,z,!1)})},Ou.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 Vi){var E=id(b,y,!0);if(E=x.Vb(E),a.fromNode=E,E=id(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 z=a.labelNodes.first();if(b.wa(z.data)===E)return}E=new bi().addAll(y);var nt=new bi;a.labelNodes.each(function(ot){ot.data!==null&&(ot=b.wa(ot.data),ot!==void 0&&nt.add(ot))}),y=nt.copy(),y.hp(E),E=E.copy(),E.hp(nt),(0<y.count||0<E.count)&&(y.each(function(ot){ot=x.Vb(ot),ot!==null&&ot.labeledLink===a&&(ot.labeledLink=null)}),E.each(function(ot){ot=x.Vb(ot),ot!==null&&ot.labeledLink!==a&&(ot.labeledLink=a)}))}}else!(a instanceof bs)&&(y=b.lh(y),y=x.findPartForKey(y),y===null||y instanceof _o)&&(a.containingGroup=y)}}},Ou.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=L0(y,x),E=this.Lc(a);if(b!==null&&E!==null){b=b.iterator;for(var z={};b.next();){var nt=b.value;y.lb(nt)?E instanceof _o&&y.lh(nt)===x&&(nt=this.Lc(nt),nt!==null&&(nt.containingGroup=E)):(z.link=this.Kc(nt),z.link!==null&&E instanceof Ar&&(id(y,nt,!0)===x&&(z.link.fromNode=E),id(y,nt,!1)===x&&(z.link.toNode=E),nt=y.Ef(nt),Array.isArray(nt)&&nt.some(function(ot){return function(at){return at===x?(E.labeledLink=ot.link,!0):!1}}(z)))),z={link:z.link}}wA(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof _o&&(E.containingGroup=a))}},Ou.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Ar){var x=y.wa(a.data);if(x!==void 0){for(var b=a.linksConnected;b.next();)yA(y,x,b.value.data);if(a.isLinkLabel&&(b=a.labeledLink,b!==null&&yA(y,x,b.data)),a instanceof _o)for(a=a.memberParts;a.next();)b=a.value.data,y.lb(b)&&yA(y,x,b)}}},Ou.prototype.copyPartData=function(a,y){var x=$s.prototype.copyPartData.call(this,a,y);if(a instanceof Vi)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},Ou.prototype.insertLink=function(a,y,x,b){var E=this.diagram,z=E.model,nt=E.toolManager.findTool("Linking"),ot="";if(a!==null&&(y===null&&(y=a),ot=y.portId,ot===null&&(ot="")),y="",x!==null&&(b===null&&(b=x),y=b.portId,y===null&&(y="")),b=nt.archetypeLinkData,b instanceof Vi){if(lh(b),z=b.copy(),z!==null)return z.fromNode=a,z.fromPortId=ot,z.toNode=x,z.toPortId=y,E.add(z),a=nt.archetypeLabelNodeData,a instanceof Ar&&(lh(a),a=a.copy(),a!==null&&(a.labeledLink=z,E.add(a))),z}else if(b!==null&&(b=z.Jo(b),typeof b=="object"&&b!==null))return a!==null&&Kp(z,b,z.wa(a.data),!0),Gp(z,b,ot,!0),x!==null&&Kp(z,b,z.wa(x.data),!1),Gp(z,b,y,!1),z.fi(b),a=nt.archetypeLabelNodeData,a===null||a instanceof Ar||(a=z.copyNodeData(a),typeof a=="object"&&a!==null&&(z.xf(a),a=z.wa(a),a!==void 0&&z.Bu(b,a))),E.Kc(b);return null},Ou.prototype.findLinkForKey=Ou.prototype.findLinkForKey,Ou.prototype.findPartForKey=Ou.prototype.findPartForKey,Ou.prototype.removeAllModeledParts=Ou.prototype.removeAllModeledParts,Ou.prototype.addModeledParts=Ou.prototype.addModeledParts,Ou.prototype.addAllModeledParts=Ou.prototype.addAllModeledParts,Ou.className="GraphLinksPartManager";function md(){$s.apply(this,arguments),this.Sg=null}On(md,$s);function Fm(a,y,x){if(y!==null&&x!==null&&x.kh()===null){var b=a.diagram.toolManager.findTool("Linking"),E=y,z=x;if(a.diagram.isTreePathToChildren||(E=x,z=y),(b===null||!Jn(b,E,z,null,!0))&&(y=a.getLinkCategoryForData(x.data),b=a.findLinkTemplateForCategory(y),b!==null&&(lh(b),b=b.copy(),b!==null))){var nt=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,b.Tf=y,b.ub=x.data,b.fromNode=E,b.toNode=z,a.diagram.add(b),b.ub=null,b.data=x.data,a.diagram.skipsModelSourceBindings=nt}}}md.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},md.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},md.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}},md.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))},md.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},md.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},md.prototype.doModelChanged=function(a){if($s.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===ja){if(b==="nodeParentKey"){var E=a.object,z=this.Vb(a.newValue),nt=this.ii(E);if(this.Sg!==null)z!==null&&(this.Sg.data=E,this.Sg.category=this.getLinkCategoryForData(E));else if(nt!==null){var ot=nt.kh();ot!==null?z===null?y.remove(ot):y.isTreePathToChildren?ot.fromNode=z:ot.toNode=z:Fm(this,z,nt)}}else if(b==="parentLinkCategory"){var at=this.ii(a.object),ht=a.newValue;if(at!==null&&typeof ht=="string"){var ct=at.kh();ct!==null&&(ct.category=ht)}}y.isModified=!0}}else if(x===ja){var gt=a.propertyName;a.object===y.model&>==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},md.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;a instanceof Ar&&(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:Fm(this,y,a):b!==null&&Uh(x,b,!1)))}}},md.prototype.updateDataBindings=function(a,y){$s.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},md.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=L0(y,x),E=this.Lc(a);if(b!==null&&E!==null){for(b=b.iterator;b.next();){var z=b.value;y.lb(z)&&E instanceof Ar&&y.mh(z)===x&&Fm(this,E,this.ii(z))}wA(y,x)}a=y.mh(a),a!==void 0&&E instanceof Ar&&(a=this.Vb(a),Fm(this,a,E))}},md.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Ar){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 z=E.pc(-1,b,!1);0<=z&&this.diagram.cb(Zl,"parts",E,b,null,z,null),z=b.layerChanged,z!==null&&z(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)&&yA(y,x,E)}},md.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},md.prototype.findLinkForKey=md.prototype.findLinkForKey,md.className="TreePartManager";function Ur(a,y){this.kl=new bi,this.il=new bi,this.Wv=`,
|
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
|
"removedNodeKeys": `,this.vh=null,ns(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new Cr,this.Th="key",this.Bk=this.bl=null,this.Jm=this.Km=!1,this.Mm=!0,this.xm=null,this.lj="category",this.Vf=new Cr,this.Lt=new Ci,this.Wg=!1,this.o=null,this.undoManager=new mt,a!==void 0&&(xi(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Ur.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},Ur.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Ur.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},Ur.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)+":"+Rr(E)}}return y},Ur.prototype.xA=function(a){a.change!==Ju&&sn("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof Pt?(E1(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},Ur.prototype.Qv=function(a,y){var x=this,b=!1,E=new bi,z=new bi,nt=new bi,ot=this.vh;a.changes.each(function(gt){gt.model===x&&(gt.modelChange==="nodeDataArray"?gt.change===vl?E.add(gt.newValue):gt.change===Zl&&nt.add(gt.oldValue):x.lb(gt.object)?z.add(gt.object):gt.change!==ja||x.modelData!==gt.object&>.propertyName!=="modelData"?gt.object!==null&&(ot&&ot.contains(gt.object)?ot.get(gt.object).each(function(Nt){x.lb(Nt)&&z.add(Nt)}):gt.object instanceof Ur||x.ri()&&x.Jc(gt.object)||F1(x,gt.object).each(function(Nt){z.add(Nt)})):b=!0)});var at=this.il;at.clear(),E.each(function(gt){at.add(x.wa(gt)),y||z.add(gt)});var ht=this.kl;ht.clear(),nt.each(function(gt){ht.add(x.wa(gt)),y&&z.add(gt)}),a=x.cloneDeep(z.Fa());var ct=null;return b&&(ct===null&&(ct={}),ct.modelData=this.cloneDeep(this.modelData)),0<at.count&&(ct===null&&(ct={}),y?ct.removedNodeKeys=at.Fa():ct.insertedNodeKeys=at.Fa()),0<a.length&&(ct===null&&(ct={}),ct.modifiedNodeData=a),0<ht.count&&(ct===null&&(ct={}),y?ct.insertedNodeKeys=ht.Fa():ct.removedNodeKeys=ht.Fa()),ht.clear(),at.clear(),ct},Ur.prototype.cloneDeep=function(a){return zp(this,a,!0)};function zp(a,y,x,b,E,z){function nt(gt,Nt){ot?(gt.__gohashid===void 0&&z.push(gt),b.set(gt,Nt)):(gt=Hs++,b.set(gt,Nt),E.set(gt,y))}if(!ii(y))return y;z||(z=[]);var ot=Object.isExtensible(y);if(b||(b=new Cr),ot){var at=b.get(y);if(at)return at}else for(E||(E=new Cr),at=E.iterator;at.next();){var ht=at.key;if(at.value===y&&(ht=b.get(ht)))return ht}if(Array.isArray(y)){at=[],nt(y,at);for(var ct=0;ct<y.length;ct++)at.push(zp(a,y[ct],!1,b,E,z))}else if(y instanceof ke||y instanceof Ki||y instanceof ai||y instanceof Hr||y instanceof xr)at=y.copy(),nt(y,at);else{if(y instanceof Rs||y instanceof $i||y instanceof ri)return y;if(y instanceof Ci)at=new Ci().addAll(zp(a,y.Fa(),!1,b,E,z)),nt(y,at);else if(y instanceof bi)at=new bi().addAll(zp(a,y.Fa(),!1,b,E,z)),nt(y,at);else if(y instanceof Cr)at=new Cr().addAll(zp(a,y.Fa(),!1,b,E,z)),nt(y,at);else if(y instanceof Date)at=new Date(y.getTime()),nt(y,at);else if(y instanceof RegExp)at=new RegExp(y),nt(y,at),at.lastIndex=y.lastIndex;else if(typeof y.copy=="function")at=y.copy(),nt(y,at);else for(ct in at={},nt(y,at),y)ct!=="__gohashid"&&(at[ct]=zp(a,y[ct],!1,b,E,z))}return x&&z.forEach(function(gt){delete gt.__gohashid}),at}Vt=Ur.prototype,Vt.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},Vt.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},Vt.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 b1(a,y){y=y.modelData,ii(y)&&(a.dm(y),a.modelData=y)}Vt.Rv=function(){var a=this.modelData,y=!1,x;for(x in a)if(!L1(x,a[x])){y=!0;break}return a="",y&&(a=`,
|
|
|
"modelData": `+Zv(this,this.modelData)),a+`,
|
|
|
"nodeDataArray": `+og(this,this.nodeDataArray,!0)},Vt.kv=function(a){b1(this,a),a=a.nodeDataArray,xi(a)&&(this.dm(a),this.nodeDataArray=a)};function E1(a,y){function x(E,z){if((z=z.part)&&(z=z.data,E!==z)){var nt=b.get(E);nt===null?(nt=new bi,nt.add(z),b.add(E,nt)):nt.add(z)}}var b=a.vh;b===null&&(b=new Cr,y.changes.each(function(E){if(E.diagram!==null){var z=E.change;z===ja?(E=E.object.panel)&&(z=E.data)&&x(z,E):(z===vl||z===Zl)&&(E=E.object,(z=E.itemArray)&&x(z,E))}}),a.vh=b)}function F1(a,y){for(var x=new bi,b=0;b<a.nodeDataArray.length;b++){var E=a.nodeDataArray[b];Lm(a,y,E,E,x)}return x}function Lm(a,y,x,b,E){if(Array.isArray(x))for(var z=0;z<x.length;z++){var nt=x[z];if(nt===y)return E.add(b),!0;if(Lm(a,y,nt,b,E))return!0}else if(ii(x)&&Object.getPrototypeOf(x)===Object.prototype)for(z in x){if(nt=x[z],nt===y)return E.add(b),!0;if(Lm(a,y,nt,b,E))return!0}return!1}Vt.Pv=function(a,y){var x=this,b=!1,E=new bi,z=new bi,nt=new bi,ot=this.vh;a.changes.each(function(ct){ct.model===x&&(ct.modelChange==="nodeDataArray"?ct.change===vl?E.add(ct.newValue):ct.change===Zl&&nt.add(ct.oldValue):x.lb(ct.object)?z.add(ct.object):ct.change!==ja||x.modelData!==ct.object&&ct.propertyName!=="modelData"?ct.object!==null&&(ot&&ot.contains(ct.object)?ot.get(ct.object).each(function(gt){x.lb(gt)&&z.add(gt)}):ct.object instanceof Ur||x.ri()&&x.Jc(ct.object)||F1(x,ct.object).each(function(gt){z.add(gt)})):b=!0)});var at=this.il;at.clear(),E.each(function(ct){at.add(x.wa(ct)),y||z.add(ct)});var ht=this.kl;return ht.clear(),nt.each(function(ct){ht.add(x.wa(ct)),y&&z.add(ct)}),a="",b&&(a+=`,
|
|
|
"modelData": `+Zv(this,this.modelData)),0<at.count&&(a+=(y?this.Yv:this.Wv)+og(this,at.Fa(),!0)),0<z.count&&(a+=this.jy+og(this,z.Fa(),!0)),0<ht.count&&(a+=(y?this.Wv:this.Yv)+og(this,ht.Fa(),!0)),ht.clear(),at.clear(),a},Vt.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)&&sn("applyIncrementalJson cannot change Model properties"),b1(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,b=new Cr;if(Array.isArray(x))for(var E=0;E<x.length;E++){var z=x[E],nt=this.wa(z);nt!=null&&b.set(nt,z)}if(Array.isArray(y))for(E=y.length,z=0;z<E;z++){nt=y[z];var ot=this.hc(nt);ot===null&&(ot=(ot=b.get(nt))?ot:this.copyNodeData({}),this.km(ot,nt),this.xf(ot))}if(Array.isArray(x)){for(y=x.length,b=0;b<y;b++)if(E=x[b],z=this.wa(E),z=this.hc(z),z!==null){for(var at in E)at==="__gohashid"||at===this.nodeKeyProperty||this.Wj()&&at===this.nodeIsGroupProperty||this.setDataProperty(z,at,E[at]);this.lm(E,z)}}if(a=a.removedNodeKeys,Array.isArray(a))for(x=a.length,at=0;at<x;at++)y=this.hc(a[at]),y!==null&&this.cm(y)},Vt.$x=function(a,y){a.change!==Ju&&sn("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof Pt?(y===void 0&&(y=M0(this,this)),E1(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 }'},Vt.yA=function(a,y){return this.$x(a,y)},Vt.np=function(a){return a===void 0&&(a=M0(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},Vt.toJSON=function(a){return this.np(a)},Vt.Zw=function(a){var y=null;if(typeof a=="string")try{y=Ve.JSON.parse(a)}catch(b){}else typeof a=="object"?y=a:sn("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&sn("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},Vt.Ky=function(a){return this.Zw(a)},Ur.constructGraphLinksModel=function(){return new Ur},Vt=Ur.prototype,Vt.dm=function(a){if(xi(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];if(ii(b)){var E=x;b=this.dm(b),Array.isArray(a)?a[E]=b:sn("Cannot replace an object in an HTMLCollection or NodeList at "+E)}}else if(ii(a)){for(y in a)if(x=a[y],ii(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 Ci,b=0;b<x.length/2;b++)E.add(new ke(x[2*b],x[2*b+1]));E.freeze(),a[y]=E}}return Uw(a)}return a},Vt.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()):xi(a)?og(this,a):ii(a)?Zv(this,a):typeof a=="function"?"null":a.toString()};function og(a,y,x){x===void 0&&(x=!1);var b=y.length;if(0>=b)return"[]";var E=new Er;E.add("["),x&&1<b&&E.add(`
|
|
|
`);for(var z=0;z<b;z++){var nt=y[z];nt!==void 0&&(0<z&&(E.add(","),x&&E.add(`
|
|
|
`)),E.add(a.sm(nt)))}return x&&1<b&&E.add(`
|
|
|
`),E.add("]"),E.toString()}function L1(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function Zh(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function Zv(a,y){var x=y;if(x instanceof ke)y={class:"go.Point",x:Zh(x.x),y:Zh(x.y)};else if(x instanceof Ki)y={class:"go.Size",width:Zh(x.width),height:Zh(x.height)};else if(x instanceof ai)y={class:"go.Rect",x:Zh(x.x),y:Zh(x.y),width:Zh(x.width),height:Zh(x.height)};else if(x instanceof Hr)y={class:"go.Margin",top:Zh(x.top),right:Zh(x.right),bottom:Zh(x.bottom),left:Zh(x.left)};else if(x instanceof xr)x.sb()?y={class:"go.Spot",x:Zh(x.x),y:Zh(x.y),offsetX:Zh(x.offsetX),offsetY:Zh(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof Rs){if(y={class:"go.Brush",type:x.type.name},x.type===me?y.color=x.color:(x.type===Ne||x.type===Je)&&(y.start=x.start,y.end=x.end,x.type===Je&&(x.startRadius!==0&&(y.startRadius=Zh(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=Zh(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 $i?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=Zh(x.startX)),x.startY!==0&&(y.startY=Zh(x.startY)),x.endX!==0&&(y.endX=Zh(x.endX)),x.endY!==0&&(y.endY=Zh(x.endY)),x.spot1.D(Oa)||(y.spot1=x.spot1),x.spot2.D(Ll)||(y.spot2=x.spot2),x.type===$i.o&&(y.path=$i.ia(x))):x instanceof ri&&(y={class:"go.EnumValue",classType:M0(a,x.classType),name:x.name});b="{",x=!0;for(var E in y){var z=ql(y,E);if(!L1(E,z))if(x?x=!1:b+=",",b+=a.quote(E)+":",E==="points"&&z instanceof Ci){var nt="[";for(z=z.iterator;z.next();){var ot=z.value;1<nt.length&&(nt+=","),nt+=a.sm(ot.x),nt+=",",nt+=a.sm(ot.y)}nt+="]",b+=nt}else b+=a.sm(z)}return b+"}"}function Yh(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function Uw(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 ke(Yh(a.x),Yh(a.y));else if(y==="Size")x=new Ki(Yh(a.width),Yh(a.height));else if(y==="Rect")x=new ai(Yh(a.x),Yh(a.y),Yh(a.width),Yh(a.height));else if(y==="Margin")x=new Hr(Yh(a.top),Yh(a.right),Yh(a.bottom),Yh(a.left));else if(y==="Spot")typeof a.enum=="string"?x=Ud(a.enum):x=new xr(Yh(a.x),Yh(a.y),Yh(a.offsetX),Yh(a.offsetY));else if(y==="Brush"){if(x=new Rs,x.type=or(Rs,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof xr&&(x.start=a.start),a.end instanceof xr&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=Yh(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=Yh(a.endRadius)),a=a.colorStops,ii(a))for(var b in a)x.addColorStop(parseFloat(b),a[b])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=$i.parse(a.path):x=new $i,x.type=or($i,a.type),typeof a.startX=="number"&&(x.startX=Yh(a.startX)),typeof a.startY=="number"&&(x.startY=Yh(a.startY)),typeof a.endX=="number"&&(x.endX=Yh(a.endX)),typeof a.endY=="number"&&(x.endY=Yh(a.endY)),a.spot1 instanceof xr&&(x.spot1=a.spot1),a.spot2 instanceof xr&&(x.spot2=a.spot2)):y==="EnumValue"&&(b=a.classType,b.indexOf("go.")===0&&(b=b.substr(3)),b=$v(b),typeof b=="function"&&(x=or(b,a.name)));return x}Vt.Pe=function(a){return this.Lt.add(a),this},Vt.ik=function(a){this.Lt.remove(a)},Vt.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)},Vt.cb=function(a,y,x,b,E,z,nt){gu(this,"",a,y,x,b,E,z,nt)},Vt.g=function(a,y,x,b,E){gu(this,"",ja,a,this,y,x,b,E)},Vt.Fs=function(a,y,x,b,E,z){gu(this,"",ja,y,a,x,b,E,z)};function gu(a,y,x,b,E,z,nt,ot,at){ot===void 0&&(ot=null),at===void 0&&(at=null);var ht=new Da;ht.model=a,ht.change=x,ht.modelChange=y,ht.propertyName=b,ht.object=E,ht.oldValue=z,ht.oldParam=ot,ht.newValue=nt,ht.newParam=at,a.ds(ht)}Ur.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===ja){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)),za(x,b,E)}else a.change===vl?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,ii(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]===a&&wi(this.Tc,x),b!==void 0&&this.kb.remove(b)):(this.Tc[x]!==a&&mi(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!xi(b)&&a.propertyName&&(b=ql(a.object,a.propertyName)),xi(b)&&typeof x=="number"&&(a=a.newValue,y?wi(b,x):mi(b,x,a))):sn("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===Zl?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,ii(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]!==a&&mi(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)):(this.Tc[x]===a&&wi(this.Tc,x),b!==void 0&&this.kb.remove(b)))):a.modelChange===""?((b=a.object)&&!xi(b)&&a.propertyName&&(b=ql(a.object,a.propertyName)),xi(b)&&typeof x=="number"&&(a=a.oldValue,y?mi(b,x,a):wi(b,x))):sn("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==Ju&&sn("unknown ChangedEvent: "+a.toString())},Ur.prototype.Ea=function(a){return this.undoManager.Ea(a)},Ur.prototype.eb=function(a){return this.undoManager.eb(a)},Ur.prototype.Kf=function(){return this.undoManager.Kf()},Ur.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}},Vt=Ur.prototype,Vt.La=function(a,y){y===void 0&&(y=""),gu(this,"SourceChanged",Ju,y,a,null,null)},Vt.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=ql(a,y),y!==void 0)){if(sg(y))return y;sn("Key value for node data "+a+" is not a number or a string: "+y)}}},Vt.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var b=ql(a,x);b!==y&&this.hc(y)===null&&(za(a,x,y),b!==void 0&&this.kb.remove(b),this.kb.add(y,a),gu(this,"nodeKey",ja,x,a,b,y),typeof x=="string"&&this.La(a,x),this.jp(b,y))}else za(a,x,y)}};function sg(a){return typeof a=="number"||typeof a=="string"}Vt.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},Vt.hc=function(a){return a===null&&sn("Model.findNodeDataForKey:key must not be null"),a!==void 0&&sg(a)?this.kb.I(a):null},Vt.$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))){za(a,y,x);return}if(typeof x=="string"){for(b=2;this.kb.contains(x+b);)b++;za(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;za(a,y,x)}}}}},Vt.xf=function(a){a!==null&&(qs(a),this.lb(a)||M1(this,a,!0))};function M1(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&&sn("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,x&&(b=a.Tc.length,mi(a.Tc,b,y)),gu(a,"nodeDataArray",vl,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}Vt.Fy=function(a){if(xi(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)},Vt.cm=function(a){a!==null&&N1(this,a,!0)};function N1(a,y,x){var b=a.wa(y);if(b!==void 0&&a.kb.remove(b),b=null,x){t: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 t}b=-1}if(0>b)return;wi(a.Tc,b)}gu(a,"nodeDataArray",Zl,"nodeDataArray",a,y,null,b,null),a.qp(y)}Vt.nA=function(a){if(xi(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)},Vt.$z=function(a){if(a!==this.nodeDataArray&&xi(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 z=a[E],nt=this.wa(z);if(nt!==void 0){x.add(nt);var ot=this.hc(nt);ot!==z&&(ot!==null?(this.Do(ot,z),this.lm(z,ot)):(z=this.cloneDeep(z),this.km(z,nt),this.xf(z)))}else nt=this.cloneDeep(z),this.xf(nt),x.add(this.wa(nt))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.hc(b))&&this.cm(b);y.clear(),x.clear()}},Vt.jp=function(a,y){y!==void 0&&(a=L0(this,a),a instanceof bi&&this.Vf.add(y,a))},Vt.Lv=function(){},Vt.fm=function(){},Vt.em=function(){},Vt.qp=function(){};function yA(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b===null&&(b=new bi,a.Vf.add(y,b)),b.add(x)}}function wA(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b instanceof bi&&(x==null?a.Vf.remove(y):(b.remove(x),b.count===0&&a.Vf.remove(y)))}}function L0(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof bi?a:null)}Vt.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},Ur.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):Mm(this,a,!0),ii(a)&&ns(a),a};function Mm(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var b=[];for(x=0;x<y.length;x++){var E=Mm(a,y[x],a.copiesArrayObjects);b.push(E)}return ns(b),b}if(x&&ii(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 z=ql(y,b),nt=M0(a,z);nt==="GraphObject"||nt==="Diagram"||nt==="Layer"||nt==="RowColumnDefinition"||nt==="AnimationManager"||nt==="Tool"||nt==="CommandHandler"||nt==="Layout"||nt==="InputEvent"||nt==="DiagramEvent"||z instanceof Ur||z instanceof mt||z instanceof Pt||z instanceof Da||(z=Mm(a,z,!1)),za(x,b,z)}return ns(x),x}return y instanceof ke||y instanceof Ki||y instanceof ai||y instanceof xr||y instanceof Hr?y.copy():y}Ur.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!I1&&a instanceof xn&&(I1=!0,Tr('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),Tr(" Is that really your intent?"));var b=ql(a,y);b!==x&&(za(a,y,x),this.Fs(a,y,b,x))},Vt=Ur.prototype,Vt.set=function(a,y,x){this.setDataProperty(a,y,x)},Vt.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])}},Vt.Ay=function(a,y){this.ts(a,-1,y)},Vt.ts=function(a,y,x){0>y&&(y=a.length),mi(a,y,x),gu(this,"",vl,"",a,null,x,null,y)},Vt.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&sn("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];wi(a,y),gu(this,"",Zl,"",a,x,null,y,null)},Vt.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=ql(a,y),y===void 0))return"";if(typeof y=="string")return y;sn("getCategoryForNodeData found a non-string category for "+a+": "+y)},Vt.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var b=ql(a,x);b===void 0&&(b=""),b!==y&&(za(a,x,y),gu(this,"nodeCategory",ja,x,a,b,y))}else za(a,x,y)}},Vt.lm=function(a,y){this.jm(y,this.Ro(a))},Vt.Tl=function(){return!1},Vt.Wj=function(){return!1},Vt.ri=function(){return!1},Vt.xs=function(){return!1},Vt.Xj=function(){return!1};function Yv(){return new Ur}function M0(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 M0(a,y.constructor);return typeof y}function $v(a){return tA[a]?tA[a]:Ve.go!==void 0&&Ve.go[a]?Ve.go[a]:null}function ql(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 za(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){}}Re.Object.defineProperties(Ur.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===""&&sn("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&sn("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];ii(E)||sn("Model.nodeDataArray must only contain Objects, not: "+E),qs(E)}for(this.Tc=a,b=new Ci,E=0;E<x;E++){var z=a[E],nt=this.wa(z);nt===void 0||this.kb.I(nt)!==null?b.add(z):this.kb.add(nt,z)}for(b=b.iterator;b.next();)E=b.value,this.$u(E),z=this.wa(E),z!==void 0&&this.kb.add(z,E);for(gu(this,"nodeDataArray",ja,"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"}}}),Ur.prototype.setCategoryForNodeData=Ur.prototype.jm,Ur.prototype.getCategoryForNodeData=Ur.prototype.Ro,Ur.prototype.removeArrayItem=Ur.prototype.ov,Ur.prototype.insertArrayItem=Ur.prototype.ts,Ur.prototype.addArrayItem=Ur.prototype.Ay,Ur.prototype.assignAllDataProperties=Ur.prototype.Do,Ur.prototype.set=Ur.prototype.set,Ur.prototype.clearUnresolvedReferences=Ur.prototype.Qy,Ur.prototype.mergeNodeDataArray=Ur.prototype.$z,Ur.prototype.removeNodeDataCollection=Ur.prototype.nA,Ur.prototype.removeNodeData=Ur.prototype.cm,Ur.prototype.addNodeDataCollection=Ur.prototype.Fy,Ur.prototype.addNodeData=Ur.prototype.xf,Ur.prototype.makeNodeDataKeyUnique=Ur.prototype.$u,Ur.prototype.findNodeDataForKey=Ur.prototype.hc,Ur.prototype.containsNodeData=Ur.prototype.lb,Ur.prototype.setKeyForNodeData=Ur.prototype.km,Ur.prototype.getKeyForNodeData=Ur.prototype.wa,Ur.prototype.updateTargetBindings=Ur.prototype.La,Ur.prototype.commit=Ur.prototype.commit,Ur.prototype.rollbackTransaction=Ur.prototype.Kf,Ur.prototype.commitTransaction=Ur.prototype.eb,Ur.prototype.startTransaction=Ur.prototype.Ea,Ur.prototype.raiseDataChanged=Ur.prototype.Fs,Ur.prototype.raiseChanged=Ur.prototype.g,Ur.prototype.raiseChangedEvent=Ur.prototype.cb,Ur.prototype.removeChangedListener=Ur.prototype.ik,Ur.prototype.addChangedListener=Ur.prototype.Pe,Ur.prototype.writeJsonValue=Ur.prototype.sm,Ur.prototype.replaceJsonObjects=Ur.prototype.dm,Ur.prototype.applyIncrementalJSON=Ur.prototype.Ky,Ur.prototype.applyIncrementalJson=Ur.prototype.Zw,Ur.prototype.toJSON=Ur.prototype.toJSON,Ur.prototype.toJson=Ur.prototype.np,Ur.prototype.toIncrementalJSON=Ur.prototype.yA,Ur.prototype.toIncrementalJson=Ur.prototype.$x,Ur.prototype.toIncrementalData=Ur.prototype.xA,Ur.prototype.clear=Ur.prototype.clear;var I1=!1,tA={};Ur.className="Model",Ur.fromJSON=Ur.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=Ve.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:sn("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=$v(b)):(E=$v(b),E===null&&(E=Ve[b])),typeof E=="function"&&(a=new E)}catch(z){}a===null||a instanceof Ur?y=a:sn("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=Ur.constructGraphLinksModel()),y.gp(x),y.kv(x),y},Ur.safePropertyValue=ql,Ur.safePropertySet=za,tA.Brush=Rs,tA.ChangedEvent=Da,tA.Geometry=$i,tA.Margin=Hr,tA.Panel=qn,tA.Point=ke,tA.Rect=ai,tA.Size=Ki,tA.Spot=xr,tA.Transaction=Pt,tA.UndoManager=mt;function iu(a,y,x,b){ns(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=T1,this.wk=null):(this.el=N0,this.wk=b),this.st=new bi}iu.prototype.copy=function(){var a=new iu;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},Vt=iu.prototype,Vt.qb=function(a){a.classType===iu&&(this.mode=a)},Vt.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},Vt.freeze=function(){return this._isFrozen=!0,this},Vt.ka=function(){return this._isFrozen=!1,this},Vt.Kx=function(a){return a===void 0&&(a=null),this.mode=N0,this.backConverter=a,this},Vt.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},Vt.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function k1(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}Vt.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==="")Tr("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(b!==""&&(z=ql(y,b)),z!==void 0)if(E===null)x!==""&&za(a,x,z);else try{if(x!==""){var nt=E(z,a);za(a,x,nt)}else E(z,a)}catch(ot){}}}},Vt.sp=function(a,y,x,b){if(this.el===N0){var E=this.xl;if(x===void 0||E===x){x=this.sl;var z=this.wk,nt=a;if(E!==""&&(nt=ql(a,E)),nt!==void 0&&!this.st.contains(a))try{this.st.add(a);var ot=b!==null?b.diagram:null,at=ot!==null?ot.model:null;if(z===null){if(x!=="")at!==null?at.setDataProperty(y,x,nt):za(y,x,nt);else if(at!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var ht=b.itemIndex,ct=b.panel.itemArray;at.ov(ct,ht),at.ts(ct,ht,nt)}}else try{if(x!==""){var gt=z(nt,y,at);at!==null?at.setDataProperty(y,x,gt):za(y,x,gt)}else{var Nt=z(nt,y,at);if(Nt!==void 0&&at!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var Kt=b.itemIndex,Xt=b.panel.itemArray;at.ov(Xt,Kt),at.ts(Xt,Kt,Nt)}}}catch(ce){}}finally{this.st.remove(a)}}}},Re.Object.defineProperties(iu.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&fi(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&fi(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&fi(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&fi(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&fi(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&fi(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&fi(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&fi(this),this.el=a}}}),iu.prototype.updateSource=iu.prototype.sp,iu.prototype.updateTarget=iu.prototype.Mv,iu.prototype.ofModel=iu.prototype.dA,iu.prototype.ofObject=iu.prototype.cp,iu.prototype.makeTwoWay=iu.prototype.Kx;var Rw="Binding",T1=new ri(iu,"OneWay",1),N0=new ri(iu,"TwoWay",2);iu.className="Binding",iu.parseEnum=function(a,y){return function(x){return x=or(a,x),x===null?y:x}},iu.toString=Rr,iu.OneWay=T1,iu.TwoWay=N0;function ms(a,y,x){Ur.call(this),this.Vv=`,
|
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
|
"removedLinkKeys": `,this.md=[],this.$f=new bi,this.wb=new Cr,this.Jh="",this.Ri=this.Ak=this.cl=null,this.lf="from",this.mf="to",this.fj=this.ej="",this.dj="category",this.je="",this.jl="isGroup",this.Je="group",this.Lm=!1,y!==void 0&&(this.linkDataArray=y),a!==void 0&&(xi(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}On(ms,Ur),ms.constructGraphLinksModel=Ur.constructGraphLinksModel,ms.prototype.cloneProtected=function(a){Ur.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},Vt=ms.prototype,Vt.clear=function(){Ur.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},Vt.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)+":"+Rr(E)}for(y+=`
|
|
|
link data:`,a=this.linkDataArray,x=a.length,b=0;b<x;b++)E=a[b],y+=" "+id(this,E,!0)+"-->"+id(this,E,!1)}return y},Vt.Qv=function(a,y){this.linkKeyProperty===""&&sn("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=Ur.prototype.Qv.call(this,a,y),b=this,E=new bi,z=new bi,nt=new bi,ot=this.vh;a.changes.each(function(ct){ct.model===b&&(ct.modelChange==="linkDataArray"?ct.change===vl?E.add(ct.newValue):ct.change===Zl&&nt.add(ct.oldValue):b.Jc(ct.object)?z.add(ct.object):ct.object!==null&&(ct.object!==null&&ot&&ot.contains(ct.object)?ot.get(ct.object).each(function(gt){b.Jc(gt)&&z.add(gt)}):ct.object instanceof Ur||b.lb(ct.object)||O1(b,ct.object).each(function(gt){z.add(gt)})))});var at=this.il;at.clear(),E.each(function(ct){at.add(b.Ac(ct)),y||z.add(ct)});var ht=this.kl;return ht.clear(),nt.each(function(ct){ht.add(b.Ac(ct)),y&&z.add(ct)}),a=b.cloneDeep(z.Fa()),0<at.count&&(x===null&&(x={}),y?x.removedLinkKeys=at.Fa():x.insertedLinkKeys=at.Fa()),0<a.length&&(x===null&&(x={}),x.modifiedLinkData=a),0<ht.count&&(x===null&&(x={}),y?x.insertedLinkKeys=ht.Fa():x.removedLinkKeys=ht.Fa()),ht.clear(),at.clear(),x},Vt.rm=function(){var a=Ur.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},Vt.gp=function(a){Ur.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)},Vt.Rv=function(){var a=Ur.prototype.Rv.call(this),y=`,
|
|
|
"linkDataArray": `+og(this,this.linkDataArray,!0);return a+y},Vt.kv=function(a){Ur.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function O1(a,y){for(var x=new bi,b=0;b<a.linkDataArray.length;b++){var E=a.linkDataArray[b];Lm(a,y,E,E,x)}return x}Vt.Pv=function(a,y){this.linkKeyProperty===""&&sn("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=Ur.prototype.Pv.call(this,a,y),b=this,E=new bi,z=new bi,nt=new bi,ot=this.vh;a.changes.each(function(ct){ct.model===b&&(ct.modelChange==="linkDataArray"?ct.change===vl?E.add(ct.newValue):ct.change===Zl&&nt.add(ct.oldValue):b.Jc(ct.object)?z.add(ct.object):ct.object!==null&&(ct.object!==null&&ot&&ot.contains(ct.object)?ot.get(ct.object).each(function(gt){b.Jc(gt)&&z.add(gt)}):ct.object instanceof Ur||b.lb(ct.object)||O1(b,ct.object).each(function(gt){z.add(gt)})))});var at=this.il;at.clear(),E.each(function(ct){at.add(b.Ac(ct)),y||z.add(ct)});var ht=this.kl;return ht.clear(),nt.each(function(ct){ht.add(b.Ac(ct)),y&&z.add(ct)}),a=x,0<at.count&&(a+=(y?this.Xv:this.Vv)+og(this,at.Fa(),!0)),0<z.count&&(a+=this.iy+og(this,z.Fa(),!0)),0<ht.count&&(a+=(y?this.Vv:this.Xv)+og(this,ht.Fa(),!0)),ht.clear(),at.clear(),a},Vt.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)&&sn("applyIncrementalJson cannot change Model properties"),Ur.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],z=this.jh(E);z===null&&(z=this.Jo({}),this.Ks(z,E),this.fi(z))}if(y=a.modifiedLinkData,Array.isArray(y)){for(x=y.length,b=0;b<x;b++)if(E=y[b],z=this.Ac(E),z=this.jh(z),z!==null){for(var nt in E)nt!=="__gohashid"&&nt!==this.linkKeyProperty&&this.setDataProperty(z,nt,E[nt]);U1(this,E,z)}}if(a=a.removedLinkKeys,Array.isArray(a))for(nt=a.length,y=0;y<nt;y++)x=this.jh(a[y]),x!==null&&this.bm(x)},ms.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===ja){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),za(x,b,E);return}}else if(a.change===vl){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,ii(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===Zl){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,ii(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}}Ur.prototype.changeState.call(this,a,y)}},Vt=ms.prototype,Vt.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),za(x,this.nodeKeyProperty,a),this.xf(x))}return a}},Vt.yx=function(a){return id(this,a,!0)},Vt.wv=function(a,y){Kp(this,a,y,!0)},Vt.Bx=function(a){return id(this,a,!1)},Vt.Bv=function(a,y){Kp(this,a,y,!1)};function id(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=ql(y,a),a!==void 0))){if(sg(a))return a;sn((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Kp(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 z=ql(y,E);z!==x&&(wA(a,z,y),za(y,E,x),a.hc(x)===null&&yA(a,x,y),gu(a,b?"linkFromKey":"linkToKey",ja,E,y,z,x),typeof E=="string"&&a.La(y,E))}else za(y,E,x)}}Vt.zx=function(a){return Nm(this,a,!0)},Vt.xv=function(a,y){Gp(this,a,y,!0)},Vt.Cx=function(a){return Nm(this,a,!1)},Vt.Cv=function(a,y){Gp(this,a,y,!1)};function Nm(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=ql(y,a),y===void 0?"":y)}function Gp(a,y,x,b){if(y!==null){var E=b?a.ej:a.fj;if(E!=="")if(a.Jc(y)){var z=ql(y,E);z===void 0&&(z=""),z!==x&&(za(y,E,x),gu(a,b?"linkFromPortId":"linkToPortId",ja,E,y,z,x),typeof E=="string"&&a.La(y,E))}else za(y,E,x)}}Vt.Ef=function(a){if(a===null)return Im;var y=this.je;return y===""?Im:(a=ql(a,y),a===void 0?Im:a)},Vt.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var b=ql(a,x);if(b===void 0&&(b=Im),b!==y){if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)wA(this,b[z],a);for(za(a,x,y),E=y.length,z=0;z<E;z++){var nt=y[z];this.hc(nt)===null&&yA(this,nt,a)}gu(this,"linkLabelKeys",ja,x,a,b,y),typeof x=="string"&&this.La(a,x)}}else za(a,x,y)}},Vt.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=ql(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&&yA(this,y,a),gu(this,"linkLabelKeys",vl,x,a,null,y,null,E)))}else sn(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},Vt.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=ql(a,x);if(Array.isArray(b)){var E=b.indexOf(y);0>E||(b.splice(E,1),this.Jc(a)&&(wA(this,y,a),gu(this,"linkLabelKeys",Zl,x,a,y,null,E,null)))}else b!==void 0&&sn(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Vt.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=ql(a,y),y!==void 0)){if(sg(y))return y;sn("Key value for link data "+a+" is not a number or a string: "+y)}}},Vt.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var b=ql(a,x);b!==y&&this.jh(y)===null&&(za(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),gu(this,"linkKey",ja,x,a,b,y),typeof x=="string"&&this.La(a,x))}else za(a,x,y)}},Vt.jh=function(a){return a===null&&sn("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&sg(a)?this.wb.I(a):null},Vt.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))){za(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;za(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;za(a,y,x)}}}}},Vt.Jc=function(a){return a===null?!1:this.$f.contains(a)},Vt.fi=function(a){a!==null&&(qs(a),this.Jc(a)||D1(this,a,!0))};function D1(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&&sn("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)),gu(a,"linkDataArray",vl,"linkDataArray",a,null,y,null,b),Xv(a,y)}Vt.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)},Vt.bm=function(a){a!==null&&j1(this,a,!0)};function j1(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(gu(a,"linkDataArray",Zl,"linkDataArray",a,y,null,b,null),x=id(a,y,!0),wA(a,x,y),x=id(a,y,!1),wA(a,x,y),b=a.Ef(y),Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],wA(a,x,y)}Vt.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)},Vt.Zz=function(a){if(this.linkKeyProperty===""&&sn("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&xi(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 z=a[E],nt=this.Ac(z);if(nt!==void 0){x.add(nt);var ot=this.jh(nt);ot!==z&&(ot!==null?(this.Do(ot,z),U1(this,z,ot)):(z=this.cloneDeep(z),this.Ks(z,nt),this.fi(z)))}else nt=this.cloneDeep(z),this.fi(nt),x.add(this.Ac(nt))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.jh(b))&&this.bm(b);y.clear(),x.clear()}};function Xv(a,y){var x=id(a,y,!0);x=a.Vl(x),a.hc(x)===null&&yA(a,x,y),x=id(a,y,!1),x=a.Vl(x),a.hc(x)===null&&yA(a,x,y);var b=a.Ef(y);if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],a.hc(x)===null&&yA(a,x,y)}Vt.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):Mm(this,a,!0),ii(a)&&(ns(a),this.lf!==""&&za(a,this.lf,void 0),this.mf!==""&&za(a,this.mf,void 0),this.je!==""&&za(a,this.je,[])),a},Vt.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!ql(a,y)},Vt.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=ql(a,y),y!==void 0)){if(sg(y))return y;sn("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},Vt.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var b=ql(a,x);b!==y&&(wA(this,b,a),za(a,x,y),this.hc(y)===null&&yA(this,y,a),gu(this,"nodeGroupKey",ja,x,a,b,y),typeof x=="string"&&this.La(a,x))}else za(a,x,y)}},ms.prototype.copyNodeData=function(a){return a===null?null:(a=Ur.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||ql(a,this.Je)===void 0||za(a,this.Je,void 0),a)},ms.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){Kp(this,a,x,!0);return}if(y===this.linkToKeyProperty){Kp(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){Gp(this,a,x,!0);return}if(y===this.linkToPortIdProperty){Gp(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=ql(a,y);b!==x&&(za(a,y,x),this.Fs(a,y,b,x))},Vt=ms.prototype,Vt.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&&ql(a,E)===y[E]||b&&E===this.linkKeyProperty||this.setDataProperty(a,E,y[E])}},Vt.jp=function(a,y){Ur.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,z=y;if(id(this,b,!0)===E){var nt=this.lf;za(b,nt,z),gu(this,"linkFromKey",ja,nt,b,E,z),typeof nt=="string"&&this.La(b,nt)}if(id(this,b,!1)===E&&(nt=this.mf,za(b,nt,z),gu(this,"linkToKey",ja,nt,b,E,z),typeof nt=="string"&&this.La(b,nt)),nt=this.Ef(b),Array.isArray(nt))for(var ot=nt.length,at=this.je,ht=0;ht<ot;ht++)nt[ht]===E&&(nt[ht]=z,gu(this,"linkLabelKeys",vl,at,b,E,z,ht,ht))}},Vt.qv=function(a,y,x){if(this.lh(a)===y){var b=this.Je;za(a,b,x),gu(this,"nodeGroupKey",ja,b,a,y,x),typeof b=="string"&&this.La(a,b)}},Vt.Lv=function(){Ur.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)Xv(this,a[x])},Vt.fm=function(a){Ur.prototype.fm.call(this,a),a=this.wa(a);var y=L0(this,a);if(y!==null){var x=yi();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)){if(this.lh(b)===a){var E=this.Je;gu(this,"nodeGroupKey",ja,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}else if(id(this,b,!0)===a&&(E=this.lf,gu(this,"linkFromKey",ja,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),id(this,b,!1)===a&&(E=this.mf,gu(this,"linkToKey",ja,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),E=this.Ef(b),Array.isArray(E))for(var z=E.length,nt=this.je,ot=0;ot<z;ot++)E[ot]===a&&(gu(this,"linkLabelKeys",vl,nt,b,a,a,ot,ot),x.push(b))}for(y=0;y<x.length;y++)wA(this,a,x[y]);nr(x)}},Vt.em=function(a){Ur.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&yA(this,y,a)},Vt.qp=function(a){Ur.prototype.qp.call(this,a);var y=this.lh(a);wA(this,y,a)},Vt.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=ql(a,y),y===void 0))return"";if(typeof y=="string")return y;sn("getCategoryForLinkData found a non-string category for "+a+": "+y)},ms.prototype.getLinkCategoryForData=function(a){return this.ps(a)},ms.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var b=ql(a,x);b===void 0&&(b=""),b!==y&&(za(a,x,y),gu(this,"linkCategory",ja,x,a,b,y),typeof x=="string"&&this.La(a,x))}else za(a,x,y)}},ms.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},Vt=ms.prototype,Vt.lm=function(a,y){Ur.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function U1(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))}Vt.Wj=function(){return!0},Vt.ri=function(){return!0},Vt.xs=function(){return!0},Vt.Xj=function(){return!0},Re.Object.defineProperties(ms.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];ii(E)||sn("GraphLinksModel.linkDataArray must only contain Objects, not: "+E),qs(E)}if(this.md=a,this.linkKeyProperty!==""){for(b=new Ci,E=0;E<x;E++){var z=a[E],nt=this.Ac(z);nt===void 0||this.wb.I(nt)!==null?b.add(z):this.wb.add(nt,z)}for(b=b.iterator;b.next();)E=b.value,this.Bs(E),z=this.Ac(E),z!==void 0&&this.wb.add(z,E)}for(b=new bi,E=0;E<x;E++)b.add(a[E]);for(this.$f=b,gu(this,"linkDataArray",ja,"linkDataArray",this,y,a),y=0;y<x;y++)Xv(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],z=this.Ac(E);z===void 0&&(this.Bs(E),z=this.Ac(E)),z!==void 0&&this.wb.add(z,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"}}}),ms.prototype.setCategoryForLinkData=ms.prototype.lp,ms.prototype.getCategoryForLinkData=ms.prototype.ps,ms.prototype.assignAllDataProperties=ms.prototype.Do,ms.prototype.setGroupKeyForNodeData=ms.prototype.mp,ms.prototype.getGroupKeyForNodeData=ms.prototype.lh,ms.prototype.isGroupForNodeData=ms.prototype.Yu,ms.prototype.copyLinkData=ms.prototype.Jo,ms.prototype.mergeLinkDataArray=ms.prototype.Zz,ms.prototype.removeLinkDataCollection=ms.prototype.lA,ms.prototype.removeLinkData=ms.prototype.bm,ms.prototype.addLinkDataCollection=ms.prototype.Ey,ms.prototype.addLinkData=ms.prototype.fi,ms.prototype.containsLinkData=ms.prototype.Jc,ms.prototype.makeLinkDataKeyUnique=ms.prototype.Bs,ms.prototype.findLinkDataForKey=ms.prototype.jh,ms.prototype.setKeyForLinkData=ms.prototype.Ks,ms.prototype.getKeyForLinkData=ms.prototype.Ac,ms.prototype.removeLabelKeyForLinkData=ms.prototype.Qx,ms.prototype.addLabelKeyForLinkData=ms.prototype.Bu,ms.prototype.setLabelKeysForLinkData=ms.prototype.Ls,ms.prototype.getLabelKeysForLinkData=ms.prototype.Ef,ms.prototype.setToPortIdForLinkData=ms.prototype.Cv,ms.prototype.getToPortIdForLinkData=ms.prototype.Cx,ms.prototype.setFromPortIdForLinkData=ms.prototype.xv,ms.prototype.getFromPortIdForLinkData=ms.prototype.zx,ms.prototype.setToKeyForLinkData=ms.prototype.Bv,ms.prototype.getToKeyForLinkData=ms.prototype.Bx,ms.prototype.setFromKeyForLinkData=ms.prototype.wv,ms.prototype.getFromKeyForLinkData=ms.prototype.yx,ms.prototype.clear=ms.prototype.clear;var Im=Object.freeze([]);ms.className="GraphLinksModel",tA.GraphLinksModel=ms,Ur.constructGraphLinksModel=Ur.constructGraphLinksModel=function(){return new ms},Ur.initDiagramModel=Yv=function(){return new ms};function $h(a,y){Ur.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(xi(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}On($h,Ur),$h.constructGraphLinksModel=Ur.constructGraphLinksModel,$h.prototype.cloneProtected=function(a){Ur.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},Vt=$h.prototype,Vt.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)+":"+Rr(E)}}return y},Vt.rm=function(){var a=Ur.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
|
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},Vt.gp=function(a){Ur.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},Vt.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&sn("applyIncrementalJson cannot change Model properties"),Ur.prototype.fp.call(this,a)},Vt.Vl=function(a){return a},Vt.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=ql(a,y),y!==void 0)){if(sg(y))return y;sn("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},Vt.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=ql(a,x);b!==y&&(wA(this,b,a),za(a,x,y),this.hc(y)===null&&yA(this,y,a),gu(this,"nodeParentKey",ja,x,a,b,y),typeof x=="string"&&this.La(a,x))}else za(a,x,y)}},Vt.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=ql(a,y),y===void 0)?"":typeof y=="string"?y:(sn("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},$h.prototype.getLinkCategoryForData=function(a){return this.ss(a)},$h.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var b=ql(a,x);b===void 0&&(b=""),b!==y&&(za(a,x,y),gu(this,"parentLinkCategory",ja,x,a,b,y),typeof x=="string"&&this.La(a,x))}else za(a,x,y)}},$h.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},$h.prototype.copyNodeData=function(a){return a===null?null:(a=Ur.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||ql(a,this.Ke)===void 0||za(a,this.Ke,void 0),a)},$h.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=ql(a,y);b!==x&&(za(a,y,x),this.Fs(a,y,b,x))},Vt=$h.prototype,Vt.jp=function(a,y){Ur.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},Vt.qv=function(a,y,x){if(this.mh(a)===y){var b=this.Ke;za(a,b,x),gu(this,"nodeParentKey",ja,b,a,y,x),typeof b=="string"&&this.La(a,b)}},Vt.fm=function(a){Ur.prototype.fm.call(this,a),a=this.wa(a);var y=L0(this,a);if(y!==null){var x=yi();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)&&this.mh(b)===a){var E=this.Ke;gu(this,"nodeParentKey",ja,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}for(y=0;y<x.length;y++)wA(this,a,x[y]);nr(x)}},Vt.em=function(a){Ur.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&yA(this,y,a)},Vt.qp=function(a){Ur.prototype.qp.call(this,a);var y=this.mh(a);wA(this,y,a)},Vt.lm=function(a,y){Ur.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},Vt.Tl=function(){return!0},Vt.xs=function(){return!0},Re.Object.defineProperties($h.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"}}}),$h.prototype.setParentLinkCategoryForNodeData=$h.prototype.Ms,$h.prototype.getParentLinkCategoryForNodeData=$h.prototype.ss,$h.prototype.setParentKeyForNodeData=$h.prototype.qe,$h.prototype.getParentKeyForNodeData=$h.prototype.mh,$h.className="TreeModel",tA.TreeModel=$h;function pl(a){Ya.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=eA,this.Ti=0,this.Zv=new ke,this.Jp=this.me=0,this.Xr=new O0,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=eA,this.K=Xh,this.nd=Vp,this.hd=zv,this.tf=6,this.Nn=Rm,a&&Object.assign(this,a)}On(pl,Ya),pl.prototype.cloneProtected=function(a){Ya.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},pl.prototype.qb=function(a){a.classType===pl?a===jm||a===Um||a===Om||a===Dm||a===Vp?this.sorting=a:a===Og||a===Wp||a===Xh||a===lg?this.direction=a:a===Tf||a===ag||a===eA||a===nA?this.arrangement=a:(a===sp||a===Rm)&&(this.nodeDiameterFormula=a):Ya.prototype.qb.call(this,a)},pl.prototype.createNetwork=function(){return new Zp(this)},pl.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 Ci;y.addAll(a.iterator),a=new Ci;var x=new Ci,b=this.sort(y),E,z,nt=this.Jp,ot=this.arrangement,at=this.nodeDiameterFormula,ht=this.radius;(!isFinite(ht)||0>=ht)&&(ht=NaN);var ct=this.aspectRatio;(!isFinite(ct)||0>=ct)&&(ct=1);var gt=this.startAngle;isFinite(gt)||(gt=0);var Nt=this.sweepAngle;if((!isFinite(Nt)||360<Nt||1>Nt)&&(Nt=360),y=this.spacing,isFinite(y)||(y=NaN),ot===nA&&at===sp?ot=eA:ot===nA&&at!==sp&&(ot=this.arrangement),(this.direction===Og||this.direction===Wp)&&this.sorting!==Vp){for(at=0;!(at>=b.length)&&(a.add(b.M(at)),!(at+1>=b.length));at+=2)x.add(b.M(at+1));this.direction===Og?(this.arrangement===nA&&a.reverse(),b=new Ci,b.addAll(a),b.addAll(x)):(this.arrangement===nA&&x.reverse(),b=new Ci,b.addAll(x),b.addAll(a))}at=b.length;for(var Kt=z=E=0;Kt<b.length;Kt++){var Xt=gt+Nt*z*(this.direction===Xh?1:-1)/at,ce=b.M(Kt).diameter;isNaN(ce)&&(ce=ug(b.M(Kt),Xt)),360>Nt&&(Kt===0||Kt===b.length-1)&&(ce/=2),E+=ce,z++}if(isNaN(ht)||ot===nA){if(isNaN(y)&&(y=6),ot!==eA&&ot!==nA){for(z=-1/0,nt=0;nt<at;nt++)Kt=b.M(nt),E=b.M(nt===at-1?0:nt+1),isNaN(Kt.diameter)&&ug(Kt,0),isNaN(E.diameter)&&ug(E,0),z=Math.max(z,(Kt.diameter+E.diameter)/2);nt=z+y,ot===Tf?ht=(z+y)/(2*Math.PI/at):ht=km(this,nt*(360<=Nt?at:at-1),ct,gt*Math.PI/180,Nt*Math.PI/180)}else ht=km(this,E+(360<=Nt?at:at-1)*(ot!==nA?y:1.6*y),ct,gt*Math.PI/180,Nt*Math.PI/180);z=ht*ct}else if(z=ht*ct,Kt=Jv(this,ht,z,gt*Math.PI/180,Nt*Math.PI/180),isNaN(y))(ot===eA||ot===nA)&&(y=(Kt-E)/(360<=Nt?at:at-1));else if(ot===eA||ot===nA)Kt=(Kt-E)/(360<=Nt?at:at-1),Kt<y?(ht=km(this,E+y*(360<=Nt?at:at-1),ct,gt*Math.PI/180,Nt*Math.PI/180),z=ht*ct):y=Kt;else{for(nt=-1/0,E=0;E<at;E++)Xt=b.M(E),ce=b.M(E===at-1?0:E+1),isNaN(Xt.diameter)&&ug(Xt,0),isNaN(ce.diameter)&&ug(ce,0),nt=Math.max(nt,(Xt.diameter+ce.diameter)/2);nt+=y,E=km(this,nt*(360<=Nt?at:at-1),ct,gt*Math.PI/180,Nt*Math.PI/180),E>ht?(ht=E,z=ht*ct):nt=Kt/(360<=Nt?at:at-1)}if(this.kw=ot,this.lc=ht,this.Zm=ct,this.lw=gt,this.Wp=Nt,this.Ti=y,this.me=z,this.Jp=nt,y=b,b=this.kw,ot=this.lc,ht=this.lw,ct=this.Wp,gt=this.Ti,Nt=this.me,at=this.Jp,this.direction!==Og&&this.direction!==Wp||b!==nA)if(this.direction===Og||this.direction===Wp){switch(nt=0,b){case ag:nt=180*Tm(this,ot,Nt,ht,at)/Math.PI;break;case eA:at=y=0,nt=a.first(),nt!==null&&(y=ug(nt,Math.PI/2)),nt=x.first(),nt!==null&&(at=ug(nt,Math.PI/2)),nt=180*Tm(this,ot,Nt,ht,gt+(y+at)/2)/Math.PI;break;case Tf:nt=ct/y.length}if(this.direction===Og){switch(b){case ag:T0(this,a,ht,lg);break;case eA:k0(this,a,ht,lg);break;case Tf:I0(this,a,ct/2,ht,lg)}switch(b){case ag:T0(this,x,ht+nt,Xh);break;case eA:k0(this,x,ht+nt,Xh);break;case Tf:I0(this,x,ct/2,ht+nt,Xh)}}else{switch(b){case ag:T0(this,x,ht,lg);break;case eA:k0(this,x,ht,lg);break;case Tf:I0(this,x,ct/2,ht,lg)}switch(b){case ag:T0(this,a,ht+nt,Xh);break;case eA:k0(this,a,ht+nt,Xh);break;case Tf:I0(this,a,ct/2,ht+nt,Xh)}}}else switch(b){case ag:T0(this,y,ht,this.direction);break;case eA:k0(this,y,ht,this.direction);break;case Tf:I0(this,y,ct,ht,this.direction);break;case nA:R1(this,y,ct,ht,this.direction)}else R1(this,y,ct,ht-ct/2,Xh)}this.updateParts(),this.network=null,this.isValidLayout=!0};function I0(a,y,x,b,E){var z=a.Wp,nt=a.lc;a=a.me,b=b*Math.PI/180,x=x*Math.PI/180;for(var ot=y.length,at=0;at<ot;at++){var ht=b+(E===Xh?at*x/(360<=z?ot:ot-1):-(at*x)/ot),ct=y.M(at),gt=nt*Math.tan(ht)/a;gt=Math.sqrt((nt*nt+a*a*gt*gt)/(1+gt*gt)),ct.centerX=gt*Math.cos(ht),ct.centerY=gt*Math.sin(ht),ct.actualAngle=180*ht/Math.PI}}function k0(a,y,x,b){var E=a.lc,z=a.me,nt=a.Ti;x=x*Math.PI/180;for(var ot=y.length,at=0;at<ot;at++){var ht=y.M(at),ct=y.M(at===ot-1?0:at+1),gt=z*Math.sin(x);ht.centerX=E*Math.cos(x),ht.centerY=gt,ht.actualAngle=180*x/Math.PI,isNaN(ht.diameter)&&ug(ht,0),isNaN(ct.diameter)&&ug(ct,0),ht=Tm(a,E,z,b===Xh?x:-x,(ht.diameter+ct.diameter)/2+nt),x+=b===Xh?ht:-ht}}function T0(a,y,x,b){var E=a.lc,z=a.me,nt=a.Jp;x=x*Math.PI/180;for(var ot=y.length,at=0;at<ot;at++){var ht=y.M(at);ht.centerX=E*Math.cos(x),ht.centerY=z*Math.sin(x),ht.actualAngle=180*x/Math.PI,ht=Tm(a,E,z,b===Xh?x:-x,nt),x+=b===Xh?ht:-ht}}function R1(a,y,x,b,E){var z=a.Wp;if(a.mj=0,a.Xr=new O0,360>x){for(z=b+(E===Xh?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,H1(a,y,x,b,E)}else _1(a,y,x,b,E);a.Xr.commit(y)}function _1(a,y,x,b,E){var z=a.lc,nt=a.Ti,ot=a.Zm,at=z*Math.cos(b*Math.PI/180),ht=a.me*Math.sin(b*Math.PI/180),ct=y.Fa();if(ct.length===3)ct[0].centerX=z,ct[0].centerY=0,ct[1].centerX=ct[0].centerX-ct[0].width/2-ct[1].width/2-nt,ct[1].y=ct[0].y,ct[2].centerX=(ct[0].centerX+ct[1].centerX)/2,ct[2].y=ct[0].y-ct[2].height-nt;else if(ct.length===4)ct[0].centerX=z,ct[0].centerY=0,ct[2].centerX=-ct[0].centerX,ct[2].centerY=ct[0].centerY,ct[1].centerX=0,ct[1].y=Math.min(ct[0].y,ct[2].y)-ct[1].height-nt,ct[3].centerX=0,ct[3].y=Math.max(ct[0].y+ct[0].height+nt,ct[2].y+ct[2].height+nt);else{z=ke.alloc();for(var gt=0;gt<ct.length&&(ct[gt].centerX=at,ct[gt].centerY=ht,!(gt>=ct.length-1));gt++)Q1(a,at,ht,ct,gt,E,z)||z1(a,at,ht,ct,gt,E,z),at=z.x,ht=z.y;if(ke.free(z),a.mj++,!(23<a.mj)){at=ct[0].centerX,ht=ct[0].centerY,z=ct[ct.length-1].centerX,gt=ct[ct.length-1].centerY;var Nt=Math.abs(at-z)-((ct[0].width+ct[ct.length-1].width)/2+nt),Kt=Math.abs(ht-gt)-((ct[0].height+ct[ct.length-1].height)/2+nt);nt=0,1>Math.abs(Kt)?Math.abs(at-z)<(ct[0].width+ct[ct.length-1].width)/2&&(nt=0):nt=0<Kt?Kt:1>Math.abs(Nt)?0:Nt,at=Math.abs(z)>Math.abs(gt)?0<z!=ht>gt:0<gt!=at<z,(at=E===Xh?at:!at)&&(nt=-Math.abs(nt),nt=Math.min(nt,-ct[ct.length-1].width),nt=Math.min(nt,-ct[ct.length-1].height)),a.Xr.compare(nt,ct),1<Math.abs(nt)&&(a.lc=8>a.mj?a.lc-nt/(2*Math.PI):5>ct.length&&10<nt?a.lc/2:a.lc-(0<nt?1.7:-2.3),a.me=a.lc*ot,_1(a,y,x,b,E))}}}function H1(a,y,x,b,E){for(var z=a.lc,nt=a.me,ot=a.Zm,at=z*Math.cos(b*Math.PI/180),ht=nt*Math.sin(b*Math.PI/180),ct=ke.alloc(),gt=y.Fa(),Nt=0;Nt<gt.length&&(gt[Nt].centerX=at,gt[Nt].centerY=ht,!(Nt>=gt.length-1));Nt++)Q1(a,at,ht,gt,Nt,E,ct)||z1(a,at,ht,gt,Nt,E,ct),at=ct.x,ht=ct.y;if(ke.free(ct),a.mj++,!(23<a.mj)){if(at=Math.atan2(ht,at),at=E===Xh?a.gt-at:at-a.gt,at=Math.abs(at)<Math.abs(at-2*Math.PI)?at:at-2*Math.PI,z=at*(z+nt)/2,nt=a.Xr,Math.abs(z)<Math.abs(nt.Pl))for(nt.Pl=z,nt.mk=[],nt.tm=[],at=0;at<gt.length;at++)nt.mk[at]=gt[at].bounds.x,nt.tm[at]=gt[at].bounds.y;1<Math.abs(z)&&(a.lc=8>a.mj?a.lc-z/(2*Math.PI):a.lc-(0<z?1.7:-2.3),a.me=a.lc*ot,H1(a,y,x,b,E))}}function Q1(a,y,x,b,E,z,nt){var ot=a.lc,at=a.me,ht=0;a=(b[E].width+b[E+1].width)/2+a.Ti;var ct=!1;if(0<=x!=(z===Xh)){if(z=y+a,z>ot){if(z=y-a,z<-ot)return nt.x=z,nt.y=ht,!1;ct=!0}}else if(z=y-a,z<-ot){if(z=y+a,z>ot)return nt.x=z,nt.y=ht,!1;ct=!0}return ht=Math.sqrt(1-Math.min(1,z*z/(ot*ot)))*at,0>x!==ct&&(ht=-ht),Math.abs(x-ht)>(b[E].height+b[E+1].height)/2?(nt.x=z,nt.y=ht,!1):(nt.x=z,nt.y=ht,!0)}function z1(a,y,x,b,E,z,nt){var ot=a.lc,at=a.me,ht=0;if(a=(b[E].height+b[E+1].height)/2+a.Ti,b=!1,0<=y!=(z===Xh)){if(z=x-a,z<-at){if(z=x+a,z>at){nt.x=ht,nt.y=z;return}b=!0}}else if(z=x+a,z>at){if(z=x-a,z<-at){nt.x=ht,nt.y=z;return}b=!0}ht=Math.sqrt(1-Math.min(1,z*z/(at*at)))*ot,0>y!==b&&(ht=-ht),nt.x=ht,nt.y=z}pl.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},pl.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 ke(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))},pl.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function Jv(a,y,x,b,E){var z=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 nt=0,ot=b!==void 0&&E!==void 0?E/(z+1):Math.PI/(2*(z+1)),at=0,ht=0;ht<=z;ht++){b!==void 0&&E!==void 0?at=b+ht*E/z:at=ht*Math.PI/(2*z);var ct=Math.sin(at);nt+=Math.sqrt(1-a*a*ct*ct)*ot}return b!==void 0&&E!==void 0?(y>x?y:x)*nt:4*(y>x?y:x)*nt}function km(a,y,x,b,E){return y/(b!==void 0&&E!==void 0?Jv(a,1,x,b,E):Jv(a,1,x))}function Tm(a,y,x,b,E){if(.001>Math.abs(a.Zm-1))return E/y;var z=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,nt=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(b+=Math.PI/2);for(var ot=0;;ot++){var at=Math.sin(b+ot*a);if(nt+=(y>x?y:x)*Math.sqrt(1-z*z*at*at)*a,nt>=E)return ot*a}}pl.prototype.sort=function(a){switch(this.sorting){case Om:break;case Dm:a.reverse();break;case jm:a.sort(this.comparer);break;case Um:a.sort(this.comparer),a.reverse();break;case Vp:return this.ak(_w(a));default:sn("Invalid sorting type.")}return a};function _w(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new Ci;for(var b=0;b<a.length;b++){var E=-1,z=-1;if(b===0)for(var nt=0;nt<a.length;nt++){var ot=a.M(nt).edgesCount;ot>E&&(E=ot,z=nt)}else for(nt=0;nt<a.length;nt++)ot=y[nt],ot>E&&(E=ot,z=nt);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),nt=z.sourceEdges;nt.next();)E=a.indexOf(nt.value.fromVertex),0>E||0<=y[E]&&y[E]++;for(z=z.destinationEdges;z.next();)E=a.indexOf(z.value.toVertex),0>E||0<=y[E]&&y[E]++}return x}pl.prototype.ak=function(a){for(var y=[],x=0;x<a.length;x++){var b=a.M(x);y[x]=[];for(var E,z=b.destinationEdges;z.next();)E=a.indexOf(z.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(z=[],x=0;x<y.length;x++)z[x]=0;x=[];var nt=[],ot=[];b=[],E=new Ci;for(var at=0,ht=0;ht<y.length;ht++){var ct=y[ht].length;if(ct===1)b.push(ht);else if(ct===0)E.add(a.M(ht));else{if(at===0)x.push(ht);else{for(var gt=ct=1/0,Nt=-1,Kt=[],Xt=0;Xt<x.length;Xt++)0>y[x[Xt]].indexOf(x[Xt===x.length-1?0:Xt+1])&&Kt.push(Xt===x.length-1?0:Xt+1);if(Kt.length===0)for(Xt=0;Xt<x.length;Xt++)Kt.push(Xt);for(Xt=0;Xt<Kt.length;Xt++){for(var ce=Kt[Xt],Ke=y[ht],Te=0,$e=0;$e<nt.length;$e++){var rn=z[nt[$e]],ln=z[ot[$e]];if(rn<ln){var Bn=rn;rn=ln}else Bn=ln;if(Bn<ce&&ce<=rn)for(ln=0;ln<Ke.length;ln++){var Gn=Ke[ln];0>x.indexOf(Gn)||Bn<z[Gn]&&z[Gn]<rn||Bn===z[Gn]||rn===z[Gn]||Te++}else for(ln=0;ln<Ke.length;ln++)Gn=Ke[ln],0>x.indexOf(Gn)||Bn<z[Gn]&&z[Gn]<rn&&Bn!==z[Gn]&&rn!==z[Gn]&&Te++}for(Ke=Te,$e=Te=0;$e<y[ht].length;$e++)Bn=x.indexOf(y[ht][$e]),0<=Bn&&(Bn=Math.abs(ce-(Bn>=ce?Bn+1:Bn)),Te+=Bn<x.length+1-Bn?Bn:x.length+1-Bn);for($e=0;$e<nt.length;$e++)Bn=z[nt[$e]],rn=z[ot[$e]],Bn>=ce&&Bn++,rn>=ce&&rn++,Bn>rn&&(ln=rn,rn=Bn,Bn=ln),rn-Bn<(x.length+2)/2==(Bn<ce&&ce<=rn)&&Te++;(Ke<ct||Ke===ct&&Te<gt)&&(ct=Ke,gt=Te,Nt=ce)}for(x.splice(Nt,0,ht),ct=0;ct<x.length;ct++)z[x[ct]]=ct;for(ct=0;ct<y[ht].length;ct++)gt=y[ht][ct],0<=x.indexOf(gt)&&(nt.push(ht),ot.push(gt))}at++}}for(nt=x.length;;){for(z=!0,ot=0;ot<b.length;ot++)if(at=b[ot],ht=y[at][0],ct=x.indexOf(ht),0<=ct){for(Nt=gt=0;Nt<y[ht].length;Nt++)Kt=x.indexOf(y[ht][Nt]),0>Kt||Kt===ct||(Xt=Kt>ct?Kt-ct:ct-Kt,gt+=Kt<ct!=Xt>nt-Xt?1:-1);x.splice(0>gt?ct:ct+1,0,at),b.splice(ot,1),ot--}else z=!1;if(z)break;x.push(b[0]),b.splice(0,1)}for(y=0;y<x.length;y++)E.add(a.M(x[y]));return E},Re.Object.defineProperties(pl.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!==nA&&a!==eA&&a!==ag&&a!==Tf||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==Xh&&a!==lg&&a!==Og&&a!==Wp||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==Om&&a!==Dm&&a!==jm&&!Um&&a!==Vp||(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!==Rm&&a!==sp||(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 eA=new ri(pl,"ConstantSpacing",0),ag=new ri(pl,"ConstantDistance",1),Tf=new ri(pl,"ConstantAngle",2),nA=new ri(pl,"Packed",3),Xh=new ri(pl,"Clockwise",4),lg=new ri(pl,"Counterclockwise",5),Og=new ri(pl,"BidirectionalLeft",6),Wp=new ri(pl,"BidirectionalRight",7),Om=new ri(pl,"Forwards",8),Dm=new ri(pl,"Reverse",9),jm=new ri(pl,"Ascending",10),Um=new ri(pl,"Descending",11),Vp=new ri(pl,"Optimized",12),Rm=new ri(pl,"Pythagorean",13),sp=new ri(pl,"Circular",14);pl.className="CircularLayout",pl.ConstantSpacing=eA,pl.ConstantDistance=ag,pl.ConstantAngle=Tf,pl.Packed=nA,pl.Clockwise=Xh,pl.Counterclockwise=lg,pl.BidirectionalLeft=Og,pl.BidirectionalRight=Wp,pl.Forwards=Om,pl.Reverse=Dm,pl.Ascending=jm,pl.Descending=Um,pl.Optimized=Vp,pl.Pythagorean=Rm,pl.Circular=sp;function O0(){this.Pl=-1/0,this.tm=this.mk=null}O0.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},O0.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]}},O0.className="VertexArrangement";function Zp(a){Ba.call(this,a)}On(Zp,Ba),Zp.prototype.createVertex=function(){return new D0(this)},Zp.prototype.createEdge=function(){return new _m(this)},Zp.className="CircularNetwork";function D0(a){xu.call(this,a),this.u=this.Si=NaN}On(D0,xu);function ug(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===nA)if(x.nodeDiameterFormula===sp)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===sp?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}Re.Object.defineProperties(D0.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)}}}),D0.className="CircularVertex";function _m(a){Hc.call(this,a)}On(_m,Hc),_m.className="CircularEdge";function uh(a){Ya.call(this),this.ah=null,this.An=0,this.$d=new Ki(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)}On(uh,Ya),uh.prototype.cloneProtected=function(a){Ya.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},uh.prototype.createNetwork=function(){return new ap(this)},uh.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 z=E.value;z.Vd=z.vertexes.count,z.sh=1,z.Hj=null,z.We=null}K1(this,0,a)}this.network=y;var nt=b=x.iterator;b=this.arrangementSpacing;var ot=nt.count,at=!0;z=E=0;for(var ht=yi(),ct=0;ct<ot+y.vertexes.count+2;ct++)ht[ct]=null;ot=0,nt.reset();for(var gt=ai.alloc();nt.next();)if(ct=nt.value,this.computeBounds(ct,gt),at)at=!1,E=gt.x+gt.width/2,z=gt.y+gt.height/2,ht[0]=new ke(gt.x+gt.width+b.width,gt.y),ht[1]=new ke(gt.x,gt.y+gt.height+b.height),ot=2;else{var Nt=G1(ht,ot,E,z,gt.width,gt.height,b),Kt=ht[Nt],Xt=new ke(Kt.x+gt.width+b.width,Kt.y),ce=new ke(Kt.x,Kt.y+gt.height+b.height);for(Nt+1<ot&&ht.splice(Nt+1,0,null),ht[Nt]=Xt,ht[Nt+1]=ce,ot++,Nt=Kt.x-gt.x,Kt=Kt.y-gt.y,ct=ct.vertexes.iterator;ct.next();)Xt=ct.value,Xt.centerX+=Nt,Xt.centerY+=Kt}for(ai.free(gt),ct=y.vertexes.iterator;ct.next();)nt=ct.value,Nt=nt.bounds,2>ot?(E=Nt.x+Nt.width/2,z=Nt.y+Nt.height/2,ht[0]=new ke(Nt.x+Nt.width+b.width,Nt.y),ht[1]=new ke(Nt.x,Nt.y+Nt.height+b.height),ot=2):(at=G1(ht,ot,E,z,Nt.width,Nt.height,b),gt=ht[at],Kt=new ke(gt.x+Nt.width+b.width,gt.y),Nt=new ke(gt.x,gt.y+Nt.height+b.height),at+1<ot&&ht.splice(at+1,0,null),ht[at]=Kt,ht[at+1]=Nt,ot++,nt.centerX=gt.x+nt.width/2,nt.centerY=gt.y+nt.height/2);for(nr(ht),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)}}V1(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},uh.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},uh.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 K1(a,y,x){if(Hw(a,y)){var b=a.Zf;a.Zf*=1+1/(y+1);var E=Qw(a,y),z=Math.max(0,Math.max(Math.min(a.network.vertexes.count,x*(y+1)/11),10));for(a.maxIterations+=z,K1(a,y+1,x),V1(a,z),zw(a,E),y=E.vertexes.Fa(),y.sort(function(nt,ot){return nt===null||ot===null||nt===ot?0:ot.Vd-nt.Vd}),x=0;x<y.length;x++)Kw(a,y[x]);a.Zf=b}}function Hw(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 Qw(a,y){for(var x=a.network,b=new ap(a),E=0;E<a.ah.length;E++){var z=a.ah[E];if(1<z.Vd){b.dh(z);var nt=new Z1;nt.Rs=z.Vd,nt.Ss=z.width,nt.Qs=z.height,nt.Sv=z.focus.x,nt.Tv=z.focus.y,z.We===null&&(z.We=new Ci),z.We.add(nt),z.sv=z.We.count-1}else break}for(z=x.edges.iterator;z.next();){var ot=z.value;E=ot.fromVertex,nt=ot.toVertex,E.network===b&&nt.network===b?b.Bo(ot):E.network===b?(ot=E.Hj,ot===null&&(ot=new Ci,E.Hj=ot),ot.add(nt),E.Vd--,E.sh+=nt.sh):nt.network===b&&(ot=nt.Hj,ot===null&&(ot=new Ci,nt.Hj=ot),ot.add(E),nt.Vd--,nt.sh+=E.sh)}for(E=b.edges.iterator;E.next();)z=E.value,z.length*=Math.max(1,Ln.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=b.vertexes.iterator;y.next();){E=y.value;var at=E.Hj;if(at!==null&&0<at.count&&(nt=E.We.M(E.We.count-1).Rs-E.Vd,!(0>=nt))){for(var ht=ot=0,ct=at.count-nt;ct<at.count;ct++){var gt=at.M(ct),Nt=null;for(z=gt.edges.iterator;z.next();){var Kt=z.value;if(Kt.Ax(gt)===E){Nt=Kt;break}}Nt!==null&&(ht+=Nt.length,ot+=gt.width*gt.height)}z=E.centerX,at=E.centerY,ct=E.width,gt=E.height,Nt=E.focus,Kt=ct*gt,1>Kt&&(Kt=1),ot=Ln.sqrt((ot+Kt+ht*ht*4/(nt*nt))/Kt),nt=(ot-1)*ct/2,ot=(ot-1)*gt/2,E.bounds=new ai(z-Nt.x-nt,at-Nt.y-ot,ct+2*nt,gt+2*ot),E.focus=new ke(Nt.x+nt,Nt.y+ot)}}return a.network=b,x}function zw(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 z=E.Sv,nt=E.Tv;b.bounds=new ai(b.centerX-z,b.centerY-nt,E.Ss,E.Qs),b.focus=new ke(z,nt),b.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function Kw(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var b=y.centerX,E=y.centerY,z=y.width,nt=y.height;y.We!==null&&0<y.We.count&&(nt=y.We.M(0),z=nt.Ss,nt=nt.Qs),z=Ln.sqrt(z*z+nt*nt)/2;for(var ot=!1,at=nt=0,ht=0,ct=y.vertexes.iterator;ct.next();){var gt=ct.value;1>=gt.Vd?at++:(ot=!0,ht++,nt+=Math.atan2(y.centerY-gt.centerY,y.centerX-gt.centerX))}if(at!==0){for(0<ht&&(nt/=ht),ht=y=0,y=ot?2*Math.PI/(at+1):2*Math.PI/at,at%2===0&&(ht=y/2),1<x.count&&x.sort(function(Kt,Xt){return Kt===null||Xt===null||Kt===Xt?0:Xt.width*Xt.height-Kt.width*Kt.height}),ot=at%2===0?0:1,x=x.iterator;x.next();)if(at=x.value,!(1<at.Vd||a.isFixed(at))){for(ct=null,gt=at.edges.iterator;gt.next();){ct=gt.value;break}gt=at.width;var Nt=at.height;gt=Ln.sqrt(gt*gt+Nt*Nt)/2,ct=z+ct.length+gt,gt=nt+(y*(ot/2>>1)+ht)*(ot%2===0?1:-1),at.centerX=b+ct*Math.cos(gt),at.centerY=E+ct*Math.sin(gt),ot++}}}}function G1(a,y,x,b,E,z,nt){var ot=9e19,at=-1,ht=0;t:for(;ht<y;ht++){var ct=a[ht],gt=ct.x-x,Nt=ct.y-b;if(gt=gt*gt+Nt*Nt,gt<ot){for(Nt=ht-1;0<=Nt;Nt--)if(a[Nt].y>ct.y&&a[Nt].x-ct.x<E+nt.width)continue t;for(Nt=ht+1;Nt<y;Nt++)if(a[Nt].x>ct.x&&a[Nt].y-ct.y<z+nt.height)continue t;at=ht,ot=gt}}return at}uh.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},uh.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 z=E.value;if(z.toVertex===a){x=z;break}}if(x===null){for(E=b.sourceEdges;E.next();)if(z=E.value,z.fromVertex===a){x=z;break}}x===null&&(x=this.network.Zj(a,b,null)),x.length=this.defaultCommentSpringLength}}};function W1(a,y){var x=a.bounds,b=x.x;a=x.y;var E=x.width;x=x.height;var z=y.bounds,nt=z.x;y=z.y;var ot=z.width;return z=z.height,b+E<nt?a>y+z?(x=b+E-nt,a=a-y-z,Ln.sqrt(x*x+a*a)):a+x<y?(b=b+E-nt,a=a+x-y,Ln.sqrt(b*b+a*a)):nt-(b+E):b>nt+ot?a>y+z?(x=b-nt-ot,a=a-y-z,Ln.sqrt(x*x+a*a)):a+x<y?(b=b-nt-ot,a=a+x-y,Ln.sqrt(b*b+a*a)):b-(nt+ot):a>y+z?a-(y+z):a+x<y?y-(a+x):.1}function V1(a,y){for(a.ah=null,y=a.An+y;a.An<y&&(a.An++,Gw(a)););a.ah=null}function Gw(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,z=x=x.centerY,nt=1;nt<y.length;nt++){var ot=y[nt];ot.forceX=0,ot.forceY=0;var at=ot.centerX;ot=ot.centerY,b=Math.min(b,at),E=Math.max(E,at),x=Math.min(x,ot),z=Math.max(z,ot)}(E=E-b>z-x)?y.sort(function(ce,Ke){return ce===null||Ke===null||ce===Ke?0:ce.centerX-Ke.centerX}):y.sort(function(ce,Ke){return ce===null||Ke===null||ce===Ke?0:ce.centerY-Ke.centerY}),x=a.Zf;var ht=b=ot=0;for(z=0;z<y.length;z++){nt=y[z],b=nt.bounds,ot=nt.focus,at=b.x+ot.x;var ct=b.y+ot.y;b=nt.charge*a.electricalFieldX(at,ct),ht=nt.charge*a.electricalFieldY(at,ct),b+=nt.mass*a.gravitationalFieldX(at,ct),ht+=nt.mass*a.gravitationalFieldY(at,ct),nt.forceX+=b,nt.forceY+=ht;for(var gt=z+1;gt<y.length;gt++){var Nt=y[gt];if(Nt!==nt){b=Nt.bounds,ot=Nt.focus,ht=b.x+ot.x;var Kt=b.y+ot.y;if(at-ht>x||ht-at>x){if(E)break}else if(ct-Kt>x||Kt-ct>x){if(!E)break}else{var Xt=W1(nt,Nt);1>Xt?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new Hm),Xt=b.random(),ot=b.random(),at>ht?(b=Math.abs(Nt.bounds.right-nt.bounds.x),b=(1+b)*Xt):at<ht?(b=Math.abs(Nt.bounds.x-nt.bounds.right),b=-(1+b)*Xt):(b=Math.max(Nt.width,nt.width),b=(1+b)*Xt-b/2),ct>Kt?(ht=Math.abs(Nt.bounds.bottom-nt.bounds.y),ht=(1+ht)*ot):at<ht?(ht=Math.abs(Nt.bounds.y-nt.bounds.bottom),ht=-(1+ht)*ot):(ht=Math.max(Nt.height,nt.height),ht=(1+ht)*ot-ht/2)):(ot=-(nt.charge*Nt.charge)/(Xt*Xt),b=(ht-at)/Xt*ot,ht=(Kt-ct)/Xt*ot),nt.forceX+=b,nt.forceY+=ht,Nt.forceX-=b,Nt.forceY-=ht}}}}for(E=a.network.edges.iterator;E.next();)ot=E.value,x=ot.fromVertex,z=ot.toVertex,nt=x.bounds,at=x.focus,b=nt.x+at.x,nt=nt.y+at.y,ct=z.bounds,gt=z.focus,at=ct.x+gt.x,ct=ct.y+gt.y,gt=W1(x,z),1>gt?(gt=a.randomNumberGenerator,gt===null&&(a.randomNumberGenerator=gt=new Hm),ot=gt.random(),gt=gt.random(),b=(b>at?1:-1)*(1+(z.width>x.width?z.width:x.width))*ot,ht=(nt>ct?1:-1)*(1+(z.height>x.height?z.height:x.height))*gt):(ot=ot.stiffness*(gt-ot.length),b=(at-b)/gt*ot,ht=(ct-nt)/gt*ot),x.forceX+=b,x.forceY+=ht,z.forceX-=b,z.forceY-=ht;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}uh.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},uh.prototype.moveFixedVertex=function(){},uh.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},uh.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=Bs,y.toSpot=Bs)}},uh.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=ai.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,ai.free(x)}x=ai.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()}ai.free(x)},uh.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},uh.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},uh.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},uh.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},uh.prototype.electricalFieldX=function(){return 0},uh.prototype.electricalFieldY=function(){return 0},uh.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},uh.prototype.gravitationalFieldX=function(){return 0},uh.prototype.gravitationalFieldY=function(){return 0},uh.prototype.isFixed=function(a){return a.isFixed},Re.Object.defineProperties(uh.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"&&sn('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())}}}),uh.className="ForceDirectedLayout";function Z1(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}Z1.className="ForceDirectedSubnet";function ap(a){Ba.call(this,a)}On(ap,Ba),ap.prototype.createVertex=function(){return new j0(this)},ap.prototype.createEdge=function(){return new U0(this)},ap.className="ForceDirectedNetwork";function j0(a){xu.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}On(j0,xu),Re.Object.defineProperties(j0.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)}}}),j0.className="ForceDirectedVertex";function U0(a){Hc.call(this,a),this.j=this.o=NaN}On(U0,Hc),Re.Object.defineProperties(U0.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)}}}),U0.className="ForceDirectedEdge";function Hm(){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()}Hm.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},Hm.className="RandomNumberGenerator";function Xs(a){Ya.call(this),this.kc=this.ie=25,this.K=0,this.Dk=Wm,this.Zk=Vm,this.Qk=Zm,this.bj=4,this.rk=Ym,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 ke,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}On(Xs,Ya),Xs.prototype.cloneProtected=function(a){Ya.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},Xs.prototype.qb=function(a){a.classType===Xs?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:sn("Unknown enum value: "+a):Ya.prototype.qb.call(this,a)},Xs.prototype.createNetwork=function(){return new $p(this)},Xs.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!==_0&&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===_0&&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,z=b.toVertex;if(!(b.valid||(E.node===null&&E.data===null||z.node===null&&z.data===null)&&E.layer===z.layer)){var nt=0,ot=0,at=0,ht=0;if(b.link!==null){if(ot=b.link,ot===null)continue;var ct=E.node;if(nt=z.node,ct===null||nt===null)continue;var gt=ot.fromNode;at=ot.toNode;for(var Nt=ot.fromPort;Nt!==null&&!Nt.Ed();)Nt=Nt.panel;for(ot=ot.toPort;ot!==null&&!ot.Ed();)ot=ot.panel;if(b.rev){ht=gt;var Kt=Nt;gt=at,Nt=ot,at=ht,ot=Kt}var Xt=E.focus;ht=z.focus;var ce=b.rev?z.bounds:E.bounds;Kt=ke.alloc(),ct!==gt?ce.w()&>.isVisible()?gt.actualBounds.w()?(Lf(gt,Nt,Yo,Kt),Kt.x+=gt.actualBounds.x-ce.x,Kt.y+=gt.actualBounds.y-ce.y):(Lf(gt,Nt,Yo,Kt),Kt.w()||Kt.assign(Xt)):Kt.assign(Xt):ce.w()?(Lf(gt,Nt,Yo,Kt),Kt.w()||Kt.assign(Xt)):Kt.assign(Xt),gt=b.rev?E.bounds:z.bounds,ct=ke.alloc(),nt!==at?gt.w()&&at.isVisible()?at.actualBounds.w()?(Lf(at,ot,Yo,ct),ct.x+=at.actualBounds.x-gt.x,ct.y+=at.actualBounds.y-gt.y):(Lf(at,ot,Yo,ct),ct.w()||ct.assign(ht)):ct.assign(ht):gt.w()?(Lf(at,ot,Yo,ct),ct.w()||ct.assign(ht)):ct.assign(ht),this.K===90||this.K===270?(nt=Math.round((Kt.x-Xt.x)/this.kc),at=Kt.x,ot=Math.round((ct.x-ht.x)/this.kc),ht=ct.x):(nt=Math.round((Kt.y-Xt.y)/this.kc),at=Kt.y,ot=Math.round((ct.y-ht.y)/this.kc),ht=ct.y),ke.free(Kt),ke.free(ct),b.portFromColOffset=nt,b.portFromPos=at,b.portToColOffset=ot,b.portToPos=ht}else b.portFromColOffset=0,b.portFromPos=0,b.portToColOffset=0,b.portToPos=0;if(Kt=E.layer,ct=z.layer,gt=0,ce=b.link,ce!==null){var Ke=ce.fromPort,Te=ce.toPort;if(Ke!==null&&Te!==null){var $e=ce.fromNode;if(Nt=ce.toNode,$e!==null&&Nt!==null){var rn=Gm(this,!0),ln=Gm(this,!1),Bn=this.setsPortSpots?rn:ce.computeSpot(!0,Ke);Xt=this.setsPortSpots?ln:ce.computeSpot(!1,Te);var Gn=ce.isOrthogonal;Bn.$c()&&Bn.Hf(ln)&&Xt.$c()&&Xt.Hf(rn)?gt=0:(rn=ce.getLinkPoint($e,Ke,Bn,!0,Gn,Nt,Te,ke.alloc()),ln=ce.getLinkDirection($e,Ke,rn,Bn,!0,Gn,Nt,Te),ke.free(rn),Bn.ys()||ln!==iw(this,b,!0)?this.setsPortSpots&&$e!==null&&$e.ports.count===1&&b.rev&&(gt+=1):gt+=1,Bn=ce.getLinkPoint(Nt,Te,Xt,!1,Gn,$e,Ke,ke.alloc()),ce=ce.getLinkDirection(Nt,Te,Bn,Xt,!1,Gn,$e,Ke),ke.free(Bn),Xt.ys()||ce!==iw(this,b,!1)?this.setsPortSpots&&Nt!==null&&Nt.ports.count===1&&b.rev&&(gt+=2):gt+=2)}}}if(Nt=gt,gt=Nt===1||Nt===3,(Nt=Nt===2||Nt===3)&&(Xt=a.createVertex(),Xt.node=null,Xt.Dj=1,Xt.layer=Kt,Xt.near=E,a.dh(Xt),E=a.Zj(E,Xt,b.link),E.valid=!1,E.rev=b.rev,E.portFromColOffset=nt,E.portToColOffset=0,E.portFromPos=at,E.portToPos=0,E=Xt),ce=1,gt&&ce--,Kt-ct>ce&&0<Kt){for(b.valid=!1,Xt=a.createVertex(),Xt.node=null,Xt.Dj=2,Xt.layer=Kt-1,a.dh(Xt),E=a.Zj(E,Xt,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=Nt?0:nt,E.portToColOffset=0,E.portFromPos=Nt?0:at,E.portToPos=0,E=Xt,Kt--;Kt-ct>ce&&0<Kt;)Xt=a.createVertex(),Xt.node=null,Xt.Dj=3,Xt.layer=Kt-1,a.dh(Xt),E=a.Zj(E,Xt,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=0,E.portFromPos=0,E.portToPos=0,E=Xt,Kt--;E=a.Zj(Xt,z,b.link),E.valid=!gt,gt&&(Xt.near=z),E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=ot,E.portFromPos=0,E.portToPos=ht}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=hg(this,a),x=0,b=this.tc[a],z=0;z<b;z++)E=y[z],x+=this.nodeMinColumnSpace(E,!0),E.column=x,x+=1,x+=this.nodeMinColumnSpace(E,!1);this.Ra=Math.max(this.Ra,x-1),cg(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},Xs.prototype.linkMinLength=function(){return 1};function qv(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}Xs.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},Xs.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 cc(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 vd(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 Y1(a,y,x){var b=hg(a,y),E=a.tc[y];(a.Jn===null||a.Jn.length<E*E)&&(a.Jn=[]);for(var z=a.Jn,nt=0;nt<E;nt++){var ot=0,at=b[nt],ht=at.near;if(ht!==null&&ht.layer===at.layer)if(at=ht.index,at>nt)for(var ct=nt+1;ct<at;ct++){var gt=b[ct];gt.near===ht&>.Dj===ht.Dj||ot++}else for(ct=nt-1;ct>at;ct--)gt=b[ct],gt.near===ht&>.Dj===ht.Dj||ot++;var Nt;if(0<=x)for(at=b[nt].sourceEdgesArrayAccess,ht=0;ht<at.length;ht++){var Kt=at[ht];if(Kt.valid&&Kt.fromVertex.layer!==y)for(gt=Kt.fromVertex.index,ct=Kt.portToPos,Kt=Kt.portFromPos,Nt=ht+1;Nt<at.length;Nt++){var Xt=at[Nt];if(Xt.valid&&Xt.fromVertex.layer!==y){var ce=Xt.fromVertex.index,Ke=Xt.portToPos;Xt=Xt.portFromPos,ct<Ke&&(gt>ce||gt===ce&&Kt>Xt)&&ot++,Ke<ct&&(ce>gt||ce===gt&&Xt>Kt)&&ot++}}}if(0>=x){for(at=b[nt].destinationEdgesArrayAccess,ht=0;ht<at.length;ht++)if(Kt=at[ht],Kt.valid&&Kt.toVertex.layer!==y)for(gt=Kt.toVertex.index,ct=Kt.portToPos,Kt=Kt.portFromPos,Nt=ht+1;Nt<at.length;Nt++)Xt=at[Nt],Xt.valid&&Xt.toVertex.layer!==y&&(ce=Xt.toVertex.index,Ke=Xt.portToPos,Xt=Xt.portFromPos,Kt<Xt&&(gt>ce||gt===ce&&ct>Ke)&&ot++,Xt<Kt&&(ce>gt||ce===gt&&Ke>ct)&&ot++)}for(z[nt*E+nt]=ot,at=nt+1;at<E;at++){var Te=0,$e=0;if(0<=x){ot=b[nt].sourceEdgesArrayAccess;var rn=b[at].sourceEdgesArrayAccess;for(ht=0;ht<ot.length;ht++)if(Kt=ot[ht],Kt.valid&&Kt.fromVertex.layer!==y)for(gt=Kt.fromVertex.index,Kt=Kt.portFromPos,Nt=0;Nt<rn.length;Nt++)Xt=rn[Nt],Xt.valid&&Xt.fromVertex.layer!==y&&(ce=Xt.fromVertex.index,Xt=Xt.portFromPos,(gt<ce||gt===ce&&Kt<Xt)&&$e++,(ce<gt||ce===gt&&Xt<Kt)&&Te++)}if(0>=x){for(ot=b[nt].destinationEdgesArrayAccess,rn=b[at].destinationEdgesArrayAccess,ht=0;ht<ot.length;ht++)if(Kt=ot[ht],Kt.valid&&Kt.toVertex.layer!==y)for(gt=Kt.toVertex.index,ct=Kt.portToPos,Nt=0;Nt<rn.length;Nt++)Xt=rn[Nt],Xt.valid&&Xt.toVertex.layer!==y&&(ce=Xt.toVertex.index,Ke=Xt.portToPos,(gt<ce||gt===ce&&ct<Ke)&&$e++,(ce<gt||ce===gt&&Ke<ct)&&Te++)}z[nt*E+at]=Te,z[at*E+nt]=$e}}return cg(a,y,b),z}Xs.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=Y1(this,y,1),b=this.tc[y],E=0;E<b;E++)for(var z=E;z<b;z++)a+=x[E*b+z];return a};function Qm(a){for(var y=0,x=0;x<=a.Ia;x++){for(var b=a,E=x,z=hg(b,E),nt=b.tc[E],ot=0,at=0;at<nt;at++){var ht=z[at].destinationEdgesArrayAccess;if(ht!==null)for(var ct=0;ct<ht.length;ct++){var gt=ht[ct];if(gt.valid&>.toVertex.layer!==E){var Nt=gt.fromVertex.column+gt.portFromColOffset,Kt=gt.toVertex.column+gt.portToColOffset;ot+=(Math.abs(Nt-Kt)+1)*qv(gt)}}}cg(b,E,z),y+=ot}return y}Xs.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 ty(a,y,x){for(var b=hg(a,y),E=a.tc[y],z=[],nt=0;nt<E;nt++){var ot=b[nt],at=null;0>=x&&(at=ot.sourceEdgesArrayAccess);var ht=null;0<=x&&(ht=ot.destinationEdgesArrayAccess);var ct=0,gt=0,Nt=ot.near;if(Nt!==null&&Nt.layer===ot.layer&&(ct+=Nt.column-1,gt++),at!==null)for(Nt=0;Nt<at.length;Nt++){ot=at[Nt];var Kt=ot.fromVertex;ot.valid&&!ot.rev&&Kt.layer!==y&&(ct+=Kt.column,gt++)}if(ht!==null)for(at=0;at<ht.length;at++)ot=ht[at],Nt=ot.toVertex,ot.valid&&!ot.rev&&Nt.layer!==y&&(ct+=Nt.column,gt++);z[nt]=gt===0?-1:ct/gt}return cg(a,y,b),z}function $1(a,y,x){for(var b=hg(a,y),E=a.tc[y],z=[],nt=0;nt<E;nt++){var ot=b[nt],at=null;0>=x&&(at=ot.sourceEdgesArrayAccess);var ht=null;0<=x&&(ht=ot.destinationEdgesArrayAccess);var ct=0,gt=[],Nt=ot.near;if(Nt!==null&&Nt.layer===ot.layer&&(gt[ct]=Nt.column-1,ct++),ot=void 0,at!==null)for(Nt=0;Nt<at.length;Nt++){ot=at[Nt];var Kt=ot.fromVertex;ot.valid&&!ot.rev&&Kt.layer!==y&&(gt[ct]=Kt.column+ot.portFromColOffset,ct++)}if(ht!==null)for(at=0;at<ht.length;at++)ot=ht[at],Nt=ot.toVertex,ot.valid&&!ot.rev&&Nt.layer!==y&&(gt[ct]=Nt.column+ot.portToColOffset,ct++);ct===0?z[nt]=-1:(gt.sort(function(Xt,ce){return Xt-ce}),ht=ct>>1,z[nt]=ct&1?gt[ht]:gt[ht-1]+gt[ht]>>1)}return cg(a,y,b),z}function R0(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var nt=y.destinationEdges;nt.next();){var ot=nt.value,at=ot.toVertex,ht=y.layer-at.layer;ot=a.linkMinLength(ot),ht===ot&&R0(a,at,x,b,E,z)}if(z)for(nt=y.sourceEdges;nt.next();)ot=nt.value,at=ot.fromVertex,ht=at.layer-y.layer,ot=a.linkMinLength(ot),ht===ot&&R0(a,at,x,b,E,z)}}function ey(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var nt=y.destinationEdges;nt.next();)ey(a,nt.value.toVertex,x,b,E,z);if(z)for(y=y.sourceEdges;y.next();)ey(a,y.value.fromVertex,x,b,E,z)}}Xs.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case ry: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(;Ww(a)!==null;){for(E=X1(a);E!==null;)b[x]=E,x--,E.valid=!1,E=X1(a);for(E=J1(a);E!==null;)b[y]=E,y++,E.valid=!1,E=J1(a);E=null;for(var z=0,nt=this.network.vertexes.iterator;nt.next();){var ot=nt.value;if(ot.valid){for(var at=0,ht=ot.destinationEdges;ht.next();)ht.value.toVertex.valid&&at++;ht=0;for(var ct=ot.sourceEdges;ct.next();)ct.value.fromVertex.valid&&ht++;(E===null||z<at-ht)&&(E=ot,z=at-ht)}}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 Wm: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&&ny(this,y);for(b.reset();b.next();)y=b.value,y.Ll===-1&&ny(this,y);for(a.reset();a.next();)b=a.value,b.forest||(y=b.fromVertex,x=y.finish,E=b.toVertex,z=E.finish,E.Ll<y.Ll&&x<z&&(this.network.gm(b),b.rev=!0));break;case _0: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(z=0;z<E.length;z++)E[z].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 Ww(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function X1(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 J1(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 ny(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,ny(a,E))}y.finish=a.Kn,a.Kn++}Xs.prototype.assignLayers=function(){switch(this.Zk){case oy:q1(this);break;case sy:for(var a,y=this.network.vertexes.iterator;y.next();)a=ew(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 Vm:for(q1(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&nw(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 q1(a){for(var y=a.network.vertexes.iterator;y.next();){var x=tw(a,y.value);a.Ia=Math.max(x,a.Ia)}}function tw(a,y){var x=0;if(y.layer===-1){for(var b=y.destinationEdges;b.next();){var E=b.value,z=E.toVertex;E=a.linkMinLength(E),x=Math.max(x,tw(a,z)+E)}y.layer=x}else x=y.layer;return x}function ew(a,y){var x=0;if(y.layer===-1){for(var b=y.sourceEdges;b.next();){var E=b.value,z=E.fromVertex;E=a.linkMinLength(E),x=Math.max(x,ew(a,z)+E)}y.layer=x}else x=y.layer;return x}function nw(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)nw(a,x.value.toVertex);for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(var b=y.sourceEdgesArrayAccess,E=b.length,z=0;z<E;z++){var nt=b[z],ot=nt.fromVertex,at=nt.toVertex;nt=a.linkMinLength(nt),ot.layer-at.layer>nt&&R0(a,ot,0,-1,!0,!1)}for(R0(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,b=1/0,ot=0,at=null,nt=a.network.vertexes.iterator;nt.next();){var ht=nt.value;if(ht.component===1){var ct=0,gt=!1,Nt=ht.sourceEdgesArrayAccess;E=Nt.length;for(var Kt=0;Kt<E;Kt++){var Xt=Nt[Kt],ce=Xt.fromVertex;ct+=1,ce.component!==1&&(z+=1,ce=ce.layer-ht.layer,Xt=a.linkMinLength(Xt),b=Math.min(b,ce-Xt))}for(Nt=ht.destinationEdgesArrayAccess,E=Nt.length,Kt=0;Kt<E;Kt++)Xt=Nt[Kt].toVertex,--ct,Xt.component!==1?--z:gt=!0;(at===null||ct<ot)&&!gt&&(at=ht,ot=ct)}}if(0<z){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer+=b);y.component=0}else at.component=0}for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(R0(a,y,1,-1,!0,!1);y.component!==0;){for(b=0,E=1/0,z=0,ot=null,at=a.network.vertexes.iterator;at.next();)if(nt=at.value,nt.component===1){for(ht=0,ct=!1,Nt=nt.sourceEdgesArrayAccess,gt=Nt.length,Kt=0;Kt<gt;Kt++)Xt=Nt[Kt].fromVertex,ht+=1,Xt.component!==1?b+=1:ct=!0;for(Nt=nt.destinationEdgesArrayAccess,gt=Nt.length,Kt=0;Kt<gt;Kt++)Xt=Nt[Kt],ce=Xt.toVertex,--ht,ce.component!==1&&(--b,ce=nt.layer-ce.layer,Xt=a.linkMinLength(Xt),E=Math.min(E,ce-Xt));(ot===null||ht>z)&&!ct&&(ot=nt,z=ht)}if(0>b){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer-=E);y.component=0}else ot.component=0}}}function iw(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}Xs.prototype.initializeIndices=function(){switch(this.Qk){default:case ly: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 Zm: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&&rw(this,x);break;case ay: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&&ow(this,x)}};function rw(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],z=y[b+1];E.portFromColOffset>z.portFromColOffset&&(x=!0,y[b]=z,y[b+1]=E)}}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.toVertex,b.index===-1&&rw(a,b))}function ow(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],z=y[x+1];E.portToColOffset>z.portToColOffset&&(b=!0,y[x]=z,y[x+1]=E)}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.fromVertex,b.index===-1&&ow(a,b))}Xs.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=cc(this),x,b;for(x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)zm(this,b,1),kd(this,b,1);var E=this.countCrossings();for(E<a&&(a=E,y=cc(this)),b=this.Ia;0<=b;b--)zm(this,b,-1),kd(this,b,-1);E=this.countCrossings(),E<a&&(a=E,y=cc(this))}for(vd(this,y),x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)zm(this,b,0),kd(this,b,0);for(E=this.countCrossings(),E<a&&(a=E,y=cc(this)),b=this.Ia;0<=b;b--)zm(this,b,0),kd(this,b,0);E=this.countCrossings(),E<a&&(a=E,y=cc(this))}vd(this,y);var z,nt,ot;switch(this.rk){case uy:break;case hy:for(ot=a+1;(b=this.countCrossings())<ot;)for(ot=b,x=this.Ia;0<=x;x--)for(nt=0;nt<=x;nt++){for(z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=kd(this,b,-1)||z;for(E=this.countCrossings(),E>=a?vd(this,y):(a=E,y=cc(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=kd(this,b,1)||z;for(E=this.countCrossings(),E>=a?vd(this,y):(a=E,y=cc(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=kd(this,b,1)||z;for(E>=a?vd(this,y):(a=E,y=cc(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=kd(this,b,-1)||z;for(E>=a?vd(this,y):(a=E,y=cc(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=kd(this,b,0)||z;for(E>=a?vd(this,y):(a=E,y=cc(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=kd(this,b,0)||z;E>=a?vd(this,y):(a=E,y=cc(this))}break;default:case Ym:for(x=this.Ia,nt=0,ot=a+1;(b=this.countCrossings())<ot;){for(ot=b,z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=kd(this,b,-1)||z;for(E=this.countCrossings(),E>=a?vd(this,y):(a=E,y=cc(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=kd(this,b,1)||z;for(E=this.countCrossings(),E>=a?vd(this,y):(a=E,y=cc(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=kd(this,b,1)||z;for(E>=a?vd(this,y):(a=E,y=cc(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=kd(this,b,-1)||z;for(E>=a?vd(this,y):(a=E,y=cc(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=kd(this,b,0)||z;for(E>=a?vd(this,y):(a=E,y=cc(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=kd(this,b,0)||z;E>=a?vd(this,y):(a=E,y=cc(this))}}vd(this,y)};function zm(a,y,x){var b=hg(a,y),E=a.tc[y],z=$1(a,y,x),nt=ty(a,y,x);for(x=0;x<E;x++)nt[x]===-1&&(nt[x]=b[x].column),z[x]===-1&&(z[x]=b[x].column);for(var ot=!0,at;ot;)for(ot=!1,x=0;x<E-1;x++)(z[x+1]<z[x]||z[x+1]===z[x]&&nt[x+1]<nt[x])&&(ot=!0,at=z[x],z[x]=z[x+1],z[x+1]=at,at=nt[x],nt[x]=nt[x+1],nt[x+1]=at,at=b[x],b[x]=b[x+1],b[x+1]=at);for(x=z=0;x<E;x++)at=b[x],at.index=x,z+=a.nodeMinColumnSpace(at,!0),at.column=z,z+=1,z+=a.nodeMinColumnSpace(at,!1);cg(a,y,b)}function kd(a,y,x){var b=hg(a,y),E=a.tc[y];x=Y1(a,y,x);var z,nt=[];for(z=0;z<E;z++)nt[z]=-1;var ot=[];for(z=0;z<E;z++)ot[z]=-1;for(var at=!1,ht=!0;ht;)for(ht=!1,z=0;z<E-1;z++){var ct=x[b[z].index*E+b[z+1].index],gt=x[b[z+1].index*E+b[z].index],Nt=0,Kt=0,Xt=b[z].column,ce=b[z+1].column,Ke=a.nodeMinColumnSpace(b[z],!0),Te=a.nodeMinColumnSpace(b[z],!1),$e=a.nodeMinColumnSpace(b[z+1],!0),rn=a.nodeMinColumnSpace(b[z+1],!1);Ke=Xt-Ke+$e,Te=ce-Te+rn;var ln=b[z].sourceEdges.iterator;for(ln.reset();ln.next();)if($e=ln.value,rn=$e.fromVertex,$e.valid&&rn.layer===y){for($e=0;b[$e]!==rn;)$e++;$e<z&&(Nt+=2*(z-$e),Kt+=2*(z+1-$e)),$e===z+1&&(Nt+=1),$e>z+1&&(Nt+=4*($e-z),Kt+=4*($e-(z+1)))}for(ln=b[z].destinationEdges.iterator,ln.reset();ln.next();)if($e=ln.value,rn=$e.toVertex,$e.valid&&rn.layer===y){for($e=0;b[$e]!==rn;)$e++;$e===z+1&&(Kt+=1)}for(ln=b[z+1].sourceEdges.iterator,ln.reset();ln.next();)if($e=ln.value,rn=$e.fromVertex,$e.valid&&rn.layer===y){for($e=0;b[$e]!==rn;)$e++;$e<z&&(Nt+=2*(z+1-$e),Kt+=2*(z-$e)),$e===z&&(Kt+=1),$e>z+1&&(Nt+=4*($e-(z+1)),Kt+=4*($e-z))}for(ln=b[z+1].destinationEdges.iterator,ln.reset();ln.next();)if($e=ln.value,rn=$e.toVertex,$e.valid&&rn.layer===y){for($e=0;b[$e]!==rn;)$e++;$e===z&&(Nt+=1)}$e=rn=0,ln=nt[b[z].index];var Bn=ot[b[z].index],Gn=nt[b[z+1].index],lr=ot[b[z+1].index];ln!==-1&&(rn+=Math.abs(ln-Xt),$e+=Math.abs(ln-Te)),Bn!==-1&&(rn+=Math.abs(Bn-Xt),$e+=Math.abs(Bn-Te)),Gn!==-1&&(rn+=Math.abs(Gn-ce),$e+=Math.abs(Gn-Ke)),lr!==-1&&(rn+=Math.abs(lr-ce),$e+=Math.abs(lr-Ke)),(Kt<Nt-.5||Kt===Nt&><ct-.5||Kt===Nt&>===ct&&$e<rn-.5)&&(ht=at=!0,b[z].column=Te,b[z+1].column=Ke,ct=b[z],b[z]=b[z+1],b[z+1]=ct)}for(z=0;z<E;z++)b[z].index=z;return cg(a,y,b),at}Xs.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&t2)!==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 z=E.value;y=z.layer,b=z.column,z=this.nodeMinColumnSpace(z,!1),x[y]=Math.max(x[y],b+z)}for(E.reset();E.next();)z=E.value,y=z.layer,b=z.column,z.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=Yp(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Yp(this,y,-1)||x;x=Yp(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)iy(this,y,1);for(y=this.Md-1;0<=y;y--)iy(this,y,-1);iy(this,this.Md,0)}if(a&&(sw(this,-1),sw(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Yp(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Yp(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Yp(this,y,0)||x}}else $w(this)};function Yp(a,y,x){for(var b=!1;Vw(a,y,x);)b=!0;return b}function Vw(a,y,x){var b,E=hg(a,y),z=a.tc[y],nt=ty(a,y,-1);if(0<x)for(b=0;b<z;b++)nt[b]=-1;var ot=ty(a,y,1);if(0>x)for(b=0;b<z;b++)ot[b]=-1;for(var at=!1,ht=!0;ht;)for(ht=!1,b=0;b<z;b++){var ct=E[b].column,gt=a.nodeMinColumnSpace(E[b],!0),Nt=a.nodeMinColumnSpace(E[b],!1),Kt=0;0>b-1||ct-E[b-1].column-1>gt+a.nodeMinColumnSpace(E[b-1],!1)?Kt=ct-1:Kt=ct,gt=b+1>=z||E[b+1].column-ct-1>Nt+a.nodeMinColumnSpace(E[b+1],!0)?ct+1:ct;var Xt=Nt=0,ce=0;if(0>=x)for(var Ke=E[b].sourceEdges.iterator;Ke.next();){var Te=Ke.value,$e=Te.fromVertex;if(Te.valid&&$e.layer!==y){var rn=qv(Te),ln=Te.portFromColOffset;Te=Te.portToColOffset,$e=$e.column,Nt+=(Math.abs(ct+Te-($e+ln))+1)*rn,Xt+=(Math.abs(Kt+Te-($e+ln))+1)*rn,ce+=(Math.abs(gt+Te-($e+ln))+1)*rn}}if(0<=x)for(Ke=E[b].destinationEdges.iterator;Ke.next();)Te=Ke.value,$e=Te.toVertex,Te.valid&&$e.layer!==y&&(rn=qv(Te),ln=Te.portFromColOffset,Te=Te.portToColOffset,$e=$e.column,Nt+=(Math.abs(ct+ln-($e+Te))+1)*rn,Xt+=(Math.abs(Kt+ln-($e+Te))+1)*rn,ce+=(Math.abs(gt+ln-($e+Te))+1)*rn);Te=ln=rn=0,Ke=nt[E[b].index],$e=ot[E[b].index],Ke!==-1&&(rn+=Math.abs(Ke-ct),ln+=Math.abs(Ke-Kt),Te+=Math.abs(Ke-gt)),$e!==-1&&(rn+=Math.abs($e-ct),ln+=Math.abs($e-Kt),Te+=Math.abs($e-gt)),Xt<Nt||Xt===Nt&&ln<rn?(ht=at=!0,E[b].column=Kt):(ce<Nt||ce===Nt&&Te<rn)&&(ht=at=!0,E[b].column=gt)}return cg(a,y,E),a.normalize(),at}function iy(a,y,x){var b=hg(a,y),E=a.tc[y],z=$1(a,y,x),nt=[];for(x=0;x<E;x++)nt[x]=z[x];for(z=!0;z;)for(z=!1,x=0;x<E;x++){var ot=b[x].column,at=a.nodeMinColumnSpace(b[x],!0),ht=a.nodeMinColumnSpace(b[x],!1),ct=0;if(nt[x]===-1)if(x===0&&x===E-1)ct=ot;else if(x===0){var gt=b[x+1].column;gt-ot===ht+a.nodeMinColumnSpace(b[x+1],!0)?ct=ot-1:ct=ot}else x===E-1?(gt=b[x-1].column,ct=ot-gt===at+a.nodeMinColumnSpace(b[x-1],!1)?ot+1:ot):(gt=b[x-1].column,at=gt+a.nodeMinColumnSpace(b[x-1],!1)+at+1,gt=b[x+1].column,ht=gt-a.nodeMinColumnSpace(b[x+1],!0)-ht-1,ct=(at+ht)/2|0);else x===0&&x===E-1?ct=nt[x]:x===0?(gt=b[x+1].column,ht=gt-a.nodeMinColumnSpace(b[x+1],!0)-ht-1,ct=Math.min(nt[x],ht)):x===E-1?(gt=b[x-1].column,at=gt+a.nodeMinColumnSpace(b[x-1],!1)+at+1,ct=Math.max(nt[x],at)):(gt=b[x-1].column,at=gt+a.nodeMinColumnSpace(b[x-1],!1)+at+1,gt=b[x+1].column,ht=gt-a.nodeMinColumnSpace(b[x+1],!0)-ht-1,at<nt[x]&&nt[x]<ht?ct=nt[x]:at>=nt[x]?ct=at:ht<=nt[x]&&(ct=ht));ct!==ot&&(z=!0,b[x].column=ct)}cg(a,y,b),a.normalize()}function Zw(a,y){for(var x=!0,b=a.network.vertexes.iterator;b.next();){var E=b.value,z=a.nodeMinColumnSpace(E,!0),nt=a.nodeMinColumnSpace(E,!1);if(E.column-z<=y&&E.column+nt>=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 Yw(a,y){var x=y+1,b,E=[],z=[];for(b=0;b<=a.Ia;b++)E[b]=!1,z[b]=!1;for(var nt=a.network.vertexes.iterator;nt.next();){b=nt.value;var ot=b.column-a.nodeMinColumnSpace(b,!0),at=b.column+a.nodeMinColumnSpace(b,!1);ot<=y&&at>=y&&(E[b.layer]=!0),ot<=x&&at>=x&&(z[b.layer]=!0)}for(ot=!0,x=!1,b=0;b<=a.Ia;b++)ot=ot&&!(E[b]&&z[b]);if(ot)for(nt.reset();nt.next();)a=nt.value,a.column>y&&(--a.column,x=!0);return x}function sw(a,y){for(var x=0;x<=a.Ra;x++)for(;Zw(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;Yw(a,x););a.normalize();var b;if(0<y)for(x=0;x<=a.Ra;x++){var E=cc(a),z=Qm(a);for(b=z+1;z<b;){b=z,aw(a,x,1);var nt=Qm(a);nt>z?vd(a,E):nt<z&&(z=nt,E=cc(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(E=cc(a),z=Qm(a),b=z+1;z<b;)b=z,aw(a,x,-1),nt=Qm(a),nt>z?vd(a,E):nt<z&&(z=nt,E=cc(a));a.normalize()}function aw(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&&(ey(a,y,a.le,-1,!0,!0),a.le++);var z;for(y=[],z=0;z<a.le*a.le;z++)y[z]=!1;for(E=[],z=0;z<(a.Ia+1)*(a.Ra+1);z++)E[z]=-1;for(b.reset();b.next();){z=b.value;for(var nt=z.layer,ot=Math.max(0,z.column-a.nodeMinColumnSpace(z,!0)),at=Math.min(a.Ra,z.column+a.nodeMinColumnSpace(z,!1));ot<=at;ot++)E[nt*(a.Ra+1)+ot]=z.component}for(z=0;z<=a.Ia;z++){if(0<x)for(nt=0;nt<a.Ra;nt++)E[z*(a.Ra+1)+nt]!==-1&&E[z*(a.Ra+1)+nt+1]!==-1&&E[z*(a.Ra+1)+nt]!==E[z*(a.Ra+1)+nt+1]&&(y[E[z*(a.Ra+1)+nt]*a.le+E[z*(a.Ra+1)+nt+1]]=!0);if(0>x)for(nt=a.Ra;0<nt;nt--)E[z*(a.Ra+1)+nt]!==-1&&E[z*(a.Ra+1)+nt-1]!==-1&&E[z*(a.Ra+1)+nt]!==E[z*(a.Ra+1)+nt-1]&&(y[E[z*(a.Ra+1)+nt]*a.le+E[z*(a.Ra+1)+nt-1]]=!0)}for(E=[],z=0;z<a.le;z++)E[z]=!0;for(nt=[],nt.push(0);nt.length!==0;)if(at=nt[nt.length-1],nt.pop(),E[at])for(E[at]=!1,z=0;z<a.le;z++)y[at*a.le+z]&&nt.splice(0,0,z);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 $w(a){for(var y=yi(),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 bi,Xw(y,x);var z=null,nt=null,ot=null,at=null,ht=(a.ve&1)!==0,ct=(a.ve&2)!==0,gt=(a.ve&4)!==0,Nt=(a.ve&8)!==0;for(ht&&(a.verticalAlignment(y,x,!0),z=Km(a,y,!0,!1)),y.reverse(),gt&&(a.verticalAlignment(y,x,!1),ot=Km(a,y,!1,!1)),b=Ss(y),E=b.next();!E.done;E=b.next())E.value.reverse();Nt&&(a.verticalAlignment(y,x,!1),at=Km(a,y,!1,!0)),y.reverse(),ct&&(a.verticalAlignment(y,x,!0),nt=Km(a,y,!0,!0)),nr(y),a.u(z,nt,ot,at),a.network.vertexes.each(function(Kt){var Xt=yi();ht&&Xt.push(z.get(Kt)),ct&&Xt.push(nt.get(Kt)),gt&&Xt.push(ot.get(Kt)),Nt&&Xt.push(at.get(Kt)),Xt.sort(function(Ke,Te){return Ke-Te});var ce=Xt.length;ce=(Xt[Math.floor((ce-1)/2)]+Xt[Math.ceil((ce-1)/2)])/2,nr(Xt),Kt.zc=ce})}function Xw(a,y){for(var x=a.length,b=1;b<x-1;b++)for(var E=0,z=0,nt=a[b],ot=a[b+1],at=0;z<ot.length;at++){var ht=ot[at];t:{if(ht.node===null){var ct=cy(ht);if(0<ct.length){ct=ct[0].node===null;break t}}ct=!1}var gt=ct;if(at===ot.length-1||gt){for(ct=nt.length-1,gt&&(ct=cy(ht)[0].index);z<=at;){if(ht=ot[z],!ht.bo){gt=[];for(var Nt=Ss(ht.sourceEdgesArrayAccess),Kt=Nt.next();!Kt.done;Kt=Nt.next())Kt=Kt.value,Kt.valid&>.push(Kt);ht.bo=gt}for(ht=Ss(ht.bo),gt=ht.next();!gt.done;gt=ht.next())gt=gt.value,Nt=gt.fromVertex.index,(Nt<E||Nt>ct)&&y.add(gt);z++}E=ct}}}Xs.prototype.verticalAlignment=function(a,y,x){Jw(a),a=Ss(a);for(var b=a.next();!b.done;b=a.next()){var E=-1;b=Ss(b.value);for(var z=b.next();!z.done;z=b.next()){z=z.value;var nt=x?cy(z):e2(z),ot=nt.length;if(0<ot){nt.sort(function(gt,Nt){return gt.vi-Nt.vi});var at=(ot-1)/2;for(ot=Math.floor(at),at=Math.ceil(at);ot<=at;ot++)if(z.align===z){var ht=nt[ot],ct=void 0;ct=x?$m(ht,z):$m(z,ht),!y.contains(ct)&&E<ht.vi&&(ht.align=z,z.root=ht.root,z.align=ht.root,E=ht.vi)}}}}};function Jw(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 Km(a,y,x,b){for(var E=a.K===90||a.K===270,z=Ss(y),nt=z.next();!nt.done;nt=z.next()){var ot=Ss(nt.value);for(nt=ot.next();!nt.done;nt=ot.next())nt=nt.value,nt.sd=nt,nt.shift=1/0,nt.zc=NaN,nt.qg=0}for(nt=a.K===90||a.K===270,z=Ss(y),ot=z.next();!ot.done;ot=z.next()){ot=Ss(ot.value);for(var at=ot.next();!at.done;at=ot.next())if(at=at.value,at.root===at){for(var ht=0,ct=at;ct.align!==at;){var gt=ct.align,Nt=nt?ct.width:ct.height,Kt=nt?gt.width:gt.height;if(x){var Xt=$m(ct,gt),ce=Xt.portFromPos,Ke=Xt.portToPos;Xt.link!==null&&(ct.node&&ct.node!==Xt.link.fromNode&&(ce=nt?ct.focusX:ct.focusY),gt.node&>.node!==Xt.link.toNode&&(Ke=nt?gt.focusX:gt.focusY))}else Xt=$m(gt,ct),ce=Xt.portToPos,Ke=Xt.portFromPos,Xt.link!==null&&(ct.node&&ct.node!==Xt.link.toNode&&(ce=nt?ct.focusX:ct.focusY),gt.node&>.node!==Xt.link.fromNode&&(Ke=nt?gt.focusX:gt.focusY));Nt=b?ct.qg+(Nt-ce)-(Kt-Ke):ct.qg+ce-Ke,gt.qg=Nt,ht=Math.min(ht,Nt),ct=ct.align}ct=at;do ct.qg=ct.qg-ht,ct=ct.align;while(ct!==at)}}for(x=Ss(y),nt=x.next();!nt.done;nt=x.next())for(z=Ss(nt.value),nt=z.next();!nt.done;nt=z.next())nt=nt.value,nt.root===nt&&lw(a,nt,y);for(x=0;x<y.length;x++)if(!(0>=y[x].length)&&(nt=y[x][0],nt.sd===nt)){nt.sd.shift===1/0&&(nt.sd.shift=0),nt=x,ot=0;do{for(z=y[nt][ot];z.align!==z.root;)z=z.align,nt++,0<z.vi&&(ot=uw(z,y),ot.sd.shift=Math.min(ot.sd.shift,z.sd.shift+z.zc+z.qg-(ot.zc+ot.qg+(E?ot.width:ot.height)+a.columnSpacing)));ot=z.vi+1}while(nt<y.length&&ot<y[nt].length&&z.sd===y[nt][ot].sd)}for(a=new Cr,y=Ss(y),nt=y.next();!nt.done;nt=y.next())for(x=Ss(nt.value),nt=x.next();!nt.done;nt=x.next())nt=nt.value,nt.zc=nt.zc+nt.sd.shift+nt.qg,z=E?nt.width:nt.height,a.add(nt,b?-nt.zc-z:nt.zc);return a}function lw(a,y,x){if(isNaN(y.zc)){y.zc=0;var b=y;do{if(0<b.vi){var E=uw(b,x),z=E.root;lw(a,z,x),y.sd===y&&(y.sd=z.sd);var nt=a.K===90||a.K===270?E.width:E.height;y.sd===z.sd&&(y.zc=Math.max(y.zc,z.zc+E.qg+nt-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 uw(a,y){var x=a.Tz;return a=a.vi,1>a&&sn("Could not determine previous vertex in layer"),y[x][a-1]}Xs.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var b=yi(),E=yi(),z=1/0,nt=0;4>nt;nt++)if(y[nt]){var ot=qw(this,y[nt],b,E,nt);ot<z&&(x=nt,z=ot)}for(z={},nt=0;4>nt;z={delta:z.delta},nt++)y[nt]&&(z.delta=nt===0||nt===2?b[x]-b[nt]:E[x]-E[nt],z.delta!==0&&y[nt].each(function(at){return function(ht){ht.value+=at.delta}}(z)));nr(b),nr(E)};function qw(a,y,x,b,E){if(!y||y.count===0)return x[E]=0,b[E]=0,1/0;var z=1/0,nt=-1/0;return y.each(function(ot){var at=ot.key;ot=ot.value,at=a.K===90||a.K===270?at.width:at.height,ot<z&&(z=ot),ot+at>nt&&(nt=ot+at)}),x[E]=z,b[E]=nt,nt-z}Xs.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=Gm(this,!0),y=Gm(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 Gm(a,y){return a.K===270?y?Wa:Dl:a.K===90?y?Dl:Wa:a.K===180?y?Aa:nl:y?nl:Aa}Xs.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 z=1/0,nt=E=1/0,ot=-1/0;a.next();){var at=a.value,ht=at.layer,ct=at.column|0;b?(nt=y.x+this.kc*ct,ht=this.Kd[ht]):(nt=this.Kd[ht],ht=y.y+this.kc*ct),at.centerX=nt,at.centerY=ht,x&&isFinite(at.zc)&&(b?at.node?at.x=y.x+at.zc:at.centerX=y.x+at.zc:at.node?at.y=y.y+at.zc:at.centerY=y.y+at.zc),z=Math.min(at.x,z),E=Math.min(at.y,E),b?(nt=z,ot=Math.max(ot,at.bounds.right)):(nt=E,ot=Math.max(ot,at.bounds.bottom))}for(this.xw=ot-nt,z=y.x-z,y=y.y-E,this.Rf=new ke(x&&b?0:z,x&&!b?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},Xs.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 ai(0,0,x,Math.abs(this.Ta[0]))):y.push(new ai(0,this.Ta[b-1],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===90?b===0?y.push(new ai(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new ai(0,this.Ta[b],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===180?b===0?y.push(new ai(0,0,Math.abs(this.Ta[0]),x)):y.push(new ai(this.Ta[b-1],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x)):b===0?y.push(new ai(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new ai(this.Ta[b],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x));this.commitLayers(y,this.Rf)},Xs.prototype.commitLayers=function(){},Xs.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,z=b.toNode,nt=b.fromPort,ot=b.toPort;if(E!==null){var at=E.findVisibleNode();at!==null&&at!==E&&(E=at,nt=at.port)}z!==null&&(at=z.findVisibleNode(),at!==null&&at!==z&&(z=at,ot=at.port));var ht=y.computeSpot(!0,nt);at=y.computeSpot(!1,ot);var ct=x.fromVertex,gt=x.toVertex;if(x.valid)y.curve===nd&&y.pointsCount===4&&(ct.column===gt.column&&this.alignOption===0?(x=y.getLinkPoint(E,nt,ht,!0,!1,z,ot),ot=y.getLinkPoint(z,ot,at,!1,!1,E,nt),x.w()||x.set(E.actualBounds.center),ot.w()||ot.set(z.actualBounds.center),y.Fj(),y.yf(x.x,x.y),y.yf((2*x.x+ot.x)/3,(2*x.y+ot.y)/3),y.yf((x.x+2*ot.x)/3,(x.y+2*ot.y)/3),y.yf(ot.x,ot.y)):(x=b=!1,nt!==null&&ht===Ma&&(b=!0),ot!==null&&at===Ma&&(x=!0),(b||x)&&(at=null,b&&(at=y.getLinkPointFromPoint(E,nt,nt.ga(Yo),y.i(3),!0),at.w()||at.set(E.actualBounds.center),y.L(0,at.x,at.y)),E=null,x&&(E=y.getLinkPointFromPoint(z,ot,ot.ga(Yo),y.i(0),!1),E.w()||E.set(z.actualBounds.center),y.L(3,E.x,E.y)),at&&(z=y.i(2),y.L(1,(2*at.x+z.x)/3,(2*at.y+z.y)/3)),E&&(z=y.i(1),y.L(2,(2*E.x+z.x)/3,(2*E.y+z.y)/3))))),y.zf();else if(ct.layer===gt.layer)y.zf();else{var Nt=!1,Kt=!1,Xt=this.ie,ce=y.firstPickIndex+1;if(y.isOrthogonal){Kt=!0;var Ke=y.pointsCount;4<Ke&&y.points.removeRange(2,Ke-3)}else if(y.curve===nd)Nt=!0,Ke=y.pointsCount,4<Ke&&y.points.removeRange(2,Ke-3),Ke===4&&(ce=2);else{Ke=y.pointsCount;var Te=ht===Ma,$e=at===Ma;2<Ke&&Te&&$e?y.points.removeRange(1,Ke-2):3<Ke&&Te&&!$e?y.points.removeRange(1,Ke-3):3<Ke&&!Te&&$e?y.points.removeRange(2,Ke-2):4<Ke&&!Te&&!$e&&y.points.removeRange(2,Ke-3)}if(x.rev){for(;gt!==null&&ct!==gt;){var rn=Ke=null;for(Te=gt.sourceEdges.iterator;Te.next()&&($e=Te.value,$e.link!==x.link||(Ke=$e.fromVertex,rn=$e.toVertex,Ke.node!==null)););if(Ke===null)break;if(Ke!==ct){Te=y.i(ce-1).x,$e=y.i(ce-1).y;var ln=Ke.centerX,Bn=Ke.centerY;if(Kt)this.K===180||this.K===0?ce===y.firstPickIndex+1?(y.m(ce++,Te,$e),y.m(ce++,Te,Bn)):(rn!==null?rn.centerY:$e)!==Bn&&(rn=this.Ta[Ke.layer-1]+this.Rf.x,y.m(ce++,rn,$e),y.m(ce++,rn,Bn)):ce===y.firstPickIndex+1?(y.m(ce++,Te,$e),y.m(ce++,ln,$e)):(rn!==null?rn.centerX:Te)!==ln&&(rn=this.Ta[Ke.layer-1]+this.Rf.y,y.m(ce++,Te,rn),y.m(ce++,ln,rn));else if(ce===y.firstPickIndex+1){rn=Math.max(10,this.he[gt.layer]);var Gn=Math.max(10,this.Ld[gt.layer]);if(Nt)this.K===180?ln<=gt.bounds.x?(gt=gt.bounds.x,y.m(ce++,gt-rn,Bn),y.m(ce++,gt,Bn),y.m(ce++,gt+Gn,Bn)):(y.m(ce++,ln-rn,Bn),y.m(ce++,ln,Bn),y.m(ce++,ln+Gn,Bn)):this.K===90?Bn>=gt.bounds.bottom?(gt=gt.bounds.y+gt.bounds.height,y.m(ce++,ln,gt+Gn),y.m(ce++,ln,gt),y.m(ce++,ln,gt-rn)):(y.m(ce++,ln,Bn+Gn),y.m(ce++,ln,Bn),y.m(ce++,ln,Bn-rn)):this.K===270?Bn<=gt.bounds.y?(gt=gt.bounds.y,y.m(ce++,ln,gt-rn),y.m(ce++,ln,gt),y.m(ce++,ln,gt+Gn)):(y.m(ce++,ln,Bn-rn),y.m(ce++,ln,Bn),y.m(ce++,ln,Bn+Gn)):this.K===0&&(ln>=gt.bounds.right?(gt=gt.bounds.x+gt.bounds.width,y.m(ce++,gt+Gn,Bn),y.m(ce++,gt,Bn),y.m(ce++,gt-rn,Bn)):(y.m(ce++,ln+Gn,Bn),y.m(ce++,ln,Bn),y.m(ce++,ln-rn,Bn)));else{y.m(ce++,Te,$e);var lr=0;this.K===180||this.K===0?((this.K===180?ln>=gt.bounds.right:ln<=gt.bounds.x)&&(lr=(this.K===0?-rn:Gn)/2),y.m(ce++,Te+lr,Bn)):((this.K===270?Bn>=gt.bounds.bottom:Bn<=gt.bounds.y)&&(lr=(this.K===90?-rn:Gn)/2),y.m(ce++,ln,$e+lr)),y.m(ce++,ln,Bn)}}else rn=Math.max(10,this.he[Ke.layer]),Gn=Math.max(10,this.Ld[Ke.layer]),Nt?this.K===180?(y.m(ce++,ln-rn-Xt,Bn),y.m(ce++,Math.min(ln-rn+Xt/2,ln),Bn),y.m(ce++,ln,Bn),y.m(ce++,ln,Bn),y.m(ce++,Math.max(ln+Gn-Xt/2,ln),Bn),y.m(ce++,ln+Gn+Xt,Bn)):this.K===90?(y.m(ce++,ln,Bn+Gn+Xt),y.m(ce++,ln,Math.max(Bn+Gn-Xt/2,Bn)),y.m(ce++,ln,Bn),y.m(ce++,ln,Bn),y.m(ce++,ln,Math.min(Bn-rn+Xt/2,Bn)),y.m(ce++,ln,Bn-rn-Xt)):this.K===270?(y.m(ce++,ln,Bn-rn-Xt),y.m(ce++,ln,Math.min(Bn-rn+Xt/2,Bn)),y.m(ce++,ln,Bn),y.m(ce++,ln,Bn),y.m(ce++,ln,Math.max(Bn+Gn-Xt/2,Bn)),y.m(ce++,ln,Bn+Gn+Xt)):(y.m(ce++,ln+Gn+Xt,Bn),y.m(ce++,Math.max(ln+Gn-Xt/2,ln),Bn),y.m(ce++,ln,Bn),y.m(ce++,ln,Bn),y.m(ce++,Math.min(ln-rn+Xt/2,ln),Bn),y.m(ce++,ln-rn-Xt,Bn)):y.m(ce++,ln,Bn)}gt=Ke}(ot===null||ht!==Ma||Kt)&&(Te=y.i(ce-1).x,$e=y.i(ce-1).y,ln=y.i(ce).x,Bn=y.i(ce).y,Kt?(Xt=this.Ld[ct.layer],this.K===180||this.K===0?(Kt=$e,Kt>=ct.bounds.y&&Kt<=ct.bounds.bottom&&(this.K===180?ln>=ct.bounds.x:ln<=ct.bounds.right)&&(gt=ct.centerX+(this.K===180?-Xt:Xt),Kt<ct.bounds.y+ct.bounds.height/2?Kt=ct.bounds.y-this.kc/2:Kt=ct.bounds.bottom+this.kc/2,y.m(ce++,gt,$e),y.m(ce++,gt,Kt)),y.m(ce++,ln,Kt)):(Kt=Te,Kt>=ct.bounds.x&&Kt<=ct.bounds.right&&(this.K===270?Bn>=ct.bounds.y:Bn<=ct.bounds.bottom)&&(gt=ct.centerY+(this.K===270?-Xt:Xt),Kt<ct.bounds.x+ct.bounds.width/2?Kt=ct.bounds.x-this.kc/2:Kt=ct.bounds.right+this.kc/2,y.m(ce++,Te,gt),y.m(ce++,Kt,gt)),y.m(ce++,Kt,Bn)),y.m(ce++,ln,Bn)):Nt?(rn=Math.max(10,this.he[ct.layer]),Gn=Math.max(10,this.Ld[ct.layer]),this.K===180&&ln>=ct.bounds.x?(gt=ct.bounds.x+ct.bounds.width,y.L(ce-2,gt,$e),y.L(ce-1,gt+Gn,$e)):this.K===90&&Bn<=ct.bounds.bottom?(gt=ct.bounds.y,y.L(ce-2,Te,gt),y.L(ce-1,Te,gt-rn)):this.K===270&&Bn>=ct.bounds.y?(gt=ct.bounds.y+ct.bounds.height,y.L(ce-2,Te,gt),y.L(ce-1,Te,gt+Gn)):this.K===0&&ln<=ct.bounds.right&&(gt=ct.bounds.x,y.L(ce-2,gt,$e),y.L(ce-1,gt-rn,$e))):(rn=Math.max(10,this.he[ct.layer]),Gn=Math.max(10,this.Ld[ct.layer]),Kt=0,this.K===180||this.K===0?((this.K===180?ln<=ct.bounds.x:ln>=ct.bounds.right)&&(Kt=(this.K===0?Gn:-rn)/2),y.m(ce++,ln+Kt,$e)):((this.K===270?Bn<=ct.bounds.y:Bn>=ct.bounds.bottom)&&(Kt=(this.K===90?Gn:-rn)/2),y.m(ce++,Te,Bn+Kt)),y.m(ce++,ln,Bn)))}else{for(;ct!==null&&ct!==gt;){for(rn=Ke=null,ct=ct.destinationEdges.iterator;ct.next()&&(Te=ct.value,Te.link!==x.link||(Ke=Te.toVertex,rn=Te.fromVertex,rn.node!==null&&(rn=null),Ke.node!==null)););if(Ke===null)break;Ke!==gt&&(Te=y.i(ce-1).x,$e=y.i(ce-1).y,ln=Ke.centerX,Bn=Ke.centerY,Kt?this.K===180||this.K===0?(rn!==null?rn.centerY:$e)!==Bn&&(rn=this.Ta[Ke.layer]+this.Rf.x,ce===y.firstPickIndex+1&&(rn=this.K===0?Math.max(rn,Te):Math.min(rn,Te)),y.m(ce++,rn,$e),y.m(ce++,rn,Bn)):(rn!==null?rn.centerX:Te)!==ln&&(rn=this.Ta[Ke.layer]+this.Rf.y,ce===y.firstPickIndex+1&&(rn=this.K===90?Math.max(rn,$e):Math.min(rn,$e)),y.m(ce++,Te,rn),y.m(ce++,ln,rn)):(rn=Math.max(10,this.he[Ke.layer]),Gn=Math.max(10,this.Ld[Ke.layer]),Nt?this.K===180?(y.m(ce++,ln+Gn+Xt,Bn),y.m(ce++,Math.max(ln+Gn-Xt/2,ln),Bn),y.m(ce++,ln,Bn),y.m(ce++,ln,Bn),y.m(ce++,Math.min(ln-rn+Xt/2,ln),Bn),y.m(ce++,ln-rn-Xt,Bn)):this.K===90?(y.m(ce++,ln,Bn-rn-Xt),y.m(ce++,ln,Math.min(Bn-rn+Xt/2,Bn)),y.m(ce++,ln,Bn),y.m(ce++,ln,Bn),y.m(ce++,ln,Math.max(Bn+Gn-Xt/2,Bn)),y.m(ce++,ln,Bn+Gn+Xt)):this.K===270?(y.m(ce++,ln,Bn+Gn+Xt),y.m(ce++,ln,Math.max(Bn+Gn-Xt/2,Bn)),y.m(ce++,ln,Bn),y.m(ce++,ln,Bn),y.m(ce++,ln,Math.min(Bn-rn+Xt/2,Bn)),y.m(ce++,ln,Bn-rn-Xt)):(y.m(ce++,ln-rn-Xt,Bn),y.m(ce++,Math.min(ln-rn+Xt/2,ln),Bn),y.m(ce++,ln,Bn),y.m(ce++,ln,Bn),y.m(ce++,Math.max(ln+Gn-Xt/2,ln),Bn),y.m(ce++,ln+Gn+Xt,Bn)):this.K===180?(y.m(ce++,ln+Gn,Bn),y.m(ce++,ln-rn,Bn)):this.K===90?(y.m(ce++,ln,Bn-rn),y.m(ce++,ln,Bn+Gn)):this.K===270?(y.m(ce++,ln,Bn+Gn),y.m(ce++,ln,Bn-rn)):(y.m(ce++,ln-rn,Bn),y.m(ce++,ln+Gn,Bn)))),ct=Ke}Kt&&(Te=y.i(ce-1).x,$e=y.i(ce-1).y,ln=y.i(ce).x,Bn=y.i(ce).y,this.K===180||this.K===0?$e!==Bn&&(rn=this.K===0?Math.min(Math.max((ln+Te)/2,this.Ta[gt.layer]+this.Rf.x),ln):Math.max(Math.min((ln+Te)/2,this.Ta[gt.layer]+this.Rf.x),ln),y.m(ce++,rn,$e),y.m(ce++,rn,Bn)):Te!==ln&&(rn=this.K===90?Math.min(Math.max((Bn+$e)/2,this.Ta[gt.layer]+this.Rf.y),Bn):Math.max(Math.min((Bn+$e)/2,this.Ta[gt.layer]+this.Rf.y),Bn),y.m(ce++,Te,rn),y.m(ce++,ln,rn)))}b!==null&&Nt&&4<=y.pointsCount&&(nt!==null&&(nt=ht===Ma?y.getLinkPointFromPoint(E,nt,nt.ga(Yo),y.i(3),!0):y.i(0),ht===Ma&&(ht=y.i(2),b=y.i(3),this.direction===90||this.direction===270?(y.L(1,(nt.x+ht.x)/2,ht.y),y.L(2,b.x,(ht.y+b.y)/2)):(y.L(1,ht.x,(nt.y+ht.y)/2),y.L(2,(ht.x+b.x)/2,b.y))),nt.w()||nt.set(E.actualBounds.center),y.L(0,nt.x,nt.y)),ot!==null&&(E=at===Ma?y.getLinkPointFromPoint(z,ot,ot.ga(Yo),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),at===Ma&&(ot=y.i(y.pointsCount-3),at=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(E.x+ot.x)/2,ot.y),y.L(y.pointsCount-2,at.x,(ot.y+at.y)/2)):(y.L(y.pointsCount-2,ot.x,(E.y+ot.y)/2),y.L(y.pointsCount-3,(ot.x+at.x)/2,at.y))),E.w()||E.set(z.actualBounds.center),y.L(y.pointsCount-1,E.x,E.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},Xs.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new Ci,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 z=b.i(E),nt=b.i(E+1);if(this.B(z.y,nt.y)&&!this.B(z.x,nt.x)){var ot=new dg;ot.layer=Math.floor(z.y/2);var at=b.i(0),ht=b.i(b.pointsCount-1);if(ot.first=at.x*at.x+at.y,ot.jc=ht.x*ht.x+ht.y,ot.rd=Math.min(z.x,nt.x),ot.Ic=Math.max(z.x,nt.x),ot.index=E,ot.link=b,E+2<b.pointsCount){at=b.i(E-1),ht=b.i(E+2);var ct=0;at.y<z.y?ct=ht.y<z.y?3:z.x<nt.x?2:1:at.y>z.y&&(ct=ht.y>z.y?0:nt.x<z.x?2:1),ot.j=ct}x.push(ot)}}}if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,b=a+1;b<x.length&&x[b].layer===z;)b++;if(1<b-a)for(z=a;z<b;){for(nt=x[z].Ic,E=a+1;E<b&&x[E].rd<nt;)nt=Math.max(nt,x[E].Ic),E++;if(nt=E-z,1<nt){for(this.zi(x,this.Js,z,z+nt),ct=1,ot=x[z].jc,at=z;at<E;at++)ht=x[at],ht.jc!==ot&&(ct++,ot=ht.jc);this.zi(x,this.Ux,z,z+nt);var gt=1;for(ot=x[z].first,at=z;at<E;at++)ht=x[at],ht.first!==ot&&(gt++,ot=ht.first);for(at=!0,ht=gt,ct<gt?(at=!1,ht=ct,ot=x[z].jc,this.zi(x,this.Js,z,z+nt)):ot=x[z].first,ct=0,gt=z;gt<E;gt++){var Nt=x[gt];(at?Nt.first:Nt.jc)!==ot&&(ct++,ot=at?Nt.first:Nt.jc);var Kt=Nt.link;z=Kt.i(Nt.index),nt=Kt.i(Nt.index+1);var Xt=this.linkSpacing*(ct-(ht-1)/2);y++,Kt.uh(),Kt.L(Nt.index,z.x,z.y+Xt),Kt.L(Nt.index+1,nt.x,nt.y+Xt),Kt.zf()}}z=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++)z=b.i(E),nt=b.i(E+1),this.B(z.x,nt.x)&&!this.B(z.y,nt.y)&&(ot=new dg,ot.layer=Math.floor(z.x/2),at=b.i(0),ht=b.i(b.pointsCount-1),ot.first=at.x+at.y*at.y,ot.jc=ht.x+ht.y*ht.y,ot.rd=Math.min(z.y,nt.y),ot.Ic=Math.max(z.y,nt.y),ot.index=E,ot.link=b,E+2<b.pointsCount&&(at=b.i(E-1),ht=b.i(E+2),ct=0,at.x<z.x?ct=ht.x<z.x?3:z.y<nt.y?2:1:at.x>z.x&&(ct=ht.x>z.x?0:nt.y<z.y?2:1),ot.j=ct),x.push(ot));if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,b=a+1;b<x.length&&x[b].layer===z;)b++;if(1<b-a)for(z=a;z<b;){for(nt=x[z].Ic,E=a+1;E<b&&x[E].rd<nt;)nt=Math.max(nt,x[E].Ic),E++;if(nt=E-z,1<nt){for(this.zi(x,this.Js,z,z+nt),ct=1,ot=x[z].jc,at=z;at<E;at++)ht=x[at],ht.jc!==ot&&(ct++,ot=ht.jc);for(this.zi(x,this.Ux,z,z+nt),gt=1,ot=x[z].first,at=z;at<E;at++)ht=x[at],ht.first!==ot&&(gt++,ot=ht.first);for(at=!0,ht=gt,ct<gt?(at=!1,ht=ct,ot=x[z].jc,this.zi(x,this.Js,z,z+nt)):ot=x[z].first,ct=0,gt=z;gt<E;gt++)Nt=x[gt],(at?Nt.first:Nt.jc)!==ot&&(ct++,ot=at?Nt.first:Nt.jc),Kt=Nt.link,z=Kt.i(Nt.index),nt=Kt.i(Nt.index+1),Xt=this.linkSpacing*(ct-(ht-1)/2),y++,Kt.uh(),Kt.L(Nt.index,z.x+Xt,z.y),Kt.L(Nt.index+1,nt.x+Xt,nt.y),Kt.zf()}z=E}a=b}}}},Vt=Xs.prototype,Vt.Vx=function(a,y){return a instanceof dg&&y instanceof dg&&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},Vt.Ux=function(a,y){return a instanceof dg&&y instanceof dg&&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},Vt.Js=function(a,y){return a instanceof dg&&y instanceof dg&&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},Vt.B=function(a,y){return a-=y,-1<a&&1>a},Vt.zi=function(a,y,x,b){var E=a.length,z=b-x;if(!(1>=z))if((0>x||x>=E-1)&&sn("not in range 0 <= from < length: "+x),z===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 hg(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 cg(a,y,x){a.He[a.tc[y]]=x}Re.Object.defineProperties(Xs.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()):sn("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==ry&&a!==Wm&&a!==_0||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==Vm&&a!==oy&&a!==sy||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==Zm&&a!==ay&&a!==ly||(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!==uy&&a!==Ym&&a!==hy||(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 Wm=new ri(Xs,"CycleDepthFirst",0),ry=new ri(Xs,"CycleGreedy",1),_0=new ri(Xs,"CycleFromLayers",2),Vm=new ri(Xs,"LayerOptimalLinkLength",0),oy=new ri(Xs,"LayerLongestPathSink",1),sy=new ri(Xs,"LayerLongestPathSource",2),Zm=new ri(Xs,"InitDepthFirstOut",0),ay=new ri(Xs,"InitDepthFirstIn",1),ly=new ri(Xs,"InitNaive",2),uy=new ri(Xs,"AggressiveNone",0),Ym=new ri(Xs,"AggressiveLess",1),hy=new ri(Xs,"AggressiveMore",2),t2=8;Xs.className="LayeredDigraphLayout",Xs.CycleDepthFirst=Wm,Xs.CycleGreedy=ry,Xs.CycleFromLayers=_0,Xs.LayerOptimalLinkLength=Vm,Xs.LayerLongestPathSink=oy,Xs.LayerLongestPathSource=sy,Xs.InitDepthFirstOut=Zm,Xs.InitDepthFirstIn=ay,Xs.InitNaive=ly,Xs.AggressiveNone=uy,Xs.AggressiveLess=Ym,Xs.AggressiveMore=hy,Xs.PackNone=0,Xs.PackExpand=1,Xs.PackStraighten=2,Xs.PackMedian=4,Xs.PackAll=15,Xs.AlignNone=0,Xs.AlignUpperLeft=1,Xs.AlignUpperRight=2,Xs.AlignLowerLeft=4,Xs.AlignLowerRight=8,Xs.AlignAll=15;function dg(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}dg.className="SegInfo";function $p(a){Ba.call(this,a)}On($p,Ba),$p.prototype.createVertex=function(){return new yd(this)},$p.prototype.createEdge=function(){return new H0(this)},$p.className="LayeredDigraphNetwork";function yd(a){xu.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}On(yd,xu);function hw(a,y){return a.index-y.index}function $m(a,y){if(!a.$n){for(var x=[],b=Ss(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&x.push(E);a.$n=x}for(a=Ss(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;sn("Unable to find destination edge to given vertex")}function cy(a){if(!a.co){for(var y=[],x=Ss(a.sourceEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.fromVertex);y.sort(hw),a.co=y}return a.co}function e2(a){if(!a.ao){for(var y=[],x=Ss(a.destinationEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.toVertex);y.sort(hw),a.ao=y}return a.ao}yd.prototype.Cl=function(a){xu.prototype.Cl.call(this,a),this.bo=this.co=null},yd.prototype.Kl=function(a){xu.prototype.Kl.call(this,a),this.bo=this.co=null},yd.prototype.zl=function(a){xu.prototype.zl.call(this,a),this.$n=this.ao=null},yd.prototype.Jl=function(a){xu.prototype.Jl.call(this,a),this.$n=this.ao=null},Re.Object.defineProperties(yd.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)}}}),yd.prototype.deleteDestinationEdge=yd.prototype.Jl,yd.prototype.addDestinationEdge=yd.prototype.zl,yd.prototype.deleteSourceEdge=yd.prototype.Kl,yd.prototype.addSourceEdge=yd.prototype.Cl,yd.className="LayeredDigraphVertex";function H0(a){Hc.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}On(H0,Hc),Re.Object.defineProperties(H0.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)}}}),H0.className="LayeredDigraphEdge";function ls(a){Ya.call(this),this.Ub=new bi,this.Wn=tv,this.ud=tf,this.vo=nv,this.Bq=Sy,this.$v=[],this.td=!0,this.Rb=iv,this.$d=new Ki(10,10).freeze();var y=new cp(this);this.W=new Td(y),this.Y=new Td(y),this.ru=[],a&&Object.assign(this,a)}On(ls,Ya),ls.prototype.cloneProtected=function(a){Ya.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)},ls.prototype.qb=function(a){a.classType===ls?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:sn("Unknown enum value: "+a):Ya.prototype.qb.call(this,a)},ls.prototype.createNetwork=function(){return new cp(this)},ls.prototype.makeNetwork=function(a){function y(b){if(b instanceof Ar)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof Vi){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 _n?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof _o?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},ls.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==rv&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof _n&&(y=a),this.path===tv&&y!==null?this.ud=y.isTreePathToChildren?tf:up:this.ud=this.path===tv?tf: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 bi,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof Ar?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof Td&&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,dy(this,y));for(y=this.network.vertexes,a=null;a=n2(y),0<a.count;)y=cw(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,dy(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Td&&Aw(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Td&&fw(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Td&&gw(this,y);if(this.Cu(),this.layerStyle===ov){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===Cy)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 z=y.children[E];b=Math.max(b,x?z.width:z.height)}if(0<=b)for(E=0;E<y.children.length;E++)z=y.children[E],x?(y.angle===180&&(z.focusX+=b-z.width),z.width=b):(y.angle===270&&(z.focusY+=b-z.height),z.height=b)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Td&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new bi,this.isValidLayout=!0};function n2(a){var y=new bi;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}ls.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case tf:x.sourceEdges.count===0&&this.Ub.add(x);break;case up:x.destinationEdges.count===0&&this.Ub.add(x);break;default:sn("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=cw(this,a),a!==null&&this.Ub.add(a))};function cw(a,y){var x=999999,b=null;for(y=y.iterator;y.next();){var E=y.value;switch(a.ud){case tf:E.sourceEdges.count<x&&(x=E.sourceEdges.count,b=E);break;case up:E.destinationEdges.count<x&&(x=E.destinationEdges.count,b=E);break;default:sn("Unhandled path value "+a.ud.toString())}}return b}function dy(a,y){if(y!==null){switch(a.ud){case tf:if(0<y.destinationEdges.count){for(var x=new Ci,b=y.destinationVertexes;b.next();){var E=b.value;dw(a,y,E)&&x.add(E)}0<x.count&&(y.children=x.Fa())}break;case up:if(0<y.sourceEdges.count){for(x=new Ci,b=y.sourceVertexes;b.next();)E=b.value,dw(a,y,E)&&x.add(E);0<x.count&&(y.children=x.Fa())}break;default:sn("Unhandled path value"+a.ud.toString())}for(x=y.children,b=x.length,E=0;E<b;E++){var z=x[E];z.initialized=!0,z.level=y.level+1,z.parent=y,a.Ub.remove(z)}for(y=0;y<b;y++)dy(a,x[y])}}function dw(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}ls.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 z=E=0;z<x.length;z++)x[z]!==y&&(b[E++]=x[z]);a.children=b}}};function Aw(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===rf&&a.sortTreeVertexChildren(y);for(var x=0,b=y.childrenCount,E=0,z=y.children,nt=z.length,ot=0;ot<nt;ot++){var at=z[ot];Aw(a,at),x+=at.descendantCount+1,b=Math.max(b,at.maxChildrenCount),E=Math.max(E,at.maxGenerationCount)}y.descendantCount=x,y.maxChildrenCount=b,y.maxGenerationCount=0<b?E+1:0}}function i2(a,y){switch(a.vo){default:case nv:return y.parent!==null?y.parent:a.W;case wy:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case yy:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case vy:var x=!0;if(y.childrenCount===0)x=!1;else for(var b=y.children,E=b.length,z=0;z<E;z++)if(0<b[z].childrenCount){x=!1;break}return x&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}ls.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(i2(this,a)),a.parent!==null&&a.parent.alignment===rf){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 fw(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var x=y.length,b=0;b<x;b++)fw(a,y[b])}}ls.prototype.assignTreeVertexValues=function(){};function gw(a,y){if(y!==null){y.alignment!==rf&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,b=0;b<x;b++)gw(a,y[b])}}ls.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case Xp:break;case z0:a.children.reverse();break;case K0:a.children.sort(a.comparer);break;case G0:a.children.sort(a.comparer),a.children.reverse();break;default:sn("Unhandled sorting value "+a.sorting.toString())}},ls.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},ls.prototype.addComments=function(a){var y=a.angle,x=a.parent,b=0,E=!1;x!==null&&(b=x.angle,E=x.alignment,E=Ag(E)),y=y===90||y===270,b=b===90||b===270,x=a.childrenCount===0;var z=0,nt=0,ot=0,at=a.commentSpacing;if(a.node!==null)for(var ht=a.node.Mu();ht.next();){var ct=ht.value;ct.category==="Comment"&&ct.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(ct),ct.Va(),ct=ct.measuredBounds,y&&!x||!E&&!b&&x||E&&b&&x?(z=Math.max(z,ct.width),nt+=ct.height+Math.abs(ot)):(z+=ct.width+Math.abs(ot),nt=Math.max(nt,ct.height)),ot=at)}a.comments!==null&&(y&&!x||!E&&!b&&x||E&&b&&x?(z+=Math.abs(a.commentMargin),nt=Math.max(0,nt-a.height)):(nt+=Math.abs(a.commentMargin),z=Math.max(0,z-a.width)),E=ai.allocAt(0,0,a.bounds.width+z,a.bounds.height+nt),a.bounds=E,ai.free(E))};function Ag(a){return a===Of||a===rf||a===Df||a===df}function Q0(a){return a===Of||a===rf}function Ay(a){var y=a.parent;if(y!==null){var x=y.alignment;if(Ag(x)){if(Q0(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===Df)return!0}}return!1}ls.prototype.layoutComments=function(a){if(a.comments!==null){var y=a.node.measuredBounds,x=a.parent,b=a.angle,E=0,z=!1;x!==null&&(E=x.angle,z=x.alignment,z=Ag(z)),b=b===90||b===270,x=E===90||E===270;for(var nt=a.childrenCount===0,ot=Ay(a),at=0,ht=a.comments,ct=ht.length,gt=ke.alloc(),Nt=0;Nt<ct;Nt++){var Kt=ht[Nt],Xt=Kt.measuredBounds;if(b&&!nt||!z&&!x&&nt||z&&x&&nt){if(135<E&&!z||x&&ot)if(0<=a.commentMargin)for(gt.h(a.bounds.x-a.commentMargin-Xt.width,a.bounds.y+at),Kt.move(gt),Kt=Kt.Sd();Kt.next();){var ce=Kt.value;ce.fromSpot=Aa,ce.toSpot=nl}else for(gt.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+at),Kt.move(gt),Kt=Kt.Sd();Kt.next();)ce=Kt.value,ce.fromSpot=nl,ce.toSpot=Aa;else if(0<=a.commentMargin)for(gt.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+at),Kt.move(gt),Kt=Kt.Sd();Kt.next();)ce=Kt.value,ce.fromSpot=nl,ce.toSpot=Aa;else for(gt.h(a.bounds.x+a.commentMargin-Xt.width,a.bounds.y+at),Kt.move(gt),Kt=Kt.Sd();Kt.next();)ce=Kt.value,ce.fromSpot=Aa,ce.toSpot=nl;at=0<=a.commentSpacing?at+(Xt.height+a.commentSpacing):at+(a.commentSpacing-Xt.height)}else{if(135<E&&!z||!x&&ot)if(0<=a.commentMargin)for(gt.h(a.bounds.x+at,a.bounds.y-a.commentMargin-Xt.height),Kt.move(gt),Kt=Kt.Sd();Kt.next();)ce=Kt.value,ce.fromSpot=Wa,ce.toSpot=Dl;else for(gt.h(a.bounds.x+at,a.bounds.y+2*a.focus.y-a.commentMargin),Kt.move(gt),Kt=Kt.Sd();Kt.next();)ce=Kt.value,ce.fromSpot=Dl,ce.toSpot=Wa;else if(0<=a.commentMargin)for(gt.h(a.bounds.x+at,a.bounds.y+2*a.focus.y+a.commentMargin),Kt.move(gt),Kt=Kt.Sd();Kt.next();)ce=Kt.value,ce.fromSpot=Dl,ce.toSpot=Wa;else for(gt.h(a.bounds.x+at,a.bounds.y+a.commentMargin-Xt.height),Kt.move(gt),Kt=Kt.Sd();Kt.next();)ce=Kt.value,ce.fromSpot=Wa,ce.toSpot=Dl;at=0<=a.commentSpacing?at+(Xt.width+a.commentSpacing):at+(a.commentSpacing-Xt.width)}}if(ke.free(gt),y=at-a.commentSpacing-(b?y.height:y.width),this.ud===tf)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)}},ls.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 ev:pw(this,a);break;case W0:if(a.alignment===rf)pw(this,a);else if(a.childrenCount===0)b=a.parent,x=!1,y=0,b!==null&&(y=b.angle,x=b.alignment,x=Ag(x)),b=Ay(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=iA(a);y=E===90||E===270;var z=0,nt=a.children,ot=nt.length;for(x=0;x<ot;x++)b=nt[x],z=Math.max(z,y?b.Da.width:b.Da.height);var at=a.alignment;b=at===ef;var ht=at===nf,ct=Ag(at),gt=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var Nt=a.nodeSpacing,Kt=this.computeNodeIndent(a),Xt=a.rowSpacing,ce=0;(b||ht||a.hm||a.im&&a.maxGenerationCount===1)&&(ce=Math.max(0,a.rowIndent)),b=a.width;var Ke=a.height,Te=0,$e=0,rn=0,ln=null,Bn=null,Gn=0,lr=0,kr=0,Sr=0,Wi=0,Mi=0,Uo=0,Bo=0;if(ct&&!Q0(at)&&135<E&&nt.reverse(),Q0(at))if(1<ot)for(var ks=0;ks<ot;ks++)ks%2===0&&ks!==ot-1&&(Bo=Math.max(Bo,y?nt[ks].Da.width:nt[ks].Da.height));else ot===1&&(Bo=y?nt[0].Da.width:nt[0].Da.height);if(ct){switch(at){case Of:$e=135>E?mw(this,a,nt,Bo,Te,$e):vw(this,a,nt,Bo,Te,$e),Bo=$e.x,Te=$e.width,$e=$e.height;break;case Df:for(ln=0;ln<ot;ln++)Bn=nt[ln],gt=Bn.Da,rn=Mi===0?0:Xt,y?(Bn.S.h(z-gt.width,Sr+rn),Te=Math.max(Te,gt.width),$e=Math.max($e,Sr+rn+gt.height),Sr+=rn+gt.height):(Bn.S.h(kr+rn,z-gt.height),Te=Math.max(Te,kr+rn+gt.width),$e=Math.max($e,gt.height),kr+=rn+gt.width),Mi++;break;case df:for(ln=0;ln<ot;ln++)Bn=nt[ln],z=Bn.Da,gt=Mi===0?0:Xt,y?(Bn.S.h(Nt/2+a.focus.x,Sr+gt),Te=Math.max(Te,z.width),$e=Math.max($e,Sr+gt+z.height),Sr+=gt+z.height):(Bn.S.h(kr+gt,Nt/2+a.focus.y),Te=Math.max(Te,kr+gt+z.width),$e=Math.max($e,z.height),kr+=gt+z.width),Mi++}ln=xc(this,2),Bn=xc(this,2),y?(ln[0].h(0,0),ln[1].h(0,$e),Bn[0].h(Te,0)):(ln[0].h(0,0),ln[1].h(Te,0),Bn[0].h(0,$e)),Bn[1].h(Te,$e)}else for(ks=0;ks<ot;ks++){var pa=nt[ks],Fu=pa.Da;if(y){0<gt&&0<Mi&&kr+Nt+Fu.width>gt&&(kr<z&&Dg(a,at,z-kr,0,Uo,ks-1),Wi++,Mi=0,Uo=ks,rn=$e,kr=0,Sr=135<E?-$e-Xt:$e+Xt),Jm(this,pa,0,Sr);var Du=0;if(Mi===0)ln=pa.Yo,Bn=pa.kp,Gn=Fu.width,lr=Fu.height,(ln===null||Bn===null||E!==iA(pa))&&(ln=xc(this,2),Bn=xc(this,2),ln[0].h(0,0),ln[1].h(0,lr),Bn[0].h(Gn,0),Bn[1].h(Gn,lr));else{var Nh=yi();lr=yw(this,a,pa,ln,Bn,Gn,lr,Nh),Du=lr.x,ln=Nh[0],Bn=Nh[1],Gn=lr.width,lr=lr.height,nr(Nh),kr<Fu.width&&0>Du&&(lp(a,-Du,0,Uo,ks-1),qm(ln,-Du,0),qm(Bn,-Du,0),Du=0)}pa.S.h(Du,Sr),Te=Math.max(Te,Gn),$e=Math.max($e,rn+(Wi===0?0:Xt)+Fu.height),kr=Gn}else 0<gt&&0<Mi&&Sr+Nt+Fu.height>gt&&(Sr<z&&Dg(a,at,0,z-Sr,Uo,ks-1),Wi++,Mi=0,Uo=ks,rn=Te,Sr=0,kr=135<E?-Te-Xt:Te+Xt),Jm(this,pa,kr,0),Du=0,Mi===0?(ln=pa.Yo,Bn=pa.kp,Gn=Fu.width,lr=Fu.height,(ln===null||Bn===null||E!==iA(pa))&&(ln=xc(this,2),Bn=xc(this,2),ln[0].h(0,0),ln[1].h(Gn,0),Bn[0].h(0,lr),Bn[1].h(Gn,lr))):(Nh=yi(),lr=yw(this,a,pa,ln,Bn,Gn,lr,Nh),Du=lr.x,ln=Nh[0],Bn=Nh[1],Gn=lr.width,lr=lr.height,nr(Nh),Sr<Fu.height&&0>Du&&(lp(a,0,-Du,Uo,ks-1),qm(ln,0,-Du),qm(Bn,0,-Du),Du=0)),pa.S.h(kr,Du),$e=Math.max($e,lr),Te=Math.max(Te,rn+(Wi===0?0:Xt)+Fu.width),Sr=lr;Mi++}switch(0<Wi&&(y?($e+=Math.max(0,x),kr<Te&&Dg(a,at,Te-kr,0,Uo,ot-1),0<ce&&(ht||lp(a,ce,0,0,ot-1),Te+=ce)):(Te+=Math.max(0,x),Sr<$e&&Dg(a,at,0,$e-Sr,Uo,ot-1),0<ce&&(ht||lp(a,0,ce,0,ot-1),$e+=ce))),ce=ht=0,at){case Jp:y?ht+=Te/2-a.focus.x-Kt/2:ce+=$e/2-a.focus.y-Kt/2;break;case hp:0<Wi?y?ht+=Te/2-a.focus.x-Kt/2:ce+=$e/2-a.focus.y-Kt/2:y?(Bo=nt[0].S.x+nt[0].la.x,ht+=Bo+(nt[ot-1].S.x+nt[ot-1].la.x+2*nt[ot-1].focus.x-Bo)/2-a.focus.x-Kt/2):(Bo=nt[0].S.y+nt[0].la.y,ce+=Bo+(nt[ot-1].S.y+nt[ot-1].la.y+2*nt[ot-1].focus.y-Bo)/2-a.focus.y-Kt/2);break;case ef:y?(ht-=Kt,Te+=Kt):(ce-=Kt,$e+=Kt);break;case nf:y?(ht+=Te-a.width+Kt,Te+=Kt):(ce+=$e-a.height+Kt,$e+=Kt);break;case Of:y?1<ot?ht+=Bo+Nt/2-a.focus.x:ht+=nt[0].focus.x-a.focus.x+nt[0].la.x:1<ot?ce+=Bo+Nt/2-a.focus.y:ce+=nt[0].focus.y-a.focus.y+nt[0].la.y;break;case Df:y?ht+=Te+Nt/2-a.focus.x:ce+=$e+Nt/2-a.focus.y;break;case df:break;default:$e=this.customAlignment(a,ht,ce,Te,$e),ht=$e[0],ce=$e[1],Te=$e[2],$e=$e[3]}for(Kt=0;Kt<ot;Kt++)Bo=nt[Kt],y?Bo.S.h(Bo.S.x+Bo.la.x-ht,Bo.S.y+(135<E?(ct?-$e:-Bo.Da.height)+Bo.la.y-x:Ke+x+Bo.la.y)):Bo.S.h(Bo.S.x+(135<E?(ct?-Te:-Bo.Da.width)+Bo.la.x-x:b+x+Bo.la.x),Bo.S.y+Bo.la.y-ce);if(ot=nt=0,ct?y?(Te=fy(a,Te,ht),0>ht&&(ht=0),135<E&&(ce+=$e+x),$e+=Ke+x,at===df&&(nt+=Nt/2+a.focus.x),ot+=Ke+x):(135<E&&(ht+=Te+x),Te+=b+x,$e=gy(a,$e,ce),0>ce&&(ce=0),at===df&&(ot+=Nt/2+a.focus.y),nt+=b+x):y?(a.comments===null?b>Te&&(Te=py(at,b-Te,0),nt=Te.x,ot=Te.y,Te=b,ht=0):Te=fy(a,Te,ht),0>ht&&(nt-=ht,ht=0),135<E&&(ce+=$e+x),$e=Math.max(Math.max($e,Ke),$e+Ke+x),ot+=Ke+x):(135<E&&(ht+=Te+x),Te=Math.max(Math.max(Te,b),Te+b+x),a.comments===null?Ke>$e&&($e=py(at,0,Ke-$e),nt=$e.x,ot=$e.y,$e=Ke,ce=0):$e=gy(a,$e,ce),0>ce&&(ot-=ce,ce=0),nt+=b+x),0<Wi)E=xc(this,4),Wi=xc(this,4),y?(E[2].h(0,Ke+x),E[3].h(E[2].x,$e),Wi[2].h(Te,E[2].y),Wi[3].h(Wi[2].x,E[3].y)):(E[2].h(b+x,0),E[3].h(Te,E[2].y),Wi[2].h(E[2].x,$e),Wi[3].h(E[3].x,Wi[2].y));else{for(E=xc(this,ln.length+2),Wi=xc(this,Bn.length+2),at=0;at<ln.length;at++)ct=ln[at],E[at+2].h(ct.x+nt,ct.y+ot);for(at=0;at<Bn.length;at++)ct=Bn[at],Wi[at+2].h(ct.x+nt,ct.y+ot)}y?(E[0].h(ht,0),E[1].h(E[0].x,Ke),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])),Wi[0].h(ht+b,0),Wi[1].h(Wi[0].x,Ke),Wi[2].y<Wi[1].y&&(Wi[2].x<Wi[0].x?Wi[2].assign(Wi[1]):Wi[1].assign(Wi[2])),Wi[3].y<Wi[2].y&&(Wi[3].x<Wi[0].x?Wi[3].assign(Wi[2]):Wi[2].assign(Wi[3])),E[2].y-=x/2,Wi[2].y-=x/2):(E[0].h(0,ce),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])),Wi[0].h(0,ce+Ke),Wi[1].h(b,Wi[0].y),Wi[2].x<Wi[1].x&&(Wi[2].y<Wi[0].y?Wi[2].assign(Wi[1]):Wi[1].assign(Wi[2])),Wi[3].x<Wi[2].x&&(Wi[3].y<Wi[0].y?Wi[3].assign(Wi[2]):Wi[2].assign(Wi[3])),E[2].x-=x/2,Wi[2].x-=x/2),xA(this,ln),xA(this,Bn),a.Yo=E,a.kp=Wi,a.la.h(ht,ce),a.Da.h(Te,$e)}break;default:sn("Unhandled compaction value "+a.compaction.toString())}}};function pw(a,y){if(y.childrenCount===0){var x=!1,b=0;y.parent!==null&&(b=y.parent.angle,x=y.parent.alignment,x=Ag(x));var E=Ay(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=iA(y),x=b===90||b===270;var z=0;E=y.children;for(var nt=E.length,ot=0;ot<nt;ot++){var at=E[ot];z=Math.max(z,x?at.Da.width:at.Da.height)}var ht=y.alignment,ct=ht===ef,gt=ht===nf;ot=Ag(ht);var Nt=Math.max(0,y.breadthLimit);at=a.computeLayerSpacing(y);var Kt=y.nodeSpacing,Xt=a.computeNodeIndent(y),ce=ct||gt?0:Xt/2,Ke=y.rowSpacing,Te=0;(ct||gt||y.hm||y.im&&y.maxGenerationCount===1)&&(Te=Math.max(0,y.rowIndent)),ct=y.width;var $e=y.height,rn=0,ln=0,Bn=0,Gn=0,lr=0,kr=0,Sr=0,Wi=0,Mi=0,Uo=0;if(ot&&!Q0(ht)&&135<b&&E.reverse(),Q0(ht))if(1<nt)for(var Bo=0;Bo<nt;Bo++){var ks=E[Bo],pa=ks.Da;Bo%2===0&&Bo!==nt-1?Mi=Math.max(Mi,(x?pa.width:pa.height)+a.computeBusNodeSpacing(ks)-Kt):Bo%2!==0&&(Uo=Math.max(Uo,(x?pa.width:pa.height)+a.computeBusNodeSpacing(ks)-Kt))}else nt===1&&(Mi=x?E[0].Da.width:E[0].Da.height);if(ot)switch(ht){case Of:case rf:ln=135>b?mw(a,y,E,Mi,rn,ln):vw(a,y,E,Mi,rn,ln),Mi=ln.x,rn=ln.width,ln=ln.height;break;case Df:for(Nt=0;Nt<nt;Nt++)ce=E[Nt],Bn=ce.Da,Uo=Sr===0?0:Ke,x?(ce.S.h(z-Bn.width,lr+Uo),rn=Math.max(rn,Bn.width),ln=Math.max(ln,lr+Uo+Bn.height),lr+=Uo+Bn.height):(ce.S.h(Gn+Uo,z-Bn.height),rn=Math.max(rn,Gn+Uo+Bn.width),ln=Math.max(ln,Bn.height),Gn+=Uo+Bn.width),Sr++;break;case df:for(z=0;z<nt;z++)Nt=E[z],ce=Nt.Da,Bn=Sr===0?0:Ke,x?(Nt.S.h(Kt/2+y.focus.x,lr+Bn),rn=Math.max(rn,ce.width),ln=Math.max(ln,lr+Bn+ce.height),lr+=Bn+ce.height):(Nt.S.h(Gn+Bn,Kt/2+y.focus.y),rn=Math.max(rn,Gn+Bn+ce.width),ln=Math.max(ln,ce.height),Gn+=Bn+ce.width),Sr++}else for(Uo=0;Uo<nt;Uo++)Bo=E[Uo],ks=Bo.Da,x?(0<Nt&&0<Sr&&Gn+Kt+ks.width>Nt&&(Gn<z&&Dg(y,ht,z-Gn,0,Wi,Uo-1),kr++,Sr=0,Wi=Uo,Bn=ln,Gn=0,lr=135<b?-ln-Ke:ln+Ke),pa=Sr===0?ce:Kt,Jm(a,Bo,0,lr),Bo.S.h(Gn+pa,lr),rn=Math.max(rn,Gn+pa+ks.width),ln=Math.max(ln,Bn+(kr===0?0:Ke)+ks.height),Gn+=pa+ks.width):(0<Nt&&0<Sr&&lr+Kt+ks.height>Nt&&(lr<z&&Dg(y,ht,0,z-lr,Wi,Uo-1),kr++,Sr=0,Wi=Uo,Bn=rn,lr=0,Gn=135<b?-rn-Ke:rn+Ke),pa=Sr===0?ce:Kt,Jm(a,Bo,Gn,0),Bo.S.h(Gn,lr+pa),ln=Math.max(ln,lr+pa+ks.height),rn=Math.max(rn,Bn+(kr===0?0:Ke)+ks.width),lr+=pa+ks.height),Sr++;switch(0<kr&&(x?(ln+=Math.max(0,at),Gn<rn&&Dg(y,ht,rn-Gn,0,Wi,nt-1),0<Te&&(gt||lp(y,Te,0,0,nt-1),rn+=Te)):(rn+=Math.max(0,at),lr<ln&&Dg(y,ht,0,ln-lr,Wi,nt-1),0<Te&&(gt||lp(y,0,Te,0,nt-1),ln+=Te))),Te=gt=0,ht){case Jp:x?gt+=rn/2-y.focus.x-Xt/2:Te+=ln/2-y.focus.y-Xt/2;break;case hp:0<kr?x?gt+=rn/2-y.focus.x-Xt/2:Te+=ln/2-y.focus.y-Xt/2:x?(a=E[0].S.x+E[0].la.x,gt+=a+(E[nt-1].S.x+E[nt-1].la.x+2*E[nt-1].focus.x-a)/2-y.focus.x-Xt/2):(a=E[0].S.y+E[0].la.y,Te+=a+(E[nt-1].S.y+E[nt-1].la.y+2*E[nt-1].focus.y-a)/2-y.focus.y-Xt/2);break;case ef:x?(gt-=Xt,rn+=Xt):(Te-=Xt,ln+=Xt);break;case nf:x?(gt+=rn-y.width+Xt,rn+=Xt):(Te+=ln-y.height+Xt,ln+=Xt);break;case Of:case rf:x?1<nt?gt+=Mi+Kt/2-y.focus.x:gt+=E[0].focus.x-y.focus.x+E[0].la.x:1<nt?Te+=Mi+Kt/2-y.focus.y:Te+=E[0].focus.y-y.focus.y+E[0].la.y;break;case Df:x?gt+=rn+Kt/2-y.focus.x:Te+=ln+Kt/2-y.focus.y;break;case df:break;default:a=a.customAlignment(y,gt,Te,rn,ln),gt=a[0],Te=a[1],rn=a[2],ln=a[3]}for(a=0;a<nt;a++)Xt=E[a],x?Xt.S.h(Xt.S.x+Xt.la.x-gt,Xt.S.y+(135<b?(ot?-ln:-Xt.Da.height)+Xt.la.y-at:$e+at+Xt.la.y)):Xt.S.h(Xt.S.x+(135<b?(ot?-rn:-Xt.Da.width)+Xt.la.x-at:ct+at+Xt.la.x),Xt.S.y+Xt.la.y-Te);x?(rn=fy(y,rn,gt),0>gt&&(gt=0),135<b&&(Te+=ln+at),ln=Math.max(Math.max(ln,$e),ln+$e+at)):(135<b&&(gt+=rn+at),rn=Math.max(Math.max(rn,ct),rn+ct+at),ln=gy(y,ln,Te),0>Te&&(Te=0)),y.la.h(gt,Te),y.Da.h(rn,ln)}}ls.prototype.customAlignment=function(a,y,x,b,E){return[y,x,b,E]};function mw(a,y,x,b,E,z){var nt=x.length;if(nt===0)return new ai(b,0,E,z);if(nt===1)return y=x[0],E=y.Da.width,z=y.Da.height,new ai(b,0,E,z);for(var ot=y.nodeSpacing,at=y.rowSpacing,ht=iA(y)===90,ct=0,gt=0,Nt=0,Kt=0;Kt<nt;Kt++)if(!(Kt%2!==0||1<nt&&Kt===nt-1)){var Xt=x[Kt],ce=Xt.Da,Ke=ct===0?0:at;if(ht){var Te=a.computeBusNodeSpacing(Xt)-ot;Xt.S.h(b-(ce.width+Te),Nt+Ke),E=Math.max(E,ce.width+Te),z=Math.max(z,Nt+Ke+ce.height),Nt+=Ke+ce.height}else Te=a.computeBusNodeSpacing(Xt)-ot,Xt.S.h(gt+Ke,b-(ce.height+Te)),z=Math.max(z,ce.height+Te),E=Math.max(E,gt+Ke+ce.width),gt+=Ke+ce.width;ct++}for(ct=0,Xt=gt,Kt=Nt,ht?(gt=b+ot,Nt=0):(gt=0,Nt=b+ot),ce=0;ce<nt;ce++)if(ce%2!==0){Ke=x[ce],Te=Ke.Da;var $e=ct===0?0:at;if(ht){var rn=a.computeBusNodeSpacing(Ke)-ot;Ke.S.h(gt+rn,Nt+$e),E=Math.max(E,gt+Te.width+rn),z=Math.max(z,Nt+$e+Te.height),Nt+=$e+Te.height}else rn=a.computeBusNodeSpacing(Ke)-ot,Ke.S.h(gt+$e,Nt+rn),E=Math.max(E,gt+$e+Te.width),z=Math.max(z,Nt+Te.height+rn),gt+=$e+Te.width;ct++}return 1<nt&&nt%2===1&&(x=x[nt-1],nt=x.Da,a=a.computeBusLastRowSpacing(x,ht?Math.max(Math.abs(Kt),Math.abs(Nt)):Math.max(Math.abs(Xt),Math.abs(gt))),ht?(x.S.h(b+ot/2-x.focus.x-x.la.x,z+a),ht=b+ot/2-x.focus.x-x.la.x,E=Math.max(E,ht+nt.width),0>ht&&(E-=ht),z=Math.max(z,Math.max(Kt,Nt)+a+nt.height),0>x.S.x&&(b=Xm(y,x.S.x,!1,b,ot))):(x.S.h(E+a,b+ot/2-x.focus.y-x.la.y),E=Math.max(E,Math.max(Xt,gt)+a+nt.width),Nt=b+ot/2-x.focus.y-x.la.y,z=Math.max(z,Nt+nt.height),0>Nt&&(z-=Nt),0>x.S.y&&(b=Xm(y,x.S.y,!0,b,ot)))),new ai(b,0,E,z)}function vw(a,y,x,b,E,z){var nt=x.length;if(nt===0)return new ai(b,0,E,z);if(nt===1)return x=x[0],E=x.Da.width,z=x.Da.height,new ai(b,0,E,z);for(var ot=y.nodeSpacing,at=y.rowSpacing,ht=iA(y)===270,ct=0,gt=0,Nt=0,Kt=0;Kt<nt;Kt++)if(!(Kt%2!==0||1<nt&&Kt===nt-1)){var Xt=x[Kt],ce=Xt.Da,Ke=ct===0?0:at;if(ht){var Te=a.computeBusNodeSpacing(Xt)-ot;Nt-=Ke+ce.height,Xt.S.h(b-(ce.width+Te),Nt),E=Math.max(E,ce.width+Te),z=Math.max(z,Math.abs(Nt))}else Te=a.computeBusNodeSpacing(Xt)-ot,gt-=Ke+ce.width,Xt.S.h(gt,b-(ce.height+Te)),z=Math.max(z,ce.height+Te),E=Math.max(E,Math.abs(gt));ct++}for(ct=0,Xt=gt,Kt=Nt,ht?(gt=b+ot,Nt=0):(gt=0,Nt=b+ot),ce=0;ce<nt;ce++)if(ce%2!==0){Ke=x[ce],Te=Ke.Da;var $e=ct===0?0:at;if(ht){var rn=a.computeBusNodeSpacing(Ke)-ot;Nt-=$e+Te.height,Ke.S.h(gt+rn,Nt),E=Math.max(E,gt+Te.width+rn),z=Math.max(z,Math.abs(Nt))}else rn=a.computeBusNodeSpacing(Ke)-ot,gt-=$e+Te.width,Ke.S.h(gt,Nt+rn),z=Math.max(z,Nt+Te.height+rn),E=Math.max(E,Math.abs(gt));ct++}for(1<nt&&nt%2===1&&(at=x[nt-1],ct=at.Da,a=a.computeBusLastRowSpacing(at,ht?Math.max(Math.abs(Kt),Math.abs(Nt)):Math.max(Math.abs(Xt),Math.abs(gt))),ht?(at.S.h(b+ot/2-at.focus.x-at.la.x,-z-ct.height-a),gt=b+ot/2-at.focus.x-at.la.x,E=Math.max(E,gt+ct.width),0>gt&&(E-=gt),z=Math.max(z,Math.abs(Math.min(Kt,Nt))+a+ct.height),0>at.S.x&&(b=Xm(y,at.S.x,!1,b,ot))):(at.S.h(-E-ct.width-a,b+ot/2-at.focus.y-at.la.y),E=Math.max(E,Math.abs(Math.min(Xt,gt))+a+ct.width),Nt=b+ot/2-at.focus.y-at.la.y,z=Math.max(z,Nt+ct.height),0>Nt&&(z-=Nt),0>at.S.y&&(b=Xm(y,at.S.y,!0,b,ot)))),y=0;y<nt;y++)ot=x[y],ht?ot.S.h(ot.S.x,ot.S.y+z):ot.S.h(ot.S.x+E,ot.S.y);return new ai(b,0,E,z)}ls.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},ls.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function Xm(a,y,x,b,E){a=a.children;for(var z=a.length,nt=0;nt<z;nt++)x?a[nt].S.h(a[nt].S.x,a[nt].S.y-y):a[nt].S.h(a[nt].S.x-y,a[nt].S.y);return y=a[z-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 hp:case Jp:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case ef:return a.width>y?a.width:y;case nf:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case Of:case rf:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case Df:return a.width-a.focus.x+a.nodeSpacing/2+y;case df:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function gy(a,y,x){switch(a.alignment){case hp:case Jp:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case ef:return a.height>y?a.height:y;case nf:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case Of:case rf:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case Df:return a.height-a.focus.y+a.nodeSpacing/2+y;case df:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function py(a,y,x){switch(a){case Jp:y/=2,x/=2;break;case hp:y/=2,x/=2;break;case ef:x=y=0;break;case nf:break;default:sn("Unhandled alignment value "+a.toString())}return new ke(y,x)}function Dg(a,y,x,b,E,z){y=py(y,x,b),lp(a,y.x,y.y,E,z)}function lp(a,y,x,b,E){if(y!==0||x!==0)for(a=a.children;b<=E;b++){var z=a[b].S;z.x+=y,z.y+=x}}function Jm(a,y,x,b){var E=y.parent;switch(a.ud){case tf:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===E&&y.relativePoint.h(x,b);break;case up:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===E&&y.relativePoint.h(x,b);break;default:sn("Unhandled path value "+a.ud.toString())}}function qm(a,y,x){for(var b=0;b<a.length;b++){var E=a[b];E.x+=y,E.y+=x}}function yw(a,y,x,b,E,z,nt,ot){var at=iA(y),ht=at===90||at===270,ct=y.nodeSpacing;y=b;var gt=E;b=z;var Nt=nt,Kt=x.Yo,Xt=x.kp;nt=x.Da;var ce=ht?Math.max(Nt,nt.height):Math.max(b,nt.width);if((Kt===null||at!==iA(x))&&(Kt=xc(a,2),Xt=xc(a,2),ht?(Kt[0].h(0,0),Kt[1].h(0,nt.height),Xt[0].h(nt.width,0),Xt[1].h(Xt[0].x,Kt[1].y)):(Kt[0].h(0,0),Kt[1].h(nt.width,0),Xt[0].h(0,nt.height),Xt[1].h(Kt[1].x,Xt[0].y))),ht){if(Nt=9999999,!(gt===null||2>gt.length||Kt===null||2>Kt.length))for(E=x=0;x<gt.length&&E<Kt.length;){z=gt[x];var Ke=Kt[E];at=Ke.x,ht=Ke.y,at+=b;var Te=z;x+1<gt.length&&(Te=gt[x+1]);var $e=Ke;Ke=$e.x,$e=$e.y,E+1<Kt.length&&($e=Kt[E+1],Ke=$e.x,$e=$e.y,Ke+=b);var rn=Nt;z.y===ht?rn=at-z.x:z.y>ht&&z.y<$e?rn=at+(z.y-ht)/($e-ht)*(Ke-at)-z.x:ht>z.y&&ht<Te.y&&(rn=at-(z.x+(ht-z.y)/(Te.y-z.y)*(Te.x-z.x))),rn<Nt&&(Nt=rn),Te.y<=z.y?x++:$e<=ht?E++:(Te.y<=$e&&x++,$e<=Te.y&&E++)}if(Nt=b-Nt,Nt+=ct,x=Kt,E=Nt,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ct=xc(a,y.length+x.length),b=z=at=0;z<x.length&&x[z].y<y[0].y;)ht=x[z++],ct[b++].h(ht.x+E,ht.y);for(;at<y.length;)ht=y[at++],ct[b++].h(ht.x,ht.y);for(at=y[y.length-1].y;z<x.length&&x[z].y<=at;)z++;for(;z<x.length&&x[z].y>at;)ht=x[z++],ct[b++].h(ht.x+E,ht.y);for(x=xc(a,b),at=0;at<b;at++)x[at].assign(ct[at]);xA(a,ct),b=x}if(z=Xt,at=Nt,gt===null||2>gt.length||z===null||2>z.length)E=null;else{for(ct=xc(a,gt.length+z.length),E=ht=x=0;x<gt.length&>[x].y<z[0].y;)Te=gt[x++],ct[E++].h(Te.x,Te.y);for(;ht<z.length;)Te=z[ht++],ct[E++].h(Te.x+at,Te.y);for(z=z[z.length-1].y;x<gt.length&>[x].y<=z;)x++;for(;x<gt.length&>[x].y>z;)at=gt[x++],ct[E++].h(at.x,at.y);for(z=xc(a,E),x=0;x<E;x++)z[x].assign(ct[x]);xA(a,ct),E=z}return z=Math.max(0,Nt)+nt.width,nt=ce,xA(a,y),xA(a,Kt),xA(a,gt),xA(a,Xt),ot[0]=b,ot[1]=E,new ai(Nt,0,z,nt)}if(b=9999999,!(gt===null||2>gt.length||Kt===null||2>Kt.length))for(E=x=0;x<gt.length&&E<Kt.length;)z=gt[x],Ke=Kt[E],at=Ke.x,ht=Ke.y,ht+=Nt,Te=z,x+1<gt.length&&(Te=gt[x+1]),$e=Ke,Ke=$e.x,$e=$e.y,E+1<Kt.length&&($e=Kt[E+1],Ke=$e.x,$e=$e.y,$e+=Nt),rn=b,z.x===at?rn=ht-z.y:z.x>at&&z.x<Ke?rn=ht+(z.x-at)/(Ke-at)*($e-ht)-z.y:at>z.x&&at<Te.x&&(rn=ht-(z.y+(at-z.x)/(Te.x-z.x)*(Te.y-z.y))),rn<b&&(b=rn),Te.x<=z.x?x++:Ke<=at?E++:(Te.x<=Ke&&x++,Ke<=Te.x&&E++);if(Nt-=b,Nt+=ct,x=Kt,E=Nt,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ct=xc(a,y.length+x.length),b=z=at=0;z<x.length&&x[z].x<y[0].x;)ht=x[z++],ct[b++].h(ht.x,ht.y+E);for(;at<y.length;)ht=y[at++],ct[b++].h(ht.x,ht.y);for(at=y[y.length-1].x;z<x.length&&x[z].x<=at;)z++;for(;z<x.length&&x[z].x>at;)ht=x[z++],ct[b++].h(ht.x,ht.y+E);for(x=xc(a,b),at=0;at<b;at++)x[at].assign(ct[at]);xA(a,ct),b=x}if(z=Xt,at=Nt,gt===null||2>gt.length||z===null||2>z.length)E=null;else{for(ct=xc(a,gt.length+z.length),E=ht=x=0;x<gt.length&>[x].x<z[0].x;)Te=gt[x++],ct[E++].h(Te.x,Te.y);for(;ht<z.length;)Te=z[ht++],ct[E++].h(Te.x,Te.y+at);for(z=z[z.length-1].x;x<gt.length&>[x].x<=z;)x++;for(;x<gt.length&>[x].x>z;)at=gt[x++],ct[E++].h(at.x,at.y);for(z=xc(a,E),x=0;x<E;x++)z[x].assign(ct[x]);xA(a,ct),E=z}return z=ce,nt=Math.max(0,Nt)+nt.height,xA(a,y),xA(a,Kt),xA(a,gt),xA(a,Xt),ot[0]=b,ot[1]=E,new ai(Nt,0,z,nt)}function xc(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 ke;return a}function xA(a,y){var x=y.length,b=a.ru[x];b===void 0&&(b=[],a.ru[x]=b),b.push(y)}ls.prototype.arrangeTrees=function(){if(this.Rb===rv)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof Td){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),my(this,y,x,b)}}}else{for(a=[],y=this.Ub.iterator;y.next();)x=y.value,x instanceof Td&&a.push(x);switch(this.sorting){case Xp:break;case z0:a.reverse();break;case K0:a.sort(this.comparer);break;case G0:a.sort(this.comparer),a.reverse();break;default:sn("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(my(this,E,y+E.la.x,x+E.la.y),this.Rb){case iv:x+=E.Da.height+this.$d.height;break;case xy:y+=E.Da.width+this.$d.width;break;default:sn("Unhandled arrangement value "+this.Rb.toString())}}}};function my(a,y,x,b){if(y!==null){y.x=x,y.y=b,y=y.children;for(var E=y.length,z=0;z<E;z++){var nt=y[z];my(a,nt,x+nt.S.x,b+nt.S.y)}}}ls.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},ls.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},ls.prototype.Gu=function(){if(this.layerStyle===ov){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 z=y[E.level];z===void 0?z=this.computeLayerSpacing(E):z=Math.max(z,this.computeLayerSpacing(E)),y[E.level]=z}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 ke(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),b=new ke(-this.layerSpacing/2,-this.nodeSpacing/2)),E=[],x=this.angle===90||this.angle===270?x.width:x.height,z=0,this.angle===180||this.angle===270)for(var nt=0;nt<a.length;nt++)z+=a[nt]+y[nt];for(nt=0;nt<a.length;nt++){var ot=a[nt]+y[nt];this.angle===270?(z-=ot,E.push(new ai(0,z,x,ot))):this.angle===90?(E.push(new ai(0,z,x,ot)),z+=ot):this.angle===180?(z-=ot,E.push(new ai(z,0,ot,x))):(E.push(new ai(z,0,ot,x)),z+=ot)}this.commitLayers(E,b)}},ls.prototype.commitLayers=function(){},ls.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},ls.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof Td&&ww(this,y)}};function ww(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var x=y.length,b=0;b<x;b++)ww(a,y[b])}}ls.prototype.setPortSpots=function(a){var y=a.alignment;if(Ag(y)){var x=this.ud===tf,b=iA(a);switch(b){case 0:var E=nl;break;case 90:E=Dl;break;case 180:E=Aa;break;default:E=Wa}var z=a.children,nt=z.length;switch(y){case Of:case rf:for(y=0;y<nt;y++){var ot=z[y];if(ot=(x?ot.sourceEdges:ot.destinationEdges).first(),ot!==null&&(ot=ot.link,ot!==null)){var at=b===90||b===270?Aa:Wa;if(nt===1||y===nt-1&&nt%2===1)switch(b){case 0:at=Aa;break;case 90:at=Wa;break;case 180:at=nl;break;default:at=Dl}else y%2===0&&(at=b===90||b===270?nl:Dl);x?(a.setsPortSpot&&(ot.fromSpot=E),a.setsChildPortSpot&&(ot.toSpot=at)):(a.setsPortSpot&&(ot.fromSpot=at),a.setsChildPortSpot&&(ot.toSpot=E))}}break;case Df:for(b=b===90||b===270?nl:Dl,z=x?a.destinationEdges:a.sourceEdges;z.next();)nt=z.value.link,nt!==null&&(x?(a.setsPortSpot&&(nt.fromSpot=E),a.setsChildPortSpot&&(nt.toSpot=b)):(a.setsPortSpot&&(nt.fromSpot=b),a.setsChildPortSpot&&(nt.toSpot=E)));break;case df:for(b=b===90||b===270?Aa:Wa,z=x?a.destinationEdges:a.sourceEdges;z.next();)nt=z.value.link,nt!==null&&(x?(a.setsPortSpot&&(nt.fromSpot=E),a.setsChildPortSpot&&(nt.toSpot=b)):(a.setsPortSpot&&(nt.fromSpot=b),a.setsChildPortSpot&&(nt.toSpot=E)))}}else if(x=iA(a),this.ud===tf){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=nl;break;case 90:b.fromSpot=Dl;break;case 180:b.fromSpot=Aa;break;default:b.fromSpot=Wa}else b.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.toSpot=Aa;break;case 90:b.toSpot=Wa;break;case 180:b.toSpot=nl;break;default:b.toSpot=Dl}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=nl;break;case 90:b.toSpot=Dl;break;case 180:b.toSpot=Aa;break;default:b.toSpot=Wa}else b.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.fromSpot=Aa;break;case 90:b.fromSpot=Wa;break;case 180:b.fromSpot=nl;break;default:b.fromSpot=Dl}else b.fromSpot=a.childPortSpot}};function iA(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}ls.prototype.computeLayerSpacing=function(a){var y=iA(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},ls.prototype.computeNodeIndent=function(a){var y=iA(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)},Re.Object.defineProperties(ls.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!==nv&&a!==yy&&a!==vy&&a!==wy||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==Sy&&a!==Cy&&a!==ov||(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!==iv&&a!==xy&&a!==rv||(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!==Xp&&a!==z0&&a!==K0&&!G0||(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()):sn("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!==ev&&a!==W0||(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!==Xp&&a!==z0&&a!==K0&&!G0||(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!==ev&&a!==W0||(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 tv=new ri(ls,"PathDefault",-1),tf=new ri(ls,"PathDestination",0),up=new ri(ls,"PathSource",1),Xp=new ri(ls,"SortingForwards",10),z0=new ri(ls,"SortingReverse",11),K0=new ri(ls,"SortingAscending",12),G0=new ri(ls,"SortingDescending",13),Jp=new ri(ls,"AlignmentCenterSubtrees",20),hp=new ri(ls,"AlignmentCenterChildren",21),ef=new ri(ls,"AlignmentStart",22),nf=new ri(ls,"AlignmentEnd",23),Of=new ri(ls,"AlignmentBus",24),rf=new ri(ls,"AlignmentBusBranching",25),Df=new ri(ls,"AlignmentTopLeftBus",26),df=new ri(ls,"AlignmentBottomRightBus",27),ev=new ri(ls,"CompactionNone",30),W0=new ri(ls,"CompactionBlock",31),nv=new ri(ls,"StyleLayered",40),vy=new ri(ls,"StyleLastParents",41),yy=new ri(ls,"StyleAlternating",42),wy=new ri(ls,"StyleRootOnly",43),iv=new ri(ls,"ArrangementVertical",50),xy=new ri(ls,"ArrangementHorizontal",51),rv=new ri(ls,"ArrangementFixedRoots",52),Sy=new ri(ls,"LayerIndividual",60),Cy=new ri(ls,"LayerSiblings",61),ov=new ri(ls,"LayerUniform",62);ls.className="TreeLayout",ls.PathDefault=tv,ls.PathDestination=tf,ls.PathSource=up,ls.SortingForwards=Xp,ls.SortingReverse=z0,ls.SortingAscending=K0,ls.SortingDescending=G0,ls.AlignmentCenterSubtrees=Jp,ls.AlignmentCenterChildren=hp,ls.AlignmentStart=ef,ls.AlignmentEnd=nf,ls.AlignmentBus=Of,ls.AlignmentBusBranching=rf,ls.AlignmentTopLeftBus=Df,ls.AlignmentBottomRightBus=df,ls.CompactionNone=ev,ls.CompactionBlock=W0,ls.StyleLayered=nv,ls.StyleLastParents=vy,ls.StyleAlternating=yy,ls.StyleRootOnly=wy,ls.ArrangementVertical=iv,ls.ArrangementHorizontal=xy,ls.ArrangementFixedRoots=rv,ls.LayerIndividual=Sy,ls.LayerSiblings=Cy,ls.LayerUniform=ov;function cp(a){Ba.call(this,a)}On(cp,Ba),cp.prototype.createVertex=function(){return new Td(this)},cp.prototype.createEdge=function(){return new qp(this)},cp.className="TreeNetwork";function Td(a){xu.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 ke(0,0),this.Da=new Ki(0,0),this.la=new ke(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Xp,this.hd=zv,this.Kb=0,this.Jb=hp,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=W0,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=Bs,this.wr=!0,this.Dp=Bs}On(Td,xu),Td.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)},Re.Object.defineProperties(Td.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)}}}),Td.className="TreeVertex";function qp(a){Hc.call(this,a),this.$t=new ke(0,0)}On(qp,Hc),qp.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 tf:x=this.fromVertex,b=this.toVertex;break;case up:x=this.toVertex,b=this.fromVertex;break;default:sn("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 z=iA(x),nt=y.computeLayerSpacing(x),ot=x.rowSpacing;a.vg();var at=a.curve===nd,ht=a.isOrthogonal,ct;if(a.uh(),ht||at){for(ct=2;4<a.pointsCount;)a.pv(2);var gt=a.i(1),Nt=a.i(2)}else{for(ct=1;3<a.pointsCount;)a.pv(1);gt=a.i(0),Nt=a.i(a.pointsCount-1)}var Kt=a.i(a.pointsCount-1);z===0?(x.alignment===nf?(z=b.bottom+E.y,E.y===0&>.y>Kt.y+x.rowIndent&&(z=Math.min(z,Math.max(gt.y,z-y.computeNodeIndent(x))))):x.alignment===ef?(z=b.top+E.y,E.y===0&>.y<Kt.y-x.rowIndent&&(z=Math.max(z,Math.min(gt.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+E.y:b.y+b.height/2+E.y,at?(a.m(ct,gt.x,z),ct++,a.m(ct,b.right+nt,z),ct++,a.m(ct,b.right+nt+(E.x-ot)/3,z),ct++,a.m(ct,b.right+nt+2*(E.x-ot)/3,z),ct++,a.m(ct,b.right+nt+(E.x-ot),z),ct++,a.m(ct,Nt.x,z)):(ht&&(a.m(ct,b.right+nt/2,gt.y),ct++),a.m(ct,b.right+nt/2,z),ct++,a.m(ct,b.right+nt+E.x-(ht?ot/2:ot),z),ct++,ht&&a.m(ct,a.i(ct-1).x,Nt.y))):z===90?(x.alignment===nf?(z=b.right+E.x,E.x===0&>.x>Kt.x+x.rowIndent&&(z=Math.min(z,Math.max(gt.x,z-y.computeNodeIndent(x))))):x.alignment===ef?(z=b.left+E.x,E.x===0&>.x<Kt.x-x.rowIndent&&(z=Math.max(z,Math.min(gt.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+E.x:b.x+b.width/2+E.x,at?(a.m(ct,z,gt.y),ct++,a.m(ct,z,b.bottom+nt),ct++,a.m(ct,z,b.bottom+nt+(E.y-ot)/3),ct++,a.m(ct,z,b.bottom+nt+2*(E.y-ot)/3),ct++,a.m(ct,z,b.bottom+nt+(E.y-ot)),ct++,a.m(ct,z,Nt.y)):(ht&&(a.m(ct,gt.x,b.bottom+nt/2),ct++),a.m(ct,z,b.bottom+nt/2),ct++,a.m(ct,z,b.bottom+nt+E.y-(ht?ot/2:ot)),ct++,ht&&a.m(ct,Nt.x,a.i(ct-1).y))):z===180?(x.alignment===nf?(z=b.bottom+E.y,E.y===0&>.y>Kt.y+x.rowIndent&&(z=Math.min(z,Math.max(gt.y,z-y.computeNodeIndent(x))))):x.alignment===ef?(z=b.top+E.y,E.y===0&>.y<Kt.y-x.rowIndent&&(z=Math.max(z,Math.min(gt.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+E.y:b.y+b.height/2+E.y,at?(a.m(ct,gt.x,z),ct++,a.m(ct,b.left-nt,z),ct++,a.m(ct,b.left-nt+(E.x+ot)/3,z),ct++,a.m(ct,b.left-nt+2*(E.x+ot)/3,z),ct++,a.m(ct,b.left-nt+(E.x+ot),z),ct++,a.m(ct,Nt.x,z)):(ht&&(a.m(ct,b.left-nt/2,gt.y),ct++),a.m(ct,b.left-nt/2,z),ct++,a.m(ct,b.left-nt+E.x+(ht?ot/2:ot),z),ct++,ht&&a.m(ct,a.i(ct-1).x,Nt.y))):z===270?(x.alignment===nf?(z=b.right+E.x,E.x===0&>.x>Kt.x+x.rowIndent&&(z=Math.min(z,Math.max(gt.x,z-y.computeNodeIndent(x))))):x.alignment===ef?(z=b.left+E.x,E.x===0&>.x<Kt.x-x.rowIndent&&(z=Math.max(z,Math.min(gt.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+E.x:b.x+b.width/2+E.x,at?(a.m(ct,z,gt.y),ct++,a.m(ct,z,b.top-nt),ct++,a.m(ct,z,b.top-nt+(E.y+ot)/3),ct++,a.m(ct,z,b.top-nt+2*(E.y+ot)/3),ct++,a.m(ct,z,b.top-nt+(E.y+ot)),ct++,a.m(ct,z,Nt.y)):(ht&&(a.m(ct,gt.x,b.top-nt/2),ct++),a.m(ct,z,b.top-nt/2),ct++,a.m(ct,z,b.top-nt+E.y+(ht?ot/2:ot)),ct++,ht&&a.m(ct,Nt.x,a.i(ct-1).y))):sn("Invalid angle "+z),a.zf()}else E=b,a=this.link,b=this.network.layout,y=iA(x),y!==iA(E)&&(nt=b.computeLayerSpacing(x),ot=x.bounds,x=E.bounds,y===0&&x.left-ot.right<nt+1||y===90&&x.top-ot.bottom<nt+1||y===180&&ot.left-x.right<nt+1||y===270&&ot.top-x.bottom<nt+1||(a.vg(),x=a.curve===nd,E=a.isOrthogonal,b=Ag(this.fromVertex.alignment),a.uh(),y===0?(y=ot.right+nt/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=ot.bottom+nt/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=ot.left-nt/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=ot.top-nt/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()))}}},Re.Object.defineProperties(qp.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)}}}),qp.className="TreeEdge",Zt.prototype.initializeStandardTools=function(){this.gb("Action",new rr,this.mouseDownTools),this.gb("Relinking",new oi,this.mouseDownTools),this.gb("LinkReshaping",new ki,this.mouseDownTools),this.gb("Rotating",new so,this.mouseDownTools),this.gb("Resizing",new Qn,this.mouseDownTools),this.gb("Linking",new yn,this.mouseMoveTools),this.gb("Dragging",new ze,this.mouseMoveTools),this.gb("DragSelecting",new mr,this.mouseMoveTools),this.gb("Panning",new ir,this.mouseMoveTools),this.gb("ContextMenu",new So,this.mouseUpTools),this.gb("TextEditing",new ko,this.mouseUpTools),this.gb("ClickCreating",new wr,this.mouseUpTools),this.gb("ClickSelecting",new uo,this.mouseUpTools)},jc("Horizontal",new Pi),jc("Spot",new er),jc("Table",new Mr),jc("Viewbox",new Dr),jc("TableRow",new ji),jc("TableColumn",new Gi),jc("Graduated",new Ks),jc("Grid",new eo),ba.add("GraphLinksModel",Ou),ba.add("TreeModel",md);var sv=Ve.go,By={get licenseKey(){return _n.licenseKey},set licenseKey(a){_n.licenseKey=a},get version(){return _n.version},Group:_o,EnumValue:ri,List:Ci,Set:bi,Map:Cr,Point:ke,Size:Ki,Rect:ai,Margin:Hr,Spot:xr,Geometry:$i,PathFigure:il,PathSegment:gs,InputEvent:Su,DiagramEvent:xd,ChangedEvent:Da,Model:Ur,GraphLinksModel:ms,TreeModel:$h,Binding:iu,Transaction:Pt,UndoManager:mt,CommandHandler:_e,Tool:jt,DraggingTool:ze,DraggingInfo:sc,DraggingOptions:st,LinkingBaseTool:dn,LinkingTool:yn,RelinkingTool:oi,LinkReshapingTool:ki,ResizingTool:Qn,RotatingTool:so,ClickSelectingTool:uo,ActionTool:rr,ClickCreatingTool:wr,HTMLInfo:Or,ContextMenuTool:So,DragSelectingTool:mr,PanningTool:ir,TextEditingTool:ko,ToolManager:Zt,Animation:Va,AnimationManager:fa,AnimationTrigger:Wu,Layer:ga,Diagram:_n,Palette:ft,Overview:xt,Brush:Rs,GraphObject:xn,Panel:qn,RowColumnDefinition:Kl,Shape:Go,TextBlock:ha,Picture:uc,Part:Yr,Adornment:bs,Node:Ar,Link:Vi,Placeholder:Wh,Layout:Ya,LayoutNetwork:Ba,LayoutVertex:xu,LayoutEdge:Hc,GridLayout:Yu,PanelLayout:Fn,CircularLayout:pl,CircularNetwork:Zp,CircularVertex:D0,CircularEdge:_m,ForceDirectedLayout:uh,ForceDirectedNetwork:ap,ForceDirectedVertex:j0,ForceDirectedEdge:U0,LayeredDigraphLayout:Xs,LayeredDigraphNetwork:$p,LayeredDigraphVertex:yd,LayeredDigraphEdge:H0,TreeLayout:ls,TreeNetwork:cp,TreeVertex:Td,TreeEdge:qp};typeof sv=="object"&&sv.version&&Tr("WARNING: a `go` object on the root object is already defined. "+("Debug"in sv?"debug ":"")+"version: "+sv.version+", replaced with version: "+By.version),_n.prototype.go=By,Ve.go=By,typeof ui.exports=="object"&&(ui.exports=typeof Bt.g!="undefined"?Bt.g.go:self.go)}();var bt=typeof Bt.g!="undefined"?Bt.g.go:self.go;const ge=typeof Bt.g!="undefined"?Bt.g.go:self.go,se=ge.Group,Me=ge.EnumValue,ie=ge.List,ae=ge.Set,Lt=ge.Map,kt=ge.Point,Jt=ge.Size,St=ge.Rect,Wt=ge.Margin,Gt=ge.Spot,qt=ge.Geometry,wt=ge.PathFigure,et=ge.PathSegment,tt=ge.InputEvent,lt=ge.DiagramEvent,rt=ge.ChangedEvent,ut=ge.Model,dt=ge.GraphLinksModel,pt=ge.TreeModel,Ft=ge.Binding,Tt=ge.Transaction,_t=ge.UndoManager,re=ge.CommandHandler,he=ge.Tool,Ae=ge.DraggingTool,Fe=ge.DraggingInfo,ee=ge.LinkingBaseTool,We=ge.LinkingTool,Yt=ge.RelinkingTool,qe=ge.LinkReshapingTool,Ge=ge.ResizingTool,Oe=ge.RotatingTool,Ze=ge.ClickSelectingTool,Qe=ge.ActionTool,we=ge.ClickCreatingTool,oe=ge.HTMLInfo,Pe=ge.ContextMenuTool,En=ge.DragSelectingTool,Nn=ge.PanningTool,Xe=ge.TextEditingTool,kn=ge.ToolManager,Vn=ge.Animation,Ai=ge.AnimationManager,Wn=ge.AnimationTrigger,Si=ge.Layer,an=ge.Diagram,Li=ge.Palette,Oi=ge.Overview,ue=ge.Brush,Pn=ge.GraphObject,de=ge.Panel,Dt=ge.RowColumnDefinition,Mt=ge.Shape,zt=ge.TextBlock,be=ge.TextBlockMetrics,De=ge.Picture,fe=ge.Part,Ce=ge.Adornment,te=ge.Node,Ct=ge.Link,yt=ge.Placeholder,$t=ge.Layout,xe=ge.LayoutNetwork,Rt=ge.LayoutVertex,je=ge.LayoutEdge,fn=ge.GridLayout,jn=ge.PanelLayout,bn=ge.CircularLayout,ci=ge.CircularNetwork,Ji=ge.CircularVertex,zi=ge.CircularEdge,dr=ge.ForceDirectedLayout,Fr=ge.ForceDirectedNetwork,oo=ge.ForceDirectedVertex,Jr=ge.ForceDirectedEdge,zr=ge.LayeredDigraphLayout,pr=ge.LayeredDigraphNetwork,Kr=ge.LayeredDigraphVertex,hr=ge.LayeredDigraphEdge,Mo=ge.TreeLayout,Xo=ge.TreeNetwork,mo=ge.TreeVertex,Ts=ge.TreeEdge,ws=ge.version},64270:function(ui){(function(Cn,Bt){ui.exports=Bt()})(this,function(){"use strict";var Cn=function(Ot,It){return Cn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Qt,Ht){Qt.__proto__=Ht}||function(Qt,Ht){for(var Le in Ht)Object.prototype.hasOwnProperty.call(Ht,Le)&&(Qt[Le]=Ht[Le])},Cn(Ot,It)};function Bt(Ot,It){if(typeof It!="function"&&It!==null)throw new TypeError("Class extends value "+String(It)+" is not a constructor or null");Cn(Ot,It);function Qt(){this.constructor=Ot}Ot.prototype=It===null?Object.create(It):(Qt.prototype=It.prototype,new Qt)}var bt=function(){return bt=Object.assign||function(It){for(var Qt,Ht=1,Le=arguments.length;Ht<Le;Ht++){Qt=arguments[Ht];for(var nn in Qt)Object.prototype.hasOwnProperty.call(Qt,nn)&&(It[nn]=Qt[nn])}return It},bt.apply(this,arguments)};function ge(Ot,It,Qt,Ht){function Le(nn){return nn instanceof Qt?nn:new Qt(function(In){In(nn)})}return new(Qt||(Qt=Promise))(function(nn,In){function ti(Qi){try{Di(Ht.next(Qi))}catch(vt){In(vt)}}function Rn(Qi){try{Di(Ht.throw(Qi))}catch(vt){In(vt)}}function Di(Qi){Qi.done?nn(Qi.value):Le(Qi.value).then(ti,Rn)}Di((Ht=Ht.apply(Ot,It||[])).next())})}function se(Ot,It){var Qt={label:0,sent:function(){if(nn[0]&1)throw nn[1];return nn[1]},trys:[],ops:[]},Ht,Le,nn,In;return In={next:ti(0),throw:ti(1),return:ti(2)},typeof Symbol=="function"&&(In[Symbol.iterator]=function(){return this}),In;function ti(Di){return function(Qi){return Rn([Di,Qi])}}function Rn(Di){if(Ht)throw new TypeError("Generator is already executing.");for(;Qt;)try{if(Ht=1,Le&&(nn=Di[0]&2?Le.return:Di[0]?Le.throw||((nn=Le.return)&&nn.call(Le),0):Le.next)&&!(nn=nn.call(Le,Di[1])).done)return nn;switch(Le=0,nn&&(Di=[Di[0]&2,nn.value]),Di[0]){case 0:case 1:nn=Di;break;case 4:return Qt.label++,{value:Di[1],done:!1};case 5:Qt.label++,Le=Di[1],Di=[0];continue;case 7:Di=Qt.ops.pop(),Qt.trys.pop();continue;default:if(nn=Qt.trys,!(nn=nn.length>0&&nn[nn.length-1])&&(Di[0]===6||Di[0]===2)){Qt=0;continue}if(Di[0]===3&&(!nn||Di[1]>nn[0]&&Di[1]<nn[3])){Qt.label=Di[1];break}if(Di[0]===6&&Qt.label<nn[1]){Qt.label=nn[1],nn=Di;break}if(nn&&Qt.label<nn[2]){Qt.label=nn[2],Qt.ops.push(Di);break}nn[2]&&Qt.ops.pop(),Qt.trys.pop();continue}Di=It.call(Ot,Qt)}catch(Qi){Di=[6,Qi],Le=0}finally{Ht=nn=0}if(Di[0]&5)throw Di[1];return{value:Di[0]?Di[1]:void 0,done:!0}}}function Me(Ot,It,Qt){if(Qt||arguments.length===2)for(var Ht=0,Le=It.length,nn;Ht<Le;Ht++)(nn||!(Ht in It))&&(nn||(nn=Array.prototype.slice.call(It,0,Ht)),nn[Ht]=It[Ht]);return Ot.concat(nn||It)}for(var ie=function(){function Ot(It,Qt,Ht,Le){this.left=It,this.top=Qt,this.width=Ht,this.height=Le}return Ot.prototype.add=function(It,Qt,Ht,Le){return new Ot(this.left+It,this.top+Qt,this.width+Ht,this.height+Le)},Ot.fromClientRect=function(It,Qt){return new Ot(Qt.left+It.windowBounds.left,Qt.top+It.windowBounds.top,Qt.width,Qt.height)},Ot.fromDOMRectList=function(It,Qt){var Ht=Array.from(Qt).find(function(Le){return Le.width!==0});return Ht?new Ot(Ht.left+It.windowBounds.left,Ht.top+It.windowBounds.top,Ht.width,Ht.height):Ot.EMPTY},Ot.EMPTY=new Ot(0,0,0,0),Ot}(),ae=function(Ot,It){return ie.fromClientRect(Ot,It.getBoundingClientRect())},Lt=function(Ot){var It=Ot.body,Qt=Ot.documentElement;if(!It||!Qt)throw new Error("Unable to get document size");var Ht=Math.max(Math.max(It.scrollWidth,Qt.scrollWidth),Math.max(It.offsetWidth,Qt.offsetWidth),Math.max(It.clientWidth,Qt.clientWidth)),Le=Math.max(Math.max(It.scrollHeight,Qt.scrollHeight),Math.max(It.offsetHeight,Qt.offsetHeight),Math.max(It.clientHeight,Qt.clientHeight));return new ie(0,0,Ht,Le)},kt=function(Ot){for(var It=[],Qt=0,Ht=Ot.length;Qt<Ht;){var Le=Ot.charCodeAt(Qt++);if(Le>=55296&&Le<=56319&&Qt<Ht){var nn=Ot.charCodeAt(Qt++);(nn&64512)===56320?It.push(((Le&1023)<<10)+(nn&1023)+65536):(It.push(Le),Qt--)}else It.push(Le)}return It},Jt=function(){for(var Ot=[],It=0;It<arguments.length;It++)Ot[It]=arguments[It];if(String.fromCodePoint)return String.fromCodePoint.apply(String,Ot);var Qt=Ot.length;if(!Qt)return"";for(var Ht=[],Le=-1,nn="";++Le<Qt;){var In=Ot[Le];In<=65535?Ht.push(In):(In-=65536,Ht.push((In>>10)+55296,In%1024+56320)),(Le+1===Qt||Ht.length>16384)&&(nn+=String.fromCharCode.apply(String,Ht),Ht.length=0)}return nn},St="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Wt=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Gt=0;Gt<St.length;Gt++)Wt[St.charCodeAt(Gt)]=Gt;for(var qt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wt=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),et=0;et<qt.length;et++)wt[qt.charCodeAt(et)]=et;for(var tt=function(Ot){var It=Ot.length*.75,Qt=Ot.length,Ht,Le=0,nn,In,ti,Rn;Ot[Ot.length-1]==="="&&(It--,Ot[Ot.length-2]==="="&&It--);var Di=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(It):new Array(It),Qi=Array.isArray(Di)?Di:new Uint8Array(Di);for(Ht=0;Ht<Qt;Ht+=4)nn=wt[Ot.charCodeAt(Ht)],In=wt[Ot.charCodeAt(Ht+1)],ti=wt[Ot.charCodeAt(Ht+2)],Rn=wt[Ot.charCodeAt(Ht+3)],Qi[Le++]=nn<<2|In>>4,Qi[Le++]=(In&15)<<4|ti>>2,Qi[Le++]=(ti&3)<<6|Rn&63;return Di},lt=function(Ot){for(var It=Ot.length,Qt=[],Ht=0;Ht<It;Ht+=2)Qt.push(Ot[Ht+1]<<8|Ot[Ht]);return Qt},rt=function(Ot){for(var It=Ot.length,Qt=[],Ht=0;Ht<It;Ht+=4)Qt.push(Ot[Ht+3]<<24|Ot[Ht+2]<<16|Ot[Ht+1]<<8|Ot[Ht]);return Qt},ut=5,dt=11,pt=2,Ft=dt-ut,Tt=65536>>ut,_t=1<<ut,re=_t-1,he=1024>>ut,Ae=Tt+he,Fe=Ae,ee=32,We=Fe+ee,Yt=65536>>dt,qe=1<<Ft,Ge=qe-1,Oe=function(Ot,It,Qt){return Ot.slice?Ot.slice(It,Qt):new Uint16Array(Array.prototype.slice.call(Ot,It,Qt))},Ze=function(Ot,It,Qt){return Ot.slice?Ot.slice(It,Qt):new Uint32Array(Array.prototype.slice.call(Ot,It,Qt))},Qe=function(Ot,It){var Qt=tt(Ot),Ht=Array.isArray(Qt)?rt(Qt):new Uint32Array(Qt),Le=Array.isArray(Qt)?lt(Qt):new Uint16Array(Qt),nn=24,In=Oe(Le,nn/2,Ht[4]/2),ti=Ht[5]===2?Oe(Le,(nn+Ht[4])/2):Ze(Ht,Math.ceil((nn+Ht[4])/4));return new we(Ht[0],Ht[1],Ht[2],Ht[3],In,ti)},we=function(){function Ot(It,Qt,Ht,Le,nn,In){this.initialValue=It,this.errorValue=Qt,this.highStart=Ht,this.highValueIndex=Le,this.index=nn,this.data=In}return Ot.prototype.get=function(It){var Qt;if(It>=0){if(It<55296||It>56319&&It<=65535)return Qt=this.index[It>>ut],Qt=(Qt<<pt)+(It&re),this.data[Qt];if(It<=65535)return Qt=this.index[Tt+(It-55296>>ut)],Qt=(Qt<<pt)+(It&re),this.data[Qt];if(It<this.highStart)return Qt=We-Yt+(It>>dt),Qt=this.index[Qt],Qt+=It>>ut&Ge,Qt=this.index[Qt],Qt=(Qt<<pt)+(It&re),this.data[Qt];if(It<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Ot}(),oe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Pe=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),En=0;En<oe.length;En++)Pe[oe.charCodeAt(En)]=En;var Nn="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",Xe=50,kn=1,Vn=2,Ai=3,Wn=4,Si=5,an=7,Li=8,Oi=9,ue=10,Pn=11,de=12,Dt=13,Mt=14,zt=15,be=16,De=17,fe=18,Ce=19,te=20,Ct=21,yt=22,$t=23,xe=24,Rt=25,je=26,fn=27,jn=28,bn=29,ci=30,Ji=31,zi=32,dr=33,Fr=34,oo=35,Jr=36,zr=37,pr=38,Kr=39,hr=40,Mo=41,Xo=42,mo=43,Ts=[9001,65288],ws="!",Vt="\xD7",xs="\xF7",Ss=Qe(Nn),Ms=[ci,Jr],ma=[kn,Vn,Ai,Si],Ea=[ue,Li],oa=[fn,je],ao=ma.concat(Ea),br=[pr,Kr,hr,Fr,oo],Un=[zt,Dt],On=function(Ot,It){It===void 0&&(It="strict");var Qt=[],Ht=[],Le=[];return Ot.forEach(function(nn,In){var ti=Ss.get(nn);if(ti>Xe?(Le.push(!0),ti-=Xe):Le.push(!1),["normal","auto","loose"].indexOf(It)!==-1&&[8208,8211,12316,12448].indexOf(nn)!==-1)return Ht.push(In),Qt.push(be);if(ti===Wn||ti===Pn){if(In===0)return Ht.push(In),Qt.push(ci);var Rn=Qt[In-1];return ao.indexOf(Rn)===-1?(Ht.push(Ht[In-1]),Qt.push(Rn)):(Ht.push(In),Qt.push(ci))}if(Ht.push(In),ti===Ji)return Qt.push(It==="strict"?Ct:zr);if(ti===Xo||ti===bn)return Qt.push(ci);if(ti===mo)return nn>=131072&&nn<=196605||nn>=196608&&nn<=262141?Qt.push(zr):Qt.push(ci);Qt.push(ti)}),[Ht,Qt,Le]},Re=function(Ot,It,Qt,Ht){var Le=Ht[Qt];if(Array.isArray(Ot)?Ot.indexOf(Le)!==-1:Ot===Le)for(var nn=Qt;nn<=Ht.length;){nn++;var In=Ht[nn];if(In===It)return!0;if(In!==ue)break}if(Le===ue)for(var nn=Qt;nn>0;){nn--;var ti=Ht[nn];if(Array.isArray(Ot)?Ot.indexOf(ti)!==-1:Ot===ti)for(var Rn=Qt;Rn<=Ht.length;){Rn++;var In=Ht[Rn];if(In===It)return!0;if(In!==ue)break}if(ti!==ue)break}return!1},hi=function(Ot,It){for(var Qt=Ot;Qt>=0;){var Ht=It[Qt];if(Ht===ue)Qt--;else return Ht}return 0},en=function(Ot,It,Qt,Ht,Le){if(Qt[Ht]===0)return Vt;var nn=Ht-1;if(Array.isArray(Le)&&Le[nn]===!0)return Vt;var In=nn-1,ti=nn+1,Rn=It[nn],Di=In>=0?It[In]:0,Qi=It[ti];if(Rn===Vn&&Qi===Ai)return Vt;if(ma.indexOf(Rn)!==-1)return ws;if(ma.indexOf(Qi)!==-1||Ea.indexOf(Qi)!==-1)return Vt;if(hi(nn,It)===Li)return xs;if(Ss.get(Ot[nn])===Pn||(Rn===zi||Rn===dr)&&Ss.get(Ot[ti])===Pn||Rn===an||Qi===an||Rn===Oi||[ue,Dt,zt].indexOf(Rn)===-1&&Qi===Oi||[De,fe,Ce,xe,jn].indexOf(Qi)!==-1||hi(nn,It)===yt||Re($t,yt,nn,It)||Re([De,fe],Ct,nn,It)||Re(de,de,nn,It))return Vt;if(Rn===ue)return xs;if(Rn===$t||Qi===$t)return Vt;if(Qi===be||Rn===be)return xs;if([Dt,zt,Ct].indexOf(Qi)!==-1||Rn===Mt||Di===Jr&&Un.indexOf(Rn)!==-1||Rn===jn&&Qi===Jr||Qi===te||Ms.indexOf(Qi)!==-1&&Rn===Rt||Ms.indexOf(Rn)!==-1&&Qi===Rt||Rn===fn&&[zr,zi,dr].indexOf(Qi)!==-1||[zr,zi,dr].indexOf(Rn)!==-1&&Qi===je||Ms.indexOf(Rn)!==-1&&oa.indexOf(Qi)!==-1||oa.indexOf(Rn)!==-1&&Ms.indexOf(Qi)!==-1||[fn,je].indexOf(Rn)!==-1&&(Qi===Rt||[yt,zt].indexOf(Qi)!==-1&&It[ti+1]===Rt)||[yt,zt].indexOf(Rn)!==-1&&Qi===Rt||Rn===Rt&&[Rt,jn,xe].indexOf(Qi)!==-1)return Vt;if([Rt,jn,xe,De,fe].indexOf(Qi)!==-1)for(var vt=nn;vt>=0;){var Ut=It[vt];if(Ut===Rt)return Vt;if([jn,xe].indexOf(Ut)!==-1)vt--;else break}if([fn,je].indexOf(Qi)!==-1)for(var vt=[De,fe].indexOf(Rn)!==-1?In:nn;vt>=0;){var Ut=It[vt];if(Ut===Rt)return Vt;if([jn,xe].indexOf(Ut)!==-1)vt--;else break}if(pr===Rn&&[pr,Kr,Fr,oo].indexOf(Qi)!==-1||[Kr,Fr].indexOf(Rn)!==-1&&[Kr,hr].indexOf(Qi)!==-1||[hr,oo].indexOf(Rn)!==-1&&Qi===hr||br.indexOf(Rn)!==-1&&[te,je].indexOf(Qi)!==-1||br.indexOf(Qi)!==-1&&Rn===fn||Ms.indexOf(Rn)!==-1&&Ms.indexOf(Qi)!==-1||Rn===xe&&Ms.indexOf(Qi)!==-1||Ms.concat(Rt).indexOf(Rn)!==-1&&Qi===yt&&Ts.indexOf(Ot[ti])===-1||Ms.concat(Rt).indexOf(Qi)!==-1&&Rn===fe)return Vt;if(Rn===Mo&&Qi===Mo){for(var me=Qt[nn],Ne=1;me>0&&(me--,It[me]===Mo);)Ne++;if(Ne%2!==0)return Vt}return Rn===zi&&Qi===dr?Vt:xs},gn=function(Ot,It){It||(It={lineBreak:"normal",wordBreak:"normal"});var Qt=On(Ot,It.lineBreak),Ht=Qt[0],Le=Qt[1],nn=Qt[2];(It.wordBreak==="break-all"||It.wordBreak==="break-word")&&(Le=Le.map(function(ti){return[Rt,ci,Xo].indexOf(ti)!==-1?zr:ti}));var In=It.wordBreak==="keep-all"?nn.map(function(ti,Rn){return ti&&Ot[Rn]>=19968&&Ot[Rn]<=40959}):void 0;return[Ht,Le,In]},Ve=function(){function Ot(It,Qt,Ht,Le){this.codePoints=It,this.required=Qt===ws,this.start=Ht,this.end=Le}return Ot.prototype.slice=function(){return Jt.apply(void 0,this.codePoints.slice(this.start,this.end))},Ot}(),ni=function(Ot,It){var Qt=kt(Ot),Ht=gn(Qt,It),Le=Ht[0],nn=Ht[1],In=Ht[2],ti=Qt.length,Rn=0,Di=0;return{next:function(){if(Di>=ti)return{done:!0,value:null};for(var Qi=Vt;Di<ti&&(Qi=en(Qt,nn,Le,++Di,In))===Vt;);if(Qi!==Vt||Di===ti){var vt=new Ve(Qt,Qi,Rn,Di);return Rn=Di,{value:vt,done:!1}}return{done:!0,value:null}}}},Bi=1,_i=2,tr=4,sn=8,fi=10,Zi=47,Tr=92,ii=9,xi=32,fr=34,mi=61,wi=35,yi=36,nr=37,sr=39,Rr=40,Zr=41,Xr=95,ei=45,Ho=33,Zo=60,cs=62,ri=64,or=91,Er=93,no=61,Lr=123,Wr=63,wo=125,fo=124,xo=126,_r=128,Ci=65533,Qo=42,bi=43,ns=44,qs=58,fs=59,Hs=46,Gs=0,si=8,To=11,us=14,rs=31,Cr=127,ke=-1,ts=48,ta=97,qa=101,ol=102,ml=117,yr=122,$r=65,Jo=69,Lo=70,os=85,Fa=90,lo=function(Ot){return Ot>=ts&&Ot<=57},vo=function(Ot){return Ot>=55296&&Ot<=57343},Ki=function(Ot){return lo(Ot)||Ot>=$r&&Ot<=Lo||Ot>=ta&&Ot<=ol},Eo=function(Ot){return Ot>=ta&&Ot<=yr},Es=function(Ot){return Ot>=$r&&Ot<=Fa},la=function(Ot){return Eo(Ot)||Es(Ot)},ca=function(Ot){return Ot>=_r},zo=function(Ot){return Ot===fi||Ot===ii||Ot===xi},Vs=function(Ot){return la(Ot)||ca(Ot)||Ot===Xr},Ka=function(Ot){return Vs(Ot)||lo(Ot)||Ot===ei},Wl=function(Ot){return Ot>=Gs&&Ot<=si||Ot===To||Ot>=us&&Ot<=rs||Ot===Cr},La=function(Ot,It){return Ot!==Tr?!1:It!==fi},vs=function(Ot,It,Qt){return Ot===ei?Vs(It)||La(It,Qt):Vs(Ot)?!0:!!(Ot===Tr&&La(Ot,It))},ai=function(Ot,It,Qt){return Ot===bi||Ot===ei?lo(It)?!0:It===Hs&&lo(Qt):lo(Ot===Hs?It:Ot)},Ta=function(Ot){var It=0,Qt=1;(Ot[It]===bi||Ot[It]===ei)&&(Ot[It]===ei&&(Qt=-1),It++);for(var Ht=[];lo(Ot[It]);)Ht.push(Ot[It++]);var Le=Ht.length?parseInt(Jt.apply(void 0,Ht),10):0;Ot[It]===Hs&&It++;for(var nn=[];lo(Ot[It]);)nn.push(Ot[It++]);var In=nn.length,ti=In?parseInt(Jt.apply(void 0,nn),10):0;(Ot[It]===Jo||Ot[It]===qa)&&It++;var Rn=1;(Ot[It]===bi||Ot[It]===ei)&&(Ot[It]===ei&&(Rn=-1),It++);for(var Di=[];lo(Ot[It]);)Di.push(Ot[It++]);var Qi=Di.length?parseInt(Jt.apply(void 0,Di),10):0;return Qt*(Le+ti*Math.pow(10,-In))*Math.pow(10,Rn*Qi)},bc={type:2},Vl={type:3},Th={type:4},sl={type:13},Wc={type:8},Fl={type:21},Is={type:9},ia={type:10},Ph={type:11},is={type:12},Zs={type:14},ys={type:23},Hr={type:1},Tl={type:25},Ol={type:24},Ao={type:26},Ns={type:27},da={type:28},xr={type:29},Ma={type:31},Oa={type:32},Bl=function(){function Ot(){this._value=[]}return Ot.prototype.write=function(It){this._value=this._value.concat(kt(It))},Ot.prototype.read=function(){for(var It=[],Qt=this.consumeToken();Qt!==Oa;)It.push(Qt),Qt=this.consumeToken();return It},Ot.prototype.consumeToken=function(){var It=this.consumeCodePoint();switch(It){case fr:return this.consumeStringToken(fr);case wi:var Qt=this.peekCodePoint(0),Ht=this.peekCodePoint(1),Le=this.peekCodePoint(2);if(Ka(Qt)||La(Ht,Le)){var nn=vs(Qt,Ht,Le)?_i:Bi,In=this.consumeName();return{type:5,value:In,flags:nn}}break;case yi:if(this.peekCodePoint(0)===mi)return this.consumeCodePoint(),sl;break;case sr:return this.consumeStringToken(sr);case Rr:return bc;case Zr:return Vl;case Qo:if(this.peekCodePoint(0)===mi)return this.consumeCodePoint(),Zs;break;case bi:if(ai(It,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(It),this.consumeNumericToken();break;case ns:return Th;case ei:var ti=It,Rn=this.peekCodePoint(0),Di=this.peekCodePoint(1);if(ai(ti,Rn,Di))return this.reconsumeCodePoint(It),this.consumeNumericToken();if(vs(ti,Rn,Di))return this.reconsumeCodePoint(It),this.consumeIdentLikeToken();if(Rn===ei&&Di===cs)return this.consumeCodePoint(),this.consumeCodePoint(),Ol;break;case Hs:if(ai(It,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(It),this.consumeNumericToken();break;case Zi:if(this.peekCodePoint(0)===Qo)for(this.consumeCodePoint();;){var Qi=this.consumeCodePoint();if(Qi===Qo&&(Qi=this.consumeCodePoint(),Qi===Zi))return this.consumeToken();if(Qi===ke)return this.consumeToken()}break;case qs:return Ao;case fs:return Ns;case Zo:if(this.peekCodePoint(0)===Ho&&this.peekCodePoint(1)===ei&&this.peekCodePoint(2)===ei)return this.consumeCodePoint(),this.consumeCodePoint(),Tl;break;case ri:var vt=this.peekCodePoint(0),Ut=this.peekCodePoint(1),me=this.peekCodePoint(2);if(vs(vt,Ut,me)){var In=this.consumeName();return{type:7,value:In}}break;case or:return da;case Tr:if(La(It,this.peekCodePoint(0)))return this.reconsumeCodePoint(It),this.consumeIdentLikeToken();break;case Er:return xr;case no:if(this.peekCodePoint(0)===mi)return this.consumeCodePoint(),Wc;break;case Lr:return Ph;case wo:return is;case ml:case os:var Ne=this.peekCodePoint(0),Je=this.peekCodePoint(1);return Ne===bi&&(Ki(Je)||Je===Wr)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(It),this.consumeIdentLikeToken();case fo:if(this.peekCodePoint(0)===mi)return this.consumeCodePoint(),Is;if(this.peekCodePoint(0)===fo)return this.consumeCodePoint(),Fl;break;case xo:if(this.peekCodePoint(0)===mi)return this.consumeCodePoint(),ia;break;case ke:return Oa}return zo(It)?(this.consumeWhiteSpace(),Ma):lo(It)?(this.reconsumeCodePoint(It),this.consumeNumericToken()):Vs(It)?(this.reconsumeCodePoint(It),this.consumeIdentLikeToken()):{type:6,value:Jt(It)}},Ot.prototype.consumeCodePoint=function(){var It=this._value.shift();return typeof It=="undefined"?-1:It},Ot.prototype.reconsumeCodePoint=function(It){this._value.unshift(It)},Ot.prototype.peekCodePoint=function(It){return It>=this._value.length?-1:this._value[It]},Ot.prototype.consumeUnicodeRangeToken=function(){for(var It=[],Qt=this.consumeCodePoint();Ki(Qt)&&It.length<6;)It.push(Qt),Qt=this.consumeCodePoint();for(var Ht=!1;Qt===Wr&&It.length<6;)It.push(Qt),Qt=this.consumeCodePoint(),Ht=!0;if(Ht){var Le=parseInt(Jt.apply(void 0,It.map(function(Rn){return Rn===Wr?ts:Rn})),16),nn=parseInt(Jt.apply(void 0,It.map(function(Rn){return Rn===Wr?Lo:Rn})),16);return{type:30,start:Le,end:nn}}var In=parseInt(Jt.apply(void 0,It),16);if(this.peekCodePoint(0)===ei&&Ki(this.peekCodePoint(1))){this.consumeCodePoint(),Qt=this.consumeCodePoint();for(var ti=[];Ki(Qt)&&ti.length<6;)ti.push(Qt),Qt=this.consumeCodePoint();var nn=parseInt(Jt.apply(void 0,ti),16);return{type:30,start:In,end:nn}}else return{type:30,start:In,end:In}},Ot.prototype.consumeIdentLikeToken=function(){var It=this.consumeName();return It.toLowerCase()==="url"&&this.peekCodePoint(0)===Rr?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Rr?(this.consumeCodePoint(),{type:19,value:It}):{type:20,value:It}},Ot.prototype.consumeUrlToken=function(){var It=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===ke)return{type:22,value:""};var Qt=this.peekCodePoint(0);if(Qt===sr||Qt===fr){var Ht=this.consumeStringToken(this.consumeCodePoint());return Ht.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===ke||this.peekCodePoint(0)===Zr)?(this.consumeCodePoint(),{type:22,value:Ht.value}):(this.consumeBadUrlRemnants(),ys)}for(;;){var Le=this.consumeCodePoint();if(Le===ke||Le===Zr)return{type:22,value:Jt.apply(void 0,It)};if(zo(Le))return this.consumeWhiteSpace(),this.peekCodePoint(0)===ke||this.peekCodePoint(0)===Zr?(this.consumeCodePoint(),{type:22,value:Jt.apply(void 0,It)}):(this.consumeBadUrlRemnants(),ys);if(Le===fr||Le===sr||Le===Rr||Wl(Le))return this.consumeBadUrlRemnants(),ys;if(Le===Tr)if(La(Le,this.peekCodePoint(0)))It.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),ys;else It.push(Le)}},Ot.prototype.consumeWhiteSpace=function(){for(;zo(this.peekCodePoint(0));)this.consumeCodePoint()},Ot.prototype.consumeBadUrlRemnants=function(){for(;;){var It=this.consumeCodePoint();if(It===Zr||It===ke)return;La(It,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},Ot.prototype.consumeStringSlice=function(It){for(var Qt=5e4,Ht="";It>0;){var Le=Math.min(Qt,It);Ht+=Jt.apply(void 0,this._value.splice(0,Le)),It-=Le}return this._value.shift(),Ht},Ot.prototype.consumeStringToken=function(It){var Qt="",Ht=0;do{var Le=this._value[Ht];if(Le===ke||Le===void 0||Le===It)return Qt+=this.consumeStringSlice(Ht),{type:0,value:Qt};if(Le===fi)return this._value.splice(0,Ht),Hr;if(Le===Tr){var nn=this._value[Ht+1];nn!==ke&&nn!==void 0&&(nn===fi?(Qt+=this.consumeStringSlice(Ht),Ht=-1,this._value.shift()):La(Le,nn)&&(Qt+=this.consumeStringSlice(Ht),Qt+=Jt(this.consumeEscapedCodePoint()),Ht=-1))}Ht++}while(!0)},Ot.prototype.consumeNumber=function(){var It=[],Qt=tr,Ht=this.peekCodePoint(0);for((Ht===bi||Ht===ei)&&It.push(this.consumeCodePoint());lo(this.peekCodePoint(0));)It.push(this.consumeCodePoint());Ht=this.peekCodePoint(0);var Le=this.peekCodePoint(1);if(Ht===Hs&&lo(Le))for(It.push(this.consumeCodePoint(),this.consumeCodePoint()),Qt=sn;lo(this.peekCodePoint(0));)It.push(this.consumeCodePoint());Ht=this.peekCodePoint(0),Le=this.peekCodePoint(1);var nn=this.peekCodePoint(2);if((Ht===Jo||Ht===qa)&&((Le===bi||Le===ei)&&lo(nn)||lo(Le)))for(It.push(this.consumeCodePoint(),this.consumeCodePoint()),Qt=sn;lo(this.peekCodePoint(0));)It.push(this.consumeCodePoint());return[Ta(It),Qt]},Ot.prototype.consumeNumericToken=function(){var It=this.consumeNumber(),Qt=It[0],Ht=It[1],Le=this.peekCodePoint(0),nn=this.peekCodePoint(1),In=this.peekCodePoint(2);if(vs(Le,nn,In)){var ti=this.consumeName();return{type:15,number:Qt,flags:Ht,unit:ti}}return Le===nr?(this.consumeCodePoint(),{type:16,number:Qt,flags:Ht}):{type:17,number:Qt,flags:Ht}},Ot.prototype.consumeEscapedCodePoint=function(){var It=this.consumeCodePoint();if(Ki(It)){for(var Qt=Jt(It);Ki(this.peekCodePoint(0))&&Qt.length<6;)Qt+=Jt(this.consumeCodePoint());zo(this.peekCodePoint(0))&&this.consumeCodePoint();var Ht=parseInt(Qt,16);return Ht===0||vo(Ht)||Ht>1114111?Ci:Ht}return It===ke?Ci:It},Ot.prototype.consumeName=function(){for(var It="";;){var Qt=this.consumeCodePoint();if(Ka(Qt))It+=Jt(Qt);else if(La(Qt,this.peekCodePoint(0)))It+=Jt(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(Qt),It}},Ot}(),su=function(){function Ot(It){this._tokens=It}return Ot.create=function(It){var Qt=new Bl;return Qt.write(It),new Ot(Qt.read())},Ot.parseValue=function(It){return Ot.create(It).parseComponentValue()},Ot.parseValues=function(It){return Ot.create(It).parseComponentValues()},Ot.prototype.parseComponentValue=function(){for(var It=this.consumeToken();It.type===31;)It=this.consumeToken();if(It.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(It);var Qt=this.consumeComponentValue();do It=this.consumeToken();while(It.type===31);if(It.type===32)return Qt;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},Ot.prototype.parseComponentValues=function(){for(var It=[];;){var Qt=this.consumeComponentValue();if(Qt.type===32)return It;It.push(Qt),It.push()}},Ot.prototype.consumeComponentValue=function(){var It=this.consumeToken();switch(It.type){case 11:case 28:case 2:return this.consumeSimpleBlock(It.type);case 19:return this.consumeFunction(It)}return It},Ot.prototype.consumeSimpleBlock=function(It){for(var Qt={type:It,values:[]},Ht=this.consumeToken();;){if(Ht.type===32||tu(Ht,It))return Qt;this.reconsumeToken(Ht),Qt.values.push(this.consumeComponentValue()),Ht=this.consumeToken()}},Ot.prototype.consumeFunction=function(It){for(var Qt={name:It.value,values:[],type:18};;){var Ht=this.consumeToken();if(Ht.type===32||Ht.type===3)return Qt;this.reconsumeToken(Ht),Qt.values.push(this.consumeComponentValue())}},Ot.prototype.consumeToken=function(){var It=this._tokens.shift();return typeof It=="undefined"?Oa:It},Ot.prototype.reconsumeToken=function(It){this._tokens.unshift(It)},Ot}(),au=function(Ot){return Ot.type===15},Yo=function(Ot){return Ot.type===17},va=function(Ot){return Ot.type===20},Cs=function(Ot){return Ot.type===0},lu=function(Ot,It){return va(Ot)&&Ot.value===It},Ll=function(Ot){return Ot.type!==31},Ml=function(Ot){return Ot.type!==31&&Ot.type!==4},tl=function(Ot){var It=[],Qt=[];return Ot.forEach(function(Ht){if(Ht.type===4){if(Qt.length===0)throw new Error("Error parsing function args, zero tokens for arg");It.push(Qt),Qt=[];return}Ht.type!==31&&Qt.push(Ht)}),Qt.length&&It.push(Qt),It},tu=function(Ot,It){return It===11&&Ot.type===12||It===28&&Ot.type===29?!0:It===2&&Ot.type===3},Pl=function(Ot){return Ot.type===17||Ot.type===15},Io=function(Ot){return Ot.type===16||Pl(Ot)},dc=function(Ot){return Ot.length>1?[Ot[0],Ot[1]]:[Ot[0]]},al={type:17,number:0,flags:tr},zu={type:16,number:50,flags:tr},hh={type:16,number:100,flags:tr},dh=function(Ot,It,Qt){var Ht=Ot[0],Le=Ot[1];return[Ga(Ht,It),Ga(typeof Le!="undefined"?Le:Ht,Qt)]},Ga=function(Ot,It){if(Ot.type===16)return Ot.number/100*It;if(au(Ot))switch(Ot.unit){case"rem":case"em":return 16*Ot.number;case"px":default:return Ot.number}return Ot.number},ih="deg",Ec="grad",Vc="rad",Zc="turn",Bs={name:"angle",parse:function(Ot,It){if(It.type===15)switch(It.unit){case ih:return Math.PI*It.number/180;case Ec:return Math.PI/200*It.number;case Vc:return It.number;case Zc:return Math.PI*2*It.number}throw new Error("Unsupported angle type")}},ya=function(Ot){return Ot.type===15&&(Ot.unit===ih||Ot.unit===Ec||Ot.unit===Vc||Ot.unit===Zc)},Mu=function(Ot){var It=Ot.filter(va).map(function(Qt){return Qt.value}).join(" ");switch(It){case"to bottom right":case"to right bottom":case"left top":case"top left":return[al,al];case"to top":case"bottom":return el(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[al,hh];case"to right":case"left":return el(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[hh,hh];case"to bottom":case"top":return el(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[hh,al];case"to left":case"right":return el(270)}return 0},el=function(Ot){return Math.PI*Ot/180},ll={name:"color",parse:function(Ot,It){if(It.type===18){var Qt=Ud[It.name];if(typeof Qt=="undefined")throw new Error('Attempting to parse an unsupported color function "'+It.name+'"');return Qt(Ot,It.values)}if(It.type===5){if(It.value.length===3){var Ht=It.value.substring(0,1),Le=It.value.substring(1,2),nn=It.value.substring(2,3);return nl(parseInt(Ht+Ht,16),parseInt(Le+Le,16),parseInt(nn+nn,16),1)}if(It.value.length===4){var Ht=It.value.substring(0,1),Le=It.value.substring(1,2),nn=It.value.substring(2,3),In=It.value.substring(3,4);return nl(parseInt(Ht+Ht,16),parseInt(Le+Le,16),parseInt(nn+nn,16),parseInt(In+In,16)/255)}if(It.value.length===6){var Ht=It.value.substring(0,2),Le=It.value.substring(2,4),nn=It.value.substring(4,6);return nl(parseInt(Ht,16),parseInt(Le,16),parseInt(nn,16),1)}if(It.value.length===8){var Ht=It.value.substring(0,2),Le=It.value.substring(2,4),nn=It.value.substring(4,6),In=It.value.substring(6,8);return nl(parseInt(Ht,16),parseInt(Le,16),parseInt(nn,16),parseInt(In,16)/255)}}if(It.type===20){var ti=Ah[It.value.toUpperCase()];if(typeof ti!="undefined")return ti}return Ah.TRANSPARENT}},Wa=function(Ot){return(255&Ot)===0},Aa=function(Ot){var It=255&Ot,Qt=255&Ot>>8,Ht=255&Ot>>16,Le=255&Ot>>24;return It<255?"rgba("+Le+","+Ht+","+Qt+","+It/255+")":"rgb("+Le+","+Ht+","+Qt+")"},nl=function(Ot,It,Qt,Ht){return(Ot<<24|It<<16|Qt<<8|Math.round(Ht*255)<<0)>>>0},Dl=function(Ot,It){if(Ot.type===17)return Ot.number;if(Ot.type===16){var Qt=It===3?1:255;return It===3?Ot.number/100*Qt:Math.round(Ot.number/100*Qt)}return 0},Ac=function(Ot,It){var Qt=It.filter(Ml);if(Qt.length===3){var Ht=Qt.map(Dl),Le=Ht[0],nn=Ht[1],In=Ht[2];return nl(Le,nn,In,1)}if(Qt.length===4){var ti=Qt.map(Dl),Le=ti[0],nn=ti[1],In=ti[2],Rn=ti[3];return nl(Le,nn,In,Rn)}return 0};function rh(Ot,It,Qt){return Qt<0&&(Qt+=1),Qt>=1&&(Qt-=1),Qt<1/6?(It-Ot)*Qt*6+Ot:Qt<1/2?It:Qt<2/3?(It-Ot)*6*(2/3-Qt)+Ot:Ot}var cl=function(Ot,It){var Qt=It.filter(Ml),Ht=Qt[0],Le=Qt[1],nn=Qt[2],In=Qt[3],ti=(Ht.type===17?el(Ht.number):Bs.parse(Ot,Ht))/(Math.PI*2),Rn=Io(Le)?Le.number/100:0,Di=Io(nn)?nn.number/100:0,Qi=typeof In!="undefined"&&Io(In)?Ga(In,1):1;if(Rn===0)return nl(Di*255,Di*255,Di*255,1);var vt=Di<=.5?Di*(Rn+1):Di+Rn-Di*Rn,Ut=Di*2-vt,me=rh(Ut,vt,ti+1/3),Ne=rh(Ut,vt,ti),Je=rh(Ut,vt,ti-1/3);return nl(me*255,Ne*255,Je*255,Qi)},Ud={hsl:cl,hsla:cl,rgb:Ac,rgba:Ac},od=function(Ot,It){return ll.parse(Ot,su.create(It).parseComponentValue())},Ah={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Ko={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(Ot,It){return It.map(function(Qt){if(va(Qt))switch(Qt.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},sA={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ln=function(Ot,It){var Qt=ll.parse(Ot,It[0]),Ht=It[1];return Ht&&Io(Ht)?{color:Qt,stop:Ht}:{color:Qt,stop:null}},$i=function(Ot,It){var Qt=Ot[0],Ht=Ot[Ot.length-1];Qt.stop===null&&(Qt.stop=al),Ht.stop===null&&(Ht.stop=hh);for(var Le=[],nn=0,In=0;In<Ot.length;In++){var ti=Ot[In].stop;if(ti!==null){var Rn=Ga(ti,It);Rn>nn?Le.push(Rn):Le.push(nn),nn=Rn}else Le.push(null)}for(var Di=null,In=0;In<Le.length;In++){var Qi=Le[In];if(Qi===null)Di===null&&(Di=In);else if(Di!==null){for(var vt=In-Di,Ut=Le[Di-1],me=(Qi-Ut)/(vt+1),Ne=1;Ne<=vt;Ne++)Le[Di+Ne-1]=me*Ne;Di=null}}return Ot.map(function(Je,vn){var An=Je.color;return{color:An,stop:Math.max(Math.min(1,Le[vn]/It),0)}})},aA=function(Ot,It,Qt){var Ht=It/2,Le=Qt/2,nn=Ga(Ot[0],It)-Ht,In=Le-Ga(Ot[1],Qt);return(Math.atan2(In,nn)+Math.PI*2)%(Math.PI*2)},tc=function(Ot,It,Qt){var Ht=typeof Ot=="number"?Ot:aA(Ot,It,Qt),Le=Math.abs(It*Math.sin(Ht))+Math.abs(Qt*Math.cos(Ht)),nn=It/2,In=Qt/2,ti=Le/2,Rn=Math.sin(Ht-Math.PI/2)*ti,Di=Math.cos(Ht-Math.PI/2)*ti;return[Le,nn-Di,nn+Di,In-Rn,In+Rn]},ju=function(Ot,It){return Math.sqrt(Ot*Ot+It*It)},Uu=function(Ot,It,Qt,Ht,Le){var nn=[[0,0],[0,It],[Ot,0],[Ot,It]];return nn.reduce(function(In,ti){var Rn=ti[0],Di=ti[1],Qi=ju(Qt-Rn,Ht-Di);return(Le?Qi<In.optimumDistance:Qi>In.optimumDistance)?{optimumCorner:ti,optimumDistance:Qi}:In},{optimumDistance:Le?1/0:-1/0,optimumCorner:null}).optimumCorner},fh=function(Ot,It,Qt,Ht,Le){var nn=0,In=0;switch(Ot.size){case 0:Ot.shape===0?nn=In=Math.min(Math.abs(It),Math.abs(It-Ht),Math.abs(Qt),Math.abs(Qt-Le)):Ot.shape===1&&(nn=Math.min(Math.abs(It),Math.abs(It-Ht)),In=Math.min(Math.abs(Qt),Math.abs(Qt-Le)));break;case 2:if(Ot.shape===0)nn=In=Math.min(ju(It,Qt),ju(It,Qt-Le),ju(It-Ht,Qt),ju(It-Ht,Qt-Le));else if(Ot.shape===1){var ti=Math.min(Math.abs(Qt),Math.abs(Qt-Le))/Math.min(Math.abs(It),Math.abs(It-Ht)),Rn=Uu(Ht,Le,It,Qt,!0),Di=Rn[0],Qi=Rn[1];nn=ju(Di-It,(Qi-Qt)/ti),In=ti*nn}break;case 1:Ot.shape===0?nn=In=Math.max(Math.abs(It),Math.abs(It-Ht),Math.abs(Qt),Math.abs(Qt-Le)):Ot.shape===1&&(nn=Math.max(Math.abs(It),Math.abs(It-Ht)),In=Math.max(Math.abs(Qt),Math.abs(Qt-Le)));break;case 3:if(Ot.shape===0)nn=In=Math.max(ju(It,Qt),ju(It,Qt-Le),ju(It-Ht,Qt),ju(It-Ht,Qt-Le));else if(Ot.shape===1){var ti=Math.max(Math.abs(Qt),Math.abs(Qt-Le))/Math.max(Math.abs(It),Math.abs(It-Ht)),vt=Uu(Ht,Le,It,Qt,!1),Di=vt[0],Qi=vt[1];nn=ju(Di-It,(Qi-Qt)/ti),In=ti*nn}break}return Array.isArray(Ot.size)&&(nn=Ga(Ot.size[0],Ht),In=Ot.size.length===2?Ga(Ot.size[1],Le):nn),[nn,In]},_A=function(Ot,It){var Qt=el(180),Ht=[];return tl(It).forEach(function(Le,nn){if(nn===0){var In=Le[0];if(In.type===20&&In.value==="to"){Qt=Mu(Le);return}else if(ya(In)){Qt=Bs.parse(Ot,In);return}}var ti=Ln(Ot,Le);Ht.push(ti)}),{angle:Qt,stops:Ht,type:1}},sd=function(Ot,It){var Qt=el(180),Ht=[];return tl(It).forEach(function(Le,nn){if(nn===0){var In=Le[0];if(In.type===20&&["top","left","right","bottom"].indexOf(In.value)!==-1){Qt=Mu(Le);return}else if(ya(In)){Qt=(Bs.parse(Ot,In)+el(270))%el(360);return}}var ti=Ln(Ot,Le);Ht.push(ti)}),{angle:Qt,stops:Ht,type:1}},il=function(Ot,It){var Qt=el(180),Ht=[],Le=1,nn=0,In=3,ti=[];return tl(It).forEach(function(Rn,Di){var Qi=Rn[0];if(Di===0){if(va(Qi)&&Qi.value==="linear"){Le=1;return}else if(va(Qi)&&Qi.value==="radial"){Le=2;return}}if(Qi.type===18){if(Qi.name==="from"){var vt=ll.parse(Ot,Qi.values[0]);Ht.push({stop:al,color:vt})}else if(Qi.name==="to"){var vt=ll.parse(Ot,Qi.values[0]);Ht.push({stop:hh,color:vt})}else if(Qi.name==="color-stop"){var Ut=Qi.values.filter(Ml);if(Ut.length===2){var vt=ll.parse(Ot,Ut[1]),me=Ut[0];Yo(me)&&Ht.push({stop:{type:16,number:me.number*100,flags:me.flags},color:vt})}}}}),Le===1?{angle:(Qt+el(180))%el(360),stops:Ht,type:Le}:{size:In,shape:nn,stops:Ht,position:ti,type:Le}},gs="closest-side",Xu="farthest-side",Ku="closest-corner",bl="farthest-corner",sa="circle",pu="ellipse",gh="cover",xl="contain",Oh=function(Ot,It){var Qt=0,Ht=3,Le=[],nn=[];return tl(It).forEach(function(In,ti){var Rn=!0;if(ti===0){var Di=!1;Rn=In.reduce(function(vt,Ut){if(Di)if(va(Ut))switch(Ut.value){case"center":return nn.push(zu),vt;case"top":case"left":return nn.push(al),vt;case"right":case"bottom":return nn.push(hh),vt}else(Io(Ut)||Pl(Ut))&&nn.push(Ut);else if(va(Ut))switch(Ut.value){case sa:return Qt=0,!1;case pu:return Qt=1,!1;case"at":return Di=!0,!1;case gs:return Ht=0,!1;case gh:case Xu:return Ht=1,!1;case xl:case Ku:return Ht=2,!1;case bl:return Ht=3,!1}else if(Pl(Ut)||Io(Ut))return Array.isArray(Ht)||(Ht=[]),Ht.push(Ut),!1;return vt},Rn)}if(Rn){var Qi=Ln(Ot,In);Le.push(Qi)}}),{size:Ht,shape:Qt,stops:Le,position:nn,type:2}},Su=function(Ot,It){var Qt=0,Ht=3,Le=[],nn=[];return tl(It).forEach(function(In,ti){var Rn=!0;if(ti===0?Rn=In.reduce(function(Qi,vt){if(va(vt))switch(vt.value){case"center":return nn.push(zu),!1;case"top":case"left":return nn.push(al),!1;case"right":case"bottom":return nn.push(hh),!1}else if(Io(vt)||Pl(vt))return nn.push(vt),!1;return Qi},Rn):ti===1&&(Rn=In.reduce(function(Qi,vt){if(va(vt))switch(vt.value){case sa:return Qt=0,!1;case pu:return Qt=1,!1;case xl:case gs:return Ht=0,!1;case Xu:return Ht=1,!1;case Ku:return Ht=2,!1;case gh:case bl:return Ht=3,!1}else if(Pl(vt)||Io(vt))return Array.isArray(Ht)||(Ht=[]),Ht.push(vt),!1;return Qi},Rn)),Rn){var Di=Ln(Ot,In);Le.push(Di)}}),{size:Ht,shape:Qt,stops:Le,position:nn,type:2}},xd=function(Ot){return Ot.type===1},Da=function(Ot){return Ot.type===2},Ju={name:"image",parse:function(Ot,It){if(It.type===22){var Qt={url:It.value,type:0};return Ot.cache.addImage(It.value),Qt}if(It.type===18){var Ht=vl[It.name];if(typeof Ht=="undefined")throw new Error('Attempting to parse an unsupported image function "'+It.name+'"');return Ht(Ot,It.values)}throw new Error("Unsupported image type "+It.type)}};function ja(Ot){return!(Ot.type===20&&Ot.value==="none")&&(Ot.type!==18||!!vl[Ot.name])}var vl={"linear-gradient":_A,"-moz-linear-gradient":sd,"-ms-linear-gradient":sd,"-o-linear-gradient":sd,"-webkit-linear-gradient":sd,"radial-gradient":Oh,"-moz-radial-gradient":Su,"-ms-radial-gradient":Su,"-o-radial-gradient":Su,"-webkit-radial-gradient":Su,"-webkit-gradient":il},Zl={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(Ot,It){if(It.length===0)return[];var Qt=It[0];return Qt.type===20&&Qt.value==="none"?[]:It.filter(function(Ht){return Ml(Ht)&&ja(Ht)}).map(function(Ht){return Ju.parse(Ot,Ht)})}},Pt={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(Ot,It){return It.map(function(Qt){if(va(Qt))switch(Qt.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},mt={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(Ot,It){return tl(It).map(function(Qt){return Qt.filter(Io)}).map(dc)}},Et={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(Ot,It){return tl(It).map(function(Qt){return Qt.filter(va).map(function(Ht){return Ht.value}).join(" ")}).map(jt)}},jt=function(Ot){switch(Ot){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},le;(function(Ot){Ot.AUTO="auto",Ot.CONTAIN="contain",Ot.COVER="cover"})(le||(le={}));var Zt={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(Ot,It){return tl(It).map(function(Qt){return Qt.filter(ye)})}},ye=function(Ot){return va(Ot)||Io(Ot)},Se=function(Ot){return{name:"border-"+Ot+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Ie=Se("top"),tn=Se("right"),mn=Se("bottom"),pn=Se("left"),Tn=function(Ot){return{name:"border-radius-"+Ot,initialValue:"0 0",prefix:!1,type:1,parse:function(It,Qt){return dc(Qt.filter(Io))}}},ze=Tn("top-left"),di=Tn("top-right"),$n=Tn("bottom-right"),pi=Tn("bottom-left"),Hn=function(Ot){return{name:"border-"+Ot+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(It,Qt){switch(Qt){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},gi=Hn("top"),Hi=Hn("right"),ur=Hn("bottom"),Ir=Hn("left"),io=function(Ot){return{name:"border-"+Ot+"-width",initialValue:"0",type:0,prefix:!1,parse:function(It,Qt){return au(Qt)?Qt.number:0}}},vr=io("top"),Ti=io("right"),Br=io("bottom"),Vr=io("left"),zn={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Xn={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(Ot,It){switch(It){case"rtl":return 1;case"ltr":default:return 0}}},Yi={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(Ot,It){return It.filter(va).reduce(function(Qt,Ht){return Qt|ve(Ht.value)},0)}},ve=function(Ot){switch(Ot){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Ee={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(Ot,It){switch(It){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Ye={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(Ot,It){return It.type===20&&It.value==="normal"?0:It.type===17||It.type===15?It.number:0}},on;(function(Ot){Ot.NORMAL="normal",Ot.STRICT="strict"})(on||(on={}));var cn={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(Ot,It){switch(It){case"strict":return on.STRICT;case"normal":default:return on.NORMAL}}},dn={name:"line-height",initialValue:"normal",prefix:!1,type:4},Dn=function(Ot,It){return va(Ot)&&Ot.value==="normal"?1.2*It:Ot.type===17?It*Ot.number:Io(Ot)?Ga(Ot,It):It},Jn={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(Ot,It){return It.type===20&&It.value==="none"?null:Ju.parse(Ot,It)}},Ue={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(Ot,It){switch(It){case"inside":return 0;case"outside":default:return 1}}},hn={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(Ot,It){switch(It){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},yn=function(Ot){return{name:"margin-"+Ot,initialValue:"0",prefix:!1,type:4}},Mn=yn("top"),Zn=yn("right"),li=yn("bottom"),oi=yn("left"),Fi={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(Ot,It){return It.filter(va).map(function(Qt){switch(Qt.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},ki={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(Ot,It){switch(It){case"break-word":return"break-word";case"normal":default:return"normal"}}},Xi=function(Ot){return{name:"padding-"+Ot,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},ar=Xi("top"),gr=Xi("right"),qr=Xi("bottom"),qi=Xi("left"),Qn={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(Ot,It){switch(It){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},so={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(Ot,It){switch(It){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},uo={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(Ot,It){return It.length===1&&lu(It[0],"none")?[]:tl(It).map(function(Qt){for(var Ht={color:Ah.TRANSPARENT,offsetX:al,offsetY:al,blur:al},Le=0,nn=0;nn<Qt.length;nn++){var In=Qt[nn];Pl(In)?(Le===0?Ht.offsetX=In:Le===1?Ht.offsetY=In:Ht.blur=In,Le++):Ht.color=ll.parse(Ot,In)}return Ht})}},rr={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(Ot,It){switch(It){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},wr={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(Ot,It){if(It.type===20&&It.value==="none")return null;if(It.type===18){var Qt=Or[It.name];if(typeof Qt=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+It.name+'"');return Qt(It.values)}return null}},mr=function(Ot){var It=Ot.filter(function(Qt){return Qt.type===17}).map(function(Qt){return Qt.number});return It.length===6?It:null},ir=function(Ot){var It=Ot.filter(function(Rn){return Rn.type===17}).map(function(Rn){return Rn.number}),Qt=It[0],Ht=It[1];It[2],It[3];var Le=It[4],nn=It[5];It[6],It[7],It[8],It[9],It[10],It[11];var In=It[12],ti=It[13];return It[14],It[15],It.length===16?[Qt,Ht,Le,nn,In,ti]:null},Or={matrix:mr,matrix3d:ir},ho={type:16,number:50,flags:tr},So=[ho,ho],Fo={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(Ot,It){var Qt=It.filter(Io);return Qt.length!==2?So:[Qt[0],Qt[1]]}},Gr={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(Ot,It){switch(It){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Vo;(function(Ot){Ot.NORMAL="normal",Ot.BREAK_ALL="break-all",Ot.KEEP_ALL="keep-all"})(Vo||(Vo={}));for(var No={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(Ot,It){switch(It){case"break-all":return Vo.BREAK_ALL;case"keep-all":return Vo.KEEP_ALL;case"normal":default:return Vo.NORMAL}}},hs={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(Ot,It){if(It.type===20)return{auto:!0,order:0};if(Yo(It))return{auto:!1,order:It.number};throw new Error("Invalid z-index number parsed")}},co={name:"time",parse:function(Ot,It){if(It.type===15)switch(It.unit.toLowerCase()){case"s":return 1e3*It.number;case"ms":return It.number}throw new Error("Unsupported time type")}},Pa={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(Ot,It){return Yo(It)?It.number:1}},Os={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ps={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(Ot,It){return It.filter(va).map(function(Qt){switch(Qt.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(Qt){return Qt!==0})}},ko={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(Ot,It){var Qt=[],Ht=[];return It.forEach(function(Le){switch(Le.type){case 20:case 0:Qt.push(Le.value);break;case 17:Qt.push(Le.number.toString());break;case 4:Ht.push(Qt.join(" ")),Qt.length=0;break}}),Qt.length&&Ht.push(Qt.join(" ")),Ht.map(function(Le){return Le.indexOf(" ")===-1?Le:"'"+Le+"'"})}},Fs={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},$a={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(Ot,It){if(Yo(It))return It.number;if(va(It))switch(It.value){case"bold":return 700;case"normal":default:return 400}return 400}},js={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(Ot,It){return It.filter(va).map(function(Qt){return Qt.value})}},jl={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(Ot,It){switch(It){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Po=function(Ot,It){return(Ot&It)!==0},as={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(Ot,It){if(It.length===0)return[];var Qt=It[0];return Qt.type===20&&Qt.value==="none"?[]:It}},ds={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(Ot,It){if(It.length===0)return null;var Qt=It[0];if(Qt.type===20&&Qt.value==="none")return null;for(var Ht=[],Le=It.filter(Ll),nn=0;nn<Le.length;nn++){var In=Le[nn],ti=Le[nn+1];if(In.type===20){var Rn=ti&&Yo(ti)?ti.number:1;Ht.push({counter:In.value,increment:Rn})}}return Ht}},Oo={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(Ot,It){if(It.length===0)return[];for(var Qt=[],Ht=It.filter(Ll),Le=0;Le<Ht.length;Le++){var nn=Ht[Le],In=Ht[Le+1];if(va(nn)&&nn.value!=="none"){var ti=In&&Yo(In)?In.number:0;Qt.push({counter:nn.value,reset:ti})}}return Qt}},qo={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(Ot,It){return It.filter(au).map(function(Qt){return co.parse(Ot,Qt)})}},bo={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(Ot,It){if(It.length===0)return null;var Qt=It[0];if(Qt.type===20&&Qt.value==="none")return null;var Ht=[],Le=It.filter(Cs);if(Le.length%2!==0)return null;for(var nn=0;nn<Le.length;nn+=2){var In=Le[nn].value,ti=Le[nn+1].value;Ht.push({open:In,close:ti})}return Ht}},Ls=function(Ot,It,Qt){if(!Ot)return"";var Ht=Ot[Math.min(It,Ot.length-1)];return Ht?Qt?Ht.open:Ht.close:""},_s={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(Ot,It){return It.length===1&&lu(It[0],"none")?[]:tl(It).map(function(Qt){for(var Ht={color:255,offsetX:al,offsetY:al,blur:al,spread:al,inset:!1},Le=0,nn=0;nn<Qt.length;nn++){var In=Qt[nn];lu(In,"inset")?Ht.inset=!0:Pl(In)?(Le===0?Ht.offsetX=In:Le===1?Ht.offsetY=In:Le===2?Ht.blur=In:Ht.spread=In,Le++):Ht.color=ll.parse(Ot,In)}return Ht})}},ea={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(Ot,It){var Qt=[0,1,2],Ht=[];return It.filter(va).forEach(function(Le){switch(Le.value){case"stroke":Ht.push(1);break;case"fill":Ht.push(0);break;case"markers":Ht.push(2);break}}),Qt.forEach(function(Le){Ht.indexOf(Le)===-1&&Ht.push(Le)}),Ht}},Yl={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},As={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(Ot,It){return au(It)?It.number:0}},eu=function(){function Ot(It,Qt){var Ht,Le;this.animationDuration=po(It,qo,Qt.animationDuration),this.backgroundClip=po(It,Ko,Qt.backgroundClip),this.backgroundColor=po(It,sA,Qt.backgroundColor),this.backgroundImage=po(It,Zl,Qt.backgroundImage),this.backgroundOrigin=po(It,Pt,Qt.backgroundOrigin),this.backgroundPosition=po(It,mt,Qt.backgroundPosition),this.backgroundRepeat=po(It,Et,Qt.backgroundRepeat),this.backgroundSize=po(It,Zt,Qt.backgroundSize),this.borderTopColor=po(It,Ie,Qt.borderTopColor),this.borderRightColor=po(It,tn,Qt.borderRightColor),this.borderBottomColor=po(It,mn,Qt.borderBottomColor),this.borderLeftColor=po(It,pn,Qt.borderLeftColor),this.borderTopLeftRadius=po(It,ze,Qt.borderTopLeftRadius),this.borderTopRightRadius=po(It,di,Qt.borderTopRightRadius),this.borderBottomRightRadius=po(It,$n,Qt.borderBottomRightRadius),this.borderBottomLeftRadius=po(It,pi,Qt.borderBottomLeftRadius),this.borderTopStyle=po(It,gi,Qt.borderTopStyle),this.borderRightStyle=po(It,Hi,Qt.borderRightStyle),this.borderBottomStyle=po(It,ur,Qt.borderBottomStyle),this.borderLeftStyle=po(It,Ir,Qt.borderLeftStyle),this.borderTopWidth=po(It,vr,Qt.borderTopWidth),this.borderRightWidth=po(It,Ti,Qt.borderRightWidth),this.borderBottomWidth=po(It,Br,Qt.borderBottomWidth),this.borderLeftWidth=po(It,Vr,Qt.borderLeftWidth),this.boxShadow=po(It,_s,Qt.boxShadow),this.color=po(It,zn,Qt.color),this.direction=po(It,Xn,Qt.direction),this.display=po(It,Yi,Qt.display),this.float=po(It,Ee,Qt.cssFloat),this.fontFamily=po(It,ko,Qt.fontFamily),this.fontSize=po(It,Fs,Qt.fontSize),this.fontStyle=po(It,jl,Qt.fontStyle),this.fontVariant=po(It,js,Qt.fontVariant),this.fontWeight=po(It,$a,Qt.fontWeight),this.letterSpacing=po(It,Ye,Qt.letterSpacing),this.lineBreak=po(It,cn,Qt.lineBreak),this.lineHeight=po(It,dn,Qt.lineHeight),this.listStyleImage=po(It,Jn,Qt.listStyleImage),this.listStylePosition=po(It,Ue,Qt.listStylePosition),this.listStyleType=po(It,hn,Qt.listStyleType),this.marginTop=po(It,Mn,Qt.marginTop),this.marginRight=po(It,Zn,Qt.marginRight),this.marginBottom=po(It,li,Qt.marginBottom),this.marginLeft=po(It,oi,Qt.marginLeft),this.opacity=po(It,Pa,Qt.opacity);var nn=po(It,Fi,Qt.overflow);this.overflowX=nn[0],this.overflowY=nn[nn.length>1?1:0],this.overflowWrap=po(It,ki,Qt.overflowWrap),this.paddingTop=po(It,ar,Qt.paddingTop),this.paddingRight=po(It,gr,Qt.paddingRight),this.paddingBottom=po(It,qr,Qt.paddingBottom),this.paddingLeft=po(It,qi,Qt.paddingLeft),this.paintOrder=po(It,ea,Qt.paintOrder),this.position=po(It,so,Qt.position),this.textAlign=po(It,Qn,Qt.textAlign),this.textDecorationColor=po(It,Os,(Ht=Qt.textDecorationColor)!==null&&Ht!==void 0?Ht:Qt.color),this.textDecorationLine=po(It,Ps,(Le=Qt.textDecorationLine)!==null&&Le!==void 0?Le:Qt.textDecoration),this.textShadow=po(It,uo,Qt.textShadow),this.textTransform=po(It,rr,Qt.textTransform),this.transform=po(It,wr,Qt.transform),this.transformOrigin=po(It,Fo,Qt.transformOrigin),this.visibility=po(It,Gr,Qt.visibility),this.webkitTextStrokeColor=po(It,Yl,Qt.webkitTextStrokeColor),this.webkitTextStrokeWidth=po(It,As,Qt.webkitTextStrokeWidth),this.wordBreak=po(It,No,Qt.wordBreak),this.zIndex=po(It,hs,Qt.zIndex)}return Ot.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},Ot.prototype.isTransparent=function(){return Wa(this.backgroundColor)},Ot.prototype.isTransformed=function(){return this.transform!==null},Ot.prototype.isPositioned=function(){return this.position!==0},Ot.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},Ot.prototype.isFloating=function(){return this.float!==0},Ot.prototype.isInlineLevel=function(){return Po(this.display,4)||Po(this.display,33554432)||Po(this.display,268435456)||Po(this.display,536870912)||Po(this.display,67108864)||Po(this.display,134217728)},Ot}(),fa=function(){function Ot(It,Qt){this.content=po(It,as,Qt.content),this.quotes=po(It,bo,Qt.quotes)}return Ot}(),yl=function(){function Ot(It,Qt){this.counterIncrement=po(It,ds,Qt.counterIncrement),this.counterReset=po(It,Oo,Qt.counterReset)}return Ot}(),po=function(Ot,It,Qt){var Ht=new Bl,Le=Qt!==null&&typeof Qt!="undefined"?Qt.toString():It.initialValue;Ht.write(Le);var nn=new su(Ht.read());switch(It.type){case 2:var In=nn.parseComponentValue();return It.parse(Ot,va(In)?In.value:It.initialValue);case 0:return It.parse(Ot,nn.parseComponentValue());case 1:return It.parse(Ot,nn.parseComponentValues());case 4:return nn.parseComponentValue();case 3:switch(It.format){case"angle":return Bs.parse(Ot,nn.parseComponentValue());case"color":return ll.parse(Ot,nn.parseComponentValue());case"image":return Ju.parse(Ot,nn.parseComponentValue());case"length":var ti=nn.parseComponentValue();return Pl(ti)?ti:al;case"length-percentage":var Rn=nn.parseComponentValue();return Io(Rn)?Rn:al;case"time":return co.parse(Ot,nn.parseComponentValue())}break}},Ra="data-html2canvas-debug",Nu=function(Ot){var It=Ot.getAttribute(Ra);switch(It){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},wa=function(Ot,It){var Qt=Nu(Ot);return Qt===1||It===Qt},na=function(){function Ot(It,Qt){if(this.context=It,this.textNodes=[],this.elements=[],this.flags=0,wa(Qt,3))debugger;this.styles=new eu(It,window.getComputedStyle(Qt,null)),Qr(Qt)&&(this.styles.animationDuration.some(function(Ht){return Ht>0})&&(Qt.style.animationDuration="0s"),this.styles.transform!==null&&(Qt.style.transform="none")),this.bounds=ae(this.context,Qt),wa(Qt,4)&&(this.flags|=16)}return Ot}(),Na="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Xa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ul=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Qs=0;Qs<Xa.length;Qs++)ul[Xa.charCodeAt(Qs)]=Qs;for(var Ia=function(Ot){var It=Ot.length*.75,Qt=Ot.length,Ht,Le=0,nn,In,ti,Rn;Ot[Ot.length-1]==="="&&(It--,Ot[Ot.length-2]==="="&&It--);var Di=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(It):new Array(It),Qi=Array.isArray(Di)?Di:new Uint8Array(Di);for(Ht=0;Ht<Qt;Ht+=4)nn=ul[Ot.charCodeAt(Ht)],In=ul[Ot.charCodeAt(Ht+1)],ti=ul[Ot.charCodeAt(Ht+2)],Rn=ul[Ot.charCodeAt(Ht+3)],Qi[Le++]=nn<<2|In>>4,Qi[Le++]=(In&15)<<4|ti>>2,Qi[Le++]=(ti&3)<<6|Rn&63;return Di},Nl=function(Ot){for(var It=Ot.length,Qt=[],Ht=0;Ht<It;Ht+=2)Qt.push(Ot[Ht+1]<<8|Ot[Ht]);return Qt},Iu=function(Ot){for(var It=Ot.length,Qt=[],Ht=0;Ht<It;Ht+=4)Qt.push(Ot[Ht+3]<<24|Ot[Ht+2]<<16|Ot[Ht+1]<<8|Ot[Ht]);return Qt},mu=5,ku=11,Gu=2,oh=ku-mu,sh=65536>>mu,Va=1<<mu,Cu=Va-1,Sl=1024>>mu,dl=sh+Sl,ph=dl,ec=32,bh=ph+ec,Dh=65536>>ku,fc=1<<oh,Wu=fc-1,ka=function(Ot,It,Qt){return Ot.slice?Ot.slice(It,Qt):new Uint16Array(Array.prototype.slice.call(Ot,It,Qt))},ra=function(Ot,It,Qt){return Ot.slice?Ot.slice(It,Qt):new Uint32Array(Array.prototype.slice.call(Ot,It,Qt))},uu=function(Ot,It){var Qt=Ia(Ot),Ht=Array.isArray(Qt)?Iu(Qt):new Uint32Array(Qt),Le=Array.isArray(Qt)?Nl(Qt):new Uint16Array(Qt),nn=24,In=ka(Le,nn/2,Ht[4]/2),ti=Ht[5]===2?ka(Le,(nn+Ht[4])/2):ra(Ht,Math.ceil((nn+Ht[4])/4));return new wl(Ht[0],Ht[1],Ht[2],Ht[3],In,ti)},wl=function(){function Ot(It,Qt,Ht,Le,nn,In){this.initialValue=It,this.errorValue=Qt,this.highStart=Ht,this.highValueIndex=Le,this.index=nn,this.data=In}return Ot.prototype.get=function(It){var Qt;if(It>=0){if(It<55296||It>56319&&It<=65535)return Qt=this.index[It>>mu],Qt=(Qt<<Gu)+(It&Cu),this.data[Qt];if(It<=65535)return Qt=this.index[sh+(It-55296>>mu)],Qt=(Qt<<Gu)+(It&Cu),this.data[Qt];if(It<this.highStart)return Qt=bh-Dh+(It>>ku),Qt=this.index[Qt],Qt+=It>>mu&Wu,Qt=this.index[Qt],Qt=(Qt<<Gu)+(It&Cu),this.data[Qt];if(It<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Ot}(),ga="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",hu=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Ru=0;Ru<ga.length;Ru++)hu[ga.charCodeAt(Ru)]=Ru;var Tu=1,Yc=2,_n=3,nc=4,jh=5,EA=7,$c=8,Fc=9,ad=10,HA=11,vu=12,Sd=13,Rd=14,ld=15,Lc=function(Ot){for(var It=[],Qt=0,Ht=Ot.length;Qt<Ht;){var Le=Ot.charCodeAt(Qt++);if(Le>=55296&&Le<=56319&&Qt<Ht){var nn=Ot.charCodeAt(Qt++);(nn&64512)===56320?It.push(((Le&1023)<<10)+(nn&1023)+65536):(It.push(Le),Qt--)}else It.push(Le)}return It},_d=function(){for(var Ot=[],It=0;It<arguments.length;It++)Ot[It]=arguments[It];if(String.fromCodePoint)return String.fromCodePoint.apply(String,Ot);var Qt=Ot.length;if(!Qt)return"";for(var Ht=[],Le=-1,nn="";++Le<Qt;){var In=Ot[Le];In<=65535?Ht.push(In):(In-=65536,Ht.push((In>>10)+55296,In%1024+56320)),(Le+1===Qt||Ht.length>16384)&&(nn+=String.fromCharCode.apply(String,Ht),Ht.length=0)}return nn},Cd=uu(Na),ah="\xD7",Ul="\xF7",Bd=function(Ot){return Cd.get(Ot)},lA=function(Ot,It,Qt){var Ht=Qt-2,Le=It[Ht],nn=It[Qt-1],In=It[Qt];if(nn===Yc&&In===_n)return ah;if(nn===Yc||nn===_n||nn===nc||In===Yc||In===_n||In===nc)return Ul;if(nn===$c&&[$c,Fc,HA,vu].indexOf(In)!==-1||(nn===HA||nn===Fc)&&(In===Fc||In===ad)||(nn===vu||nn===ad)&&In===ad||In===Sd||In===jh||In===EA||nn===Tu)return ah;if(nn===Sd&&In===Rd){for(;Le===jh;)Le=It[--Ht];if(Le===Rd)return ah}if(nn===ld&&In===ld){for(var ti=0;Le===ld;)ti++,Le=It[--Ht];if(ti%2===0)return ah}return Ul},Ys=function(Ot){var It=Lc(Ot),Qt=It.length,Ht=0,Le=0,nn=It.map(Bd);return{next:function(){if(Ht>=Qt)return{done:!0,value:null};for(var In=ah;Ht<Qt&&(In=lA(It,nn,++Ht))===ah;);if(In!==ah||Ht===Qt){var ti=_d.apply(null,It.slice(Le,Ht));return Le=Ht,{value:ti,done:!1}}return{done:!0,value:null}}}},Xc=function(Ot){for(var It=Ys(Ot),Qt=[],Ht;!(Ht=It.next()).done;)Ht.value&&Qt.push(Ht.value.slice());return Qt},Pd=function(Ot){var It=123;if(Ot.createRange){var Qt=Ot.createRange();if(Qt.getBoundingClientRect){var Ht=Ot.createElement("boundtest");Ht.style.height=It+"px",Ht.style.display="block",Ot.body.appendChild(Ht),Qt.selectNode(Ht);var Le=Qt.getBoundingClientRect(),nn=Math.round(Le.height);if(Ot.body.removeChild(Ht),nn===It)return!0}}return!1},mh=function(Ot){var It=Ot.createElement("boundtest");It.style.width="50px",It.style.display="block",It.style.fontSize="12px",It.style.letterSpacing="0px",It.style.wordSpacing="0px",Ot.body.appendChild(It);var Qt=Ot.createRange();It.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var Ht=It.firstChild,Le=kt(Ht.data).map(function(Rn){return Jt(Rn)}),nn=0,In={},ti=Le.every(function(Rn,Di){Qt.setStart(Ht,nn),Qt.setEnd(Ht,nn+Rn.length);var Qi=Qt.getBoundingClientRect();nn+=Rn.length;var vt=Qi.x>In.x||Qi.y>In.y;return In=Qi,Di===0?!0:vt});return Ot.body.removeChild(It),ti},qu=function(){return typeof new Image().crossOrigin!="undefined"},Hd=function(){return typeof new XMLHttpRequest().responseType=="string"},ud=function(Ot){var It=new Image,Qt=Ot.createElement("canvas"),Ht=Qt.getContext("2d");if(!Ht)return!1;It.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{Ht.drawImage(It,0,0),Qt.toDataURL()}catch(Le){return!1}return!0},th=function(Ot){return Ot[0]===0&&Ot[1]===255&&Ot[2]===0&&Ot[3]===255},bd=function(Ot){var It=Ot.createElement("canvas"),Qt=100;It.width=Qt,It.height=Qt;var Ht=It.getContext("2d");if(!Ht)return Promise.reject(!1);Ht.fillStyle="rgb(0, 255, 0)",Ht.fillRect(0,0,Qt,Qt);var Le=new Image,nn=It.toDataURL();Le.src=nn;var In=Ed(Qt,Qt,0,0,Le);return Ht.fillStyle="red",Ht.fillRect(0,0,Qt,Qt),Qd(In).then(function(ti){Ht.drawImage(ti,0,0);var Rn=Ht.getImageData(0,0,Qt,Qt).data;Ht.fillStyle="red",Ht.fillRect(0,0,Qt,Qt);var Di=Ot.createElement("div");return Di.style.backgroundImage="url("+nn+")",Di.style.height=Qt+"px",th(Rn)?Qd(Ed(Qt,Qt,0,0,Di)):Promise.reject(!1)}).then(function(ti){return Ht.drawImage(ti,0,0),th(Ht.getImageData(0,0,Qt,Qt).data)}).catch(function(){return!1})},Ed=function(Ot,It,Qt,Ht,Le){var nn="http://www.w3.org/2000/svg",In=document.createElementNS(nn,"svg"),ti=document.createElementNS(nn,"foreignObject");return In.setAttributeNS(null,"width",Ot.toString()),In.setAttributeNS(null,"height",It.toString()),ti.setAttributeNS(null,"width","100%"),ti.setAttributeNS(null,"height","100%"),ti.setAttributeNS(null,"x",Qt.toString()),ti.setAttributeNS(null,"y",Ht.toString()),ti.setAttributeNS(null,"externalResourcesRequired","true"),In.appendChild(ti),ti.appendChild(Le),In},Qd=function(Ot){return new Promise(function(It,Qt){var Ht=new Image;Ht.onload=function(){return It(Ht)},Ht.onerror=Qt,Ht.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(Ot))})},nu={get SUPPORT_RANGE_BOUNDS(){var Ot=Pd(document);return Object.defineProperty(nu,"SUPPORT_RANGE_BOUNDS",{value:Ot}),Ot},get SUPPORT_WORD_BREAKING(){var Ot=nu.SUPPORT_RANGE_BOUNDS&&mh(document);return Object.defineProperty(nu,"SUPPORT_WORD_BREAKING",{value:Ot}),Ot},get SUPPORT_SVG_DRAWING(){var Ot=ud(document);return Object.defineProperty(nu,"SUPPORT_SVG_DRAWING",{value:Ot}),Ot},get SUPPORT_FOREIGNOBJECT_DRAWING(){var Ot=typeof Array.from=="function"&&typeof window.fetch=="function"?bd(document):Promise.resolve(!1);return Object.defineProperty(nu,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:Ot}),Ot},get SUPPORT_CORS_IMAGES(){var Ot=qu();return Object.defineProperty(nu,"SUPPORT_CORS_IMAGES",{value:Ot}),Ot},get SUPPORT_RESPONSE_TYPE(){var Ot=Hd();return Object.defineProperty(nu,"SUPPORT_RESPONSE_TYPE",{value:Ot}),Ot},get SUPPORT_CORS_XHR(){var Ot="withCredentials"in new XMLHttpRequest;return Object.defineProperty(nu,"SUPPORT_CORS_XHR",{value:Ot}),Ot},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var Ot=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(nu,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:Ot}),Ot}},cu=function(){function Ot(It,Qt){this.text=It,this.bounds=Qt}return Ot}(),Mc=function(Ot,It,Qt,Ht){var Le=vh(It,Qt),nn=[],In=0;return Le.forEach(function(ti){if(Qt.textDecorationLine.length||ti.trim().length>0)if(nu.SUPPORT_RANGE_BOUNDS){var Rn=xa(Ht,In,ti.length).getClientRects();if(Rn.length>1){var Di=hl(ti),Qi=0;Di.forEach(function(Ut){nn.push(new cu(Ut,ie.fromDOMRectList(Ot,xa(Ht,Qi+In,Ut.length).getClientRects()))),Qi+=Ut.length})}else nn.push(new cu(ti,ie.fromDOMRectList(Ot,Rn)))}else{var vt=Ht.splitText(ti.length);nn.push(new cu(ti,du(Ot,Ht))),Ht=vt}else nu.SUPPORT_RANGE_BOUNDS||(Ht=Ht.splitText(ti.length));In+=ti.length}),nn},du=function(Ot,It){var Qt=It.ownerDocument;if(Qt){var Ht=Qt.createElement("html2canvaswrapper");Ht.appendChild(It.cloneNode(!0));var Le=It.parentNode;if(Le){Le.replaceChild(Ht,It);var nn=ae(Ot,Ht);return Ht.firstChild&&Le.replaceChild(Ht.firstChild,Ht),nn}}return ie.EMPTY},xa=function(Ot,It,Qt){var Ht=Ot.ownerDocument;if(!Ht)throw new Error("Node has no owner document");var Le=Ht.createRange();return Le.setStart(Ot,It),Le.setEnd(Ot,It+Qt),Le},hl=function(Ot){if(nu.SUPPORT_NATIVE_TEXT_SEGMENTATION){var It=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(It.segment(Ot)).map(function(Qt){return Qt.segment})}return Xc(Ot)},Bu=function(Ot,It){if(nu.SUPPORT_NATIVE_TEXT_SEGMENTATION){var Qt=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(Qt.segment(Ot)).map(function(Ht){return Ht.segment})}return zd(Ot,It)},vh=function(Ot,It){return It.letterSpacing!==0?hl(Ot):Bu(Ot,It)},yh=[32,160,4961,65792,65793,4153,4241],zd=function(Ot,It){for(var Qt=ni(Ot,{lineBreak:It.lineBreak,wordBreak:It.overflowWrap==="break-word"?"break-word":It.wordBreak}),Ht=[],Le,nn=function(){if(Le.value){var In=Le.value.slice(),ti=kt(In),Rn="";ti.forEach(function(Di){yh.indexOf(Di)===-1?Rn+=Jt(Di):(Rn.length&&Ht.push(Rn),Ht.push(Jt(Di)),Rn="")}),Rn.length&&Ht.push(Rn)}};!(Le=Qt.next()).done;)nn();return Ht},Nc=function(){function Ot(It,Qt,Ht){this.text=Uh(Qt.data,Ht.textTransform),this.textBounds=Mc(It,this.text,Ht,Qt)}return Ot}(),Uh=function(Ot,It){switch(It){case 1:return Ot.toLowerCase();case 3:return Ot.replace(Vu,Ic);case 2:return Ot.toUpperCase();default:return Ot}},Vu=/(^|\s|:|-|\(|\))([a-z])/g,Ic=function(Ot,It,Qt){return Ot.length>0?It+Qt.toUpperCase():Ot},Jc=function(Ot){Bt(It,Ot);function It(Qt,Ht){var Le=Ot.call(this,Qt,Ht)||this;return Le.src=Ht.currentSrc||Ht.src,Le.intrinsicWidth=Ht.naturalWidth,Le.intrinsicHeight=Ht.naturalHeight,Le.context.cache.addImage(Le.src),Le}return It}(na),ic=function(Ot){Bt(It,Ot);function It(Qt,Ht){var Le=Ot.call(this,Qt,Ht)||this;return Le.canvas=Ht,Le.intrinsicWidth=Ht.width,Le.intrinsicHeight=Ht.height,Le}return It}(na),Kd=function(Ot){Bt(It,Ot);function It(Qt,Ht){var Le=Ot.call(this,Qt,Ht)||this,nn=new XMLSerializer,In=ae(Qt,Ht);return Ht.setAttribute("width",In.width+"px"),Ht.setAttribute("height",In.height+"px"),Le.svg="data:image/svg+xml,"+encodeURIComponent(nn.serializeToString(Ht)),Le.intrinsicWidth=Ht.width.baseVal.value,Le.intrinsicHeight=Ht.height.baseVal.value,Le.context.cache.addImage(Le.svg),Le}return It}(na),gc=function(Ot){Bt(It,Ot);function It(Qt,Ht){var Le=Ot.call(this,Qt,Ht)||this;return Le.value=Ht.value,Le}return It}(na),FA=function(Ot){Bt(It,Ot);function It(Qt,Ht){var Le=Ot.call(this,Qt,Ht)||this;return Le.start=Ht.start,Le.reversed=typeof Ht.reversed=="boolean"&&Ht.reversed===!0,Le}return It}(na),uA=[{type:15,flags:0,unit:"px",number:3}],lf=[{type:16,flags:0,number:50}],rc=function(Ot){return Ot.width>Ot.height?new ie(Ot.left+(Ot.width-Ot.height)/2,Ot.top,Ot.height,Ot.height):Ot.width<Ot.height?new ie(Ot.left,Ot.top+(Ot.height-Ot.width)/2,Ot.width,Ot.width):Ot},QA=function(Ot){var It=Ot.type===hd?new Array(Ot.value.length+1).join("\u2022"):Ot.value;return It.length===0?Ot.placeholder||"":It},Gd="checkbox",pc="radio",hd="password",hA=707406591,Rh=function(Ot){Bt(It,Ot);function It(Qt,Ht){var Le=Ot.call(this,Qt,Ht)||this;switch(Le.type=Ht.type.toLowerCase(),Le.checked=Ht.checked,Le.value=QA(Ht),(Le.type===Gd||Le.type===pc)&&(Le.styles.backgroundColor=3739148031,Le.styles.borderTopColor=Le.styles.borderRightColor=Le.styles.borderBottomColor=Le.styles.borderLeftColor=2779096575,Le.styles.borderTopWidth=Le.styles.borderRightWidth=Le.styles.borderBottomWidth=Le.styles.borderLeftWidth=1,Le.styles.borderTopStyle=Le.styles.borderRightStyle=Le.styles.borderBottomStyle=Le.styles.borderLeftStyle=1,Le.styles.backgroundClip=[0],Le.styles.backgroundOrigin=[0],Le.bounds=rc(Le.bounds)),Le.type){case Gd:Le.styles.borderTopRightRadius=Le.styles.borderTopLeftRadius=Le.styles.borderBottomRightRadius=Le.styles.borderBottomLeftRadius=uA;break;case pc:Le.styles.borderTopRightRadius=Le.styles.borderTopLeftRadius=Le.styles.borderBottomRightRadius=Le.styles.borderBottomLeftRadius=lf;break}return Le}return It}(na),zA=function(Ot){Bt(It,Ot);function It(Qt,Ht){var Le=Ot.call(this,Qt,Ht)||this,nn=Ht.options[Ht.selectedIndex||0];return Le.value=nn&&nn.text||"",Le}return It}(na),Fd=function(Ot){Bt(It,Ot);function It(Qt,Ht){var Le=Ot.call(this,Qt,Ht)||this;return Le.value=Ht.value,Le}return It}(na),Wd=function(Ot){Bt(It,Ot);function It(Qt,Ht){var Le=Ot.call(this,Qt,Ht)||this;Le.src=Ht.src,Le.width=parseInt(Ht.width,10)||0,Le.height=parseInt(Ht.height,10)||0,Le.backgroundColor=Le.styles.backgroundColor;try{if(Ht.contentWindow&&Ht.contentWindow.document&&Ht.contentWindow.document.documentElement){Le.tree=pe(Qt,Ht.contentWindow.document.documentElement);var nn=Ht.contentWindow.document.documentElement?od(Qt,getComputedStyle(Ht.contentWindow.document.documentElement).backgroundColor):Ah.TRANSPARENT,In=Ht.contentWindow.document.body?od(Qt,getComputedStyle(Ht.contentWindow.document.body).backgroundColor):Ah.TRANSPARENT;Le.backgroundColor=Wa(nn)?Wa(In)?Le.styles.backgroundColor:In:nn}}catch(ti){}return Le}return It}(na),LA=["OL","UL","MENU"],kc=function(Ot,It,Qt,Ht){for(var Le=It.firstChild,nn=void 0;Le;Le=nn)if(nn=Le.nextSibling,Ri(Le)&&Le.data.trim().length>0)Qt.textNodes.push(new Nc(Ot,Le,Qt.styles));else if(cr(Le))if(cA(Le)&&Le.assignedNodes)Le.assignedNodes().forEach(function(ti){return kc(Ot,ti,Qt,Ht)});else{var In=KA(Ot,Le);In.styles.isVisible()&&(wn(Le,In,Ht)?In.flags|=4:vi(In.styles)&&(In.flags|=2),LA.indexOf(Le.tagName)!==-1&&(In.flags|=8),Qt.elements.push(In),Le.slot,Le.shadowRoot?kc(Ot,Le.shadowRoot,In,Ht):!oc(Le)&&!Cl(Le)&&!Vd(Le)&&kc(Ot,Le,In,Ht))}},KA=function(Ot,It){return Al(It)?new Jc(Ot,It):Au(It)?new ic(Ot,It):Cl(It)?new Kd(Ot,It):ps(It)?new gc(Ot,It):Ws(It)?new FA(Ot,It):_a(It)?new Rh(Ot,It):Vd(It)?new zA(Ot,It):oc(It)?new Fd(Ot,It):Il(It)?new Wd(Ot,It):new na(Ot,It)},pe=function(Ot,It){var Qt=KA(Ot,It);return Qt.flags|=4,kc(Ot,It,Qt,Qt),Qt},wn=function(Ot,It,Qt){return It.styles.isPositionedWithZIndex()||It.styles.opacity<1||It.styles.isTransformed()||Us(Ot)&&Qt.styles.isTransparent()},vi=function(Ot){return Ot.isPositioned()||Ot.isFloating()},Ri=function(Ot){return Ot.nodeType===Node.TEXT_NODE},cr=function(Ot){return Ot.nodeType===Node.ELEMENT_NODE},Qr=function(Ot){return cr(Ot)&&typeof Ot.style!="undefined"&&!yo(Ot)},yo=function(Ot){return typeof Ot.className=="object"},ps=function(Ot){return Ot.tagName==="LI"},Ws=function(Ot){return Ot.tagName==="OL"},_a=function(Ot){return Ot.tagName==="INPUT"},ba=function(Ot){return Ot.tagName==="HTML"},Cl=function(Ot){return Ot.tagName==="svg"},Us=function(Ot){return Ot.tagName==="BODY"},Au=function(Ot){return Ot.tagName==="CANVAS"},yu=function(Ot){return Ot.tagName==="VIDEO"},Al=function(Ot){return Ot.tagName==="IMG"},Il=function(Ot){return Ot.tagName==="IFRAME"},wh=function(Ot){return Ot.tagName==="STYLE"},Eh=function(Ot){return Ot.tagName==="SCRIPT"},oc=function(Ot){return Ot.tagName==="TEXTAREA"},Vd=function(Ot){return Ot.tagName==="SELECT"},cA=function(Ot){return Ot.tagName==="SLOT"},dA=function(Ot){return Ot.tagName.indexOf("-")>0},AA=function(){function Ot(){this.counters={}}return Ot.prototype.getCounterValue=function(It){var Qt=this.counters[It];return Qt&&Qt.length?Qt[Qt.length-1]:1},Ot.prototype.getCounterValues=function(It){var Qt=this.counters[It];return Qt||[]},Ot.prototype.pop=function(It){var Qt=this;It.forEach(function(Ht){return Qt.counters[Ht].pop()})},Ot.prototype.parse=function(It){var Qt=this,Ht=It.counterIncrement,Le=It.counterReset,nn=!0;Ht!==null&&Ht.forEach(function(ti){var Rn=Qt.counters[ti.counter];Rn&&ti.increment!==0&&(nn=!1,Rn.length||Rn.push(1),Rn[Math.max(0,Rn.length-1)]+=ti.increment)});var In=[];return nn&&Le.forEach(function(ti){var Rn=Qt.counters[ti.counter];In.push(ti.counter),Rn||(Rn=Qt.counters[ti.counter]=[]),Rn.push(ti.reset)}),In},Ot}(),Tc={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Ld={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},Oc={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},Sa={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},mc=function(Ot,It,Qt,Ht,Le,nn){return Ot<It||Ot>Qt?ft(Ot,Le,nn.length>0):Ht.integers.reduce(function(In,ti,Rn){for(;Ot>=ti;)Ot-=ti,In+=Ht.values[Rn];return In},"")+nn},Zd=function(Ot,It,Qt,Ht){var Le="";do Qt||Ot--,Le=Ht(Ot)+Le,Ot/=It;while(Ot*It>=It);return Le},Jl=function(Ot,It,Qt,Ht,Le){var nn=Qt-It+1;return(Ot<0?"-":"")+(Zd(Math.abs(Ot),nn,Ht,function(In){return Jt(Math.floor(In%nn)+It)})+Le)},_h=function(Ot,It,Qt){Qt===void 0&&(Qt=". ");var Ht=It.length;return Zd(Math.abs(Ot),Ht,!1,function(Le){return It[Math.floor(Le%Ht)]})+Qt},_u=1,cd=2,Rl=4,Yd=8,Eu=function(Ot,It,Qt,Ht,Le,nn){if(Ot<-9999||Ot>9999)return ft(Ot,4,Le.length>0);var In=Math.abs(Ot),ti=Le;if(In===0)return It[0]+ti;for(var Rn=0;In>0&&Rn<=4;Rn++){var Di=In%10;Di===0&&Po(nn,_u)&&ti!==""?ti=It[Di]+ti:Di>1||Di===1&&Rn===0||Di===1&&Rn===1&&Po(nn,cd)||Di===1&&Rn===1&&Po(nn,Rl)&&Ot>100||Di===1&&Rn>1&&Po(nn,Yd)?ti=It[Di]+(Rn>0?Qt[Rn-1]:"")+ti:Di===1&&Rn>0&&(ti=Qt[Rn-1]+ti),In=Math.floor(In/10)}return(Ot<0?Ht:"")+ti},sc="\u5341\u767E\u5343\u842C",$d="\u62FE\u4F70\u4EDF\u842C",it="\u30DE\u30A4\u30CA\u30B9",st="\uB9C8\uC774\uB108\uC2A4",ft=function(Ot,It,Qt){var Ht=Qt?". ":"",Le=Qt?"\u3001":"",nn=Qt?", ":"",In=Qt?" ":"";switch(It){case 0:return"\u2022"+In;case 1:return"\u25E6"+In;case 2:return"\u25FE"+In;case 5:var ti=Jl(Ot,48,57,!0,Ht);return ti.length<4?"0"+ti:ti;case 4:return _h(Ot,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Le);case 6:return mc(Ot,1,3999,Tc,3,Ht).toLowerCase();case 7:return mc(Ot,1,3999,Tc,3,Ht);case 8:return Jl(Ot,945,969,!1,Ht);case 9:return Jl(Ot,97,122,!1,Ht);case 10:return Jl(Ot,65,90,!1,Ht);case 11:return Jl(Ot,1632,1641,!0,Ht);case 12:case 49:return mc(Ot,1,9999,Ld,3,Ht);case 35:return mc(Ot,1,9999,Ld,3,Ht).toLowerCase();case 13:return Jl(Ot,2534,2543,!0,Ht);case 14:case 30:return Jl(Ot,6112,6121,!0,Ht);case 15:return _h(Ot,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",Le);case 16:return _h(Ot,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",Le);case 17:case 48:return Eu(Ot,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",sc,"\u8CA0",Le,cd|Rl|Yd);case 47:return Eu(Ot,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",$d,"\u8CA0",Le,_u|cd|Rl|Yd);case 42:return Eu(Ot,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",sc,"\u8D1F",Le,cd|Rl|Yd);case 41:return Eu(Ot,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",$d,"\u8D1F",Le,_u|cd|Rl|Yd);case 26:return Eu(Ot,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",it,Le,0);case 25:return Eu(Ot,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",it,Le,_u|cd|Rl);case 31:return Eu(Ot,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",st,nn,_u|cd|Rl);case 33:return Eu(Ot,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",st,nn,0);case 32:return Eu(Ot,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",st,nn,_u|cd|Rl);case 18:return Jl(Ot,2406,2415,!0,Ht);case 20:return mc(Ot,1,19999,Sa,3,Ht);case 21:return Jl(Ot,2790,2799,!0,Ht);case 22:return Jl(Ot,2662,2671,!0,Ht);case 22:return mc(Ot,1,10999,Oc,3,Ht);case 23:return _h(Ot,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return _h(Ot,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return Jl(Ot,3302,3311,!0,Ht);case 28:return _h(Ot,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",Le);case 29:return _h(Ot,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",Le);case 34:return Jl(Ot,3792,3801,!0,Ht);case 37:return Jl(Ot,6160,6169,!0,Ht);case 38:return Jl(Ot,4160,4169,!0,Ht);case 39:return Jl(Ot,2918,2927,!0,Ht);case 40:return Jl(Ot,1776,1785,!0,Ht);case 43:return Jl(Ot,3046,3055,!0,Ht);case 44:return Jl(Ot,3174,3183,!0,Ht);case 45:return Jl(Ot,3664,3673,!0,Ht);case 46:return Jl(Ot,3872,3881,!0,Ht);case 3:default:return Jl(Ot,48,57,!0,Ht)}},At="data-html2canvas-ignore",xt=function(){function Ot(It,Qt,Ht){if(this.context=It,this.options=Ht,this.scrolledElements=[],this.referenceElement=Qt,this.counters=new AA,this.quoteDepth=0,!Qt.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(Qt.ownerDocument.documentElement,!1)}return Ot.prototype.toIFrame=function(It,Qt){var Ht=this,Le=Be(It,Qt);if(!Le.contentWindow)return Promise.reject("Unable to find iframe window");var nn=It.defaultView.pageXOffset,In=It.defaultView.pageYOffset,ti=Le.contentWindow,Rn=ti.document,Di=un(Le).then(function(){return ge(Ht,void 0,void 0,function(){var Qi,vt;return se(this,function(Ut){switch(Ut.label){case 0:return this.scrolledElements.forEach(Nr),ti&&(ti.scrollTo(Qt.left,Qt.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(ti.scrollY!==Qt.top||ti.scrollX!==Qt.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(ti.scrollX-Qt.left,ti.scrollY-Qt.top,0,0))),Qi=this.options.onclone,vt=this.clonedReferenceElement,typeof vt=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:Rn.fonts&&Rn.fonts.ready?[4,Rn.fonts.ready]:[3,2];case 1:Ut.sent(),Ut.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,_e(Rn)]:[3,4];case 3:Ut.sent(),Ut.label=4;case 4:return typeof Qi=="function"?[2,Promise.resolve().then(function(){return Qi(Rn,vt)}).then(function(){return Le})]:[2,Le]}})})});return Rn.open(),Rn.write(Ni(document.doctype)+"<html></html>"),Ei(this.referenceElement.ownerDocument,nn,In),Rn.replaceChild(Rn.adoptNode(this.documentElement),Rn.documentElement),Rn.close(),Di},Ot.prototype.createElementClone=function(It){if(wa(It,2))debugger;if(Au(It))return this.createCanvasClone(It);if(yu(It))return this.createVideoClone(It);if(wh(It))return this.createStyleClone(It);var Qt=It.cloneNode(!1);return Al(Qt)&&(Al(It)&&It.currentSrc&&It.currentSrc!==It.src&&(Qt.src=It.currentSrc,Qt.srcset=""),Qt.loading==="lazy"&&(Qt.loading="eager")),dA(Qt)?this.createCustomElementClone(Qt):Qt},Ot.prototype.createCustomElementClone=function(It){var Qt=document.createElement("html2canvascustomelement");return xn(It.style,Qt),Qt},Ot.prototype.createStyleClone=function(It){try{var Qt=It.sheet;if(Qt&&Qt.cssRules){var Ht=[].slice.call(Qt.cssRules,0).reduce(function(nn,In){return In&&typeof In.cssText=="string"?nn+In.cssText:nn},""),Le=It.cloneNode(!1);return Le.textContent=Ht,Le}}catch(nn){if(this.context.logger.error("Unable to access cssRules property",nn),nn.name!=="SecurityError")throw nn}return It.cloneNode(!1)},Ot.prototype.createCanvasClone=function(It){var Qt;if(this.options.inlineImages&&It.ownerDocument){var Ht=It.ownerDocument.createElement("img");try{return Ht.src=It.toDataURL(),Ht}catch(Di){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",It)}}var Le=It.cloneNode(!1);try{Le.width=It.width,Le.height=It.height;var nn=It.getContext("2d"),In=Le.getContext("2d");if(In)if(!this.options.allowTaint&&nn)In.putImageData(nn.getImageData(0,0,It.width,It.height),0,0);else{var ti=(Qt=It.getContext("webgl2"))!==null&&Qt!==void 0?Qt:It.getContext("webgl");if(ti){var Rn=ti.getContextAttributes();(Rn==null?void 0:Rn.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",It)}In.drawImage(It,0,0)}return Le}catch(Di){this.context.logger.info("Unable to clone canvas as it is tainted",It)}return Le},Ot.prototype.createVideoClone=function(It){var Qt=It.ownerDocument.createElement("canvas");Qt.width=It.offsetWidth,Qt.height=It.offsetHeight;var Ht=Qt.getContext("2d");try{return Ht&&(Ht.drawImage(It,0,0,Qt.width,Qt.height),this.options.allowTaint||Ht.getImageData(0,0,Qt.width,Qt.height)),Qt}catch(nn){this.context.logger.info("Unable to clone video as it is tainted",It)}var Le=It.ownerDocument.createElement("canvas");return Le.width=It.offsetWidth,Le.height=It.offsetHeight,Le},Ot.prototype.appendChildNode=function(It,Qt,Ht){(!cr(Qt)||!Eh(Qt)&&!Qt.hasAttribute(At)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(Qt)))&&(!this.options.copyStyles||!cr(Qt)||!wh(Qt))&&It.appendChild(this.cloneNode(Qt,Ht))},Ot.prototype.cloneChildNodes=function(It,Qt,Ht){for(var Le=this,nn=It.shadowRoot?It.shadowRoot.firstChild:It.firstChild;nn;nn=nn.nextSibling)if(cr(nn)&&cA(nn)&&typeof nn.assignedNodes=="function"){var In=nn.assignedNodes();In.length&&In.forEach(function(ti){return Le.appendChildNode(Qt,ti,Ht)})}else this.appendChildNode(Qt,nn,Ht)},Ot.prototype.cloneNode=function(It,Qt){if(Ri(It))return document.createTextNode(It.data);if(!It.ownerDocument)return It.cloneNode(!1);var Ht=It.ownerDocument.defaultView;if(Ht&&cr(It)&&(Qr(It)||yo(It))){var Le=this.createElementClone(It);Le.style.transitionProperty="none";var nn=Ht.getComputedStyle(It),In=Ht.getComputedStyle(It,":before"),ti=Ht.getComputedStyle(It,":after");this.referenceElement===It&&Qr(Le)&&(this.clonedReferenceElement=Le),Us(Le)&&ss(Le);var Rn=this.counters.parse(new yl(this.context,nn)),Di=this.resolvePseudoContent(It,Le,In,ne.BEFORE);dA(It)&&(Qt=!0),yu(It)||this.cloneChildNodes(It,Le,Qt),Di&&Le.insertBefore(Di,Le.firstChild);var Qi=this.resolvePseudoContent(It,Le,ti,ne.AFTER);return Qi&&Le.appendChild(Qi),this.counters.pop(Rn),(nn&&(this.options.copyStyles||yo(It))&&!Il(It)||Qt)&&xn(nn,Le),(It.scrollTop!==0||It.scrollLeft!==0)&&this.scrolledElements.push([Le,It.scrollLeft,It.scrollTop]),(oc(It)||Vd(It))&&(oc(Le)||Vd(Le))&&(Le.value=It.value),Le}return It.cloneNode(!1)},Ot.prototype.resolvePseudoContent=function(It,Qt,Ht,Le){var nn=this;if(Ht){var In=Ht.content,ti=Qt.ownerDocument;if(!(!ti||!In||In==="none"||In==="-moz-alt-content"||Ht.display==="none")){this.counters.parse(new yl(this.context,Ht));var Rn=new fa(this.context,Ht),Di=ti.createElement("html2canvaspseudoelement");xn(Ht,Di),Rn.content.forEach(function(vt){if(vt.type===0)Di.appendChild(ti.createTextNode(vt.value));else if(vt.type===22){var Ut=ti.createElement("img");Ut.src=vt.value,Ut.style.opacity="1",Di.appendChild(Ut)}else if(vt.type===18){if(vt.name==="attr"){var me=vt.values.filter(va);me.length&&Di.appendChild(ti.createTextNode(It.getAttribute(me[0].value)||""))}else if(vt.name==="counter"){var Ne=vt.values.filter(Ml),Je=Ne[0],vn=Ne[1];if(Je&&va(Je)){var An=nn.counters.getCounterValue(Je.value),Sn=vn&&va(vn)?hn.parse(nn.context,vn.value):3;Di.appendChild(ti.createTextNode(ft(An,Sn,!1)))}}else if(vt.name==="counters"){var Fn=vt.values.filter(Ml),Je=Fn[0],Kn=Fn[1],vn=Fn[2];if(Je&&va(Je)){var Pi=nn.counters.getCounterValues(Je.value),Ii=vn&&va(vn)?hn.parse(nn.context,vn.value):3,er=Kn&&Kn.type===0?Kn.value:"",Ui=Pi.map(function(ji){return ft(ji,Ii,!1)}).join(er);Di.appendChild(ti.createTextNode(Ui))}}}else if(vt.type===20)switch(vt.value){case"open-quote":Di.appendChild(ti.createTextNode(Ls(Rn.quotes,nn.quoteDepth++,!0)));break;case"close-quote":Di.appendChild(ti.createTextNode(Ls(Rn.quotes,--nn.quoteDepth,!1)));break;default:Di.appendChild(ti.createTextNode(vt.value))}}),Di.className=Co+" "+$o;var Qi=Le===ne.BEFORE?" "+Co:" "+$o;return yo(Qt)?Qt.className.baseValue+=Qi:Qt.className+=Qi,Di}}},Ot.destroy=function(It){return It.parentNode?(It.parentNode.removeChild(It),!0):!1},Ot}(),ne;(function(Ot){Ot[Ot.BEFORE=0]="BEFORE",Ot[Ot.AFTER=1]="AFTER"})(ne||(ne={}));var Be=function(Ot,It){var Qt=Ot.createElement("iframe");return Qt.className="html2canvas-container",Qt.style.visibility="hidden",Qt.style.position="fixed",Qt.style.left="-10000px",Qt.style.top="0px",Qt.style.border="0",Qt.width=It.width.toString(),Qt.height=It.height.toString(),Qt.scrolling="no",Qt.setAttribute(At,"true"),Ot.body.appendChild(Qt),Qt},He=function(Ot){return new Promise(function(It){if(Ot.complete){It();return}if(!Ot.src){It();return}Ot.onload=It,Ot.onerror=It})},_e=function(Ot){return Promise.all([].slice.call(Ot.images,0).map(He))},un=function(Ot){return new Promise(function(It,Qt){var Ht=Ot.contentWindow;if(!Ht)return Qt("No window assigned for iframe");var Le=Ht.document;Ht.onload=Ot.onload=function(){Ht.onload=Ot.onload=null;var nn=setInterval(function(){Le.body.childNodes.length>0&&Le.readyState==="complete"&&(clearInterval(nn),It(Ot))},50)}})},Yn=["all","d","content"],xn=function(Ot,It){for(var Qt=Ot.length-1;Qt>=0;Qt--){var Ht=Ot.item(Qt);Yn.indexOf(Ht)===-1&&It.style.setProperty(Ht,Ot.getPropertyValue(Ht))}return It},Ni=function(Ot){var It="";return Ot&&(It+="<!DOCTYPE ",Ot.name&&(It+=Ot.name),Ot.internalSubset&&(It+=Ot.internalSubset),Ot.publicId&&(It+='"'+Ot.publicId+'"'),Ot.systemId&&(It+='"'+Ot.systemId+'"'),It+=">"),It},Ei=function(Ot,It,Qt){Ot&&Ot.defaultView&&(It!==Ot.defaultView.pageXOffset||Qt!==Ot.defaultView.pageYOffset)&&Ot.defaultView.scrollTo(It,Qt)},Nr=function(Ot){var It=Ot[0],Qt=Ot[1],Ht=Ot[2];It.scrollLeft=Qt,It.scrollTop=Ht},jr=":before",to=":after",Co="___html2canvas___pseudoelement_before",$o="___html2canvas___pseudoelement_after",Do=`{
|
|
|
content: "" !important;
|
|
|
display: none !important;
|
|
|
}`,ss=function(Ot){Ds(Ot,"."+Co+jr+Do+`
|
|
|
.`+$o+to+Do)},Ds=function(Ot,It){var Qt=Ot.ownerDocument;if(Qt){var Ht=Qt.createElement("style");Ht.textContent=It,Ot.appendChild(Ht)}},jo=function(){function Ot(){}return Ot.getOrigin=function(It){var Qt=Ot._link;return Qt?(Qt.href=It,Qt.href=Qt.href,Qt.protocol+Qt.hostname+Qt.port):"about:blank"},Ot.isSameOrigin=function(It){return Ot.getOrigin(It)===Ot._origin},Ot.setContext=function(It){Ot._link=It.document.createElement("a"),Ot._origin=Ot.getOrigin(It.location.href)},Ot._origin="about:blank",Ot}(),Js=function(){function Ot(It,Qt){this.context=It,this._options=Qt,this._cache={}}return Ot.prototype.addImage=function(It){var Qt=Promise.resolve();return this.has(It)||(El(It)||Ja(It))&&(this._cache[It]=this.loadImage(It)).catch(function(){}),Qt},Ot.prototype.match=function(It){return this._cache[It]},Ot.prototype.loadImage=function(It){return ge(this,void 0,void 0,function(){var Qt,Ht,Le,nn,In=this;return se(this,function(ti){switch(ti.label){case 0:return Qt=jo.isSameOrigin(It),Ht=!Ua(It)&&this._options.useCORS===!0&&nu.SUPPORT_CORS_IMAGES&&!Qt,Le=!Ua(It)&&!Qt&&!El(It)&&typeof this._options.proxy=="string"&&nu.SUPPORT_CORS_XHR&&!Ht,!Qt&&this._options.allowTaint===!1&&!Ua(It)&&!El(It)&&!Le&&!Ht?[2]:(nn=It,Le?[4,this.proxy(nn)]:[3,2]);case 1:nn=ti.sent(),ti.label=2;case 2:return this.context.logger.debug("Added image "+It.substring(0,256)),[4,new Promise(function(Rn,Di){var Qi=new Image;Qi.onload=function(){return Rn(Qi)},Qi.onerror=Di,(Za(nn)||Ht)&&(Qi.crossOrigin="anonymous"),Qi.src=nn,Qi.complete===!0&&setTimeout(function(){return Rn(Qi)},500),In._options.imageTimeout>0&&setTimeout(function(){return Di("Timed out ("+In._options.imageTimeout+"ms) loading image")},In._options.imageTimeout)})];case 3:return[2,ti.sent()]}})})},Ot.prototype.has=function(It){return typeof this._cache[It]!="undefined"},Ot.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},Ot.prototype.proxy=function(It){var Qt=this,Ht=this._options.proxy;if(!Ht)throw new Error("No proxy defined");var Le=It.substring(0,256);return new Promise(function(nn,In){var ti=nu.SUPPORT_RESPONSE_TYPE?"blob":"text",Rn=new XMLHttpRequest;Rn.onload=function(){if(Rn.status===200)if(ti==="text")nn(Rn.response);else{var vt=new FileReader;vt.addEventListener("load",function(){return nn(vt.result)},!1),vt.addEventListener("error",function(Ut){return In(Ut)},!1),vt.readAsDataURL(Rn.response)}else In("Failed to proxy resource "+Le+" with status code "+Rn.status)},Rn.onerror=In;var Di=Ht.indexOf("?")>-1?"&":"?";if(Rn.open("GET",""+Ht+Di+"url="+encodeURIComponent(It)+"&responseType="+ti),ti!=="text"&&Rn instanceof XMLHttpRequest&&(Rn.responseType=ti),Qt._options.imageTimeout){var Qi=Qt._options.imageTimeout;Rn.timeout=Qi,Rn.ontimeout=function(){return In("Timed out ("+Qi+"ms) proxying "+Le)}}Rn.send()})},Ot}(),_l=/^data:image\/svg\+xml/i,$l=/^data:image\/.*;base64,/i,fl=/^data:image\/.*/i,Ja=function(Ot){return nu.SUPPORT_SVG_DRAWING||!wu(Ot)},Ua=function(Ot){return fl.test(Ot)},Za=function(Ot){return $l.test(Ot)},El=function(Ot){return Ot.substr(0,4)==="blob"},wu=function(Ot){return Ot.substr(-3).toLowerCase()==="svg"||_l.test(Ot)},Ro=function(){function Ot(It,Qt){this.type=0,this.x=It,this.y=Qt}return Ot.prototype.add=function(It,Qt){return new Ot(this.x+It,this.y+Qt)},Ot}(),Ca=function(Ot,It,Qt){return new Ro(Ot.x+(It.x-Ot.x)*Qt,Ot.y+(It.y-Ot.y)*Qt)},Xl=function(){function Ot(It,Qt,Ht,Le){this.type=1,this.start=It,this.startControl=Qt,this.endControl=Ht,this.end=Le}return Ot.prototype.subdivide=function(It,Qt){var Ht=Ca(this.start,this.startControl,It),Le=Ca(this.startControl,this.endControl,It),nn=Ca(this.endControl,this.end,It),In=Ca(Ht,Le,It),ti=Ca(Le,nn,It),Rn=Ca(In,ti,It);return Qt?new Ot(this.start,Ht,In,Rn):new Ot(Rn,ti,nn,this.end)},Ot.prototype.add=function(It,Qt){return new Ot(this.start.add(It,Qt),this.startControl.add(It,Qt),this.endControl.add(It,Qt),this.end.add(It,Qt))},Ot.prototype.reverse=function(){return new Ot(this.end,this.endControl,this.startControl,this.start)},Ot}(),Hl=function(Ot){return Ot.type===1},Zu=function(){function Ot(It){var Qt=It.styles,Ht=It.bounds,Le=dh(Qt.borderTopLeftRadius,Ht.width,Ht.height),nn=Le[0],In=Le[1],ti=dh(Qt.borderTopRightRadius,Ht.width,Ht.height),Rn=ti[0],Di=ti[1],Qi=dh(Qt.borderBottomRightRadius,Ht.width,Ht.height),vt=Qi[0],Ut=Qi[1],me=dh(Qt.borderBottomLeftRadius,Ht.width,Ht.height),Ne=me[0],Je=me[1],vn=[];vn.push((nn+Rn)/Ht.width),vn.push((Ne+vt)/Ht.width),vn.push((In+Je)/Ht.height),vn.push((Di+Ut)/Ht.height);var An=Math.max.apply(Math,vn);An>1&&(nn/=An,In/=An,Rn/=An,Di/=An,vt/=An,Ut/=An,Ne/=An,Je/=An);var Sn=Ht.width-Rn,Fn=Ht.height-Ut,Kn=Ht.width-vt,Pi=Ht.height-Je,Ii=Qt.borderTopWidth,er=Qt.borderRightWidth,Ui=Qt.borderBottomWidth,Pr=Qt.borderLeftWidth,Mr=Ga(Qt.paddingTop,It.bounds.width),ji=Ga(Qt.paddingRight,It.bounds.width),Gi=Ga(Qt.paddingBottom,It.bounds.width),Dr=Ga(Qt.paddingLeft,It.bounds.width);this.topLeftBorderDoubleOuterBox=nn>0||In>0?zs(Ht.left+Pr/3,Ht.top+Ii/3,nn-Pr/3,In-Ii/3,aa.TOP_LEFT):new Ro(Ht.left+Pr/3,Ht.top+Ii/3),this.topRightBorderDoubleOuterBox=nn>0||In>0?zs(Ht.left+Sn,Ht.top+Ii/3,Rn-er/3,Di-Ii/3,aa.TOP_RIGHT):new Ro(Ht.left+Ht.width-er/3,Ht.top+Ii/3),this.bottomRightBorderDoubleOuterBox=vt>0||Ut>0?zs(Ht.left+Kn,Ht.top+Fn,vt-er/3,Ut-Ui/3,aa.BOTTOM_RIGHT):new Ro(Ht.left+Ht.width-er/3,Ht.top+Ht.height-Ui/3),this.bottomLeftBorderDoubleOuterBox=Ne>0||Je>0?zs(Ht.left+Pr/3,Ht.top+Pi,Ne-Pr/3,Je-Ui/3,aa.BOTTOM_LEFT):new Ro(Ht.left+Pr/3,Ht.top+Ht.height-Ui/3),this.topLeftBorderDoubleInnerBox=nn>0||In>0?zs(Ht.left+Pr*2/3,Ht.top+Ii*2/3,nn-Pr*2/3,In-Ii*2/3,aa.TOP_LEFT):new Ro(Ht.left+Pr*2/3,Ht.top+Ii*2/3),this.topRightBorderDoubleInnerBox=nn>0||In>0?zs(Ht.left+Sn,Ht.top+Ii*2/3,Rn-er*2/3,Di-Ii*2/3,aa.TOP_RIGHT):new Ro(Ht.left+Ht.width-er*2/3,Ht.top+Ii*2/3),this.bottomRightBorderDoubleInnerBox=vt>0||Ut>0?zs(Ht.left+Kn,Ht.top+Fn,vt-er*2/3,Ut-Ui*2/3,aa.BOTTOM_RIGHT):new Ro(Ht.left+Ht.width-er*2/3,Ht.top+Ht.height-Ui*2/3),this.bottomLeftBorderDoubleInnerBox=Ne>0||Je>0?zs(Ht.left+Pr*2/3,Ht.top+Pi,Ne-Pr*2/3,Je-Ui*2/3,aa.BOTTOM_LEFT):new Ro(Ht.left+Pr*2/3,Ht.top+Ht.height-Ui*2/3),this.topLeftBorderStroke=nn>0||In>0?zs(Ht.left+Pr/2,Ht.top+Ii/2,nn-Pr/2,In-Ii/2,aa.TOP_LEFT):new Ro(Ht.left+Pr/2,Ht.top+Ii/2),this.topRightBorderStroke=nn>0||In>0?zs(Ht.left+Sn,Ht.top+Ii/2,Rn-er/2,Di-Ii/2,aa.TOP_RIGHT):new Ro(Ht.left+Ht.width-er/2,Ht.top+Ii/2),this.bottomRightBorderStroke=vt>0||Ut>0?zs(Ht.left+Kn,Ht.top+Fn,vt-er/2,Ut-Ui/2,aa.BOTTOM_RIGHT):new Ro(Ht.left+Ht.width-er/2,Ht.top+Ht.height-Ui/2),this.bottomLeftBorderStroke=Ne>0||Je>0?zs(Ht.left+Pr/2,Ht.top+Pi,Ne-Pr/2,Je-Ui/2,aa.BOTTOM_LEFT):new Ro(Ht.left+Pr/2,Ht.top+Ht.height-Ui/2),this.topLeftBorderBox=nn>0||In>0?zs(Ht.left,Ht.top,nn,In,aa.TOP_LEFT):new Ro(Ht.left,Ht.top),this.topRightBorderBox=Rn>0||Di>0?zs(Ht.left+Sn,Ht.top,Rn,Di,aa.TOP_RIGHT):new Ro(Ht.left+Ht.width,Ht.top),this.bottomRightBorderBox=vt>0||Ut>0?zs(Ht.left+Kn,Ht.top+Fn,vt,Ut,aa.BOTTOM_RIGHT):new Ro(Ht.left+Ht.width,Ht.top+Ht.height),this.bottomLeftBorderBox=Ne>0||Je>0?zs(Ht.left,Ht.top+Pi,Ne,Je,aa.BOTTOM_LEFT):new Ro(Ht.left,Ht.top+Ht.height),this.topLeftPaddingBox=nn>0||In>0?zs(Ht.left+Pr,Ht.top+Ii,Math.max(0,nn-Pr),Math.max(0,In-Ii),aa.TOP_LEFT):new Ro(Ht.left+Pr,Ht.top+Ii),this.topRightPaddingBox=Rn>0||Di>0?zs(Ht.left+Math.min(Sn,Ht.width-er),Ht.top+Ii,Sn>Ht.width+er?0:Math.max(0,Rn-er),Math.max(0,Di-Ii),aa.TOP_RIGHT):new Ro(Ht.left+Ht.width-er,Ht.top+Ii),this.bottomRightPaddingBox=vt>0||Ut>0?zs(Ht.left+Math.min(Kn,Ht.width-Pr),Ht.top+Math.min(Fn,Ht.height-Ui),Math.max(0,vt-er),Math.max(0,Ut-Ui),aa.BOTTOM_RIGHT):new Ro(Ht.left+Ht.width-er,Ht.top+Ht.height-Ui),this.bottomLeftPaddingBox=Ne>0||Je>0?zs(Ht.left+Pr,Ht.top+Math.min(Pi,Ht.height-Ui),Math.max(0,Ne-Pr),Math.max(0,Je-Ui),aa.BOTTOM_LEFT):new Ro(Ht.left+Pr,Ht.top+Ht.height-Ui),this.topLeftContentBox=nn>0||In>0?zs(Ht.left+Pr+Dr,Ht.top+Ii+Mr,Math.max(0,nn-(Pr+Dr)),Math.max(0,In-(Ii+Mr)),aa.TOP_LEFT):new Ro(Ht.left+Pr+Dr,Ht.top+Ii+Mr),this.topRightContentBox=Rn>0||Di>0?zs(Ht.left+Math.min(Sn,Ht.width+Pr+Dr),Ht.top+Ii+Mr,Sn>Ht.width+Pr+Dr?0:Rn-Pr+Dr,Di-(Ii+Mr),aa.TOP_RIGHT):new Ro(Ht.left+Ht.width-(er+ji),Ht.top+Ii+Mr),this.bottomRightContentBox=vt>0||Ut>0?zs(Ht.left+Math.min(Kn,Ht.width-(Pr+Dr)),Ht.top+Math.min(Fn,Ht.height+Ii+Mr),Math.max(0,vt-(er+ji)),Ut-(Ui+Gi),aa.BOTTOM_RIGHT):new Ro(Ht.left+Ht.width-(er+ji),Ht.top+Ht.height-(Ui+Gi)),this.bottomLeftContentBox=Ne>0||Je>0?zs(Ht.left+Pr+Dr,Ht.top+Pi,Math.max(0,Ne-(Pr+Dr)),Je-(Ui+Gi),aa.BOTTOM_LEFT):new Ro(Ht.left+Pr+Dr,Ht.top+Ht.height-(Ui+Gi))}return Ot}(),aa;(function(Ot){Ot[Ot.TOP_LEFT=0]="TOP_LEFT",Ot[Ot.TOP_RIGHT=1]="TOP_RIGHT",Ot[Ot.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",Ot[Ot.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(aa||(aa={}));var zs=function(Ot,It,Qt,Ht,Le){var nn=4*((Math.sqrt(2)-1)/3),In=Qt*nn,ti=Ht*nn,Rn=Ot+Qt,Di=It+Ht;switch(Le){case aa.TOP_LEFT:return new Xl(new Ro(Ot,Di),new Ro(Ot,Di-ti),new Ro(Rn-In,It),new Ro(Rn,It));case aa.TOP_RIGHT:return new Xl(new Ro(Ot,It),new Ro(Ot+In,It),new Ro(Rn,Di-ti),new Ro(Rn,Di));case aa.BOTTOM_RIGHT:return new Xl(new Ro(Rn,It),new Ro(Rn,It+ti),new Ro(Ot+In,Di),new Ro(Ot,Di));case aa.BOTTOM_LEFT:default:return new Xl(new Ro(Rn,Di),new Ro(Rn-In,Di),new Ro(Ot,It+ti),new Ro(Ot,It))}},ch=function(Ot){return[Ot.topLeftBorderBox,Ot.topRightBorderBox,Ot.bottomRightBorderBox,Ot.bottomLeftBorderBox]},fu=function(Ot){return[Ot.topLeftContentBox,Ot.topRightContentBox,Ot.bottomRightContentBox,Ot.bottomLeftContentBox]},Xd=function(Ot){return[Ot.topLeftPaddingBox,Ot.topRightPaddingBox,Ot.bottomRightPaddingBox,Ot.bottomLeftPaddingBox]},Fh=function(){function Ot(It,Qt,Ht){this.offsetX=It,this.offsetY=Qt,this.matrix=Ht,this.type=0,this.target=6}return Ot}(),eh=function(){function Ot(It,Qt){this.path=It,this.target=Qt,this.type=1}return Ot}(),xh=function(){function Ot(It){this.opacity=It,this.type=2,this.target=6}return Ot}(),Ql=function(Ot){return Ot.type===0},Hu=function(Ot){return Ot.type===1},qc=function(Ot){return Ot.type===2},Md=function(Ot,It){return Ot.length===It.length?Ot.some(function(Qt,Ht){return Qt===It[Ht]}):!1},Cg=function(Ot,It,Qt,Ht,Le){return Ot.map(function(nn,In){switch(In){case 0:return nn.add(It,Qt);case 1:return nn.add(It+Ht,Qt);case 2:return nn.add(It+Ht,Qt+Le);case 3:return nn.add(It,Qt+Le)}return nn})},Hh=function(){function Ot(It){this.element=It,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return Ot}(),Bg=function(){function Ot(It,Qt){if(this.container=It,this.parent=Qt,this.effects=[],this.curves=new Zu(this.container),this.container.styles.opacity<1&&this.effects.push(new xh(this.container.styles.opacity)),this.container.styles.transform!==null){var Ht=this.container.bounds.left+this.container.styles.transformOrigin[0].number,Le=this.container.bounds.top+this.container.styles.transformOrigin[1].number,nn=this.container.styles.transform;this.effects.push(new Fh(Ht,Le,nn))}if(this.container.styles.overflowX!==0){var In=ch(this.curves),ti=Xd(this.curves);Md(In,ti)?this.effects.push(new eh(In,6)):(this.effects.push(new eh(In,2)),this.effects.push(new eh(ti,4)))}}return Ot.prototype.getEffects=function(It){for(var Qt=[2,3].indexOf(this.container.styles.position)===-1,Ht=this.parent,Le=this.effects.slice(0);Ht;){var nn=Ht.effects.filter(function(Rn){return!Hu(Rn)});if(Qt||Ht.container.styles.position!==0||!Ht.parent){if(Le.unshift.apply(Le,nn),Qt=[2,3].indexOf(Ht.container.styles.position)===-1,Ht.container.styles.overflowX!==0){var In=ch(Ht.curves),ti=Xd(Ht.curves);Md(In,ti)||Le.unshift(new eh(ti,6))}}else Le.unshift.apply(Le,nn);Ht=Ht.parent}return Le.filter(function(Rn){return Po(Rn.target,It)})},Ot}(),dd=function(Ot,It,Qt,Ht){Ot.container.elements.forEach(function(Le){var nn=Po(Le.flags,4),In=Po(Le.flags,2),ti=new Bg(Le,Ot);Po(Le.styles.display,2048)&&Ht.push(ti);var Rn=Po(Le.flags,8)?[]:Ht;if(nn||In){var Di=nn||Le.styles.isPositioned()?Qt:It,Qi=new Hh(ti);if(Le.styles.isPositioned()||Le.styles.opacity<1||Le.styles.isTransformed()){var vt=Le.styles.zIndex.order;if(vt<0){var Ut=0;Di.negativeZIndex.some(function(Ne,Je){return vt>Ne.element.container.styles.zIndex.order?(Ut=Je,!1):Ut>0}),Di.negativeZIndex.splice(Ut,0,Qi)}else if(vt>0){var me=0;Di.positiveZIndex.some(function(Ne,Je){return vt>=Ne.element.container.styles.zIndex.order?(me=Je+1,!1):me>0}),Di.positiveZIndex.splice(me,0,Qi)}else Di.zeroOrAutoZIndexOrTransformedOrOpacity.push(Qi)}else Le.styles.isFloating()?Di.nonPositionedFloats.push(Qi):Di.nonPositionedInlineLevel.push(Qi);dd(ti,Qi,nn?Qi:Qt,Rn)}else Le.styles.isInlineLevel()?It.inlineLevel.push(ti):It.nonInlineLevel.push(ti),dd(ti,It,Qt,Rn);Po(Le.flags,8)&&Wf(Le,Rn)})},Wf=function(Ot,It){for(var Qt=Ot instanceof FA?Ot.start:1,Ht=Ot instanceof FA?Ot.reversed:!1,Le=0;Le<It.length;Le++){var nn=It[Le];nn.container instanceof gc&&typeof nn.container.value=="number"&&nn.container.value!==0&&(Qt=nn.container.value),nn.listValue=ft(Qt,nn.container.styles.listStyleType,!0),Qt+=Ht?-1:1}},yf=function(Ot){var It=new Bg(Ot,null),Qt=new Hh(It),Ht=[];return dd(It,Qt,Qt,Ht),Wf(It.container,Ht),Qt},GA=function(Ot,It){switch(It){case 0:return Pu(Ot.topLeftBorderBox,Ot.topLeftPaddingBox,Ot.topRightBorderBox,Ot.topRightPaddingBox);case 1:return Pu(Ot.topRightBorderBox,Ot.topRightPaddingBox,Ot.bottomRightBorderBox,Ot.bottomRightPaddingBox);case 2:return Pu(Ot.bottomRightBorderBox,Ot.bottomRightPaddingBox,Ot.bottomLeftBorderBox,Ot.bottomLeftPaddingBox);case 3:default:return Pu(Ot.bottomLeftBorderBox,Ot.bottomLeftPaddingBox,Ot.topLeftBorderBox,Ot.topLeftPaddingBox)}},MA=function(Ot,It){switch(It){case 0:return Pu(Ot.topLeftBorderBox,Ot.topLeftBorderDoubleOuterBox,Ot.topRightBorderBox,Ot.topRightBorderDoubleOuterBox);case 1:return Pu(Ot.topRightBorderBox,Ot.topRightBorderDoubleOuterBox,Ot.bottomRightBorderBox,Ot.bottomRightBorderDoubleOuterBox);case 2:return Pu(Ot.bottomRightBorderBox,Ot.bottomRightBorderDoubleOuterBox,Ot.bottomLeftBorderBox,Ot.bottomLeftBorderDoubleOuterBox);case 3:default:return Pu(Ot.bottomLeftBorderBox,Ot.bottomLeftBorderDoubleOuterBox,Ot.topLeftBorderBox,Ot.topLeftBorderDoubleOuterBox)}},Vf=function(Ot,It){switch(It){case 0:return Pu(Ot.topLeftBorderDoubleInnerBox,Ot.topLeftPaddingBox,Ot.topRightBorderDoubleInnerBox,Ot.topRightPaddingBox);case 1:return Pu(Ot.topRightBorderDoubleInnerBox,Ot.topRightPaddingBox,Ot.bottomRightBorderDoubleInnerBox,Ot.bottomRightPaddingBox);case 2:return Pu(Ot.bottomRightBorderDoubleInnerBox,Ot.bottomRightPaddingBox,Ot.bottomLeftBorderDoubleInnerBox,Ot.bottomLeftPaddingBox);case 3:default:return Pu(Ot.bottomLeftBorderDoubleInnerBox,Ot.bottomLeftPaddingBox,Ot.topLeftBorderDoubleInnerBox,Ot.topLeftPaddingBox)}},fA=function(Ot,It){switch(It){case 0:return Nd(Ot.topLeftBorderStroke,Ot.topRightBorderStroke);case 1:return Nd(Ot.topRightBorderStroke,Ot.bottomRightBorderStroke);case 2:return Nd(Ot.bottomRightBorderStroke,Ot.bottomLeftBorderStroke);case 3:default:return Nd(Ot.bottomLeftBorderStroke,Ot.topLeftBorderStroke)}},Nd=function(Ot,It){var Qt=[];return Hl(Ot)?Qt.push(Ot.subdivide(.5,!1)):Qt.push(Ot),Hl(It)?Qt.push(It.subdivide(.5,!0)):Qt.push(It),Qt},Pu=function(Ot,It,Qt,Ht){var Le=[];return Hl(Ot)?Le.push(Ot.subdivide(.5,!1)):Le.push(Ot),Hl(Qt)?Le.push(Qt.subdivide(.5,!0)):Le.push(Qt),Hl(Ht)?Le.push(Ht.subdivide(.5,!0).reverse()):Le.push(Ht),Hl(It)?Le.push(It.subdivide(.5,!1).reverse()):Le.push(It),Le},Sh=function(Ot){var It=Ot.bounds,Qt=Ot.styles;return It.add(Qt.borderLeftWidth,Qt.borderTopWidth,-(Qt.borderRightWidth+Qt.borderLeftWidth),-(Qt.borderTopWidth+Qt.borderBottomWidth))},Zf=function(Ot){var It=Ot.styles,Qt=Ot.bounds,Ht=Ga(It.paddingLeft,Qt.width),Le=Ga(It.paddingRight,Qt.width),nn=Ga(It.paddingTop,Qt.width),In=Ga(It.paddingBottom,Qt.width);return Qt.add(Ht+It.borderLeftWidth,nn+It.borderTopWidth,-(It.borderRightWidth+It.borderLeftWidth+Ht+Le),-(It.borderTopWidth+It.borderBottomWidth+nn+In))},Kg=function(Ot,It){return Ot===0?It.bounds:Ot===2?Zf(It):Sh(It)},wp=function(Ot,It){return Ot===0?It.bounds:Ot===2?Zf(It):Sh(It)},WA=function(Ot,It,Qt){var Ht=Kg(Qh(Ot.styles.backgroundOrigin,It),Ot),Le=wp(Qh(Ot.styles.backgroundClip,It),Ot),nn=NA(Qh(Ot.styles.backgroundSize,It),Qt,Ht),In=nn[0],ti=nn[1],Rn=dh(Qh(Ot.styles.backgroundPosition,It),Ht.width-In,Ht.height-ti),Di=Ad(Qh(Ot.styles.backgroundRepeat,It),Rn,nn,Ht,Le),Qi=Math.round(Ht.left+Rn[0]),vt=Math.round(Ht.top+Rn[1]);return[Di,Qi,vt,In,ti]},VA=function(Ot){return va(Ot)&&Ot.value===le.AUTO},Yf=function(Ot){return typeof Ot=="number"},NA=function(Ot,It,Qt){var Ht=It[0],Le=It[1],nn=It[2],In=Ot[0],ti=Ot[1];if(!In)return[0,0];if(Io(In)&&ti&&Io(ti))return[Ga(In,Qt.width),Ga(ti,Qt.height)];var Rn=Yf(nn);if(va(In)&&(In.value===le.CONTAIN||In.value===le.COVER)){if(Yf(nn)){var Di=Qt.width/Qt.height;return Di<nn!=(In.value===le.COVER)?[Qt.width,Qt.width/nn]:[Qt.height*nn,Qt.height]}return[Qt.width,Qt.height]}var Qi=Yf(Ht),vt=Yf(Le),Ut=Qi||vt;if(VA(In)&&(!ti||VA(ti))){if(Qi&&vt)return[Ht,Le];if(!Rn&&!Ut)return[Qt.width,Qt.height];if(Ut&&Rn){var me=Qi?Ht:Le*nn,Ne=vt?Le:Ht/nn;return[me,Ne]}var Je=Qi?Ht:Qt.width,vn=vt?Le:Qt.height;return[Je,vn]}if(Rn){var An=0,Sn=0;return Io(In)?An=Ga(In,Qt.width):Io(ti)&&(Sn=Ga(ti,Qt.height)),VA(In)?An=Sn*nn:(!ti||VA(ti))&&(Sn=An/nn),[An,Sn]}var Fn=null,Kn=null;if(Io(In)?Fn=Ga(In,Qt.width):ti&&Io(ti)&&(Kn=Ga(ti,Qt.height)),Fn!==null&&(!ti||VA(ti))&&(Kn=Qi&&vt?Fn/Ht*Le:Qt.height),Kn!==null&&VA(In)&&(Fn=Qi&&vt?Kn/Le*Ht:Qt.width),Fn!==null&&Kn!==null)return[Fn,Kn];throw new Error("Unable to calculate background-size for element")},Qh=function(Ot,It){var Qt=Ot[It];return typeof Qt=="undefined"?Ot[0]:Qt},Ad=function(Ot,It,Qt,Ht,Le){var nn=It[0],In=It[1],ti=Qt[0],Rn=Qt[1];switch(Ot){case 2:return[new Ro(Math.round(Ht.left),Math.round(Ht.top+In)),new Ro(Math.round(Ht.left+Ht.width),Math.round(Ht.top+In)),new Ro(Math.round(Ht.left+Ht.width),Math.round(Rn+Ht.top+In)),new Ro(Math.round(Ht.left),Math.round(Rn+Ht.top+In))];case 3:return[new Ro(Math.round(Ht.left+nn),Math.round(Ht.top)),new Ro(Math.round(Ht.left+nn+ti),Math.round(Ht.top)),new Ro(Math.round(Ht.left+nn+ti),Math.round(Ht.height+Ht.top)),new Ro(Math.round(Ht.left+nn),Math.round(Ht.height+Ht.top))];case 1:return[new Ro(Math.round(Ht.left+nn),Math.round(Ht.top+In)),new Ro(Math.round(Ht.left+nn+ti),Math.round(Ht.top+In)),new Ro(Math.round(Ht.left+nn+ti),Math.round(Ht.top+In+Rn)),new Ro(Math.round(Ht.left+nn),Math.round(Ht.top+In+Rn))];default:return[new Ro(Math.round(Le.left),Math.round(Le.top)),new Ro(Math.round(Le.left+Le.width),Math.round(Le.top)),new Ro(Math.round(Le.left+Le.width),Math.round(Le.height+Le.top)),new Ro(Math.round(Le.left),Math.round(Le.height+Le.top))]}},Pg="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",td="Hidden Text",zh=function(){function Ot(It){this._data={},this._document=It}return Ot.prototype.parseMetrics=function(It,Qt){var Ht=this._document.createElement("div"),Le=this._document.createElement("img"),nn=this._document.createElement("span"),In=this._document.body;Ht.style.visibility="hidden",Ht.style.fontFamily=It,Ht.style.fontSize=Qt,Ht.style.margin="0",Ht.style.padding="0",Ht.style.whiteSpace="nowrap",In.appendChild(Ht),Le.src=Pg,Le.width=1,Le.height=1,Le.style.margin="0",Le.style.padding="0",Le.style.verticalAlign="baseline",nn.style.fontFamily=It,nn.style.fontSize=Qt,nn.style.margin="0",nn.style.padding="0",nn.appendChild(this._document.createTextNode(td)),Ht.appendChild(nn),Ht.appendChild(Le);var ti=Le.offsetTop-nn.offsetTop+2;Ht.removeChild(nn),Ht.appendChild(this._document.createTextNode(td)),Ht.style.lineHeight="normal",Le.style.verticalAlign="super";var Rn=Le.offsetTop-Ht.offsetTop+2;return In.removeChild(Ht),{baseline:ti,middle:Rn}},Ot.prototype.getMetrics=function(It,Qt){var Ht=It+" "+Qt;return typeof this._data[Ht]=="undefined"&&(this._data[Ht]=this.parseMetrics(It,Qt)),this._data[Ht]},Ot}(),vc=function(){function Ot(It,Qt){this.context=It,this.options=Qt}return Ot}(),yc=1e4,ZA=function(Ot){Bt(It,Ot);function It(Qt,Ht){var Le=Ot.call(this,Qt,Ht)||this;return Le._activeEffects=[],Le.canvas=Ht.canvas?Ht.canvas:document.createElement("canvas"),Le.ctx=Le.canvas.getContext("2d"),Ht.canvas||(Le.canvas.width=Math.floor(Ht.width*Ht.scale),Le.canvas.height=Math.floor(Ht.height*Ht.scale),Le.canvas.style.width=Ht.width+"px",Le.canvas.style.height=Ht.height+"px"),Le.fontMetrics=new zh(document),Le.ctx.scale(Le.options.scale,Le.options.scale),Le.ctx.translate(-Ht.x,-Ht.y),Le.ctx.textBaseline="bottom",Le._activeEffects=[],Le.context.logger.debug("Canvas renderer initialized ("+Ht.width+"x"+Ht.height+") with scale "+Ht.scale),Le}return It.prototype.applyEffects=function(Qt){for(var Ht=this;this._activeEffects.length;)this.popEffect();Qt.forEach(function(Le){return Ht.applyEffect(Le)})},It.prototype.applyEffect=function(Qt){this.ctx.save(),qc(Qt)&&(this.ctx.globalAlpha=Qt.opacity),Ql(Qt)&&(this.ctx.translate(Qt.offsetX,Qt.offsetY),this.ctx.transform(Qt.matrix[0],Qt.matrix[1],Qt.matrix[2],Qt.matrix[3],Qt.matrix[4],Qt.matrix[5]),this.ctx.translate(-Qt.offsetX,-Qt.offsetY)),Hu(Qt)&&(this.path(Qt.path),this.ctx.clip()),this._activeEffects.push(Qt)},It.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},It.prototype.renderStack=function(Qt){return ge(this,void 0,void 0,function(){var Ht;return se(this,function(Le){switch(Le.label){case 0:return Ht=Qt.element.container.styles,Ht.isVisible()?[4,this.renderStackContent(Qt)]:[3,2];case 1:Le.sent(),Le.label=2;case 2:return[2]}})})},It.prototype.renderNode=function(Qt){return ge(this,void 0,void 0,function(){return se(this,function(Ht){switch(Ht.label){case 0:if(Po(Qt.container.flags,16))debugger;return Qt.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(Qt)]:[3,3];case 1:return Ht.sent(),[4,this.renderNodeContent(Qt)];case 2:Ht.sent(),Ht.label=3;case 3:return[2]}})})},It.prototype.renderTextWithLetterSpacing=function(Qt,Ht,Le){var nn=this;if(Ht===0)this.ctx.fillText(Qt.text,Qt.bounds.left,Qt.bounds.top+Le);else{var In=hl(Qt.text);In.reduce(function(ti,Rn){return nn.ctx.fillText(Rn,ti,Qt.bounds.top+Le),ti+nn.ctx.measureText(Rn).width},Qt.bounds.left)}},It.prototype.createFontStyle=function(Qt){var Ht=Qt.fontVariant.filter(function(In){return In==="normal"||In==="small-caps"}).join(""),Le=Sp(Qt.fontFamily).join(", "),nn=au(Qt.fontSize)?""+Qt.fontSize.number+Qt.fontSize.unit:Qt.fontSize.number+"px";return[[Qt.fontStyle,Ht,Qt.fontWeight,nn,Le].join(" "),Le,nn]},It.prototype.renderTextNode=function(Qt,Ht){return ge(this,void 0,void 0,function(){var Le,nn,In,ti,Rn,Di,Qi,vt,Ut=this;return se(this,function(me){return Le=this.createFontStyle(Ht),nn=Le[0],In=Le[1],ti=Le[2],this.ctx.font=nn,this.ctx.direction=Ht.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",Rn=this.fontMetrics.getMetrics(In,ti),Di=Rn.baseline,Qi=Rn.middle,vt=Ht.paintOrder,Qt.textBounds.forEach(function(Ne){vt.forEach(function(Je){switch(Je){case 0:Ut.ctx.fillStyle=Aa(Ht.color),Ut.renderTextWithLetterSpacing(Ne,Ht.letterSpacing,Di);var vn=Ht.textShadow;vn.length&&Ne.text.trim().length&&(vn.slice(0).reverse().forEach(function(An){Ut.ctx.shadowColor=Aa(An.color),Ut.ctx.shadowOffsetX=An.offsetX.number*Ut.options.scale,Ut.ctx.shadowOffsetY=An.offsetY.number*Ut.options.scale,Ut.ctx.shadowBlur=An.blur.number,Ut.renderTextWithLetterSpacing(Ne,Ht.letterSpacing,Di)}),Ut.ctx.shadowColor="",Ut.ctx.shadowOffsetX=0,Ut.ctx.shadowOffsetY=0,Ut.ctx.shadowBlur=0),Ht.textDecorationLine.length&&(Ut.ctx.fillStyle=Aa(Ht.textDecorationColor||Ht.color),Ht.textDecorationLine.forEach(function(An){switch(An){case 1:Ut.ctx.fillRect(Ne.bounds.left,Math.round(Ne.bounds.top+Di),Ne.bounds.width,1);break;case 2:Ut.ctx.fillRect(Ne.bounds.left,Math.round(Ne.bounds.top),Ne.bounds.width,1);break;case 3:Ut.ctx.fillRect(Ne.bounds.left,Math.ceil(Ne.bounds.top+Qi),Ne.bounds.width,1);break}}));break;case 1:Ht.webkitTextStrokeWidth&&Ne.text.trim().length&&(Ut.ctx.strokeStyle=Aa(Ht.webkitTextStrokeColor),Ut.ctx.lineWidth=Ht.webkitTextStrokeWidth,Ut.ctx.lineJoin=window.chrome?"miter":"round",Ut.ctx.strokeText(Ne.text,Ne.bounds.left,Ne.bounds.top+Di)),Ut.ctx.strokeStyle="",Ut.ctx.lineWidth=0,Ut.ctx.lineJoin="miter";break}})}),[2]})})},It.prototype.renderReplacedElement=function(Qt,Ht,Le){if(Le&&Qt.intrinsicWidth>0&&Qt.intrinsicHeight>0){var nn=Zf(Qt),In=Xd(Ht);this.path(In),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(Le,0,0,Qt.intrinsicWidth,Qt.intrinsicHeight,nn.left,nn.top,nn.width,nn.height),this.ctx.restore()}},It.prototype.renderNodeContent=function(Qt){return ge(this,void 0,void 0,function(){var Ht,Le,nn,In,ti,Rn,Sn,Sn,Di,Qi,vt,Ut,Kn,me,Ne,Pi,Je,vn,An,Sn,Fn,Kn,Pi;return se(this,function(Ii){switch(Ii.label){case 0:this.applyEffects(Qt.getEffects(4)),Ht=Qt.container,Le=Qt.curves,nn=Ht.styles,In=0,ti=Ht.textNodes,Ii.label=1;case 1:return In<ti.length?(Rn=ti[In],[4,this.renderTextNode(Rn,nn)]):[3,4];case 2:Ii.sent(),Ii.label=3;case 3:return In++,[3,1];case 4:if(!(Ht instanceof Jc))return[3,8];Ii.label=5;case 5:return Ii.trys.push([5,7,,8]),[4,this.context.cache.match(Ht.src)];case 6:return Sn=Ii.sent(),this.renderReplacedElement(Ht,Le,Sn),[3,8];case 7:return Ii.sent(),this.context.logger.error("Error loading image "+Ht.src),[3,8];case 8:if(Ht instanceof ic&&this.renderReplacedElement(Ht,Le,Ht.canvas),!(Ht instanceof Kd))return[3,12];Ii.label=9;case 9:return Ii.trys.push([9,11,,12]),[4,this.context.cache.match(Ht.svg)];case 10:return Sn=Ii.sent(),this.renderReplacedElement(Ht,Le,Sn),[3,12];case 11:return Ii.sent(),this.context.logger.error("Error loading svg "+Ht.svg.substring(0,255)),[3,12];case 12:return Ht instanceof Wd&&Ht.tree?(Di=new It(this.context,{scale:this.options.scale,backgroundColor:Ht.backgroundColor,x:0,y:0,width:Ht.width,height:Ht.height}),[4,Di.render(Ht.tree)]):[3,14];case 13:Qi=Ii.sent(),Ht.width&&Ht.height&&this.ctx.drawImage(Qi,0,0,Ht.width,Ht.height,Ht.bounds.left,Ht.bounds.top,Ht.bounds.width,Ht.bounds.height),Ii.label=14;case 14:if(Ht instanceof Rh&&(vt=Math.min(Ht.bounds.width,Ht.bounds.height),Ht.type===Gd?Ht.checked&&(this.ctx.save(),this.path([new Ro(Ht.bounds.left+vt*.39363,Ht.bounds.top+vt*.79),new Ro(Ht.bounds.left+vt*.16,Ht.bounds.top+vt*.5549),new Ro(Ht.bounds.left+vt*.27347,Ht.bounds.top+vt*.44071),new Ro(Ht.bounds.left+vt*.39694,Ht.bounds.top+vt*.5649),new Ro(Ht.bounds.left+vt*.72983,Ht.bounds.top+vt*.23),new Ro(Ht.bounds.left+vt*.84,Ht.bounds.top+vt*.34085),new Ro(Ht.bounds.left+vt*.39363,Ht.bounds.top+vt*.79)]),this.ctx.fillStyle=Aa(hA),this.ctx.fill(),this.ctx.restore()):Ht.type===pc&&Ht.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(Ht.bounds.left+vt/2,Ht.bounds.top+vt/2,vt/4,0,Math.PI*2,!0),this.ctx.fillStyle=Aa(hA),this.ctx.fill(),this.ctx.restore())),xp(Ht)&&Ht.value.length){switch(Ut=this.createFontStyle(nn),Kn=Ut[0],me=Ut[1],Ne=this.fontMetrics.getMetrics(Kn,me).baseline,this.ctx.font=Kn,this.ctx.fillStyle=Aa(nn.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Rs(Ht.styles.textAlign),Pi=Zf(Ht),Je=0,Ht.styles.textAlign){case 1:Je+=Pi.width/2;break;case 2:Je+=Pi.width;break}vn=Pi.add(Je,0,0,-Pi.height/2+1),this.ctx.save(),this.path([new Ro(Pi.left,Pi.top),new Ro(Pi.left+Pi.width,Pi.top),new Ro(Pi.left+Pi.width,Pi.top+Pi.height),new Ro(Pi.left,Pi.top+Pi.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new cu(Ht.value,vn),nn.letterSpacing,Ne),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Po(Ht.styles.display,2048))return[3,20];if(Ht.styles.listStyleImage===null)return[3,19];if(An=Ht.styles.listStyleImage,An.type!==0)return[3,18];Sn=void 0,Fn=An.url,Ii.label=15;case 15:return Ii.trys.push([15,17,,18]),[4,this.context.cache.match(Fn)];case 16:return Sn=Ii.sent(),this.ctx.drawImage(Sn,Ht.bounds.left-(Sn.width+10),Ht.bounds.top),[3,18];case 17:return Ii.sent(),this.context.logger.error("Error loading list-style-image "+Fn),[3,18];case 18:return[3,20];case 19:Qt.listValue&&Ht.styles.listStyleType!==-1&&(Kn=this.createFontStyle(nn)[0],this.ctx.font=Kn,this.ctx.fillStyle=Aa(nn.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",Pi=new ie(Ht.bounds.left,Ht.bounds.top+Ga(Ht.styles.paddingTop,Ht.bounds.width),Ht.bounds.width,Dn(nn.lineHeight,nn.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new cu(Qt.listValue,Pi),nn.letterSpacing,Dn(nn.lineHeight,nn.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),Ii.label=20;case 20:return[2]}})})},It.prototype.renderStackContent=function(Qt){return ge(this,void 0,void 0,function(){var Ht,Le,An,nn,In,An,ti,Rn,An,Di,Qi,An,vt,Ut,An,me,Ne,An,Je,vn,An;return se(this,function(Sn){switch(Sn.label){case 0:if(Po(Qt.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(Qt.element)];case 1:Sn.sent(),Ht=0,Le=Qt.negativeZIndex,Sn.label=2;case 2:return Ht<Le.length?(An=Le[Ht],[4,this.renderStack(An)]):[3,5];case 3:Sn.sent(),Sn.label=4;case 4:return Ht++,[3,2];case 5:return[4,this.renderNodeContent(Qt.element)];case 6:Sn.sent(),nn=0,In=Qt.nonInlineLevel,Sn.label=7;case 7:return nn<In.length?(An=In[nn],[4,this.renderNode(An)]):[3,10];case 8:Sn.sent(),Sn.label=9;case 9:return nn++,[3,7];case 10:ti=0,Rn=Qt.nonPositionedFloats,Sn.label=11;case 11:return ti<Rn.length?(An=Rn[ti],[4,this.renderStack(An)]):[3,14];case 12:Sn.sent(),Sn.label=13;case 13:return ti++,[3,11];case 14:Di=0,Qi=Qt.nonPositionedInlineLevel,Sn.label=15;case 15:return Di<Qi.length?(An=Qi[Di],[4,this.renderStack(An)]):[3,18];case 16:Sn.sent(),Sn.label=17;case 17:return Di++,[3,15];case 18:vt=0,Ut=Qt.inlineLevel,Sn.label=19;case 19:return vt<Ut.length?(An=Ut[vt],[4,this.renderNode(An)]):[3,22];case 20:Sn.sent(),Sn.label=21;case 21:return vt++,[3,19];case 22:me=0,Ne=Qt.zeroOrAutoZIndexOrTransformedOrOpacity,Sn.label=23;case 23:return me<Ne.length?(An=Ne[me],[4,this.renderStack(An)]):[3,26];case 24:Sn.sent(),Sn.label=25;case 25:return me++,[3,23];case 26:Je=0,vn=Qt.positiveZIndex,Sn.label=27;case 27:return Je<vn.length?(An=vn[Je],[4,this.renderStack(An)]):[3,30];case 28:Sn.sent(),Sn.label=29;case 29:return Je++,[3,27];case 30:return[2]}})})},It.prototype.mask=function(Qt){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(Qt.slice(0).reverse()),this.ctx.closePath()},It.prototype.path=function(Qt){this.ctx.beginPath(),this.formatPath(Qt),this.ctx.closePath()},It.prototype.formatPath=function(Qt){var Ht=this;Qt.forEach(function(Le,nn){var In=Hl(Le)?Le.start:Le;nn===0?Ht.ctx.moveTo(In.x,In.y):Ht.ctx.lineTo(In.x,In.y),Hl(Le)&&Ht.ctx.bezierCurveTo(Le.startControl.x,Le.startControl.y,Le.endControl.x,Le.endControl.y,Le.end.x,Le.end.y)})},It.prototype.renderRepeat=function(Qt,Ht,Le,nn){this.path(Qt),this.ctx.fillStyle=Ht,this.ctx.translate(Le,nn),this.ctx.fill(),this.ctx.translate(-Le,-nn)},It.prototype.resizeImage=function(Qt,Ht,Le){var nn;if(Qt.width===Ht&&Qt.height===Le)return Qt;var In=(nn=this.canvas.ownerDocument)!==null&&nn!==void 0?nn:document,ti=In.createElement("canvas");ti.width=Math.max(1,Ht),ti.height=Math.max(1,Le);var Rn=ti.getContext("2d");return Rn.drawImage(Qt,0,0,Qt.width,Qt.height,0,0,Ht,Le),ti},It.prototype.renderBackgroundImage=function(Qt){return ge(this,void 0,void 0,function(){var Ht,Le,nn,In,ti,Rn;return se(this,function(Di){switch(Di.label){case 0:Ht=Qt.styles.backgroundImage.length-1,Le=function(Qi){var vt,Ut,me,Mr,es,Wo,Dr,eo,Ui,Ne,Mr,es,Wo,Dr,eo,Je,vn,An,Sn,Fn,Kn,Pi,Ii,er,Ui,Pr,Mr,ji,Gi,Dr,eo,ro,es,Wo,Ks,qn,gl,kl,rl,Qa,zl,Ha;return se(this,function(ua){switch(ua.label){case 0:if(Qi.type!==0)return[3,5];vt=void 0,Ut=Qi.url,ua.label=1;case 1:return ua.trys.push([1,3,,4]),[4,nn.context.cache.match(Ut)];case 2:return vt=ua.sent(),[3,4];case 3:return ua.sent(),nn.context.logger.error("Error loading background-image "+Ut),[3,4];case 4:return vt&&(me=WA(Qt,Ht,[vt.width,vt.height,vt.width/vt.height]),Mr=me[0],es=me[1],Wo=me[2],Dr=me[3],eo=me[4],Ui=nn.ctx.createPattern(nn.resizeImage(vt,Dr,eo),"repeat"),nn.renderRepeat(Mr,Ui,es,Wo)),[3,6];case 5:xd(Qi)?(Ne=WA(Qt,Ht,[null,null,null]),Mr=Ne[0],es=Ne[1],Wo=Ne[2],Dr=Ne[3],eo=Ne[4],Je=tc(Qi.angle,Dr,eo),vn=Je[0],An=Je[1],Sn=Je[2],Fn=Je[3],Kn=Je[4],Pi=document.createElement("canvas"),Pi.width=Dr,Pi.height=eo,Ii=Pi.getContext("2d"),er=Ii.createLinearGradient(An,Fn,Sn,Kn),$i(Qi.stops,vn).forEach(function(Qu){return er.addColorStop(Qu.stop,Aa(Qu.color))}),Ii.fillStyle=er,Ii.fillRect(0,0,Dr,eo),Dr>0&&eo>0&&(Ui=nn.ctx.createPattern(Pi,"repeat"),nn.renderRepeat(Mr,Ui,es,Wo))):Da(Qi)&&(Pr=WA(Qt,Ht,[null,null,null]),Mr=Pr[0],ji=Pr[1],Gi=Pr[2],Dr=Pr[3],eo=Pr[4],ro=Qi.position.length===0?[zu]:Qi.position,es=Ga(ro[0],Dr),Wo=Ga(ro[ro.length-1],eo),Ks=fh(Qi,es,Wo,Dr,eo),qn=Ks[0],gl=Ks[1],qn>0&&gl>0&&(kl=nn.ctx.createRadialGradient(ji+es,Gi+Wo,0,ji+es,Gi+Wo,qn),$i(Qi.stops,qn*2).forEach(function(Qu){return kl.addColorStop(Qu.stop,Aa(Qu.color))}),nn.path(Mr),nn.ctx.fillStyle=kl,qn!==gl?(rl=Qt.bounds.left+.5*Qt.bounds.width,Qa=Qt.bounds.top+.5*Qt.bounds.height,zl=gl/qn,Ha=1/zl,nn.ctx.save(),nn.ctx.translate(rl,Qa),nn.ctx.transform(1,0,0,zl,0,0),nn.ctx.translate(-rl,-Qa),nn.ctx.fillRect(ji,Ha*(Gi-Qa)+Qa,Dr,eo*Ha),nn.ctx.restore()):nn.ctx.fill())),ua.label=6;case 6:return Ht--,[2]}})},nn=this,In=0,ti=Qt.styles.backgroundImage.slice(0).reverse(),Di.label=1;case 1:return In<ti.length?(Rn=ti[In],[5,Le(Rn)]):[3,4];case 2:Di.sent(),Di.label=3;case 3:return In++,[3,1];case 4:return[2]}})})},It.prototype.renderSolidBorder=function(Qt,Ht,Le){return ge(this,void 0,void 0,function(){return se(this,function(nn){return this.path(GA(Le,Ht)),this.ctx.fillStyle=Aa(Qt),this.ctx.fill(),[2]})})},It.prototype.renderDoubleBorder=function(Qt,Ht,Le,nn){return ge(this,void 0,void 0,function(){var In,ti;return se(this,function(Rn){switch(Rn.label){case 0:return Ht<3?[4,this.renderSolidBorder(Qt,Le,nn)]:[3,2];case 1:return Rn.sent(),[2];case 2:return In=MA(nn,Le),this.path(In),this.ctx.fillStyle=Aa(Qt),this.ctx.fill(),ti=Vf(nn,Le),this.path(ti),this.ctx.fill(),[2]}})})},It.prototype.renderNodeBackgroundAndBorders=function(Qt){return ge(this,void 0,void 0,function(){var Ht,Le,nn,In,ti,Rn,Di,Qi,vt=this;return se(this,function(Ut){switch(Ut.label){case 0:return this.applyEffects(Qt.getEffects(2)),Ht=Qt.container.styles,Le=!Wa(Ht.backgroundColor)||Ht.backgroundImage.length,nn=[{style:Ht.borderTopStyle,color:Ht.borderTopColor,width:Ht.borderTopWidth},{style:Ht.borderRightStyle,color:Ht.borderRightColor,width:Ht.borderRightWidth},{style:Ht.borderBottomStyle,color:Ht.borderBottomColor,width:Ht.borderBottomWidth},{style:Ht.borderLeftStyle,color:Ht.borderLeftColor,width:Ht.borderLeftWidth}],In=wf(Qh(Ht.backgroundClip,0),Qt.curves),Le||Ht.boxShadow.length?(this.ctx.save(),this.path(In),this.ctx.clip(),Wa(Ht.backgroundColor)||(this.ctx.fillStyle=Aa(Ht.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(Qt.container)]):[3,2];case 1:Ut.sent(),this.ctx.restore(),Ht.boxShadow.slice(0).reverse().forEach(function(me){vt.ctx.save();var Ne=ch(Qt.curves),Je=me.inset?0:yc,vn=Cg(Ne,-Je+(me.inset?1:-1)*me.spread.number,(me.inset?1:-1)*me.spread.number,me.spread.number*(me.inset?-2:2),me.spread.number*(me.inset?-2:2));me.inset?(vt.path(Ne),vt.ctx.clip(),vt.mask(vn)):(vt.mask(Ne),vt.ctx.clip(),vt.path(vn)),vt.ctx.shadowOffsetX=me.offsetX.number+Je,vt.ctx.shadowOffsetY=me.offsetY.number,vt.ctx.shadowColor=Aa(me.color),vt.ctx.shadowBlur=me.blur.number,vt.ctx.fillStyle=me.inset?Aa(me.color):"rgba(0,0,0,1)",vt.ctx.fill(),vt.ctx.restore()}),Ut.label=2;case 2:ti=0,Rn=0,Di=nn,Ut.label=3;case 3:return Rn<Di.length?(Qi=Di[Rn],Qi.style!==0&&!Wa(Qi.color)&&Qi.width>0?Qi.style!==2?[3,5]:[4,this.renderDashedDottedBorder(Qi.color,Qi.width,ti,Qt.curves,2)]:[3,11]):[3,13];case 4:return Ut.sent(),[3,11];case 5:return Qi.style!==3?[3,7]:[4,this.renderDashedDottedBorder(Qi.color,Qi.width,ti,Qt.curves,3)];case 6:return Ut.sent(),[3,11];case 7:return Qi.style!==4?[3,9]:[4,this.renderDoubleBorder(Qi.color,Qi.width,ti,Qt.curves)];case 8:return Ut.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Qi.color,ti,Qt.curves)];case 10:Ut.sent(),Ut.label=11;case 11:ti++,Ut.label=12;case 12:return Rn++,[3,3];case 13:return[2]}})})},It.prototype.renderDashedDottedBorder=function(Qt,Ht,Le,nn,In){return ge(this,void 0,void 0,function(){var ti,Rn,Di,Qi,vt,Ut,me,Ne,Je,vn,An,Sn,Fn,Kn,Pi,Ii,Pi,Ii;return se(this,function(er){return this.ctx.save(),ti=fA(nn,Le),Rn=GA(nn,Le),In===2&&(this.path(Rn),this.ctx.clip()),Hl(Rn[0])?(Di=Rn[0].start.x,Qi=Rn[0].start.y):(Di=Rn[0].x,Qi=Rn[0].y),Hl(Rn[1])?(vt=Rn[1].end.x,Ut=Rn[1].end.y):(vt=Rn[1].x,Ut=Rn[1].y),Le===0||Le===2?me=Math.abs(Di-vt):me=Math.abs(Qi-Ut),this.ctx.beginPath(),In===3?this.formatPath(ti):this.formatPath(Rn.slice(0,2)),Ne=Ht<3?Ht*3:Ht*2,Je=Ht<3?Ht*2:Ht,In===3&&(Ne=Ht,Je=Ht),vn=!0,me<=Ne*2?vn=!1:me<=Ne*2+Je?(An=me/(2*Ne+Je),Ne*=An,Je*=An):(Sn=Math.floor((me+Je)/(Ne+Je)),Fn=(me-Sn*Ne)/(Sn-1),Kn=(me-(Sn+1)*Ne)/Sn,Je=Kn<=0||Math.abs(Je-Fn)<Math.abs(Je-Kn)?Fn:Kn),vn&&(In===3?this.ctx.setLineDash([0,Ne+Je]):this.ctx.setLineDash([Ne,Je])),In===3?(this.ctx.lineCap="round",this.ctx.lineWidth=Ht):this.ctx.lineWidth=Ht*2+1.1,this.ctx.strokeStyle=Aa(Qt),this.ctx.stroke(),this.ctx.setLineDash([]),In===2&&(Hl(Rn[0])&&(Pi=Rn[3],Ii=Rn[0],this.ctx.beginPath(),this.formatPath([new Ro(Pi.end.x,Pi.end.y),new Ro(Ii.start.x,Ii.start.y)]),this.ctx.stroke()),Hl(Rn[1])&&(Pi=Rn[1],Ii=Rn[2],this.ctx.beginPath(),this.formatPath([new Ro(Pi.end.x,Pi.end.y),new Ro(Ii.start.x,Ii.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},It.prototype.render=function(Qt){return ge(this,void 0,void 0,function(){var Ht;return se(this,function(Le){switch(Le.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Aa(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),Ht=yf(Qt),[4,this.renderStack(Ht)];case 1:return Le.sent(),this.applyEffects([]),[2,this.canvas]}})})},It}(vc),xp=function(Ot){return Ot instanceof Fd||Ot instanceof zA?!0:Ot instanceof Rh&&Ot.type!==pc&&Ot.type!==Gd},wf=function(Ot,It){switch(Ot){case 0:return ch(It);case 2:return fu(It);case 1:default:return Xd(It)}},Rs=function(Ot){switch(Ot){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Gg=["-apple-system","system-ui"],Sp=function(Ot){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?Ot.filter(function(It){return Gg.indexOf(It)===-1}):Ot},xf=function(Ot){Bt(It,Ot);function It(Qt,Ht){var Le=Ot.call(this,Qt,Ht)||this;return Le.canvas=Ht.canvas?Ht.canvas:document.createElement("canvas"),Le.ctx=Le.canvas.getContext("2d"),Le.options=Ht,Le.canvas.width=Math.floor(Ht.width*Ht.scale),Le.canvas.height=Math.floor(Ht.height*Ht.scale),Le.canvas.style.width=Ht.width+"px",Le.canvas.style.height=Ht.height+"px",Le.ctx.scale(Le.options.scale,Le.options.scale),Le.ctx.translate(-Ht.x,-Ht.y),Le.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+Ht.width+"x"+Ht.height+" at "+Ht.x+","+Ht.y+") with scale "+Ht.scale),Le}return It.prototype.render=function(Qt){return ge(this,void 0,void 0,function(){var Ht,Le;return se(this,function(nn){switch(nn.label){case 0:return Ht=Ed(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,Qt),[4,IA(Ht)];case 1:return Le=nn.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Aa(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(Le,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},It}(vc),IA=function(Ot){return new Promise(function(It,Qt){var Ht=new Image;Ht.onload=function(){It(Ht)},Ht.onerror=Qt,Ht.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(Ot))})},gA=function(){function Ot(It){var Qt=It.id,Ht=It.enabled;this.id=Qt,this.enabled=Ht,this.start=Date.now()}return Ot.prototype.debug=function(){for(var It=[],Qt=0;Qt<arguments.length;Qt++)It[Qt]=arguments[Qt];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Me([this.id,this.getTime()+"ms"],It)):this.info.apply(this,It))},Ot.prototype.getTime=function(){return Date.now()-this.start},Ot.prototype.info=function(){for(var It=[],Qt=0;Qt<arguments.length;Qt++)It[Qt]=arguments[Qt];this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Me([this.id,this.getTime()+"ms"],It))},Ot.prototype.warn=function(){for(var It=[],Qt=0;Qt<arguments.length;Qt++)It[Qt]=arguments[Qt];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Me([this.id,this.getTime()+"ms"],It)):this.info.apply(this,It))},Ot.prototype.error=function(){for(var It=[],Qt=0;Qt<arguments.length;Qt++)It[Qt]=arguments[Qt];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,Me([this.id,this.getTime()+"ms"],It)):this.info.apply(this,It))},Ot.instances={},Ot}(),fd=function(){function Ot(It,Qt){var Ht;this.windowBounds=Qt,this.instanceName="#"+Ot.instanceCount++,this.logger=new gA({id:this.instanceName,enabled:It.logging}),this.cache=(Ht=It.cache)!==null&&Ht!==void 0?Ht:new Js(this,It)}return Ot.instanceCount=1,Ot}(),bg=function(Ot,It){return It===void 0&&(It={}),Wg(Ot,It)};typeof window!="undefined"&&jo.setContext(window);var Wg=function(Ot,It){return ge(void 0,void 0,void 0,function(){var Qt,Ht,Le,nn,In,ti,Rn,Di,Qi,vt,Ut,me,Ne,Je,vn,An,Sn,Fn,Kn,Pi,er,Ii,er,Ui,Pr,Mr,ji,Gi,Dr,eo,ro,es,Wo,Ks,qn,gl,kl,rl,Qa,zl;return se(this,function(Ha){switch(Ha.label){case 0:if(!Ot||typeof Ot!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(Qt=Ot.ownerDocument,!Qt)throw new Error("Element is not attached to a Document");if(Ht=Qt.defaultView,!Ht)throw new Error("Document is not attached to a Window");return Le={allowTaint:(Ui=It.allowTaint)!==null&&Ui!==void 0?Ui:!1,imageTimeout:(Pr=It.imageTimeout)!==null&&Pr!==void 0?Pr:15e3,proxy:It.proxy,useCORS:(Mr=It.useCORS)!==null&&Mr!==void 0?Mr:!1},nn=bt({logging:(ji=It.logging)!==null&&ji!==void 0?ji:!0,cache:It.cache},Le),In={windowWidth:(Gi=It.windowWidth)!==null&&Gi!==void 0?Gi:Ht.innerWidth,windowHeight:(Dr=It.windowHeight)!==null&&Dr!==void 0?Dr:Ht.innerHeight,scrollX:(eo=It.scrollX)!==null&&eo!==void 0?eo:Ht.pageXOffset,scrollY:(ro=It.scrollY)!==null&&ro!==void 0?ro:Ht.pageYOffset},ti=new ie(In.scrollX,In.scrollY,In.windowWidth,In.windowHeight),Rn=new fd(nn,ti),Di=(es=It.foreignObjectRendering)!==null&&es!==void 0?es:!1,Qi={allowTaint:(Wo=It.allowTaint)!==null&&Wo!==void 0?Wo:!1,onclone:It.onclone,ignoreElements:It.ignoreElements,inlineImages:Di,copyStyles:Di},Rn.logger.debug("Starting document clone with size "+ti.width+"x"+ti.height+" scrolled to "+-ti.left+","+-ti.top),vt=new xt(Rn,Ot,Qi),Ut=vt.clonedReferenceElement,Ut?[4,vt.toIFrame(Qt,ti)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return me=Ha.sent(),Ne=Us(Ut)||ba(Ut)?Lt(Ut.ownerDocument):ae(Rn,Ut),Je=Ne.width,vn=Ne.height,An=Ne.left,Sn=Ne.top,Fn=Eg(Rn,Ut,It.backgroundColor),Kn={canvas:It.canvas,backgroundColor:Fn,scale:(qn=(Ks=It.scale)!==null&&Ks!==void 0?Ks:Ht.devicePixelRatio)!==null&&qn!==void 0?qn:1,x:((gl=It.x)!==null&&gl!==void 0?gl:0)+An,y:((kl=It.y)!==null&&kl!==void 0?kl:0)+Sn,width:(rl=It.width)!==null&&rl!==void 0?rl:Math.ceil(Je),height:(Qa=It.height)!==null&&Qa!==void 0?Qa:Math.ceil(vn)},Di?(Rn.logger.debug("Document cloned, using foreign object rendering"),er=new xf(Rn,Kn),[4,er.render(Ut)]):[3,3];case 2:return Pi=Ha.sent(),[3,5];case 3:return Rn.logger.debug("Document cloned, element located at "+An+","+Sn+" with size "+Je+"x"+vn+" using computed rendering"),Rn.logger.debug("Starting DOM parsing"),Ii=pe(Rn,Ut),Fn===Ii.styles.backgroundColor&&(Ii.styles.backgroundColor=Ah.TRANSPARENT),Rn.logger.debug("Starting renderer for element at "+Kn.x+","+Kn.y+" with size "+Kn.width+"x"+Kn.height),er=new ZA(Rn,Kn),[4,er.render(Ii)];case 4:Pi=Ha.sent(),Ha.label=5;case 5:return(!((zl=It.removeContainer)!==null&&zl!==void 0)||zl)&&(xt.destroy(me)||Rn.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),Rn.logger.debug("Finished rendering"),[2,Pi]}})})},Eg=function(Ot,It,Qt){var Ht=It.ownerDocument,Le=Ht.documentElement?od(Ot,getComputedStyle(Ht.documentElement).backgroundColor):Ah.TRANSPARENT,nn=Ht.body?od(Ot,getComputedStyle(Ht.body).backgroundColor):Ah.TRANSPARENT,In=typeof Qt=="string"?od(Ot,Qt):Qt===null?Ah.TRANSPARENT:4294967295;return It===Ht.documentElement?Wa(Le)?Wa(nn)?In:nn:Le:In};return bg})},44164:function(ui,Cn,Bt){var bt=Bt(97671);(function(se,Me){ui.exports=Me(Bt(7348),Bt(64270))})(self,function(ge,se){return function(){var Me={"./src/plugin/hyperlinks.js":function(kt,Jt,St){"use strict";St.r(Jt);var Wt=St("./node_modules/core-js/modules/web.dom-collections.for-each.js"),Gt=St.n(Wt),qt=St("./node_modules/core-js/modules/es.string.link.js"),wt=St.n(qt),et=St("./src/worker.js"),tt=St("./src/utils.js"),lt=[],rt={toContainer:et.default.prototype.toContainer,toPdf:et.default.prototype.toPdf};et.default.prototype.toContainer=function(){return rt.toContainer.call(this).then(function(){if(this.opt.enableLinks){var pt=this.prop.container,Ft=pt.querySelectorAll("a"),Tt=(0,tt.unitConvert)(pt.getBoundingClientRect(),this.prop.pageSize.k);lt=[],Array.prototype.forEach.call(Ft,function(_t){for(var re=_t.getClientRects(),he=0;he<re.length;he++){var Ae=(0,tt.unitConvert)(re[he],this.prop.pageSize.k);Ae.left-=Tt.left,Ae.top-=Tt.top;var Fe=Math.floor(Ae.top/this.prop.pageSize.inner.height)+1,ee=this.opt.margin[0]+Ae.top%this.prop.pageSize.inner.height,We=this.opt.margin[1]+Ae.left;lt.push({page:Fe,top:ee,left:We,clientRect:Ae,link:_t})}},this)}})},et.default.prototype.toPdf=function(){return rt.toPdf.call(this).then(function(){if(this.opt.enableLinks){lt.forEach(function(Ft){this.prop.pdf.setPage(Ft.page),this.prop.pdf.link(Ft.left,Ft.top,Ft.clientRect.width,Ft.clientRect.height,{url:Ft.link.href})},this);var pt=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(pt)}})}},"./src/plugin/jspdf-plugin.js":function(kt,Jt,St){"use strict";St.r(Jt);var Wt=St("./node_modules/core-js/modules/es.symbol.js"),Gt=St.n(Wt),qt=St("./node_modules/core-js/modules/es.symbol.description.js"),wt=St.n(qt),et=St("./node_modules/core-js/modules/es.object.to-string.js"),tt=St.n(et),lt=St("./node_modules/core-js/modules/es.symbol.iterator.js"),rt=St.n(lt),ut=St("./node_modules/core-js/modules/es.array.iterator.js"),dt=St.n(ut),pt=St("./node_modules/core-js/modules/es.string.iterator.js"),Ft=St.n(pt),Tt=St("./node_modules/core-js/modules/web.dom-collections.iterator.js"),_t=St.n(Tt),re=St("jspdf"),he=St.n(re);function Ae(Fe){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ae=function(We){return typeof We}:Ae=function(We){return We&&typeof Symbol=="function"&&We.constructor===Symbol&&We!==Symbol.prototype?"symbol":typeof We},Ae(Fe)}re.jsPDF.getPageSize=function(Fe,ee,We){if(Ae(Fe)==="object"){var Yt=Fe;Fe=Yt.orientation,ee=Yt.unit||ee,We=Yt.format||We}ee=ee||"mm",We=We||"a4",Fe=(""+(Fe||"P")).toLowerCase();var qe=(""+We).toLowerCase(),Ge={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(ee){case"pt":var Oe=1;break;case"mm":var Oe=72/25.4;break;case"cm":var Oe=72/2.54;break;case"in":var Oe=72;break;case"px":var Oe=72/96;break;case"pc":var Oe=12;break;case"em":var Oe=12;break;case"ex":var Oe=6;break;default:throw"Invalid unit: "+ee}if(Ge.hasOwnProperty(qe))var Ze=Ge[qe][1]/Oe,Qe=Ge[qe][0]/Oe;else try{var Ze=We[1],Qe=We[0]}catch(Pe){throw new Error("Invalid format: "+We)}if(Fe==="p"||Fe==="portrait"){if(Fe="p",Qe>Ze){var we=Qe;Qe=Ze,Ze=we}}else if(Fe==="l"||Fe==="landscape"){if(Fe="l",Ze>Qe){var we=Qe;Qe=Ze,Ze=we}}else throw"Invalid orientation: "+Fe;var oe={width:Qe,height:Ze,unit:ee,k:Oe};return oe},Jt.default=re.jsPDF},"./src/plugin/pagebreaks.js":function(kt,Jt,St){"use strict";St.r(Jt);var Wt=St("./node_modules/core-js/modules/es.array.concat.js"),Gt=St.n(Wt),qt=St("./node_modules/core-js/modules/es.array.slice.js"),wt=St.n(qt),et=St("./node_modules/core-js/modules/es.array.join.js"),tt=St.n(et),lt=St("./node_modules/core-js/modules/web.dom-collections.for-each.js"),rt=St.n(lt),ut=St("./node_modules/core-js/modules/es.object.keys.js"),dt=St.n(ut),pt=St("./src/worker.js"),Ft=St("./src/utils.js"),Tt={toContainer:pt.default.prototype.toContainer};pt.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},pt.default.prototype.toContainer=function(){return Tt.toContainer.call(this).then(function(){var he=this.prop.container,Ae=this.prop.pageSize.inner.px.height,Fe=[].concat(this.opt.pagebreak.mode),ee={avoidAll:Fe.indexOf("avoid-all")!==-1,css:Fe.indexOf("css")!==-1,legacy:Fe.indexOf("legacy")!==-1},We={},Yt=this;["before","after","avoid"].forEach(function(Oe){var Ze=ee.avoidAll&&Oe==="avoid";We[Oe]=Ze?[]:[].concat(Yt.opt.pagebreak[Oe]||[]),We[Oe].length>0&&(We[Oe]=Array.prototype.slice.call(he.querySelectorAll(We[Oe].join(", "))))});var qe=he.querySelectorAll(".html2pdf__page-break");qe=Array.prototype.slice.call(qe);var Ge=he.querySelectorAll("*");Array.prototype.forEach.call(Ge,function(Ze){var Qe={before:!1,after:ee.legacy&&qe.indexOf(Ze)!==-1,avoid:ee.avoidAll};if(ee.css){var we=window.getComputedStyle(Ze),oe=["always","page","left","right"],Pe=["avoid","avoid-page"];Qe={before:Qe.before||oe.indexOf(we.breakBefore||we.pageBreakBefore)!==-1,after:Qe.after||oe.indexOf(we.breakAfter||we.pageBreakAfter)!==-1,avoid:Qe.avoid||Pe.indexOf(we.breakInside||we.pageBreakInside)!==-1}}Object.keys(Qe).forEach(function(Ai){Qe[Ai]=Qe[Ai]||We[Ai].indexOf(Ze)!==-1});var En=Ze.getBoundingClientRect();if(Qe.avoid&&!Qe.before){var Nn=Math.floor(En.top/Ae),Xe=Math.floor(En.bottom/Ae),kn=Math.abs(En.bottom-En.top)/Ae;Xe!==Nn&&kn<=1&&(Qe.before=!0)}if(Qe.before){var Vn=(0,Ft.createElement)("div",{style:{display:"block",height:Ae-En.top%Ae+"px"}});Ze.parentNode.insertBefore(Vn,Ze)}if(Qe.after){var Vn=(0,Ft.createElement)("div",{style:{display:"block",height:Ae-En.bottom%Ae+"px"}});Ze.parentNode.insertBefore(Vn,Ze.nextSibling)}})})}},"./src/utils.js":function(kt,Jt,St){"use strict";St.r(Jt),St.d(Jt,{objType:function(){return Fe},createElement:function(){return ee},cloneNode:function(){return We},unitConvert:function(){return Yt},toPx:function(){return qe}});var Wt=St("./node_modules/core-js/modules/es.number.constructor.js"),Gt=St.n(Wt),qt=St("./node_modules/core-js/modules/es.symbol.js"),wt=St.n(qt),et=St("./node_modules/core-js/modules/es.symbol.description.js"),tt=St.n(et),lt=St("./node_modules/core-js/modules/es.object.to-string.js"),rt=St.n(lt),ut=St("./node_modules/core-js/modules/es.symbol.iterator.js"),dt=St.n(ut),pt=St("./node_modules/core-js/modules/es.array.iterator.js"),Ft=St.n(pt),Tt=St("./node_modules/core-js/modules/es.string.iterator.js"),_t=St.n(Tt),re=St("./node_modules/core-js/modules/web.dom-collections.iterator.js"),he=St.n(re);function Ae(Ge){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ae=function(Ze){return typeof Ze}:Ae=function(Ze){return Ze&&typeof Symbol=="function"&&Ze.constructor===Symbol&&Ze!==Symbol.prototype?"symbol":typeof Ze},Ae(Ge)}var Fe=function(Oe){var Ze=Ae(Oe);return Ze==="undefined"?"undefined":Ze==="string"||Oe instanceof String?"string":Ze==="number"||Oe instanceof Number?"number":Ze==="function"||Oe instanceof Function?"function":Oe&&Oe.constructor===Array?"array":Oe&&Oe.nodeType===1?"element":Ze==="object"?"object":"unknown"},ee=function(Oe,Ze){var Qe=document.createElement(Oe);if(Ze.className&&(Qe.className=Ze.className),Ze.innerHTML){Qe.innerHTML=Ze.innerHTML;for(var we=Qe.getElementsByTagName("script"),oe=we.length;oe-- >0;null)we[oe].parentNode.removeChild(we[oe])}for(var Pe in Ze.style)Qe.style[Pe]=Ze.style[Pe];return Qe},We=function Ge(Oe,Ze){for(var Qe=Oe.nodeType===3?document.createTextNode(Oe.nodeValue):Oe.cloneNode(!1),we=Oe.firstChild;we;we=we.nextSibling)(Ze===!0||we.nodeType!==1||we.nodeName!=="SCRIPT")&&Qe.appendChild(Ge(we,Ze));return Oe.nodeType===1&&(Oe.nodeName==="CANVAS"?(Qe.width=Oe.width,Qe.height=Oe.height,Qe.getContext("2d").drawImage(Oe,0,0)):(Oe.nodeName==="TEXTAREA"||Oe.nodeName==="SELECT")&&(Qe.value=Oe.value),Qe.addEventListener("load",function(){Qe.scrollTop=Oe.scrollTop,Qe.scrollLeft=Oe.scrollLeft},!0)),Qe},Yt=function(Oe,Ze){if(Fe(Oe)==="number")return Oe*72/96/Ze;var Qe={};for(var we in Oe)Qe[we]=Oe[we]*72/96/Ze;return Qe},qe=function(Oe,Ze){return Math.floor(Oe*Ze/72*96)}},"./src/worker.js":function(kt,Jt,St){"use strict";St.r(Jt);var Wt=St("./node_modules/core-js/modules/es.object.assign.js"),Gt=St.n(Wt),qt=St("./node_modules/core-js/modules/es.array.map.js"),wt=St.n(qt),et=St("./node_modules/core-js/modules/es.object.keys.js"),tt=St.n(et),lt=St("./node_modules/core-js/modules/es.array.concat.js"),rt=St.n(lt),ut=St("./node_modules/core-js/modules/es.object.to-string.js"),dt=St.n(ut),pt=St("./node_modules/core-js/modules/es.regexp.to-string.js"),Ft=St.n(pt),Tt=St("./node_modules/core-js/modules/es.function.name.js"),_t=St.n(Tt),re=St("./node_modules/core-js/modules/web.dom-collections.for-each.js"),he=St.n(re),Ae=St("jspdf"),Fe=St.n(Ae),ee=St("html2canvas"),We=St.n(ee),Yt=St("./src/utils.js"),qe=St("./node_modules/es6-promise/dist/es6-promise.js"),Ge=St.n(qe),Oe=Ge().Promise,Ze=function Qe(we){var oe=Object.assign(Qe.convert(Oe.resolve()),JSON.parse(JSON.stringify(Qe.template))),Pe=Qe.convert(Oe.resolve(),oe);return Pe=Pe.setProgress(1,Qe,1,[Qe]),Pe=Pe.set(we),Pe};Ze.prototype=Object.create(Oe.prototype),Ze.prototype.constructor=Ze,Ze.convert=function(we,oe){return we.__proto__=oe||Ze.prototype,we},Ze.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],image:{type:"jpeg",quality:.95},enableLinks:!0,html2canvas:{},jsPDF:{}}},Ze.prototype.from=function(we,oe){function Pe(En){switch((0,Yt.objType)(En)){case"string":return"string";case"element":return En.nodeName.toLowerCase&&En.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){switch(oe=oe||Pe(we),oe){case"string":return this.set({src:(0,Yt.createElement)("div",{innerHTML:we})});case"element":return this.set({src:we});case"canvas":return this.set({canvas:we});case"img":return this.set({img:we});default:return this.error("Unknown source type.")}})},Ze.prototype.to=function(we){switch(we){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},Ze.prototype.toContainer=function(){var we=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(we).then(function(){var Pe={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},En={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};Pe.opacity=0;var Nn=(0,Yt.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,Yt.createElement)("div",{className:"html2pdf__overlay",style:Pe}),this.prop.container=(0,Yt.createElement)("div",{className:"html2pdf__container",style:En}),this.prop.container.appendChild(Nn),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},Ze.prototype.toCanvas=function(){var we=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(we).then(function(){var Pe=Object.assign({},this.opt.html2canvas);return delete Pe.onrendered,ee(this.prop.container,Pe)}).then(function(Pe){var En=this.opt.html2canvas.onrendered||function(){};En(Pe),this.prop.canvas=Pe,document.body.removeChild(this.prop.overlay)})},Ze.prototype.toImg=function(){var we=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(we).then(function(){var Pe=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=Pe})},Ze.prototype.toPdf=function(){var we=[function(){return this.prop.canvas||this.toCanvas()},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(we).then(function(){var Pe=this.prop.canvas,En=this.opt,Nn=Pe.height,Xe=Math.floor(Pe.width*this.prop.pageSize.inner.ratio),kn=Math.ceil(Nn/Xe),Vn=this.prop.pageSize.inner.height,Ai=document.createElement("canvas"),Wn=Ai.getContext("2d");Ai.width=Pe.width,Ai.height=Xe,this.prop.pdf=this.prop.pdf||new Ae.jsPDF(En.jsPDF);for(var Si=0;Si<kn;Si++){Si===kn-1&&Nn%Xe!==0&&(Ai.height=Nn%Xe,Vn=Ai.height*this.prop.pageSize.inner.width/Ai.width);var an=Ai.width,Li=Ai.height;Wn.fillStyle="white",Wn.fillRect(0,0,an,Li),Wn.drawImage(Pe,0,Si*Xe,an,Li,0,0,an,Li),Si&&this.prop.pdf.addPage();var Oi=Ai.toDataURL("image/"+En.image.type,En.image.quality);this.prop.pdf.addImage(Oi,En.image.type,En.margin[1],En.margin[0],this.prop.pageSize.inner.width,Vn)}})},Ze.prototype.output=function(we,oe,Pe){return Pe=Pe||"pdf",Pe.toLowerCase()==="img"||Pe.toLowerCase()==="image"?this.outputImg(we,oe):this.outputPdf(we,oe)},Ze.prototype.outputPdf=function(we,oe){var Pe=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(Pe).then(function(){return this.prop.pdf.output(we,oe)})},Ze.prototype.outputImg=function(we,oe){var Pe=[function(){return this.prop.img||this.toImg()}];return this.thenList(Pe).then(function(){switch(we){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+we+'" is not supported.'}})},Ze.prototype.save=function(we){var oe=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(oe).set(we?{filename:we}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},Ze.prototype.set=function(we){if((0,Yt.objType)(we)!=="object")return this;var oe=Object.keys(we||{}).map(function(Pe){switch(Pe){case"margin":return this.setMargin.bind(this,we.margin);case"jsPDF":return function(){return this.opt.jsPDF=we.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,we.pageSize);default:return Pe in Ze.template.prop?function(){this.prop[Pe]=we[Pe]}:function(){this.opt[Pe]=we[Pe]}}},this);return this.then(function(){return this.thenList(oe)})},Ze.prototype.get=function(we,oe){return this.then(function(){var En=we in Ze.template.prop?this.prop[we]:this.opt[we];return oe?oe(En):En})},Ze.prototype.setMargin=function(we){return this.then(function(){switch((0,Yt.objType)(we)){case"number":we=[we,we,we,we];case"array":if(we.length===2&&(we=[we[0],we[1],we[0],we[1]]),we.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=we}).then(this.setPageSize)},Ze.prototype.setPageSize=function(we){return this.then(function(){we=we||Ae.jsPDF.getPageSize(this.opt.jsPDF),we.hasOwnProperty("inner")||(we.inner={width:we.width-this.opt.margin[1]-this.opt.margin[3],height:we.height-this.opt.margin[0]-this.opt.margin[2]},we.inner.px={width:(0,Yt.toPx)(we.inner.width,we.k),height:(0,Yt.toPx)(we.inner.height,we.k)},we.inner.ratio=we.inner.height/we.inner.width),this.prop.pageSize=we})},Ze.prototype.setProgress=function(we,oe,Pe,En){return we!=null&&(this.progress.val=we),oe!=null&&(this.progress.state=oe),Pe!=null&&(this.progress.n=Pe),En!=null&&(this.progress.stack=En),this.progress.ratio=this.progress.val/this.progress.state,this},Ze.prototype.updateProgress=function(we,oe,Pe,En){return this.setProgress(we?this.progress.val+we:null,oe||null,Pe?this.progress.n+Pe:null,En?this.progress.stack.concat(En):null)},Ze.prototype.then=function(we,oe){var Pe=this;return this.thenCore(we,oe,function(Nn,Xe){return Pe.updateProgress(null,null,1,[Nn]),Oe.prototype.then.call(this,function(Vn){return Pe.updateProgress(null,Nn),Vn}).then(Nn,Xe).then(function(Vn){return Pe.updateProgress(1),Vn})})},Ze.prototype.thenCore=function(we,oe,Pe){Pe=Pe||Oe.prototype.then;var En=this;we&&(we=we.bind(En)),oe&&(oe=oe.bind(En));var Nn=Oe.toString().indexOf("[native code]")!==-1&&Oe.name==="Promise",Xe=Nn?En:Ze.convert(Object.assign({},En),Oe.prototype),kn=Pe.call(Xe,we,oe);return Ze.convert(kn,En.__proto__)},Ze.prototype.thenExternal=function(we,oe){return Oe.prototype.then.call(this,we,oe)},Ze.prototype.thenList=function(we){var oe=this;return we.forEach(function(En){oe=oe.thenCore(En)}),oe},Ze.prototype.catch=function(Qe){Qe&&(Qe=Qe.bind(this));var we=Oe.prototype.catch.call(this,Qe);return Ze.convert(we,this)},Ze.prototype.catchExternal=function(we){return Oe.prototype.catch.call(this,we)},Ze.prototype.error=function(we){return this.then(function(){throw new Error(we)})},Ze.prototype.using=Ze.prototype.set,Ze.prototype.saveAs=Ze.prototype.save,Ze.prototype.export=Ze.prototype.output,Ze.prototype.run=Ze.prototype.then,Jt.default=Ze},"./node_modules/core-js/internals/a-function.js":function(kt){kt.exports=function(Jt){if(typeof Jt!="function")throw TypeError(String(Jt)+" is not a function");return Jt}},"./node_modules/core-js/internals/a-possible-prototype.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/is-object.js");kt.exports=function(Gt){if(!Wt(Gt)&&Gt!==null)throw TypeError("Can't set "+String(Gt)+" as a prototype");return Gt}},"./node_modules/core-js/internals/add-to-unscopables.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/well-known-symbol.js"),Gt=St("./node_modules/core-js/internals/object-create.js"),qt=St("./node_modules/core-js/internals/object-define-property.js"),wt=Wt("unscopables"),et=Array.prototype;et[wt]==null&&qt.f(et,wt,{configurable:!0,value:Gt(null)}),kt.exports=function(tt){et[wt][tt]=!0}},"./node_modules/core-js/internals/an-object.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/is-object.js");kt.exports=function(Gt){if(!Wt(Gt))throw TypeError(String(Gt)+" is not an object");return Gt}},"./node_modules/core-js/internals/array-for-each.js":function(kt,Jt,St){"use strict";var Wt=St("./node_modules/core-js/internals/array-iteration.js").forEach,Gt=St("./node_modules/core-js/internals/array-method-is-strict.js"),qt=Gt("forEach");kt.exports=qt?[].forEach:function(et){return Wt(this,et,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/to-indexed-object.js"),Gt=St("./node_modules/core-js/internals/to-length.js"),qt=St("./node_modules/core-js/internals/to-absolute-index.js"),wt=function(et){return function(tt,lt,rt){var ut=Wt(tt),dt=Gt(ut.length),pt=qt(rt,dt),Ft;if(et&<!=lt){for(;dt>pt;)if(Ft=ut[pt++],Ft!=Ft)return!0}else for(;dt>pt;pt++)if((et||pt in ut)&&ut[pt]===lt)return et||pt||0;return!et&&-1}};kt.exports={includes:wt(!0),indexOf:wt(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/function-bind-context.js"),Gt=St("./node_modules/core-js/internals/indexed-object.js"),qt=St("./node_modules/core-js/internals/to-object.js"),wt=St("./node_modules/core-js/internals/to-length.js"),et=St("./node_modules/core-js/internals/array-species-create.js"),tt=[].push,lt=function(rt){var ut=rt==1,dt=rt==2,pt=rt==3,Ft=rt==4,Tt=rt==6,_t=rt==7,re=rt==5||Tt;return function(he,Ae,Fe,ee){for(var We=qt(he),Yt=Gt(We),qe=Wt(Ae,Fe,3),Ge=wt(Yt.length),Oe=0,Ze=ee||et,Qe=ut?Ze(he,Ge):dt||_t?Ze(he,0):void 0,we,oe;Ge>Oe;Oe++)if((re||Oe in Yt)&&(we=Yt[Oe],oe=qe(we,Oe,We),rt))if(ut)Qe[Oe]=oe;else if(oe)switch(rt){case 3:return!0;case 5:return we;case 6:return Oe;case 2:tt.call(Qe,we)}else switch(rt){case 4:return!1;case 7:tt.call(Qe,we)}return Tt?-1:pt||Ft?Ft:Qe}};kt.exports={forEach:lt(0),map:lt(1),filter:lt(2),some:lt(3),every:lt(4),find:lt(5),findIndex:lt(6),filterReject:lt(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/fails.js"),Gt=St("./node_modules/core-js/internals/well-known-symbol.js"),qt=St("./node_modules/core-js/internals/engine-v8-version.js"),wt=Gt("species");kt.exports=function(et){return qt>=51||!Wt(function(){var tt=[],lt=tt.constructor={};return lt[wt]=function(){return{foo:1}},tt[et](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(kt,Jt,St){"use strict";var Wt=St("./node_modules/core-js/internals/fails.js");kt.exports=function(Gt,qt){var wt=[][Gt];return!!wt&&Wt(function(){wt.call(null,qt||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/is-object.js"),Gt=St("./node_modules/core-js/internals/is-array.js"),qt=St("./node_modules/core-js/internals/well-known-symbol.js"),wt=qt("species");kt.exports=function(et){var tt;return Gt(et)&&(tt=et.constructor,typeof tt=="function"&&(tt===Array||Gt(tt.prototype))?tt=void 0:Wt(tt)&&(tt=tt[wt],tt===null&&(tt=void 0))),tt===void 0?Array:tt}},"./node_modules/core-js/internals/array-species-create.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/array-species-constructor.js");kt.exports=function(Gt,qt){return new(Wt(Gt))(qt===0?0:qt)}},"./node_modules/core-js/internals/classof-raw.js":function(kt){var Jt={}.toString;kt.exports=function(St){return Jt.call(St).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/to-string-tag-support.js"),Gt=St("./node_modules/core-js/internals/classof-raw.js"),qt=St("./node_modules/core-js/internals/well-known-symbol.js"),wt=qt("toStringTag"),et=Gt(function(){return arguments}())=="Arguments",tt=function(lt,rt){try{return lt[rt]}catch(ut){}};kt.exports=Wt?Gt:function(lt){var rt,ut,dt;return lt===void 0?"Undefined":lt===null?"Null":typeof(ut=tt(rt=Object(lt),wt))=="string"?ut:et?Gt(rt):(dt=Gt(rt))=="Object"&&typeof rt.callee=="function"?"Arguments":dt}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/has.js"),Gt=St("./node_modules/core-js/internals/own-keys.js"),qt=St("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),wt=St("./node_modules/core-js/internals/object-define-property.js");kt.exports=function(et,tt){for(var lt=Gt(tt),rt=wt.f,ut=qt.f,dt=0;dt<lt.length;dt++){var pt=lt[dt];Wt(et,pt)||rt(et,pt,ut(tt,pt))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/fails.js");kt.exports=!Wt(function(){function Gt(){}return Gt.prototype.constructor=null,Object.getPrototypeOf(new Gt)!==Gt.prototype})},"./node_modules/core-js/internals/create-html.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/require-object-coercible.js"),Gt=St("./node_modules/core-js/internals/to-string.js"),qt=/"/g;kt.exports=function(wt,et,tt,lt){var rt=Gt(Wt(wt)),ut="<"+et;return tt!==""&&(ut+=" "+tt+'="'+Gt(lt).replace(qt,""")+'"'),ut+">"+rt+"</"+et+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(kt,Jt,St){"use strict";var Wt=St("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,Gt=St("./node_modules/core-js/internals/object-create.js"),qt=St("./node_modules/core-js/internals/create-property-descriptor.js"),wt=St("./node_modules/core-js/internals/set-to-string-tag.js"),et=St("./node_modules/core-js/internals/iterators.js"),tt=function(){return this};kt.exports=function(lt,rt,ut){var dt=rt+" Iterator";return lt.prototype=Gt(Wt,{next:qt(1,ut)}),wt(lt,dt,!1,!0),et[dt]=tt,lt}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/descriptors.js"),Gt=St("./node_modules/core-js/internals/object-define-property.js"),qt=St("./node_modules/core-js/internals/create-property-descriptor.js");kt.exports=Wt?function(wt,et,tt){return Gt.f(wt,et,qt(1,tt))}:function(wt,et,tt){return wt[et]=tt,wt}},"./node_modules/core-js/internals/create-property-descriptor.js":function(kt){kt.exports=function(Jt,St){return{enumerable:!(Jt&1),configurable:!(Jt&2),writable:!(Jt&4),value:St}}},"./node_modules/core-js/internals/create-property.js":function(kt,Jt,St){"use strict";var Wt=St("./node_modules/core-js/internals/to-property-key.js"),Gt=St("./node_modules/core-js/internals/object-define-property.js"),qt=St("./node_modules/core-js/internals/create-property-descriptor.js");kt.exports=function(wt,et,tt){var lt=Wt(et);lt in wt?Gt.f(wt,lt,qt(0,tt)):wt[lt]=tt}},"./node_modules/core-js/internals/define-iterator.js":function(kt,Jt,St){"use strict";var Wt=St("./node_modules/core-js/internals/export.js"),Gt=St("./node_modules/core-js/internals/create-iterator-constructor.js"),qt=St("./node_modules/core-js/internals/object-get-prototype-of.js"),wt=St("./node_modules/core-js/internals/object-set-prototype-of.js"),et=St("./node_modules/core-js/internals/set-to-string-tag.js"),tt=St("./node_modules/core-js/internals/create-non-enumerable-property.js"),lt=St("./node_modules/core-js/internals/redefine.js"),rt=St("./node_modules/core-js/internals/well-known-symbol.js"),ut=St("./node_modules/core-js/internals/is-pure.js"),dt=St("./node_modules/core-js/internals/iterators.js"),pt=St("./node_modules/core-js/internals/iterators-core.js"),Ft=pt.IteratorPrototype,Tt=pt.BUGGY_SAFARI_ITERATORS,_t=rt("iterator"),re="keys",he="values",Ae="entries",Fe=function(){return this};kt.exports=function(ee,We,Yt,qe,Ge,Oe,Ze){Gt(Yt,We,qe);var Qe=function(Wn){if(Wn===Ge&&Nn)return Nn;if(!Tt&&Wn in Pe)return Pe[Wn];switch(Wn){case re:return function(){return new Yt(this,Wn)};case he:return function(){return new Yt(this,Wn)};case Ae:return function(){return new Yt(this,Wn)}}return function(){return new Yt(this)}},we=We+" Iterator",oe=!1,Pe=ee.prototype,En=Pe[_t]||Pe["@@iterator"]||Ge&&Pe[Ge],Nn=!Tt&&En||Qe(Ge),Xe=We=="Array"&&Pe.entries||En,kn,Vn,Ai;if(Xe&&(kn=qt(Xe.call(new ee)),Ft!==Object.prototype&&kn.next&&(!ut&&qt(kn)!==Ft&&(wt?wt(kn,Ft):typeof kn[_t]!="function"&&tt(kn,_t,Fe)),et(kn,we,!0,!0),ut&&(dt[we]=Fe))),Ge==he&&En&&En.name!==he&&(oe=!0,Nn=function(){return En.call(this)}),(!ut||Ze)&&Pe[_t]!==Nn&&tt(Pe,_t,Nn),dt[We]=Nn,Ge)if(Vn={values:Qe(he),keys:Oe?Nn:Qe(re),entries:Qe(Ae)},Ze)for(Ai in Vn)(Tt||oe||!(Ai in Pe))&<(Pe,Ai,Vn[Ai]);else Wt({target:We,proto:!0,forced:Tt||oe},Vn);return Vn}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/path.js"),Gt=St("./node_modules/core-js/internals/has.js"),qt=St("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),wt=St("./node_modules/core-js/internals/object-define-property.js").f;kt.exports=function(et){var tt=Wt.Symbol||(Wt.Symbol={});Gt(tt,et)||wt(tt,et,{value:qt.f(et)})}},"./node_modules/core-js/internals/descriptors.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/fails.js");kt.exports=!Wt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/global.js"),Gt=St("./node_modules/core-js/internals/is-object.js"),qt=Wt.document,wt=Gt(qt)&&Gt(qt.createElement);kt.exports=function(et){return wt?qt.createElement(et):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(kt){kt.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"./node_modules/core-js/internals/engine-user-agent.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/get-built-in.js");kt.exports=Wt("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/global.js"),Gt=St("./node_modules/core-js/internals/engine-user-agent.js"),qt=Wt.process,wt=Wt.Deno,et=qt&&qt.versions||wt&&wt.version,tt=et&&et.v8,lt,rt;tt?(lt=tt.split("."),rt=lt[0]<4?1:lt[0]+lt[1]):Gt&&(lt=Gt.match(/Edge\/(\d+)/),(!lt||lt[1]>=74)&&(lt=Gt.match(/Chrome\/(\d+)/),lt&&(rt=lt[1]))),kt.exports=rt&&+rt},"./node_modules/core-js/internals/enum-bug-keys.js":function(kt){kt.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/global.js"),Gt=St("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,qt=St("./node_modules/core-js/internals/create-non-enumerable-property.js"),wt=St("./node_modules/core-js/internals/redefine.js"),et=St("./node_modules/core-js/internals/set-global.js"),tt=St("./node_modules/core-js/internals/copy-constructor-properties.js"),lt=St("./node_modules/core-js/internals/is-forced.js");kt.exports=function(rt,ut){var dt=rt.target,pt=rt.global,Ft=rt.stat,Tt,_t,re,he,Ae,Fe;if(pt?_t=Wt:Ft?_t=Wt[dt]||et(dt,{}):_t=(Wt[dt]||{}).prototype,_t)for(re in ut){if(Ae=ut[re],rt.noTargetGet?(Fe=Gt(_t,re),he=Fe&&Fe.value):he=_t[re],Tt=lt(pt?re:dt+(Ft?".":"#")+re,rt.forced),!Tt&&he!==void 0){if(typeof Ae==typeof he)continue;tt(Ae,he)}(rt.sham||he&&he.sham)&&qt(Ae,"sham",!0),wt(_t,re,Ae,rt)}}},"./node_modules/core-js/internals/fails.js":function(kt){kt.exports=function(Jt){try{return!!Jt()}catch(St){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/a-function.js");kt.exports=function(Gt,qt,wt){if(Wt(Gt),qt===void 0)return Gt;switch(wt){case 0:return function(){return Gt.call(qt)};case 1:return function(et){return Gt.call(qt,et)};case 2:return function(et,tt){return Gt.call(qt,et,tt)};case 3:return function(et,tt,lt){return Gt.call(qt,et,tt,lt)}}return function(){return Gt.apply(qt,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/global.js"),Gt=function(qt){return typeof qt=="function"?qt:void 0};kt.exports=function(qt,wt){return arguments.length<2?Gt(Wt[qt]):Wt[qt]&&Wt[qt][wt]}},"./node_modules/core-js/internals/global.js":function(kt){var Jt=function(St){return St&&St.Math==Math&&St};kt.exports=Jt(typeof globalThis=="object"&&globalThis)||Jt(typeof window=="object"&&window)||Jt(typeof self=="object"&&self)||Jt(typeof Bt.g=="object"&&Bt.g)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/to-object.js"),Gt={}.hasOwnProperty;kt.exports=Object.hasOwn||function(wt,et){return Gt.call(Wt(wt),et)}},"./node_modules/core-js/internals/hidden-keys.js":function(kt){kt.exports={}},"./node_modules/core-js/internals/html.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/get-built-in.js");kt.exports=Wt("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/descriptors.js"),Gt=St("./node_modules/core-js/internals/fails.js"),qt=St("./node_modules/core-js/internals/document-create-element.js");kt.exports=!Wt&&!Gt(function(){return Object.defineProperty(qt("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/fails.js"),Gt=St("./node_modules/core-js/internals/classof-raw.js"),qt="".split;kt.exports=Wt(function(){return!Object("z").propertyIsEnumerable(0)})?function(wt){return Gt(wt)=="String"?qt.call(wt,""):Object(wt)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/is-object.js"),Gt=St("./node_modules/core-js/internals/object-set-prototype-of.js");kt.exports=function(qt,wt,et){var tt,lt;return Gt&&typeof(tt=wt.constructor)=="function"&&tt!==et&&Wt(lt=tt.prototype)&<!==et.prototype&&Gt(qt,lt),qt}},"./node_modules/core-js/internals/inspect-source.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/shared-store.js"),Gt=Function.toString;typeof Wt.inspectSource!="function"&&(Wt.inspectSource=function(qt){return Gt.call(qt)}),kt.exports=Wt.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/native-weak-map.js"),Gt=St("./node_modules/core-js/internals/global.js"),qt=St("./node_modules/core-js/internals/is-object.js"),wt=St("./node_modules/core-js/internals/create-non-enumerable-property.js"),et=St("./node_modules/core-js/internals/has.js"),tt=St("./node_modules/core-js/internals/shared-store.js"),lt=St("./node_modules/core-js/internals/shared-key.js"),rt=St("./node_modules/core-js/internals/hidden-keys.js"),ut="Object already initialized",dt=Gt.WeakMap,pt,Ft,Tt,_t=function(Yt){return Tt(Yt)?Ft(Yt):pt(Yt,{})},re=function(Yt){return function(qe){var Ge;if(!qt(qe)||(Ge=Ft(qe)).type!==Yt)throw TypeError("Incompatible receiver, "+Yt+" required");return Ge}};if(Wt||tt.state){var he=tt.state||(tt.state=new dt),Ae=he.get,Fe=he.has,ee=he.set;pt=function(Yt,qe){if(Fe.call(he,Yt))throw new TypeError(ut);return qe.facade=Yt,ee.call(he,Yt,qe),qe},Ft=function(Yt){return Ae.call(he,Yt)||{}},Tt=function(Yt){return Fe.call(he,Yt)}}else{var We=lt("state");rt[We]=!0,pt=function(Yt,qe){if(et(Yt,We))throw new TypeError(ut);return qe.facade=Yt,wt(Yt,We,qe),qe},Ft=function(Yt){return et(Yt,We)?Yt[We]:{}},Tt=function(Yt){return et(Yt,We)}}kt.exports={set:pt,get:Ft,has:Tt,enforce:_t,getterFor:re}},"./node_modules/core-js/internals/is-array.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/classof-raw.js");kt.exports=Array.isArray||function(qt){return Wt(qt)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/fails.js"),Gt=/#|\.prototype\./,qt=function(rt,ut){var dt=et[wt(rt)];return dt==lt?!0:dt==tt?!1:typeof ut=="function"?Wt(ut):!!ut},wt=qt.normalize=function(rt){return String(rt).replace(Gt,".").toLowerCase()},et=qt.data={},tt=qt.NATIVE="N",lt=qt.POLYFILL="P";kt.exports=qt},"./node_modules/core-js/internals/is-object.js":function(kt){kt.exports=function(Jt){return typeof Jt=="object"?Jt!==null:typeof Jt=="function"}},"./node_modules/core-js/internals/is-pure.js":function(kt){kt.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/get-built-in.js"),Gt=St("./node_modules/core-js/internals/use-symbol-as-uid.js");kt.exports=Gt?function(qt){return typeof qt=="symbol"}:function(qt){var wt=Wt("Symbol");return typeof wt=="function"&&Object(qt)instanceof wt}},"./node_modules/core-js/internals/iterators-core.js":function(kt,Jt,St){"use strict";var Wt=St("./node_modules/core-js/internals/fails.js"),Gt=St("./node_modules/core-js/internals/object-get-prototype-of.js"),qt=St("./node_modules/core-js/internals/create-non-enumerable-property.js"),wt=St("./node_modules/core-js/internals/has.js"),et=St("./node_modules/core-js/internals/well-known-symbol.js"),tt=St("./node_modules/core-js/internals/is-pure.js"),lt=et("iterator"),rt=!1,ut=function(){return this},dt,pt,Ft;[].keys&&(Ft=[].keys(),"next"in Ft?(pt=Gt(Gt(Ft)),pt!==Object.prototype&&(dt=pt)):rt=!0);var Tt=dt==null||Wt(function(){var _t={};return dt[lt].call(_t)!==_t});Tt&&(dt={}),(!tt||Tt)&&!wt(dt,lt)&&qt(dt,lt,ut),kt.exports={IteratorPrototype:dt,BUGGY_SAFARI_ITERATORS:rt}},"./node_modules/core-js/internals/iterators.js":function(kt){kt.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/engine-v8-version.js"),Gt=St("./node_modules/core-js/internals/fails.js");kt.exports=!!Object.getOwnPropertySymbols&&!Gt(function(){var qt=Symbol();return!String(qt)||!(Object(qt)instanceof Symbol)||!Symbol.sham&&Wt&&Wt<41})},"./node_modules/core-js/internals/native-weak-map.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/global.js"),Gt=St("./node_modules/core-js/internals/inspect-source.js"),qt=Wt.WeakMap;kt.exports=typeof qt=="function"&&/native code/.test(Gt(qt))},"./node_modules/core-js/internals/object-assign.js":function(kt,Jt,St){"use strict";var Wt=St("./node_modules/core-js/internals/descriptors.js"),Gt=St("./node_modules/core-js/internals/fails.js"),qt=St("./node_modules/core-js/internals/object-keys.js"),wt=St("./node_modules/core-js/internals/object-get-own-property-symbols.js"),et=St("./node_modules/core-js/internals/object-property-is-enumerable.js"),tt=St("./node_modules/core-js/internals/to-object.js"),lt=St("./node_modules/core-js/internals/indexed-object.js"),rt=Object.assign,ut=Object.defineProperty;kt.exports=!rt||Gt(function(){if(Wt&&rt({b:1},rt(ut({},"a",{enumerable:!0,get:function(){ut(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var dt={},pt={},Ft=Symbol(),Tt="abcdefghijklmnopqrst";return dt[Ft]=7,Tt.split("").forEach(function(_t){pt[_t]=_t}),rt({},dt)[Ft]!=7||qt(rt({},pt)).join("")!=Tt})?function(pt,Ft){for(var Tt=tt(pt),_t=arguments.length,re=1,he=wt.f,Ae=et.f;_t>re;)for(var Fe=lt(arguments[re++]),ee=he?qt(Fe).concat(he(Fe)):qt(Fe),We=ee.length,Yt=0,qe;We>Yt;)qe=ee[Yt++],(!Wt||Ae.call(Fe,qe))&&(Tt[qe]=Fe[qe]);return Tt}:rt},"./node_modules/core-js/internals/object-create.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/an-object.js"),Gt=St("./node_modules/core-js/internals/object-define-properties.js"),qt=St("./node_modules/core-js/internals/enum-bug-keys.js"),wt=St("./node_modules/core-js/internals/hidden-keys.js"),et=St("./node_modules/core-js/internals/html.js"),tt=St("./node_modules/core-js/internals/document-create-element.js"),lt=St("./node_modules/core-js/internals/shared-key.js"),rt=">",ut="<",dt="prototype",pt="script",Ft=lt("IE_PROTO"),Tt=function(){},_t=function(ee){return ut+pt+rt+ee+ut+"/"+pt+rt},re=function(ee){ee.write(_t("")),ee.close();var We=ee.parentWindow.Object;return ee=null,We},he=function(){var ee=tt("iframe"),We="java"+pt+":",Yt;if(ee.style)return ee.style.display="none",et.appendChild(ee),ee.src=String(We),Yt=ee.contentWindow.document,Yt.open(),Yt.write(_t("document.F=Object")),Yt.close(),Yt.F},Ae,Fe=function(){try{Ae=new ActiveXObject("htmlfile")}catch(We){}Fe=document.domain&&Ae?re(Ae):he()||re(Ae);for(var ee=qt.length;ee--;)delete Fe[dt][qt[ee]];return Fe()};wt[Ft]=!0,kt.exports=Object.create||function(We,Yt){var qe;return We!==null?(Tt[dt]=Wt(We),qe=new Tt,Tt[dt]=null,qe[Ft]=We):qe=Fe(),Yt===void 0?qe:Gt(qe,Yt)}},"./node_modules/core-js/internals/object-define-properties.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/descriptors.js"),Gt=St("./node_modules/core-js/internals/object-define-property.js"),qt=St("./node_modules/core-js/internals/an-object.js"),wt=St("./node_modules/core-js/internals/object-keys.js");kt.exports=Wt?Object.defineProperties:function(tt,lt){qt(tt);for(var rt=wt(lt),ut=rt.length,dt=0,pt;ut>dt;)Gt.f(tt,pt=rt[dt++],lt[pt]);return tt}},"./node_modules/core-js/internals/object-define-property.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/descriptors.js"),Gt=St("./node_modules/core-js/internals/ie8-dom-define.js"),qt=St("./node_modules/core-js/internals/an-object.js"),wt=St("./node_modules/core-js/internals/to-property-key.js"),et=Object.defineProperty;Jt.f=Wt?et:function(lt,rt,ut){if(qt(lt),rt=wt(rt),qt(ut),Gt)try{return et(lt,rt,ut)}catch(dt){}if("get"in ut||"set"in ut)throw TypeError("Accessors not supported");return"value"in ut&&(lt[rt]=ut.value),lt}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/descriptors.js"),Gt=St("./node_modules/core-js/internals/object-property-is-enumerable.js"),qt=St("./node_modules/core-js/internals/create-property-descriptor.js"),wt=St("./node_modules/core-js/internals/to-indexed-object.js"),et=St("./node_modules/core-js/internals/to-property-key.js"),tt=St("./node_modules/core-js/internals/has.js"),lt=St("./node_modules/core-js/internals/ie8-dom-define.js"),rt=Object.getOwnPropertyDescriptor;Jt.f=Wt?rt:function(dt,pt){if(dt=wt(dt),pt=et(pt),lt)try{return rt(dt,pt)}catch(Ft){}if(tt(dt,pt))return qt(!Gt.f.call(dt,pt),dt[pt])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/to-indexed-object.js"),Gt=St("./node_modules/core-js/internals/object-get-own-property-names.js").f,qt={}.toString,wt=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],et=function(tt){try{return Gt(tt)}catch(lt){return wt.slice()}};kt.exports.f=function(lt){return wt&&qt.call(lt)=="[object Window]"?et(lt):Gt(Wt(lt))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/object-keys-internal.js"),Gt=St("./node_modules/core-js/internals/enum-bug-keys.js"),qt=Gt.concat("length","prototype");Jt.f=Object.getOwnPropertyNames||function(et){return Wt(et,qt)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(kt,Jt){Jt.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/has.js"),Gt=St("./node_modules/core-js/internals/to-object.js"),qt=St("./node_modules/core-js/internals/shared-key.js"),wt=St("./node_modules/core-js/internals/correct-prototype-getter.js"),et=qt("IE_PROTO"),tt=Object.prototype;kt.exports=wt?Object.getPrototypeOf:function(lt){return lt=Gt(lt),Wt(lt,et)?lt[et]:typeof lt.constructor=="function"&< instanceof lt.constructor?lt.constructor.prototype:lt instanceof Object?tt:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/has.js"),Gt=St("./node_modules/core-js/internals/to-indexed-object.js"),qt=St("./node_modules/core-js/internals/array-includes.js").indexOf,wt=St("./node_modules/core-js/internals/hidden-keys.js");kt.exports=function(et,tt){var lt=Gt(et),rt=0,ut=[],dt;for(dt in lt)!Wt(wt,dt)&&Wt(lt,dt)&&ut.push(dt);for(;tt.length>rt;)Wt(lt,dt=tt[rt++])&&(~qt(ut,dt)||ut.push(dt));return ut}},"./node_modules/core-js/internals/object-keys.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/object-keys-internal.js"),Gt=St("./node_modules/core-js/internals/enum-bug-keys.js");kt.exports=Object.keys||function(wt){return Wt(wt,Gt)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(kt,Jt){"use strict";var St={}.propertyIsEnumerable,Wt=Object.getOwnPropertyDescriptor,Gt=Wt&&!St.call({1:2},1);Jt.f=Gt?function(wt){var et=Wt(this,wt);return!!et&&et.enumerable}:St},"./node_modules/core-js/internals/object-set-prototype-of.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/an-object.js"),Gt=St("./node_modules/core-js/internals/a-possible-prototype.js");kt.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var qt=!1,wt={},et;try{et=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,et.call(wt,[]),qt=wt instanceof Array}catch(tt){}return function(lt,rt){return Wt(lt),Gt(rt),qt?et.call(lt,rt):lt.__proto__=rt,lt}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(kt,Jt,St){"use strict";var Wt=St("./node_modules/core-js/internals/to-string-tag-support.js"),Gt=St("./node_modules/core-js/internals/classof.js");kt.exports=Wt?{}.toString:function(){return"[object "+Gt(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/is-object.js");kt.exports=function(Gt,qt){var wt,et;if(qt==="string"&&typeof(wt=Gt.toString)=="function"&&!Wt(et=wt.call(Gt))||typeof(wt=Gt.valueOf)=="function"&&!Wt(et=wt.call(Gt))||qt!=="string"&&typeof(wt=Gt.toString)=="function"&&!Wt(et=wt.call(Gt)))return et;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/get-built-in.js"),Gt=St("./node_modules/core-js/internals/object-get-own-property-names.js"),qt=St("./node_modules/core-js/internals/object-get-own-property-symbols.js"),wt=St("./node_modules/core-js/internals/an-object.js");kt.exports=Wt("Reflect","ownKeys")||function(tt){var lt=Gt.f(wt(tt)),rt=qt.f;return rt?lt.concat(rt(tt)):lt}},"./node_modules/core-js/internals/path.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/global.js");kt.exports=Wt},"./node_modules/core-js/internals/redefine.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/global.js"),Gt=St("./node_modules/core-js/internals/create-non-enumerable-property.js"),qt=St("./node_modules/core-js/internals/has.js"),wt=St("./node_modules/core-js/internals/set-global.js"),et=St("./node_modules/core-js/internals/inspect-source.js"),tt=St("./node_modules/core-js/internals/internal-state.js"),lt=tt.get,rt=tt.enforce,ut=String(String).split("String");(kt.exports=function(dt,pt,Ft,Tt){var _t=Tt?!!Tt.unsafe:!1,re=Tt?!!Tt.enumerable:!1,he=Tt?!!Tt.noTargetGet:!1,Ae;if(typeof Ft=="function"&&(typeof pt=="string"&&!qt(Ft,"name")&&Gt(Ft,"name",pt),Ae=rt(Ft),Ae.source||(Ae.source=ut.join(typeof pt=="string"?pt:""))),dt===Wt){re?dt[pt]=Ft:wt(pt,Ft);return}else _t?!he&&dt[pt]&&(re=!0):delete dt[pt];re?dt[pt]=Ft:Gt(dt,pt,Ft)})(Function.prototype,"toString",function(){return typeof this=="function"&<(this).source||et(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(kt,Jt,St){"use strict";var Wt=St("./node_modules/core-js/internals/an-object.js");kt.exports=function(){var Gt=Wt(this),qt="";return Gt.global&&(qt+="g"),Gt.ignoreCase&&(qt+="i"),Gt.multiline&&(qt+="m"),Gt.dotAll&&(qt+="s"),Gt.unicode&&(qt+="u"),Gt.sticky&&(qt+="y"),qt}},"./node_modules/core-js/internals/require-object-coercible.js":function(kt){kt.exports=function(Jt){if(Jt==null)throw TypeError("Can't call method on "+Jt);return Jt}},"./node_modules/core-js/internals/set-global.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/global.js");kt.exports=function(Gt,qt){try{Object.defineProperty(Wt,Gt,{value:qt,configurable:!0,writable:!0})}catch(wt){Wt[Gt]=qt}return qt}},"./node_modules/core-js/internals/set-to-string-tag.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/object-define-property.js").f,Gt=St("./node_modules/core-js/internals/has.js"),qt=St("./node_modules/core-js/internals/well-known-symbol.js"),wt=qt("toStringTag");kt.exports=function(et,tt,lt){et&&!Gt(et=lt?et:et.prototype,wt)&&Wt(et,wt,{configurable:!0,value:tt})}},"./node_modules/core-js/internals/shared-key.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/shared.js"),Gt=St("./node_modules/core-js/internals/uid.js"),qt=Wt("keys");kt.exports=function(wt){return qt[wt]||(qt[wt]=Gt(wt))}},"./node_modules/core-js/internals/shared-store.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/global.js"),Gt=St("./node_modules/core-js/internals/set-global.js"),qt="__core-js_shared__",wt=Wt[qt]||Gt(qt,{});kt.exports=wt},"./node_modules/core-js/internals/shared.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/is-pure.js"),Gt=St("./node_modules/core-js/internals/shared-store.js");(kt.exports=function(qt,wt){return Gt[qt]||(Gt[qt]=wt!==void 0?wt:{})})("versions",[]).push({version:"3.16.0",mode:Wt?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/fails.js");kt.exports=function(Gt){return Wt(function(){var qt=""[Gt]('"');return qt!==qt.toLowerCase()||qt.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/to-integer.js"),Gt=St("./node_modules/core-js/internals/to-string.js"),qt=St("./node_modules/core-js/internals/require-object-coercible.js"),wt=function(et){return function(tt,lt){var rt=Gt(qt(tt)),ut=Wt(lt),dt=rt.length,pt,Ft;return ut<0||ut>=dt?et?"":void 0:(pt=rt.charCodeAt(ut),pt<55296||pt>56319||ut+1===dt||(Ft=rt.charCodeAt(ut+1))<56320||Ft>57343?et?rt.charAt(ut):pt:et?rt.slice(ut,ut+2):(pt-55296<<10)+(Ft-56320)+65536)}};kt.exports={codeAt:wt(!1),charAt:wt(!0)}},"./node_modules/core-js/internals/string-trim.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/require-object-coercible.js"),Gt=St("./node_modules/core-js/internals/to-string.js"),qt=St("./node_modules/core-js/internals/whitespaces.js"),wt="["+qt+"]",et=RegExp("^"+wt+wt+"*"),tt=RegExp(wt+wt+"*$"),lt=function(rt){return function(ut){var dt=Gt(Wt(ut));return rt&1&&(dt=dt.replace(et,"")),rt&2&&(dt=dt.replace(tt,"")),dt}};kt.exports={start:lt(1),end:lt(2),trim:lt(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/to-integer.js"),Gt=Math.max,qt=Math.min;kt.exports=function(wt,et){var tt=Wt(wt);return tt<0?Gt(tt+et,0):qt(tt,et)}},"./node_modules/core-js/internals/to-indexed-object.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/indexed-object.js"),Gt=St("./node_modules/core-js/internals/require-object-coercible.js");kt.exports=function(qt){return Wt(Gt(qt))}},"./node_modules/core-js/internals/to-integer.js":function(kt){var Jt=Math.ceil,St=Math.floor;kt.exports=function(Wt){return isNaN(Wt=+Wt)?0:(Wt>0?St:Jt)(Wt)}},"./node_modules/core-js/internals/to-length.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/to-integer.js"),Gt=Math.min;kt.exports=function(qt){return qt>0?Gt(Wt(qt),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/require-object-coercible.js");kt.exports=function(Gt){return Object(Wt(Gt))}},"./node_modules/core-js/internals/to-primitive.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/is-object.js"),Gt=St("./node_modules/core-js/internals/is-symbol.js"),qt=St("./node_modules/core-js/internals/ordinary-to-primitive.js"),wt=St("./node_modules/core-js/internals/well-known-symbol.js"),et=wt("toPrimitive");kt.exports=function(tt,lt){if(!Wt(tt)||Gt(tt))return tt;var rt=tt[et],ut;if(rt!==void 0){if(lt===void 0&&(lt="default"),ut=rt.call(tt,lt),!Wt(ut)||Gt(ut))return ut;throw TypeError("Can't convert object to primitive value")}return lt===void 0&&(lt="number"),qt(tt,lt)}},"./node_modules/core-js/internals/to-property-key.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/to-primitive.js"),Gt=St("./node_modules/core-js/internals/is-symbol.js");kt.exports=function(qt){var wt=Wt(qt,"string");return Gt(wt)?wt:String(wt)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/well-known-symbol.js"),Gt=Wt("toStringTag"),qt={};qt[Gt]="z",kt.exports=String(qt)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/is-symbol.js");kt.exports=function(Gt){if(Wt(Gt))throw TypeError("Cannot convert a Symbol value to a string");return String(Gt)}},"./node_modules/core-js/internals/uid.js":function(kt){var Jt=0,St=Math.random();kt.exports=function(Wt){return"Symbol("+String(Wt===void 0?"":Wt)+")_"+(++Jt+St).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/native-symbol.js");kt.exports=Wt&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/well-known-symbol.js");Jt.f=Wt},"./node_modules/core-js/internals/well-known-symbol.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/global.js"),Gt=St("./node_modules/core-js/internals/shared.js"),qt=St("./node_modules/core-js/internals/has.js"),wt=St("./node_modules/core-js/internals/uid.js"),et=St("./node_modules/core-js/internals/native-symbol.js"),tt=St("./node_modules/core-js/internals/use-symbol-as-uid.js"),lt=Gt("wks"),rt=Wt.Symbol,ut=tt?rt:rt&&rt.withoutSetter||wt;kt.exports=function(dt){return(!qt(lt,dt)||!(et||typeof lt[dt]=="string"))&&(et&&qt(rt,dt)?lt[dt]=rt[dt]:lt[dt]=ut("Symbol."+dt)),lt[dt]}},"./node_modules/core-js/internals/whitespaces.js":function(kt){kt.exports=`
|
|
|
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},"./node_modules/core-js/modules/es.array.concat.js":function(kt,Jt,St){"use strict";var Wt=St("./node_modules/core-js/internals/export.js"),Gt=St("./node_modules/core-js/internals/fails.js"),qt=St("./node_modules/core-js/internals/is-array.js"),wt=St("./node_modules/core-js/internals/is-object.js"),et=St("./node_modules/core-js/internals/to-object.js"),tt=St("./node_modules/core-js/internals/to-length.js"),lt=St("./node_modules/core-js/internals/create-property.js"),rt=St("./node_modules/core-js/internals/array-species-create.js"),ut=St("./node_modules/core-js/internals/array-method-has-species-support.js"),dt=St("./node_modules/core-js/internals/well-known-symbol.js"),pt=St("./node_modules/core-js/internals/engine-v8-version.js"),Ft=dt("isConcatSpreadable"),Tt=9007199254740991,_t="Maximum allowed index exceeded",re=pt>=51||!Gt(function(){var ee=[];return ee[Ft]=!1,ee.concat()[0]!==ee}),he=ut("concat"),Ae=function(ee){if(!wt(ee))return!1;var We=ee[Ft];return We!==void 0?!!We:qt(ee)},Fe=!re||!he;Wt({target:"Array",proto:!0,forced:Fe},{concat:function(We){var Yt=et(this),qe=rt(Yt,0),Ge=0,Oe,Ze,Qe,we,oe;for(Oe=-1,Qe=arguments.length;Oe<Qe;Oe++)if(oe=Oe===-1?Yt:arguments[Oe],Ae(oe)){if(we=tt(oe.length),Ge+we>Tt)throw TypeError(_t);for(Ze=0;Ze<we;Ze++,Ge++)Ze in oe&<(qe,Ge,oe[Ze])}else{if(Ge>=Tt)throw TypeError(_t);lt(qe,Ge++,oe)}return qe.length=Ge,qe}})},"./node_modules/core-js/modules/es.array.iterator.js":function(kt,Jt,St){"use strict";var Wt=St("./node_modules/core-js/internals/to-indexed-object.js"),Gt=St("./node_modules/core-js/internals/add-to-unscopables.js"),qt=St("./node_modules/core-js/internals/iterators.js"),wt=St("./node_modules/core-js/internals/internal-state.js"),et=St("./node_modules/core-js/internals/define-iterator.js"),tt="Array Iterator",lt=wt.set,rt=wt.getterFor(tt);kt.exports=et(Array,"Array",function(ut,dt){lt(this,{type:tt,target:Wt(ut),index:0,kind:dt})},function(){var ut=rt(this),dt=ut.target,pt=ut.kind,Ft=ut.index++;return!dt||Ft>=dt.length?(ut.target=void 0,{value:void 0,done:!0}):pt=="keys"?{value:Ft,done:!1}:pt=="values"?{value:dt[Ft],done:!1}:{value:[Ft,dt[Ft]],done:!1}},"values"),qt.Arguments=qt.Array,Gt("keys"),Gt("values"),Gt("entries")},"./node_modules/core-js/modules/es.array.join.js":function(kt,Jt,St){"use strict";var Wt=St("./node_modules/core-js/internals/export.js"),Gt=St("./node_modules/core-js/internals/indexed-object.js"),qt=St("./node_modules/core-js/internals/to-indexed-object.js"),wt=St("./node_modules/core-js/internals/array-method-is-strict.js"),et=[].join,tt=Gt!=Object,lt=wt("join",",");Wt({target:"Array",proto:!0,forced:tt||!lt},{join:function(ut){return et.call(qt(this),ut===void 0?",":ut)}})},"./node_modules/core-js/modules/es.array.map.js":function(kt,Jt,St){"use strict";var Wt=St("./node_modules/core-js/internals/export.js"),Gt=St("./node_modules/core-js/internals/array-iteration.js").map,qt=St("./node_modules/core-js/internals/array-method-has-species-support.js"),wt=qt("map");Wt({target:"Array",proto:!0,forced:!wt},{map:function(tt){return Gt(this,tt,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(kt,Jt,St){"use strict";var Wt=St("./node_modules/core-js/internals/export.js"),Gt=St("./node_modules/core-js/internals/is-object.js"),qt=St("./node_modules/core-js/internals/is-array.js"),wt=St("./node_modules/core-js/internals/to-absolute-index.js"),et=St("./node_modules/core-js/internals/to-length.js"),tt=St("./node_modules/core-js/internals/to-indexed-object.js"),lt=St("./node_modules/core-js/internals/create-property.js"),rt=St("./node_modules/core-js/internals/well-known-symbol.js"),ut=St("./node_modules/core-js/internals/array-method-has-species-support.js"),dt=ut("slice"),pt=rt("species"),Ft=[].slice,Tt=Math.max;Wt({target:"Array",proto:!0,forced:!dt},{slice:function(re,he){var Ae=tt(this),Fe=et(Ae.length),ee=wt(re,Fe),We=wt(he===void 0?Fe:he,Fe),Yt,qe,Ge;if(qt(Ae)&&(Yt=Ae.constructor,typeof Yt=="function"&&(Yt===Array||qt(Yt.prototype))?Yt=void 0:Gt(Yt)&&(Yt=Yt[pt],Yt===null&&(Yt=void 0)),Yt===Array||Yt===void 0))return Ft.call(Ae,ee,We);for(qe=new(Yt===void 0?Array:Yt)(Tt(We-ee,0)),Ge=0;ee<We;ee++,Ge++)ee in Ae&<(qe,Ge,Ae[ee]);return qe.length=Ge,qe}})},"./node_modules/core-js/modules/es.function.name.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/descriptors.js"),Gt=St("./node_modules/core-js/internals/object-define-property.js").f,qt=Function.prototype,wt=qt.toString,et=/^\s*function ([^ (]*)/,tt="name";Wt&&!(tt in qt)&&Gt(qt,tt,{configurable:!0,get:function(){try{return wt.call(this).match(et)[1]}catch(lt){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(kt,Jt,St){"use strict";var Wt=St("./node_modules/core-js/internals/descriptors.js"),Gt=St("./node_modules/core-js/internals/global.js"),qt=St("./node_modules/core-js/internals/is-forced.js"),wt=St("./node_modules/core-js/internals/redefine.js"),et=St("./node_modules/core-js/internals/has.js"),tt=St("./node_modules/core-js/internals/classof-raw.js"),lt=St("./node_modules/core-js/internals/inherit-if-required.js"),rt=St("./node_modules/core-js/internals/is-symbol.js"),ut=St("./node_modules/core-js/internals/to-primitive.js"),dt=St("./node_modules/core-js/internals/fails.js"),pt=St("./node_modules/core-js/internals/object-create.js"),Ft=St("./node_modules/core-js/internals/object-get-own-property-names.js").f,Tt=St("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,_t=St("./node_modules/core-js/internals/object-define-property.js").f,re=St("./node_modules/core-js/internals/string-trim.js").trim,he="Number",Ae=Gt[he],Fe=Ae.prototype,ee=tt(pt(Fe))==he,We=function(Ze){if(rt(Ze))throw TypeError("Cannot convert a Symbol value to a number");var Qe=ut(Ze,"number"),we,oe,Pe,En,Nn,Xe,kn,Vn;if(typeof Qe=="string"&&Qe.length>2){if(Qe=re(Qe),we=Qe.charCodeAt(0),we===43||we===45){if(oe=Qe.charCodeAt(2),oe===88||oe===120)return NaN}else if(we===48){switch(Qe.charCodeAt(1)){case 66:case 98:Pe=2,En=49;break;case 79:case 111:Pe=8,En=55;break;default:return+Qe}for(Nn=Qe.slice(2),Xe=Nn.length,kn=0;kn<Xe;kn++)if(Vn=Nn.charCodeAt(kn),Vn<48||Vn>En)return NaN;return parseInt(Nn,Pe)}}return+Qe};if(qt(he,!Ae(" 0o1")||!Ae("0b1")||Ae("+0x1"))){for(var Yt=function(Qe){var we=arguments.length<1?0:Qe,oe=this;return oe instanceof Yt&&(ee?dt(function(){Fe.valueOf.call(oe)}):tt(oe)!=he)?lt(new Ae(We(we)),oe,Yt):We(we)},qe=Wt?Ft(Ae):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),Ge=0,Oe;qe.length>Ge;Ge++)et(Ae,Oe=qe[Ge])&&!et(Yt,Oe)&&_t(Yt,Oe,Tt(Ae,Oe));Yt.prototype=Fe,Fe.constructor=Yt,wt(Gt,he,Yt)}},"./node_modules/core-js/modules/es.object.assign.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/export.js"),Gt=St("./node_modules/core-js/internals/object-assign.js");Wt({target:"Object",stat:!0,forced:Object.assign!==Gt},{assign:Gt})},"./node_modules/core-js/modules/es.object.keys.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/export.js"),Gt=St("./node_modules/core-js/internals/to-object.js"),qt=St("./node_modules/core-js/internals/object-keys.js"),wt=St("./node_modules/core-js/internals/fails.js"),et=wt(function(){qt(1)});Wt({target:"Object",stat:!0,forced:et},{keys:function(lt){return qt(Gt(lt))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/to-string-tag-support.js"),Gt=St("./node_modules/core-js/internals/redefine.js"),qt=St("./node_modules/core-js/internals/object-to-string.js");Wt||Gt(Object.prototype,"toString",qt,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(kt,Jt,St){"use strict";var Wt=St("./node_modules/core-js/internals/redefine.js"),Gt=St("./node_modules/core-js/internals/an-object.js"),qt=St("./node_modules/core-js/internals/to-string.js"),wt=St("./node_modules/core-js/internals/fails.js"),et=St("./node_modules/core-js/internals/regexp-flags.js"),tt="toString",lt=RegExp.prototype,rt=lt[tt],ut=wt(function(){return rt.call({source:"a",flags:"b"})!="/a/b"}),dt=rt.name!=tt;(ut||dt)&&Wt(RegExp.prototype,tt,function(){var Ft=Gt(this),Tt=qt(Ft.source),_t=Ft.flags,re=qt(_t===void 0&&Ft instanceof RegExp&&!("flags"in lt)?et.call(Ft):_t);return"/"+Tt+"/"+re},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(kt,Jt,St){"use strict";var Wt=St("./node_modules/core-js/internals/string-multibyte.js").charAt,Gt=St("./node_modules/core-js/internals/to-string.js"),qt=St("./node_modules/core-js/internals/internal-state.js"),wt=St("./node_modules/core-js/internals/define-iterator.js"),et="String Iterator",tt=qt.set,lt=qt.getterFor(et);wt(String,"String",function(rt){tt(this,{type:et,string:Gt(rt),index:0})},function(){var ut=lt(this),dt=ut.string,pt=ut.index,Ft;return pt>=dt.length?{value:void 0,done:!0}:(Ft=Wt(dt,pt),ut.index+=Ft.length,{value:Ft,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(kt,Jt,St){"use strict";var Wt=St("./node_modules/core-js/internals/export.js"),Gt=St("./node_modules/core-js/internals/create-html.js"),qt=St("./node_modules/core-js/internals/string-html-forced.js");Wt({target:"String",proto:!0,forced:qt("link")},{link:function(et){return Gt(this,"a","href",et)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(kt,Jt,St){"use strict";var Wt=St("./node_modules/core-js/internals/export.js"),Gt=St("./node_modules/core-js/internals/descriptors.js"),qt=St("./node_modules/core-js/internals/global.js"),wt=St("./node_modules/core-js/internals/has.js"),et=St("./node_modules/core-js/internals/is-object.js"),tt=St("./node_modules/core-js/internals/object-define-property.js").f,lt=St("./node_modules/core-js/internals/copy-constructor-properties.js"),rt=qt.Symbol;if(Gt&&typeof rt=="function"&&(!("description"in rt.prototype)||rt().description!==void 0)){var ut={},dt=function(){var he=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),Ae=this instanceof dt?new rt(he):he===void 0?rt():rt(he);return he===""&&(ut[Ae]=!0),Ae};lt(dt,rt);var pt=dt.prototype=rt.prototype;pt.constructor=dt;var Ft=pt.toString,Tt=String(rt("test"))=="Symbol(test)",_t=/^Symbol\((.*)\)[^)]+$/;tt(pt,"description",{configurable:!0,get:function(){var he=et(this)?this.valueOf():this,Ae=Ft.call(he);if(wt(ut,he))return"";var Fe=Tt?Ae.slice(7,-1):Ae.replace(_t,"$1");return Fe===""?void 0:Fe}}),Wt({global:!0,forced:!0},{Symbol:dt})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/define-well-known-symbol.js");Wt("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(kt,Jt,St){"use strict";var Wt=St("./node_modules/core-js/internals/export.js"),Gt=St("./node_modules/core-js/internals/global.js"),qt=St("./node_modules/core-js/internals/get-built-in.js"),wt=St("./node_modules/core-js/internals/is-pure.js"),et=St("./node_modules/core-js/internals/descriptors.js"),tt=St("./node_modules/core-js/internals/native-symbol.js"),lt=St("./node_modules/core-js/internals/fails.js"),rt=St("./node_modules/core-js/internals/has.js"),ut=St("./node_modules/core-js/internals/is-array.js"),dt=St("./node_modules/core-js/internals/is-object.js"),pt=St("./node_modules/core-js/internals/is-symbol.js"),Ft=St("./node_modules/core-js/internals/an-object.js"),Tt=St("./node_modules/core-js/internals/to-object.js"),_t=St("./node_modules/core-js/internals/to-indexed-object.js"),re=St("./node_modules/core-js/internals/to-property-key.js"),he=St("./node_modules/core-js/internals/to-string.js"),Ae=St("./node_modules/core-js/internals/create-property-descriptor.js"),Fe=St("./node_modules/core-js/internals/object-create.js"),ee=St("./node_modules/core-js/internals/object-keys.js"),We=St("./node_modules/core-js/internals/object-get-own-property-names.js"),Yt=St("./node_modules/core-js/internals/object-get-own-property-names-external.js"),qe=St("./node_modules/core-js/internals/object-get-own-property-symbols.js"),Ge=St("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),Oe=St("./node_modules/core-js/internals/object-define-property.js"),Ze=St("./node_modules/core-js/internals/object-property-is-enumerable.js"),Qe=St("./node_modules/core-js/internals/create-non-enumerable-property.js"),we=St("./node_modules/core-js/internals/redefine.js"),oe=St("./node_modules/core-js/internals/shared.js"),Pe=St("./node_modules/core-js/internals/shared-key.js"),En=St("./node_modules/core-js/internals/hidden-keys.js"),Nn=St("./node_modules/core-js/internals/uid.js"),Xe=St("./node_modules/core-js/internals/well-known-symbol.js"),kn=St("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),Vn=St("./node_modules/core-js/internals/define-well-known-symbol.js"),Ai=St("./node_modules/core-js/internals/set-to-string-tag.js"),Wn=St("./node_modules/core-js/internals/internal-state.js"),Si=St("./node_modules/core-js/internals/array-iteration.js").forEach,an=Pe("hidden"),Li="Symbol",Oi="prototype",ue=Xe("toPrimitive"),Pn=Wn.set,de=Wn.getterFor(Li),Dt=Object[Oi],Mt=Gt.Symbol,zt=qt("JSON","stringify"),be=Ge.f,De=Oe.f,fe=Yt.f,Ce=Ze.f,te=oe("symbols"),Ct=oe("op-symbols"),yt=oe("string-to-symbol-registry"),$t=oe("symbol-to-string-registry"),xe=oe("wks"),Rt=Gt.QObject,je=!Rt||!Rt[Oi]||!Rt[Oi].findChild,fn=et&<(function(){return Fe(De({},"a",{get:function(){return De(this,"a",{value:7}).a}})).a!=7})?function(zr,pr,Kr){var hr=be(Dt,pr);hr&&delete Dt[pr],De(zr,pr,Kr),hr&&zr!==Dt&&De(Dt,pr,hr)}:De,jn=function(zr,pr){var Kr=te[zr]=Fe(Mt[Oi]);return Pn(Kr,{type:Li,tag:zr,description:pr}),et||(Kr.description=pr),Kr},bn=function(pr,Kr,hr){pr===Dt&&bn(Ct,Kr,hr),Ft(pr);var Mo=re(Kr);return Ft(hr),rt(te,Mo)?(hr.enumerable?(rt(pr,an)&&pr[an][Mo]&&(pr[an][Mo]=!1),hr=Fe(hr,{enumerable:Ae(0,!1)})):(rt(pr,an)||De(pr,an,Ae(1,{})),pr[an][Mo]=!0),fn(pr,Mo,hr)):De(pr,Mo,hr)},ci=function(pr,Kr){Ft(pr);var hr=_t(Kr),Mo=ee(hr).concat(oo(hr));return Si(Mo,function(Xo){(!et||zi.call(hr,Xo))&&bn(pr,Xo,hr[Xo])}),pr},Ji=function(pr,Kr){return Kr===void 0?Fe(pr):ci(Fe(pr),Kr)},zi=function(pr){var Kr=re(pr),hr=Ce.call(this,Kr);return this===Dt&&rt(te,Kr)&&!rt(Ct,Kr)?!1:hr||!rt(this,Kr)||!rt(te,Kr)||rt(this,an)&&this[an][Kr]?hr:!0},dr=function(pr,Kr){var hr=_t(pr),Mo=re(Kr);if(!(hr===Dt&&rt(te,Mo)&&!rt(Ct,Mo))){var Xo=be(hr,Mo);return Xo&&rt(te,Mo)&&!(rt(hr,an)&&hr[an][Mo])&&(Xo.enumerable=!0),Xo}},Fr=function(pr){var Kr=fe(_t(pr)),hr=[];return Si(Kr,function(Mo){!rt(te,Mo)&&!rt(En,Mo)&&hr.push(Mo)}),hr},oo=function(pr){var Kr=pr===Dt,hr=fe(Kr?Ct:_t(pr)),Mo=[];return Si(hr,function(Xo){rt(te,Xo)&&(!Kr||rt(Dt,Xo))&&Mo.push(te[Xo])}),Mo};if(tt||(Mt=function(){if(this instanceof Mt)throw TypeError("Symbol is not a constructor");var pr=!arguments.length||arguments[0]===void 0?void 0:he(arguments[0]),Kr=Nn(pr),hr=function(Mo){this===Dt&&hr.call(Ct,Mo),rt(this,an)&&rt(this[an],Kr)&&(this[an][Kr]=!1),fn(this,Kr,Ae(1,Mo))};return et&&je&&fn(Dt,Kr,{configurable:!0,set:hr}),jn(Kr,pr)},we(Mt[Oi],"toString",function(){return de(this).tag}),we(Mt,"withoutSetter",function(zr){return jn(Nn(zr),zr)}),Ze.f=zi,Oe.f=bn,Ge.f=dr,We.f=Yt.f=Fr,qe.f=oo,kn.f=function(zr){return jn(Xe(zr),zr)},et&&(De(Mt[Oi],"description",{configurable:!0,get:function(){return de(this).description}}),wt||we(Dt,"propertyIsEnumerable",zi,{unsafe:!0}))),Wt({global:!0,wrap:!0,forced:!tt,sham:!tt},{Symbol:Mt}),Si(ee(xe),function(zr){Vn(zr)}),Wt({target:Li,stat:!0,forced:!tt},{for:function(zr){var pr=he(zr);if(rt(yt,pr))return yt[pr];var Kr=Mt(pr);return yt[pr]=Kr,$t[Kr]=pr,Kr},keyFor:function(pr){if(!pt(pr))throw TypeError(pr+" is not a symbol");if(rt($t,pr))return $t[pr]},useSetter:function(){je=!0},useSimple:function(){je=!1}}),Wt({target:"Object",stat:!0,forced:!tt,sham:!et},{create:Ji,defineProperty:bn,defineProperties:ci,getOwnPropertyDescriptor:dr}),Wt({target:"Object",stat:!0,forced:!tt},{getOwnPropertyNames:Fr,getOwnPropertySymbols:oo}),Wt({target:"Object",stat:!0,forced:lt(function(){qe.f(1)})},{getOwnPropertySymbols:function(pr){return qe.f(Tt(pr))}}),zt){var Jr=!tt||lt(function(){var zr=Mt();return zt([zr])!="[null]"||zt({a:zr})!="{}"||zt(Object(zr))!="{}"});Wt({target:"JSON",stat:!0,forced:Jr},{stringify:function(pr,Kr,hr){for(var Mo=[pr],Xo=1,mo;arguments.length>Xo;)Mo.push(arguments[Xo++]);if(mo=Kr,!(!dt(Kr)&&pr===void 0||pt(pr)))return ut(Kr)||(Kr=function(Ts,ws){if(typeof mo=="function"&&(ws=mo.call(this,Ts,ws)),!pt(ws))return ws}),Mo[1]=Kr,zt.apply(null,Mo)}})}Mt[Oi][ue]||Qe(Mt[Oi],ue,Mt[Oi].valueOf),Ai(Mt,Li),En[an]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/global.js"),Gt=St("./node_modules/core-js/internals/dom-iterables.js"),qt=St("./node_modules/core-js/internals/array-for-each.js"),wt=St("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var et in Gt){var tt=Wt[et],lt=tt&&tt.prototype;if(lt&<.forEach!==qt)try{wt(lt,"forEach",qt)}catch(rt){lt.forEach=qt}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(kt,Jt,St){var Wt=St("./node_modules/core-js/internals/global.js"),Gt=St("./node_modules/core-js/internals/dom-iterables.js"),qt=St("./node_modules/core-js/modules/es.array.iterator.js"),wt=St("./node_modules/core-js/internals/create-non-enumerable-property.js"),et=St("./node_modules/core-js/internals/well-known-symbol.js"),tt=et("iterator"),lt=et("toStringTag"),rt=qt.values;for(var ut in Gt){var dt=Wt[ut],pt=dt&&dt.prototype;if(pt){if(pt[tt]!==rt)try{wt(pt,tt,rt)}catch(Tt){pt[tt]=rt}if(pt[lt]||wt(pt,lt,ut),Gt[ut]){for(var Ft in qt)if(pt[Ft]!==qt[Ft])try{wt(pt,Ft,qt[Ft])}catch(Tt){pt[Ft]=qt[Ft]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(kt){(function(Jt,St){kt.exports=St()})(this,function(){"use strict";function Jt(Rt){var je=typeof Rt;return Rt!==null&&(je==="object"||je==="function")}function St(Rt){return typeof Rt=="function"}var Wt=void 0;Array.isArray?Wt=Array.isArray:Wt=function(Rt){return Object.prototype.toString.call(Rt)==="[object Array]"};var Gt=Wt,qt=0,wt=void 0,et=void 0,tt=function(je,fn){ee[qt]=je,ee[qt+1]=fn,qt+=2,qt===2&&(et?et(We):qe())};function lt(Rt){et=Rt}function rt(Rt){tt=Rt}var ut=typeof window!="undefined"?window:void 0,dt=ut||{},pt=dt.MutationObserver||dt.WebKitMutationObserver,Ft=typeof self=="undefined"&&typeof bt!="undefined"&&{}.toString.call(bt)==="[object process]",Tt=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function _t(){return function(){return bt.nextTick(We)}}function re(){return typeof wt!="undefined"?function(){wt(We)}:Fe()}function he(){var Rt=0,je=new pt(We),fn=document.createTextNode("");return je.observe(fn,{characterData:!0}),function(){fn.data=Rt=++Rt%2}}function Ae(){var Rt=new MessageChannel;return Rt.port1.onmessage=We,function(){return Rt.port2.postMessage(0)}}function Fe(){var Rt=setTimeout;return function(){return Rt(We,1)}}var ee=new Array(1e3);function We(){for(var Rt=0;Rt<qt;Rt+=2){var je=ee[Rt],fn=ee[Rt+1];je(fn),ee[Rt]=void 0,ee[Rt+1]=void 0}qt=0}function Yt(){try{var Rt=Function("return this")().require("vertx");return wt=Rt.runOnLoop||Rt.runOnContext,re()}catch(je){return Fe()}}var qe=void 0;Ft?qe=_t():pt?qe=he():Tt?qe=Ae():ut===void 0?qe=Yt():qe=Fe();function Ge(Rt,je){var fn=this,jn=new this.constructor(Qe);jn[Ze]===void 0&&zt(jn);var bn=fn._state;if(bn){var ci=arguments[bn-1];tt(function(){return Pn(bn,jn,ci,fn._result)})}else Oi(fn,jn,Rt,je);return jn}function Oe(Rt){var je=this;if(Rt&&typeof Rt=="object"&&Rt.constructor===je)return Rt;var fn=new je(Qe);return Wn(fn,Rt),fn}var Ze=Math.random().toString(36).substring(2);function Qe(){}var we=void 0,oe=1,Pe=2;function En(){return new TypeError("You cannot resolve a promise with itself")}function Nn(){return new TypeError("A promises callback cannot return that same promise.")}function Xe(Rt,je,fn,jn){try{Rt.call(je,fn,jn)}catch(bn){return bn}}function kn(Rt,je,fn){tt(function(jn){var bn=!1,ci=Xe(fn,je,function(Ji){bn||(bn=!0,je!==Ji?Wn(jn,Ji):an(jn,Ji))},function(Ji){bn||(bn=!0,Li(jn,Ji))},"Settle: "+(jn._label||" unknown promise"));!bn&&ci&&(bn=!0,Li(jn,ci))},Rt)}function Vn(Rt,je){je._state===oe?an(Rt,je._result):je._state===Pe?Li(Rt,je._result):Oi(je,void 0,function(fn){return Wn(Rt,fn)},function(fn){return Li(Rt,fn)})}function Ai(Rt,je,fn){je.constructor===Rt.constructor&&fn===Ge&&je.constructor.resolve===Oe?Vn(Rt,je):fn===void 0?an(Rt,je):St(fn)?kn(Rt,je,fn):an(Rt,je)}function Wn(Rt,je){if(Rt===je)Li(Rt,En());else if(Jt(je)){var fn=void 0;try{fn=je.then}catch(jn){Li(Rt,jn);return}Ai(Rt,je,fn)}else an(Rt,je)}function Si(Rt){Rt._onerror&&Rt._onerror(Rt._result),ue(Rt)}function an(Rt,je){Rt._state===we&&(Rt._result=je,Rt._state=oe,Rt._subscribers.length!==0&&tt(ue,Rt))}function Li(Rt,je){Rt._state===we&&(Rt._state=Pe,Rt._result=je,tt(Si,Rt))}function Oi(Rt,je,fn,jn){var bn=Rt._subscribers,ci=bn.length;Rt._onerror=null,bn[ci]=je,bn[ci+oe]=fn,bn[ci+Pe]=jn,ci===0&&Rt._state&&tt(ue,Rt)}function ue(Rt){var je=Rt._subscribers,fn=Rt._state;if(je.length!==0){for(var jn=void 0,bn=void 0,ci=Rt._result,Ji=0;Ji<je.length;Ji+=3)jn=je[Ji],bn=je[Ji+fn],jn?Pn(fn,jn,bn,ci):bn(ci);Rt._subscribers.length=0}}function Pn(Rt,je,fn,jn){var bn=St(fn),ci=void 0,Ji=void 0,zi=!0;if(bn){try{ci=fn(jn)}catch(dr){zi=!1,Ji=dr}if(je===ci){Li(je,Nn());return}}else ci=jn;je._state!==we||(bn&&zi?Wn(je,ci):zi===!1?Li(je,Ji):Rt===oe?an(je,ci):Rt===Pe&&Li(je,ci))}function de(Rt,je){try{je(function(jn){Wn(Rt,jn)},function(jn){Li(Rt,jn)})}catch(fn){Li(Rt,fn)}}var Dt=0;function Mt(){return Dt++}function zt(Rt){Rt[Ze]=Dt++,Rt._state=void 0,Rt._result=void 0,Rt._subscribers=[]}function be(){return new Error("Array Methods must be provided an Array")}var De=function(){function Rt(je,fn){this._instanceConstructor=je,this.promise=new je(Qe),this.promise[Ze]||zt(this.promise),Gt(fn)?(this.length=fn.length,this._remaining=fn.length,this._result=new Array(this.length),this.length===0?an(this.promise,this._result):(this.length=this.length||0,this._enumerate(fn),this._remaining===0&&an(this.promise,this._result))):Li(this.promise,be())}return Rt.prototype._enumerate=function(fn){for(var jn=0;this._state===we&&jn<fn.length;jn++)this._eachEntry(fn[jn],jn)},Rt.prototype._eachEntry=function(fn,jn){var bn=this._instanceConstructor,ci=bn.resolve;if(ci===Oe){var Ji=void 0,zi=void 0,dr=!1;try{Ji=fn.then}catch(oo){dr=!0,zi=oo}if(Ji===Ge&&fn._state!==we)this._settledAt(fn._state,jn,fn._result);else if(typeof Ji!="function")this._remaining--,this._result[jn]=fn;else if(bn===$t){var Fr=new bn(Qe);dr?Li(Fr,zi):Ai(Fr,fn,Ji),this._willSettleAt(Fr,jn)}else this._willSettleAt(new bn(function(oo){return oo(fn)}),jn)}else this._willSettleAt(ci(fn),jn)},Rt.prototype._settledAt=function(fn,jn,bn){var ci=this.promise;ci._state===we&&(this._remaining--,fn===Pe?Li(ci,bn):this._result[jn]=bn),this._remaining===0&&an(ci,this._result)},Rt.prototype._willSettleAt=function(fn,jn){var bn=this;Oi(fn,void 0,function(ci){return bn._settledAt(oe,jn,ci)},function(ci){return bn._settledAt(Pe,jn,ci)})},Rt}();function fe(Rt){return new De(this,Rt).promise}function Ce(Rt){var je=this;return Gt(Rt)?new je(function(fn,jn){for(var bn=Rt.length,ci=0;ci<bn;ci++)je.resolve(Rt[ci]).then(fn,jn)}):new je(function(fn,jn){return jn(new TypeError("You must pass an array to race."))})}function te(Rt){var je=this,fn=new je(Qe);return Li(fn,Rt),fn}function Ct(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function yt(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var $t=function(){function Rt(je){this[Ze]=Mt(),this._result=this._state=void 0,this._subscribers=[],Qe!==je&&(typeof je!="function"&&Ct(),this instanceof Rt?de(this,je):yt())}return Rt.prototype.catch=function(fn){return this.then(null,fn)},Rt.prototype.finally=function(fn){var jn=this,bn=jn.constructor;return St(fn)?jn.then(function(ci){return bn.resolve(fn()).then(function(){return ci})},function(ci){return bn.resolve(fn()).then(function(){throw ci})}):jn.then(fn,fn)},Rt}();$t.prototype.then=Ge,$t.all=fe,$t.race=Ce,$t.resolve=Oe,$t.reject=te,$t._setScheduler=lt,$t._setAsap=rt,$t._asap=tt;function xe(){var Rt=void 0;if(typeof Bt.g!="undefined")Rt=Bt.g;else if(typeof self!="undefined")Rt=self;else try{Rt=Function("return this")()}catch(jn){throw new Error("polyfill failed because global object is unavailable in this environment")}var je=Rt.Promise;if(je){var fn=null;try{fn=Object.prototype.toString.call(je.resolve())}catch(jn){}if(fn==="[object Promise]"&&!je.cast)return}Rt.Promise=$t}return $t.polyfill=xe,$t.Promise=$t,$t})},html2canvas:function(kt){"use strict";kt.exports=se},jspdf:function(kt){"use strict";kt.exports=ge}},ie={};function ae(kt){var Jt=ie[kt];if(Jt!==void 0)return Jt.exports;var St=ie[kt]={exports:{}};return Me[kt].call(St.exports,St,St.exports,ae),St.exports}(function(){ae.n=function(kt){var Jt=kt&&kt.__esModule?function(){return kt.default}:function(){return kt};return ae.d(Jt,{a:Jt}),Jt}})(),function(){ae.d=function(kt,Jt){for(var St in Jt)ae.o(Jt,St)&&!ae.o(kt,St)&&Object.defineProperty(kt,St,{enumerable:!0,get:Jt[St]})}}(),function(){ae.o=function(kt,Jt){return Object.prototype.hasOwnProperty.call(kt,Jt)}}(),function(){ae.r=function(kt){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(kt,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(kt,"__esModule",{value:!0})}}();var Lt={};return function(){"use strict";ae.r(Lt);var kt=ae("./src/worker.js"),Jt=ae("./src/plugin/jspdf-plugin.js"),St=ae("./src/plugin/pagebreaks.js"),Wt=ae("./src/plugin/hyperlinks.js"),Gt=function qt(wt,et){var tt=new qt.Worker(et);return wt?tt.from(wt).save():tt};Gt.Worker=kt.default,Lt.default=Gt}(),Lt=Lt.default,Lt}()})},67467:function(ui,Cn){Cn.read=function(Bt,bt,ge,se,Me){var ie,ae,Lt=Me*8-se-1,kt=(1<<Lt)-1,Jt=kt>>1,St=-7,Wt=ge?Me-1:0,Gt=ge?-1:1,qt=Bt[bt+Wt];for(Wt+=Gt,ie=qt&(1<<-St)-1,qt>>=-St,St+=Lt;St>0;ie=ie*256+Bt[bt+Wt],Wt+=Gt,St-=8);for(ae=ie&(1<<-St)-1,ie>>=-St,St+=se;St>0;ae=ae*256+Bt[bt+Wt],Wt+=Gt,St-=8);if(ie===0)ie=1-Jt;else{if(ie===kt)return ae?NaN:(qt?-1:1)*(1/0);ae=ae+Math.pow(2,se),ie=ie-Jt}return(qt?-1:1)*ae*Math.pow(2,ie-se)},Cn.write=function(Bt,bt,ge,se,Me,ie){var ae,Lt,kt,Jt=ie*8-Me-1,St=(1<<Jt)-1,Wt=St>>1,Gt=Me===23?Math.pow(2,-24)-Math.pow(2,-77):0,qt=se?0:ie-1,wt=se?1:-1,et=bt<0||bt===0&&1/bt<0?1:0;for(bt=Math.abs(bt),isNaN(bt)||bt===1/0?(Lt=isNaN(bt)?1:0,ae=St):(ae=Math.floor(Math.log(bt)/Math.LN2),bt*(kt=Math.pow(2,-ae))<1&&(ae--,kt*=2),ae+Wt>=1?bt+=Gt/kt:bt+=Gt*Math.pow(2,1-Wt),bt*kt>=2&&(ae++,kt/=2),ae+Wt>=St?(Lt=0,ae=St):ae+Wt>=1?(Lt=(bt*kt-1)*Math.pow(2,Me),ae=ae+Wt):(Lt=bt*Math.pow(2,Wt-1)*Math.pow(2,Me),ae=0));Me>=8;Bt[ge+qt]=Lt&255,qt+=wt,Lt/=256,Me-=8);for(ae=ae<<Me|Lt,Jt+=Me;Jt>0;Bt[ge+qt]=ae&255,qt+=wt,ae/=256,Jt-=8);Bt[ge+qt-wt]|=et*128}},7348:function(ui,Cn,Bt){"use strict";Bt.r(Cn),Bt.d(Cn,{AcroForm:function(){return al},AcroFormAppearance:function(){return Io},AcroFormButton:function(){return Cs},AcroFormCheckBox:function(){return tl},AcroFormChoiceField:function(){return su},AcroFormComboBox:function(){return Yo},AcroFormEditBox:function(){return va},AcroFormListBox:function(){return au},AcroFormPasswordField:function(){return Pl},AcroFormPushButton:function(){return lu},AcroFormRadioButton:function(){return Ll},AcroFormTextField:function(){return tu},GState:function(){return Eo},ShadingPattern:function(){return la},TilingPattern:function(){return ca},default:function(){return zo},jsPDF:function(){return zo}});var bt=Bt(62853),ge={},se=function(Pt,mt,Et,jt,le){var Zt=new Worker(ge[mt]||(ge[mt]=URL.createObjectURL(new Blob([Pt+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return Zt.onmessage=function(ye){var Se=ye.data,Ie=Se.$e$;if(Ie){var tn=new Error(Ie[0]);tn.code=Ie[1],tn.stack=Ie[2],le(tn,null)}else le(null,Se)},Zt.postMessage(Et,jt),Zt},Me=Uint8Array,ie=Uint16Array,ae=Int32Array,Lt=new Me([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),kt=new Me([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Jt=new Me([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),St=function(Pt,mt){for(var Et=new ie(31),jt=0;jt<31;++jt)Et[jt]=mt+=1<<Pt[jt-1];for(var le=new ae(Et[30]),jt=1;jt<30;++jt)for(var Zt=Et[jt];Zt<Et[jt+1];++Zt)le[Zt]=Zt-Et[jt]<<5|jt;return{b:Et,r:le}},Wt=St(Lt,2),Gt=Wt.b,qt=Wt.r;Gt[28]=258,qt[258]=28;for(var wt=St(kt,0),et=wt.b,tt=wt.r,lt=new ie(32768),rt=0;rt<32768;++rt){var ut=(rt&43690)>>1|(rt&21845)<<1;ut=(ut&52428)>>2|(ut&13107)<<2,ut=(ut&61680)>>4|(ut&3855)<<4,lt[rt]=((ut&65280)>>8|(ut&255)<<8)>>1}for(var dt=function(Pt,mt,Et){for(var jt=Pt.length,le=0,Zt=new ie(mt);le<jt;++le)Pt[le]&&++Zt[Pt[le]-1];var ye=new ie(mt);for(le=1;le<mt;++le)ye[le]=ye[le-1]+Zt[le-1]<<1;var Se;if(Et){Se=new ie(1<<mt);var Ie=15-mt;for(le=0;le<jt;++le)if(Pt[le])for(var tn=le<<4|Pt[le],mn=mt-Pt[le],pn=ye[Pt[le]-1]++<<mn,Tn=pn|(1<<mn)-1;pn<=Tn;++pn)Se[lt[pn]>>Ie]=tn}else for(Se=new ie(jt),le=0;le<jt;++le)Pt[le]&&(Se[le]=lt[ye[Pt[le]-1]++]>>15-Pt[le]);return Se},pt=new Me(288),rt=0;rt<144;++rt)pt[rt]=8;for(var rt=144;rt<256;++rt)pt[rt]=9;for(var rt=256;rt<280;++rt)pt[rt]=7;for(var rt=280;rt<288;++rt)pt[rt]=8;for(var Ft=new Me(32),rt=0;rt<32;++rt)Ft[rt]=5;var Tt=dt(pt,9,0),_t=dt(pt,9,1),re=dt(Ft,5,0),he=dt(Ft,5,1),Ae=function(Pt){for(var mt=Pt[0],Et=1;Et<Pt.length;++Et)Pt[Et]>mt&&(mt=Pt[Et]);return mt},Fe=function(Pt,mt,Et){var jt=mt/8|0;return(Pt[jt]|Pt[jt+1]<<8)>>(mt&7)&Et},ee=function(Pt,mt){var Et=mt/8|0;return(Pt[Et]|Pt[Et+1]<<8|Pt[Et+2]<<16)>>(mt&7)},We=function(Pt){return(Pt+7)/8|0},Yt=function(Pt,mt,Et){return(mt==null||mt<0)&&(mt=0),(Et==null||Et>Pt.length)&&(Et=Pt.length),new Me(Pt.subarray(mt,Et))},qe={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},Ge=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Oe=function(Pt,mt,Et){var jt=new Error(mt||Ge[Pt]);if(jt.code=Pt,Error.captureStackTrace&&Error.captureStackTrace(jt,Oe),!Et)throw jt;return jt},Ze=function(Pt,mt,Et,jt){var le=Pt.length,Zt=jt?jt.length:0;if(!le||mt.f&&!mt.l)return Et||new Me(0);var ye=!Et,Se=ye||mt.i!=2,Ie=mt.i;ye&&(Et=new Me(le*3));var tn=function(Xi){var ar=Et.length;if(Xi>ar){var gr=new Me(Math.max(ar*2,Xi));gr.set(Et),Et=gr}},mn=mt.f||0,pn=mt.p||0,Tn=mt.b||0,ze=mt.l,di=mt.d,$n=mt.m,pi=mt.n,Hn=le*8;do{if(!ze){mn=Fe(Pt,pn,1);var gi=Fe(Pt,pn+1,3);if(pn+=3,gi)if(gi==1)ze=_t,di=he,$n=9,pi=5;else if(gi==2){var io=Fe(Pt,pn,31)+257,vr=Fe(Pt,pn+10,15)+4,Ti=io+Fe(Pt,pn+5,31)+1;pn+=14;for(var Br=new Me(Ti),Vr=new Me(19),zn=0;zn<vr;++zn)Vr[Jt[zn]]=Fe(Pt,pn+zn*3,7);pn+=vr*3;for(var Xn=Ae(Vr),Yi=(1<<Xn)-1,ve=dt(Vr,Xn,1),zn=0;zn<Ti;){var Ee=ve[Fe(Pt,pn,Yi)];pn+=Ee&15;var Hi=Ee>>4;if(Hi<16)Br[zn++]=Hi;else{var Ye=0,on=0;for(Hi==16?(on=3+Fe(Pt,pn,3),pn+=2,Ye=Br[zn-1]):Hi==17?(on=3+Fe(Pt,pn,7),pn+=3):Hi==18&&(on=11+Fe(Pt,pn,127),pn+=7);on--;)Br[zn++]=Ye}}var cn=Br.subarray(0,io),dn=Br.subarray(io);$n=Ae(cn),pi=Ae(dn),ze=dt(cn,$n,1),di=dt(dn,pi,1)}else Oe(1);else{var Hi=We(pn)+4,ur=Pt[Hi-4]|Pt[Hi-3]<<8,Ir=Hi+ur;if(Ir>le){Ie&&Oe(0);break}Se&&tn(Tn+ur),Et.set(Pt.subarray(Hi,Ir),Tn),mt.b=Tn+=ur,mt.p=pn=Ir*8,mt.f=mn;continue}if(pn>Hn){Ie&&Oe(0);break}}Se&&tn(Tn+131072);for(var Dn=(1<<$n)-1,Jn=(1<<pi)-1,Ue=pn;;Ue=pn){var Ye=ze[ee(Pt,pn)&Dn],hn=Ye>>4;if(pn+=Ye&15,pn>Hn){Ie&&Oe(0);break}if(Ye||Oe(2),hn<256)Et[Tn++]=hn;else if(hn==256){Ue=pn,ze=null;break}else{var yn=hn-254;if(hn>264){var zn=hn-257,Mn=Lt[zn];yn=Fe(Pt,pn,(1<<Mn)-1)+Gt[zn],pn+=Mn}var Zn=di[ee(Pt,pn)&Jn],li=Zn>>4;Zn||Oe(3),pn+=Zn&15;var dn=et[li];if(li>3){var Mn=kt[li];dn+=ee(Pt,pn)&(1<<Mn)-1,pn+=Mn}if(pn>Hn){Ie&&Oe(0);break}Se&&tn(Tn+131072);var oi=Tn+yn;if(Tn<dn){var Fi=Zt-dn,ki=Math.min(dn,oi);for(Fi+Tn<0&&Oe(3);Tn<ki;++Tn)Et[Tn]=jt[Fi+Tn]}for(;Tn<oi;++Tn)Et[Tn]=Et[Tn-dn]}}mt.l=ze,mt.p=Ue,mt.b=Tn,mt.f=mn,ze&&(mn=1,mt.m=$n,mt.d=di,mt.n=pi)}while(!mn);return Tn!=Et.length&&ye?Yt(Et,0,Tn):Et.subarray(0,Tn)},Qe=function(Pt,mt,Et){Et<<=mt&7;var jt=mt/8|0;Pt[jt]|=Et,Pt[jt+1]|=Et>>8},we=function(Pt,mt,Et){Et<<=mt&7;var jt=mt/8|0;Pt[jt]|=Et,Pt[jt+1]|=Et>>8,Pt[jt+2]|=Et>>16},oe=function(Pt,mt){for(var Et=[],jt=0;jt<Pt.length;++jt)Pt[jt]&&Et.push({s:jt,f:Pt[jt]});var le=Et.length,Zt=Et.slice();if(!le)return{t:Ai,l:0};if(le==1){var ye=new Me(Et[0].s+1);return ye[Et[0].s]=1,{t:ye,l:1}}Et.sort(function(Ir,io){return Ir.f-io.f}),Et.push({s:-1,f:25001});var Se=Et[0],Ie=Et[1],tn=0,mn=1,pn=2;for(Et[0]={s:-1,f:Se.f+Ie.f,l:Se,r:Ie};mn!=le-1;)Se=Et[Et[tn].f<Et[pn].f?tn++:pn++],Ie=Et[tn!=mn&&Et[tn].f<Et[pn].f?tn++:pn++],Et[mn++]={s:-1,f:Se.f+Ie.f,l:Se,r:Ie};for(var Tn=Zt[0].s,jt=1;jt<le;++jt)Zt[jt].s>Tn&&(Tn=Zt[jt].s);var ze=new ie(Tn+1),di=Pe(Et[mn-1],ze,0);if(di>mt){var jt=0,$n=0,pi=di-mt,Hn=1<<pi;for(Zt.sort(function(io,vr){return ze[vr.s]-ze[io.s]||io.f-vr.f});jt<le;++jt){var gi=Zt[jt].s;if(ze[gi]>mt)$n+=Hn-(1<<di-ze[gi]),ze[gi]=mt;else break}for($n>>=pi;$n>0;){var Hi=Zt[jt].s;ze[Hi]<mt?$n-=1<<mt-ze[Hi]++-1:++jt}for(;jt>=0&&$n;--jt){var ur=Zt[jt].s;ze[ur]==mt&&(--ze[ur],++$n)}di=mt}return{t:new Me(ze),l:di}},Pe=function(Pt,mt,Et){return Pt.s==-1?Math.max(Pe(Pt.l,mt,Et+1),Pe(Pt.r,mt,Et+1)):mt[Pt.s]=Et},En=function(Pt){for(var mt=Pt.length;mt&&!Pt[--mt];);for(var Et=new ie(++mt),jt=0,le=Pt[0],Zt=1,ye=function(Ie){Et[jt++]=Ie},Se=1;Se<=mt;++Se)if(Pt[Se]==le&&Se!=mt)++Zt;else{if(!le&&Zt>2){for(;Zt>138;Zt-=138)ye(32754);Zt>2&&(ye(Zt>10?Zt-11<<5|28690:Zt-3<<5|12305),Zt=0)}else if(Zt>3){for(ye(le),--Zt;Zt>6;Zt-=6)ye(8304);Zt>2&&(ye(Zt-3<<5|8208),Zt=0)}for(;Zt--;)ye(le);Zt=1,le=Pt[Se]}return{c:Et.subarray(0,jt),n:mt}},Nn=function(Pt,mt){for(var Et=0,jt=0;jt<mt.length;++jt)Et+=Pt[jt]*mt[jt];return Et},Xe=function(Pt,mt,Et){var jt=Et.length,le=We(mt+2);Pt[le]=jt&255,Pt[le+1]=jt>>8,Pt[le+2]=Pt[le]^255,Pt[le+3]=Pt[le+1]^255;for(var Zt=0;Zt<jt;++Zt)Pt[le+Zt+4]=Et[Zt];return(le+4+jt)*8},kn=function(Pt,mt,Et,jt,le,Zt,ye,Se,Ie,tn,mn){Qe(mt,mn++,Et),++le[256];for(var pn=oe(le,15),Tn=pn.t,ze=pn.l,di=oe(Zt,15),$n=di.t,pi=di.l,Hn=En(Tn),gi=Hn.c,Hi=Hn.n,ur=En($n),Ir=ur.c,io=ur.n,vr=new ie(19),Ti=0;Ti<gi.length;++Ti)++vr[gi[Ti]&31];for(var Ti=0;Ti<Ir.length;++Ti)++vr[Ir[Ti]&31];for(var Br=oe(vr,7),Vr=Br.t,zn=Br.l,Xn=19;Xn>4&&!Vr[Jt[Xn-1]];--Xn);var Yi=tn+5<<3,ve=Nn(le,pt)+Nn(Zt,Ft)+ye,Ee=Nn(le,Tn)+Nn(Zt,$n)+ye+14+3*Xn+Nn(vr,Vr)+2*vr[16]+3*vr[17]+7*vr[18];if(Ie>=0&&Yi<=ve&&Yi<=Ee)return Xe(mt,mn,Pt.subarray(Ie,Ie+tn));var Ye,on,cn,dn;if(Qe(mt,mn,1+(Ee<ve)),mn+=2,Ee<ve){Ye=dt(Tn,ze,0),on=Tn,cn=dt($n,pi,0),dn=$n;var Dn=dt(Vr,zn,0);Qe(mt,mn,Hi-257),Qe(mt,mn+5,io-1),Qe(mt,mn+10,Xn-4),mn+=14;for(var Ti=0;Ti<Xn;++Ti)Qe(mt,mn+3*Ti,Vr[Jt[Ti]]);mn+=3*Xn;for(var Jn=[gi,Ir],Ue=0;Ue<2;++Ue)for(var hn=Jn[Ue],Ti=0;Ti<hn.length;++Ti){var yn=hn[Ti]&31;Qe(mt,mn,Dn[yn]),mn+=Vr[yn],yn>15&&(Qe(mt,mn,hn[Ti]>>5&127),mn+=hn[Ti]>>12)}}else Ye=Tt,on=pt,cn=re,dn=Ft;for(var Ti=0;Ti<Se;++Ti){var Mn=jt[Ti];if(Mn>255){var yn=Mn>>18&31;we(mt,mn,Ye[yn+257]),mn+=on[yn+257],yn>7&&(Qe(mt,mn,Mn>>23&31),mn+=Lt[yn]);var Zn=Mn&31;we(mt,mn,cn[Zn]),mn+=dn[Zn],Zn>3&&(we(mt,mn,Mn>>5&8191),mn+=kt[Zn])}else we(mt,mn,Ye[Mn]),mn+=on[Mn]}return we(mt,mn,Ye[256]),mn+on[256]},Vn=new ae([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Ai=new Me(0),Wn=function(Pt,mt,Et,jt,le,Zt){var ye=Zt.z||Pt.length,Se=new Me(jt+ye+5*(1+Math.ceil(ye/7e3))+le),Ie=Se.subarray(jt,Se.length-le),tn=Zt.l,mn=(Zt.r||0)&7;if(mt){mn&&(Ie[0]=Zt.r>>3);for(var pn=Vn[mt-1],Tn=pn>>13,ze=pn&8191,di=(1<<Et)-1,$n=Zt.p||new ie(32768),pi=Zt.h||new ie(di+1),Hn=Math.ceil(Et/3),gi=2*Hn,Hi=function(qr){return(Pt[qr]^Pt[qr+1]<<Hn^Pt[qr+2]<<gi)&di},ur=new ae(25e3),Ir=new ie(288),io=new ie(32),vr=0,Ti=0,Br=Zt.i||0,Vr=0,zn=Zt.w||0,Xn=0;Br+2<ye;++Br){var Yi=Hi(Br),ve=Br&32767,Ee=pi[Yi];if($n[ve]=Ee,pi[Yi]=ve,zn<=Br){var Ye=ye-Br;if((vr>7e3||Vr>24576)&&(Ye>423||!tn)){mn=kn(Pt,Ie,0,ur,Ir,io,Ti,Vr,Xn,Br-Xn,mn),Vr=vr=Ti=0,Xn=Br;for(var on=0;on<286;++on)Ir[on]=0;for(var on=0;on<30;++on)io[on]=0}var cn=2,dn=0,Dn=ze,Jn=ve-Ee&32767;if(Ye>2&&Yi==Hi(Br-Jn))for(var Ue=Math.min(Tn,Ye)-1,hn=Math.min(32767,Br),yn=Math.min(258,Ye);Jn<=hn&&--Dn&&ve!=Ee;){if(Pt[Br+cn]==Pt[Br+cn-Jn]){for(var Mn=0;Mn<yn&&Pt[Br+Mn]==Pt[Br+Mn-Jn];++Mn);if(Mn>cn){if(cn=Mn,dn=Jn,Mn>Ue)break;for(var Zn=Math.min(Jn,Mn-2),li=0,on=0;on<Zn;++on){var oi=Br-Jn+on&32767,Fi=$n[oi],ki=oi-Fi&32767;ki>li&&(li=ki,Ee=oi)}}}ve=Ee,Ee=$n[ve],Jn+=ve-Ee&32767}if(dn){ur[Vr++]=268435456|qt[cn]<<18|tt[dn];var Xi=qt[cn]&31,ar=tt[dn]&31;Ti+=Lt[Xi]+kt[ar],++Ir[257+Xi],++io[ar],zn=Br+cn,++vr}else ur[Vr++]=Pt[Br],++Ir[Pt[Br]]}}for(Br=Math.max(Br,zn);Br<ye;++Br)ur[Vr++]=Pt[Br],++Ir[Pt[Br]];mn=kn(Pt,Ie,tn,ur,Ir,io,Ti,Vr,Xn,Br-Xn,mn),tn||(Zt.r=mn&7|Ie[mn/8|0]<<3,mn-=7,Zt.h=pi,Zt.p=$n,Zt.i=Br,Zt.w=zn)}else{for(var Br=Zt.w||0;Br<ye+tn;Br+=65535){var gr=Br+65535;gr>=ye&&(Ie[mn/8|0]=tn,gr=ye),mn=Xe(Ie,mn+1,Pt.subarray(Br,gr))}Zt.i=ye}return Yt(Se,0,jt+We(mn)+le)},Si=null,an=function(){var Pt=-1;return{p:function(mt){for(var Et=Pt,jt=0;jt<mt.length;++jt)Et=Si[Et&255^mt[jt]]^Et>>>8;Pt=Et},d:function(){return~Pt}}},Li=function(){var Pt=1,mt=0;return{p:function(Et){for(var jt=Pt,le=mt,Zt=Et.length|0,ye=0;ye!=Zt;){for(var Se=Math.min(ye+2655,Zt);ye<Se;++ye)le+=jt+=Et[ye];jt=(jt&65535)+15*(jt>>16),le=(le&65535)+15*(le>>16)}Pt=jt,mt=le},d:function(){return Pt%=65521,mt%=65521,(Pt&255)<<24|(Pt&65280)<<8|(mt&255)<<8|mt>>8}}},Oi=function(Pt,mt,Et,jt,le){if(!le&&(le={l:1},mt.dictionary)){var Zt=mt.dictionary.subarray(-32768),ye=new Me(Zt.length+Pt.length);ye.set(Zt),ye.set(Pt,Zt.length),Pt=ye,le.w=Zt.length}return Wn(Pt,mt.level==null?6:mt.level,mt.mem==null?le.l?Math.ceil(Math.max(8,Math.min(13,Math.log(Pt.length)))*1.5):20:12+mt.mem,Et,jt,le)},ue=function(Pt,mt){var Et={};for(var jt in Pt)Et[jt]=Pt[jt];for(var jt in mt)Et[jt]=mt[jt];return Et},Pn=function(Pt,mt,Et){for(var jt=Pt(),le=Pt.toString(),Zt=le.slice(le.indexOf("[")+1,le.lastIndexOf("]")).replace(/\s+/g,"").split(","),ye=0;ye<jt.length;++ye){var Se=jt[ye],Ie=Zt[ye];if(typeof Se=="function"){mt+=";"+Ie+"=";var tn=Se.toString();if(Se.prototype)if(tn.indexOf("[native code]")!=-1){var mn=tn.indexOf(" ",8)+1;mt+=tn.slice(mn,tn.indexOf("(",mn))}else{mt+=tn;for(var pn in Se.prototype)mt+=";"+Ie+".prototype."+pn+"="+Se.prototype[pn].toString()}else mt+=tn}else Et[Ie]=Se}return mt},de=null,Dt=function(Pt){var mt=[];for(var Et in Pt)Pt[Et].buffer&&mt.push((Pt[Et]=new Pt[Et].constructor(Pt[Et])).buffer);return mt},Mt=function(Pt,mt,Et,jt){if(!de[Et]){for(var le="",Zt={},ye=Pt.length-1,Se=0;Se<ye;++Se)le=Pn(Pt[Se],le,Zt);de[Et]={c:Pn(Pt[ye],le,Zt),e:Zt}}var Ie=ue({},de[Et].e);return se(de[Et].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+mt.toString()+"}",Et,Ie,Dt(Ie),jt)},zt=function(){return[Me,ie,ae,Lt,kt,Jt,Gt,et,_t,he,lt,Ge,dt,Ae,Fe,ee,We,Yt,Oe,Ze,Ts,Ct,yt]},be=function(){return[Me,ie,ae,Lt,kt,Jt,qt,tt,Tt,pt,re,Ft,lt,Vn,Ai,dt,Qe,we,oe,Pe,En,Nn,Xe,kn,We,Yt,Wn,Oi,hr,Ct]},De=function(){return[ci,dr,bn,an,Si]},fe=function(){return[Ji,zi]},Ce=function(){return[Fr,bn,Li]},te=function(){return[oo]},Ct=function(Pt){return postMessage(Pt,[Pt.buffer])},yt=function(Pt){return Pt&&{out:Pt.size&&new Me(Pt.size),dictionary:Pt.dictionary}},$t=function(Pt,mt,Et,jt,le,Zt){var ye=Mt(Et,jt,le,function(Se,Ie){ye.terminate(),Zt(Se,Ie)});return ye.postMessage([Pt,mt],mt.consume?[Pt.buffer]:[]),function(){ye.terminate()}},xe=function(Pt){return Pt.ondata=function(mt,Et){return postMessage([mt,Et],[mt.buffer])},function(mt){mt.data.length?(Pt.push(mt.data[0],mt.data[1]),postMessage([mt.data[0].length])):Pt.flush()}},Rt=function(Pt,mt,Et,jt,le,Zt,ye){var Se,Ie=Mt(Pt,jt,le,function(tn,mn){tn?(Ie.terminate(),mt.ondata.call(mt,tn)):Array.isArray(mn)?mn.length==1?(mt.queuedSize-=mn[0],mt.ondrain&&mt.ondrain(mn[0])):(mn[1]&&Ie.terminate(),mt.ondata.call(mt,tn,mn[0],mn[1])):ye(mn)});Ie.postMessage(Et),mt.queuedSize=0,mt.push=function(tn,mn){mt.ondata||Oe(5),Se&&mt.ondata(Oe(4,0,1),null,!!mn),mt.queuedSize+=tn.length,Ie.postMessage([tn,Se=mn],[tn.buffer])},mt.terminate=function(){Ie.terminate()},Zt&&(mt.flush=function(){Ie.postMessage([])})},je=function(Pt,mt){return Pt[mt]|Pt[mt+1]<<8},fn=function(Pt,mt){return(Pt[mt]|Pt[mt+1]<<8|Pt[mt+2]<<16|Pt[mt+3]<<24)>>>0},jn=function(Pt,mt){return fn(Pt,mt)+fn(Pt,mt+4)*4294967296},bn=function(Pt,mt,Et){for(;Et;++mt)Pt[mt]=Et,Et>>>=8},ci=function(Pt,mt){var Et=mt.filename;if(Pt[0]=31,Pt[1]=139,Pt[2]=8,Pt[8]=mt.level<2?4:mt.level==9?2:0,Pt[9]=3,mt.mtime!=0&&bn(Pt,4,Math.floor(new Date(mt.mtime||Date.now())/1e3)),Et){Pt[3]=8;for(var jt=0;jt<=Et.length;++jt)Pt[jt+10]=Et.charCodeAt(jt)}},Ji=function(Pt){(Pt[0]!=31||Pt[1]!=139||Pt[2]!=8)&&Oe(6,"invalid gzip data");var mt=Pt[3],Et=10;mt&4&&(Et+=(Pt[10]|Pt[11]<<8)+2);for(var jt=(mt>>3&1)+(mt>>4&1);jt>0;jt-=!Pt[Et++]);return Et+(mt&2)},zi=function(Pt){var mt=Pt.length;return(Pt[mt-4]|Pt[mt-3]<<8|Pt[mt-2]<<16|Pt[mt-1]<<24)>>>0},dr=function(Pt){return 10+(Pt.filename?Pt.filename.length+1:0)},Fr=function(Pt,mt){var Et=mt.level,jt=Et==0?0:Et<6?1:Et==9?3:2;if(Pt[0]=120,Pt[1]=jt<<6|(mt.dictionary&&32),Pt[1]|=31-(Pt[0]<<8|Pt[1])%31,mt.dictionary){var le=Li();le.p(mt.dictionary),bn(Pt,2,le.d())}},oo=function(Pt,mt){return((Pt[0]&15)!=8||Pt[0]>>4>7||(Pt[0]<<8|Pt[1])%31)&&Oe(6,"invalid zlib data"),(Pt[1]>>5&1)==+!mt&&Oe(6,"invalid zlib data: "+(Pt[1]&32?"need":"unexpected")+" dictionary"),(Pt[1]>>3&4)+2};function Jr(Pt,mt){return typeof Pt=="function"&&(mt=Pt,Pt={}),this.ondata=mt,Pt}var zr=null,pr=null;function Kr(Pt,mt,Et){return Et||(Et=mt,mt={}),typeof Et!="function"&&Oe(7),$t(Pt,mt,[be],function(jt){return Ct(hr(jt.data[0],jt.data[1]))},0,Et)}function hr(Pt,mt){return Oi(Pt,mt||{},0,0)}var Mo=null,Xo=null;function mo(Pt,mt,Et){return Et||(Et=mt,mt={}),typeof Et!="function"&&Oe(7),$t(Pt,mt,[zt],function(jt){return Ct(Ts(jt.data[0],yt(jt.data[1])))},1,Et)}function Ts(Pt,mt){return Ze(Pt,{i:2},mt&&mt.out,mt&&mt.dictionary)}var ws=null,Vt=null;function xs(Pt,mt,Et){return Et||(Et=mt,mt={}),typeof Et!="function"&&Oe(7),$t(Pt,mt,[be,De,function(){return[Ss]}],function(jt){return Ct(Ss(jt.data[0],jt.data[1]))},2,Et)}function Ss(Pt,mt){mt||(mt={});var Et=an(),jt=Pt.length;Et.p(Pt);var le=Oi(Pt,mt,dr(mt),8),Zt=le.length;return ci(le,mt),bn(le,Zt-8,Et.d()),bn(le,Zt-4,jt),le}var Ms=null,ma=null;function Ea(Pt,mt,Et){return Et||(Et=mt,mt={}),typeof Et!="function"&&Oe(7),$t(Pt,mt,[zt,fe,function(){return[oa]}],function(jt){return Ct(oa(jt.data[0],jt.data[1]))},3,Et)}function oa(Pt,mt){var Et=Ji(Pt);return Et+8>Pt.length&&Oe(6,"invalid gzip data"),Ze(Pt.subarray(Et,-8),{i:2},mt&&mt.out||new Me(zi(Pt)),mt&&mt.dictionary)}var ao=null,br=null;function Un(Pt,mt,Et){return Et||(Et=mt,mt={}),typeof Et!="function"&&Oe(7),$t(Pt,mt,[be,Ce,function(){return[On]}],function(jt){return Ct(On(jt.data[0],jt.data[1]))},4,Et)}function On(Pt,mt){mt||(mt={});var Et=Li();Et.p(Pt);var jt=Oi(Pt,mt,mt.dictionary?6:2,4);return Fr(jt,mt),bn(jt,jt.length-4,Et.d()),jt}var Re=null,hi=null;function en(Pt,mt,Et){return Et||(Et=mt,mt={}),typeof Et!="function"&&Oe(7),$t(Pt,mt,[zt,te,function(){return[gn]}],function(jt){return Ct(gn(jt.data[0],yt(jt.data[1])))},5,Et)}function gn(Pt,mt){return Ze(Pt.subarray(oo(Pt,mt&&mt.dictionary),-4),{i:2},mt&&mt.out,mt&&mt.dictionary)}var Ve=null,ni=null;function Bi(Pt,mt,Et){return Et||(Et=mt,mt={}),typeof Et!="function"&&Oe(7),Pt[0]==31&&Pt[1]==139&&Pt[2]==8?Ea(Pt,mt,Et):(Pt[0]&15)!=8||Pt[0]>>4>7||(Pt[0]<<8|Pt[1])%31?mo(Pt,mt,Et):en(Pt,mt,Et)}function _i(Pt,mt){return Pt[0]==31&&Pt[1]==139&&Pt[2]==8?oa(Pt,mt):(Pt[0]&15)!=8||Pt[0]>>4>7||(Pt[0]<<8|Pt[1])%31?Ts(Pt,mt):gn(Pt,mt)}var tr=function(Pt,mt,Et,jt){for(var le in Pt){var Zt=Pt[le],ye=mt+le,Se=jt;Array.isArray(Zt)&&(Se=ue(jt,Zt[1]),Zt=Zt[0]),Zt instanceof Me?Et[ye]=[Zt,Se]:(Et[ye+="/"]=[new Me(0),Se],tr(Zt,ye,Et,jt))}},sn=typeof TextEncoder!="undefined"&&new TextEncoder,fi=typeof TextDecoder!="undefined"&&new TextDecoder,Zi=0;try{fi.decode(Ai,{stream:!0}),Zi=1}catch(Pt){}var Tr=function(Pt){for(var mt="",Et=0;;){var jt=Pt[Et++],le=(jt>127)+(jt>223)+(jt>239);if(Et+le>Pt.length)return{s:mt,r:Yt(Pt,Et-1)};le?le==3?(jt=((jt&15)<<18|(Pt[Et++]&63)<<12|(Pt[Et++]&63)<<6|Pt[Et++]&63)-65536,mt+=String.fromCharCode(55296|jt>>10,56320|jt&1023)):le&1?mt+=String.fromCharCode((jt&31)<<6|Pt[Et++]&63):mt+=String.fromCharCode((jt&15)<<12|(Pt[Et++]&63)<<6|Pt[Et++]&63):mt+=String.fromCharCode(jt)}},ii=null,xi=null;function fr(Pt,mt){if(mt){for(var Et=new Me(Pt.length),jt=0;jt<Pt.length;++jt)Et[jt]=Pt.charCodeAt(jt);return Et}if(sn)return sn.encode(Pt);for(var le=Pt.length,Zt=new Me(Pt.length+(Pt.length>>1)),ye=0,Se=function(mn){Zt[ye++]=mn},jt=0;jt<le;++jt){if(ye+5>Zt.length){var Ie=new Me(ye+8+(le-jt<<1));Ie.set(Zt),Zt=Ie}var tn=Pt.charCodeAt(jt);tn<128||mt?Se(tn):tn<2048?(Se(192|tn>>6),Se(128|tn&63)):tn>55295&&tn<57344?(tn=65536+(tn&1047552)|Pt.charCodeAt(++jt)&1023,Se(240|tn>>18),Se(128|tn>>12&63),Se(128|tn>>6&63),Se(128|tn&63)):(Se(224|tn>>12),Se(128|tn>>6&63),Se(128|tn&63))}return Yt(Zt,0,ye)}function mi(Pt,mt){if(mt){for(var Et="",jt=0;jt<Pt.length;jt+=16384)Et+=String.fromCharCode.apply(null,Pt.subarray(jt,jt+16384));return Et}else{if(fi)return fi.decode(Pt);var le=Tr(Pt),Zt=le.s,Et=le.r;return Et.length&&Oe(8),Zt}}var wi=function(Pt){return Pt==1?3:Pt<6?2:Pt==9?1:0},yi=function(Pt,mt){return mt+30+je(Pt,mt+26)+je(Pt,mt+28)},nr=function(Pt,mt,Et){var jt=je(Pt,mt+28),le=mi(Pt.subarray(mt+46,mt+46+jt),!(je(Pt,mt+8)&2048)),Zt=mt+46+jt,ye=fn(Pt,mt+20),Se=Et&&ye==4294967295?sr(Pt,Zt):[ye,fn(Pt,mt+24),fn(Pt,mt+42)],Ie=Se[0],tn=Se[1],mn=Se[2];return[je(Pt,mt+10),Ie,tn,le,Zt+je(Pt,mt+30)+je(Pt,mt+32),mn]},sr=function(Pt,mt){for(;je(Pt,mt)!=1;mt+=4+je(Pt,mt+2));return[jn(Pt,mt+12),jn(Pt,mt+4),jn(Pt,mt+20)]},Rr=function(Pt){var mt=0;if(Pt)for(var Et in Pt){var jt=Pt[Et].length;jt>65535&&Oe(9),mt+=jt+4}return mt},Zr=function(Pt,mt,Et,jt,le,Zt,ye,Se){var Ie=jt.length,tn=Et.extra,mn=Se&&Se.length,pn=Rr(tn);bn(Pt,mt,ye!=null?33639248:67324752),mt+=4,ye!=null&&(Pt[mt++]=20,Pt[mt++]=Et.os),Pt[mt]=20,mt+=2,Pt[mt++]=Et.flag<<1|(Zt<0&&8),Pt[mt++]=le&&8,Pt[mt++]=Et.compression&255,Pt[mt++]=Et.compression>>8;var Tn=new Date(Et.mtime==null?Date.now():Et.mtime),ze=Tn.getFullYear()-1980;if((ze<0||ze>119)&&Oe(10),bn(Pt,mt,ze<<25|Tn.getMonth()+1<<21|Tn.getDate()<<16|Tn.getHours()<<11|Tn.getMinutes()<<5|Tn.getSeconds()>>1),mt+=4,Zt!=-1&&(bn(Pt,mt,Et.crc),bn(Pt,mt+4,Zt<0?-Zt-2:Zt),bn(Pt,mt+8,Et.size)),bn(Pt,mt+12,Ie),bn(Pt,mt+14,pn),mt+=16,ye!=null&&(bn(Pt,mt,mn),bn(Pt,mt+6,Et.attrs),bn(Pt,mt+10,ye),mt+=14),Pt.set(jt,mt),mt+=Ie,pn)for(var di in tn){var $n=tn[di],pi=$n.length;bn(Pt,mt,+di),bn(Pt,mt+2,pi),Pt.set($n,mt+4),mt+=4+pi}return mn&&(Pt.set(Se,mt),mt+=mn),mt},Xr=function(Pt,mt,Et,jt,le){bn(Pt,mt,101010256),bn(Pt,mt+8,Et),bn(Pt,mt+10,Et),bn(Pt,mt+12,jt),bn(Pt,mt+16,le)},ei=null,Ho=null,Zo=null,cs=null;function ri(Pt,mt,Et){Et||(Et=mt,mt={}),typeof Et!="function"&&Oe(7);var jt={};tr(Pt,"",jt,mt);var le=Object.keys(jt),Zt=le.length,ye=0,Se=0,Ie=Zt,tn=new Array(Zt),mn=[],pn=function(){for(var pi=0;pi<mn.length;++pi)mn[pi]()},Tn=function(pi,Hn){wo(function(){Et(pi,Hn)})};wo(function(){Tn=Et});var ze=function(){var pi=new Me(Se+22),Hn=ye,gi=Se-ye;Se=0;for(var Hi=0;Hi<Ie;++Hi){var ur=tn[Hi];try{var Ir=ur.c.length;Zr(pi,Se,ur,ur.f,ur.u,Ir);var io=30+ur.f.length+Rr(ur.extra),vr=Se+io;pi.set(ur.c,vr),Zr(pi,ye,ur,ur.f,ur.u,Ir,Se,ur.m),ye+=16+io+(ur.m?ur.m.length:0),Se=vr+Ir}catch(Ti){return Tn(Ti,null)}}Xr(pi,ye,tn.length,gi,Hn),Tn(null,pi)};Zt||ze();for(var di=function(pi){var Hn=le[pi],gi=jt[Hn],Hi=gi[0],ur=gi[1],Ir=an(),io=Hi.length;Ir.p(Hi);var vr=fr(Hn),Ti=vr.length,Br=ur.comment,Vr=Br&&fr(Br),zn=Vr&&Vr.length,Xn=Rr(ur.extra),Yi=ur.level==0?0:8,ve=function(Ee,Ye){if(Ee)pn(),Tn(Ee,null);else{var on=Ye.length;tn[pi]=ue(ur,{size:io,crc:Ir.d(),c:Ye,f:vr,m:Vr,u:Ti!=Hn.length||Vr&&Br.length!=zn,compression:Yi}),ye+=30+Ti+Xn+on,Se+=76+2*(Ti+Xn)+(zn||0)+on,--Zt||ze()}};if(Ti>65535&&ve(Oe(11,0,1),null),!Yi)ve(null,Hi);else if(io<16e4)try{ve(null,hr(Hi,ur))}catch(Ee){ve(Ee,null)}else mn.push(Kr(Hi,ur,ve))},$n=0;$n<Ie;++$n)di($n);return pn}function or(Pt,mt){mt||(mt={});var Et={},jt=[];tr(Pt,"",Et,mt);var le=0,Zt=0;for(var ye in Et){var Se=Et[ye],Ie=Se[0],tn=Se[1],mn=tn.level==0?0:8,pn=fr(ye),Tn=pn.length,ze=tn.comment,di=ze&&fr(ze),$n=di&&di.length,pi=Rr(tn.extra);Tn>65535&&Oe(11);var Hn=mn?hr(Ie,tn):Ie,gi=Hn.length,Hi=an();Hi.p(Ie),jt.push(ue(tn,{size:Ie.length,crc:Hi.d(),c:Hn,f:pn,m:di,u:Tn!=ye.length||di&&ze.length!=$n,o:le,compression:mn})),le+=30+Tn+pi+gi,Zt+=76+2*(Tn+pi)+($n||0)+gi}for(var ur=new Me(Zt+22),Ir=le,io=Zt-le,vr=0;vr<jt.length;++vr){var pn=jt[vr];Zr(ur,pn.o,pn,pn.f,pn.u,pn.c.length);var Ti=30+pn.f.length+Rr(pn.extra);ur.set(pn.c,pn.o+Ti),Zr(ur,le,pn,pn.f,pn.u,pn.c.length,pn.o,pn.m),le+=16+Ti+(pn.m?pn.m.length:0)}return Xr(ur,le,jt.length,io,Ir),ur}var Er=null,no=null,Lr=null,Wr=null,wo=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(Pt){Pt()};function fo(Pt,mt,Et){Et||(Et=mt,mt={}),typeof Et!="function"&&Oe(7);var jt=[],le=function(){for(var pi=0;pi<jt.length;++pi)jt[pi]()},Zt={},ye=function(pi,Hn){wo(function(){Et(pi,Hn)})};wo(function(){ye=Et});for(var Se=Pt.length-22;fn(Pt,Se)!=101010256;--Se)if(!Se||Pt.length-Se>65558)return ye(Oe(13,0,1),null),le;var Ie=je(Pt,Se+8);if(Ie){var tn=Ie,mn=fn(Pt,Se+16),pn=mn==4294967295||tn==65535;if(pn){var Tn=fn(Pt,Se-12);pn=fn(Pt,Tn)==101075792,pn&&(tn=Ie=fn(Pt,Tn+32),mn=fn(Pt,Tn+48))}for(var ze=mt&&mt.filter,di=function(pi){var Hn=nr(Pt,mn,pn),gi=Hn[0],Hi=Hn[1],ur=Hn[2],Ir=Hn[3],io=Hn[4],vr=Hn[5],Ti=yi(Pt,vr);mn=io;var Br=function(zn,Xn){zn?(le(),ye(zn,null)):(Xn&&(Zt[Ir]=Xn),--Ie||ye(null,Zt))};if(!ze||ze({name:Ir,size:Hi,originalSize:ur,compression:gi}))if(!gi)Br(null,Yt(Pt,Ti,Ti+Hi));else if(gi==8){var Vr=Pt.subarray(Ti,Ti+Hi);if(ur<524288||Hi>.8*ur)try{Br(null,Ts(Vr,{out:new Me(ur)}))}catch(zn){Br(zn,null)}else jt.push(mo(Vr,{size:ur},Br))}else Br(Oe(14,"unknown compression type "+gi,1),null);else Br(null,null)},$n=0;$n<tn;++$n)di($n)}else ye(null,{});return le}function xo(Pt,mt){for(var Et={},jt=Pt.length-22;fn(Pt,jt)!=101010256;--jt)(!jt||Pt.length-jt>65558)&&Oe(13);var le=je(Pt,jt+8);if(!le)return{};var Zt=fn(Pt,jt+16),ye=Zt==4294967295||le==65535;if(ye){var Se=fn(Pt,jt-12);ye=fn(Pt,Se)==101075792,ye&&(le=fn(Pt,Se+32),Zt=fn(Pt,Se+48))}for(var Ie=mt&&mt.filter,tn=0;tn<le;++tn){var mn=nr(Pt,Zt,ye),pn=mn[0],Tn=mn[1],ze=mn[2],di=mn[3],$n=mn[4],pi=mn[5],Hn=yi(Pt,pi);Zt=$n,(!Ie||Ie({name:di,size:Tn,originalSize:ze,compression:pn}))&&(pn?pn==8?Et[di]=Ts(Pt.subarray(Hn,Hn+Tn),{out:new Me(ze)}):Oe(14,"unknown compression type "+pn):Et[di]=Yt(Pt,Hn,Hn+Tn))}return Et}var _r=function(){return typeof window!="undefined"?window:typeof Bt.g!="undefined"?Bt.g:typeof self!="undefined"?self:this}();function Ci(){_r.console&&typeof _r.console.log=="function"&&_r.console.log.apply(_r.console,arguments)}var Qo={log:Ci,warn:function(Pt){_r.console&&(typeof _r.console.warn=="function"?_r.console.warn.apply(_r.console,arguments):Ci.call(null,arguments))},error:function(Pt){_r.console&&(typeof _r.console.error=="function"?_r.console.error.apply(_r.console,arguments):Ci(Pt))}};function bi(Pt,mt,Et){var jt=new XMLHttpRequest;jt.open("GET",Pt),jt.responseType="blob",jt.onload=function(){Gs(jt.response,mt,Et)},jt.onerror=function(){Qo.error("could not download file")},jt.send()}function ns(Pt){var mt=new XMLHttpRequest;mt.open("HEAD",Pt,!1);try{mt.send()}catch(Et){}return mt.status>=200&&mt.status<=299}function qs(Pt){try{Pt.dispatchEvent(new MouseEvent("click"))}catch(Et){var mt=document.createEvent("MouseEvents");mt.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Pt.dispatchEvent(mt)}}var fs,Hs,Gs=_r.saveAs||((typeof window=="undefined"?"undefined":(0,bt.Z)(window))!=="object"||window!==_r?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(Pt,mt,Et){var jt=_r.URL||_r.webkitURL,le=document.createElement("a");mt=mt||Pt.name||"download",le.download=mt,le.rel="noopener",typeof Pt=="string"?(le.href=Pt,le.origin!==location.origin?ns(le.href)?bi(Pt,mt,Et):qs(le,le.target="_blank"):qs(le)):(le.href=jt.createObjectURL(Pt),setTimeout(function(){jt.revokeObjectURL(le.href)},4e4),setTimeout(function(){qs(le)},0))}:"msSaveOrOpenBlob"in navigator?function(Pt,mt,Et){if(mt=mt||Pt.name||"download",typeof Pt=="string")if(ns(Pt))bi(Pt,mt,Et);else{var jt=document.createElement("a");jt.href=Pt,jt.target="_blank",setTimeout(function(){qs(jt)})}else navigator.msSaveOrOpenBlob(function(le,Zt){return Zt===void 0?Zt={autoBom:!1}:(0,bt.Z)(Zt)!=="object"&&(Qo.warn("Deprecated: Expected third argument to be a object"),Zt={autoBom:!Zt}),Zt.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(le.type)?new Blob(["\uFEFF",le],{type:le.type}):le}(Pt,Et),mt)}:function(Pt,mt,Et,jt){if((jt=jt||open("","_blank"))&&(jt.document.title=jt.document.body.innerText="downloading..."),typeof Pt=="string")return bi(Pt,mt,Et);var le=Pt.type==="application/octet-stream",Zt=/constructor/i.test(_r.HTMLElement)||_r.safari,ye=/CriOS\/[\d]+/.test(navigator.userAgent);if((ye||le&&Zt)&&(typeof FileReader=="undefined"?"undefined":(0,bt.Z)(FileReader))==="object"){var Se=new FileReader;Se.onloadend=function(){var mn=Se.result;mn=ye?mn:mn.replace(/^data:[^;]*;/,"data:attachment/file;"),jt?jt.location.href=mn:location=mn,jt=null},Se.readAsDataURL(Pt)}else{var Ie=_r.URL||_r.webkitURL,tn=Ie.createObjectURL(Pt);jt?jt.location=tn:location.href=tn,jt=null,setTimeout(function(){Ie.revokeObjectURL(tn)},4e4)}});function si(Pt){var mt;Pt=Pt||"",this.ok=!1,Pt.charAt(0)=="#"&&(Pt=Pt.substr(1,6)),Pt={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[Pt=(Pt=Pt.replace(/ /g,"")).toLowerCase()]||Pt;for(var Et=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(Se){return[parseInt(Se[1]),parseInt(Se[2]),parseInt(Se[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(Se){return[parseInt(Se[1],16),parseInt(Se[2],16),parseInt(Se[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(Se){return[parseInt(Se[1]+Se[1],16),parseInt(Se[2]+Se[2],16),parseInt(Se[3]+Se[3],16)]}}],jt=0;jt<Et.length;jt++){var le=Et[jt].re,Zt=Et[jt].process,ye=le.exec(Pt);ye&&(mt=Zt(ye),this.r=mt[0],this.g=mt[1],this.b=mt[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var Se=this.r.toString(16),Ie=this.g.toString(16),tn=this.b.toString(16);return Se.length==1&&(Se="0"+Se),Ie.length==1&&(Ie="0"+Ie),tn.length==1&&(tn="0"+tn),"#"+Se+Ie+tn}}function To(Pt,mt){var Et=Pt[0],jt=Pt[1],le=Pt[2],Zt=Pt[3];Et=rs(Et,jt,le,Zt,mt[0],7,-680876936),Zt=rs(Zt,Et,jt,le,mt[1],12,-389564586),le=rs(le,Zt,Et,jt,mt[2],17,606105819),jt=rs(jt,le,Zt,Et,mt[3],22,-1044525330),Et=rs(Et,jt,le,Zt,mt[4],7,-176418897),Zt=rs(Zt,Et,jt,le,mt[5],12,1200080426),le=rs(le,Zt,Et,jt,mt[6],17,-1473231341),jt=rs(jt,le,Zt,Et,mt[7],22,-45705983),Et=rs(Et,jt,le,Zt,mt[8],7,1770035416),Zt=rs(Zt,Et,jt,le,mt[9],12,-1958414417),le=rs(le,Zt,Et,jt,mt[10],17,-42063),jt=rs(jt,le,Zt,Et,mt[11],22,-1990404162),Et=rs(Et,jt,le,Zt,mt[12],7,1804603682),Zt=rs(Zt,Et,jt,le,mt[13],12,-40341101),le=rs(le,Zt,Et,jt,mt[14],17,-1502002290),Et=Cr(Et,jt=rs(jt,le,Zt,Et,mt[15],22,1236535329),le,Zt,mt[1],5,-165796510),Zt=Cr(Zt,Et,jt,le,mt[6],9,-1069501632),le=Cr(le,Zt,Et,jt,mt[11],14,643717713),jt=Cr(jt,le,Zt,Et,mt[0],20,-373897302),Et=Cr(Et,jt,le,Zt,mt[5],5,-701558691),Zt=Cr(Zt,Et,jt,le,mt[10],9,38016083),le=Cr(le,Zt,Et,jt,mt[15],14,-660478335),jt=Cr(jt,le,Zt,Et,mt[4],20,-405537848),Et=Cr(Et,jt,le,Zt,mt[9],5,568446438),Zt=Cr(Zt,Et,jt,le,mt[14],9,-1019803690),le=Cr(le,Zt,Et,jt,mt[3],14,-187363961),jt=Cr(jt,le,Zt,Et,mt[8],20,1163531501),Et=Cr(Et,jt,le,Zt,mt[13],5,-1444681467),Zt=Cr(Zt,Et,jt,le,mt[2],9,-51403784),le=Cr(le,Zt,Et,jt,mt[7],14,1735328473),Et=ke(Et,jt=Cr(jt,le,Zt,Et,mt[12],20,-1926607734),le,Zt,mt[5],4,-378558),Zt=ke(Zt,Et,jt,le,mt[8],11,-2022574463),le=ke(le,Zt,Et,jt,mt[11],16,1839030562),jt=ke(jt,le,Zt,Et,mt[14],23,-35309556),Et=ke(Et,jt,le,Zt,mt[1],4,-1530992060),Zt=ke(Zt,Et,jt,le,mt[4],11,1272893353),le=ke(le,Zt,Et,jt,mt[7],16,-155497632),jt=ke(jt,le,Zt,Et,mt[10],23,-1094730640),Et=ke(Et,jt,le,Zt,mt[13],4,681279174),Zt=ke(Zt,Et,jt,le,mt[0],11,-358537222),le=ke(le,Zt,Et,jt,mt[3],16,-722521979),jt=ke(jt,le,Zt,Et,mt[6],23,76029189),Et=ke(Et,jt,le,Zt,mt[9],4,-640364487),Zt=ke(Zt,Et,jt,le,mt[12],11,-421815835),le=ke(le,Zt,Et,jt,mt[15],16,530742520),Et=ts(Et,jt=ke(jt,le,Zt,Et,mt[2],23,-995338651),le,Zt,mt[0],6,-198630844),Zt=ts(Zt,Et,jt,le,mt[7],10,1126891415),le=ts(le,Zt,Et,jt,mt[14],15,-1416354905),jt=ts(jt,le,Zt,Et,mt[5],21,-57434055),Et=ts(Et,jt,le,Zt,mt[12],6,1700485571),Zt=ts(Zt,Et,jt,le,mt[3],10,-1894986606),le=ts(le,Zt,Et,jt,mt[10],15,-1051523),jt=ts(jt,le,Zt,Et,mt[1],21,-2054922799),Et=ts(Et,jt,le,Zt,mt[8],6,1873313359),Zt=ts(Zt,Et,jt,le,mt[15],10,-30611744),le=ts(le,Zt,Et,jt,mt[6],15,-1560198380),jt=ts(jt,le,Zt,Et,mt[13],21,1309151649),Et=ts(Et,jt,le,Zt,mt[4],6,-145523070),Zt=ts(Zt,Et,jt,le,mt[11],10,-1120210379),le=ts(le,Zt,Et,jt,mt[2],15,718787259),jt=ts(jt,le,Zt,Et,mt[9],21,-343485551),Pt[0]=Lo(Et,Pt[0]),Pt[1]=Lo(jt,Pt[1]),Pt[2]=Lo(le,Pt[2]),Pt[3]=Lo(Zt,Pt[3])}function us(Pt,mt,Et,jt,le,Zt){return mt=Lo(Lo(mt,Pt),Lo(jt,Zt)),Lo(mt<<le|mt>>>32-le,Et)}function rs(Pt,mt,Et,jt,le,Zt,ye){return us(mt&Et|~mt&jt,Pt,mt,le,Zt,ye)}function Cr(Pt,mt,Et,jt,le,Zt,ye){return us(mt&jt|Et&~jt,Pt,mt,le,Zt,ye)}function ke(Pt,mt,Et,jt,le,Zt,ye){return us(mt^Et^jt,Pt,mt,le,Zt,ye)}function ts(Pt,mt,Et,jt,le,Zt,ye){return us(Et^(mt|~jt),Pt,mt,le,Zt,ye)}function ta(Pt){var mt,Et=Pt.length,jt=[1732584193,-271733879,-1732584194,271733878];for(mt=64;mt<=Pt.length;mt+=64)To(jt,qa(Pt.substring(mt-64,mt)));Pt=Pt.substring(mt-64);var le=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(mt=0;mt<Pt.length;mt++)le[mt>>2]|=Pt.charCodeAt(mt)<<(mt%4<<3);if(le[mt>>2]|=128<<(mt%4<<3),mt>55)for(To(jt,le),mt=0;mt<16;mt++)le[mt]=0;return le[14]=8*Et,To(jt,le),jt}function qa(Pt){var mt,Et=[];for(mt=0;mt<64;mt+=4)Et[mt>>2]=Pt.charCodeAt(mt)+(Pt.charCodeAt(mt+1)<<8)+(Pt.charCodeAt(mt+2)<<16)+(Pt.charCodeAt(mt+3)<<24);return Et}fs=_r.atob.bind(_r),Hs=_r.btoa.bind(_r);var ol="0123456789abcdef".split("");function ml(Pt){for(var mt="",Et=0;Et<4;Et++)mt+=ol[Pt>>8*Et+4&15]+ol[Pt>>8*Et&15];return mt}function yr(Pt){return String.fromCharCode((255&Pt)>>0,(65280&Pt)>>8,(16711680&Pt)>>16,(4278190080&Pt)>>24)}function $r(Pt){return ta(Pt).map(yr).join("")}var Jo=function(Pt){for(var mt=0;mt<Pt.length;mt++)Pt[mt]=ml(Pt[mt]);return Pt.join("")}(ta("hello"))!="5d41402abc4b2a76b9719d911017c592";function Lo(Pt,mt){if(Jo){var Et=(65535&Pt)+(65535&mt);return(Pt>>16)+(mt>>16)+(Et>>16)<<16|65535&Et}return Pt+mt&4294967295}function os(Pt,mt){var Et,jt,le,Zt;if(Pt!==Et){for(var ye=(le=Pt,Zt=1+(256/Pt.length>>0),new Array(Zt+1).join(le)),Se=[],Ie=0;Ie<256;Ie++)Se[Ie]=Ie;var tn=0;for(Ie=0;Ie<256;Ie++){var mn=Se[Ie];tn=(tn+mn+ye.charCodeAt(Ie))%256,Se[Ie]=Se[tn],Se[tn]=mn}Et=Pt,jt=Se}else Se=jt;var pn=mt.length,Tn=0,ze=0,di="";for(Ie=0;Ie<pn;Ie++)ze=(ze+(mn=Se[Tn=(Tn+1)%256]))%256,Se[Tn]=Se[ze],Se[ze]=mn,ye=Se[(Se[Tn]+Se[ze])%256],di+=String.fromCharCode(mt.charCodeAt(Ie)^ye);return di}var Fa={print:4,modify:8,copy:16,"annot-forms":32};function lo(Pt,mt,Et,jt){this.v=1,this.r=2;var le=192;Pt.forEach(function(Se){if(Fa.perm!==void 0)throw new Error("Invalid permission: "+Se);le+=Fa[Se]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var Zt=(mt+this.padding).substr(0,32),ye=(Et+this.padding).substr(0,32);this.O=this.processOwnerPassword(Zt,ye),this.P=-(1+(255^le)),this.encryptionKey=$r(Zt+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(jt)).substr(0,5),this.U=os(this.encryptionKey,this.padding)}function vo(Pt){if(/[^\u0000-\u00ff]/.test(Pt))throw new Error("Invalid PDF Name Object: "+Pt+", Only accept ASCII characters.");for(var mt="",Et=Pt.length,jt=0;jt<Et;jt++){var le=Pt.charCodeAt(jt);le<33||le===35||le===37||le===40||le===41||le===47||le===60||le===62||le===91||le===93||le===123||le===125||le>126?mt+="#"+("0"+le.toString(16)).slice(-2):mt+=Pt[jt]}return mt}function Ki(Pt){if((0,bt.Z)(Pt)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var mt={};this.subscribe=function(Et,jt,le){if(le=le||!1,typeof Et!="string"||typeof jt!="function"||typeof le!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");mt.hasOwnProperty(Et)||(mt[Et]={});var Zt=Math.random().toString(35);return mt[Et][Zt]=[jt,!!le],Zt},this.unsubscribe=function(Et){for(var jt in mt)if(mt[jt][Et])return delete mt[jt][Et],Object.keys(mt[jt]).length===0&&delete mt[jt],!0;return!1},this.publish=function(Et){if(mt.hasOwnProperty(Et)){var jt=Array.prototype.slice.call(arguments,1),le=[];for(var Zt in mt[Et]){var ye=mt[Et][Zt];try{ye[0].apply(Pt,jt)}catch(Se){_r.console&&Qo.error("jsPDF PubSub Error",Se.message,Se)}ye[1]&&le.push(Zt)}le.length&&le.forEach(this.unsubscribe)}},this.getTopics=function(){return mt}}function Eo(Pt){if(!(this instanceof Eo))return new Eo(Pt);var mt="opacity,stroke-opacity".split(",");for(var Et in Pt)Pt.hasOwnProperty(Et)&&mt.indexOf(Et)>=0&&(this[Et]=Pt[Et]);this.id="",this.objectNumber=-1}function Es(Pt,mt){this.gState=Pt,this.matrix=mt,this.id="",this.objectNumber=-1}function la(Pt,mt,Et,jt,le){if(!(this instanceof la))return new la(Pt,mt,Et,jt,le);this.type=Pt==="axial"?2:3,this.coords=mt,this.colors=Et,Es.call(this,jt,le)}function ca(Pt,mt,Et,jt,le){if(!(this instanceof ca))return new ca(Pt,mt,Et,jt,le);this.boundingBox=Pt,this.xStep=mt,this.yStep=Et,this.stream="",this.cloneIndex=0,Es.call(this,jt,le)}function zo(Pt){var mt,Et=typeof arguments[0]=="string"?arguments[0]:"p",jt=arguments[1],le=arguments[2],Zt=arguments[3],ye=[],Se=1,Ie=16,tn="S",mn=null;(0,bt.Z)(Pt=Pt||{})==="object"&&(Et=Pt.orientation,jt=Pt.unit||jt,le=Pt.format||le,Zt=Pt.compress||Pt.compressPdf||Zt,(mn=Pt.encryption||null)!==null&&(mn.userPassword=mn.userPassword||"",mn.ownerPassword=mn.ownerPassword||"",mn.userPermissions=mn.userPermissions||[]),Se=typeof Pt.userUnit=="number"?Math.abs(Pt.userUnit):1,Pt.precision!==void 0&&(mt=Pt.precision),Pt.floatPrecision!==void 0&&(Ie=Pt.floatPrecision),tn=Pt.defaultPathOperation||"S"),ye=Pt.filters||(Zt===!0?["FlateEncode"]:ye),jt=jt||"mm",Et=(""+(Et||"P")).toLowerCase();var pn=Pt.putOnlyUsedFonts||!1,Tn={},ze={internal:{},__private__:{}};ze.__private__.PubSub=Ki;var di="1.3",$n=ze.__private__.getPdfVersion=function(){return di};ze.__private__.setPdfVersion=function(pe){di=pe};var pi={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};ze.__private__.getPageFormats=function(){return pi};var Hn=ze.__private__.getPageFormat=function(pe){return pi[pe]};le=le||"a4";var gi={COMPAT:"compat",ADVANCED:"advanced"},Hi=gi.COMPAT;function ur(){this.saveGraphicsState(),Qn(new As(co,0,0,-co,0,kc()*co).toString()+" cm"),this.setFontSize(this.getFontSize()/co),tn="n",Hi=gi.ADVANCED}function Ir(){this.restoreGraphicsState(),tn="S",Hi=gi.COMPAT}var io=ze.__private__.combineFontStyleAndFontWeight=function(pe,wn){if(pe=="bold"&&wn=="normal"||pe=="bold"&&wn==400||pe=="normal"&&wn=="italic"||pe=="bold"&&wn=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return wn&&(pe=wn==400||wn==="normal"?pe==="italic"?"italic":"normal":wn!=700&&wn!=="bold"||pe!=="normal"?(wn==700?"bold":wn)+""+pe:"bold"),pe};ze.advancedAPI=function(pe){var wn=Hi===gi.COMPAT;return wn&&ur.call(this),typeof pe!="function"||(pe(this),wn&&Ir.call(this)),this},ze.compatAPI=function(pe){var wn=Hi===gi.ADVANCED;return wn&&Ir.call(this),typeof pe!="function"||(pe(this),wn&&ur.call(this)),this},ze.isAdvancedAPI=function(){return Hi===gi.ADVANCED};var vr,Ti=function(pe){if(Hi!==gi.ADVANCED)throw new Error(pe+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Br=ze.roundToPrecision=ze.__private__.roundToPrecision=function(pe,wn){var vi=mt||wn;if(isNaN(pe)||isNaN(vi))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return pe.toFixed(vi).replace(/0+$/,"")};vr=ze.hpf=ze.__private__.hpf=typeof Ie=="number"?function(pe){if(isNaN(pe))throw new Error("Invalid argument passed to jsPDF.hpf");return Br(pe,Ie)}:Ie==="smart"?function(pe){if(isNaN(pe))throw new Error("Invalid argument passed to jsPDF.hpf");return Br(pe,pe>-1&&pe<1?16:5)}:function(pe){if(isNaN(pe))throw new Error("Invalid argument passed to jsPDF.hpf");return Br(pe,16)};var Vr=ze.f2=ze.__private__.f2=function(pe){if(isNaN(pe))throw new Error("Invalid argument passed to jsPDF.f2");return Br(pe,2)},zn=ze.__private__.f3=function(pe){if(isNaN(pe))throw new Error("Invalid argument passed to jsPDF.f3");return Br(pe,3)},Xn=ze.scale=ze.__private__.scale=function(pe){if(isNaN(pe))throw new Error("Invalid argument passed to jsPDF.scale");return Hi===gi.COMPAT?pe*co:Hi===gi.ADVANCED?pe:void 0},Yi=function(pe){return Hi===gi.COMPAT?kc()-pe:Hi===gi.ADVANCED?pe:void 0},ve=function(pe){return Xn(Yi(pe))};ze.__private__.setPrecision=ze.setPrecision=function(pe){typeof parseInt(pe,10)=="number"&&(mt=parseInt(pe,10))};var Ee,Ye="00000000000000000000000000000000",on=ze.__private__.getFileId=function(){return Ye},cn=ze.__private__.setFileId=function(pe){return Ye=pe!==void 0&&/^[a-fA-F0-9]{32}$/.test(pe)?pe.toUpperCase():Ye.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),mn!==null&&(Ul=new lo(mn.userPermissions,mn.userPassword,mn.ownerPassword,Ye)),Ye};ze.setFileId=function(pe){return cn(pe),this},ze.getFileId=function(){return on()};var dn=ze.__private__.convertDateToPDFDate=function(pe){var wn=pe.getTimezoneOffset(),vi=wn<0?"+":"-",Ri=Math.floor(Math.abs(wn/60)),cr=Math.abs(wn%60),Qr=[vi,yn(Ri),"'",yn(cr),"'"].join("");return["D:",pe.getFullYear(),yn(pe.getMonth()+1),yn(pe.getDate()),yn(pe.getHours()),yn(pe.getMinutes()),yn(pe.getSeconds()),Qr].join("")},Dn=ze.__private__.convertPDFDateToDate=function(pe){var wn=parseInt(pe.substr(2,4),10),vi=parseInt(pe.substr(6,2),10)-1,Ri=parseInt(pe.substr(8,2),10),cr=parseInt(pe.substr(10,2),10),Qr=parseInt(pe.substr(12,2),10),yo=parseInt(pe.substr(14,2),10);return new Date(wn,vi,Ri,cr,Qr,yo,0)},Jn=ze.__private__.setCreationDate=function(pe){var wn;if(pe===void 0&&(pe=new Date),pe instanceof Date)wn=dn(pe);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(pe))throw new Error("Invalid argument passed to jsPDF.setCreationDate");wn=pe}return Ee=wn},Ue=ze.__private__.getCreationDate=function(pe){var wn=Ee;return pe==="jsDate"&&(wn=Dn(Ee)),wn};ze.setCreationDate=function(pe){return Jn(pe),this},ze.getCreationDate=function(pe){return Ue(pe)};var hn,yn=ze.__private__.padd2=function(pe){return("0"+parseInt(pe)).slice(-2)},Mn=ze.__private__.padd2Hex=function(pe){return("00"+(pe=pe.toString())).substr(pe.length)},Zn=0,li=[],oi=[],Fi=0,ki=[],Xi=[],ar=!1,gr=oi,qr=function(){Zn=0,Fi=0,oi=[],li=[],ki=[],na=Ra(),Na=Ra()};ze.__private__.setCustomOutputDestination=function(pe){ar=!0,gr=pe};var qi=function(pe){ar||(gr=pe)};ze.__private__.resetCustomOutputDestination=function(){ar=!1,gr=oi};var Qn=ze.__private__.out=function(pe){return pe=pe.toString(),Fi+=pe.length+1,gr.push(pe),gr},so=ze.__private__.write=function(pe){return Qn(arguments.length===1?pe.toString():Array.prototype.join.call(arguments," "))},uo=ze.__private__.getArrayBuffer=function(pe){for(var wn=pe.length,vi=new ArrayBuffer(wn),Ri=new Uint8Array(vi);wn--;)Ri[wn]=pe.charCodeAt(wn);return vi},rr=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];ze.__private__.getStandardFonts=function(){return rr};var wr=Pt.fontSize||16;ze.__private__.setFontSize=ze.setFontSize=function(pe){return wr=Hi===gi.ADVANCED?pe/co:pe,this};var mr,ir=ze.__private__.getFontSize=ze.getFontSize=function(){return Hi===gi.COMPAT?wr:wr*co},Or=Pt.R2L||!1;ze.__private__.setR2L=ze.setR2L=function(pe){return Or=pe,this},ze.__private__.getR2L=ze.getR2L=function(){return Or};var ho,So=ze.__private__.setZoomMode=function(pe){var wn=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(pe))mr=pe;else if(isNaN(pe)){if(wn.indexOf(pe)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+pe+'" is not recognized.');mr=pe}else mr=parseInt(pe,10)};ze.__private__.getZoomMode=function(){return mr};var Fo,Gr=ze.__private__.setPageMode=function(pe){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(pe)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+pe+'" is not recognized.');ho=pe};ze.__private__.getPageMode=function(){return ho};var Vo=ze.__private__.setLayoutMode=function(pe){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(pe)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+pe+'" is not recognized.');Fo=pe};ze.__private__.getLayoutMode=function(){return Fo},ze.__private__.setDisplayMode=ze.setDisplayMode=function(pe,wn,vi){return So(pe),Vo(wn),Gr(vi),this};var No={title:"",subject:"",author:"",keywords:"",creator:""};ze.__private__.getDocumentProperty=function(pe){if(Object.keys(No).indexOf(pe)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return No[pe]},ze.__private__.getDocumentProperties=function(){return No},ze.__private__.setDocumentProperties=ze.setProperties=ze.setDocumentProperties=function(pe){for(var wn in No)No.hasOwnProperty(wn)&&pe[wn]&&(No[wn]=pe[wn]);return this},ze.__private__.setDocumentProperty=function(pe,wn){if(Object.keys(No).indexOf(pe)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return No[pe]=wn};var hs,co,Pa,Os,Ps,ko={},Fs={},$a=[],js={},jl={},Po={},as={},ds=null,Oo=0,qo=[],bo=new Ki(ze),Ls=Pt.hotfixes||[],_s={},ea={},Yl=[],As=function pe(wn,vi,Ri,cr,Qr,yo){if(!(this instanceof pe))return new pe(wn,vi,Ri,cr,Qr,yo);isNaN(wn)&&(wn=1),isNaN(vi)&&(vi=0),isNaN(Ri)&&(Ri=0),isNaN(cr)&&(cr=1),isNaN(Qr)&&(Qr=0),isNaN(yo)&&(yo=0),this._matrix=[wn,vi,Ri,cr,Qr,yo]};Object.defineProperty(As.prototype,"sx",{get:function(){return this._matrix[0]},set:function(pe){this._matrix[0]=pe}}),Object.defineProperty(As.prototype,"shy",{get:function(){return this._matrix[1]},set:function(pe){this._matrix[1]=pe}}),Object.defineProperty(As.prototype,"shx",{get:function(){return this._matrix[2]},set:function(pe){this._matrix[2]=pe}}),Object.defineProperty(As.prototype,"sy",{get:function(){return this._matrix[3]},set:function(pe){this._matrix[3]=pe}}),Object.defineProperty(As.prototype,"tx",{get:function(){return this._matrix[4]},set:function(pe){this._matrix[4]=pe}}),Object.defineProperty(As.prototype,"ty",{get:function(){return this._matrix[5]},set:function(pe){this._matrix[5]=pe}}),Object.defineProperty(As.prototype,"a",{get:function(){return this._matrix[0]},set:function(pe){this._matrix[0]=pe}}),Object.defineProperty(As.prototype,"b",{get:function(){return this._matrix[1]},set:function(pe){this._matrix[1]=pe}}),Object.defineProperty(As.prototype,"c",{get:function(){return this._matrix[2]},set:function(pe){this._matrix[2]=pe}}),Object.defineProperty(As.prototype,"d",{get:function(){return this._matrix[3]},set:function(pe){this._matrix[3]=pe}}),Object.defineProperty(As.prototype,"e",{get:function(){return this._matrix[4]},set:function(pe){this._matrix[4]=pe}}),Object.defineProperty(As.prototype,"f",{get:function(){return this._matrix[5]},set:function(pe){this._matrix[5]=pe}}),Object.defineProperty(As.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(As.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(As.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(As.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),As.prototype.join=function(pe){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(vr).join(pe)},As.prototype.multiply=function(pe){var wn=pe.sx*this.sx+pe.shy*this.shx,vi=pe.sx*this.shy+pe.shy*this.sy,Ri=pe.shx*this.sx+pe.sy*this.shx,cr=pe.shx*this.shy+pe.sy*this.sy,Qr=pe.tx*this.sx+pe.ty*this.shx+this.tx,yo=pe.tx*this.shy+pe.ty*this.sy+this.ty;return new As(wn,vi,Ri,cr,Qr,yo)},As.prototype.decompose=function(){var pe=this.sx,wn=this.shy,vi=this.shx,Ri=this.sy,cr=this.tx,Qr=this.ty,yo=Math.sqrt(pe*pe+wn*wn),ps=(pe/=yo)*vi+(wn/=yo)*Ri;vi-=pe*ps,Ri-=wn*ps;var Ws=Math.sqrt(vi*vi+Ri*Ri);return ps/=Ws,pe*(Ri/=Ws)<wn*(vi/=Ws)&&(pe=-pe,wn=-wn,ps=-ps,yo=-yo),{scale:new As(yo,0,0,Ws,0,0),translate:new As(1,0,0,1,cr,Qr),rotate:new As(pe,wn,-wn,pe,0,0),skew:new As(1,0,ps,1,0,0)}},As.prototype.toString=function(pe){return this.join(" ")},As.prototype.inversed=function(){var pe=this.sx,wn=this.shy,vi=this.shx,Ri=this.sy,cr=this.tx,Qr=this.ty,yo=1/(pe*Ri-wn*vi),ps=Ri*yo,Ws=-wn*yo,_a=-vi*yo,ba=pe*yo;return new As(ps,Ws,_a,ba,-ps*cr-_a*Qr,-Ws*cr-ba*Qr)},As.prototype.applyToPoint=function(pe){var wn=pe.x*this.sx+pe.y*this.shx+this.tx,vi=pe.x*this.shy+pe.y*this.sy+this.ty;return new pc(wn,vi)},As.prototype.applyToRectangle=function(pe){var wn=this.applyToPoint(pe),vi=this.applyToPoint(new pc(pe.x+pe.w,pe.y+pe.h));return new hd(wn.x,wn.y,vi.x-wn.x,vi.y-wn.y)},As.prototype.clone=function(){var pe=this.sx,wn=this.shy,vi=this.shx,Ri=this.sy,cr=this.tx,Qr=this.ty;return new As(pe,wn,vi,Ri,cr,Qr)},ze.Matrix=As;var eu=ze.matrixMult=function(pe,wn){return wn.multiply(pe)},fa=new As(1,0,0,1,0,0);ze.unitMatrix=ze.identityMatrix=fa;var yl=function(pe,wn){if(!jl[pe]){var vi=(wn instanceof la?"Sh":"P")+(Object.keys(js).length+1).toString(10);wn.id=vi,jl[pe]=vi,js[vi]=wn,bo.publish("addPattern",wn)}};ze.ShadingPattern=la,ze.TilingPattern=ca,ze.addShadingPattern=function(pe,wn){return Ti("addShadingPattern()"),yl(pe,wn),this},ze.beginTilingPattern=function(pe){Ti("beginTilingPattern()"),Rh(pe.boundingBox[0],pe.boundingBox[1],pe.boundingBox[2]-pe.boundingBox[0],pe.boundingBox[3]-pe.boundingBox[1],pe.matrix)},ze.endTilingPattern=function(pe,wn){Ti("endTilingPattern()"),wn.stream=Xi[hn].join(`
|
|
|
`),yl(pe,wn),bo.publish("endTilingPattern",wn),Yl.pop().restore()};var po=ze.__private__.newObject=function(){var pe=Ra();return Nu(pe,!0),pe},Ra=ze.__private__.newObjectDeferred=function(){return Zn++,li[Zn]=function(){return Fi},Zn},Nu=function(pe,wn){return wn=typeof wn=="boolean"&&wn,li[pe]=Fi,wn&&Qn(pe+" 0 obj"),pe},wa=ze.__private__.newAdditionalObject=function(){var pe={objId:Ra(),content:""};return ki.push(pe),pe},na=Ra(),Na=Ra(),Xa=ze.__private__.decodeColorString=function(pe){var wn=pe.split(" ");if(wn.length!==2||wn[1]!=="g"&&wn[1]!=="G")wn.length===5&&(wn[4]==="k"||wn[4]==="K")&&(wn=[(1-wn[0])*(1-wn[3]),(1-wn[1])*(1-wn[3]),(1-wn[2])*(1-wn[3]),"r"]);else{var vi=parseFloat(wn[0]);wn=[vi,vi,vi,"r"]}for(var Ri="#",cr=0;cr<3;cr++)Ri+=("0"+Math.floor(255*parseFloat(wn[cr])).toString(16)).slice(-2);return Ri},ul=ze.__private__.encodeColorString=function(pe){var wn;typeof pe=="string"&&(pe={ch1:pe});var vi=pe.ch1,Ri=pe.ch2,cr=pe.ch3,Qr=pe.ch4,yo=pe.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof vi=="string"&&vi.charAt(0)!=="#"){var ps=new si(vi);if(ps.ok)vi=ps.toHex();else if(!/^\d*\.?\d*$/.test(vi))throw new Error('Invalid color "'+vi+'" passed to jsPDF.encodeColorString.')}if(typeof vi=="string"&&/^#[0-9A-Fa-f]{3}$/.test(vi)&&(vi="#"+vi[1]+vi[1]+vi[2]+vi[2]+vi[3]+vi[3]),typeof vi=="string"&&/^#[0-9A-Fa-f]{6}$/.test(vi)){var Ws=parseInt(vi.substr(1),16);vi=Ws>>16&255,Ri=Ws>>8&255,cr=255&Ws}if(Ri===void 0||Qr===void 0&&vi===Ri&&Ri===cr)if(typeof vi=="string")wn=vi+" "+yo[0];else switch(pe.precision){case 2:wn=Vr(vi/255)+" "+yo[0];break;case 3:default:wn=zn(vi/255)+" "+yo[0]}else if(Qr===void 0||(0,bt.Z)(Qr)==="object"){if(Qr&&!isNaN(Qr.a)&&Qr.a===0)return wn=["1.","1.","1.",yo[1]].join(" ");if(typeof vi=="string")wn=[vi,Ri,cr,yo[1]].join(" ");else switch(pe.precision){case 2:wn=[Vr(vi/255),Vr(Ri/255),Vr(cr/255),yo[1]].join(" ");break;default:case 3:wn=[zn(vi/255),zn(Ri/255),zn(cr/255),yo[1]].join(" ")}}else if(typeof vi=="string")wn=[vi,Ri,cr,Qr,yo[2]].join(" ");else switch(pe.precision){case 2:wn=[Vr(vi),Vr(Ri),Vr(cr),Vr(Qr),yo[2]].join(" ");break;case 3:default:wn=[zn(vi),zn(Ri),zn(cr),zn(Qr),yo[2]].join(" ")}return wn},Qs=ze.__private__.getFilters=function(){return ye},Ia=ze.__private__.putStream=function(pe){var wn=(pe=pe||{}).data||"",vi=pe.filters||Qs(),Ri=pe.alreadyAppliedFilters||[],cr=pe.addLength1||!1,Qr=wn.length,yo=pe.objectId,ps=function(Al){return Al};if(mn!==null&&yo===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");mn!==null&&(ps=Ul.encryptor(yo,0));var Ws={};vi===!0&&(vi=["FlateEncode"]);var _a=pe.additionalKeyValues||[],ba=(Ws=zo.API.processDataByFilters!==void 0?zo.API.processDataByFilters(wn,vi):{data:wn,reverseChain:[]}).reverseChain+(Array.isArray(Ri)?Ri.join(" "):Ri.toString());if(Ws.data.length!==0&&(_a.push({key:"Length",value:Ws.data.length}),cr===!0&&_a.push({key:"Length1",value:Qr})),ba.length!=0)if(ba.split("/").length-1==1)_a.push({key:"Filter",value:ba});else{_a.push({key:"Filter",value:"["+ba+"]"});for(var Cl=0;Cl<_a.length;Cl+=1)if(_a[Cl].key==="DecodeParms"){for(var Us=[],Au=0;Au<Ws.reverseChain.split("/").length-1;Au+=1)Us.push("null");Us.push(_a[Cl].value),_a[Cl].value="["+Us.join(" ")+"]"}}Qn("<<");for(var yu=0;yu<_a.length;yu++)Qn("/"+_a[yu].key+" "+_a[yu].value);Qn(">>"),Ws.data.length!==0&&(Qn("stream"),Qn(ps(Ws.data)),Qn("endstream"))},Nl=ze.__private__.putPage=function(pe){var wn=pe.number,vi=pe.data,Ri=pe.objId,cr=pe.contentsObjId;Nu(Ri,!0),Qn("<</Type /Page"),Qn("/Parent "+pe.rootDictionaryObjId+" 0 R"),Qn("/Resources "+pe.resourceDictionaryObjId+" 0 R"),Qn("/MediaBox ["+parseFloat(vr(pe.mediaBox.bottomLeftX))+" "+parseFloat(vr(pe.mediaBox.bottomLeftY))+" "+vr(pe.mediaBox.topRightX)+" "+vr(pe.mediaBox.topRightY)+"]"),pe.cropBox!==null&&Qn("/CropBox ["+vr(pe.cropBox.bottomLeftX)+" "+vr(pe.cropBox.bottomLeftY)+" "+vr(pe.cropBox.topRightX)+" "+vr(pe.cropBox.topRightY)+"]"),pe.bleedBox!==null&&Qn("/BleedBox ["+vr(pe.bleedBox.bottomLeftX)+" "+vr(pe.bleedBox.bottomLeftY)+" "+vr(pe.bleedBox.topRightX)+" "+vr(pe.bleedBox.topRightY)+"]"),pe.trimBox!==null&&Qn("/TrimBox ["+vr(pe.trimBox.bottomLeftX)+" "+vr(pe.trimBox.bottomLeftY)+" "+vr(pe.trimBox.topRightX)+" "+vr(pe.trimBox.topRightY)+"]"),pe.artBox!==null&&Qn("/ArtBox ["+vr(pe.artBox.bottomLeftX)+" "+vr(pe.artBox.bottomLeftY)+" "+vr(pe.artBox.topRightX)+" "+vr(pe.artBox.topRightY)+"]"),typeof pe.userUnit=="number"&&pe.userUnit!==1&&Qn("/UserUnit "+pe.userUnit),bo.publish("putPage",{objId:Ri,pageContext:qo[wn],pageNumber:wn,page:vi}),Qn("/Contents "+cr+" 0 R"),Qn(">>"),Qn("endobj");var Qr=vi.join(`
|
|
|
`);return Hi===gi.ADVANCED&&(Qr+=`
|
|
|
Q`),Nu(cr,!0),Ia({data:Qr,filters:Qs(),objectId:cr}),Qn("endobj"),Ri},Iu=ze.__private__.putPages=function(){var pe,wn,vi=[];for(pe=1;pe<=Oo;pe++)qo[pe].objId=Ra(),qo[pe].contentsObjId=Ra();for(pe=1;pe<=Oo;pe++)vi.push(Nl({number:pe,data:Xi[pe],objId:qo[pe].objId,contentsObjId:qo[pe].contentsObjId,mediaBox:qo[pe].mediaBox,cropBox:qo[pe].cropBox,bleedBox:qo[pe].bleedBox,trimBox:qo[pe].trimBox,artBox:qo[pe].artBox,userUnit:qo[pe].userUnit,rootDictionaryObjId:na,resourceDictionaryObjId:Na}));Nu(na,!0),Qn("<</Type /Pages");var Ri="/Kids [";for(wn=0;wn<Oo;wn++)Ri+=vi[wn]+" 0 R ";Qn(Ri+"]"),Qn("/Count "+Oo),Qn(">>"),Qn("endobj"),bo.publish("postPutPages")},mu=function(pe){bo.publish("putFont",{font:pe,out:Qn,newObject:po,putStream:Ia}),pe.isAlreadyPutted!==!0&&(pe.objectNumber=po(),Qn("<<"),Qn("/Type /Font"),Qn("/BaseFont /"+vo(pe.postScriptName)),Qn("/Subtype /Type1"),typeof pe.encoding=="string"&&Qn("/Encoding /"+pe.encoding),Qn("/FirstChar 32"),Qn("/LastChar 255"),Qn(">>"),Qn("endobj"))},ku=function(){for(var pe in ko)ko.hasOwnProperty(pe)&&(pn===!1||pn===!0&&Tn.hasOwnProperty(pe))&&mu(ko[pe])},Gu=function(pe){pe.objectNumber=po();var wn=[];wn.push({key:"Type",value:"/XObject"}),wn.push({key:"Subtype",value:"/Form"}),wn.push({key:"BBox",value:"["+[vr(pe.x),vr(pe.y),vr(pe.x+pe.width),vr(pe.y+pe.height)].join(" ")+"]"}),wn.push({key:"Matrix",value:"["+pe.matrix.toString()+"]"});var vi=pe.pages[1].join(`
|
|
|
`);Ia({data:vi,additionalKeyValues:wn,objectId:pe.objectNumber}),Qn("endobj")},oh=function(){for(var pe in _s)_s.hasOwnProperty(pe)&&Gu(_s[pe])},sh=function(pe,wn){var vi,Ri=[],cr=1/(wn-1);for(vi=0;vi<1;vi+=cr)Ri.push(vi);if(Ri.push(1),pe[0].offset!=0){var Qr={offset:0,color:pe[0].color};pe.unshift(Qr)}if(pe[pe.length-1].offset!=1){var yo={offset:1,color:pe[pe.length-1].color};pe.push(yo)}for(var ps="",Ws=0,_a=0;_a<Ri.length;_a++){for(vi=Ri[_a];vi>pe[Ws+1].offset;)Ws++;var ba=pe[Ws].offset,Cl=(vi-ba)/(pe[Ws+1].offset-ba),Us=pe[Ws].color,Au=pe[Ws+1].color;ps+=Mn(Math.round((1-Cl)*Us[0]+Cl*Au[0]).toString(16))+Mn(Math.round((1-Cl)*Us[1]+Cl*Au[1]).toString(16))+Mn(Math.round((1-Cl)*Us[2]+Cl*Au[2]).toString(16))}return ps.trim()},Va=function(pe,wn){wn||(wn=21);var vi=po(),Ri=sh(pe.colors,wn),cr=[];cr.push({key:"FunctionType",value:"0"}),cr.push({key:"Domain",value:"[0.0 1.0]"}),cr.push({key:"Size",value:"["+wn+"]"}),cr.push({key:"BitsPerSample",value:"8"}),cr.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),cr.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ia({data:Ri,additionalKeyValues:cr,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:vi}),Qn("endobj"),pe.objectNumber=po(),Qn("<< /ShadingType "+pe.type),Qn("/ColorSpace /DeviceRGB");var Qr="/Coords ["+vr(parseFloat(pe.coords[0]))+" "+vr(parseFloat(pe.coords[1]))+" ";pe.type===2?Qr+=vr(parseFloat(pe.coords[2]))+" "+vr(parseFloat(pe.coords[3])):Qr+=vr(parseFloat(pe.coords[2]))+" "+vr(parseFloat(pe.coords[3]))+" "+vr(parseFloat(pe.coords[4]))+" "+vr(parseFloat(pe.coords[5])),Qn(Qr+="]"),pe.matrix&&Qn("/Matrix ["+pe.matrix.toString()+"]"),Qn("/Function "+vi+" 0 R"),Qn("/Extend [true true]"),Qn(">>"),Qn("endobj")},Cu=function(pe,wn){var vi=Ra(),Ri=po();wn.push({resourcesOid:vi,objectOid:Ri}),pe.objectNumber=Ri;var cr=[];cr.push({key:"Type",value:"/Pattern"}),cr.push({key:"PatternType",value:"1"}),cr.push({key:"PaintType",value:"1"}),cr.push({key:"TilingType",value:"1"}),cr.push({key:"BBox",value:"["+pe.boundingBox.map(vr).join(" ")+"]"}),cr.push({key:"XStep",value:vr(pe.xStep)}),cr.push({key:"YStep",value:vr(pe.yStep)}),cr.push({key:"Resources",value:vi+" 0 R"}),pe.matrix&&cr.push({key:"Matrix",value:"["+pe.matrix.toString()+"]"}),Ia({data:pe.stream,additionalKeyValues:cr,objectId:pe.objectNumber}),Qn("endobj")},Sl=function(pe){var wn;for(wn in js)js.hasOwnProperty(wn)&&(js[wn]instanceof la?Va(js[wn]):js[wn]instanceof ca&&Cu(js[wn],pe))},dl=function(pe){for(var wn in pe.objectNumber=po(),Qn("<<"),pe)switch(wn){case"opacity":Qn("/ca "+Vr(pe[wn]));break;case"stroke-opacity":Qn("/CA "+Vr(pe[wn]))}Qn(">>"),Qn("endobj")},ph=function(){var pe;for(pe in Po)Po.hasOwnProperty(pe)&&dl(Po[pe])},ec=function(){for(var pe in Qn("/XObject <<"),_s)_s.hasOwnProperty(pe)&&_s[pe].objectNumber>=0&&Qn("/"+pe+" "+_s[pe].objectNumber+" 0 R");bo.publish("putXobjectDict"),Qn(">>")},bh=function(){Ul.oid=po(),Qn("<<"),Qn("/Filter /Standard"),Qn("/V "+Ul.v),Qn("/R "+Ul.r),Qn("/U <"+Ul.toHexString(Ul.U)+">"),Qn("/O <"+Ul.toHexString(Ul.O)+">"),Qn("/P "+Ul.P),Qn(">>"),Qn("endobj")},Dh=function(){for(var pe in Qn("/Font <<"),ko)ko.hasOwnProperty(pe)&&(pn===!1||pn===!0&&Tn.hasOwnProperty(pe))&&Qn("/"+pe+" "+ko[pe].objectNumber+" 0 R");Qn(">>")},fc=function(){if(Object.keys(js).length>0){for(var pe in Qn("/Shading <<"),js)js.hasOwnProperty(pe)&&js[pe]instanceof la&&js[pe].objectNumber>=0&&Qn("/"+pe+" "+js[pe].objectNumber+" 0 R");bo.publish("putShadingPatternDict"),Qn(">>")}},Wu=function(pe){if(Object.keys(js).length>0){for(var wn in Qn("/Pattern <<"),js)js.hasOwnProperty(wn)&&js[wn]instanceof ze.TilingPattern&&js[wn].objectNumber>=0&&js[wn].objectNumber<pe&&Qn("/"+wn+" "+js[wn].objectNumber+" 0 R");bo.publish("putTilingPatternDict"),Qn(">>")}},ka=function(){if(Object.keys(Po).length>0){var pe;for(pe in Qn("/ExtGState <<"),Po)Po.hasOwnProperty(pe)&&Po[pe].objectNumber>=0&&Qn("/"+pe+" "+Po[pe].objectNumber+" 0 R");bo.publish("putGStateDict"),Qn(">>")}},ra=function(pe){Nu(pe.resourcesOid,!0),Qn("<<"),Qn("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Dh(),fc(),Wu(pe.objectOid),ka(),ec(),Qn(">>"),Qn("endobj")},uu=function(){var pe=[];ku(),ph(),oh(),Sl(pe),bo.publish("putResources"),pe.forEach(ra),ra({resourcesOid:Na,objectOid:Number.MAX_SAFE_INTEGER}),bo.publish("postPutResources")},wl=function(){bo.publish("putAdditionalObjects");for(var pe=0;pe<ki.length;pe++){var wn=ki[pe];Nu(wn.objId,!0),Qn(wn.content),Qn("endobj")}bo.publish("postPutAdditionalObjects")},ga=function(pe){Fs[pe.fontName]=Fs[pe.fontName]||{},Fs[pe.fontName][pe.fontStyle]=pe.id},hu=function(pe,wn,vi,Ri,cr){var Qr={id:"F"+(Object.keys(ko).length+1).toString(10),postScriptName:pe,fontName:wn,fontStyle:vi,encoding:Ri,isStandardFont:cr||!1,metadata:{}};return bo.publish("addFont",{font:Qr,instance:this}),ko[Qr.id]=Qr,ga(Qr),Qr.id},Ru=function(pe){for(var wn=0,vi=rr.length;wn<vi;wn++){var Ri=hu.call(this,pe[wn][0],pe[wn][1],pe[wn][2],rr[wn][3],!0);pn===!1&&(Tn[Ri]=!0);var cr=pe[wn][0].split("-");ga({id:Ri,fontName:cr[0],fontStyle:cr[1]||""})}bo.publish("addFonts",{fonts:ko,dictionary:Fs})},Tu=function(pe){return pe.foo=function(){try{return pe.apply(this,arguments)}catch(Ri){var wn=Ri.stack||"";~wn.indexOf(" at ")&&(wn=wn.split(" at ")[1]);var vi="Error in function "+wn.split(`
|
|
|
`)[0].split("<")[0]+": "+Ri.message;if(!_r.console)throw new Error(vi);_r.console.error(vi,Ri),_r.alert&&alert(vi)}},pe.foo.bar=pe,pe.foo},Yc=function(pe,wn){var vi,Ri,cr,Qr,yo,ps,Ws,_a,ba;if(cr=(wn=wn||{}).sourceEncoding||"Unicode",yo=wn.outputEncoding,(wn.autoencode||yo)&&ko[hs].metadata&&ko[hs].metadata[cr]&&ko[hs].metadata[cr].encoding&&(Qr=ko[hs].metadata[cr].encoding,!yo&&ko[hs].encoding&&(yo=ko[hs].encoding),!yo&&Qr.codePages&&(yo=Qr.codePages[0]),typeof yo=="string"&&(yo=Qr[yo]),yo)){for(Ws=!1,ps=[],vi=0,Ri=pe.length;vi<Ri;vi++)(_a=yo[pe.charCodeAt(vi)])?ps.push(String.fromCharCode(_a)):ps.push(pe[vi]),ps[vi].charCodeAt(0)>>8&&(Ws=!0);pe=ps.join("")}for(vi=pe.length;Ws===void 0&&vi!==0;)pe.charCodeAt(vi-1)>>8&&(Ws=!0),vi--;if(!Ws)return pe;for(ps=wn.noBOM?[]:[254,255],vi=0,Ri=pe.length;vi<Ri;vi++){if((ba=(_a=pe.charCodeAt(vi))>>8)>>8)throw new Error("Character at position "+vi+" of string '"+pe+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");ps.push(ba),ps.push(_a-(ba<<8))}return String.fromCharCode.apply(void 0,ps)},_n=ze.__private__.pdfEscape=ze.pdfEscape=function(pe,wn){return Yc(pe,wn).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},nc=ze.__private__.beginPage=function(pe){Xi[++Oo]=[],qo[Oo]={objId:0,contentsObjId:0,userUnit:Number(Se),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(pe[0]),topRightY:Number(pe[1])}},$c(Oo),qi(Xi[hn])},jh=function(pe,wn){var vi,Ri,cr;switch(Et=wn||Et,typeof pe=="string"&&(vi=Hn(pe.toLowerCase()),Array.isArray(vi)&&(Ri=vi[0],cr=vi[1])),Array.isArray(pe)&&(Ri=pe[0]*co,cr=pe[1]*co),isNaN(Ri)&&(Ri=le[0],cr=le[1]),(Ri>14400||cr>14400)&&(Qo.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Ri=Math.min(14400,Ri),cr=Math.min(14400,cr)),le=[Ri,cr],Et.substr(0,1)){case"l":cr>Ri&&(le=[cr,Ri]);break;case"p":Ri>cr&&(le=[cr,Ri])}nc(le),vh(hl),Qn(ic),rc!==0&&Qn(rc+" J"),QA!==0&&Qn(QA+" j"),bo.publish("addPage",{pageNumber:Oo})},EA=function(pe){pe>0&&pe<=Oo&&(Xi.splice(pe,1),qo.splice(pe,1),Oo--,hn>Oo&&(hn=Oo),this.setPage(hn))},$c=function(pe){pe>0&&pe<=Oo&&(hn=pe)},Fc=ze.__private__.getNumberOfPages=ze.getNumberOfPages=function(){return Xi.length-1},ad=function(pe,wn,vi){var Ri,cr=void 0;return vi=vi||{},pe=pe!==void 0?pe:ko[hs].fontName,wn=wn!==void 0?wn:ko[hs].fontStyle,Ri=pe.toLowerCase(),Fs[Ri]!==void 0&&Fs[Ri][wn]!==void 0?cr=Fs[Ri][wn]:Fs[pe]!==void 0&&Fs[pe][wn]!==void 0?cr=Fs[pe][wn]:vi.disableWarning===!1&&Qo.warn("Unable to look up font label for font '"+pe+"', '"+wn+"'. Refer to getFontList() for available fonts."),cr||vi.noFallback||(cr=Fs.times[wn])==null&&(cr=Fs.times.normal),cr},HA=ze.__private__.putInfo=function(){var pe=po(),wn=function(Ri){return Ri};for(var vi in mn!==null&&(wn=Ul.encryptor(pe,0)),Qn("<<"),Qn("/Producer ("+_n(wn("jsPDF "+zo.version))+")"),No)No.hasOwnProperty(vi)&&No[vi]&&Qn("/"+vi.substr(0,1).toUpperCase()+vi.substr(1)+" ("+_n(wn(No[vi]))+")");Qn("/CreationDate ("+_n(wn(Ee))+")"),Qn(">>"),Qn("endobj")},vu=ze.__private__.putCatalog=function(pe){var wn=(pe=pe||{}).rootDictionaryObjId||na;switch(po(),Qn("<<"),Qn("/Type /Catalog"),Qn("/Pages "+wn+" 0 R"),mr||(mr="fullwidth"),mr){case"fullwidth":Qn("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Qn("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Qn("/OpenAction [3 0 R /Fit]");break;case"original":Qn("/OpenAction [3 0 R /XYZ null null 1]");break;default:var vi=""+mr;vi.substr(vi.length-1)==="%"&&(mr=parseInt(mr)/100),typeof mr=="number"&&Qn("/OpenAction [3 0 R /XYZ null null "+Vr(mr)+"]")}switch(Fo||(Fo="continuous"),Fo){case"continuous":Qn("/PageLayout /OneColumn");break;case"single":Qn("/PageLayout /SinglePage");break;case"two":case"twoleft":Qn("/PageLayout /TwoColumnLeft");break;case"tworight":Qn("/PageLayout /TwoColumnRight")}ho&&Qn("/PageMode /"+ho),bo.publish("putCatalog"),Qn(">>"),Qn("endobj")},Sd=ze.__private__.putTrailer=function(){Qn("trailer"),Qn("<<"),Qn("/Size "+(Zn+1)),Qn("/Root "+Zn+" 0 R"),Qn("/Info "+(Zn-1)+" 0 R"),mn!==null&&Qn("/Encrypt "+Ul.oid+" 0 R"),Qn("/ID [ <"+Ye+"> <"+Ye+"> ]"),Qn(">>")},Rd=ze.__private__.putHeader=function(){Qn("%PDF-"+di),Qn("%\xBA\xDF\xAC\xE0")},ld=ze.__private__.putXRef=function(){var pe="0000000000";Qn("xref"),Qn("0 "+(Zn+1)),Qn("0000000000 65535 f ");for(var wn=1;wn<=Zn;wn++)typeof li[wn]=="function"?Qn((pe+li[wn]()).slice(-10)+" 00000 n "):li[wn]!==void 0?Qn((pe+li[wn]).slice(-10)+" 00000 n "):Qn("0000000000 00000 n ")},Lc=ze.__private__.buildDocument=function(){qr(),qi(oi),bo.publish("buildDocument"),Rd(),Iu(),wl(),uu(),mn!==null&&bh(),HA(),vu();var pe=Fi;return ld(),Sd(),Qn("startxref"),Qn(""+pe),Qn("%%EOF"),qi(Xi[hn]),oi.join(`
|
|
|
`)},_d=ze.__private__.getBlob=function(pe){return new Blob([uo(pe)],{type:"application/pdf"})},Cd=ze.output=ze.__private__.output=Tu(function(pe,wn){switch(typeof(wn=wn||{})=="string"?wn={filename:wn}:wn.filename=wn.filename||"generated.pdf",pe){case void 0:return Lc();case"save":ze.save(wn.filename);break;case"arraybuffer":return uo(Lc());case"blob":return _d(Lc());case"bloburi":case"bloburl":if(_r.URL!==void 0&&typeof _r.URL.createObjectURL=="function")return _r.URL&&_r.URL.createObjectURL(_d(Lc()))||void 0;Qo.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var vi="",Ri=Lc();try{vi=Hs(Ri)}catch(Au){vi=Hs(unescape(encodeURIComponent(Ri)))}return"data:application/pdf;filename="+wn.filename+";base64,"+vi;case"pdfobjectnewwindow":if(Object.prototype.toString.call(_r)==="[object Window]"){var cr="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Qr=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';wn.pdfObjectUrl&&(cr=wn.pdfObjectUrl,Qr="");var yo='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+cr+'"'+Qr+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(wn)+");<\/script></body></html>",ps=_r.open();return ps!==null&&ps.document.write(yo),ps}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(_r)==="[object Window]"){var Ws='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(wn.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+wn.filename+'" width="500px" height="400px" /></body></html>',_a=_r.open();if(_a!==null){_a.document.write(Ws);var ba=this;_a.document.documentElement.querySelector("#pdfViewer").onload=function(){_a.document.title=wn.filename,_a.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(ba.output("bloburl"))}}return _a}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(_r)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Cl='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",wn)+'"></iframe></body></html>',Us=_r.open();if(Us!==null&&(Us.document.write(Cl),Us.document.title=wn.filename),Us||typeof safari=="undefined")return Us;break;case"datauri":case"dataurl":return _r.document.location.href=this.output("datauristring",wn);default:return null}}),ah=function(pe){return Array.isArray(Ls)===!0&&Ls.indexOf(pe)>-1};switch(jt){case"pt":co=1;break;case"mm":co=72/25.4;break;case"cm":co=72/2.54;break;case"in":co=72;break;case"px":co=ah("px_scaling")==1?.75:96/72;break;case"pc":case"em":co=12;break;case"ex":co=6;break;default:if(typeof jt!="number")throw new Error("Invalid unit: "+jt);co=jt}var Ul=null;Jn(),cn();var Bd=function(pe){return mn!==null?Ul.encryptor(pe,0):function(wn){return wn}},lA=ze.__private__.getPageInfo=ze.getPageInfo=function(pe){if(isNaN(pe)||pe%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:qo[pe].objId,pageNumber:pe,pageContext:qo[pe]}},Ys=ze.__private__.getPageInfoByObjId=function(pe){if(isNaN(pe)||pe%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var wn in qo)if(qo[wn].objId===pe)break;return lA(wn)},Xc=ze.__private__.getCurrentPageInfo=ze.getCurrentPageInfo=function(){return{objId:qo[hn].objId,pageNumber:hn,pageContext:qo[hn]}};ze.addPage=function(){return jh.apply(this,arguments),this},ze.setPage=function(){return $c.apply(this,arguments),qi.call(this,Xi[hn]),this},ze.insertPage=function(pe){return this.addPage(),this.movePage(hn,pe),this},ze.movePage=function(pe,wn){var vi,Ri;if(pe>wn){vi=Xi[pe],Ri=qo[pe];for(var cr=pe;cr>wn;cr--)Xi[cr]=Xi[cr-1],qo[cr]=qo[cr-1];Xi[wn]=vi,qo[wn]=Ri,this.setPage(wn)}else if(pe<wn){vi=Xi[pe],Ri=qo[pe];for(var Qr=pe;Qr<wn;Qr++)Xi[Qr]=Xi[Qr+1],qo[Qr]=qo[Qr+1];Xi[wn]=vi,qo[wn]=Ri,this.setPage(wn)}return this},ze.deletePage=function(){return EA.apply(this,arguments),this},ze.__private__.text=ze.text=function(pe,wn,vi,Ri,cr){var Qr,yo,ps,Ws,_a,ba,Cl,Us,Au,yu=(Ri=Ri||{}).scope||this;if(typeof pe=="number"&&typeof wn=="number"&&(typeof vi=="string"||Array.isArray(vi))){var Al=vi;vi=wn,wn=pe,pe=Al}if(arguments[3]instanceof As?(Ti("The transform parameter of text() with a Matrix value"),Au=cr):(ps=arguments[4],Ws=arguments[5],(0,bt.Z)(Cl=arguments[3])==="object"&&Cl!==null||(typeof ps=="string"&&(Ws=ps,ps=null),typeof Cl=="string"&&(Ws=Cl,Cl=null),typeof Cl=="number"&&(ps=Cl,Cl=null),Ri={flags:Cl,angle:ps,align:Ws})),isNaN(wn)||isNaN(vi)||pe==null)throw new Error("Invalid arguments passed to jsPDF.text");if(pe.length===0)return yu;var Il="",wh=!1,Eh=typeof Ri.lineHeightFactor=="number"?Ri.lineHeightFactor:xa,oc=yu.internal.scaleFactor;function Vd(Ja){return Ja=Ja.split(" ").join(Array(Ri.TabLen||9).join(" ")),_n(Ja,Cl)}function cA(Ja){for(var Ua,Za=Ja.concat(),El=[],wu=Za.length;wu--;)typeof(Ua=Za.shift())=="string"?El.push(Ua):Array.isArray(Ja)&&(Ua.length===1||Ua[1]===void 0&&Ua[2]===void 0)?El.push(Ua[0]):El.push([Ua[0],Ua[1],Ua[2]]);return El}function dA(Ja,Ua){var Za;if(typeof Ja=="string")Za=Ua(Ja)[0];else if(Array.isArray(Ja)){for(var El,wu,Ro=Ja.concat(),Ca=[],Xl=Ro.length;Xl--;)typeof(El=Ro.shift())=="string"?Ca.push(Ua(El)[0]):Array.isArray(El)&&typeof El[0]=="string"&&(wu=Ua(El[0],El[1],El[2]),Ca.push([wu[0],wu[1],wu[2]]));Za=Ca}return Za}var AA=!1,Tc=!0;if(typeof pe=="string")AA=!0;else if(Array.isArray(pe)){var Ld=pe.concat();yo=[];for(var Oc,Sa=Ld.length;Sa--;)(typeof(Oc=Ld.shift())!="string"||Array.isArray(Oc)&&typeof Oc[0]!="string")&&(Tc=!1);AA=Tc}if(AA===!1)throw new Error('Type of text must be string or Array. "'+pe+'" is not recognized.');typeof pe=="string"&&(pe=pe.match(/[\r?\n]/)?pe.split(/\r\n|\r|\n/g):[pe]);var mc=wr/yu.internal.scaleFactor,Zd=mc*(Eh-1);switch(Ri.baseline){case"bottom":vi-=Zd;break;case"top":vi+=mc-Zd;break;case"hanging":vi+=mc-2*Zd;break;case"middle":vi+=mc/2-Zd}if((ba=Ri.maxWidth||0)>0&&(typeof pe=="string"?pe=yu.splitTextToSize(pe,ba):Object.prototype.toString.call(pe)==="[object Array]"&&(pe=pe.reduce(function(Ja,Ua){return Ja.concat(yu.splitTextToSize(Ua,ba))},[]))),Qr={text:pe,x:wn,y:vi,options:Ri,mutex:{pdfEscape:_n,activeFontKey:hs,fonts:ko,activeFontSize:wr}},bo.publish("preProcessText",Qr),pe=Qr.text,ps=(Ri=Qr.options).angle,!(Au instanceof As)&&ps&&typeof ps=="number"){ps*=Math.PI/180,Ri.rotationDirection===0&&(ps=-ps),Hi===gi.ADVANCED&&(ps=-ps);var Jl=Math.cos(ps),_h=Math.sin(ps);Au=new As(Jl,_h,-_h,Jl,0,0)}else ps&&ps instanceof As&&(Au=ps);Hi!==gi.ADVANCED||Au||(Au=fa),(_a=Ri.charSpace||uA)!==void 0&&(Il+=vr(Xn(_a))+` Tc
|
|
|
`,this.setCharSpace(this.getCharSpace()||0)),(Us=Ri.horizontalScale)!==void 0&&(Il+=vr(100*Us)+` Tz
|
|
|
`),Ri.lang;var _u=-1,cd=Ri.renderingMode!==void 0?Ri.renderingMode:Ri.stroke,Rl=yu.internal.getCurrentPageInfo().pageContext;switch(cd){case 0:case!1:case"fill":_u=0;break;case 1:case!0:case"stroke":_u=1;break;case 2:case"fillThenStroke":_u=2;break;case 3:case"invisible":_u=3;break;case 4:case"fillAndAddForClipping":_u=4;break;case 5:case"strokeAndAddPathForClipping":_u=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":_u=6;break;case 7:case"addToPathForClipping":_u=7}var Yd=Rl.usedRenderingMode!==void 0?Rl.usedRenderingMode:-1;_u!==-1?Il+=_u+` Tr
|
|
|
`:Yd!==-1&&(Il+=`0 Tr
|
|
|
`),_u!==-1&&(Rl.usedRenderingMode=_u),Ws=Ri.align||"left";var Eu,sc=wr*Eh,$d=yu.internal.pageSize.getWidth(),it=ko[hs];_a=Ri.charSpace||uA,ba=Ri.maxWidth||0,Cl=Object.assign({autoencode:!0,noBOM:!0},Ri.flags);var st=[],ft=function(Ja){return yu.getStringUnitWidth(Ja,{font:it,charSpace:_a,fontSize:wr,doKerning:!1})*wr/oc};if(Object.prototype.toString.call(pe)==="[object Array]"){var At;yo=cA(pe),Ws!=="left"&&(Eu=yo.map(ft));var xt,ne=0;if(Ws==="right"){wn-=Eu[0],pe=[],Sa=yo.length;for(var Be=0;Be<Sa;Be++)Be===0?(xt=Uh(wn),At=Vu(vi)):(xt=Xn(ne-Eu[Be]),At=-sc),pe.push([yo[Be],xt,At]),ne=Eu[Be]}else if(Ws==="center"){wn-=Eu[0]/2,pe=[],Sa=yo.length;for(var He=0;He<Sa;He++)He===0?(xt=Uh(wn),At=Vu(vi)):(xt=Xn((ne-Eu[He])/2),At=-sc),pe.push([yo[He],xt,At]),ne=Eu[He]}else if(Ws==="left"){pe=[],Sa=yo.length;for(var _e=0;_e<Sa;_e++)pe.push(yo[_e])}else if(Ws==="justify"&&it.encoding==="Identity-H"){pe=[],Sa=yo.length,ba=ba!==0?ba:$d;for(var un=0,Yn=0;Yn<Sa;Yn++)if(At=Yn===0?Vu(vi):-sc,xt=Yn===0?Uh(wn):un,Yn<Sa-1){var xn=Xn((ba-Eu[Yn])/(yo[Yn].split(" ").length-1)),Ni=yo[Yn].split(" ");pe.push([Ni[0]+" ",xt,At]),un=0;for(var Ei=1;Ei<Ni.length;Ei++){var Nr=(ft(Ni[Ei-1]+" "+Ni[Ei])-ft(Ni[Ei]))*oc+xn;Ei==Ni.length-1?pe.push([Ni[Ei],Nr,0]):pe.push([Ni[Ei]+" ",Nr,0]),un-=Nr}}else pe.push([yo[Yn],xt,At]);pe.push(["",un,0])}else{if(Ws!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(pe=[],Sa=yo.length,ba=ba!==0?ba:$d,Yn=0;Yn<Sa;Yn++)At=Yn===0?Vu(vi):-sc,xt=Yn===0?Uh(wn):0,Yn<Sa-1?st.push(vr(Xn((ba-Eu[Yn])/(yo[Yn].split(" ").length-1)))):st.push(0),pe.push([yo[Yn],xt,At])}}var jr=typeof Ri.R2L=="boolean"?Ri.R2L:Or;jr===!0&&(pe=dA(pe,function(Ja,Ua,Za){return[Ja.split("").reverse().join(""),Ua,Za]})),Qr={text:pe,x:wn,y:vi,options:Ri,mutex:{pdfEscape:_n,activeFontKey:hs,fonts:ko,activeFontSize:wr}},bo.publish("postProcessText",Qr),pe=Qr.text,wh=Qr.mutex.isHex||!1;var to=ko[hs].encoding;to!=="WinAnsiEncoding"&&to!=="StandardEncoding"||(pe=dA(pe,function(Ja,Ua,Za){return[Vd(Ja),Ua,Za]})),yo=cA(pe),pe=[];for(var Co,$o,Do,ss=0,Ds=1,jo=Array.isArray(yo[0])?Ds:ss,Js="",_l=function(Ja,Ua,Za){var El="";return Za instanceof As?(Za=typeof Ri.angle=="number"?eu(Za,new As(1,0,0,1,Ja,Ua)):eu(new As(1,0,0,1,Ja,Ua),Za),Hi===gi.ADVANCED&&(Za=eu(new As(1,0,0,-1,0,0),Za)),El=Za.join(" ")+` Tm
|
|
|
`):El=vr(Ja)+" "+vr(Ua)+` Td
|
|
|
`,El},$l=0;$l<yo.length;$l++){switch(Js="",jo){case Ds:Do=(wh?"<":"(")+yo[$l][0]+(wh?">":")"),Co=parseFloat(yo[$l][1]),$o=parseFloat(yo[$l][2]);break;case ss:Do=(wh?"<":"(")+yo[$l]+(wh?">":")"),Co=Uh(wn),$o=Vu(vi)}st!==void 0&&st[$l]!==void 0&&(Js=st[$l]+` Tw
|
|
|
`),$l===0?pe.push(Js+_l(Co,$o,Au)+Do):jo===ss?pe.push(Js+Do):jo===Ds&&pe.push(Js+_l(Co,$o,Au)+Do)}pe=jo===ss?pe.join(` Tj
|
|
|
T* `):pe.join(` Tj
|
|
|
`),pe+=` Tj
|
|
|
`;var fl=`BT
|
|
|
/`;return fl+=hs+" "+wr+` Tf
|
|
|
`,fl+=vr(wr*Eh)+` TL
|
|
|
`,fl+=gc+`
|
|
|
`,fl+=Il,fl+=pe,Qn(fl+="ET"),Tn[hs]=!0,yu};var Pd=ze.__private__.clip=ze.clip=function(pe){return Qn(pe==="evenodd"?"W*":"W"),this};ze.clipEvenOdd=function(){return Pd("evenodd")},ze.__private__.discardPath=ze.discardPath=function(){return Qn("n"),this};var mh=ze.__private__.isValidStyle=function(pe){var wn=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(pe)!==-1&&(wn=!0),wn};ze.__private__.setDefaultPathOperation=ze.setDefaultPathOperation=function(pe){return mh(pe)&&(tn=pe),this};var qu=ze.__private__.getStyle=ze.getStyle=function(pe){var wn=tn;switch(pe){case"D":case"S":wn="S";break;case"F":wn="f";break;case"FD":case"DF":wn="B";break;case"f":case"f*":case"B":case"B*":wn=pe}return wn},Hd=ze.close=function(){return Qn("h"),this};ze.stroke=function(){return Qn("S"),this},ze.fill=function(pe){return ud("f",pe),this},ze.fillEvenOdd=function(pe){return ud("f*",pe),this},ze.fillStroke=function(pe){return ud("B",pe),this},ze.fillStrokeEvenOdd=function(pe){return ud("B*",pe),this};var ud=function(pe,wn){(0,bt.Z)(wn)==="object"?Ed(wn,pe):Qn(pe)},th=function(pe){pe===null||Hi===gi.ADVANCED&&pe===void 0||(pe=qu(pe),Qn(pe))};function bd(pe,wn,vi,Ri,cr){var Qr=new ca(wn||this.boundingBox,vi||this.xStep,Ri||this.yStep,this.gState,cr||this.matrix);Qr.stream=this.stream;var yo=pe+"$$"+this.cloneIndex+++"$$";return yl(yo,Qr),Qr}var Ed=function(pe,wn){var vi=jl[pe.key],Ri=js[vi];if(Ri instanceof la)Qn("q"),Qn(Qd(wn)),Ri.gState&&ze.setGState(Ri.gState),Qn(pe.matrix.toString()+" cm"),Qn("/"+vi+" sh"),Qn("Q");else if(Ri instanceof ca){var cr=new As(1,0,0,-1,0,kc());pe.matrix&&(cr=cr.multiply(pe.matrix||fa),vi=bd.call(Ri,pe.key,pe.boundingBox,pe.xStep,pe.yStep,cr).id),Qn("q"),Qn("/Pattern cs"),Qn("/"+vi+" scn"),Ri.gState&&ze.setGState(Ri.gState),Qn(wn),Qn("Q")}},Qd=function(pe){switch(pe){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},nu=ze.moveTo=function(pe,wn){return Qn(vr(Xn(pe))+" "+vr(ve(wn))+" m"),this},cu=ze.lineTo=function(pe,wn){return Qn(vr(Xn(pe))+" "+vr(ve(wn))+" l"),this},Mc=ze.curveTo=function(pe,wn,vi,Ri,cr,Qr){return Qn([vr(Xn(pe)),vr(ve(wn)),vr(Xn(vi)),vr(ve(Ri)),vr(Xn(cr)),vr(ve(Qr)),"c"].join(" ")),this};ze.__private__.line=ze.line=function(pe,wn,vi,Ri,cr){if(isNaN(pe)||isNaN(wn)||isNaN(vi)||isNaN(Ri)||!mh(cr))throw new Error("Invalid arguments passed to jsPDF.line");return Hi===gi.COMPAT?this.lines([[vi-pe,Ri-wn]],pe,wn,[1,1],cr||"S"):this.lines([[vi-pe,Ri-wn]],pe,wn,[1,1]).stroke()},ze.__private__.lines=ze.lines=function(pe,wn,vi,Ri,cr,Qr){var yo,ps,Ws,_a,ba,Cl,Us,Au,yu,Al,Il,wh;if(typeof pe=="number"&&(wh=vi,vi=wn,wn=pe,pe=wh),Ri=Ri||[1,1],Qr=Qr||!1,isNaN(wn)||isNaN(vi)||!Array.isArray(pe)||!Array.isArray(Ri)||!mh(cr)||typeof Qr!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(nu(wn,vi),yo=Ri[0],ps=Ri[1],_a=pe.length,Al=wn,Il=vi,Ws=0;Ws<_a;Ws++)(ba=pe[Ws]).length===2?(Al=ba[0]*yo+Al,Il=ba[1]*ps+Il,cu(Al,Il)):(Cl=ba[0]*yo+Al,Us=ba[1]*ps+Il,Au=ba[2]*yo+Al,yu=ba[3]*ps+Il,Al=ba[4]*yo+Al,Il=ba[5]*ps+Il,Mc(Cl,Us,Au,yu,Al,Il));return Qr&&Hd(),th(cr),this},ze.path=function(pe){for(var wn=0;wn<pe.length;wn++){var vi=pe[wn],Ri=vi.c;switch(vi.op){case"m":nu(Ri[0],Ri[1]);break;case"l":cu(Ri[0],Ri[1]);break;case"c":Mc.apply(this,Ri);break;case"h":Hd()}}return this},ze.__private__.rect=ze.rect=function(pe,wn,vi,Ri,cr){if(isNaN(pe)||isNaN(wn)||isNaN(vi)||isNaN(Ri)||!mh(cr))throw new Error("Invalid arguments passed to jsPDF.rect");return Hi===gi.COMPAT&&(Ri=-Ri),Qn([vr(Xn(pe)),vr(ve(wn)),vr(Xn(vi)),vr(Xn(Ri)),"re"].join(" ")),th(cr),this},ze.__private__.triangle=ze.triangle=function(pe,wn,vi,Ri,cr,Qr,yo){if(isNaN(pe)||isNaN(wn)||isNaN(vi)||isNaN(Ri)||isNaN(cr)||isNaN(Qr)||!mh(yo))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[vi-pe,Ri-wn],[cr-vi,Qr-Ri],[pe-cr,wn-Qr]],pe,wn,[1,1],yo,!0),this},ze.__private__.roundedRect=ze.roundedRect=function(pe,wn,vi,Ri,cr,Qr,yo){if(isNaN(pe)||isNaN(wn)||isNaN(vi)||isNaN(Ri)||isNaN(cr)||isNaN(Qr)||!mh(yo))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var ps=4/3*(Math.SQRT2-1);return cr=Math.min(cr,.5*vi),Qr=Math.min(Qr,.5*Ri),this.lines([[vi-2*cr,0],[cr*ps,0,cr,Qr-Qr*ps,cr,Qr],[0,Ri-2*Qr],[0,Qr*ps,-cr*ps,Qr,-cr,Qr],[2*cr-vi,0],[-cr*ps,0,-cr,-Qr*ps,-cr,-Qr],[0,2*Qr-Ri],[0,-Qr*ps,cr*ps,-Qr,cr,-Qr]],pe+cr,wn,[1,1],yo,!0),this},ze.__private__.ellipse=ze.ellipse=function(pe,wn,vi,Ri,cr){if(isNaN(pe)||isNaN(wn)||isNaN(vi)||isNaN(Ri)||!mh(cr))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Qr=4/3*(Math.SQRT2-1)*vi,yo=4/3*(Math.SQRT2-1)*Ri;return nu(pe+vi,wn),Mc(pe+vi,wn-yo,pe+Qr,wn-Ri,pe,wn-Ri),Mc(pe-Qr,wn-Ri,pe-vi,wn-yo,pe-vi,wn),Mc(pe-vi,wn+yo,pe-Qr,wn+Ri,pe,wn+Ri),Mc(pe+Qr,wn+Ri,pe+vi,wn+yo,pe+vi,wn),th(cr),this},ze.__private__.circle=ze.circle=function(pe,wn,vi,Ri){if(isNaN(pe)||isNaN(wn)||isNaN(vi)||!mh(Ri))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(pe,wn,vi,vi,Ri)},ze.setFont=function(pe,wn,vi){return vi&&(wn=io(wn,vi)),hs=ad(pe,wn,{disableWarning:!1}),this};var du=ze.__private__.getFont=ze.getFont=function(){return ko[ad.apply(ze,arguments)]};ze.__private__.getFontList=ze.getFontList=function(){var pe,wn,vi={};for(pe in Fs)if(Fs.hasOwnProperty(pe))for(wn in vi[pe]=[],Fs[pe])Fs[pe].hasOwnProperty(wn)&&vi[pe].push(wn);return vi},ze.addFont=function(pe,wn,vi,Ri,cr){var Qr=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Qr.indexOf(arguments[3])!==-1?cr=arguments[3]:arguments[3]&&Qr.indexOf(arguments[3])==-1&&(vi=io(vi,Ri)),cr=cr||"Identity-H",hu.call(this,pe,wn,vi,cr)};var xa,hl=Pt.lineWidth||.200025,Bu=ze.__private__.getLineWidth=ze.getLineWidth=function(){return hl},vh=ze.__private__.setLineWidth=ze.setLineWidth=function(pe){return hl=pe,Qn(vr(Xn(pe))+" w"),this};ze.__private__.setLineDash=zo.API.setLineDash=zo.API.setLineDashPattern=function(pe,wn){if(pe=pe||[],wn=wn||0,isNaN(wn)||!Array.isArray(pe))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return pe=pe.map(function(vi){return vr(Xn(vi))}).join(" "),wn=vr(Xn(wn)),Qn("["+pe+"] "+wn+" d"),this};var yh=ze.__private__.getLineHeight=ze.getLineHeight=function(){return wr*xa};ze.__private__.getLineHeight=ze.getLineHeight=function(){return wr*xa};var zd=ze.__private__.setLineHeightFactor=ze.setLineHeightFactor=function(pe){return typeof(pe=pe||1.15)=="number"&&(xa=pe),this},Nc=ze.__private__.getLineHeightFactor=ze.getLineHeightFactor=function(){return xa};zd(Pt.lineHeight);var Uh=ze.__private__.getHorizontalCoordinate=function(pe){return Xn(pe)},Vu=ze.__private__.getVerticalCoordinate=function(pe){return Hi===gi.ADVANCED?pe:qo[hn].mediaBox.topRightY-qo[hn].mediaBox.bottomLeftY-Xn(pe)},Ic=ze.__private__.getHorizontalCoordinateString=ze.getHorizontalCoordinateString=function(pe){return vr(Uh(pe))},Jc=ze.__private__.getVerticalCoordinateString=ze.getVerticalCoordinateString=function(pe){return vr(Vu(pe))},ic=Pt.strokeColor||"0 G";ze.__private__.getStrokeColor=ze.getDrawColor=function(){return Xa(ic)},ze.__private__.setStrokeColor=ze.setDrawColor=function(pe,wn,vi,Ri){return ic=ul({ch1:pe,ch2:wn,ch3:vi,ch4:Ri,pdfColorType:"draw",precision:2}),Qn(ic),this};var Kd=Pt.fillColor||"0 g";ze.__private__.getFillColor=ze.getFillColor=function(){return Xa(Kd)},ze.__private__.setFillColor=ze.setFillColor=function(pe,wn,vi,Ri){return Kd=ul({ch1:pe,ch2:wn,ch3:vi,ch4:Ri,pdfColorType:"fill",precision:2}),Qn(Kd),this};var gc=Pt.textColor||"0 g",FA=ze.__private__.getTextColor=ze.getTextColor=function(){return Xa(gc)};ze.__private__.setTextColor=ze.setTextColor=function(pe,wn,vi,Ri){return gc=ul({ch1:pe,ch2:wn,ch3:vi,ch4:Ri,pdfColorType:"text",precision:3}),this};var uA=Pt.charSpace,lf=ze.__private__.getCharSpace=ze.getCharSpace=function(){return parseFloat(uA||0)};ze.__private__.setCharSpace=ze.setCharSpace=function(pe){if(isNaN(pe))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return uA=pe,this};var rc=0;ze.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},ze.__private__.setLineCap=ze.setLineCap=function(pe){var wn=ze.CapJoinStyles[pe];if(wn===void 0)throw new Error("Line cap style of '"+pe+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return rc=wn,Qn(wn+" J"),this};var QA=0;ze.__private__.setLineJoin=ze.setLineJoin=function(pe){var wn=ze.CapJoinStyles[pe];if(wn===void 0)throw new Error("Line join style of '"+pe+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return QA=wn,Qn(wn+" j"),this},ze.__private__.setLineMiterLimit=ze.__private__.setMiterLimit=ze.setLineMiterLimit=ze.setMiterLimit=function(pe){if(pe=pe||0,isNaN(pe))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Qn(vr(Xn(pe))+" M"),this},ze.GState=Eo,ze.setGState=function(pe){(pe=typeof pe=="string"?Po[as[pe]]:Gd(null,pe)).equals(ds)||(Qn("/"+pe.id+" gs"),ds=pe)};var Gd=function(pe,wn){if(!pe||!as[pe]){var vi=!1;for(var Ri in Po)if(Po.hasOwnProperty(Ri)&&Po[Ri].equals(wn)){vi=!0;break}if(vi)wn=Po[Ri];else{var cr="GS"+(Object.keys(Po).length+1).toString(10);Po[cr]=wn,wn.id=cr}return pe&&(as[pe]=wn.id),bo.publish("addGState",wn),wn}};ze.addGState=function(pe,wn){return Gd(pe,wn),this},ze.saveGraphicsState=function(){return Qn("q"),$a.push({key:hs,size:wr,color:gc}),this},ze.restoreGraphicsState=function(){Qn("Q");var pe=$a.pop();return hs=pe.key,wr=pe.size,gc=pe.color,ds=null,this},ze.setCurrentTransformationMatrix=function(pe){return Qn(pe.toString()+" cm"),this},ze.comment=function(pe){return Qn("#"+pe),this};var pc=function(pe,wn){var vi=pe||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return vi},set:function(Qr){isNaN(Qr)||(vi=parseFloat(Qr))}});var Ri=wn||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Ri},set:function(Qr){isNaN(Qr)||(Ri=parseFloat(Qr))}});var cr="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return cr},set:function(Qr){cr=Qr.toString()}}),this},hd=function(pe,wn,vi,Ri){pc.call(this,pe,wn),this.type="rect";var cr=vi||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return cr},set:function(yo){isNaN(yo)||(cr=parseFloat(yo))}});var Qr=Ri||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Qr},set:function(yo){isNaN(yo)||(Qr=parseFloat(yo))}}),this},hA=function(){this.page=Oo,this.currentPage=hn,this.pages=Xi.slice(0),this.pagesContext=qo.slice(0),this.x=Pa,this.y=Os,this.matrix=Ps,this.width=Wd(hn),this.height=kc(hn),this.outputDestination=gr,this.id="",this.objectNumber=-1};hA.prototype.restore=function(){Oo=this.page,hn=this.currentPage,qo=this.pagesContext,Xi=this.pages,Pa=this.x,Os=this.y,Ps=this.matrix,LA(hn,this.width),KA(hn,this.height),gr=this.outputDestination};var Rh=function(pe,wn,vi,Ri,cr){Yl.push(new hA),Oo=hn=0,Xi=[],Pa=pe,Os=wn,Ps=cr,nc([vi,Ri])},zA=function(pe){if(ea[pe])Yl.pop().restore();else{var wn=new hA,vi="Xo"+(Object.keys(_s).length+1).toString(10);wn.id=vi,ea[pe]=vi,_s[vi]=wn,bo.publish("addFormObject",wn),Yl.pop().restore()}};for(var Fd in ze.beginFormObject=function(pe,wn,vi,Ri,cr){return Rh(pe,wn,vi,Ri,cr),this},ze.endFormObject=function(pe){return zA(pe),this},ze.doFormObject=function(pe,wn){var vi=_s[ea[pe]];return Qn("q"),Qn(wn.toString()+" cm"),Qn("/"+vi.id+" Do"),Qn("Q"),this},ze.getFormObject=function(pe){var wn=_s[ea[pe]];return{x:wn.x,y:wn.y,width:wn.width,height:wn.height,matrix:wn.matrix}},ze.save=function(pe,wn){return pe=pe||"generated.pdf",(wn=wn||{}).returnPromise=wn.returnPromise||!1,wn.returnPromise===!1?(Gs(_d(Lc()),pe),typeof Gs.unload=="function"&&_r.setTimeout&&setTimeout(Gs.unload,911),this):new Promise(function(vi,Ri){try{var cr=Gs(_d(Lc()),pe);typeof Gs.unload=="function"&&_r.setTimeout&&setTimeout(Gs.unload,911),vi(cr)}catch(Qr){Ri(Qr.message)}})},zo.API)zo.API.hasOwnProperty(Fd)&&(Fd==="events"&&zo.API.events.length?function(pe,wn){var vi,Ri,cr;for(cr=wn.length-1;cr!==-1;cr--)vi=wn[cr][0],Ri=wn[cr][1],pe.subscribe.apply(pe,[vi].concat(typeof Ri=="function"?[Ri]:Ri))}(bo,zo.API.events):ze[Fd]=zo.API[Fd]);var Wd=ze.getPageWidth=function(pe){return(qo[pe=pe||hn].mediaBox.topRightX-qo[pe].mediaBox.bottomLeftX)/co},LA=ze.setPageWidth=function(pe,wn){qo[pe].mediaBox.topRightX=wn*co+qo[pe].mediaBox.bottomLeftX},kc=ze.getPageHeight=function(pe){return(qo[pe=pe||hn].mediaBox.topRightY-qo[pe].mediaBox.bottomLeftY)/co},KA=ze.setPageHeight=function(pe,wn){qo[pe].mediaBox.topRightY=wn*co+qo[pe].mediaBox.bottomLeftY};return ze.internal={pdfEscape:_n,getStyle:qu,getFont:du,getFontSize:ir,getCharSpace:lf,getTextColor:FA,getLineHeight:yh,getLineHeightFactor:Nc,getLineWidth:Bu,write:so,getHorizontalCoordinate:Uh,getVerticalCoordinate:Vu,getCoordinateString:Ic,getVerticalCoordinateString:Jc,collections:{},newObject:po,newAdditionalObject:wa,newObjectDeferred:Ra,newObjectDeferredBegin:Nu,getFilters:Qs,putStream:Ia,events:bo,scaleFactor:co,pageSize:{getWidth:function(){return Wd(hn)},setWidth:function(pe){LA(hn,pe)},getHeight:function(){return kc(hn)},setHeight:function(pe){KA(hn,pe)}},encryptionOptions:mn,encryption:Ul,getEncryptor:Bd,output:Cd,getNumberOfPages:Fc,pages:Xi,out:Qn,f2:Vr,f3:zn,getPageInfo:lA,getPageInfoByObjId:Ys,getCurrentPageInfo:Xc,getPDFVersion:$n,Point:pc,Rectangle:hd,Matrix:As,hasHotfix:ah},Object.defineProperty(ze.internal.pageSize,"width",{get:function(){return Wd(hn)},set:function(pe){LA(hn,pe)},enumerable:!0,configurable:!0}),Object.defineProperty(ze.internal.pageSize,"height",{get:function(){return kc(hn)},set:function(pe){KA(hn,pe)},enumerable:!0,configurable:!0}),Ru.call(ze,rr),hs="F1",jh(le,Et),bo.publish("initialized"),ze}lo.prototype.lsbFirstWord=function(Pt){return String.fromCharCode(Pt>>0&255,Pt>>8&255,Pt>>16&255,Pt>>24&255)},lo.prototype.toHexString=function(Pt){return Pt.split("").map(function(mt){return("0"+(255&mt.charCodeAt(0)).toString(16)).slice(-2)}).join("")},lo.prototype.hexToBytes=function(Pt){for(var mt=[],Et=0;Et<Pt.length;Et+=2)mt.push(String.fromCharCode(parseInt(Pt.substr(Et,2),16)));return mt.join("")},lo.prototype.processOwnerPassword=function(Pt,mt){return os($r(mt).substr(0,5),Pt)},lo.prototype.encryptor=function(Pt,mt){var Et=$r(this.encryptionKey+String.fromCharCode(255&Pt,Pt>>8&255,Pt>>16&255,255&mt,mt>>8&255)).substr(0,10);return function(jt){return os(Et,jt)}},Eo.prototype.equals=function(Pt){var mt,Et="id,objectNumber,equals";if(!Pt||(0,bt.Z)(Pt)!==(0,bt.Z)(this))return!1;var jt=0;for(mt in this)if(!(Et.indexOf(mt)>=0)){if(this.hasOwnProperty(mt)&&!Pt.hasOwnProperty(mt)||this[mt]!==Pt[mt])return!1;jt++}for(mt in Pt)Pt.hasOwnProperty(mt)&&Et.indexOf(mt)<0&&jt--;return jt===0},zo.API={events:[]},zo.version="3.0.1";var Vs=zo.API,Ka=1,Wl=function(Pt){return Pt.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},La=function(Pt){return Pt.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},vs=function(Pt){return Pt.toFixed(2)},ai=function(Pt){return Pt.toFixed(5)};Vs.__acroform__={};var Ta=function(Pt,mt){Pt.prototype=Object.create(mt.prototype),Pt.prototype.constructor=Pt},bc=function(Pt){return Pt*Ka},Vl=function(Pt){var mt=new Ma,Et=Io.internal.getHeight(Pt)||0,jt=Io.internal.getWidth(Pt)||0;return mt.BBox=[0,0,Number(vs(jt)),Number(vs(Et))],mt},Th=Vs.__acroform__.setBit=function(Pt,mt){if(Pt=Pt||0,mt=mt||0,isNaN(Pt)||isNaN(mt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return Pt|=1<<mt},sl=Vs.__acroform__.clearBit=function(Pt,mt){if(Pt=Pt||0,mt=mt||0,isNaN(Pt)||isNaN(mt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return Pt&=~(1<<mt)},Wc=Vs.__acroform__.getBit=function(Pt,mt){if(isNaN(Pt)||isNaN(mt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return Pt&1<<mt?1:0},Fl=Vs.__acroform__.getBitForPdf=function(Pt,mt){if(isNaN(Pt)||isNaN(mt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Wc(Pt,mt-1)},Is=Vs.__acroform__.setBitForPdf=function(Pt,mt){if(isNaN(Pt)||isNaN(mt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Th(Pt,mt-1)},ia=Vs.__acroform__.clearBitForPdf=function(Pt,mt){if(isNaN(Pt)||isNaN(mt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return sl(Pt,mt-1)},Ph=Vs.__acroform__.calculateCoordinates=function(Pt,mt){var Et=mt.internal.getHorizontalCoordinate,jt=mt.internal.getVerticalCoordinate,le=Pt[0],Zt=Pt[1],ye=Pt[2],Se=Pt[3],Ie={};return Ie.lowerLeft_X=Et(le)||0,Ie.lowerLeft_Y=jt(Zt+Se)||0,Ie.upperRight_X=Et(le+ye)||0,Ie.upperRight_Y=jt(Zt)||0,[Number(vs(Ie.lowerLeft_X)),Number(vs(Ie.lowerLeft_Y)),Number(vs(Ie.upperRight_X)),Number(vs(Ie.upperRight_Y))]},is=function(Pt){if(Pt.appearanceStreamContent)return Pt.appearanceStreamContent;if(Pt.V||Pt.DV){var mt=[],Et=Pt._V||Pt.DV,jt=Zs(Pt,Et),le=Pt.scope.internal.getFont(Pt.fontName,Pt.fontStyle).id;mt.push("/Tx BMC"),mt.push("q"),mt.push("BT"),mt.push(Pt.scope.__private__.encodeColorString(Pt.color)),mt.push("/"+le+" "+vs(jt.fontSize)+" Tf"),mt.push("1 0 0 1 0 0 Tm"),mt.push(jt.text),mt.push("ET"),mt.push("Q"),mt.push("EMC");var Zt=Vl(Pt);return Zt.scope=Pt.scope,Zt.stream=mt.join(`
|
|
|
`),Zt}},Zs=function(Pt,mt){var Et=Pt.fontSize===0?Pt.maxFontSize:Pt.fontSize,jt={text:"",fontSize:""},le=(mt=(mt=mt.substr(0,1)=="("?mt.substr(1):mt).substr(mt.length-1)==")"?mt.substr(0,mt.length-1):mt).split(" ");le=Pt.multiline?le.map(function(zn){return zn.split(`
|
|
|
`)}):le.map(function(zn){return[zn]});var Zt=Et,ye=Io.internal.getHeight(Pt)||0;ye=ye<0?-ye:ye;var Se=Io.internal.getWidth(Pt)||0;Se=Se<0?-Se:Se;var Ie=function(zn,Xn,Yi){if(zn+1<le.length){var ve=Xn+" "+le[zn+1][0];return ys(ve,Pt,Yi).width<=Se-4}return!1};Zt++;t:for(;Zt>0;){mt="",Zt--;var tn,mn,pn=ys("3",Pt,Zt).height,Tn=Pt.multiline?ye-Zt:(ye-pn)/2,ze=Tn+=2,di=0,$n=0,pi=0;if(Zt<=0){mt=`(...) Tj
|
|
|
`,mt+="% Width of Text: "+ys(mt,Pt,Zt=12).width+", FieldWidth:"+Se+`
|
|
|
`;break}for(var Hn="",gi=0,Hi=0;Hi<le.length;Hi++)if(le.hasOwnProperty(Hi)){var ur=!1;if(le[Hi].length!==1&&pi!==le[Hi].length-1){if((pn+2)*(gi+2)+2>ye)continue t;Hn+=le[Hi][pi],ur=!0,$n=Hi,Hi--}else{Hn=(Hn+=le[Hi][pi]+" ").substr(Hn.length-1)==" "?Hn.substr(0,Hn.length-1):Hn;var Ir=parseInt(Hi),io=Ie(Ir,Hn,Zt),vr=Hi>=le.length-1;if(io&&!vr){Hn+=" ",pi=0;continue}if(io||vr){if(vr)$n=Ir;else if(Pt.multiline&&(pn+2)*(gi+2)+2>ye)continue t}else{if(!Pt.multiline||(pn+2)*(gi+2)+2>ye)continue t;$n=Ir}}for(var Ti="",Br=di;Br<=$n;Br++){var Vr=le[Br];if(Pt.multiline){if(Br===$n){Ti+=Vr[pi]+" ",pi=(pi+1)%Vr.length;continue}if(Br===di){Ti+=Vr[Vr.length-1]+" ";continue}}Ti+=Vr[0]+" "}switch(Ti=Ti.substr(Ti.length-1)==" "?Ti.substr(0,Ti.length-1):Ti,mn=ys(Ti,Pt,Zt).width,Pt.textAlign){case"right":tn=Se-mn-2;break;case"center":tn=(Se-mn)/2;break;case"left":default:tn=2}mt+=vs(tn)+" "+vs(ze)+` Td
|
|
|
`,mt+="("+Wl(Ti)+`) Tj
|
|
|
`,mt+=-vs(tn)+` 0 Td
|
|
|
`,ze=-(Zt+2),mn=0,di=ur?$n:$n+1,gi++,Hn=""}break}return jt.text=mt,jt.fontSize=Zt,jt},ys=function(Pt,mt,Et){var jt=mt.scope.internal.getFont(mt.fontName,mt.fontStyle),le=mt.scope.getStringUnitWidth(Pt,{font:jt,fontSize:parseFloat(Et),charSpace:0})*parseFloat(Et);return{height:mt.scope.getStringUnitWidth("3",{font:jt,fontSize:parseFloat(Et),charSpace:0})*parseFloat(Et)*1.5,width:le}},Hr={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Tl=function(Pt,mt){var Et={type:"reference",object:Pt};mt.internal.getPageInfo(Pt.page).pageContext.annotations.find(function(jt){return jt.type===Et.type&&jt.object===Et.object})===void 0&&mt.internal.getPageInfo(Pt.page).pageContext.annotations.push(Et)},Ol=function(Pt,mt){for(var Et in Pt)if(Pt.hasOwnProperty(Et)){var jt=Et,le=Pt[Et];mt.internal.newObjectDeferredBegin(le.objId,!0),(0,bt.Z)(le)==="object"&&typeof le.putStream=="function"&&le.putStream(),delete Pt[jt]}},Ao=function(Pt,mt){if(mt.scope=Pt,Pt.internal!==void 0&&(Pt.internal.acroformPlugin===void 0||Pt.internal.acroformPlugin.isInitialized===!1)){if(Bl.FieldNum=0,Pt.internal.acroformPlugin=JSON.parse(JSON.stringify(Hr)),Pt.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Ka=Pt.internal.scaleFactor,Pt.internal.acroformPlugin.acroFormDictionaryRoot=new Oa,Pt.internal.acroformPlugin.acroFormDictionaryRoot.scope=Pt,Pt.internal.acroformPlugin.acroFormDictionaryRoot._eventID=Pt.internal.events.subscribe("postPutResources",function(){(function(Et){Et.internal.events.unsubscribe(Et.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete Et.internal.acroformPlugin.acroFormDictionaryRoot._eventID,Et.internal.acroformPlugin.printedOut=!0})(Pt)}),Pt.internal.events.subscribe("buildDocument",function(){(function(Et){Et.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var jt=Et.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var le in jt)if(jt.hasOwnProperty(le)){var Zt=jt[le];Zt.objId=void 0,Zt.hasAnnotation&&Tl(Zt,Et)}})(Pt)}),Pt.internal.events.subscribe("putCatalog",function(){(function(Et){if(Et.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");Et.internal.write("/AcroForm "+Et.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(Pt)}),Pt.internal.events.subscribe("postPutPages",function(Et){(function(jt,le){var Zt=!jt;for(var ye in jt||(le.internal.newObjectDeferredBegin(le.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),le.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),jt=jt||le.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(jt.hasOwnProperty(ye)){var Se=jt[ye],Ie=[],tn=Se.Rect;if(Se.Rect&&(Se.Rect=Ph(Se.Rect,le)),le.internal.newObjectDeferredBegin(Se.objId,!0),Se.DA=Io.createDefaultAppearanceStream(Se),(0,bt.Z)(Se)==="object"&&typeof Se.getKeyValueListForStream=="function"&&(Ie=Se.getKeyValueListForStream()),Se.Rect=tn,Se.hasAppearanceStream&&!Se.appearanceStreamContent){var mn=is(Se);Ie.push({key:"AP",value:"<</N "+mn+">>"}),le.internal.acroformPlugin.xForms.push(mn)}if(Se.appearanceStreamContent){var pn="";for(var Tn in Se.appearanceStreamContent)if(Se.appearanceStreamContent.hasOwnProperty(Tn)){var ze=Se.appearanceStreamContent[Tn];if(pn+="/"+Tn+" ",pn+="<<",Object.keys(ze).length>=1||Array.isArray(ze)){for(var ye in ze)if(ze.hasOwnProperty(ye)){var di=ze[ye];typeof di=="function"&&(di=di.call(le,Se)),pn+="/"+ye+" "+di+" ",le.internal.acroformPlugin.xForms.indexOf(di)>=0||le.internal.acroformPlugin.xForms.push(di)}}else typeof(di=ze)=="function"&&(di=di.call(le,Se)),pn+="/"+ye+" "+di,le.internal.acroformPlugin.xForms.indexOf(di)>=0||le.internal.acroformPlugin.xForms.push(di);pn+=">>"}Ie.push({key:"AP",value:`<<
|
|
|
`+pn+">>"})}le.internal.putStream({additionalKeyValues:Ie,objectId:Se.objId}),le.internal.out("endobj")}Zt&&Ol(le.internal.acroformPlugin.xForms,le)})(Et,Pt)}),Pt.internal.acroformPlugin.isInitialized=!0}},Ns=Vs.__acroform__.arrayToPdfArray=function(Pt,mt,Et){var jt=function(ye){return ye};if(Array.isArray(Pt)){for(var le="[",Zt=0;Zt<Pt.length;Zt++)switch(Zt!==0&&(le+=" "),(0,bt.Z)(Pt[Zt])){case"boolean":case"number":case"object":le+=Pt[Zt].toString();break;case"string":Pt[Zt].substr(0,1)!=="/"?(mt!==void 0&&Et&&(jt=Et.internal.getEncryptor(mt)),le+="("+Wl(jt(Pt[Zt].toString()))+")"):le+=Pt[Zt].toString()}return le+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},da=function(Pt,mt,Et){var jt=function(le){return le};return mt!==void 0&&Et&&(jt=Et.internal.getEncryptor(mt)),(Pt=Pt||"").toString(),Pt="("+Wl(jt(Pt))+")"},xr=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(Pt){this._objId=Pt}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};xr.prototype.toString=function(){return this.objId+" 0 R"},xr.prototype.putStream=function(){var Pt=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:Pt,objectId:this.objId}),this.scope.internal.out("endobj")},xr.prototype.getKeyValueListForStream=function(){var Pt=[],mt=Object.getOwnPropertyNames(this).filter(function(Zt){return Zt!="content"&&Zt!="appearanceStreamContent"&&Zt!="scope"&&Zt!="objId"&&Zt.substring(0,1)!="_"});for(var Et in mt)if(Object.getOwnPropertyDescriptor(this,mt[Et]).configurable===!1){var jt=mt[Et],le=this[jt];le&&(Array.isArray(le)?Pt.push({key:jt,value:Ns(le,this.objId,this.scope)}):le instanceof xr?(le.scope=this.scope,Pt.push({key:jt,value:le.objId+" 0 R"})):typeof le!="function"&&Pt.push({key:jt,value:le}))}return Pt};var Ma=function(){xr.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var Pt,mt=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return mt},set:function(Et){mt=Et}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(Et){Pt=Et.trim()},get:function(){return Pt||null}})};Ta(Ma,xr);var Oa=function(){xr.call(this);var Pt,mt=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return mt.length>0?mt:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return mt}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(Pt){var Et=function(jt){return jt};return this.scope&&(Et=this.scope.internal.getEncryptor(this.objId)),"("+Wl(Et(Pt))+")"}},set:function(Et){Pt=Et}})};Ta(Oa,xr);var Bl=function Pt(){xr.call(this);var mt=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return mt},set:function(Hn){if(isNaN(Hn))throw new Error('Invalid value "'+Hn+'" for attribute F supplied.');mt=Hn}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Fl(mt,3)},set:function(Hn){Hn?this.F=Is(mt,3):this.F=ia(mt,3)}});var Et=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return Et},set:function(Hn){if(isNaN(Hn))throw new Error('Invalid value "'+Hn+'" for attribute Ff supplied.');Et=Hn}});var jt=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(jt.length!==0)return jt},set:function(Hn){jt=Hn!==void 0?Hn:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!jt||isNaN(jt[0])?0:jt[0]},set:function(Hn){jt[0]=Hn}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!jt||isNaN(jt[1])?0:jt[1]},set:function(Hn){jt[1]=Hn}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!jt||isNaN(jt[2])?0:jt[2]},set:function(Hn){jt[2]=Hn}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!jt||isNaN(jt[3])?0:jt[3]},set:function(Hn){jt[3]=Hn}});var le="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return le},set:function(Hn){switch(Hn){case"/Btn":case"/Tx":case"/Ch":case"/Sig":le=Hn;break;default:throw new Error('Invalid value "'+Hn+'" for attribute FT supplied.')}}});var Zt=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!Zt||Zt.length<1){if(this instanceof Ml)return;Zt="FieldObject"+Pt.FieldNum++}var Hn=function(gi){return gi};return this.scope&&(Hn=this.scope.internal.getEncryptor(this.objId)),"("+Wl(Hn(Zt))+")"},set:function(Hn){Zt=Hn.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return Zt},set:function(Hn){Zt=Hn}});var ye="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return ye},set:function(Hn){ye=Hn}});var Se="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return Se},set:function(Hn){Se=Hn}});var Ie=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return Ie},set:function(Hn){Ie=Hn}});var tn=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return tn===void 0?50/Ka:tn},set:function(Hn){tn=Hn}});var mn="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return mn},set:function(Hn){mn=Hn}});var pn="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!pn||this instanceof Ml||this instanceof tu))return da(pn,this.objId,this.scope)},set:function(Hn){Hn=Hn.toString(),pn=Hn}});var Tn=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(Tn)return this instanceof Cs?Tn:da(Tn,this.objId,this.scope)},set:function(Hn){Hn=Hn.toString(),Tn=this instanceof Cs?Hn:Hn.substr(0,1)==="("?La(Hn.substr(1,Hn.length-2)):La(Hn)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Cs?La(Tn.substr(1,Tn.length-1)):Tn},set:function(Hn){Hn=Hn.toString(),Tn=this instanceof Cs?"/"+Hn:Hn}});var ze=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(ze)return ze},set:function(Hn){this.V=Hn}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(ze)return this instanceof Cs?ze:da(ze,this.objId,this.scope)},set:function(Hn){Hn=Hn.toString(),ze=this instanceof Cs?Hn:Hn.substr(0,1)==="("?La(Hn.substr(1,Hn.length-2)):La(Hn)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Cs?La(ze.substr(1,ze.length-1)):ze},set:function(Hn){Hn=Hn.toString(),ze=this instanceof Cs?"/"+Hn:Hn}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var di,$n=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return $n},set:function(Hn){Hn=!!Hn,$n=Hn}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(di)return di},set:function(Hn){di=Hn}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,1)},set:function(Hn){Hn?this.Ff=Is(this.Ff,1):this.Ff=ia(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,2)},set:function(Hn){Hn?this.Ff=Is(this.Ff,2):this.Ff=ia(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,3)},set:function(Hn){Hn?this.Ff=Is(this.Ff,3):this.Ff=ia(this.Ff,3)}});var pi=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(pi!==null)return pi},set:function(Hn){if([0,1,2].indexOf(Hn)===-1)throw new Error('Invalid value "'+Hn+'" for attribute Q supplied.');pi=Hn}}),Object.defineProperty(this,"textAlign",{get:function(){var Hn;switch(pi){case 0:default:Hn="left";break;case 1:Hn="center";break;case 2:Hn="right"}return Hn},configurable:!0,enumerable:!0,set:function(Hn){switch(Hn){case"right":case 2:pi=2;break;case"center":case 1:pi=1;break;case"left":case 0:default:pi=0}}})};Ta(Bl,xr);var su=function(){Bl.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var Pt=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return Pt},set:function(Et){Pt=Et}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return Pt},set:function(Et){Pt=Et}});var mt=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Ns(mt,this.objId,this.scope)},set:function(Et){var jt,le;le=[],typeof(jt=Et)=="string"&&(le=function(Zt,ye,Se){Se||(Se=1);for(var Ie,tn=[];Ie=ye.exec(Zt);)tn.push(Ie[Se]);return tn}(jt,/\((.*?)\)/g)),mt=le}}),this.getOptions=function(){return mt},this.setOptions=function(Et){mt=Et,this.sort&&mt.sort()},this.addOption=function(Et){Et=(Et=Et||"").toString(),mt.push(Et),this.sort&&mt.sort()},this.removeOption=function(Et,jt){for(jt=jt||!1,Et=(Et=Et||"").toString();mt.indexOf(Et)!==-1&&(mt.splice(mt.indexOf(Et),1),jt!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,18)},set:function(Et){Et?this.Ff=Is(this.Ff,18):this.Ff=ia(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,19)},set:function(Et){this.combo===!0&&(Et?this.Ff=Is(this.Ff,19):this.Ff=ia(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,20)},set:function(Et){Et?(this.Ff=Is(this.Ff,20),mt.sort()):this.Ff=ia(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,22)},set:function(Et){Et?this.Ff=Is(this.Ff,22):this.Ff=ia(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,23)},set:function(Et){Et?this.Ff=Is(this.Ff,23):this.Ff=ia(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,27)},set:function(Et){Et?this.Ff=Is(this.Ff,27):this.Ff=ia(this.Ff,27)}}),this.hasAppearanceStream=!1};Ta(su,Bl);var au=function(){su.call(this),this.fontName="helvetica",this.combo=!1};Ta(au,su);var Yo=function(){au.call(this),this.combo=!0};Ta(Yo,au);var va=function(){Yo.call(this),this.edit=!0};Ta(va,Yo);var Cs=function(){Bl.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,15)},set:function(Et){Et?this.Ff=Is(this.Ff,15):this.Ff=ia(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,16)},set:function(Et){Et?this.Ff=Is(this.Ff,16):this.Ff=ia(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,17)},set:function(Et){Et?this.Ff=Is(this.Ff,17):this.Ff=ia(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,26)},set:function(Et){Et?this.Ff=Is(this.Ff,26):this.Ff=ia(this.Ff,26)}});var Pt,mt={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var Et=function(Zt){return Zt};if(this.scope&&(Et=this.scope.internal.getEncryptor(this.objId)),Object.keys(mt).length!==0){var jt,le=[];for(jt in le.push("<<"),mt)le.push("/"+jt+" ("+Wl(Et(mt[jt]))+")");return le.push(">>"),le.join(`
|
|
|
`)}},set:function(Et){(0,bt.Z)(Et)==="object"&&(mt=Et)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return mt.CA||""},set:function(Et){typeof Et=="string"&&(mt.CA=Et)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Pt},set:function(Et){Pt=Et}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Pt.substr(1,Pt.length-1)},set:function(Et){Pt="/"+Et}})};Ta(Cs,Bl);var lu=function(){Cs.call(this),this.pushButton=!0};Ta(lu,Cs);var Ll=function(){Cs.call(this),this.radio=!0,this.pushButton=!1;var Pt=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return Pt},set:function(mt){Pt=mt!==void 0?mt:[]}})};Ta(Ll,Cs);var Ml=function(){var Pt,mt;Bl.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return Pt},set:function(le){Pt=le}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return mt},set:function(le){mt=le}});var Et,jt={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var le=function(Se){return Se};this.scope&&(le=this.scope.internal.getEncryptor(this.objId));var Zt,ye=[];for(Zt in ye.push("<<"),jt)ye.push("/"+Zt+" ("+Wl(le(jt[Zt]))+")");return ye.push(">>"),ye.join(`
|
|
|
`)},set:function(le){(0,bt.Z)(le)==="object"&&(jt=le)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return jt.CA||""},set:function(le){typeof le=="string"&&(jt.CA=le)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Et},set:function(le){Et=le}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Et.substr(1,Et.length-1)},set:function(le){Et="/"+le}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Io.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Ta(Ml,Bl),Ll.prototype.setAppearance=function(Pt){if(!("createAppearanceStream"in Pt)||!("getCA"in Pt))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var mt in this.Kids)if(this.Kids.hasOwnProperty(mt)){var Et=this.Kids[mt];Et.appearanceStreamContent=Pt.createAppearanceStream(Et.optionName),Et.caption=Pt.getCA()}},Ll.prototype.createOption=function(Pt){var mt=new Ml;return mt.Parent=this,mt.optionName=Pt,this.Kids.push(mt),dc.call(this.scope,mt),mt};var tl=function(){Cs.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Io.CheckBox.createAppearanceStream()};Ta(tl,Cs);var tu=function(){Bl.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,13)},set:function(mt){mt?this.Ff=Is(this.Ff,13):this.Ff=ia(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,21)},set:function(mt){mt?this.Ff=Is(this.Ff,21):this.Ff=ia(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,23)},set:function(mt){mt?this.Ff=Is(this.Ff,23):this.Ff=ia(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,24)},set:function(mt){mt?this.Ff=Is(this.Ff,24):this.Ff=ia(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,25)},set:function(mt){mt?this.Ff=Is(this.Ff,25):this.Ff=ia(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,26)},set:function(mt){mt?this.Ff=Is(this.Ff,26):this.Ff=ia(this.Ff,26)}});var Pt=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return Pt},set:function(mt){Pt=mt}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return Pt},set:function(mt){Number.isInteger(mt)&&(Pt=mt)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Ta(tu,Bl);var Pl=function(){tu.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,14)},set:function(Pt){Pt?this.Ff=Is(this.Ff,14):this.Ff=ia(this.Ff,14)}}),this.password=!0};Ta(Pl,tu);var Io={CheckBox:{createAppearanceStream:function(){return{N:{On:Io.CheckBox.YesNormal},D:{On:Io.CheckBox.YesPushDown,Off:Io.CheckBox.OffPushDown}}},YesPushDown:function(Pt){var mt=Vl(Pt);mt.scope=Pt.scope;var Et=[],jt=Pt.scope.internal.getFont(Pt.fontName,Pt.fontStyle).id,le=Pt.scope.__private__.encodeColorString(Pt.color),Zt=Zs(Pt,Pt.caption);return Et.push("0.749023 g"),Et.push("0 0 "+vs(Io.internal.getWidth(Pt))+" "+vs(Io.internal.getHeight(Pt))+" re"),Et.push("f"),Et.push("BMC"),Et.push("q"),Et.push("0 0 1 rg"),Et.push("/"+jt+" "+vs(Zt.fontSize)+" Tf "+le),Et.push("BT"),Et.push(Zt.text),Et.push("ET"),Et.push("Q"),Et.push("EMC"),mt.stream=Et.join(`
|
|
|
`),mt},YesNormal:function(Pt){var mt=Vl(Pt);mt.scope=Pt.scope;var Et=Pt.scope.internal.getFont(Pt.fontName,Pt.fontStyle).id,jt=Pt.scope.__private__.encodeColorString(Pt.color),le=[],Zt=Io.internal.getHeight(Pt),ye=Io.internal.getWidth(Pt),Se=Zs(Pt,Pt.caption);return le.push("1 g"),le.push("0 0 "+vs(ye)+" "+vs(Zt)+" re"),le.push("f"),le.push("q"),le.push("0 0 1 rg"),le.push("0 0 "+vs(ye-1)+" "+vs(Zt-1)+" re"),le.push("W"),le.push("n"),le.push("0 g"),le.push("BT"),le.push("/"+Et+" "+vs(Se.fontSize)+" Tf "+jt),le.push(Se.text),le.push("ET"),le.push("Q"),mt.stream=le.join(`
|
|
|
`),mt},OffPushDown:function(Pt){var mt=Vl(Pt);mt.scope=Pt.scope;var Et=[];return Et.push("0.749023 g"),Et.push("0 0 "+vs(Io.internal.getWidth(Pt))+" "+vs(Io.internal.getHeight(Pt))+" re"),Et.push("f"),mt.stream=Et.join(`
|
|
|
`),mt}},RadioButton:{Circle:{createAppearanceStream:function(Pt){var mt={D:{Off:Io.RadioButton.Circle.OffPushDown},N:{}};return mt.N[Pt]=Io.RadioButton.Circle.YesNormal,mt.D[Pt]=Io.RadioButton.Circle.YesPushDown,mt},getCA:function(){return"l"},YesNormal:function(Pt){var mt=Vl(Pt);mt.scope=Pt.scope;var Et=[],jt=Io.internal.getWidth(Pt)<=Io.internal.getHeight(Pt)?Io.internal.getWidth(Pt)/4:Io.internal.getHeight(Pt)/4;jt=Number((.9*jt).toFixed(5));var le=Io.internal.Bezier_C,Zt=Number((jt*le).toFixed(5));return Et.push("q"),Et.push("1 0 0 1 "+ai(Io.internal.getWidth(Pt)/2)+" "+ai(Io.internal.getHeight(Pt)/2)+" cm"),Et.push(jt+" 0 m"),Et.push(jt+" "+Zt+" "+Zt+" "+jt+" 0 "+jt+" c"),Et.push("-"+Zt+" "+jt+" -"+jt+" "+Zt+" -"+jt+" 0 c"),Et.push("-"+jt+" -"+Zt+" -"+Zt+" -"+jt+" 0 -"+jt+" c"),Et.push(Zt+" -"+jt+" "+jt+" -"+Zt+" "+jt+" 0 c"),Et.push("f"),Et.push("Q"),mt.stream=Et.join(`
|
|
|
`),mt},YesPushDown:function(Pt){var mt=Vl(Pt);mt.scope=Pt.scope;var Et=[],jt=Io.internal.getWidth(Pt)<=Io.internal.getHeight(Pt)?Io.internal.getWidth(Pt)/4:Io.internal.getHeight(Pt)/4;jt=Number((.9*jt).toFixed(5));var le=Number((2*jt).toFixed(5)),Zt=Number((le*Io.internal.Bezier_C).toFixed(5)),ye=Number((jt*Io.internal.Bezier_C).toFixed(5));return Et.push("0.749023 g"),Et.push("q"),Et.push("1 0 0 1 "+ai(Io.internal.getWidth(Pt)/2)+" "+ai(Io.internal.getHeight(Pt)/2)+" cm"),Et.push(le+" 0 m"),Et.push(le+" "+Zt+" "+Zt+" "+le+" 0 "+le+" c"),Et.push("-"+Zt+" "+le+" -"+le+" "+Zt+" -"+le+" 0 c"),Et.push("-"+le+" -"+Zt+" -"+Zt+" -"+le+" 0 -"+le+" c"),Et.push(Zt+" -"+le+" "+le+" -"+Zt+" "+le+" 0 c"),Et.push("f"),Et.push("Q"),Et.push("0 g"),Et.push("q"),Et.push("1 0 0 1 "+ai(Io.internal.getWidth(Pt)/2)+" "+ai(Io.internal.getHeight(Pt)/2)+" cm"),Et.push(jt+" 0 m"),Et.push(jt+" "+ye+" "+ye+" "+jt+" 0 "+jt+" c"),Et.push("-"+ye+" "+jt+" -"+jt+" "+ye+" -"+jt+" 0 c"),Et.push("-"+jt+" -"+ye+" -"+ye+" -"+jt+" 0 -"+jt+" c"),Et.push(ye+" -"+jt+" "+jt+" -"+ye+" "+jt+" 0 c"),Et.push("f"),Et.push("Q"),mt.stream=Et.join(`
|
|
|
`),mt},OffPushDown:function(Pt){var mt=Vl(Pt);mt.scope=Pt.scope;var Et=[],jt=Io.internal.getWidth(Pt)<=Io.internal.getHeight(Pt)?Io.internal.getWidth(Pt)/4:Io.internal.getHeight(Pt)/4;jt=Number((.9*jt).toFixed(5));var le=Number((2*jt).toFixed(5)),Zt=Number((le*Io.internal.Bezier_C).toFixed(5));return Et.push("0.749023 g"),Et.push("q"),Et.push("1 0 0 1 "+ai(Io.internal.getWidth(Pt)/2)+" "+ai(Io.internal.getHeight(Pt)/2)+" cm"),Et.push(le+" 0 m"),Et.push(le+" "+Zt+" "+Zt+" "+le+" 0 "+le+" c"),Et.push("-"+Zt+" "+le+" -"+le+" "+Zt+" -"+le+" 0 c"),Et.push("-"+le+" -"+Zt+" -"+Zt+" -"+le+" 0 -"+le+" c"),Et.push(Zt+" -"+le+" "+le+" -"+Zt+" "+le+" 0 c"),Et.push("f"),Et.push("Q"),mt.stream=Et.join(`
|
|
|
`),mt}},Cross:{createAppearanceStream:function(Pt){var mt={D:{Off:Io.RadioButton.Cross.OffPushDown},N:{}};return mt.N[Pt]=Io.RadioButton.Cross.YesNormal,mt.D[Pt]=Io.RadioButton.Cross.YesPushDown,mt},getCA:function(){return"8"},YesNormal:function(Pt){var mt=Vl(Pt);mt.scope=Pt.scope;var Et=[],jt=Io.internal.calculateCross(Pt);return Et.push("q"),Et.push("1 1 "+vs(Io.internal.getWidth(Pt)-2)+" "+vs(Io.internal.getHeight(Pt)-2)+" re"),Et.push("W"),Et.push("n"),Et.push(vs(jt.x1.x)+" "+vs(jt.x1.y)+" m"),Et.push(vs(jt.x2.x)+" "+vs(jt.x2.y)+" l"),Et.push(vs(jt.x4.x)+" "+vs(jt.x4.y)+" m"),Et.push(vs(jt.x3.x)+" "+vs(jt.x3.y)+" l"),Et.push("s"),Et.push("Q"),mt.stream=Et.join(`
|
|
|
`),mt},YesPushDown:function(Pt){var mt=Vl(Pt);mt.scope=Pt.scope;var Et=Io.internal.calculateCross(Pt),jt=[];return jt.push("0.749023 g"),jt.push("0 0 "+vs(Io.internal.getWidth(Pt))+" "+vs(Io.internal.getHeight(Pt))+" re"),jt.push("f"),jt.push("q"),jt.push("1 1 "+vs(Io.internal.getWidth(Pt)-2)+" "+vs(Io.internal.getHeight(Pt)-2)+" re"),jt.push("W"),jt.push("n"),jt.push(vs(Et.x1.x)+" "+vs(Et.x1.y)+" m"),jt.push(vs(Et.x2.x)+" "+vs(Et.x2.y)+" l"),jt.push(vs(Et.x4.x)+" "+vs(Et.x4.y)+" m"),jt.push(vs(Et.x3.x)+" "+vs(Et.x3.y)+" l"),jt.push("s"),jt.push("Q"),mt.stream=jt.join(`
|
|
|
`),mt},OffPushDown:function(Pt){var mt=Vl(Pt);mt.scope=Pt.scope;var Et=[];return Et.push("0.749023 g"),Et.push("0 0 "+vs(Io.internal.getWidth(Pt))+" "+vs(Io.internal.getHeight(Pt))+" re"),Et.push("f"),mt.stream=Et.join(`
|
|
|
`),mt}}},createDefaultAppearanceStream:function(Pt){var mt=Pt.scope.internal.getFont(Pt.fontName,Pt.fontStyle).id,Et=Pt.scope.__private__.encodeColorString(Pt.color);return"/"+mt+" "+Pt.fontSize+" Tf "+Et}};Io.internal={Bezier_C:.551915024494,calculateCross:function(Pt){var mt=Io.internal.getWidth(Pt),Et=Io.internal.getHeight(Pt),jt=Math.min(mt,Et);return{x1:{x:(mt-jt)/2,y:(Et-jt)/2+jt},x2:{x:(mt-jt)/2+jt,y:(Et-jt)/2},x3:{x:(mt-jt)/2,y:(Et-jt)/2},x4:{x:(mt-jt)/2+jt,y:(Et-jt)/2+jt}}}},Io.internal.getWidth=function(Pt){var mt=0;return(0,bt.Z)(Pt)==="object"&&(mt=bc(Pt.Rect[2])),mt},Io.internal.getHeight=function(Pt){var mt=0;return(0,bt.Z)(Pt)==="object"&&(mt=bc(Pt.Rect[3])),mt};var dc=Vs.addField=function(Pt){if(Ao(this,Pt),!(Pt instanceof Bl))throw new Error("Invalid argument passed to jsPDF.addField.");var mt;return(mt=Pt).scope.internal.acroformPlugin.printedOut&&(mt.scope.internal.acroformPlugin.printedOut=!1,mt.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),mt.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(mt),Pt.page=Pt.scope.internal.getCurrentPageInfo().pageNumber,this};Vs.AcroFormChoiceField=su,Vs.AcroFormListBox=au,Vs.AcroFormComboBox=Yo,Vs.AcroFormEditBox=va,Vs.AcroFormButton=Cs,Vs.AcroFormPushButton=lu,Vs.AcroFormRadioButton=Ll,Vs.AcroFormCheckBox=tl,Vs.AcroFormTextField=tu,Vs.AcroFormPasswordField=Pl,Vs.AcroFormAppearance=Io,Vs.AcroForm={ChoiceField:su,ListBox:au,ComboBox:Yo,EditBox:va,Button:Cs,PushButton:lu,RadioButton:Ll,CheckBox:tl,TextField:tu,PasswordField:Pl,Appearance:Io},zo.AcroForm={ChoiceField:su,ListBox:au,ComboBox:Yo,EditBox:va,Button:Cs,PushButton:lu,RadioButton:Ll,CheckBox:tl,TextField:tu,PasswordField:Pl,Appearance:Io};var al=zo.AcroForm;function zu(Pt){return Pt.reduce(function(mt,Et,jt){return mt[Et]=jt,mt},{})}(function(Pt){Pt.__addimage__={};var mt="UNKNOWN",Et={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},jt=Pt.__addimage__.getImageFileTypeByImageData=function(zn,Xn){var Yi,ve,Ee,Ye,on,cn=mt;if((Xn=Xn||mt)==="RGBA"||zn.data!==void 0&&zn.data instanceof Uint8ClampedArray&&"height"in zn&&"width"in zn)return"RGBA";if(io(zn))for(on in Et)for(Ee=Et[on],Yi=0;Yi<Ee.length;Yi+=1){for(Ye=!0,ve=0;ve<Ee[Yi].length;ve+=1)if(Ee[Yi][ve]!==void 0&&Ee[Yi][ve]!==zn[ve]){Ye=!1;break}if(Ye===!0){cn=on;break}}else for(on in Et)for(Ee=Et[on],Yi=0;Yi<Ee.length;Yi+=1){for(Ye=!0,ve=0;ve<Ee[Yi].length;ve+=1)if(Ee[Yi][ve]!==void 0&&Ee[Yi][ve]!==zn.charCodeAt(ve)){Ye=!1;break}if(Ye===!0){cn=on;break}}return cn===mt&&Xn!==mt&&(cn=Xn),cn},le=function zn(Xn){for(var Yi=this.internal.write,ve=this.internal.putStream,Ee=(0,this.internal.getFilters)();Ee.indexOf("FlateEncode")!==-1;)Ee.splice(Ee.indexOf("FlateEncode"),1);Xn.objectId=this.internal.newObject();var Ye=[];if(Ye.push({key:"Type",value:"/XObject"}),Ye.push({key:"Subtype",value:"/Image"}),Ye.push({key:"Width",value:Xn.width}),Ye.push({key:"Height",value:Xn.height}),Xn.colorSpace===pi.INDEXED?Ye.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(Xn.palette.length/3-1)+" "+("sMask"in Xn&&Xn.sMask!==void 0?Xn.objectId+2:Xn.objectId+1)+" 0 R]"}):(Ye.push({key:"ColorSpace",value:"/"+Xn.colorSpace}),Xn.colorSpace===pi.DEVICE_CMYK&&Ye.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Ye.push({key:"BitsPerComponent",value:Xn.bitsPerComponent}),"decodeParameters"in Xn&&Xn.decodeParameters!==void 0&&Ye.push({key:"DecodeParms",value:"<<"+Xn.decodeParameters+">>"}),"transparency"in Xn&&Array.isArray(Xn.transparency)){for(var on="",cn=0,dn=Xn.transparency.length;cn<dn;cn++)on+=Xn.transparency[cn]+" "+Xn.transparency[cn]+" ";Ye.push({key:"Mask",value:"["+on+"]"})}Xn.sMask!==void 0&&Ye.push({key:"SMask",value:Xn.objectId+1+" 0 R"});var Dn=Xn.filter!==void 0?["/"+Xn.filter]:void 0;if(ve({data:Xn.data,additionalKeyValues:Ye,alreadyAppliedFilters:Dn,objectId:Xn.objectId}),Yi("endobj"),"sMask"in Xn&&Xn.sMask!==void 0){var Jn="/Predictor "+Xn.predictor+" /Colors 1 /BitsPerComponent "+Xn.bitsPerComponent+" /Columns "+Xn.width,Ue={width:Xn.width,height:Xn.height,colorSpace:"DeviceGray",bitsPerComponent:Xn.bitsPerComponent,decodeParameters:Jn,data:Xn.sMask};"filter"in Xn&&(Ue.filter=Xn.filter),zn.call(this,Ue)}if(Xn.colorSpace===pi.INDEXED){var hn=this.internal.newObject();ve({data:Ti(new Uint8Array(Xn.palette)),objectId:hn}),Yi("endobj")}},Zt=function(){var zn=this.internal.collections.addImage_images;for(var Xn in zn)le.call(this,zn[Xn])},ye=function(){var zn,Xn=this.internal.collections.addImage_images,Yi=this.internal.write;for(var ve in Xn)Yi("/I"+(zn=Xn[ve]).index,zn.objectId,"0","R")},Se=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",Zt),this.internal.events.subscribe("putXobjectDict",ye))},Ie=function(){var zn=this.internal.collections.addImage_images;return Se.call(this),zn},tn=function(){return Object.keys(this.internal.collections.addImage_images).length},mn=function(zn){return typeof Pt["process"+zn.toUpperCase()]=="function"},pn=function(zn){return(0,bt.Z)(zn)==="object"&&zn.nodeType===1},Tn=function(zn,Xn){if(zn.nodeName==="IMG"&&zn.hasAttribute("src")){var Yi=""+zn.getAttribute("src");if(Yi.indexOf("data:image/")===0)return fs(unescape(Yi).split("base64,").pop());var ve=Pt.loadFile(Yi,!0);if(ve!==void 0)return ve}if(zn.nodeName==="CANVAS"){if(zn.width===0||zn.height===0)throw new Error("Given canvas must have data. Canvas width: "+zn.width+", height: "+zn.height);var Ee;switch(Xn){case"PNG":Ee="image/png";break;case"WEBP":Ee="image/webp";break;case"JPEG":case"JPG":default:Ee="image/jpeg"}return fs(zn.toDataURL(Ee,1).split("base64,").pop())}},ze=function(zn){var Xn=this.internal.collections.addImage_images;if(Xn){for(var Yi in Xn)if(zn===Xn[Yi].alias)return Xn[Yi]}},di=function(zn,Xn,Yi){return zn||Xn||(zn=-96,Xn=-96),zn<0&&(zn=-1*Yi.width*72/zn/this.internal.scaleFactor),Xn<0&&(Xn=-1*Yi.height*72/Xn/this.internal.scaleFactor),zn===0&&(zn=Xn*Yi.width/Yi.height),Xn===0&&(Xn=zn*Yi.height/Yi.width),[zn,Xn]},$n=function(zn,Xn,Yi,ve,Ee,Ye){var on=di.call(this,Yi,ve,Ee),cn=this.internal.getCoordinateString,dn=this.internal.getVerticalCoordinateString,Dn=Ie.call(this);if(Yi=on[0],ve=on[1],Dn[Ee.index]=Ee,Ye){Ye*=Math.PI/180;var Jn=Math.cos(Ye),Ue=Math.sin(Ye),hn=function(Mn){return Mn.toFixed(4)},yn=[hn(Jn),hn(Ue),hn(-1*Ue),hn(Jn),0,0,"cm"]}this.internal.write("q"),Ye?(this.internal.write([1,"0","0",1,cn(zn),dn(Xn+ve),"cm"].join(" ")),this.internal.write(yn.join(" ")),this.internal.write([cn(Yi),"0","0",cn(ve),"0","0","cm"].join(" "))):this.internal.write([cn(Yi),"0","0",cn(ve),cn(zn),dn(Xn+ve),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+Ee.index+" Do"),this.internal.write("Q")},pi=Pt.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};Pt.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var Hn=Pt.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},gi=Pt.__addimage__.sHashCode=function(zn){var Xn,Yi,ve=0;if(typeof zn=="string")for(Yi=zn.length,Xn=0;Xn<Yi;Xn++)ve=(ve<<5)-ve+zn.charCodeAt(Xn),ve|=0;else if(io(zn))for(Yi=zn.byteLength/2,Xn=0;Xn<Yi;Xn++)ve=(ve<<5)-ve+zn[Xn],ve|=0;return ve},Hi=Pt.__addimage__.validateStringAsBase64=function(zn){(zn=zn||"").toString().trim();var Xn=!0;return zn.length===0&&(Xn=!1),zn.length%4!=0&&(Xn=!1),/^[A-Za-z0-9+/]+$/.test(zn.substr(0,zn.length-2))===!1&&(Xn=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(zn.substr(-2))===!1&&(Xn=!1),Xn},ur=Pt.__addimage__.extractImageFromDataUrl=function(zn){if(zn==null||!(zn=zn.trim()).startsWith("data:"))return null;var Xn=zn.indexOf(",");return Xn<0?null:zn.substring(0,Xn).trim().endsWith("base64")?zn.substring(Xn+1):null},Ir=Pt.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"};Pt.__addimage__.isArrayBuffer=function(zn){return Ir()&&zn instanceof ArrayBuffer};var io=Pt.__addimage__.isArrayBufferView=function(zn){return Ir()&&typeof Uint32Array!="undefined"&&(zn instanceof Int8Array||zn instanceof Uint8Array||typeof Uint8ClampedArray!="undefined"&&zn instanceof Uint8ClampedArray||zn instanceof Int16Array||zn instanceof Uint16Array||zn instanceof Int32Array||zn instanceof Uint32Array||zn instanceof Float32Array||zn instanceof Float64Array)},vr=Pt.__addimage__.binaryStringToUint8Array=function(zn){for(var Xn=zn.length,Yi=new Uint8Array(Xn),ve=0;ve<Xn;ve++)Yi[ve]=zn.charCodeAt(ve);return Yi},Ti=Pt.__addimage__.arrayBufferToBinaryString=function(zn){for(var Xn="",Yi=io(zn)?zn:new Uint8Array(zn),ve=0;ve<Yi.length;ve+=8192)Xn+=String.fromCharCode.apply(null,Yi.subarray(ve,ve+8192));return Xn};Pt.addImage=function(){var zn,Xn,Yi,ve,Ee,Ye,on,cn,dn;if(typeof arguments[1]=="number"?(Xn=mt,Yi=arguments[1],ve=arguments[2],Ee=arguments[3],Ye=arguments[4],on=arguments[5],cn=arguments[6],dn=arguments[7]):(Xn=arguments[1],Yi=arguments[2],ve=arguments[3],Ee=arguments[4],Ye=arguments[5],on=arguments[6],cn=arguments[7],dn=arguments[8]),(0,bt.Z)(zn=arguments[0])==="object"&&!pn(zn)&&"imageData"in zn){var Dn=zn;zn=Dn.imageData,Xn=Dn.format||Xn||mt,Yi=Dn.x||Yi||0,ve=Dn.y||ve||0,Ee=Dn.w||Dn.width||Ee,Ye=Dn.h||Dn.height||Ye,on=Dn.alias||on,cn=Dn.compression||cn,dn=Dn.rotation||Dn.angle||dn}var Jn=this.internal.getFilters();if(cn===void 0&&Jn.indexOf("FlateEncode")!==-1&&(cn="SLOW"),isNaN(Yi)||isNaN(ve))throw new Error("Invalid coordinates passed to jsPDF.addImage");Se.call(this);var Ue=Br.call(this,zn,Xn,on,cn);return $n.call(this,Yi,ve,Ee,Ye,Ue,dn),this};var Br=function(zn,Xn,Yi,ve){var Ee,Ye,on;if(typeof zn=="string"&&jt(zn)===mt){zn=unescape(zn);var cn=Vr(zn,!1);(cn!==""||(cn=Pt.loadFile(zn,!0))!==void 0)&&(zn=cn)}if(pn(zn)&&(zn=Tn(zn,Xn)),Xn=jt(zn,Xn),!mn(Xn))throw new Error("addImage does not support files of type '"+Xn+"', please ensure that a plugin for '"+Xn+"' support is added.");if(((on=Yi)==null||on.length===0)&&(Yi=function(dn){return typeof dn=="string"||io(dn)?gi(dn):io(dn.data)?gi(dn.data):null}(zn)),(Ee=ze.call(this,Yi))||(Ir()&&(zn instanceof Uint8Array||Xn==="RGBA"||(Ye=zn,zn=vr(zn))),Ee=this["process"+Xn.toUpperCase()](zn,tn.call(this),Yi,function(dn){return dn&&typeof dn=="string"&&(dn=dn.toUpperCase()),dn in Pt.image_compression?dn:Hn.NONE}(ve),Ye)),!Ee)throw new Error("An unknown error occurred whilst processing the image.");return Ee},Vr=Pt.__addimage__.convertBase64ToBinaryString=function(zn,Xn){Xn=typeof Xn!="boolean"||Xn;var Yi,ve="";if(typeof zn=="string"){var Ee;Yi=(Ee=ur(zn))!==null&&Ee!==void 0?Ee:zn;try{ve=fs(Yi)}catch(Ye){if(Xn)throw Hi(Yi)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Ye.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return ve};Pt.getImageProperties=function(zn){var Xn,Yi,ve="";if(pn(zn)&&(zn=Tn(zn)),typeof zn=="string"&&jt(zn)===mt&&((ve=Vr(zn,!1))===""&&(ve=Pt.loadFile(zn)||""),zn=ve),Yi=jt(zn),!mn(Yi))throw new Error("addImage does not support files of type '"+Yi+"', please ensure that a plugin for '"+Yi+"' support is added.");if(!Ir()||zn instanceof Uint8Array||(zn=vr(zn)),!(Xn=this["process"+Yi.toUpperCase()](zn)))throw new Error("An unknown error occurred whilst processing the image");return Xn.fileType=Yi,Xn}})(zo.API),function(Pt){var mt=function(Et){if(Et!==void 0&&Et!="")return!0};zo.API.events.push(["addPage",function(Et){this.internal.getPageInfo(Et.pageNumber).pageContext.annotations=[]}]),Pt.events.push(["putPage",function(Et){for(var jt,le,Zt,ye=this.internal.getCoordinateString,Se=this.internal.getVerticalCoordinateString,Ie=this.internal.getPageInfoByObjId(Et.objId),tn=Et.pageContext.annotations,mn=!1,pn=0;pn<tn.length&&!mn;pn++)switch((jt=tn[pn]).type){case"link":(mt(jt.options.url)||mt(jt.options.pageNumber))&&(mn=!0);break;case"reference":case"text":case"freetext":mn=!0}if(mn!=0){this.internal.write("/Annots [");for(var Tn=0;Tn<tn.length;Tn++){jt=tn[Tn];var ze=this.internal.pdfEscape,di=this.internal.getEncryptor(Et.objId);switch(jt.type){case"reference":this.internal.write(" "+jt.object.objId+" 0 R ");break;case"text":var $n=this.internal.newAdditionalObject(),pi=this.internal.newAdditionalObject(),Hn=this.internal.getEncryptor($n.objId),gi=jt.title||"Note";Zt="<</Type /Annot /Subtype /Text "+(le="/Rect ["+ye(jt.bounds.x)+" "+Se(jt.bounds.y+jt.bounds.h)+" "+ye(jt.bounds.x+jt.bounds.w)+" "+Se(jt.bounds.y)+"] ")+"/Contents ("+ze(Hn(jt.contents))+")",Zt+=" /Popup "+pi.objId+" 0 R",Zt+=" /P "+Ie.objId+" 0 R",Zt+=" /T ("+ze(Hn(gi))+") >>",$n.content=Zt;var Hi=$n.objId+" 0 R";Zt="<</Type /Annot /Subtype /Popup "+(le="/Rect ["+ye(jt.bounds.x+30)+" "+Se(jt.bounds.y+jt.bounds.h)+" "+ye(jt.bounds.x+jt.bounds.w+30)+" "+Se(jt.bounds.y)+"] ")+" /Parent "+Hi,jt.open&&(Zt+=" /Open true"),Zt+=" >>",pi.content=Zt,this.internal.write($n.objId,"0 R",pi.objId,"0 R");break;case"freetext":le="/Rect ["+ye(jt.bounds.x)+" "+Se(jt.bounds.y)+" "+ye(jt.bounds.x+jt.bounds.w)+" "+Se(jt.bounds.y+jt.bounds.h)+"] ";var ur=jt.color||"#000000";Zt="<</Type /Annot /Subtype /FreeText "+le+"/Contents ("+ze(di(jt.contents))+")",Zt+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+ur+")",Zt+=" /Border [0 0 0]",Zt+=" >>",this.internal.write(Zt);break;case"link":if(jt.options.name){var Ir=this.annotations._nameMap[jt.options.name];jt.options.pageNumber=Ir.page,jt.options.top=Ir.y}else jt.options.top||(jt.options.top=0);if(le="/Rect ["+jt.finalBounds.x+" "+jt.finalBounds.y+" "+jt.finalBounds.w+" "+jt.finalBounds.h+"] ",Zt="",jt.options.url)Zt="<</Type /Annot /Subtype /Link "+le+"/Border [0 0 0] /A <</S /URI /URI ("+ze(di(jt.options.url))+") >>";else if(jt.options.pageNumber)switch(Zt="<</Type /Annot /Subtype /Link "+le+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(jt.options.pageNumber).objId+" 0 R",jt.options.magFactor=jt.options.magFactor||"XYZ",jt.options.magFactor){case"Fit":Zt+=" /Fit]";break;case"FitH":Zt+=" /FitH "+jt.options.top+"]";break;case"FitV":jt.options.left=jt.options.left||0,Zt+=" /FitV "+jt.options.left+"]";break;case"XYZ":default:var io=Se(jt.options.top);jt.options.left=jt.options.left||0,jt.options.zoom===void 0&&(jt.options.zoom=0),Zt+=" /XYZ "+jt.options.left+" "+io+" "+jt.options.zoom+"]"}Zt!=""&&(Zt+=" >>",this.internal.write(Zt))}}this.internal.write("]")}}]),Pt.createAnnotation=function(Et){var jt=this.internal.getCurrentPageInfo();switch(Et.type){case"link":this.link(Et.bounds.x,Et.bounds.y,Et.bounds.w,Et.bounds.h,Et);break;case"text":case"freetext":jt.pageContext.annotations.push(Et)}},Pt.link=function(Et,jt,le,Zt,ye){var Se=this.internal.getCurrentPageInfo(),Ie=this.internal.getCoordinateString,tn=this.internal.getVerticalCoordinateString;Se.pageContext.annotations.push({finalBounds:{x:Ie(Et),y:tn(jt),w:Ie(Et+le),h:tn(jt+Zt)},options:ye,type:"link"})},Pt.textWithLink=function(Et,jt,le,Zt){var ye,Se,Ie=this.getTextWidth(Et),tn=this.internal.getLineHeight()/this.internal.scaleFactor;if(Zt.maxWidth!==void 0){Se=Zt.maxWidth;var mn=this.splitTextToSize(Et,Se).length;ye=Math.ceil(tn*mn)}else Se=Ie,ye=tn;return this.text(Et,jt,le,Zt),le+=.2*tn,Zt.align==="center"&&(jt-=Ie/2),Zt.align==="right"&&(jt-=Ie),this.link(jt,le-tn,Se,ye,Zt),Ie},Pt.getTextWidth=function(Et){var jt=this.internal.getFontSize();return this.getStringUnitWidth(Et)*jt/this.internal.scaleFactor}}(zo.API),function(Pt){var mt={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},Et={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},jt={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},le=[1570,1571,1573,1575];Pt.__arabicParser__={};var Zt=Pt.__arabicParser__.isInArabicSubstitutionA=function($n){return mt[$n.charCodeAt(0)]!==void 0},ye=Pt.__arabicParser__.isArabicLetter=function($n){return typeof $n=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test($n)},Se=Pt.__arabicParser__.isArabicEndLetter=function($n){return ye($n)&&Zt($n)&&mt[$n.charCodeAt(0)].length<=2},Ie=Pt.__arabicParser__.isArabicAlfLetter=function($n){return ye($n)&&le.indexOf($n.charCodeAt(0))>=0};Pt.__arabicParser__.arabicLetterHasIsolatedForm=function($n){return ye($n)&&Zt($n)&&mt[$n.charCodeAt(0)].length>=1};var tn=Pt.__arabicParser__.arabicLetterHasFinalForm=function($n){return ye($n)&&Zt($n)&&mt[$n.charCodeAt(0)].length>=2};Pt.__arabicParser__.arabicLetterHasInitialForm=function($n){return ye($n)&&Zt($n)&&mt[$n.charCodeAt(0)].length>=3};var mn=Pt.__arabicParser__.arabicLetterHasMedialForm=function($n){return ye($n)&&Zt($n)&&mt[$n.charCodeAt(0)].length==4},pn=Pt.__arabicParser__.resolveLigatures=function($n){var pi=0,Hn=Et,gi="",Hi=0;for(pi=0;pi<$n.length;pi+=1)Hn[$n.charCodeAt(pi)]!==void 0?(Hi++,typeof(Hn=Hn[$n.charCodeAt(pi)])=="number"&&(gi+=String.fromCharCode(Hn),Hn=Et,Hi=0),pi===$n.length-1&&(Hn=Et,gi+=$n.charAt(pi-(Hi-1)),pi-=Hi-1,Hi=0)):(Hn=Et,gi+=$n.charAt(pi-Hi),pi-=Hi,Hi=0);return gi};Pt.__arabicParser__.isArabicDiacritic=function($n){return $n!==void 0&&jt[$n.charCodeAt(0)]!==void 0};var Tn=Pt.__arabicParser__.getCorrectForm=function($n,pi,Hn){return ye($n)?Zt($n)===!1?-1:!tn($n)||!ye(pi)&&!ye(Hn)||!ye(Hn)&&Se(pi)||Se($n)&&!ye(pi)||Se($n)&&Ie(pi)||Se($n)&&Se(pi)?0:mn($n)&&ye(pi)&&!Se(pi)&&ye(Hn)&&tn(Hn)?3:Se($n)||!ye(Hn)?1:2:-1},ze=function($n){var pi=0,Hn=0,gi=0,Hi="",ur="",Ir="",io=($n=$n||"").split("\\s+"),vr=[];for(pi=0;pi<io.length;pi+=1){for(vr.push(""),Hn=0;Hn<io[pi].length;Hn+=1)Hi=io[pi][Hn],ur=io[pi][Hn-1],Ir=io[pi][Hn+1],ye(Hi)?(gi=Tn(Hi,ur,Ir),vr[pi]+=gi!==-1?String.fromCharCode(mt[Hi.charCodeAt(0)][gi]):Hi):vr[pi]+=Hi;vr[pi]=pn(vr[pi])}return vr.join(" ")},di=Pt.__arabicParser__.processArabic=Pt.processArabic=function(){var $n,pi=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,Hn=[];if(Array.isArray(pi)){var gi=0;for(Hn=[],gi=0;gi<pi.length;gi+=1)Array.isArray(pi[gi])?Hn.push([ze(pi[gi][0]),pi[gi][1],pi[gi][2]]):Hn.push([ze(pi[gi])]);$n=Hn}else $n=ze(pi);return typeof arguments[0]=="string"?$n:(arguments[0].text=$n,arguments[0])};Pt.events.push(["preProcessText",di])}(zo.API),zo.API.autoPrint=function(Pt){var mt;switch((Pt=Pt||{}).variant=Pt.variant||"non-conform",Pt.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){mt=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+mt+" 0 R")})}return this},function(Pt){var mt=function(){var Et=void 0;Object.defineProperty(this,"pdf",{get:function(){return Et},set:function(Se){Et=Se}});var jt=150;Object.defineProperty(this,"width",{get:function(){return jt},set:function(Se){jt=isNaN(Se)||Number.isInteger(Se)===!1||Se<0?150:Se,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=jt+1)}});var le=300;Object.defineProperty(this,"height",{get:function(){return le},set:function(Se){le=isNaN(Se)||Number.isInteger(Se)===!1||Se<0?300:Se,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=le+1)}});var Zt=[];Object.defineProperty(this,"childNodes",{get:function(){return Zt},set:function(Se){Zt=Se}});var ye={};Object.defineProperty(this,"style",{get:function(){return ye},set:function(Se){ye=Se}}),Object.defineProperty(this,"parentNode",{})};mt.prototype.getContext=function(Et,jt){var le;if((Et=Et||"2d")!=="2d")return null;for(le in jt)this.pdf.context2d.hasOwnProperty(le)&&(this.pdf.context2d[le]=jt[le]);return this.pdf.context2d._canvas=this,this.pdf.context2d},mt.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},Pt.events.push(["initialized",function(){this.canvas=new mt,this.canvas.pdf=this}])}(zo.API),function(Pt){var mt={left:0,top:0,bottom:0,right:0},Et=!1,jt=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},mt),this.internal.__cell__.margins.width=this.getPageWidth(),le.call(this))},le=function(){this.internal.__cell__.lastCell=new Zt,this.internal.__cell__.pages=1},Zt=function(){var Ie=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Ie},set:function($n){Ie=$n}});var tn=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return tn},set:function($n){tn=$n}});var mn=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return mn},set:function($n){mn=$n}});var pn=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return pn},set:function($n){pn=$n}});var Tn=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return Tn},set:function($n){Tn=$n}});var ze=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return ze},set:function($n){ze=$n}});var di=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return di},set:function($n){di=$n}}),this};Zt.prototype.clone=function(){return new Zt(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},Zt.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},Pt.setHeaderFunction=function(Ie){return jt.call(this),this.internal.__cell__.headerFunction=typeof Ie=="function"?Ie:void 0,this},Pt.getTextDimensions=function(Ie,tn){jt.call(this);var mn=(tn=tn||{}).fontSize||this.getFontSize(),pn=tn.font||this.getFont(),Tn=tn.scaleFactor||this.internal.scaleFactor,ze=0,di=0,$n=0,pi=this;if(!Array.isArray(Ie)&&typeof Ie!="string"){if(typeof Ie!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");Ie=String(Ie)}var Hn=tn.maxWidth;Hn>0?typeof Ie=="string"?Ie=this.splitTextToSize(Ie,Hn):Object.prototype.toString.call(Ie)==="[object Array]"&&(Ie=Ie.reduce(function(Hi,ur){return Hi.concat(pi.splitTextToSize(ur,Hn))},[])):Ie=Array.isArray(Ie)?Ie:[Ie];for(var gi=0;gi<Ie.length;gi++)ze<($n=this.getStringUnitWidth(Ie[gi],{font:pn})*mn)&&(ze=$n);return ze!==0&&(di=Ie.length),{w:ze/=Tn,h:Math.max((di*mn*this.getLineHeightFactor()-mn*(this.getLineHeightFactor()-1))/Tn,0)}},Pt.cellAddPage=function(){jt.call(this),this.addPage();var Ie=this.internal.__cell__.margins||mt;return this.internal.__cell__.lastCell=new Zt(Ie.left,Ie.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var ye=Pt.cell=function(){var Ie;Ie=arguments[0]instanceof Zt?arguments[0]:new Zt(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),jt.call(this);var tn=this.internal.__cell__.lastCell,mn=this.internal.__cell__.padding,pn=this.internal.__cell__.margins||mt,Tn=this.internal.__cell__.tableHeaderRow,ze=this.internal.__cell__.printHeaders;return tn.lineNumber!==void 0&&(tn.lineNumber===Ie.lineNumber?(Ie.x=(tn.x||0)+(tn.width||0),Ie.y=tn.y||0):tn.y+tn.height+Ie.height+pn.bottom>this.getPageHeight()?(this.cellAddPage(),Ie.y=pn.top,ze&&Tn&&(this.printHeaderRow(Ie.lineNumber,!0),Ie.y+=Tn[0].height)):Ie.y=tn.y+tn.height||Ie.y),Ie.text[0]!==void 0&&(this.rect(Ie.x,Ie.y,Ie.width,Ie.height,Et===!0?"FD":void 0),Ie.align==="right"?this.text(Ie.text,Ie.x+Ie.width-mn,Ie.y+mn,{align:"right",baseline:"top"}):Ie.align==="center"?this.text(Ie.text,Ie.x+Ie.width/2,Ie.y+mn,{align:"center",baseline:"top",maxWidth:Ie.width-mn-mn}):this.text(Ie.text,Ie.x+mn,Ie.y+mn,{align:"left",baseline:"top",maxWidth:Ie.width-mn-mn})),this.internal.__cell__.lastCell=Ie,this};Pt.table=function(Ie,tn,mn,pn,Tn){if(jt.call(this),!mn)throw new Error("No data for PDF table.");var ze,di,$n,pi,Hn=[],gi=[],Hi=[],ur={},Ir={},io=[],vr=[],Ti=(Tn=Tn||{}).autoSize||!1,Br=Tn.printHeaders!==!1,Vr=Tn.css&&Tn.css["font-size"]!==void 0?16*Tn.css["font-size"]:Tn.fontSize||12,zn=Tn.margins||Object.assign({width:this.getPageWidth()},mt),Xn=typeof Tn.padding=="number"?Tn.padding:3,Yi=Tn.headerBackgroundColor||"#c8c8c8",ve=Tn.headerTextColor||"#000";if(le.call(this),this.internal.__cell__.printHeaders=Br,this.internal.__cell__.margins=zn,this.internal.__cell__.table_font_size=Vr,this.internal.__cell__.padding=Xn,this.internal.__cell__.headerBackgroundColor=Yi,this.internal.__cell__.headerTextColor=ve,this.setFontSize(Vr),pn==null)gi=Hn=Object.keys(mn[0]),Hi=Hn.map(function(){return"left"});else if(Array.isArray(pn)&&(0,bt.Z)(pn[0])==="object")for(Hn=pn.map(function(Dn){return Dn.name}),gi=pn.map(function(Dn){return Dn.prompt||Dn.name||""}),Hi=pn.map(function(Dn){return Dn.align||"left"}),ze=0;ze<pn.length;ze+=1)Ir[pn[ze].name]=pn[ze].width*(19.049976/25.4);else Array.isArray(pn)&&typeof pn[0]=="string"&&(gi=Hn=pn,Hi=Hn.map(function(){return"left"}));if(Ti||Array.isArray(pn)&&typeof pn[0]=="string")for(ze=0;ze<Hn.length;ze+=1){for(ur[pi=Hn[ze]]=mn.map(function(Dn){return Dn[pi]}),this.setFont(void 0,"bold"),io.push(this.getTextDimensions(gi[ze],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),di=ur[pi],this.setFont(void 0,"normal"),$n=0;$n<di.length;$n+=1)io.push(this.getTextDimensions(di[$n],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Ir[pi]=Math.max.apply(null,io)+Xn+Xn,io=[]}if(Br){var Ee={};for(ze=0;ze<Hn.length;ze+=1)Ee[Hn[ze]]={},Ee[Hn[ze]].text=gi[ze],Ee[Hn[ze]].align=Hi[ze];var Ye=Se.call(this,Ee,Ir);vr=Hn.map(function(Dn){return new Zt(Ie,tn,Ir[Dn],Ye,Ee[Dn].text,void 0,Ee[Dn].align)}),this.setTableHeaderRow(vr),this.printHeaderRow(1,!1)}var on=pn.reduce(function(Dn,Jn){return Dn[Jn.name]=Jn.align,Dn},{});for(ze=0;ze<mn.length;ze+=1){"rowStart"in Tn&&Tn.rowStart instanceof Function&&Tn.rowStart({row:ze,data:mn[ze]},this);var cn=Se.call(this,mn[ze],Ir);for($n=0;$n<Hn.length;$n+=1){var dn=mn[ze][Hn[$n]];"cellStart"in Tn&&Tn.cellStart instanceof Function&&Tn.cellStart({row:ze,col:$n,data:dn},this),ye.call(this,new Zt(Ie,tn,Ir[Hn[$n]],cn,dn,ze+2,on[Hn[$n]]))}}return this.internal.__cell__.table_x=Ie,this.internal.__cell__.table_y=tn,this};var Se=function(Ie,tn){var mn=this.internal.__cell__.padding,pn=this.internal.__cell__.table_font_size,Tn=this.internal.scaleFactor;return Object.keys(Ie).map(function(ze){var di=Ie[ze];return this.splitTextToSize(di.hasOwnProperty("text")?di.text:di,tn[ze]-mn-mn)},this).map(function(ze){return this.getLineHeightFactor()*ze.length*pn/Tn+mn+mn},this).reduce(function(ze,di){return Math.max(ze,di)},0)};Pt.setTableHeaderRow=function(Ie){jt.call(this),this.internal.__cell__.tableHeaderRow=Ie},Pt.printHeaderRow=function(Ie,tn){if(jt.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var mn;if(Et=!0,typeof this.internal.__cell__.headerFunction=="function"){var pn=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new Zt(pn[0],pn[1],pn[2],pn[3],void 0,-1)}this.setFont(void 0,"bold");for(var Tn=[],ze=0;ze<this.internal.__cell__.tableHeaderRow.length;ze+=1){mn=this.internal.__cell__.tableHeaderRow[ze].clone(),tn&&(mn.y=this.internal.__cell__.margins.top||0,Tn.push(mn)),mn.lineNumber=Ie;var di=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),ye.call(this,mn),this.setTextColor(di)}Tn.length>0&&this.setTableHeaderRow(Tn),this.setFont(void 0,"normal"),Et=!1}}(zo.API);var hh={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},dh=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Ga=zu(dh),ih=[100,200,300,400,500,600,700,800,900],Ec=zu(ih);function Vc(Pt){var mt=Pt.family.replace(/"|'/g,"").toLowerCase(),Et=function(Zt){return hh[Zt=Zt||"normal"]?Zt:"normal"}(Pt.style),jt=function(Zt){if(!Zt)return 400;if(typeof Zt=="number")return Zt>=100&&Zt<=900&&Zt%100==0?Zt:400;if(/^\d00$/.test(Zt))return parseInt(Zt);switch(Zt){case"bold":return 700;case"normal":default:return 400}}(Pt.weight),le=function(Zt){return typeof Ga[Zt=Zt||"normal"]=="number"?Zt:"normal"}(Pt.stretch);return{family:mt,style:Et,weight:jt,stretch:le,src:Pt.src||[],ref:Pt.ref||{name:mt,style:[le,Et,jt].join(" ")}}}function Zc(Pt,mt,Et,jt){var le;for(le=Et;le>=0&&le<mt.length;le+=jt)if(Pt[mt[le]])return Pt[mt[le]];for(le=Et;le>=0&&le<mt.length;le-=jt)if(Pt[mt[le]])return Pt[mt[le]]}var Bs={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},ya={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Mu(Pt){return[Pt.stretch,Pt.style,Pt.weight,Pt.family].join(" ")}function el(Pt,mt,Et){for(var jt=(Et=Et||{}).defaultFontFamily||"times",le=Object.assign({},Bs,Et.genericFontFamilies||{}),Zt=null,ye=null,Se=0;Se<mt.length;++Se)if(le[(Zt=Vc(mt[Se])).family]&&(Zt.family=le[Zt.family]),Pt.hasOwnProperty(Zt.family)){ye=Pt[Zt.family];break}if(!(ye=ye||Pt[jt]))throw new Error("Could not find a font-family for the rule '"+Mu(Zt)+"' and default family '"+jt+"'.");if(ye=function(Ie,tn){if(tn[Ie])return tn[Ie];var mn=Ga[Ie],pn=mn<=Ga.normal?-1:1,Tn=Zc(tn,dh,mn,pn);if(!Tn)throw new Error("Could not find a matching font-stretch value for "+Ie);return Tn}(Zt.stretch,ye),ye=function(Ie,tn){if(tn[Ie])return tn[Ie];for(var mn=hh[Ie],pn=0;pn<mn.length;++pn)if(tn[mn[pn]])return tn[mn[pn]];throw new Error("Could not find a matching font-style for "+Ie)}(Zt.style,ye),!(ye=function(Ie,tn){if(tn[Ie])return tn[Ie];if(Ie===400&&tn[500])return tn[500];if(Ie===500&&tn[400])return tn[400];var mn=Ec[Ie],pn=Zc(tn,ih,mn,Ie<400?-1:1);if(!pn)throw new Error("Could not find a matching font-weight for value "+Ie);return pn}(Zt.weight,ye)))throw new Error("Failed to resolve a font for the rule '"+Mu(Zt)+"'.");return ye}function ll(Pt){return Pt.trimLeft()}function Wa(Pt,mt){for(var Et=0;Et<Pt.length;){if(Pt.charAt(Et)===mt)return[Pt.substring(0,Et),Pt.substring(Et+1)];Et+=1}return null}function Aa(Pt){var mt=Pt.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return mt===null?null:[mt[0],Pt.substring(mt[0].length)]}var nl,Dl,Ac,rh=["times"];(function(Pt){var mt,Et,jt,le,Zt,ye,Se,Ie,tn,mn=function(Ue){return Ue=Ue||{},this.isStrokeTransparent=Ue.isStrokeTransparent||!1,this.strokeOpacity=Ue.strokeOpacity||1,this.strokeStyle=Ue.strokeStyle||"#000000",this.fillStyle=Ue.fillStyle||"#000000",this.isFillTransparent=Ue.isFillTransparent||!1,this.fillOpacity=Ue.fillOpacity||1,this.font=Ue.font||"10px sans-serif",this.textBaseline=Ue.textBaseline||"alphabetic",this.textAlign=Ue.textAlign||"left",this.lineWidth=Ue.lineWidth||1,this.lineJoin=Ue.lineJoin||"miter",this.lineCap=Ue.lineCap||"butt",this.path=Ue.path||[],this.transform=Ue.transform!==void 0?Ue.transform.clone():new Ie,this.globalCompositeOperation=Ue.globalCompositeOperation||"normal",this.globalAlpha=Ue.globalAlpha||1,this.clip_path=Ue.clip_path||[],this.currentPoint=Ue.currentPoint||new ye,this.miterLimit=Ue.miterLimit||10,this.lastPoint=Ue.lastPoint||new ye,this.lineDashOffset=Ue.lineDashOffset||0,this.lineDash=Ue.lineDash||[],this.margin=Ue.margin||[0,0,0,0],this.prevPageLastElemOffset=Ue.prevPageLastElemOffset||0,this.ignoreClearRect=typeof Ue.ignoreClearRect!="boolean"||Ue.ignoreClearRect,this};Pt.events.push(["initialized",function(){this.context2d=new pn(this),mt=this.internal.f2,Et=this.internal.getCoordinateString,jt=this.internal.getVerticalCoordinateString,le=this.internal.getHorizontalCoordinate,Zt=this.internal.getVerticalCoordinate,ye=this.internal.Point,Se=this.internal.Rectangle,Ie=this.internal.Matrix,tn=new mn}]);var pn=function(Ue){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var hn=Ue;Object.defineProperty(this,"pdf",{get:function(){return hn}});var yn=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return yn},set:function(qi){yn=!!qi}});var Mn=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return Mn},set:function(qi){Mn=!!qi}});var Zn=0;Object.defineProperty(this,"posX",{get:function(){return Zn},set:function(qi){isNaN(qi)||(Zn=qi)}});var li=0;Object.defineProperty(this,"posY",{get:function(){return li},set:function(qi){isNaN(qi)||(li=qi)}}),Object.defineProperty(this,"margin",{get:function(){return tn.margin},set:function(qi){var Qn;typeof qi=="number"?Qn=[qi,qi,qi,qi]:((Qn=new Array(4))[0]=qi[0],Qn[1]=qi.length>=2?qi[1]:Qn[0],Qn[2]=qi.length>=3?qi[2]:Qn[0],Qn[3]=qi.length>=4?qi[3]:Qn[1]),tn.margin=Qn}});var oi=!1;Object.defineProperty(this,"autoPaging",{get:function(){return oi},set:function(qi){oi=qi}});var Fi=0;Object.defineProperty(this,"lastBreak",{get:function(){return Fi},set:function(qi){Fi=qi}});var ki=[];Object.defineProperty(this,"pageBreaks",{get:function(){return ki},set:function(qi){ki=qi}}),Object.defineProperty(this,"ctx",{get:function(){return tn},set:function(qi){qi instanceof mn&&(tn=qi)}}),Object.defineProperty(this,"path",{get:function(){return tn.path},set:function(qi){tn.path=qi}});var Xi=[];Object.defineProperty(this,"ctxStack",{get:function(){return Xi},set:function(qi){Xi=qi}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(qi){var Qn;Qn=Tn(qi),this.ctx.fillStyle=Qn.style,this.ctx.isFillTransparent=Qn.a===0,this.ctx.fillOpacity=Qn.a,this.pdf.setFillColor(Qn.r,Qn.g,Qn.b,{a:Qn.a}),this.pdf.setTextColor(Qn.r,Qn.g,Qn.b,{a:Qn.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(qi){var Qn=Tn(qi);this.ctx.strokeStyle=Qn.style,this.ctx.isStrokeTransparent=Qn.a===0,this.ctx.strokeOpacity=Qn.a,Qn.a===0?this.pdf.setDrawColor(255,255,255):(Qn.a,this.pdf.setDrawColor(Qn.r,Qn.g,Qn.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(qi){["butt","round","square"].indexOf(qi)!==-1&&(this.ctx.lineCap=qi,this.pdf.setLineCap(qi))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(qi){isNaN(qi)||(this.ctx.lineWidth=qi,this.pdf.setLineWidth(qi))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(qi){["bevel","round","miter"].indexOf(qi)!==-1&&(this.ctx.lineJoin=qi,this.pdf.setLineJoin(qi))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(qi){isNaN(qi)||(this.ctx.miterLimit=qi,this.pdf.setMiterLimit(qi))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(qi){this.ctx.textBaseline=qi}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(qi){["right","end","center","left","start"].indexOf(qi)!==-1&&(this.ctx.textAlign=qi)}});var ar=null;function gr(qi,Qn){if(ar===null){var so=function(uo){var rr=[];return Object.keys(uo).forEach(function(wr){uo[wr].forEach(function(mr){var ir=null;switch(mr){case"bold":ir={family:wr,weight:"bold"};break;case"italic":ir={family:wr,style:"italic"};break;case"bolditalic":ir={family:wr,weight:"bold",style:"italic"};break;case"":case"normal":ir={family:wr}}ir!==null&&(ir.ref={name:wr,style:mr},rr.push(ir))})}),rr}(qi.getFontList());ar=function(uo){for(var rr={},wr=0;wr<uo.length;++wr){var mr=Vc(uo[wr]),ir=mr.family,Or=mr.stretch,ho=mr.style,So=mr.weight;rr[ir]=rr[ir]||{},rr[ir][Or]=rr[ir][Or]||{},rr[ir][Or][ho]=rr[ir][Or][ho]||{},rr[ir][Or][ho][So]=mr}return rr}(so.concat(Qn))}return ar}var qr=null;Object.defineProperty(this,"fontFaces",{get:function(){return qr},set:function(qi){ar=null,qr=qi}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(qi){var Qn;if(this.ctx.font=qi,(Qn=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(qi))!==null){var so=Qn[1];Qn[2];var uo=Qn[3],rr=Qn[4];Qn[5];var wr=Qn[6],mr=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(rr)[2];rr=Math.floor(mr==="px"?parseFloat(rr)*this.pdf.internal.scaleFactor:mr==="em"?parseFloat(rr)*this.pdf.getFontSize():parseFloat(rr)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(rr);var ir=function(No){var hs,co,Pa=[],Os=No.trim();if(Os==="")return rh;if(Os in ya)return[ya[Os]];for(;Os!=="";){switch(co=null,hs=(Os=ll(Os)).charAt(0)){case'"':case"'":co=Wa(Os.substring(1),hs);break;default:co=Aa(Os)}if(co===null||(Pa.push(co[0]),(Os=ll(co[1]))!==""&&Os.charAt(0)!==","))return rh;Os=Os.replace(/^,/,"")}return Pa}(wr);if(this.fontFaces){var Or=el(gr(this.pdf,this.fontFaces),ir.map(function(No){return{family:No,stretch:"normal",weight:uo,style:so}}));this.pdf.setFont(Or.ref.name,Or.ref.style)}else{var ho="";(uo==="bold"||parseInt(uo,10)>=700||so==="bold")&&(ho="bold"),so==="italic"&&(ho+="italic"),ho.length===0&&(ho="normal");for(var So="",Fo={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},Gr=0;Gr<ir.length;Gr++){if(this.pdf.internal.getFont(ir[Gr],ho,{noFallback:!0,disableWarning:!0})!==void 0){So=ir[Gr];break}if(ho==="bolditalic"&&this.pdf.internal.getFont(ir[Gr],"bold",{noFallback:!0,disableWarning:!0})!==void 0)So=ir[Gr],ho="bold";else if(this.pdf.internal.getFont(ir[Gr],"normal",{noFallback:!0,disableWarning:!0})!==void 0){So=ir[Gr],ho="normal";break}}if(So===""){for(var Vo=0;Vo<ir.length;Vo++)if(Fo[ir[Vo]]){So=Fo[ir[Vo]];break}}So=So===""?"Times":So,this.pdf.setFont(So,ho)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(qi){this.ctx.globalCompositeOperation=qi}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(qi){this.ctx.globalAlpha=qi}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(qi){this.ctx.lineDashOffset=qi,Jn.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(qi){this.ctx.lineDash=qi,Jn.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(qi){this.ctx.ignoreClearRect=!!qi}})};pn.prototype.setLineDash=function(Ue){this.lineDash=Ue},pn.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},pn.prototype.fill=function(){ur.call(this,"fill",!1)},pn.prototype.stroke=function(){ur.call(this,"stroke",!1)},pn.prototype.beginPath=function(){this.path=[{type:"begin"}]},pn.prototype.moveTo=function(Ue,hn){if(isNaN(Ue)||isNaN(hn))throw Qo.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var yn=this.ctx.transform.applyToPoint(new ye(Ue,hn));this.path.push({type:"mt",x:yn.x,y:yn.y}),this.ctx.lastPoint=new ye(Ue,hn)},pn.prototype.closePath=function(){var Ue=new ye(0,0),hn=0;for(hn=this.path.length-1;hn!==-1;hn--)if(this.path[hn].type==="begin"&&(0,bt.Z)(this.path[hn+1])==="object"&&typeof this.path[hn+1].x=="number"){Ue=new ye(this.path[hn+1].x,this.path[hn+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new ye(Ue.x,Ue.y)},pn.prototype.lineTo=function(Ue,hn){if(isNaN(Ue)||isNaN(hn))throw Qo.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var yn=this.ctx.transform.applyToPoint(new ye(Ue,hn));this.path.push({type:"lt",x:yn.x,y:yn.y}),this.ctx.lastPoint=new ye(yn.x,yn.y)},pn.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),ur.call(this,null,!0)},pn.prototype.quadraticCurveTo=function(Ue,hn,yn,Mn){if(isNaN(yn)||isNaN(Mn)||isNaN(Ue)||isNaN(hn))throw Qo.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Zn=this.ctx.transform.applyToPoint(new ye(yn,Mn)),li=this.ctx.transform.applyToPoint(new ye(Ue,hn));this.path.push({type:"qct",x1:li.x,y1:li.y,x:Zn.x,y:Zn.y}),this.ctx.lastPoint=new ye(Zn.x,Zn.y)},pn.prototype.bezierCurveTo=function(Ue,hn,yn,Mn,Zn,li){if(isNaN(Zn)||isNaN(li)||isNaN(Ue)||isNaN(hn)||isNaN(yn)||isNaN(Mn))throw Qo.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var oi=this.ctx.transform.applyToPoint(new ye(Zn,li)),Fi=this.ctx.transform.applyToPoint(new ye(Ue,hn)),ki=this.ctx.transform.applyToPoint(new ye(yn,Mn));this.path.push({type:"bct",x1:Fi.x,y1:Fi.y,x2:ki.x,y2:ki.y,x:oi.x,y:oi.y}),this.ctx.lastPoint=new ye(oi.x,oi.y)},pn.prototype.arc=function(Ue,hn,yn,Mn,Zn,li){if(isNaN(Ue)||isNaN(hn)||isNaN(yn)||isNaN(Mn)||isNaN(Zn))throw Qo.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(li=!!li,!this.ctx.transform.isIdentity){var oi=this.ctx.transform.applyToPoint(new ye(Ue,hn));Ue=oi.x,hn=oi.y;var Fi=this.ctx.transform.applyToPoint(new ye(0,yn)),ki=this.ctx.transform.applyToPoint(new ye(0,0));yn=Math.sqrt(Math.pow(Fi.x-ki.x,2)+Math.pow(Fi.y-ki.y,2))}Math.abs(Zn-Mn)>=2*Math.PI&&(Mn=0,Zn=2*Math.PI),this.path.push({type:"arc",x:Ue,y:hn,radius:yn,startAngle:Mn,endAngle:Zn,counterclockwise:li})},pn.prototype.arcTo=function(Ue,hn,yn,Mn,Zn){throw new Error("arcTo not implemented.")},pn.prototype.rect=function(Ue,hn,yn,Mn){if(isNaN(Ue)||isNaN(hn)||isNaN(yn)||isNaN(Mn))throw Qo.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(Ue,hn),this.lineTo(Ue+yn,hn),this.lineTo(Ue+yn,hn+Mn),this.lineTo(Ue,hn+Mn),this.lineTo(Ue,hn),this.lineTo(Ue+yn,hn),this.lineTo(Ue,hn)},pn.prototype.fillRect=function(Ue,hn,yn,Mn){if(isNaN(Ue)||isNaN(hn)||isNaN(yn)||isNaN(Mn))throw Qo.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!ze.call(this)){var Zn={};this.lineCap!=="butt"&&(Zn.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Zn.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(Ue,hn,yn,Mn),this.fill(),Zn.hasOwnProperty("lineCap")&&(this.lineCap=Zn.lineCap),Zn.hasOwnProperty("lineJoin")&&(this.lineJoin=Zn.lineJoin)}},pn.prototype.strokeRect=function(Ue,hn,yn,Mn){if(isNaN(Ue)||isNaN(hn)||isNaN(yn)||isNaN(Mn))throw Qo.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");di.call(this)||(this.beginPath(),this.rect(Ue,hn,yn,Mn),this.stroke())},pn.prototype.clearRect=function(Ue,hn,yn,Mn){if(isNaN(Ue)||isNaN(hn)||isNaN(yn)||isNaN(Mn))throw Qo.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(Ue,hn,yn,Mn))},pn.prototype.save=function(Ue){Ue=typeof Ue!="boolean"||Ue;for(var hn=this.pdf.internal.getCurrentPageInfo().pageNumber,yn=0;yn<this.pdf.internal.getNumberOfPages();yn++)this.pdf.setPage(yn+1),this.pdf.internal.out("q");if(this.pdf.setPage(hn),Ue){this.ctx.fontSize=this.pdf.internal.getFontSize();var Mn=new mn(this.ctx);this.ctxStack.push(this.ctx),this.ctx=Mn}},pn.prototype.restore=function(Ue){Ue=typeof Ue!="boolean"||Ue;for(var hn=this.pdf.internal.getCurrentPageInfo().pageNumber,yn=0;yn<this.pdf.internal.getNumberOfPages();yn++)this.pdf.setPage(yn+1),this.pdf.internal.out("Q");this.pdf.setPage(hn),Ue&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},pn.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var Tn=function(Ue){var hn,yn,Mn,Zn;if(Ue.isCanvasGradient===!0&&(Ue=Ue.getColor()),!Ue)return{r:0,g:0,b:0,a:0,style:Ue};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(Ue))hn=0,yn=0,Mn=0,Zn=0;else{var li=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(Ue);if(li!==null)hn=parseInt(li[1]),yn=parseInt(li[2]),Mn=parseInt(li[3]),Zn=1;else if((li=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(Ue))!==null)hn=parseInt(li[1]),yn=parseInt(li[2]),Mn=parseInt(li[3]),Zn=parseFloat(li[4]);else{if(Zn=1,typeof Ue=="string"&&Ue.charAt(0)!=="#"){var oi=new si(Ue);Ue=oi.ok?oi.toHex():"#000000"}Ue.length===4?(hn=Ue.substring(1,2),hn+=hn,yn=Ue.substring(2,3),yn+=yn,Mn=Ue.substring(3,4),Mn+=Mn):(hn=Ue.substring(1,3),yn=Ue.substring(3,5),Mn=Ue.substring(5,7)),hn=parseInt(hn,16),yn=parseInt(yn,16),Mn=parseInt(Mn,16)}}return{r:hn,g:yn,b:Mn,a:Zn,style:Ue}},ze=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},di=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};pn.prototype.fillText=function(Ue,hn,yn,Mn){if(isNaN(hn)||isNaN(yn)||typeof Ue!="string")throw Qo.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(Mn=isNaN(Mn)?void 0:Mn,!ze.call(this)){var Zn=cn(this.ctx.transform.rotation),li=this.ctx.transform.scaleX;Xn.call(this,{text:Ue,x:hn,y:yn,scale:li,angle:Zn,align:this.textAlign,maxWidth:Mn})}},pn.prototype.strokeText=function(Ue,hn,yn,Mn){if(isNaN(hn)||isNaN(yn)||typeof Ue!="string")throw Qo.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!di.call(this)){Mn=isNaN(Mn)?void 0:Mn;var Zn=cn(this.ctx.transform.rotation),li=this.ctx.transform.scaleX;Xn.call(this,{text:Ue,x:hn,y:yn,scale:li,renderingMode:"stroke",angle:Zn,align:this.textAlign,maxWidth:Mn})}},pn.prototype.measureText=function(Ue){if(typeof Ue!="string")throw Qo.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var hn=this.pdf,yn=this.pdf.internal.scaleFactor,Mn=hn.internal.getFontSize(),Zn=hn.getStringUnitWidth(Ue)*Mn/hn.internal.scaleFactor,li=function(oi){var Fi=(oi=oi||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return Fi}}),this};return new li({width:Zn*=Math.round(96*yn/72*1e4)/1e4})},pn.prototype.scale=function(Ue,hn){if(isNaN(Ue)||isNaN(hn))throw Qo.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var yn=new Ie(Ue,0,0,hn,0,0);this.ctx.transform=this.ctx.transform.multiply(yn)},pn.prototype.rotate=function(Ue){if(isNaN(Ue))throw Qo.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var hn=new Ie(Math.cos(Ue),Math.sin(Ue),-Math.sin(Ue),Math.cos(Ue),0,0);this.ctx.transform=this.ctx.transform.multiply(hn)},pn.prototype.translate=function(Ue,hn){if(isNaN(Ue)||isNaN(hn))throw Qo.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var yn=new Ie(1,0,0,1,Ue,hn);this.ctx.transform=this.ctx.transform.multiply(yn)},pn.prototype.transform=function(Ue,hn,yn,Mn,Zn,li){if(isNaN(Ue)||isNaN(hn)||isNaN(yn)||isNaN(Mn)||isNaN(Zn)||isNaN(li))throw Qo.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var oi=new Ie(Ue,hn,yn,Mn,Zn,li);this.ctx.transform=this.ctx.transform.multiply(oi)},pn.prototype.setTransform=function(Ue,hn,yn,Mn,Zn,li){Ue=isNaN(Ue)?1:Ue,hn=isNaN(hn)?0:hn,yn=isNaN(yn)?0:yn,Mn=isNaN(Mn)?1:Mn,Zn=isNaN(Zn)?0:Zn,li=isNaN(li)?0:li,this.ctx.transform=new Ie(Ue,hn,yn,Mn,Zn,li)};var $n=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};pn.prototype.drawImage=function(Ue,hn,yn,Mn,Zn,li,oi,Fi,ki){var Xi=this.pdf.getImageProperties(Ue),ar=1,gr=1,qr=1,qi=1;Mn!==void 0&&Fi!==void 0&&(qr=Fi/Mn,qi=ki/Zn,ar=Xi.width/Mn*Fi/Mn,gr=Xi.height/Zn*ki/Zn),li===void 0&&(li=hn,oi=yn,hn=0,yn=0),Mn!==void 0&&Fi===void 0&&(Fi=Mn,ki=Zn),Mn===void 0&&Fi===void 0&&(Fi=Xi.width,ki=Xi.height);for(var Qn,so=this.ctx.transform.decompose(),uo=cn(so.rotate.shx),rr=new Ie,wr=(rr=(rr=(rr=rr.multiply(so.translate)).multiply(so.skew)).multiply(so.scale)).applyToRectangle(new Se(li-hn*qr,oi-yn*qi,Mn*ar,Zn*gr)),mr=pi.call(this,wr),ir=[],Or=0;Or<mr.length;Or+=1)ir.indexOf(mr[Or])===-1&&ir.push(mr[Or]);if(Hi(ir),this.autoPaging)for(var ho=ir[0],So=ir[ir.length-1],Fo=ho;Fo<So+1;Fo++){this.pdf.setPage(Fo);var Gr=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Vo=Fo===1?this.posY+this.margin[0]:this.margin[0],No=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],hs=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],co=Fo===1?0:No+(Fo-2)*hs;if(this.ctx.clip_path.length!==0){var Pa=this.path;Qn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=gi(Qn,this.posX+this.margin[3],-co+Vo+this.ctx.prevPageLastElemOffset),Ir.call(this,"fill",!0),this.path=Pa}var Os=JSON.parse(JSON.stringify(wr));Os=gi([Os],this.posX+this.margin[3],-co+Vo+this.ctx.prevPageLastElemOffset)[0];var Ps=(Fo>ho||Fo<So)&&$n.call(this);Ps&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Gr,hs,null).clip().discardPath()),this.pdf.addImage(Ue,"JPEG",Os.x,Os.y,Os.w,Os.h,null,null,uo),Ps&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(Ue,"JPEG",wr.x,wr.y,wr.w,wr.h,null,null,uo)};var pi=function(Ue,hn,yn){var Mn=[];hn=hn||this.pdf.internal.pageSize.width,yn=yn||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var Zn=this.posY+this.ctx.prevPageLastElemOffset;switch(Ue.type){default:case"mt":case"lt":Mn.push(Math.floor((Ue.y+Zn)/yn)+1);break;case"arc":Mn.push(Math.floor((Ue.y+Zn-Ue.radius)/yn)+1),Mn.push(Math.floor((Ue.y+Zn+Ue.radius)/yn)+1);break;case"qct":var li=dn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Ue.x1,Ue.y1,Ue.x,Ue.y);Mn.push(Math.floor((li.y+Zn)/yn)+1),Mn.push(Math.floor((li.y+li.h+Zn)/yn)+1);break;case"bct":var oi=Dn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Ue.x1,Ue.y1,Ue.x2,Ue.y2,Ue.x,Ue.y);Mn.push(Math.floor((oi.y+Zn)/yn)+1),Mn.push(Math.floor((oi.y+oi.h+Zn)/yn)+1);break;case"rect":Mn.push(Math.floor((Ue.y+Zn)/yn)+1),Mn.push(Math.floor((Ue.y+Ue.h+Zn)/yn)+1)}for(var Fi=0;Fi<Mn.length;Fi+=1)for(;this.pdf.internal.getNumberOfPages()<Mn[Fi];)Hn.call(this);return Mn},Hn=function(){var Ue=this.fillStyle,hn=this.strokeStyle,yn=this.font,Mn=this.lineCap,Zn=this.lineWidth,li=this.lineJoin;this.pdf.addPage(),this.fillStyle=Ue,this.strokeStyle=hn,this.font=yn,this.lineCap=Mn,this.lineWidth=Zn,this.lineJoin=li},gi=function(Ue,hn,yn){for(var Mn=0;Mn<Ue.length;Mn++)switch(Ue[Mn].type){case"bct":Ue[Mn].x2+=hn,Ue[Mn].y2+=yn;case"qct":Ue[Mn].x1+=hn,Ue[Mn].y1+=yn;case"mt":case"lt":case"arc":default:Ue[Mn].x+=hn,Ue[Mn].y+=yn}return Ue},Hi=function(Ue){return Ue.sort(function(hn,yn){return hn-yn})},ur=function(Ue,hn){for(var yn,Mn,Zn=this.fillStyle,li=this.strokeStyle,oi=this.lineCap,Fi=this.lineWidth,ki=Math.abs(Fi*this.ctx.transform.scaleX),Xi=this.lineJoin,ar=JSON.parse(JSON.stringify(this.path)),gr=JSON.parse(JSON.stringify(this.path)),qr=[],qi=0;qi<gr.length;qi++)if(gr[qi].x!==void 0)for(var Qn=pi.call(this,gr[qi]),so=0;so<Qn.length;so+=1)qr.indexOf(Qn[so])===-1&&qr.push(Qn[so]);for(var uo=0;uo<qr.length;uo++)for(;this.pdf.internal.getNumberOfPages()<qr[uo];)Hn.call(this);if(Hi(qr),this.autoPaging)for(var rr=qr[0],wr=qr[qr.length-1],mr=rr;mr<wr+1;mr++){this.pdf.setPage(mr),this.fillStyle=Zn,this.strokeStyle=li,this.lineCap=oi,this.lineWidth=ki,this.lineJoin=Xi;var ir=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Or=mr===1?this.posY+this.margin[0]:this.margin[0],ho=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],So=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Fo=mr===1?0:ho+(mr-2)*So;if(this.ctx.clip_path.length!==0){var Gr=this.path;yn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=gi(yn,this.posX+this.margin[3],-Fo+Or+this.ctx.prevPageLastElemOffset),Ir.call(this,Ue,!0),this.path=Gr}if(Mn=JSON.parse(JSON.stringify(ar)),this.path=gi(Mn,this.posX+this.margin[3],-Fo+Or+this.ctx.prevPageLastElemOffset),hn===!1||mr===0){var Vo=(mr>rr||mr<wr)&&$n.call(this);Vo&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ir,So,null).clip().discardPath()),Ir.call(this,Ue,hn),Vo&&this.pdf.restoreGraphicsState()}this.lineWidth=Fi}else this.lineWidth=ki,Ir.call(this,Ue,hn),this.lineWidth=Fi;this.path=ar},Ir=function(Ue,hn){if((Ue!=="stroke"||hn||!di.call(this))&&(Ue==="stroke"||hn||!ze.call(this))){for(var yn,Mn,Zn=[],li=this.path,oi=0;oi<li.length;oi++){var Fi=li[oi];switch(Fi.type){case"begin":Zn.push({begin:!0});break;case"close":Zn.push({close:!0});break;case"mt":Zn.push({start:Fi,deltas:[],abs:[]});break;case"lt":var ki=Zn.length;if(li[oi-1]&&!isNaN(li[oi-1].x)&&(yn=[Fi.x-li[oi-1].x,Fi.y-li[oi-1].y],ki>0)){for(;ki>=0;ki--)if(Zn[ki-1].close!==!0&&Zn[ki-1].begin!==!0){Zn[ki-1].deltas.push(yn),Zn[ki-1].abs.push(Fi);break}}break;case"bct":yn=[Fi.x1-li[oi-1].x,Fi.y1-li[oi-1].y,Fi.x2-li[oi-1].x,Fi.y2-li[oi-1].y,Fi.x-li[oi-1].x,Fi.y-li[oi-1].y],Zn[Zn.length-1].deltas.push(yn);break;case"qct":var Xi=li[oi-1].x+2/3*(Fi.x1-li[oi-1].x),ar=li[oi-1].y+2/3*(Fi.y1-li[oi-1].y),gr=Fi.x+2/3*(Fi.x1-Fi.x),qr=Fi.y+2/3*(Fi.y1-Fi.y),qi=Fi.x,Qn=Fi.y;yn=[Xi-li[oi-1].x,ar-li[oi-1].y,gr-li[oi-1].x,qr-li[oi-1].y,qi-li[oi-1].x,Qn-li[oi-1].y],Zn[Zn.length-1].deltas.push(yn);break;case"arc":Zn.push({deltas:[],abs:[],arc:!0}),Array.isArray(Zn[Zn.length-1].abs)&&Zn[Zn.length-1].abs.push(Fi)}}Mn=hn?null:Ue==="stroke"?"stroke":"fill";for(var so=!1,uo=0;uo<Zn.length;uo++)if(Zn[uo].arc)for(var rr=Zn[uo].abs,wr=0;wr<rr.length;wr++){var mr=rr[wr];mr.type==="arc"?Ti.call(this,mr.x,mr.y,mr.radius,mr.startAngle,mr.endAngle,mr.counterclockwise,void 0,hn,!so):Yi.call(this,mr.x,mr.y),so=!0}else if(Zn[uo].close===!0)this.pdf.internal.out("h"),so=!1;else if(Zn[uo].begin!==!0){var ir=Zn[uo].start.x,Or=Zn[uo].start.y;ve.call(this,Zn[uo].deltas,ir,Or),so=!0}Mn&&Br.call(this,Mn),hn&&Vr.call(this)}},io=function(Ue){var hn=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,yn=hn*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return Ue-yn;case"top":return Ue+hn-yn;case"hanging":return Ue+hn-2*yn;case"middle":return Ue+hn/2-yn;case"ideographic":return Ue;case"alphabetic":default:return Ue}},vr=function(Ue){return Ue+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};pn.prototype.createLinearGradient=function(){var Ue=function(){};return Ue.colorStops=[],Ue.addColorStop=function(hn,yn){this.colorStops.push([hn,yn])},Ue.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},Ue.isCanvasGradient=!0,Ue},pn.prototype.createPattern=function(){return this.createLinearGradient()},pn.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Ti=function(Ue,hn,yn,Mn,Zn,li,oi,Fi,ki){for(var Xi=Ye.call(this,yn,Mn,Zn,li),ar=0;ar<Xi.length;ar++){var gr=Xi[ar];ar===0&&(ki?zn.call(this,gr.x1+Ue,gr.y1+hn):Yi.call(this,gr.x1+Ue,gr.y1+hn)),Ee.call(this,Ue,hn,gr.x2,gr.y2,gr.x3,gr.y3,gr.x4,gr.y4)}Fi?Vr.call(this):Br.call(this,oi)},Br=function(Ue){switch(Ue){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Vr=function(){this.pdf.clip(),this.pdf.discardPath()},zn=function(Ue,hn){this.pdf.internal.out(Et(Ue)+" "+jt(hn)+" m")},Xn=function(Ue){var hn;switch(Ue.align){case"right":case"end":hn="right";break;case"center":hn="center";break;case"left":case"start":default:hn="left"}var yn=this.pdf.getTextDimensions(Ue.text),Mn=io.call(this,Ue.y),Zn=vr.call(this,Mn)-yn.h,li=this.ctx.transform.applyToPoint(new ye(Ue.x,Mn)),oi=this.ctx.transform.decompose(),Fi=new Ie;Fi=(Fi=(Fi=Fi.multiply(oi.translate)).multiply(oi.skew)).multiply(oi.scale);for(var ki,Xi,ar,gr=this.ctx.transform.applyToRectangle(new Se(Ue.x,Mn,yn.w,yn.h)),qr=Fi.applyToRectangle(new Se(Ue.x,Zn,yn.w,yn.h)),qi=pi.call(this,qr),Qn=[],so=0;so<qi.length;so+=1)Qn.indexOf(qi[so])===-1&&Qn.push(qi[so]);if(Hi(Qn),this.autoPaging)for(var uo=Qn[0],rr=Qn[Qn.length-1],wr=uo;wr<rr+1;wr++){this.pdf.setPage(wr);var mr=wr===1?this.posY+this.margin[0]:this.margin[0],ir=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Or=this.pdf.internal.pageSize.height-this.margin[2],ho=Or-this.margin[0],So=this.pdf.internal.pageSize.width-this.margin[1],Fo=So-this.margin[3],Gr=wr===1?0:ir+(wr-2)*ho;if(this.ctx.clip_path.length!==0){var Vo=this.path;ki=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=gi(ki,this.posX+this.margin[3],-1*Gr+mr),Ir.call(this,"fill",!0),this.path=Vo}var No=gi([JSON.parse(JSON.stringify(qr))],this.posX+this.margin[3],-Gr+mr+this.ctx.prevPageLastElemOffset)[0];Ue.scale>=.01&&(Xi=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Xi*Ue.scale),ar=this.lineWidth,this.lineWidth=ar*Ue.scale);var hs=this.autoPaging!=="text";if(hs||No.y+No.h<=Or){if(hs||No.y>=mr&&No.x<=So){var co=hs?Ue.text:this.pdf.splitTextToSize(Ue.text,Ue.maxWidth||So-No.x)[0],Pa=gi([JSON.parse(JSON.stringify(gr))],this.posX+this.margin[3],-Gr+mr+this.ctx.prevPageLastElemOffset)[0],Os=hs&&(wr>uo||wr<rr)&&$n.call(this);Os&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Fo,ho,null).clip().discardPath()),this.pdf.text(co,Pa.x,Pa.y,{angle:Ue.angle,align:hn,renderingMode:Ue.renderingMode}),Os&&this.pdf.restoreGraphicsState()}}else No.y<Or&&(this.ctx.prevPageLastElemOffset+=Or-No.y);Ue.scale>=.01&&(this.pdf.setFontSize(Xi),this.lineWidth=ar)}else Ue.scale>=.01&&(Xi=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Xi*Ue.scale),ar=this.lineWidth,this.lineWidth=ar*Ue.scale),this.pdf.text(Ue.text,li.x+this.posX,li.y+this.posY,{angle:Ue.angle,align:hn,renderingMode:Ue.renderingMode,maxWidth:Ue.maxWidth}),Ue.scale>=.01&&(this.pdf.setFontSize(Xi),this.lineWidth=ar)},Yi=function(Ue,hn,yn,Mn){yn=yn||0,Mn=Mn||0,this.pdf.internal.out(Et(Ue+yn)+" "+jt(hn+Mn)+" l")},ve=function(Ue,hn,yn){return this.pdf.lines(Ue,hn,yn,null,null)},Ee=function(Ue,hn,yn,Mn,Zn,li,oi,Fi){this.pdf.internal.out([mt(le(yn+Ue)),mt(Zt(Mn+hn)),mt(le(Zn+Ue)),mt(Zt(li+hn)),mt(le(oi+Ue)),mt(Zt(Fi+hn)),"c"].join(" "))},Ye=function(Ue,hn,yn,Mn){for(var Zn=2*Math.PI,li=Math.PI/2;hn>yn;)hn-=Zn;var oi=Math.abs(yn-hn);oi<Zn&&Mn&&(oi=Zn-oi);for(var Fi=[],ki=Mn?-1:1,Xi=hn;oi>1e-5;){var ar=Xi+ki*Math.min(oi,li);Fi.push(on.call(this,Ue,Xi,ar)),oi-=Math.abs(ar-Xi),Xi=ar}return Fi},on=function(Ue,hn,yn){var Mn=(yn-hn)/2,Zn=Ue*Math.cos(Mn),li=Ue*Math.sin(Mn),oi=Zn,Fi=-li,ki=oi*oi+Fi*Fi,Xi=ki+oi*Zn+Fi*li,ar=4/3*(Math.sqrt(2*ki*Xi)-Xi)/(oi*li-Fi*Zn),gr=oi-ar*Fi,qr=Fi+ar*oi,qi=gr,Qn=-qr,so=Mn+hn,uo=Math.cos(so),rr=Math.sin(so);return{x1:Ue*Math.cos(hn),y1:Ue*Math.sin(hn),x2:gr*uo-qr*rr,y2:gr*rr+qr*uo,x3:qi*uo-Qn*rr,y3:qi*rr+Qn*uo,x4:Ue*Math.cos(yn),y4:Ue*Math.sin(yn)}},cn=function(Ue){return 180*Ue/Math.PI},dn=function(Ue,hn,yn,Mn,Zn,li){var oi=Ue+.5*(yn-Ue),Fi=hn+.5*(Mn-hn),ki=Zn+.5*(yn-Zn),Xi=li+.5*(Mn-li),ar=Math.min(Ue,Zn,oi,ki),gr=Math.max(Ue,Zn,oi,ki),qr=Math.min(hn,li,Fi,Xi),qi=Math.max(hn,li,Fi,Xi);return new Se(ar,qr,gr-ar,qi-qr)},Dn=function(Ue,hn,yn,Mn,Zn,li,oi,Fi){var ki,Xi,ar,gr,qr,qi,Qn,so,uo,rr,wr,mr,ir,Or,ho=yn-Ue,So=Mn-hn,Fo=Zn-yn,Gr=li-Mn,Vo=oi-Zn,No=Fi-li;for(Xi=0;Xi<41;Xi++)uo=(Qn=(ar=Ue+(ki=Xi/40)*ho)+ki*((qr=yn+ki*Fo)-ar))+ki*(qr+ki*(Zn+ki*Vo-qr)-Qn),rr=(so=(gr=hn+ki*So)+ki*((qi=Mn+ki*Gr)-gr))+ki*(qi+ki*(li+ki*No-qi)-so),Xi==0?(wr=uo,mr=rr,ir=uo,Or=rr):(wr=Math.min(wr,uo),mr=Math.min(mr,rr),ir=Math.max(ir,uo),Or=Math.max(Or,rr));return new Se(Math.round(wr),Math.round(mr),Math.round(ir-wr),Math.round(Or-mr))},Jn=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var Ue,hn,yn=(Ue=this.ctx.lineDash,hn=this.ctx.lineDashOffset,JSON.stringify({lineDash:Ue,lineDashOffset:hn}));this.prevLineDash!==yn&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=yn)}}})(zo.API),function(Pt){var mt=function(Zt){var ye,Se,Ie,tn,mn,pn,Tn,ze,di,$n;for(/[^\x00-\xFF]/.test(Zt),Se=[],Ie=0,tn=(Zt+=ye="\0\0\0\0".slice(Zt.length%4||4)).length;tn>Ie;Ie+=4)(mn=(Zt.charCodeAt(Ie)<<24)+(Zt.charCodeAt(Ie+1)<<16)+(Zt.charCodeAt(Ie+2)<<8)+Zt.charCodeAt(Ie+3))!==0?(pn=(mn=((mn=((mn=((mn=(mn-($n=mn%85))/85)-(di=mn%85))/85)-(ze=mn%85))/85)-(Tn=mn%85))/85)%85,Se.push(pn+33,Tn+33,ze+33,di+33,$n+33)):Se.push(122);return function(pi,Hn){for(var gi=Hn;gi>0;gi--)pi.pop()}(Se,ye.length),String.fromCharCode.apply(String,Se)+"~>"},Et=function(Zt){var ye,Se,Ie,tn,mn,pn=String,Tn="length",ze=255,di="charCodeAt",$n="slice",pi="replace";for(Zt[$n](-2),Zt=Zt[$n](0,-2)[pi](/\s/g,"")[pi]("z","!!!!!"),Ie=[],tn=0,mn=(Zt+=ye="uuuuu"[$n](Zt[Tn]%5||5))[Tn];mn>tn;tn+=5)Se=52200625*(Zt[di](tn)-33)+614125*(Zt[di](tn+1)-33)+7225*(Zt[di](tn+2)-33)+85*(Zt[di](tn+3)-33)+(Zt[di](tn+4)-33),Ie.push(ze&Se>>24,ze&Se>>16,ze&Se>>8,ze&Se);return function(Hn,gi){for(var Hi=gi;Hi>0;Hi--)Hn.pop()}(Ie,ye[Tn]),pn.fromCharCode.apply(pn,Ie)},jt=function(Zt){var ye=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((Zt=Zt.replace(/\s/g,"")).indexOf(">")!==-1&&(Zt=Zt.substr(0,Zt.indexOf(">"))),Zt.length%2&&(Zt+="0"),ye.test(Zt)===!1)return"";for(var Se="",Ie=0;Ie<Zt.length;Ie+=2)Se+=String.fromCharCode("0x"+(Zt[Ie]+Zt[Ie+1]));return Se},le=function(Zt){for(var ye=new Uint8Array(Zt.length),Se=Zt.length;Se--;)ye[Se]=Zt.charCodeAt(Se);return Zt=(ye=On(ye)).reduce(function(Ie,tn){return Ie+String.fromCharCode(tn)},"")};Pt.processDataByFilters=function(Zt,ye){var Se=0,Ie=Zt||"",tn=[];for(typeof(ye=ye||[])=="string"&&(ye=[ye]),Se=0;Se<ye.length;Se+=1)switch(ye[Se]){case"ASCII85Decode":case"/ASCII85Decode":Ie=Et(Ie),tn.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":Ie=mt(Ie),tn.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":Ie=jt(Ie),tn.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":Ie=Ie.split("").map(function(mn){return("0"+mn.charCodeAt().toString(16)).slice(-2)}).join("")+">",tn.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":Ie=le(Ie),tn.push("/FlateDecode");break;default:throw new Error('The filter: "'+ye[Se]+'" is not implemented')}return{data:Ie,reverseChain:tn.reverse().join(" ")}}}(zo.API),function(Pt){Pt.loadFile=function(mt,Et,jt){return function(le,Zt,ye){Zt=Zt!==!1,ye=typeof ye=="function"?ye:function(){};var Se=void 0;try{Se=function(Ie,tn,mn){var pn=new XMLHttpRequest,Tn=0,ze=function(di){var $n=di.length,pi=[],Hn=String.fromCharCode;for(Tn=0;Tn<$n;Tn+=1)pi.push(Hn(255&di.charCodeAt(Tn)));return pi.join("")};if(pn.open("GET",Ie,!tn),pn.overrideMimeType("text/plain; charset=x-user-defined"),tn===!1&&(pn.onload=function(){pn.status===200?mn(ze(this.responseText)):mn(void 0)}),pn.send(null),tn&&pn.status===200)return ze(pn.responseText)}(le,Zt,ye)}catch(Ie){}return Se}(mt,Et,jt)},Pt.loadImageFile=Pt.loadFile}(zo.API),function(Pt){function mt(){return(_r.html2canvas?Promise.resolve(_r.html2canvas):Promise.resolve().then(Bt.t.bind(Bt,64270,23))).catch(function(ye){return Promise.reject(new Error("Could not load html2canvas: "+ye))}).then(function(ye){return ye.default?ye.default:ye})}function Et(){return(_r.DOMPurify?Promise.resolve(_r.DOMPurify):Bt.e(7631).then(Bt.bind(Bt,87631))).catch(function(ye){return Promise.reject(new Error("Could not load dompurify: "+ye))}).then(function(ye){return ye.default?ye.default:ye})}var jt=function(ye){var Se=(0,bt.Z)(ye);return Se==="undefined"?"undefined":Se==="string"||ye instanceof String?"string":Se==="number"||ye instanceof Number?"number":Se==="function"||ye instanceof Function?"function":ye&&ye.constructor===Array?"array":ye&&ye.nodeType===1?"element":Se==="object"?"object":"unknown"},le=function(ye,Se){var Ie=document.createElement(ye);for(var tn in Se.className&&(Ie.className=Se.className),Se.innerHTML&&Se.dompurify&&(Ie.innerHTML=Se.dompurify.sanitize(Se.innerHTML)),Se.style)Ie.style[tn]=Se.style[tn];return Ie},Zt=function ye(Se){var Ie=Object.assign(ye.convert(Promise.resolve()),JSON.parse(JSON.stringify(ye.template))),tn=ye.convert(Promise.resolve(),Ie);return tn=(tn=tn.setProgress(1,ye,1,[ye])).set(Se)};(Zt.prototype=Object.create(Promise.prototype)).constructor=Zt,Zt.convert=function(ye,Se){return ye.__proto__=Se||Zt.prototype,ye},Zt.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},Zt.prototype.from=function(ye,Se){return this.then(function(){switch(Se=Se||function(Ie){switch(jt(Ie)){case"string":return"string";case"element":return Ie.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(ye)){case"string":return this.then(Et).then(function(Ie){return this.set({src:le("div",{innerHTML:ye,dompurify:Ie})})});case"element":return this.set({src:ye});case"canvas":return this.set({canvas:ye});case"img":return this.set({img:ye});default:return this.error("Unknown source type.")}})},Zt.prototype.to=function(ye){switch(ye){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},Zt.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var ye={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},Se=function Ie(tn,mn){for(var pn=tn.nodeType===3?document.createTextNode(tn.nodeValue):tn.cloneNode(!1),Tn=tn.firstChild;Tn;Tn=Tn.nextSibling)mn!==!0&&Tn.nodeType===1&&Tn.nodeName==="SCRIPT"||pn.appendChild(Ie(Tn,mn));return tn.nodeType===1&&(tn.nodeName==="CANVAS"?(pn.width=tn.width,pn.height=tn.height,pn.getContext("2d").drawImage(tn,0,0)):tn.nodeName!=="TEXTAREA"&&tn.nodeName!=="SELECT"||(pn.value=tn.value),pn.addEventListener("load",function(){pn.scrollTop=tn.scrollTop,pn.scrollLeft=tn.scrollLeft},!0)),pn}(this.prop.src,this.opt.html2canvas.javascriptEnabled);Se.tagName==="BODY"&&(ye.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=le("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=le("div",{className:"html2pdf__container",style:ye}),this.prop.container.appendChild(Se),this.prop.container.firstChild.appendChild(le("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},Zt.prototype.toCanvas=function(){var ye=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(ye).then(mt).then(function(Se){var Ie=Object.assign({},this.opt.html2canvas);return delete Ie.onrendered,Se(this.prop.container,Ie)}).then(function(Se){(this.opt.html2canvas.onrendered||function(){})(Se),this.prop.canvas=Se,document.body.removeChild(this.prop.overlay)})},Zt.prototype.toContext2d=function(){var ye=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(ye).then(mt).then(function(Se){var Ie=this.opt.jsPDF,tn=this.opt.fontFaces,mn=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,pn=Object.assign({async:!0,allowTaint:!0,scale:mn,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete pn.onrendered,Ie.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,Ie.context2d.posX=this.opt.x,Ie.context2d.posY=this.opt.y,Ie.context2d.margin=this.opt.margin,Ie.context2d.fontFaces=tn,tn)for(var Tn=0;Tn<tn.length;++Tn){var ze=tn[Tn],di=ze.src.find(function($n){return $n.format==="truetype"});di&&Ie.addFont(di.url,ze.ref.name,ze.ref.style)}return pn.windowHeight=pn.windowHeight||0,pn.windowHeight=pn.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):pn.windowHeight,Ie.context2d.save(!0),Se(this.prop.container,pn)}).then(function(Se){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(Se),this.prop.canvas=Se,document.body.removeChild(this.prop.overlay)})},Zt.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var ye=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=ye})},Zt.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},Zt.prototype.output=function(ye,Se,Ie){return(Ie=Ie||"pdf").toLowerCase()==="img"||Ie.toLowerCase()==="image"?this.outputImg(ye,Se):this.outputPdf(ye,Se)},Zt.prototype.outputPdf=function(ye,Se){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(ye,Se)})},Zt.prototype.outputImg=function(ye){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(ye){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+ye+'" is not supported.'}})},Zt.prototype.save=function(ye){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(ye?{filename:ye}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},Zt.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},Zt.prototype.set=function(ye){if(jt(ye)!=="object")return this;var Se=Object.keys(ye||{}).map(function(Ie){if(Ie in Zt.template.prop)return function(){this.prop[Ie]=ye[Ie]};switch(Ie){case"margin":return this.setMargin.bind(this,ye.margin);case"jsPDF":return function(){return this.opt.jsPDF=ye.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,ye.pageSize);default:return function(){this.opt[Ie]=ye[Ie]}}},this);return this.then(function(){return this.thenList(Se)})},Zt.prototype.get=function(ye,Se){return this.then(function(){var Ie=ye in Zt.template.prop?this.prop[ye]:this.opt[ye];return Se?Se(Ie):Ie})},Zt.prototype.setMargin=function(ye){return this.then(function(){switch(jt(ye)){case"number":ye=[ye,ye,ye,ye];case"array":if(ye.length===2&&(ye=[ye[0],ye[1],ye[0],ye[1]]),ye.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=ye}).then(this.setPageSize)},Zt.prototype.setPageSize=function(ye){function Se(Ie,tn){return Math.floor(Ie*tn/72*96)}return this.then(function(){(ye=ye||zo.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(ye.inner={width:ye.width-this.opt.margin[1]-this.opt.margin[3],height:ye.height-this.opt.margin[0]-this.opt.margin[2]},ye.inner.px={width:Se(ye.inner.width,ye.k),height:Se(ye.inner.height,ye.k)},ye.inner.ratio=ye.inner.height/ye.inner.width),this.prop.pageSize=ye})},Zt.prototype.setProgress=function(ye,Se,Ie,tn){return ye!=null&&(this.progress.val=ye),Se!=null&&(this.progress.state=Se),Ie!=null&&(this.progress.n=Ie),tn!=null&&(this.progress.stack=tn),this.progress.ratio=this.progress.val/this.progress.state,this},Zt.prototype.updateProgress=function(ye,Se,Ie,tn){return this.setProgress(ye?this.progress.val+ye:null,Se||null,Ie?this.progress.n+Ie:null,tn?this.progress.stack.concat(tn):null)},Zt.prototype.then=function(ye,Se){var Ie=this;return this.thenCore(ye,Se,function(tn,mn){return Ie.updateProgress(null,null,1,[tn]),Promise.prototype.then.call(this,function(pn){return Ie.updateProgress(null,tn),pn}).then(tn,mn).then(function(pn){return Ie.updateProgress(1),pn})})},Zt.prototype.thenCore=function(ye,Se,Ie){Ie=Ie||Promise.prototype.then,ye&&(ye=ye.bind(this)),Se&&(Se=Se.bind(this));var tn=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:Zt.convert(Object.assign({},this),Promise.prototype),mn=Ie.call(tn,ye,Se);return Zt.convert(mn,this.__proto__)},Zt.prototype.thenExternal=function(ye,Se){return Promise.prototype.then.call(this,ye,Se)},Zt.prototype.thenList=function(ye){var Se=this;return ye.forEach(function(Ie){Se=Se.thenCore(Ie)}),Se},Zt.prototype.catch=function(ye){ye&&(ye=ye.bind(this));var Se=Promise.prototype.catch.call(this,ye);return Zt.convert(Se,this)},Zt.prototype.catchExternal=function(ye){return Promise.prototype.catch.call(this,ye)},Zt.prototype.error=function(ye){return this.then(function(){throw new Error(ye)})},Zt.prototype.using=Zt.prototype.set,Zt.prototype.saveAs=Zt.prototype.save,Zt.prototype.export=Zt.prototype.output,Zt.prototype.run=Zt.prototype.then,zo.getPageSize=function(ye,Se,Ie){if((0,bt.Z)(ye)==="object"){var tn=ye;ye=tn.orientation,Se=tn.unit||Se,Ie=tn.format||Ie}Se=Se||"mm",Ie=Ie||"a4",ye=(""+(ye||"P")).toLowerCase();var mn,pn=(""+Ie).toLowerCase(),Tn={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(Se){case"pt":mn=1;break;case"mm":mn=72/25.4;break;case"cm":mn=72/2.54;break;case"in":mn=72;break;case"px":mn=.75;break;case"pc":case"em":mn=12;break;case"ex":mn=6;break;default:throw"Invalid unit: "+Se}var ze,di=0,$n=0;if(Tn.hasOwnProperty(pn))di=Tn[pn][1]/mn,$n=Tn[pn][0]/mn;else try{di=Ie[1],$n=Ie[0]}catch(pi){throw new Error("Invalid format: "+Ie)}if(ye==="p"||ye==="portrait")ye="p",$n>di&&(ze=$n,$n=di,di=ze);else{if(ye!=="l"&&ye!=="landscape")throw"Invalid orientation: "+ye;ye="l",di>$n&&(ze=$n,$n=di,di=ze)}return{width:$n,height:di,unit:Se,k:mn,orientation:ye}},Pt.html=function(ye,Se){(Se=Se||{}).callback=Se.callback||function(){},Se.html2canvas=Se.html2canvas||{},Se.html2canvas.canvas=Se.html2canvas.canvas||this.canvas,Se.jsPDF=Se.jsPDF||this,Se.fontFaces=Se.fontFaces?Se.fontFaces.map(Vc):null;var Ie=new Zt(Se);return Se.worker?Ie:Ie.from(ye).doCallback()}}(zo.API),zo.API.addJS=function(Pt){return Ac=Pt,this.internal.events.subscribe("postPutResources",function(){nl=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(nl+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Dl=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Ac+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){nl!==void 0&&Dl!==void 0&&this.internal.out("/Names <</JavaScript "+nl+" 0 R>>")}),this},function(Pt){var mt;Pt.events.push(["postPutResources",function(){var Et=this,jt=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var le=Et.outline.render().split(/\r\n/),Zt=0;Zt<le.length;Zt++){var ye=le[Zt],Se=jt.exec(ye);if(Se!=null){var Ie=Se[1];Et.internal.newObjectDeferredBegin(Ie,!1)}Et.internal.write(ye)}if(this.outline.createNamedDestinations){var tn=this.internal.pages.length,mn=[];for(Zt=0;Zt<tn;Zt++){var pn=Et.internal.newObject();mn.push(pn);var Tn=Et.internal.getPageInfo(Zt+1);Et.internal.write("<< /D["+Tn.objId+" 0 R /XYZ null null null]>> endobj")}var ze=Et.internal.newObject();for(Et.internal.write("<< /Names [ "),Zt=0;Zt<mn.length;Zt++)Et.internal.write("(page_"+(Zt+1)+")"+mn[Zt]+" 0 R");Et.internal.write(" ] >>","endobj"),mt=Et.internal.newObject(),Et.internal.write("<< /Dests "+ze+" 0 R"),Et.internal.write(">>","endobj")}}]),Pt.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+mt+" 0 R"))}]),Pt.events.push(["initialized",function(){var Et=this;Et.outline={createNamedDestinations:!1,root:{children:[]}},Et.outline.add=function(jt,le,Zt){var ye={title:le,options:Zt,children:[]};return jt==null&&(jt=this.root),jt.children.push(ye),ye},Et.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=Et,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},Et.outline.genIds_r=function(jt){jt.id=Et.internal.newObjectDeferred();for(var le=0;le<jt.children.length;le++)this.genIds_r(jt.children[le])},Et.outline.renderRoot=function(jt){this.objStart(jt),this.line("/Type /Outlines"),jt.children.length>0&&(this.line("/First "+this.makeRef(jt.children[0])),this.line("/Last "+this.makeRef(jt.children[jt.children.length-1]))),this.line("/Count "+this.count_r({count:0},jt)),this.objEnd()},Et.outline.renderItems=function(jt){for(var le=this.ctx.pdf.internal.getVerticalCoordinateString,Zt=0;Zt<jt.children.length;Zt++){var ye=jt.children[Zt];this.objStart(ye),this.line("/Title "+this.makeString(ye.title)),this.line("/Parent "+this.makeRef(jt)),Zt>0&&this.line("/Prev "+this.makeRef(jt.children[Zt-1])),Zt<jt.children.length-1&&this.line("/Next "+this.makeRef(jt.children[Zt+1])),ye.children.length>0&&(this.line("/First "+this.makeRef(ye.children[0])),this.line("/Last "+this.makeRef(ye.children[ye.children.length-1])));var Se=this.count=this.count_r({count:0},ye);if(Se>0&&this.line("/Count "+Se),ye.options&&ye.options.pageNumber){var Ie=Et.internal.getPageInfo(ye.options.pageNumber);this.line("/Dest ["+Ie.objId+" 0 R /XYZ 0 "+le(0)+" 0]")}this.objEnd()}for(var tn=0;tn<jt.children.length;tn++)this.renderItems(jt.children[tn])},Et.outline.line=function(jt){this.ctx.val+=jt+`\r
|
|
|
`},Et.outline.makeRef=function(jt){return jt.id+" 0 R"},Et.outline.makeString=function(jt){return"("+Et.internal.pdfEscape(jt)+")"},Et.outline.objStart=function(jt){this.ctx.val+=`\r
|
|
|
`+jt.id+` 0 obj\r
|
|
|
<<\r
|
|
|
`},Et.outline.objEnd=function(){this.ctx.val+=`>> \r
|
|
|
endobj\r
|
|
|
`},Et.outline.count_r=function(jt,le){for(var Zt=0;Zt<le.children.length;Zt++)jt.count++,this.count_r(jt,le.children[Zt]);return jt.count}}])}(zo.API),function(Pt){var mt=[192,193,194,195,196,197,198,199];Pt.processJPEG=function(Et,jt,le,Zt,ye,Se){var Ie,tn=this.decode.DCT_DECODE,mn=null;if(typeof Et=="string"||this.__addimage__.isArrayBuffer(Et)||this.__addimage__.isArrayBufferView(Et)){switch(Et=ye||Et,Et=this.__addimage__.isArrayBuffer(Et)?new Uint8Array(Et):Et,(Ie=function(pn){for(var Tn,ze=256*pn.charCodeAt(4)+pn.charCodeAt(5),di=pn.length,$n={width:0,height:0,numcomponents:1},pi=4;pi<di;pi+=2){if(pi+=ze,mt.indexOf(pn.charCodeAt(pi+1))!==-1){Tn=256*pn.charCodeAt(pi+5)+pn.charCodeAt(pi+6),$n={width:256*pn.charCodeAt(pi+7)+pn.charCodeAt(pi+8),height:Tn,numcomponents:pn.charCodeAt(pi+9)};break}ze=256*pn.charCodeAt(pi+2)+pn.charCodeAt(pi+3)}return $n}(Et=this.__addimage__.isArrayBufferView(Et)?this.__addimage__.arrayBufferToBinaryString(Et):Et)).numcomponents){case 1:Se=this.color_spaces.DEVICE_GRAY;break;case 4:Se=this.color_spaces.DEVICE_CMYK;break;case 3:Se=this.color_spaces.DEVICE_RGB}mn={data:Et,width:Ie.width,height:Ie.height,colorSpace:Se,bitsPerComponent:8,filter:tn,index:jt,alias:le}}return mn}}(zo.API);var cl,Ud,od,Ah,Ko,sA=function(){var Pt,mt,Et;function jt(Zt){var ye,Se,Ie,tn,mn,pn,Tn,ze,di,$n,pi,Hn,gi,Hi;for(this.data=Zt,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},pn=null;;){switch(ye=this.readUInt32(),di=function(){var ur,Ir;for(Ir=[],ur=0;ur<4;++ur)Ir.push(String.fromCharCode(this.data[this.pos++]));return Ir}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(ye);break;case"fcTL":pn&&this.animation.frames.push(pn),this.pos+=4,pn={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},mn=this.readUInt16(),tn=this.readUInt16()||100,pn.delay=1e3*mn/tn,pn.disposeOp=this.data[this.pos++],pn.blendOp=this.data[this.pos++],pn.data=[];break;case"IDAT":case"fdAT":for(di==="fdAT"&&(this.pos+=4,ye-=4),Zt=(pn!=null?pn.data:void 0)||this.imgData,Hn=0;0<=ye?Hn<ye:Hn>ye;0<=ye?++Hn:--Hn)Zt.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(Ie=this.palette.length/3,this.transparency.indexed=this.read(ye),this.transparency.indexed.length>Ie)throw new Error("More transparent colors than palette size");if(($n=Ie-this.transparency.indexed.length)>0)for(gi=0;0<=$n?gi<$n:gi>$n;0<=$n?++gi:--gi)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(ye)[0];break;case 2:this.transparency.rgb=this.read(ye)}break;case"tEXt":Tn=(pi=this.read(ye)).indexOf(0),ze=String.fromCharCode.apply(String,pi.slice(0,Tn)),this.text[ze]=String.fromCharCode.apply(String,pi.slice(Tn+1));break;case"IEND":return pn&&this.animation.frames.push(pn),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(Hi=this.colorType)===4||Hi===6,Se=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*Se,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=ye}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}jt.prototype.read=function(Zt){var ye,Se;for(Se=[],ye=0;0<=Zt?ye<Zt:ye>Zt;0<=Zt?++ye:--ye)Se.push(this.data[this.pos++]);return Se},jt.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},jt.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},jt.prototype.decodePixels=function(Zt){var ye=this.pixelBitlength/8,Se=new Uint8Array(this.width*this.height*ye),Ie=0,tn=this;if(Zt==null&&(Zt=this.imgData),Zt.length===0)return new Uint8Array(0);function mn(pn,Tn,ze,di){var $n,pi,Hn,gi,Hi,ur,Ir,io,vr,Ti,Br,Vr,zn,Xn,Yi,ve,Ee,Ye,on,cn,dn,Dn=Math.ceil((tn.width-pn)/ze),Jn=Math.ceil((tn.height-Tn)/di),Ue=tn.width==Dn&&tn.height==Jn;for(Xn=ye*Dn,Vr=Ue?Se:new Uint8Array(Xn*Jn),ur=Zt.length,zn=0,pi=0;zn<Jn&&Ie<ur;){switch(Zt[Ie++]){case 0:for(gi=Ee=0;Ee<Xn;gi=Ee+=1)Vr[pi++]=Zt[Ie++];break;case 1:for(gi=Ye=0;Ye<Xn;gi=Ye+=1)$n=Zt[Ie++],Hi=gi<ye?0:Vr[pi-ye],Vr[pi++]=($n+Hi)%256;break;case 2:for(gi=on=0;on<Xn;gi=on+=1)$n=Zt[Ie++],Hn=(gi-gi%ye)/ye,Yi=zn&&Vr[(zn-1)*Xn+Hn*ye+gi%ye],Vr[pi++]=(Yi+$n)%256;break;case 3:for(gi=cn=0;cn<Xn;gi=cn+=1)$n=Zt[Ie++],Hn=(gi-gi%ye)/ye,Hi=gi<ye?0:Vr[pi-ye],Yi=zn&&Vr[(zn-1)*Xn+Hn*ye+gi%ye],Vr[pi++]=($n+Math.floor((Hi+Yi)/2))%256;break;case 4:for(gi=dn=0;dn<Xn;gi=dn+=1)$n=Zt[Ie++],Hn=(gi-gi%ye)/ye,Hi=gi<ye?0:Vr[pi-ye],zn===0?Yi=ve=0:(Yi=Vr[(zn-1)*Xn+Hn*ye+gi%ye],ve=Hn&&Vr[(zn-1)*Xn+(Hn-1)*ye+gi%ye]),Ir=Hi+Yi-ve,io=Math.abs(Ir-Hi),Ti=Math.abs(Ir-Yi),Br=Math.abs(Ir-ve),vr=io<=Ti&&io<=Br?Hi:Ti<=Br?Yi:ve,Vr[pi++]=($n+vr)%256;break;default:throw new Error("Invalid filter algorithm: "+Zt[Ie-1])}if(!Ue){var hn=((Tn+zn*di)*tn.width+pn)*ye,yn=zn*Xn;for(gi=0;gi<Dn;gi+=1){for(var Mn=0;Mn<ye;Mn+=1)Se[hn++]=Vr[yn++];hn+=(ze-1)*ye}}zn++}}return Zt=gn(Zt),tn.interlaceMethod==1?(mn(0,0,8,8),mn(4,0,8,8),mn(0,4,4,8),mn(2,0,4,4),mn(0,2,2,4),mn(1,0,2,2),mn(0,1,1,2)):mn(0,0,1,1),Se},jt.prototype.decodePalette=function(){var Zt,ye,Se,Ie,tn,mn,pn,Tn,ze;for(Se=this.palette,mn=this.transparency.indexed||[],tn=new Uint8Array((mn.length||0)+Se.length),Ie=0,Zt=0,ye=pn=0,Tn=Se.length;pn<Tn;ye=pn+=3)tn[Ie++]=Se[ye],tn[Ie++]=Se[ye+1],tn[Ie++]=Se[ye+2],tn[Ie++]=(ze=mn[Zt++])!=null?ze:255;return tn},jt.prototype.copyToImageData=function(Zt,ye){var Se,Ie,tn,mn,pn,Tn,ze,di,$n,pi,Hn;if(Ie=this.colors,$n=null,Se=this.hasAlphaChannel,this.palette.length&&($n=(Hn=this._decodedPalette)!=null?Hn:this._decodedPalette=this.decodePalette(),Ie=4,Se=!0),di=(tn=Zt.data||Zt).length,pn=$n||ye,mn=Tn=0,Ie===1)for(;mn<di;)ze=$n?4*ye[mn/4]:Tn,pi=pn[ze++],tn[mn++]=pi,tn[mn++]=pi,tn[mn++]=pi,tn[mn++]=Se?pn[ze++]:255,Tn=ze;else for(;mn<di;)ze=$n?4*ye[mn/4]:Tn,tn[mn++]=pn[ze++],tn[mn++]=pn[ze++],tn[mn++]=pn[ze++],tn[mn++]=Se?pn[ze++]:255,Tn=ze},jt.prototype.decode=function(){var Zt;return Zt=new Uint8Array(this.width*this.height*4),this.copyToImageData(Zt,this.decodePixels()),Zt};var le=function(){if(Object.prototype.toString.call(_r)==="[object Window]"){try{mt=_r.document.createElement("canvas"),Et=mt.getContext("2d")}catch(Zt){return!1}return!0}return!1};return le(),Pt=function(Zt){var ye;if(le()===!0)return Et.width=Zt.width,Et.height=Zt.height,Et.clearRect(0,0,Zt.width,Zt.height),Et.putImageData(Zt,0,0),(ye=new Image).src=mt.toDataURL(),ye;throw new Error("This method requires a Browser with Canvas-capability.")},jt.prototype.decodeFrames=function(Zt){var ye,Se,Ie,tn,mn,pn,Tn,ze;if(this.animation){for(ze=[],Se=mn=0,pn=(Tn=this.animation.frames).length;mn<pn;Se=++mn)ye=Tn[Se],Ie=Zt.createImageData(ye.width,ye.height),tn=this.decodePixels(new Uint8Array(ye.data)),this.copyToImageData(Ie,tn),ye.imageData=Ie,ze.push(ye.image=Pt(Ie));return ze}},jt.prototype.renderFrame=function(Zt,ye){var Se,Ie,tn;return Se=(Ie=this.animation.frames)[ye],tn=Ie[ye-1],ye===0&&Zt.clearRect(0,0,this.width,this.height),(tn!=null?tn.disposeOp:void 0)===1?Zt.clearRect(tn.xOffset,tn.yOffset,tn.width,tn.height):(tn!=null?tn.disposeOp:void 0)===2&&Zt.putImageData(tn.imageData,tn.xOffset,tn.yOffset),Se.blendOp===0&&Zt.clearRect(Se.xOffset,Se.yOffset,Se.width,Se.height),Zt.drawImage(Se.image,Se.xOffset,Se.yOffset)},jt.prototype.animate=function(Zt){var ye,Se,Ie,tn,mn,pn,Tn=this;return Se=0,pn=this.animation,tn=pn.numFrames,Ie=pn.frames,mn=pn.numPlays,(ye=function(){var ze,di;if(ze=Se++%tn,di=Ie[ze],Tn.renderFrame(Zt,ze),tn>1&&Se/tn<mn)return Tn.animation._timeout=setTimeout(ye,di.delay)})()},jt.prototype.stopAnimation=function(){var Zt;return clearTimeout((Zt=this.animation)!=null?Zt._timeout:void 0)},jt.prototype.render=function(Zt){var ye,Se;return Zt._png&&Zt._png.stopAnimation(),Zt._png=this,Zt.width=this.width,Zt.height=this.height,ye=Zt.getContext("2d"),this.animation?(this.decodeFrames(ye),this.animate(ye)):(Se=ye.createImageData(this.width,this.height),this.copyToImageData(Se,this.decodePixels()),ye.putImageData(Se,0,0))},jt}();function Ln(Pt){var mt=0;if(Pt[mt++]!==71||Pt[mt++]!==73||Pt[mt++]!==70||Pt[mt++]!==56||(Pt[mt++]+1&253)!=56||Pt[mt++]!==97)throw new Error("Invalid GIF 87a/89a header.");var Et=Pt[mt++]|Pt[mt++]<<8,jt=Pt[mt++]|Pt[mt++]<<8,le=Pt[mt++],Zt=le>>7,ye=1<<(7&le)+1;Pt[mt++],Pt[mt++];var Se=null,Ie=null;Zt&&(Se=mt,Ie=ye,mt+=3*ye);var tn=!0,mn=[],pn=0,Tn=null,ze=0,di=null;for(this.width=Et,this.height=jt;tn&&mt<Pt.length;)switch(Pt[mt++]){case 33:switch(Pt[mt++]){case 255:if(Pt[mt]!==11||Pt[mt+1]==78&&Pt[mt+2]==69&&Pt[mt+3]==84&&Pt[mt+4]==83&&Pt[mt+5]==67&&Pt[mt+6]==65&&Pt[mt+7]==80&&Pt[mt+8]==69&&Pt[mt+9]==50&&Pt[mt+10]==46&&Pt[mt+11]==48&&Pt[mt+12]==3&&Pt[mt+13]==1&&Pt[mt+16]==0)mt+=14,di=Pt[mt++]|Pt[mt++]<<8,mt++;else for(mt+=12;;){if(!((zn=Pt[mt++])>=0))throw Error("Invalid block size");if(zn===0)break;mt+=zn}break;case 249:if(Pt[mt++]!==4||Pt[mt+4]!==0)throw new Error("Invalid graphics extension block.");var $n=Pt[mt++];pn=Pt[mt++]|Pt[mt++]<<8,Tn=Pt[mt++],!(1&$n)&&(Tn=null),ze=$n>>2&7,mt++;break;case 254:for(;;){if(!((zn=Pt[mt++])>=0))throw Error("Invalid block size");if(zn===0)break;mt+=zn}break;default:throw new Error("Unknown graphic control label: 0x"+Pt[mt-1].toString(16))}break;case 44:var pi=Pt[mt++]|Pt[mt++]<<8,Hn=Pt[mt++]|Pt[mt++]<<8,gi=Pt[mt++]|Pt[mt++]<<8,Hi=Pt[mt++]|Pt[mt++]<<8,ur=Pt[mt++],Ir=ur>>6&1,io=1<<(7&ur)+1,vr=Se,Ti=Ie,Br=!1;ur>>7&&(Br=!0,vr=mt,Ti=io,mt+=3*io);var Vr=mt;for(mt++;;){var zn;if(!((zn=Pt[mt++])>=0))throw Error("Invalid block size");if(zn===0)break;mt+=zn}mn.push({x:pi,y:Hn,width:gi,height:Hi,has_local_palette:Br,palette_offset:vr,palette_size:Ti,data_offset:Vr,data_length:mt-Vr,transparent_index:Tn,interlaced:!!Ir,delay:pn,disposal:ze});break;case 59:tn=!1;break;default:throw new Error("Unknown gif block: 0x"+Pt[mt-1].toString(16))}this.numFrames=function(){return mn.length},this.loopCount=function(){return di},this.frameInfo=function(Xn){if(Xn<0||Xn>=mn.length)throw new Error("Frame index out of range.");return mn[Xn]},this.decodeAndBlitFrameBGRA=function(Xn,Yi){var ve=this.frameInfo(Xn),Ee=ve.width*ve.height,Ye=new Uint8Array(Ee);$i(Pt,ve.data_offset,Ye,Ee);var on=ve.palette_offset,cn=ve.transparent_index;cn===null&&(cn=256);var dn=ve.width,Dn=Et-dn,Jn=dn,Ue=4*(ve.y*Et+ve.x),hn=4*((ve.y+ve.height)*Et+ve.x),yn=Ue,Mn=4*Dn;ve.interlaced===!0&&(Mn+=4*Et*7);for(var Zn=8,li=0,oi=Ye.length;li<oi;++li){var Fi=Ye[li];if(Jn===0&&(Jn=dn,(yn+=Mn)>=hn&&(Mn=4*Dn+4*Et*(Zn-1),yn=Ue+(dn+Dn)*(Zn<<1),Zn>>=1)),Fi===cn)yn+=4;else{var ki=Pt[on+3*Fi],Xi=Pt[on+3*Fi+1],ar=Pt[on+3*Fi+2];Yi[yn++]=ar,Yi[yn++]=Xi,Yi[yn++]=ki,Yi[yn++]=255}--Jn}},this.decodeAndBlitFrameRGBA=function(Xn,Yi){var ve=this.frameInfo(Xn),Ee=ve.width*ve.height,Ye=new Uint8Array(Ee);$i(Pt,ve.data_offset,Ye,Ee);var on=ve.palette_offset,cn=ve.transparent_index;cn===null&&(cn=256);var dn=ve.width,Dn=Et-dn,Jn=dn,Ue=4*(ve.y*Et+ve.x),hn=4*((ve.y+ve.height)*Et+ve.x),yn=Ue,Mn=4*Dn;ve.interlaced===!0&&(Mn+=4*Et*7);for(var Zn=8,li=0,oi=Ye.length;li<oi;++li){var Fi=Ye[li];if(Jn===0&&(Jn=dn,(yn+=Mn)>=hn&&(Mn=4*Dn+4*Et*(Zn-1),yn=Ue+(dn+Dn)*(Zn<<1),Zn>>=1)),Fi===cn)yn+=4;else{var ki=Pt[on+3*Fi],Xi=Pt[on+3*Fi+1],ar=Pt[on+3*Fi+2];Yi[yn++]=ki,Yi[yn++]=Xi,Yi[yn++]=ar,Yi[yn++]=255}--Jn}}}function $i(Pt,mt,Et,jt){for(var le=Pt[mt++],Zt=1<<le,ye=Zt+1,Se=ye+1,Ie=le+1,tn=(1<<Ie)-1,mn=0,pn=0,Tn=0,ze=Pt[mt++],di=new Int32Array(4096),$n=null;;){for(;mn<16&&ze!==0;)pn|=Pt[mt++]<<mn,mn+=8,ze===1?ze=Pt[mt++]:--ze;if(mn<Ie)break;var pi=pn&tn;if(pn>>=Ie,mn-=Ie,pi!==Zt){if(pi===ye)break;for(var Hn=pi<Se?pi:$n,gi=0,Hi=Hn;Hi>Zt;)Hi=di[Hi]>>8,++gi;var ur=Hi;if(Tn+gi+(Hn!==pi?1:0)>jt)return void Qo.log("Warning, gif stream longer than expected.");Et[Tn++]=ur;var Ir=Tn+=gi;for(Hn!==pi&&(Et[Tn++]=ur),Hi=Hn;gi--;)Hi=di[Hi],Et[--Ir]=255&Hi,Hi>>=8;$n!==null&&Se<4096&&(di[Se++]=$n<<8|ur,Se>=tn+1&&Ie<12&&(++Ie,tn=tn<<1|1)),$n=pi}else Se=ye+1,tn=(1<<(Ie=le+1))-1,$n=null}return Tn!==jt&&Qo.log("Warning, gif stream shorter than expected."),Et}function aA(Pt){var mt,Et,jt,le,Zt,ye=Math.floor,Se=new Array(64),Ie=new Array(64),tn=new Array(64),mn=new Array(64),pn=new Array(65535),Tn=new Array(65535),ze=new Array(64),di=new Array(64),$n=[],pi=0,Hn=7,gi=new Array(64),Hi=new Array(64),ur=new Array(64),Ir=new Array(256),io=new Array(2048),vr=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],Ti=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Br=[0,1,2,3,4,5,6,7,8,9,10,11],Vr=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],zn=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],Xn=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Yi=[0,1,2,3,4,5,6,7,8,9,10,11],ve=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Ee=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function Ye(Ue,hn){for(var yn=0,Mn=0,Zn=new Array,li=1;li<=16;li++){for(var oi=1;oi<=Ue[li];oi++)Zn[hn[Mn]]=[],Zn[hn[Mn]][0]=yn,Zn[hn[Mn]][1]=li,Mn++,yn++;yn*=2}return Zn}function on(Ue){for(var hn=Ue[0],yn=Ue[1]-1;yn>=0;)hn&1<<yn&&(pi|=1<<Hn),yn--,--Hn<0&&(pi==255?(cn(255),cn(0)):cn(pi),Hn=7,pi=0)}function cn(Ue){$n.push(Ue)}function dn(Ue){cn(Ue>>8&255),cn(255&Ue)}function Dn(Ue,hn,yn,Mn,Zn){for(var li,oi=Zn[0],Fi=Zn[240],ki=function(rr,wr){var mr,ir,Or,ho,So,Fo,Gr,Vo,No,hs,co=0;for(No=0;No<8;++No){mr=rr[co],ir=rr[co+1],Or=rr[co+2],ho=rr[co+3],So=rr[co+4],Fo=rr[co+5],Gr=rr[co+6];var Pa=mr+(Vo=rr[co+7]),Os=mr-Vo,Ps=ir+Gr,ko=ir-Gr,Fs=Or+Fo,$a=Or-Fo,js=ho+So,jl=ho-So,Po=Pa+js,as=Pa-js,ds=Ps+Fs,Oo=Ps-Fs;rr[co]=Po+ds,rr[co+4]=Po-ds;var qo=.707106781*(Oo+as);rr[co+2]=as+qo,rr[co+6]=as-qo;var bo=.382683433*((Po=jl+$a)-(Oo=ko+Os)),Ls=.5411961*Po+bo,_s=1.306562965*Oo+bo,ea=.707106781*(ds=$a+ko),Yl=Os+ea,As=Os-ea;rr[co+5]=As+Ls,rr[co+3]=As-Ls,rr[co+1]=Yl+_s,rr[co+7]=Yl-_s,co+=8}for(co=0,No=0;No<8;++No){mr=rr[co],ir=rr[co+8],Or=rr[co+16],ho=rr[co+24],So=rr[co+32],Fo=rr[co+40],Gr=rr[co+48];var eu=mr+(Vo=rr[co+56]),fa=mr-Vo,yl=ir+Gr,po=ir-Gr,Ra=Or+Fo,Nu=Or-Fo,wa=ho+So,na=ho-So,Na=eu+wa,Xa=eu-wa,ul=yl+Ra,Qs=yl-Ra;rr[co]=Na+ul,rr[co+32]=Na-ul;var Ia=.707106781*(Qs+Xa);rr[co+16]=Xa+Ia,rr[co+48]=Xa-Ia;var Nl=.382683433*((Na=na+Nu)-(Qs=po+fa)),Iu=.5411961*Na+Nl,mu=1.306562965*Qs+Nl,ku=.707106781*(ul=Nu+po),Gu=fa+ku,oh=fa-ku;rr[co+40]=oh+Iu,rr[co+24]=oh-Iu,rr[co+8]=Gu+mu,rr[co+56]=Gu-mu,co++}for(No=0;No<64;++No)hs=rr[No]*wr[No],ze[No]=hs>0?hs+.5|0:hs-.5|0;return ze}(Ue,hn),Xi=0;Xi<64;++Xi)di[vr[Xi]]=ki[Xi];var ar=di[0]-yn;yn=di[0],ar==0?on(Mn[0]):(on(Mn[Tn[li=32767+ar]]),on(pn[li]));for(var gr=63;gr>0&&di[gr]==0;)gr--;if(gr==0)return on(oi),yn;for(var qr,qi=1;qi<=gr;){for(var Qn=qi;di[qi]==0&&qi<=gr;)++qi;var so=qi-Qn;if(so>=16){qr=so>>4;for(var uo=1;uo<=qr;++uo)on(Fi);so&=15}li=32767+di[qi],on(Zn[(so<<4)+Tn[li]]),on(pn[li]),qi++}return gr!=63&&on(oi),yn}function Jn(Ue){Ue=Math.min(Math.max(Ue,1),100),Zt!=Ue&&(function(hn){for(var yn=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],Mn=0;Mn<64;Mn++){var Zn=ye((yn[Mn]*hn+50)/100);Zn=Math.min(Math.max(Zn,1),255),Se[vr[Mn]]=Zn}for(var li=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],oi=0;oi<64;oi++){var Fi=ye((li[oi]*hn+50)/100);Fi=Math.min(Math.max(Fi,1),255),Ie[vr[oi]]=Fi}for(var ki=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Xi=0,ar=0;ar<8;ar++)for(var gr=0;gr<8;gr++)tn[Xi]=1/(Se[vr[Xi]]*ki[ar]*ki[gr]*8),mn[Xi]=1/(Ie[vr[Xi]]*ki[ar]*ki[gr]*8),Xi++}(Ue<50?Math.floor(5e3/Ue):Math.floor(200-2*Ue)),Zt=Ue)}this.encode=function(Ue,hn){hn&&Jn(hn),$n=new Array,pi=0,Hn=7,dn(65496),dn(65504),dn(16),cn(74),cn(70),cn(73),cn(70),cn(0),cn(1),cn(1),cn(0),dn(1),dn(1),cn(0),cn(0),function(){dn(65499),dn(132),cn(0);for(var ir=0;ir<64;ir++)cn(Se[ir]);cn(1);for(var Or=0;Or<64;Or++)cn(Ie[Or])}(),function(ir,Or){dn(65472),dn(17),cn(8),dn(Or),dn(ir),cn(3),cn(1),cn(17),cn(0),cn(2),cn(17),cn(1),cn(3),cn(17),cn(1)}(Ue.width,Ue.height),function(){dn(65476),dn(418),cn(0);for(var ir=0;ir<16;ir++)cn(Ti[ir+1]);for(var Or=0;Or<=11;Or++)cn(Br[Or]);cn(16);for(var ho=0;ho<16;ho++)cn(Vr[ho+1]);for(var So=0;So<=161;So++)cn(zn[So]);cn(1);for(var Fo=0;Fo<16;Fo++)cn(Xn[Fo+1]);for(var Gr=0;Gr<=11;Gr++)cn(Yi[Gr]);cn(17);for(var Vo=0;Vo<16;Vo++)cn(ve[Vo+1]);for(var No=0;No<=161;No++)cn(Ee[No])}(),dn(65498),dn(12),cn(3),cn(1),cn(0),cn(2),cn(17),cn(3),cn(17),cn(0),cn(63),cn(0);var yn=0,Mn=0,Zn=0;pi=0,Hn=7,this.encode.displayName="_encode_";for(var li,oi,Fi,ki,Xi,ar,gr,qr,qi,Qn=Ue.data,so=Ue.width,uo=Ue.height,rr=4*so,wr=0;wr<uo;){for(li=0;li<rr;){for(Xi=rr*wr+li,gr=-1,qr=0,qi=0;qi<64;qi++)ar=Xi+(qr=qi>>3)*rr+(gr=4*(7&qi)),wr+qr>=uo&&(ar-=rr*(wr+1+qr-uo)),li+gr>=rr&&(ar-=li+gr-rr+4),oi=Qn[ar++],Fi=Qn[ar++],ki=Qn[ar++],gi[qi]=(io[oi]+io[Fi+256>>0]+io[ki+512>>0]>>16)-128,Hi[qi]=(io[oi+768>>0]+io[Fi+1024>>0]+io[ki+1280>>0]>>16)-128,ur[qi]=(io[oi+1280>>0]+io[Fi+1536>>0]+io[ki+1792>>0]>>16)-128;yn=Dn(gi,tn,yn,mt,jt),Mn=Dn(Hi,mn,Mn,Et,le),Zn=Dn(ur,mn,Zn,Et,le),li+=32}wr+=8}if(Hn>=0){var mr=[];mr[1]=Hn+1,mr[0]=(1<<Hn+1)-1,on(mr)}return dn(65497),new Uint8Array($n)},Pt=Pt||50,function(){for(var Ue=String.fromCharCode,hn=0;hn<256;hn++)Ir[hn]=Ue(hn)}(),mt=Ye(Ti,Br),Et=Ye(Xn,Yi),jt=Ye(Vr,zn),le=Ye(ve,Ee),function(){for(var Ue=1,hn=2,yn=1;yn<=15;yn++){for(var Mn=Ue;Mn<hn;Mn++)Tn[32767+Mn]=yn,pn[32767+Mn]=[],pn[32767+Mn][1]=yn,pn[32767+Mn][0]=Mn;for(var Zn=-(hn-1);Zn<=-Ue;Zn++)Tn[32767+Zn]=yn,pn[32767+Zn]=[],pn[32767+Zn][1]=yn,pn[32767+Zn][0]=hn-1+Zn;Ue<<=1,hn<<=1}}(),function(){for(var Ue=0;Ue<256;Ue++)io[Ue]=19595*Ue,io[Ue+256>>0]=38470*Ue,io[Ue+512>>0]=7471*Ue+32768,io[Ue+768>>0]=-11059*Ue,io[Ue+1024>>0]=-21709*Ue,io[Ue+1280>>0]=32768*Ue+8421375,io[Ue+1536>>0]=-27439*Ue,io[Ue+1792>>0]=-5329*Ue}(),Jn(Pt)}function tc(Pt,mt){if(this.pos=0,this.buffer=Pt,this.datav=new DataView(Pt.buffer),this.is_with_alpha=!!mt,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function ju(Pt){function mt(Ti){if(!Ti)throw Error("assert :P")}function Et(Ti,Br,Vr){for(var zn=0;4>zn;zn++)if(Ti[Br+zn]!=Vr.charCodeAt(zn))return!0;return!1}function jt(Ti,Br,Vr,zn,Xn){for(var Yi=0;Yi<Xn;Yi++)Ti[Br+Yi]=Vr[zn+Yi]}function le(Ti,Br,Vr,zn){for(var Xn=0;Xn<zn;Xn++)Ti[Br+Xn]=Vr}function Zt(Ti){return new Int32Array(Ti)}function ye(Ti,Br){for(var Vr=[],zn=0;zn<Ti;zn++)Vr.push(new Br);return Vr}function Se(Ti,Br){var Vr=[];return function zn(Xn,Yi,ve){for(var Ee=ve[Yi],Ye=0;Ye<Ee&&(Xn.push(ve.length>Yi+1?[]:new Br),!(ve.length<Yi+1));Ye++)zn(Xn[Ye],Yi+1,ve)}(Vr,0,Ti),Vr}var Ie=function(){var Ti=this;function Br(vt,Ut){for(var me=1<<Ut-1>>>0;vt&me;)me>>>=1;return me?(vt&me-1)+me:vt}function Vr(vt,Ut,me,Ne,Je){mt(!(Ne%me));do vt[Ut+(Ne-=me)]=Je;while(0<Ne)}function zn(vt,Ut,me,Ne,Je){if(mt(2328>=Je),512>=Je)var vn=Zt(512);else if((vn=Zt(Je))==null)return 0;return function(An,Sn,Fn,Kn,Pi,Ii){var er,Ui,Pr=Sn,Mr=1<<Fn,ji=Zt(16),Gi=Zt(16);for(mt(Pi!=0),mt(Kn!=null),mt(An!=null),mt(0<Fn),Ui=0;Ui<Pi;++Ui){if(15<Kn[Ui])return 0;++ji[Kn[Ui]]}if(ji[0]==Pi)return 0;for(Gi[1]=0,er=1;15>er;++er){if(ji[er]>1<<er)return 0;Gi[er+1]=Gi[er]+ji[er]}for(Ui=0;Ui<Pi;++Ui)er=Kn[Ui],0<Kn[Ui]&&(Ii[Gi[er]++]=Ui);if(Gi[15]==1)return(Kn=new Xn).g=0,Kn.value=Ii[0],Vr(An,Pr,1,Mr,Kn),Mr;var Dr,eo=-1,ro=Mr-1,es=0,Wo=1,Ks=1,qn=1<<Fn;for(Ui=0,er=1,Pi=2;er<=Fn;++er,Pi<<=1){if(Wo+=Ks<<=1,0>(Ks-=ji[er]))return 0;for(;0<ji[er];--ji[er])(Kn=new Xn).g=er,Kn.value=Ii[Ui++],Vr(An,Pr+es,Pi,qn,Kn),es=Br(es,er)}for(er=Fn+1,Pi=2;15>=er;++er,Pi<<=1){if(Wo+=Ks<<=1,0>(Ks-=ji[er]))return 0;for(;0<ji[er];--ji[er]){if(Kn=new Xn,(es&ro)!=eo){for(Pr+=qn,Dr=1<<(eo=er)-Fn;15>eo&&!(0>=(Dr-=ji[eo]));)++eo,Dr<<=1;Mr+=qn=1<<(Dr=eo-Fn),An[Sn+(eo=es&ro)].g=Dr+Fn,An[Sn+eo].value=Pr-Sn-eo}Kn.g=er-Fn,Kn.value=Ii[Ui++],Vr(An,Pr+(es>>Fn),Pi,qn,Kn),es=Br(es,er)}}return Wo!=2*Gi[15]-1?0:Mr}(vt,Ut,me,Ne,Je,vn)}function Xn(){this.value=this.g=0}function Yi(){this.value=this.g=0}function ve(){this.G=ye(5,Xn),this.H=Zt(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=ye(Sa,Yi)}function Ee(vt,Ut,me,Ne){mt(vt!=null),mt(Ut!=null),mt(2147483648>Ne),vt.Ca=254,vt.I=0,vt.b=-8,vt.Ka=0,vt.oa=Ut,vt.pa=me,vt.Jd=Ut,vt.Yc=me+Ne,vt.Zc=4<=Ne?me+Ne-4+1:me,li(vt)}function Ye(vt,Ut){for(var me=0;0<Ut--;)me|=Fi(vt,128)<<Ut;return me}function on(vt,Ut){var me=Ye(vt,Ut);return oi(vt)?-me:me}function cn(vt,Ut,me,Ne){var Je,vn=0;for(mt(vt!=null),mt(Ut!=null),mt(4294967288>Ne),vt.Sb=Ne,vt.Ra=0,vt.u=0,vt.h=0,4<Ne&&(Ne=4),Je=0;Je<Ne;++Je)vn+=Ut[me+Je]<<8*Je;vt.Ra=vn,vt.bb=Ne,vt.oa=Ut,vt.pa=me}function dn(vt){for(;8<=vt.u&&vt.bb<vt.Sb;)vt.Ra>>>=8,vt.Ra+=vt.oa[vt.pa+vt.bb]<<Jl-8>>>0,++vt.bb,vt.u-=8;yn(vt)&&(vt.h=1,vt.u=0)}function Dn(vt,Ut){if(mt(0<=Ut),!vt.h&&Ut<=Zd){var me=hn(vt)&mc[Ut];return vt.u+=Ut,dn(vt),me}return vt.h=1,vt.u=0}function Jn(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function Ue(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function hn(vt){return vt.Ra>>>(vt.u&Jl-1)>>>0}function yn(vt){return mt(vt.bb<=vt.Sb),vt.h||vt.bb==vt.Sb&&vt.u>Jl}function Mn(vt,Ut){vt.u=Ut,vt.h=yn(vt)}function Zn(vt){vt.u>=_h&&(mt(vt.u>=_h),dn(vt))}function li(vt){mt(vt!=null&&vt.oa!=null),vt.pa<vt.Zc?(vt.I=(vt.oa[vt.pa++]|vt.I<<8)>>>0,vt.b+=8):(mt(vt!=null&&vt.oa!=null),vt.pa<vt.Yc?(vt.b+=8,vt.I=vt.oa[vt.pa++]|vt.I<<8):vt.Ka?vt.b=0:(vt.I<<=8,vt.b+=8,vt.Ka=1))}function oi(vt){return Ye(vt,1)}function Fi(vt,Ut){var me=vt.Ca;0>vt.b&&li(vt);var Ne=vt.b,Je=me*Ut>>>8,vn=(vt.I>>>Ne>Je)+0;for(vn?(me-=Je,vt.I-=Je+1<<Ne>>>0):me=Je+1,Ne=me,Je=0;256<=Ne;)Je+=8,Ne>>=8;return Ne=7^Je+_u[Ne],vt.b-=Ne,vt.Ca=(me<<Ne)-1,vn}function ki(vt,Ut,me){vt[Ut+0]=me>>24&255,vt[Ut+1]=me>>16&255,vt[Ut+2]=me>>8&255,vt[Ut+3]=me>>0&255}function Xi(vt,Ut){return vt[Ut+0]<<0|vt[Ut+1]<<8}function ar(vt,Ut){return Xi(vt,Ut)|vt[Ut+2]<<16}function gr(vt,Ut){return Xi(vt,Ut)|Xi(vt,Ut+2)<<16}function qr(vt,Ut){var me=1<<Ut;return mt(vt!=null),mt(0<Ut),vt.X=Zt(me),vt.X==null?0:(vt.Mb=32-Ut,vt.Xa=Ut,1)}function qi(vt,Ut){mt(vt!=null),mt(Ut!=null),mt(vt.Xa==Ut.Xa),jt(Ut.X,0,vt.X,0,1<<Ut.Xa)}function Qn(){this.X=[],this.Xa=this.Mb=0}function so(vt,Ut,me,Ne){mt(me!=null),mt(Ne!=null);var Je=me[0],vn=Ne[0];return Je==0&&(Je=(vt*vn+Ut/2)/Ut),vn==0&&(vn=(Ut*Je+vt/2)/vt),0>=Je||0>=vn?0:(me[0]=Je,Ne[0]=vn,1)}function uo(vt,Ut){return vt+(1<<Ut)-1>>>Ut}function rr(vt,Ut){return((4278255360&vt)+(4278255360&Ut)>>>0&4278255360)+((16711935&vt)+(16711935&Ut)>>>0&16711935)>>>0}function wr(vt,Ut){Ti[Ut]=function(me,Ne,Je,vn,An,Sn,Fn){var Kn;for(Kn=0;Kn<An;++Kn){var Pi=Ti[vt](Sn[Fn+Kn-1],Je,vn+Kn);Sn[Fn+Kn]=rr(me[Ne+Kn],Pi)}}}function mr(){this.ud=this.hd=this.jd=0}function ir(vt,Ut){return((4278124286&(vt^Ut))>>>1)+(vt&Ut)>>>0}function Or(vt){return 0<=vt&&256>vt?vt:0>vt?0:255<vt?255:void 0}function ho(vt,Ut){return Or(vt+(vt-Ut+.5>>1))}function So(vt,Ut,me){return Math.abs(Ut-me)-Math.abs(vt-me)}function Fo(vt,Ut,me,Ne,Je,vn,An){for(Ne=vn[An-1],me=0;me<Je;++me)vn[An+me]=Ne=rr(vt[Ut+me],Ne)}function Gr(vt,Ut,me,Ne,Je){var vn;for(vn=0;vn<me;++vn){var An=vt[Ut+vn],Sn=An>>8&255,Fn=16711935&(Fn=(Fn=16711935&An)+((Sn<<16)+Sn));Ne[Je+vn]=(4278255360&An)+Fn>>>0}}function Vo(vt,Ut){Ut.jd=vt>>0&255,Ut.hd=vt>>8&255,Ut.ud=vt>>16&255}function No(vt,Ut,me,Ne,Je,vn){var An;for(An=0;An<Ne;++An){var Sn=Ut[me+An],Fn=Sn>>>8,Kn=Sn,Pi=255&(Pi=(Pi=Sn>>>16)+((vt.jd<<24>>24)*(Fn<<24>>24)>>>5));Kn=255&(Kn=(Kn=Kn+((vt.hd<<24>>24)*(Fn<<24>>24)>>>5))+((vt.ud<<24>>24)*(Pi<<24>>24)>>>5)),Je[vn+An]=(4278255360&Sn)+(Pi<<16)+Kn}}function hs(vt,Ut,me,Ne,Je){Ti[Ut]=function(vn,An,Sn,Fn,Kn,Pi,Ii,er,Ui){for(Fn=Ii;Fn<er;++Fn)for(Ii=0;Ii<Ui;++Ii)Kn[Pi++]=Je(Sn[Ne(vn[An++])])},Ti[vt]=function(vn,An,Sn,Fn,Kn,Pi,Ii){var er=8>>vn.b,Ui=vn.Ea,Pr=vn.K[0],Mr=vn.w;if(8>er)for(vn=(1<<vn.b)-1,Mr=(1<<er)-1;An<Sn;++An){var ji,Gi=0;for(ji=0;ji<Ui;++ji)ji&vn||(Gi=Ne(Fn[Kn++])),Pi[Ii++]=Je(Pr[Gi&Mr]),Gi>>=er}else Ti["VP8LMapColor"+me](Fn,Kn,Pr,Mr,Pi,Ii,An,Sn,Ui)}}function co(vt,Ut,me,Ne,Je){for(me=Ut+me;Ut<me;){var vn=vt[Ut++];Ne[Je++]=vn>>16&255,Ne[Je++]=vn>>8&255,Ne[Je++]=vn>>0&255}}function Pa(vt,Ut,me,Ne,Je){for(me=Ut+me;Ut<me;){var vn=vt[Ut++];Ne[Je++]=vn>>16&255,Ne[Je++]=vn>>8&255,Ne[Je++]=vn>>0&255,Ne[Je++]=vn>>24&255}}function Os(vt,Ut,me,Ne,Je){for(me=Ut+me;Ut<me;){var vn=(An=vt[Ut++])>>16&240|An>>12&15,An=An>>0&240|An>>28&15;Ne[Je++]=vn,Ne[Je++]=An}}function Ps(vt,Ut,me,Ne,Je){for(me=Ut+me;Ut<me;){var vn=(An=vt[Ut++])>>16&248|An>>13&7,An=An>>5&224|An>>3&31;Ne[Je++]=vn,Ne[Je++]=An}}function ko(vt,Ut,me,Ne,Je){for(me=Ut+me;Ut<me;){var vn=vt[Ut++];Ne[Je++]=vn>>0&255,Ne[Je++]=vn>>8&255,Ne[Je++]=vn>>16&255}}function Fs(vt,Ut,me,Ne,Je,vn){if(vn==0)for(me=Ut+me;Ut<me;)ki(Ne,((vn=vt[Ut++])[0]>>24|vn[1]>>8&65280|vn[2]<<8&16711680|vn[3]<<24)>>>0),Je+=32;else jt(Ne,Je,vt,Ut,me)}function $a(vt,Ut){Ti[Ut][0]=Ti[vt+"0"],Ti[Ut][1]=Ti[vt+"1"],Ti[Ut][2]=Ti[vt+"2"],Ti[Ut][3]=Ti[vt+"3"],Ti[Ut][4]=Ti[vt+"4"],Ti[Ut][5]=Ti[vt+"5"],Ti[Ut][6]=Ti[vt+"6"],Ti[Ut][7]=Ti[vt+"7"],Ti[Ut][8]=Ti[vt+"8"],Ti[Ut][9]=Ti[vt+"9"],Ti[Ut][10]=Ti[vt+"10"],Ti[Ut][11]=Ti[vt+"11"],Ti[Ut][12]=Ti[vt+"12"],Ti[Ut][13]=Ti[vt+"13"],Ti[Ut][14]=Ti[vt+"0"],Ti[Ut][15]=Ti[vt+"0"]}function js(vt){return vt==Hu||vt==qc||vt==Md||vt==Cg}function jl(){this.eb=[],this.size=this.A=this.fb=0}function Po(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function as(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new jl,this.f.kb=new Po,this.sd=null}function ds(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Oo(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function qo(vt){return alert("todo:WebPSamplerProcessPlane"),vt.T}function bo(vt,Ut){var me=vt.T,Ne=Ut.ba.f.RGBA,Je=Ne.eb,vn=Ne.fb+vt.ka*Ne.A,An=vc[Ut.ba.S],Sn=vt.y,Fn=vt.O,Kn=vt.f,Pi=vt.N,Ii=vt.ea,er=vt.W,Ui=Ut.cc,Pr=Ut.dc,Mr=Ut.Mc,ji=Ut.Nc,Gi=vt.ka,Dr=vt.ka+vt.T,eo=vt.U,ro=eo+1>>1;for(Gi==0?An(Sn,Fn,null,null,Kn,Pi,Ii,er,Kn,Pi,Ii,er,Je,vn,null,null,eo):(An(Ut.ec,Ut.fc,Sn,Fn,Ui,Pr,Mr,ji,Kn,Pi,Ii,er,Je,vn-Ne.A,Je,vn,eo),++me);Gi+2<Dr;Gi+=2)Ui=Kn,Pr=Pi,Mr=Ii,ji=er,Pi+=vt.Rc,er+=vt.Rc,vn+=2*Ne.A,An(Sn,(Fn+=2*vt.fa)-vt.fa,Sn,Fn,Ui,Pr,Mr,ji,Kn,Pi,Ii,er,Je,vn-Ne.A,Je,vn,eo);return Fn+=vt.fa,vt.j+Dr<vt.o?(jt(Ut.ec,Ut.fc,Sn,Fn,eo),jt(Ut.cc,Ut.dc,Kn,Pi,ro),jt(Ut.Mc,Ut.Nc,Ii,er,ro),me--):1&Dr||An(Sn,Fn,null,null,Kn,Pi,Ii,er,Kn,Pi,Ii,er,Je,vn+Ne.A,null,null,eo),me}function Ls(vt,Ut,me){var Ne=vt.F,Je=[vt.J];if(Ne!=null){var vn=vt.U,An=Ut.ba.S,Sn=An==eh||An==Md;Ut=Ut.ba.f.RGBA;var Fn=[0],Kn=vt.ka;Fn[0]=vt.T,vt.Kb&&(Kn==0?--Fn[0]:(--Kn,Je[0]-=vt.width),vt.j+vt.ka+vt.T==vt.o&&(Fn[0]=vt.o-vt.j-Kn));var Pi=Ut.eb;Kn=Ut.fb+Kn*Ut.A,vt=Ua(Ne,Je[0],vt.width,vn,Fn,Pi,Kn+(Sn?0:3),Ut.A),mt(me==Fn),vt&&js(An)&&fl(Pi,Kn,Sn,vn,Fn,Ut.A)}return 0}function _s(vt){var Ut=vt.ma,me=Ut.ba.S,Ne=11>me,Je=me==fu||me==Fh||me==eh||me==xh||me==12||js(me);if(Ut.memory=null,Ut.Ib=null,Ut.Jb=null,Ut.Nd=null,!Tc(Ut.Oa,vt,Je?11:12))return 0;if(Je&&js(me)&&yo(),vt.da)alert("todo:use_scaling");else{if(Ne){if(Ut.Ib=qo,vt.Kb){if(me=vt.U+1>>1,Ut.memory=Zt(vt.U+2*me),Ut.memory==null)return 0;Ut.ec=Ut.memory,Ut.fc=0,Ut.cc=Ut.ec,Ut.dc=Ut.fc+vt.U,Ut.Mc=Ut.cc,Ut.Nc=Ut.dc+me,Ut.Ib=bo,yo()}}else alert("todo:EmitYUV");Je&&(Ut.Jb=Ls,Ne&&cr())}if(Ne&&!Eg){for(vt=0;256>vt;++vt)Ot[vt]=89858*(vt-128)+IA>>xf,Ht[vt]=-22014*(vt-128)+IA,Qt[vt]=-45773*(vt-128),It[vt]=113618*(vt-128)+IA>>xf;for(vt=gA;vt<fd;++vt)Ut=76283*(vt-16)+IA>>xf,Le[vt-gA]=Eh(Ut,255),nn[vt-gA]=Eh(Ut+8>>4,15);Eg=1}return 1}function ea(vt){var Ut=vt.ma,me=vt.U,Ne=vt.T;return mt(!(1&vt.ka)),0>=me||0>=Ne?0:(me=Ut.Ib(vt,Ut),Ut.Jb!=null&&Ut.Jb(vt,Ut,me),Ut.Dc+=me,1)}function Yl(vt){vt.ma.memory=null}function As(vt,Ut,me,Ne){return Dn(vt,8)!=47?0:(Ut[0]=Dn(vt,14)+1,me[0]=Dn(vt,14)+1,Ne[0]=Dn(vt,1),Dn(vt,3)!=0?0:!vt.h)}function eu(vt,Ut){if(4>vt)return vt+1;var me=vt-2>>1;return(2+(1&vt)<<me)+Dn(Ut,me)+1}function fa(vt,Ut){return 120<Ut?Ut-120:1<=(me=((me=GA[Ut-1])>>4)*vt+(8-(15&me)))?me:1;var me}function yl(vt,Ut,me){var Ne=hn(me),Je=vt[Ut+=255&Ne].g-8;return 0<Je&&(Mn(me,me.u+8),Ne=hn(me),Ut+=vt[Ut].value,Ut+=Ne&(1<<Je)-1),Mn(me,me.u+vt[Ut].g),vt[Ut].value}function po(vt,Ut,me){return me.g+=vt.g,me.value+=vt.value<<Ut>>>0,mt(8>=me.g),vt.g}function Ra(vt,Ut,me){var Ne=vt.xc;return mt((Ut=Ne==0?0:vt.vc[vt.md*(me>>Ne)+(Ut>>Ne)])<vt.Wb),vt.Ya[Ut]}function Nu(vt,Ut,me,Ne){var Je=vt.ab,vn=vt.c*Ut,An=vt.C;Ut=An+Ut;var Sn=me,Fn=Ne;for(Ne=vt.Ta,me=vt.Ua;0<Je--;){var Kn=vt.gc[Je],Pi=An,Ii=Ut,er=Sn,Ui=Fn,Pr=(Fn=Ne,Sn=me,Kn.Ea);switch(mt(Pi<Ii),mt(Ii<=Kn.nc),Kn.hc){case 2:Yd(er,Ui,(Ii-Pi)*Pr,Fn,Sn);break;case 0:var Mr=Pi,ji=Ii,Gi=Fn,Dr=Sn,eo=(qn=Kn).Ea;Mr==0&&(cd(er,Ui,null,null,1,Gi,Dr),Fo(er,Ui+1,0,0,eo-1,Gi,Dr+1),Ui+=eo,Dr+=eo,++Mr);for(var ro=1<<qn.b,es=ro-1,Wo=uo(eo,qn.b),Ks=qn.K,qn=qn.w+(Mr>>qn.b)*Wo;Mr<ji;){var gl=Ks,kl=qn,rl=1;for(Rl(er,Ui,Gi,Dr-eo,1,Gi,Dr);rl<eo;){var Qa=(rl&~es)+ro;Qa>eo&&(Qa=eo),(0,st[gl[kl++]>>8&15])(er,Ui+ +rl,Gi,Dr+rl-eo,Qa-rl,Gi,Dr+rl),rl=Qa}Ui+=eo,Dr+=eo,++Mr&es||(qn+=Wo)}Ii!=Kn.nc&&jt(Fn,Sn-Pr,Fn,Sn+(Ii-Pi-1)*Pr,Pr);break;case 1:for(Pr=er,ji=Ui,eo=(er=Kn.Ea)-(Dr=er&~(Gi=(Ui=1<<Kn.b)-1)),Mr=uo(er,Kn.b),ro=Kn.K,Kn=Kn.w+(Pi>>Kn.b)*Mr;Pi<Ii;){for(es=ro,Wo=Kn,Ks=new mr,qn=ji+Dr,gl=ji+er;ji<qn;)Vo(es[Wo++],Ks),ft(Ks,Pr,ji,Ui,Fn,Sn),ji+=Ui,Sn+=Ui;ji<gl&&(Vo(es[Wo++],Ks),ft(Ks,Pr,ji,eo,Fn,Sn),ji+=eo,Sn+=eo),++Pi&Gi||(Kn+=Mr)}break;case 3:if(er==Fn&&Ui==Sn&&0<Kn.b){for(ji=Fn,er=Pr=Sn+(Ii-Pi)*Pr-(Dr=(Ii-Pi)*uo(Kn.Ea,Kn.b)),Ui=Fn,Gi=Sn,Mr=[],Dr=(eo=Dr)-1;0<=Dr;--Dr)Mr[Dr]=Ui[Gi+Dr];for(Dr=eo-1;0<=Dr;--Dr)ji[er+Dr]=Mr[Dr];Eu(Kn,Pi,Ii,Fn,Pr,Fn,Sn)}else Eu(Kn,Pi,Ii,er,Ui,Fn,Sn)}Sn=Ne,Fn=me}Fn!=me&&jt(Ne,me,Sn,Fn,vn)}function wa(vt,Ut){var me=vt.V,Ne=vt.Ba+vt.c*vt.C,Je=Ut-vt.C;if(mt(Ut<=vt.l.o),mt(16>=Je),0<Je){var vn=vt.l,An=vt.Ta,Sn=vt.Ua,Fn=vn.width;if(Nu(vt,Je,me,Ne),Je=Sn=[Sn],mt((me=vt.C)<(Ne=Ut)),mt(vn.v<vn.va),Ne>vn.o&&(Ne=vn.o),me<vn.j){var Kn=vn.j-me;me=vn.j,Je[0]+=Kn*Fn}if(me>=Ne?me=0:(Je[0]+=4*vn.v,vn.ka=me-vn.j,vn.U=vn.va-vn.v,vn.T=Ne-me,me=1),me){if(Sn=Sn[0],11>(me=vt.ca).S){var Pi=me.f.RGBA,Ii=(Ne=me.S,Je=vn.U,vn=vn.T,Kn=Pi.eb,Pi.A),er=vn;for(Pi=Pi.fb+vt.Ma*Pi.A;0<er--;){var Ui=An,Pr=Sn,Mr=Je,ji=Kn,Gi=Pi;switch(Ne){case ch:At(Ui,Pr,Mr,ji,Gi);break;case fu:xt(Ui,Pr,Mr,ji,Gi);break;case Hu:xt(Ui,Pr,Mr,ji,Gi),fl(ji,Gi,0,Mr,1,0);break;case Xd:He(Ui,Pr,Mr,ji,Gi);break;case Fh:Fs(Ui,Pr,Mr,ji,Gi,1);break;case qc:Fs(Ui,Pr,Mr,ji,Gi,1),fl(ji,Gi,0,Mr,1,0);break;case eh:Fs(Ui,Pr,Mr,ji,Gi,0);break;case Md:Fs(Ui,Pr,Mr,ji,Gi,0),fl(ji,Gi,1,Mr,1,0);break;case xh:ne(Ui,Pr,Mr,ji,Gi);break;case Cg:ne(Ui,Pr,Mr,ji,Gi),Ja(ji,Gi,Mr,1,0);break;case Ql:Be(Ui,Pr,Mr,ji,Gi);break;default:mt(0)}Sn+=Fn,Pi+=Ii}vt.Ma+=vn}else alert("todo:EmitRescaledRowsYUVA");mt(vt.Ma<=me.height)}}vt.C=Ut,mt(vt.C<=vt.i)}function na(vt){var Ut;if(0<vt.ua)return 0;for(Ut=0;Ut<vt.Wb;++Ut){var me=vt.Ya[Ut].G,Ne=vt.Ya[Ut].H;if(0<me[1][Ne[1]+0].g||0<me[2][Ne[2]+0].g||0<me[3][Ne[3]+0].g)return 0}return 1}function Na(vt,Ut,me,Ne,Je,vn){if(vt.Z!=0){var An=vt.qd,Sn=vt.rd;for(mt(zh[vt.Z]!=null);Ut<me;++Ut)zh[vt.Z](An,Sn,Ne,Je,Ne,Je,vn),An=Ne,Sn=Je,Je+=vn;vt.qd=An,vt.rd=Sn}}function Xa(vt,Ut){var me=vt.l.ma,Ne=me.Z==0||me.Z==1?vt.l.j:vt.C;if(Ne=vt.C<Ne?Ne:vt.C,mt(Ut<=vt.l.o),Ut>Ne){var Je=vt.l.width,vn=me.ca,An=me.tb+Je*Ne,Sn=vt.V,Fn=vt.Ba+vt.c*Ne,Kn=vt.gc;mt(vt.ab==1),mt(Kn[0].hc==3),$d(Kn[0],Ne,Ut,Sn,Fn,vn,An),Na(me,Ne,Ut,vn,An,Je)}vt.C=vt.Ma=Ut}function ul(vt,Ut,me,Ne,Je,vn,An){var Sn=vt.$/Ne,Fn=vt.$%Ne,Kn=vt.m,Pi=vt.s,Ii=me+vt.$,er=Ii;Je=me+Ne*Je;var Ui=me+Ne*vn,Pr=280+Pi.ua,Mr=vt.Pb?Sn:16777216,ji=0<Pi.ua?Pi.Wa:null,Gi=Pi.wc,Dr=Ii<Ui?Ra(Pi,Fn,Sn):null;mt(vt.C<vn),mt(Ui<=Je);var eo=!1;t:for(;;){for(;eo||Ii<Ui;){var ro=0;if(Sn>=Mr){var es=Ii-me;mt((Mr=vt).Pb),Mr.wd=Mr.m,Mr.xd=es,0<Mr.s.ua&&qi(Mr.s.Wa,Mr.s.vb),Mr=Sn+Vf}if(Fn&Gi||(Dr=Ra(Pi,Fn,Sn)),mt(Dr!=null),Dr.Qb&&(Ut[Ii]=Dr.qb,eo=!0),!eo)if(Zn(Kn),Dr.jc){ro=Kn,es=Ut;var Wo=Ii,Ks=Dr.pd[hn(ro)&Sa-1];mt(Dr.jc),256>Ks.g?(Mn(ro,ro.u+Ks.g),es[Wo]=Ks.value,ro=0):(Mn(ro,ro.u+Ks.g-256),mt(256<=Ks.value),ro=Ks.value),ro==0&&(eo=!0)}else ro=yl(Dr.G[0],Dr.H[0],Kn);if(Kn.h)break;if(eo||256>ro){if(!eo)if(Dr.nd)Ut[Ii]=(Dr.qb|ro<<8)>>>0;else{if(Zn(Kn),eo=yl(Dr.G[1],Dr.H[1],Kn),Zn(Kn),es=yl(Dr.G[2],Dr.H[2],Kn),Wo=yl(Dr.G[3],Dr.H[3],Kn),Kn.h)break;Ut[Ii]=(Wo<<24|eo<<16|ro<<8|es)>>>0}if(eo=!1,++Ii,++Fn>=Ne&&(Fn=0,++Sn,An!=null&&Sn<=vn&&!(Sn%16)&&An(vt,Sn),ji!=null))for(;er<Ii;)ro=Ut[er++],ji.X[(506832829*ro&4294967295)>>>ji.Mb]=ro}else if(280>ro){if(ro=eu(ro-256,Kn),es=yl(Dr.G[4],Dr.H[4],Kn),Zn(Kn),es=fa(Ne,es=eu(es,Kn)),Kn.h)break;if(Ii-me<es||Je-Ii<ro)break t;for(Wo=0;Wo<ro;++Wo)Ut[Ii+Wo]=Ut[Ii+Wo-es];for(Ii+=ro,Fn+=ro;Fn>=Ne;)Fn-=Ne,++Sn,An!=null&&Sn<=vn&&!(Sn%16)&&An(vt,Sn);if(mt(Ii<=Je),Fn&Gi&&(Dr=Ra(Pi,Fn,Sn)),ji!=null)for(;er<Ii;)ro=Ut[er++],ji.X[(506832829*ro&4294967295)>>>ji.Mb]=ro}else{if(!(ro<Pr))break t;for(eo=ro-280,mt(ji!=null);er<Ii;)ro=Ut[er++],ji.X[(506832829*ro&4294967295)>>>ji.Mb]=ro;ro=Ii,mt(!(eo>>>(es=ji).Xa)),Ut[ro]=es.X[eo],eo=!0}eo||mt(Kn.h==yn(Kn))}if(vt.Pb&&Kn.h&&Ii<Je)mt(vt.m.h),vt.a=5,vt.m=vt.wd,vt.$=vt.xd,0<vt.s.ua&&qi(vt.s.vb,vt.s.Wa);else{if(Kn.h)break t;An!=null&&An(vt,Sn>vn?vn:Sn),vt.a=0,vt.$=Ii-me}return 1}return vt.a=3,0}function Qs(vt){mt(vt!=null),vt.vc=null,vt.yc=null,vt.Ya=null;var Ut=vt.Wa;Ut!=null&&(Ut.X=null),vt.vb=null,mt(vt!=null)}function Ia(){var vt=new zA;return vt==null?null:(vt.a=0,vt.xb=td,$a("Predictor","VP8LPredictors"),$a("Predictor","VP8LPredictors_C"),$a("PredictorAdd","VP8LPredictorsAdd"),$a("PredictorAdd","VP8LPredictorsAdd_C"),Yd=Gr,ft=No,At=co,xt=Pa,ne=Os,Be=Ps,He=ko,Ti.VP8LMapColor32b=sc,Ti.VP8LMapColor8b=it,vt)}function Nl(vt,Ut,me,Ne,Je){var vn=1,An=[vt],Sn=[Ut],Fn=Ne.m,Kn=Ne.s,Pi=null,Ii=0;t:for(;;){if(me)for(;vn&&Dn(Fn,1);){var er=An,Ui=Sn,Pr=Ne,Mr=1,ji=Pr.m,Gi=Pr.gc[Pr.ab],Dr=Dn(ji,2);if(Pr.Oc&1<<Dr)vn=0;else{switch(Pr.Oc|=1<<Dr,Gi.hc=Dr,Gi.Ea=er[0],Gi.nc=Ui[0],Gi.K=[null],++Pr.ab,mt(4>=Pr.ab),Dr){case 0:case 1:Gi.b=Dn(ji,3)+2,Mr=Nl(uo(Gi.Ea,Gi.b),uo(Gi.nc,Gi.b),0,Pr,Gi.K),Gi.K=Gi.K[0];break;case 3:var eo,ro=Dn(ji,8)+1,es=16<ro?0:4<ro?1:2<ro?2:3;if(er[0]=uo(Gi.Ea,es),Gi.b=es,eo=Mr=Nl(ro,1,0,Pr,Gi.K)){var Wo,Ks=ro,qn=Gi,gl=1<<(8>>qn.b),kl=Zt(gl);if(kl==null)eo=0;else{var rl=qn.K[0],Qa=qn.w;for(kl[0]=qn.K[0][0],Wo=1;Wo<1*Ks;++Wo)kl[Wo]=rr(rl[Qa+Wo],kl[Wo-1]);for(;Wo<4*gl;++Wo)kl[Wo]=0;qn.K[0]=null,qn.K[0]=kl,eo=1}}Mr=eo;break;case 2:break;default:mt(0)}vn=Mr}}if(An=An[0],Sn=Sn[0],vn&&Dn(Fn,1)&&!(vn=1<=(Ii=Dn(Fn,4))&&11>=Ii)){Ne.a=3;break t}var zl;if(zl=vn)e:{var Ha,ua,Qu,Id=Ne,Lh=An,gd=Sn,bu=Ii,Ch=me,pd=Id.m,Kh=Id.s,ac=[null],Dc=1,Jd=0,kA=MA[bu];n:for(;;){if(Ch&&Dn(pd,1)){var lc=Dn(pd,3)+2,lh=uo(Lh,lc),$f=uo(gd,lc),YA=lh*$f;if(!Nl(lh,$f,0,Id,ac))break n;for(ac=ac[0],Kh.xc=lc,Ha=0;Ha<YA;++Ha){var uf=ac[Ha]>>8&65535;ac[Ha]=uf,uf>=Dc&&(Dc=uf+1)}}if(pd.h)break n;for(ua=0;5>ua;++ua){var nh=dd[ua];!ua&&0<bu&&(nh+=1<<bu),Jd<nh&&(Jd=nh)}var Vg=ye(Dc*kA,Xn),Cp=Dc,Bp=ye(Cp,ve);if(Bp==null)var Xf=null;else mt(65536>=Cp),Xf=Bp;var jc=Zt(Jd);if(Xf==null||jc==null||Vg==null){Id.a=1;break n}var Zg=Vg;for(Ha=Qu=0;Ha<Dc;++Ha){var pA=Xf[Ha],Gh=pA.G,ed=pA.H,wc=0,Kl=1,Yg=0;for(ua=0;5>ua;++ua){nh=dd[ua],Gh[ua]=Zg,ed[ua]=Qu,!ua&&0<bu&&(nh+=1<<bu);r:{var Jf,$g=nh,Sf=Id,Cf=jc,Go=Zg,Bf=Qu,Pf=0,$A=Sf.m,Pp=Dn($A,1);if(le(Cf,0,0,$g),Pp){var bp=Dn($A,1)+1,bf=Dn($A,1),h0=Dn($A,bf==0?1:8);Cf[h0]=1,bp==2&&(Cf[h0=Dn($A,8)]=1);var Xg=1}else{var qd=Zt(19),Ep=Dn($A,4)+4;if(19<Ep){Sf.a=3;var Fg=0;break r}for(Jf=0;Jf<Ep;++Jf)qd[yf[Jf]]=Dn($A,3);var ha=void 0,Uc=void 0,c0=Sf,Jg=qd,Lg=$g,qf=Cf,Rc=0,mA=c0.m,d0=8,A0=ye(128,Xn);i:for(;zn(A0,0,7,Jg,19);){if(Dn(mA,1)){var Fp=2+2*Dn(mA,3);if((ha=2+Dn(mA,Fp))>Lg)break i}else ha=Lg;for(Uc=0;Uc<Lg&&ha--;){Zn(mA);var qg=A0[0+(127&hn(mA))];Mn(mA,mA.u+qg.g);var Ef=qg.value;if(16>Ef)qf[Uc++]=Ef,Ef!=0&&(d0=Ef);else{var em=Ef==16,Lp=Ef-16,nm=Bg[Lp],Mp=Dn(mA,Hh[Lp])+nm;if(Uc+Mp>Lg)break i;for(var Np=em?d0:0;0<Mp--;)qf[Uc++]=Np}}Rc=1;break i}Rc||(c0.a=3),Xg=Rc}(Xg=Xg&&!$A.h)&&(Pf=zn(Go,Bf,8,Cf,$g)),Xg&&Pf!=0?Fg=Pf:(Sf.a=3,Fg=0)}if(Fg==0)break n;if(Kl&&Wf[ua]==1&&(Kl=Zg[Qu].g==0),wc+=Zg[Qu].g,Qu+=Fg,3>=ua){var hf,Ip=jc[0];for(hf=1;hf<nh;++hf)jc[hf]>Ip&&(Ip=jc[hf]);Yg+=Ip}}if(pA.nd=Kl,pA.Qb=0,Kl&&(pA.qb=(Gh[3][ed[3]+0].value<<24|Gh[1][ed[1]+0].value<<16|Gh[2][ed[2]+0].value)>>>0,wc==0&&256>Gh[0][ed[0]+0].value&&(pA.Qb=1,pA.qb+=Gh[0][ed[0]+0].value<<8)),pA.jc=!pA.Qb&&6>Yg,pA.jc){var kp,TA=pA;for(kp=0;kp<Sa;++kp){var cf=kp,OA=TA.pd[cf],Mg=TA.G[0][TA.H[0]+cf];256<=Mg.value?(OA.g=Mg.g+256,OA.value=Mg.value):(OA.g=0,OA.value=0,cf>>=po(Mg,8,OA),cf>>=po(TA.G[1][TA.H[1]+cf],16,OA),cf>>=po(TA.G[2][TA.H[2]+cf],0,OA),po(TA.G[3][TA.H[3]+cf],24,OA))}}}Kh.vc=ac,Kh.Wb=Dc,Kh.Ya=Xf,Kh.yc=Vg,zl=1;break e}zl=0}if(!(vn=zl)){Ne.a=3;break t}if(0<Ii){if(Kn.ua=1<<Ii,!qr(Kn.Wa,Ii)){Ne.a=1,vn=0;break t}}else Kn.ua=0;var tg=Ne,f0=An,Mh=Sn,Ng=tg.s,tp=Ng.xc;if(tg.c=f0,tg.i=Mh,Ng.md=uo(f0,tp),Ng.wc=tp==0?-1:(1<<tp)-1,me){Ne.xb=Pg;break t}if((Pi=Zt(An*Sn))==null){Ne.a=1,vn=0;break t}vn=(vn=ul(Ne,Pi,0,An,Sn,Sn,null))&&!Fn.h;break t}return vn?(Je!=null?Je[0]=Pi:(mt(Pi==null),mt(me)),Ne.$=0,me||Qs(Kn)):Qs(Kn),vn}function Iu(vt,Ut){var me=vt.c*vt.i,Ne=me+Ut+16*Ut;return mt(vt.c<=Ut),vt.V=Zt(Ne),vt.V==null?(vt.Ta=null,vt.Ua=0,vt.a=1,0):(vt.Ta=vt.V,vt.Ua=vt.Ba+me+Ut,1)}function mu(vt,Ut){var me=vt.C,Ne=Ut-me,Je=vt.V,vn=vt.Ba+vt.c*me;for(mt(Ut<=vt.l.o);0<Ne;){var An=16<Ne?16:Ne,Sn=vt.l.ma,Fn=vt.l.width,Kn=Fn*An,Pi=Sn.ca,Ii=Sn.tb+Fn*me,er=vt.Ta,Ui=vt.Ua;Nu(vt,An,Je,vn),Za(er,Ui,Pi,Ii,Kn),Na(Sn,me,me+An,Pi,Ii,Fn),Ne-=An,Je+=An*vt.c,me+=An}mt(me==Ut),vt.C=vt.Ma=Ut}function ku(){this.ub=this.yd=this.td=this.Rb=0}function Gu(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function oh(){this.Fb=this.Bb=this.Cb=0,this.Zb=Zt(4),this.Lb=Zt(4)}function sh(){this.Yb=function(){var vt=[];return function Ut(me,Ne,Je){for(var vn=Je[Ne],An=0;An<vn&&(me.push(Je.length>Ne+1?[]:0),!(Je.length<Ne+1));An++)Ut(me[An],Ne+1,Je)}(vt,0,[3,11]),vt}()}function Va(){this.jb=Zt(3),this.Wc=Se([4,8],sh),this.Xc=Se([4,17],sh)}function Cu(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new Zt(4),this.od=new Zt(4)}function Sl(){this.ld=this.La=this.dd=this.tc=0}function dl(){this.Na=this.la=0}function ph(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function ec(){this.ad=Zt(384),this.Za=0,this.Ob=Zt(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function bh(){this.uc=this.M=this.Nb=0,this.wa=Array(new Sl),this.Y=0,this.ya=Array(new ec),this.aa=0,this.l=new Wu}function Dh(){this.y=Zt(16),this.f=Zt(8),this.ea=Zt(8)}function fc(){this.cb=this.a=0,this.sc="",this.m=new Jn,this.Od=new ku,this.Kc=new Gu,this.ed=new Cu,this.Qa=new oh,this.Ic=this.$c=this.Aa=0,this.D=new bh,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=ye(8,Jn),this.ia=0,this.pb=ye(4,ph),this.Pa=new Va,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Dh),this.Hd=0,this.rb=Array(new dl),this.sb=0,this.wa=Array(new Sl),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new ec),this.L=this.aa=0,this.gd=Se([4,2],Sl),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Wu(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function ka(){var vt=new fc;return vt!=null&&(vt.a=0,vt.sc="OK",vt.cb=0,vt.Xb=0,Pu||(Pu=ga)),vt}function ra(vt,Ut,me){return vt.a==0&&(vt.a=Ut,vt.sc=me,vt.cb=0),0}function uu(vt,Ut,me){return 3<=me&&vt[Ut+0]==157&&vt[Ut+1]==1&&vt[Ut+2]==42}function wl(vt,Ut){if(vt==null)return 0;if(vt.a=0,vt.sc="OK",Ut==null)return ra(vt,2,"null VP8Io passed to VP8GetHeaders()");var me=Ut.data,Ne=Ut.w,Je=Ut.ha;if(4>Je)return ra(vt,7,"Truncated header.");var vn=me[Ne+0]|me[Ne+1]<<8|me[Ne+2]<<16,An=vt.Od;if(An.Rb=!(1&vn),An.td=vn>>1&7,An.yd=vn>>4&1,An.ub=vn>>5,3<An.td)return ra(vt,3,"Incorrect keyframe parameters.");if(!An.yd)return ra(vt,4,"Frame not displayable.");Ne+=3,Je-=3;var Sn=vt.Kc;if(An.Rb){if(7>Je)return ra(vt,7,"cannot parse picture header");if(!uu(me,Ne,Je))return ra(vt,3,"Bad code word");Sn.c=16383&(me[Ne+4]<<8|me[Ne+3]),Sn.Td=me[Ne+4]>>6,Sn.i=16383&(me[Ne+6]<<8|me[Ne+5]),Sn.Ud=me[Ne+6]>>6,Ne+=7,Je-=7,vt.za=Sn.c+15>>4,vt.Ub=Sn.i+15>>4,Ut.width=Sn.c,Ut.height=Sn.i,Ut.Da=0,Ut.j=0,Ut.v=0,Ut.va=Ut.width,Ut.o=Ut.height,Ut.da=0,Ut.ib=Ut.width,Ut.hb=Ut.height,Ut.U=Ut.width,Ut.T=Ut.height,le((vn=vt.Pa).jb,0,255,vn.jb.length),mt((vn=vt.Qa)!=null),vn.Cb=0,vn.Bb=0,vn.Fb=1,le(vn.Zb,0,0,vn.Zb.length),le(vn.Lb,0,0,vn.Lb)}if(An.ub>Je)return ra(vt,7,"bad partition length");Ee(vn=vt.m,me,Ne,An.ub),Ne+=An.ub,Je-=An.ub,An.Rb&&(Sn.Ld=oi(vn),Sn.Kd=oi(vn)),Sn=vt.Qa;var Fn,Kn=vt.Pa;if(mt(vn!=null),mt(Sn!=null),Sn.Cb=oi(vn),Sn.Cb){if(Sn.Bb=oi(vn),oi(vn)){for(Sn.Fb=oi(vn),Fn=0;4>Fn;++Fn)Sn.Zb[Fn]=oi(vn)?on(vn,7):0;for(Fn=0;4>Fn;++Fn)Sn.Lb[Fn]=oi(vn)?on(vn,6):0}if(Sn.Bb)for(Fn=0;3>Fn;++Fn)Kn.jb[Fn]=oi(vn)?Ye(vn,8):255}else Sn.Bb=0;if(vn.Ka)return ra(vt,3,"cannot parse segment header");if((Sn=vt.ed).zd=oi(vn),Sn.Tb=Ye(vn,6),Sn.wb=Ye(vn,3),Sn.Pc=oi(vn),Sn.Pc&&oi(vn)){for(Kn=0;4>Kn;++Kn)oi(vn)&&(Sn.vd[Kn]=on(vn,6));for(Kn=0;4>Kn;++Kn)oi(vn)&&(Sn.od[Kn]=on(vn,6))}if(vt.L=Sn.Tb==0?0:Sn.zd?1:2,vn.Ka)return ra(vt,3,"cannot parse filter header");var Pi=Je;if(Je=Fn=Ne,Ne=Fn+Pi,Sn=Pi,vt.Xb=(1<<Ye(vt.m,2))-1,Pi<3*(Kn=vt.Xb))me=7;else{for(Fn+=3*Kn,Sn-=3*Kn,Pi=0;Pi<Kn;++Pi){var Ii=me[Je+0]|me[Je+1]<<8|me[Je+2]<<16;Ii>Sn&&(Ii=Sn),Ee(vt.Jc[+Pi],me,Fn,Ii),Fn+=Ii,Sn-=Ii,Je+=3}Ee(vt.Jc[+Kn],me,Fn,Sn),me=Fn<Ne?0:5}if(me!=0)return ra(vt,me,"cannot parse partitions");for(me=Ye(Fn=vt.m,7),Je=oi(Fn)?on(Fn,4):0,Ne=oi(Fn)?on(Fn,4):0,Sn=oi(Fn)?on(Fn,4):0,Kn=oi(Fn)?on(Fn,4):0,Fn=oi(Fn)?on(Fn,4):0,Pi=vt.Qa,Ii=0;4>Ii;++Ii){if(Pi.Cb){var er=Pi.Zb[Ii];Pi.Fb||(er+=me)}else{if(0<Ii){vt.pb[Ii]=vt.pb[0];continue}er=me}var Ui=vt.pb[Ii];Ui.Sc[0]=fA[Eh(er+Je,127)],Ui.Sc[1]=Nd[Eh(er+0,127)],Ui.Eb[0]=2*fA[Eh(er+Ne,127)],Ui.Eb[1]=101581*Nd[Eh(er+Sn,127)]>>16,8>Ui.Eb[1]&&(Ui.Eb[1]=8),Ui.Qc[0]=fA[Eh(er+Kn,117)],Ui.Qc[1]=Nd[Eh(er+Fn,127)],Ui.lc=er+Fn}if(!An.Rb)return ra(vt,4,"Not a key frame.");for(oi(vn),An=vt.Pa,me=0;4>me;++me){for(Je=0;8>Je;++Je)for(Ne=0;3>Ne;++Ne)for(Sn=0;11>Sn;++Sn)Kn=Fi(vn,VA[me][Je][Ne][Sn])?Ye(vn,8):wp[me][Je][Ne][Sn],An.Wc[me][Je].Yb[Ne][Sn]=Kn;for(Je=0;17>Je;++Je)An.Xc[me][Je]=An.Wc[me][Yf[Je]]}return vt.kc=oi(vn),vt.kc&&(vt.Bd=Ye(vn,8)),vt.cb=1}function ga(vt,Ut,me,Ne,Je,vn,An){var Sn=Ut[Je].Yb[me];for(me=0;16>Je;++Je){if(!Fi(vt,Sn[me+0]))return Je;for(;!Fi(vt,Sn[me+1]);)if(Sn=Ut[++Je].Yb[0],me=0,Je==16)return 16;var Fn=Ut[Je+1].Yb;if(Fi(vt,Sn[me+2])){var Kn=vt,Pi=0;if(Fi(Kn,(er=Sn)[(Ii=me)+3]))if(Fi(Kn,er[Ii+6])){for(Sn=0,Ii=2*(Pi=Fi(Kn,er[Ii+8]))+(er=Fi(Kn,er[Ii+9+Pi])),Pi=0,er=Sh[Ii];er[Sn];++Sn)Pi+=Pi+Fi(Kn,er[Sn]);Pi+=3+(8<<Ii)}else Fi(Kn,er[Ii+7])?(Pi=7+2*Fi(Kn,165),Pi+=Fi(Kn,145)):Pi=5+Fi(Kn,159);else Pi=Fi(Kn,er[Ii+4])?3+Fi(Kn,er[Ii+5]):2;Sn=Fn[2]}else Pi=1,Sn=Fn[1];Fn=An+Zf[Je],0>(Kn=vt).b&&li(Kn);var Ii,er=Kn.b,Ui=(Ii=Kn.Ca>>1)-(Kn.I>>er)>>31;--Kn.b,Kn.Ca+=Ui,Kn.Ca|=1,Kn.I-=(Ii+1&Ui)<<er,vn[Fn]=((Pi^Ui)-Ui)*Ne[(0<Je)+0]}return 16}function hu(vt){var Ut=vt.rb[vt.sb-1];Ut.la=0,Ut.Na=0,le(vt.zc,0,0,vt.zc.length),vt.ja=0}function Ru(vt,Ut){if(vt==null)return 0;if(Ut==null)return ra(vt,2,"NULL VP8Io parameter in VP8Decode().");if(!vt.cb&&!wl(vt,Ut))return 0;if(mt(vt.cb),Ut.ac==null||Ut.ac(Ut)){Ut.ob&&(vt.L=0);var me=ti[vt.L];if(vt.L==2?(vt.yb=0,vt.zb=0):(vt.yb=Ut.v-me>>4,vt.zb=Ut.j-me>>4,0>vt.yb&&(vt.yb=0),0>vt.zb&&(vt.zb=0)),vt.Va=Ut.o+15+me>>4,vt.Hb=Ut.va+15+me>>4,vt.Hb>vt.za&&(vt.Hb=vt.za),vt.Va>vt.Ub&&(vt.Va=vt.Ub),0<vt.L){var Ne=vt.ed;for(me=0;4>me;++me){var Je;if(vt.Qa.Cb){var vn=vt.Qa.Lb[me];vt.Qa.Fb||(vn+=Ne.Tb)}else vn=Ne.Tb;for(Je=0;1>=Je;++Je){var An=vt.gd[me][Je],Sn=vn;if(Ne.Pc&&(Sn+=Ne.vd[0],Je&&(Sn+=Ne.od[0])),0<(Sn=0>Sn?0:63<Sn?63:Sn)){var Fn=Sn;0<Ne.wb&&(Fn=4<Ne.wb?Fn>>2:Fn>>1)>9-Ne.wb&&(Fn=9-Ne.wb),1>Fn&&(Fn=1),An.dd=Fn,An.tc=2*Sn+Fn,An.ld=40<=Sn?2:15<=Sn?1:0}else An.tc=0;An.La=Je}}}me=0}else ra(vt,6,"Frame setup failed"),me=vt.a;if(me=me==0){if(me){vt.$c=0,0<vt.Aa||(vt.Ic=Di);t:{me=vt.Ic,Ne=4*(Fn=vt.za);var Kn=32*Fn,Pi=Fn+1,Ii=0<vt.L?Fn*(0<vt.Aa?2:1):0,er=(vt.Aa==2?2:1)*Fn;if((An=Ne+832+(Je=3*(16*me+ti[vt.L])/2*Kn)+(vn=vt.Fa!=null&&0<vt.Fa.length?vt.Kc.c*vt.Kc.i:0))!=An)me=0;else{if(An>vt.Vb){if(vt.Vb=0,vt.Ec=Zt(An),vt.Fc=0,vt.Ec==null){me=ra(vt,1,"no memory during frame initialization.");break t}vt.Vb=An}An=vt.Ec,Sn=vt.Fc,vt.Ac=An,vt.Bc=Sn,Sn+=Ne,vt.Gd=ye(Kn,Dh),vt.Hd=0,vt.rb=ye(Pi+1,dl),vt.sb=1,vt.wa=Ii?ye(Ii,Sl):null,vt.Y=0,vt.D.Nb=0,vt.D.wa=vt.wa,vt.D.Y=vt.Y,0<vt.Aa&&(vt.D.Y+=Fn),mt(!0),vt.oc=An,vt.pc=Sn,Sn+=832,vt.ya=ye(er,ec),vt.aa=0,vt.D.ya=vt.ya,vt.D.aa=vt.aa,vt.Aa==2&&(vt.D.aa+=Fn),vt.R=16*Fn,vt.B=8*Fn,Fn=(Kn=ti[vt.L])*vt.R,Kn=Kn/2*vt.B,vt.sa=An,vt.ta=Sn+Fn,vt.qa=vt.sa,vt.ra=vt.ta+16*me*vt.R+Kn,vt.Ha=vt.qa,vt.Ia=vt.ra+8*me*vt.B+Kn,vt.$c=0,Sn+=Je,vt.mb=vn?An:null,vt.nb=vn?Sn:null,mt(Sn+vn<=vt.Fc+vt.Vb),hu(vt),le(vt.Ac,vt.Bc,0,Ne),me=1}}if(me){if(Ut.ka=0,Ut.y=vt.sa,Ut.O=vt.ta,Ut.f=vt.qa,Ut.N=vt.ra,Ut.ea=vt.Ha,Ut.Vd=vt.Ia,Ut.fa=vt.R,Ut.Rc=vt.B,Ut.F=null,Ut.J=0,!Xl){for(me=-255;255>=me;++me)El[255+me]=0>me?-me:me;for(me=-1020;1020>=me;++me)wu[1020+me]=-128>me?-128:127<me?127:me;for(me=-112;112>=me;++me)Ro[112+me]=-16>me?-16:15<me?15:me;for(me=-255;510>=me;++me)Ca[255+me]=0>me?0:255<me?255:me;Xl=1}_e=HA,un=EA,xn=$c,Ni=Fc,Ei=ad,Yn=jh,Nr=Kd,jr=gc,to=lf,Co=rc,$o=FA,Do=uA,ss=QA,Ds=Gd,jo=Nc,Js=Uh,_l=Vu,$l=Ic,Qh[0]=mh,Qh[1]=Sd,Qh[2]=Xc,Qh[3]=Pd,Qh[4]=qu,Qh[5]=ud,Qh[6]=Hd,Qh[7]=th,Qh[8]=Ed,Qh[9]=bd,NA[0]=ah,NA[1]=ld,NA[2]=Lc,NA[3]=_d,NA[4]=Ul,NA[5]=Bd,NA[6]=lA,Ad[0]=Mc,Ad[1]=Rd,Ad[2]=Qd,Ad[3]=nu,Ad[4]=xa,Ad[5]=du,Ad[6]=hl,me=1}else me=0}me&&(me=function(Ui,Pr){for(Ui.M=0;Ui.M<Ui.Va;++Ui.M){var Mr,ji=Ui.Jc[Ui.M&Ui.Xb],Gi=Ui.m,Dr=Ui;for(Mr=0;Mr<Dr.za;++Mr){var eo=Gi,ro=Dr,es=ro.Ac,Wo=ro.Bc+4*Mr,Ks=ro.zc,qn=ro.ya[ro.aa+Mr];if(ro.Qa.Bb?qn.$b=Fi(eo,ro.Pa.jb[0])?2+Fi(eo,ro.Pa.jb[2]):Fi(eo,ro.Pa.jb[1]):qn.$b=0,ro.kc&&(qn.Ad=Fi(eo,ro.Bd)),qn.Za=!Fi(eo,145)+0,qn.Za){var gl=qn.Ob,kl=0;for(ro=0;4>ro;++ro){var rl,Qa=Ks[0+ro];for(rl=0;4>rl;++rl){Qa=WA[es[Wo+rl]][Qa];for(var zl=Kg[Fi(eo,Qa[0])];0<zl;)zl=Kg[2*zl+Fi(eo,Qa[zl])];Qa=-zl,es[Wo+rl]=Qa}jt(gl,kl,es,Wo,4),kl+=4,Ks[0+ro]=Qa}}else Qa=Fi(eo,156)?Fi(eo,128)?1:3:Fi(eo,163)?2:0,qn.Ob[0]=Qa,le(es,Wo,Qa,4),le(Ks,0,Qa,4);qn.Dd=Fi(eo,142)?Fi(eo,114)?Fi(eo,183)?1:3:2:0}if(Dr.m.Ka)return ra(Ui,7,"Premature end-of-partition0 encountered.");for(;Ui.ja<Ui.za;++Ui.ja){if(Dr=ji,eo=(Gi=Ui).rb[Gi.sb-1],es=Gi.rb[Gi.sb+Gi.ja],Mr=Gi.ya[Gi.aa+Gi.ja],Wo=Gi.kc?Mr.Ad:0)eo.la=es.la=0,Mr.Za||(eo.Na=es.Na=0),Mr.Hc=0,Mr.Gc=0,Mr.ia=0;else{var Ha,ua;if(eo=es,es=Dr,Wo=Gi.Pa.Xc,Ks=Gi.ya[Gi.aa+Gi.ja],qn=Gi.pb[Ks.$b],ro=Ks.ad,gl=0,kl=Gi.rb[Gi.sb-1],Qa=rl=0,le(ro,gl,0,384),Ks.Za)var Qu=0,Id=Wo[3];else{zl=Zt(16);var Lh=eo.Na+kl.Na;if(Lh=Pu(es,Wo[1],Lh,qn.Eb,0,zl,0),eo.Na=kl.Na=(0<Lh)+0,1<Lh)_e(zl,0,ro,gl);else{var gd=zl[0]+3>>3;for(zl=0;256>zl;zl+=16)ro[gl+zl]=gd}Qu=1,Id=Wo[0]}var bu=15&eo.la,Ch=15&kl.la;for(zl=0;4>zl;++zl){var pd=1&Ch;for(gd=ua=0;4>gd;++gd)bu=bu>>1|(pd=(Lh=Pu(es,Id,Lh=pd+(1&bu),qn.Sc,Qu,ro,gl))>Qu)<<7,ua=ua<<2|(3<Lh?3:1<Lh?2:ro[gl+0]!=0),gl+=16;bu>>=4,Ch=Ch>>1|pd<<7,rl=(rl<<8|ua)>>>0}for(Id=bu,Qu=Ch>>4,Ha=0;4>Ha;Ha+=2){for(ua=0,bu=eo.la>>4+Ha,Ch=kl.la>>4+Ha,zl=0;2>zl;++zl){for(pd=1&Ch,gd=0;2>gd;++gd)Lh=pd+(1&bu),bu=bu>>1|(pd=0<(Lh=Pu(es,Wo[2],Lh,qn.Qc,0,ro,gl)))<<3,ua=ua<<2|(3<Lh?3:1<Lh?2:ro[gl+0]!=0),gl+=16;bu>>=2,Ch=Ch>>1|pd<<5}Qa|=ua<<4*Ha,Id|=bu<<4<<Ha,Qu|=(240&Ch)<<Ha}eo.la=Id,kl.la=Qu,Ks.Hc=rl,Ks.Gc=Qa,Ks.ia=43690&Qa?0:qn.ia,Wo=!(rl|Qa)}if(0<Gi.L&&(Gi.wa[Gi.Y+Gi.ja]=Gi.gd[Mr.$b][Mr.Za],Gi.wa[Gi.Y+Gi.ja].La|=!Wo),Dr.Ka)return ra(Ui,7,"Premature end-of-file encountered.")}if(hu(Ui),Gi=Pr,Dr=1,Mr=(ji=Ui).D,eo=0<ji.L&&ji.M>=ji.zb&&ji.M<=ji.Va,ji.Aa==0)t:{if(Mr.M=ji.M,Mr.uc=eo,dA(ji,Mr),Dr=1,Mr=(ua=ji.D).Nb,eo=(Qa=ti[ji.L])*ji.R,es=Qa/2*ji.B,zl=16*Mr*ji.R,gd=8*Mr*ji.B,Wo=ji.sa,Ks=ji.ta-eo+zl,qn=ji.qa,ro=ji.ra-es+gd,gl=ji.Ha,kl=ji.Ia-es+gd,Ch=(bu=ua.M)==0,rl=bu>=ji.Va-1,ji.Aa==2&&dA(ji,ua),ua.uc)for(pd=(Lh=ji).D.M,mt(Lh.D.uc),ua=Lh.yb;ua<Lh.Hb;++ua){Qu=ua,Id=pd;var Kh=(ac=(nh=Lh).D).Nb;Ha=nh.R;var ac=ac.wa[ac.Y+Qu],Dc=nh.sa,Jd=nh.ta+16*Kh*Ha+16*Qu,kA=ac.dd,lc=ac.tc;if(lc!=0)if(mt(3<=lc),nh.L==1)0<Qu&&Js(Dc,Jd,Ha,lc+4),ac.La&&$l(Dc,Jd,Ha,lc),0<Id&&jo(Dc,Jd,Ha,lc+4),ac.La&&_l(Dc,Jd,Ha,lc);else{var lh=nh.B,$f=nh.qa,YA=nh.ra+8*Kh*lh+8*Qu,uf=nh.Ha,nh=nh.Ia+8*Kh*lh+8*Qu;Kh=ac.ld,0<Qu&&(jr(Dc,Jd,Ha,lc+4,kA,Kh),Co($f,YA,uf,nh,lh,lc+4,kA,Kh)),ac.La&&(Do(Dc,Jd,Ha,lc,kA,Kh),Ds($f,YA,uf,nh,lh,lc,kA,Kh)),0<Id&&(Nr(Dc,Jd,Ha,lc+4,kA,Kh),to($f,YA,uf,nh,lh,lc+4,kA,Kh)),ac.La&&($o(Dc,Jd,Ha,lc,kA,Kh),ss($f,YA,uf,nh,lh,lc,kA,Kh))}}if(ji.ia&&alert("todo:DitherRow"),Gi.put!=null){if(ua=16*bu,bu=16*(bu+1),Ch?(Gi.y=ji.sa,Gi.O=ji.ta+zl,Gi.f=ji.qa,Gi.N=ji.ra+gd,Gi.ea=ji.Ha,Gi.W=ji.Ia+gd):(ua-=Qa,Gi.y=Wo,Gi.O=Ks,Gi.f=qn,Gi.N=ro,Gi.ea=gl,Gi.W=kl),rl||(bu-=Qa),bu>Gi.o&&(bu=Gi.o),Gi.F=null,Gi.J=null,ji.Fa!=null&&0<ji.Fa.length&&ua<bu&&(Gi.J=KA(ji,Gi,ua,bu-ua),Gi.F=ji.mb,Gi.F==null&&Gi.F.length==0)){Dr=ra(ji,3,"Could not decode alpha data.");break t}ua<Gi.j&&(Qa=Gi.j-ua,ua=Gi.j,mt(!(1&Qa)),Gi.O+=ji.R*Qa,Gi.N+=ji.B*(Qa>>1),Gi.W+=ji.B*(Qa>>1),Gi.F!=null&&(Gi.J+=Gi.width*Qa)),ua<bu&&(Gi.O+=Gi.v,Gi.N+=Gi.v>>1,Gi.W+=Gi.v>>1,Gi.F!=null&&(Gi.J+=Gi.v),Gi.ka=ua-Gi.j,Gi.U=Gi.va-Gi.v,Gi.T=bu-ua,Dr=Gi.put(Gi))}Mr+1!=ji.Ic||rl||(jt(ji.sa,ji.ta-eo,Wo,Ks+16*ji.R,eo),jt(ji.qa,ji.ra-es,qn,ro+8*ji.B,es),jt(ji.Ha,ji.Ia-es,gl,kl+8*ji.B,es))}if(!Dr)return ra(Ui,6,"Output aborted.")}return 1}(vt,Ut)),Ut.bc!=null&&Ut.bc(Ut),me&=1}return me?(vt.cb=0,me):0}function Tu(vt,Ut,me,Ne,Je){Je=vt[Ut+me+32*Ne]+(Je>>3),vt[Ut+me+32*Ne]=-256&Je?0>Je?0:255:Je}function Yc(vt,Ut,me,Ne,Je,vn){Tu(vt,Ut,0,me,Ne+Je),Tu(vt,Ut,1,me,Ne+vn),Tu(vt,Ut,2,me,Ne-vn),Tu(vt,Ut,3,me,Ne-Je)}function _n(vt){return(20091*vt>>16)+vt}function nc(vt,Ut,me,Ne){var Je,vn=0,An=Zt(16);for(Je=0;4>Je;++Je){var Sn=vt[Ut+0]+vt[Ut+8],Fn=vt[Ut+0]-vt[Ut+8],Kn=(35468*vt[Ut+4]>>16)-_n(vt[Ut+12]),Pi=_n(vt[Ut+4])+(35468*vt[Ut+12]>>16);An[vn+0]=Sn+Pi,An[vn+1]=Fn+Kn,An[vn+2]=Fn-Kn,An[vn+3]=Sn-Pi,vn+=4,Ut++}for(Je=vn=0;4>Je;++Je)Sn=(vt=An[vn+0]+4)+An[vn+8],Fn=vt-An[vn+8],Kn=(35468*An[vn+4]>>16)-_n(An[vn+12]),Tu(me,Ne,0,0,Sn+(Pi=_n(An[vn+4])+(35468*An[vn+12]>>16))),Tu(me,Ne,1,0,Fn+Kn),Tu(me,Ne,2,0,Fn-Kn),Tu(me,Ne,3,0,Sn-Pi),vn++,Ne+=32}function jh(vt,Ut,me,Ne){var Je=vt[Ut+0]+4,vn=35468*vt[Ut+4]>>16,An=_n(vt[Ut+4]),Sn=35468*vt[Ut+1]>>16;Yc(me,Ne,0,Je+An,vt=_n(vt[Ut+1]),Sn),Yc(me,Ne,1,Je+vn,vt,Sn),Yc(me,Ne,2,Je-vn,vt,Sn),Yc(me,Ne,3,Je-An,vt,Sn)}function EA(vt,Ut,me,Ne,Je){nc(vt,Ut,me,Ne),Je&&nc(vt,Ut+16,me,Ne+4)}function $c(vt,Ut,me,Ne){un(vt,Ut+0,me,Ne,1),un(vt,Ut+32,me,Ne+128,1)}function Fc(vt,Ut,me,Ne){var Je;for(vt=vt[Ut+0]+4,Je=0;4>Je;++Je)for(Ut=0;4>Ut;++Ut)Tu(me,Ne,Ut,Je,vt)}function ad(vt,Ut,me,Ne){vt[Ut+0]&&Ni(vt,Ut+0,me,Ne),vt[Ut+16]&&Ni(vt,Ut+16,me,Ne+4),vt[Ut+32]&&Ni(vt,Ut+32,me,Ne+128),vt[Ut+48]&&Ni(vt,Ut+48,me,Ne+128+4)}function HA(vt,Ut,me,Ne){var Je,vn=Zt(16);for(Je=0;4>Je;++Je){var An=vt[Ut+0+Je]+vt[Ut+12+Je],Sn=vt[Ut+4+Je]+vt[Ut+8+Je],Fn=vt[Ut+4+Je]-vt[Ut+8+Je],Kn=vt[Ut+0+Je]-vt[Ut+12+Je];vn[0+Je]=An+Sn,vn[8+Je]=An-Sn,vn[4+Je]=Kn+Fn,vn[12+Je]=Kn-Fn}for(Je=0;4>Je;++Je)An=(vt=vn[0+4*Je]+3)+vn[3+4*Je],Sn=vn[1+4*Je]+vn[2+4*Je],Fn=vn[1+4*Je]-vn[2+4*Je],Kn=vt-vn[3+4*Je],me[Ne+0]=An+Sn>>3,me[Ne+16]=Kn+Fn>>3,me[Ne+32]=An-Sn>>3,me[Ne+48]=Kn-Fn>>3,Ne+=64}function vu(vt,Ut,me){var Ne,Je=Ut-32,vn=aa,An=255-vt[Je-1];for(Ne=0;Ne<me;++Ne){var Sn,Fn=vn,Kn=An+vt[Ut-1];for(Sn=0;Sn<me;++Sn)vt[Ut+Sn]=Fn[Kn+vt[Je+Sn]];Ut+=32}}function Sd(vt,Ut){vu(vt,Ut,4)}function Rd(vt,Ut){vu(vt,Ut,8)}function ld(vt,Ut){vu(vt,Ut,16)}function Lc(vt,Ut){var me;for(me=0;16>me;++me)jt(vt,Ut+32*me,vt,Ut-32,16)}function _d(vt,Ut){var me;for(me=16;0<me;--me)le(vt,Ut,vt[Ut-1],16),Ut+=32}function Cd(vt,Ut,me){var Ne;for(Ne=0;16>Ne;++Ne)le(Ut,me+32*Ne,vt,16)}function ah(vt,Ut){var me,Ne=16;for(me=0;16>me;++me)Ne+=vt[Ut-1+32*me]+vt[Ut+me-32];Cd(Ne>>5,vt,Ut)}function Ul(vt,Ut){var me,Ne=8;for(me=0;16>me;++me)Ne+=vt[Ut-1+32*me];Cd(Ne>>4,vt,Ut)}function Bd(vt,Ut){var me,Ne=8;for(me=0;16>me;++me)Ne+=vt[Ut+me-32];Cd(Ne>>4,vt,Ut)}function lA(vt,Ut){Cd(128,vt,Ut)}function Ys(vt,Ut,me){return vt+2*Ut+me+2>>2}function Xc(vt,Ut){var me,Ne=Ut-32;for(Ne=new Uint8Array([Ys(vt[Ne-1],vt[Ne+0],vt[Ne+1]),Ys(vt[Ne+0],vt[Ne+1],vt[Ne+2]),Ys(vt[Ne+1],vt[Ne+2],vt[Ne+3]),Ys(vt[Ne+2],vt[Ne+3],vt[Ne+4])]),me=0;4>me;++me)jt(vt,Ut+32*me,Ne,0,Ne.length)}function Pd(vt,Ut){var me=vt[Ut-1],Ne=vt[Ut-1+32],Je=vt[Ut-1+64],vn=vt[Ut-1+96];ki(vt,Ut+0,16843009*Ys(vt[Ut-1-32],me,Ne)),ki(vt,Ut+32,16843009*Ys(me,Ne,Je)),ki(vt,Ut+64,16843009*Ys(Ne,Je,vn)),ki(vt,Ut+96,16843009*Ys(Je,vn,vn))}function mh(vt,Ut){var me,Ne=4;for(me=0;4>me;++me)Ne+=vt[Ut+me-32]+vt[Ut-1+32*me];for(Ne>>=3,me=0;4>me;++me)le(vt,Ut+32*me,Ne,4)}function qu(vt,Ut){var me=vt[Ut-1+0],Ne=vt[Ut-1+32],Je=vt[Ut-1+64],vn=vt[Ut-1-32],An=vt[Ut+0-32],Sn=vt[Ut+1-32],Fn=vt[Ut+2-32],Kn=vt[Ut+3-32];vt[Ut+0+96]=Ys(Ne,Je,vt[Ut-1+96]),vt[Ut+1+96]=vt[Ut+0+64]=Ys(me,Ne,Je),vt[Ut+2+96]=vt[Ut+1+64]=vt[Ut+0+32]=Ys(vn,me,Ne),vt[Ut+3+96]=vt[Ut+2+64]=vt[Ut+1+32]=vt[Ut+0+0]=Ys(An,vn,me),vt[Ut+3+64]=vt[Ut+2+32]=vt[Ut+1+0]=Ys(Sn,An,vn),vt[Ut+3+32]=vt[Ut+2+0]=Ys(Fn,Sn,An),vt[Ut+3+0]=Ys(Kn,Fn,Sn)}function Hd(vt,Ut){var me=vt[Ut+1-32],Ne=vt[Ut+2-32],Je=vt[Ut+3-32],vn=vt[Ut+4-32],An=vt[Ut+5-32],Sn=vt[Ut+6-32],Fn=vt[Ut+7-32];vt[Ut+0+0]=Ys(vt[Ut+0-32],me,Ne),vt[Ut+1+0]=vt[Ut+0+32]=Ys(me,Ne,Je),vt[Ut+2+0]=vt[Ut+1+32]=vt[Ut+0+64]=Ys(Ne,Je,vn),vt[Ut+3+0]=vt[Ut+2+32]=vt[Ut+1+64]=vt[Ut+0+96]=Ys(Je,vn,An),vt[Ut+3+32]=vt[Ut+2+64]=vt[Ut+1+96]=Ys(vn,An,Sn),vt[Ut+3+64]=vt[Ut+2+96]=Ys(An,Sn,Fn),vt[Ut+3+96]=Ys(Sn,Fn,Fn)}function ud(vt,Ut){var me=vt[Ut-1+0],Ne=vt[Ut-1+32],Je=vt[Ut-1+64],vn=vt[Ut-1-32],An=vt[Ut+0-32],Sn=vt[Ut+1-32],Fn=vt[Ut+2-32],Kn=vt[Ut+3-32];vt[Ut+0+0]=vt[Ut+1+64]=vn+An+1>>1,vt[Ut+1+0]=vt[Ut+2+64]=An+Sn+1>>1,vt[Ut+2+0]=vt[Ut+3+64]=Sn+Fn+1>>1,vt[Ut+3+0]=Fn+Kn+1>>1,vt[Ut+0+96]=Ys(Je,Ne,me),vt[Ut+0+64]=Ys(Ne,me,vn),vt[Ut+0+32]=vt[Ut+1+96]=Ys(me,vn,An),vt[Ut+1+32]=vt[Ut+2+96]=Ys(vn,An,Sn),vt[Ut+2+32]=vt[Ut+3+96]=Ys(An,Sn,Fn),vt[Ut+3+32]=Ys(Sn,Fn,Kn)}function th(vt,Ut){var me=vt[Ut+0-32],Ne=vt[Ut+1-32],Je=vt[Ut+2-32],vn=vt[Ut+3-32],An=vt[Ut+4-32],Sn=vt[Ut+5-32],Fn=vt[Ut+6-32],Kn=vt[Ut+7-32];vt[Ut+0+0]=me+Ne+1>>1,vt[Ut+1+0]=vt[Ut+0+64]=Ne+Je+1>>1,vt[Ut+2+0]=vt[Ut+1+64]=Je+vn+1>>1,vt[Ut+3+0]=vt[Ut+2+64]=vn+An+1>>1,vt[Ut+0+32]=Ys(me,Ne,Je),vt[Ut+1+32]=vt[Ut+0+96]=Ys(Ne,Je,vn),vt[Ut+2+32]=vt[Ut+1+96]=Ys(Je,vn,An),vt[Ut+3+32]=vt[Ut+2+96]=Ys(vn,An,Sn),vt[Ut+3+64]=Ys(An,Sn,Fn),vt[Ut+3+96]=Ys(Sn,Fn,Kn)}function bd(vt,Ut){var me=vt[Ut-1+0],Ne=vt[Ut-1+32],Je=vt[Ut-1+64],vn=vt[Ut-1+96];vt[Ut+0+0]=me+Ne+1>>1,vt[Ut+2+0]=vt[Ut+0+32]=Ne+Je+1>>1,vt[Ut+2+32]=vt[Ut+0+64]=Je+vn+1>>1,vt[Ut+1+0]=Ys(me,Ne,Je),vt[Ut+3+0]=vt[Ut+1+32]=Ys(Ne,Je,vn),vt[Ut+3+32]=vt[Ut+1+64]=Ys(Je,vn,vn),vt[Ut+3+64]=vt[Ut+2+64]=vt[Ut+0+96]=vt[Ut+1+96]=vt[Ut+2+96]=vt[Ut+3+96]=vn}function Ed(vt,Ut){var me=vt[Ut-1+0],Ne=vt[Ut-1+32],Je=vt[Ut-1+64],vn=vt[Ut-1+96],An=vt[Ut-1-32],Sn=vt[Ut+0-32],Fn=vt[Ut+1-32],Kn=vt[Ut+2-32];vt[Ut+0+0]=vt[Ut+2+32]=me+An+1>>1,vt[Ut+0+32]=vt[Ut+2+64]=Ne+me+1>>1,vt[Ut+0+64]=vt[Ut+2+96]=Je+Ne+1>>1,vt[Ut+0+96]=vn+Je+1>>1,vt[Ut+3+0]=Ys(Sn,Fn,Kn),vt[Ut+2+0]=Ys(An,Sn,Fn),vt[Ut+1+0]=vt[Ut+3+32]=Ys(me,An,Sn),vt[Ut+1+32]=vt[Ut+3+64]=Ys(Ne,me,An),vt[Ut+1+64]=vt[Ut+3+96]=Ys(Je,Ne,me),vt[Ut+1+96]=Ys(vn,Je,Ne)}function Qd(vt,Ut){var me;for(me=0;8>me;++me)jt(vt,Ut+32*me,vt,Ut-32,8)}function nu(vt,Ut){var me;for(me=0;8>me;++me)le(vt,Ut,vt[Ut-1],8),Ut+=32}function cu(vt,Ut,me){var Ne;for(Ne=0;8>Ne;++Ne)le(Ut,me+32*Ne,vt,8)}function Mc(vt,Ut){var me,Ne=8;for(me=0;8>me;++me)Ne+=vt[Ut+me-32]+vt[Ut-1+32*me];cu(Ne>>4,vt,Ut)}function du(vt,Ut){var me,Ne=4;for(me=0;8>me;++me)Ne+=vt[Ut+me-32];cu(Ne>>3,vt,Ut)}function xa(vt,Ut){var me,Ne=4;for(me=0;8>me;++me)Ne+=vt[Ut-1+32*me];cu(Ne>>3,vt,Ut)}function hl(vt,Ut){cu(128,vt,Ut)}function Bu(vt,Ut,me){var Ne=vt[Ut-me],Je=vt[Ut+0],vn=3*(Je-Ne)+Hl[1020+vt[Ut-2*me]-vt[Ut+me]],An=Zu[112+(vn+4>>3)];vt[Ut-me]=aa[255+Ne+Zu[112+(vn+3>>3)]],vt[Ut+0]=aa[255+Je-An]}function vh(vt,Ut,me,Ne){var Je=vt[Ut+0],vn=vt[Ut+me];return zs[255+vt[Ut-2*me]-vt[Ut-me]]>Ne||zs[255+vn-Je]>Ne}function yh(vt,Ut,me,Ne){return 4*zs[255+vt[Ut-me]-vt[Ut+0]]+zs[255+vt[Ut-2*me]-vt[Ut+me]]<=Ne}function zd(vt,Ut,me,Ne,Je){var vn=vt[Ut-3*me],An=vt[Ut-2*me],Sn=vt[Ut-me],Fn=vt[Ut+0],Kn=vt[Ut+me],Pi=vt[Ut+2*me],Ii=vt[Ut+3*me];return 4*zs[255+Sn-Fn]+zs[255+An-Kn]>Ne?0:zs[255+vt[Ut-4*me]-vn]<=Je&&zs[255+vn-An]<=Je&&zs[255+An-Sn]<=Je&&zs[255+Ii-Pi]<=Je&&zs[255+Pi-Kn]<=Je&&zs[255+Kn-Fn]<=Je}function Nc(vt,Ut,me,Ne){var Je=2*Ne+1;for(Ne=0;16>Ne;++Ne)yh(vt,Ut+Ne,me,Je)&&Bu(vt,Ut+Ne,me)}function Uh(vt,Ut,me,Ne){var Je=2*Ne+1;for(Ne=0;16>Ne;++Ne)yh(vt,Ut+Ne*me,1,Je)&&Bu(vt,Ut+Ne*me,1)}function Vu(vt,Ut,me,Ne){var Je;for(Je=3;0<Je;--Je)Nc(vt,Ut+=4*me,me,Ne)}function Ic(vt,Ut,me,Ne){var Je;for(Je=3;0<Je;--Je)Uh(vt,Ut+=4,me,Ne)}function Jc(vt,Ut,me,Ne,Je,vn,An,Sn){for(vn=2*vn+1;0<Je--;){if(zd(vt,Ut,me,vn,An))if(vh(vt,Ut,me,Sn))Bu(vt,Ut,me);else{var Fn=vt,Kn=Ut,Pi=me,Ii=Fn[Kn-2*Pi],er=Fn[Kn-Pi],Ui=Fn[Kn+0],Pr=Fn[Kn+Pi],Mr=Fn[Kn+2*Pi],ji=27*(Dr=Hl[1020+3*(Ui-er)+Hl[1020+Ii-Pr]])+63>>7,Gi=18*Dr+63>>7,Dr=9*Dr+63>>7;Fn[Kn-3*Pi]=aa[255+Fn[Kn-3*Pi]+Dr],Fn[Kn-2*Pi]=aa[255+Ii+Gi],Fn[Kn-Pi]=aa[255+er+ji],Fn[Kn+0]=aa[255+Ui-ji],Fn[Kn+Pi]=aa[255+Pr-Gi],Fn[Kn+2*Pi]=aa[255+Mr-Dr]}Ut+=Ne}}function ic(vt,Ut,me,Ne,Je,vn,An,Sn){for(vn=2*vn+1;0<Je--;){if(zd(vt,Ut,me,vn,An))if(vh(vt,Ut,me,Sn))Bu(vt,Ut,me);else{var Fn=vt,Kn=Ut,Pi=me,Ii=Fn[Kn-Pi],er=Fn[Kn+0],Ui=Fn[Kn+Pi],Pr=Zu[112+((Mr=3*(er-Ii))+4>>3)],Mr=Zu[112+(Mr+3>>3)],ji=Pr+1>>1;Fn[Kn-2*Pi]=aa[255+Fn[Kn-2*Pi]+ji],Fn[Kn-Pi]=aa[255+Ii+Mr],Fn[Kn+0]=aa[255+er-Pr],Fn[Kn+Pi]=aa[255+Ui-ji]}Ut+=Ne}}function Kd(vt,Ut,me,Ne,Je,vn){Jc(vt,Ut,me,1,16,Ne,Je,vn)}function gc(vt,Ut,me,Ne,Je,vn){Jc(vt,Ut,1,me,16,Ne,Je,vn)}function FA(vt,Ut,me,Ne,Je,vn){var An;for(An=3;0<An;--An)ic(vt,Ut+=4*me,me,1,16,Ne,Je,vn)}function uA(vt,Ut,me,Ne,Je,vn){var An;for(An=3;0<An;--An)ic(vt,Ut+=4,1,me,16,Ne,Je,vn)}function lf(vt,Ut,me,Ne,Je,vn,An,Sn){Jc(vt,Ut,Je,1,8,vn,An,Sn),Jc(me,Ne,Je,1,8,vn,An,Sn)}function rc(vt,Ut,me,Ne,Je,vn,An,Sn){Jc(vt,Ut,1,Je,8,vn,An,Sn),Jc(me,Ne,1,Je,8,vn,An,Sn)}function QA(vt,Ut,me,Ne,Je,vn,An,Sn){ic(vt,Ut+4*Je,Je,1,8,vn,An,Sn),ic(me,Ne+4*Je,Je,1,8,vn,An,Sn)}function Gd(vt,Ut,me,Ne,Je,vn,An,Sn){ic(vt,Ut+4,1,Je,8,vn,An,Sn),ic(me,Ne+4,1,Je,8,vn,An,Sn)}function pc(){this.ba=new as,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Oo,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function hd(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function hA(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Rh(){this.ua=0,this.Wa=new Qn,this.vb=new Qn,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new ve,this.yc=new Xn}function zA(){this.xb=this.a=0,this.l=new Wu,this.ca=new as,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new Ue,this.Pb=0,this.wd=new Ue,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Rh,this.ab=0,this.gc=ye(4,hA),this.Oc=0}function Fd(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Wu,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Wd(vt,Ut,me,Ne,Je,vn,An){for(vt=vt==null?0:vt[Ut+0],Ut=0;Ut<An;++Ut)Je[vn+Ut]=vt+me[Ne+Ut]&255,vt=Je[vn+Ut]}function LA(vt,Ut,me,Ne,Je,vn,An){var Sn;if(vt==null)Wd(null,null,me,Ne,Je,vn,An);else for(Sn=0;Sn<An;++Sn)Je[vn+Sn]=vt[Ut+Sn]+me[Ne+Sn]&255}function kc(vt,Ut,me,Ne,Je,vn,An){if(vt==null)Wd(null,null,me,Ne,Je,vn,An);else{var Sn,Fn=vt[Ut+0],Kn=Fn,Pi=Fn;for(Sn=0;Sn<An;++Sn)Kn=Pi+(Fn=vt[Ut+Sn])-Kn,Pi=me[Ne+Sn]+(-256&Kn?0>Kn?0:255:Kn)&255,Kn=Fn,Je[vn+Sn]=Pi}}function KA(vt,Ut,me,Ne){var Je=Ut.width,vn=Ut.o;if(mt(vt!=null&&Ut!=null),0>me||0>=Ne||me+Ne>vn)return null;if(!vt.Cc){if(vt.ga==null){var An;if(vt.ga=new Fd,(An=vt.ga==null)||(An=Ut.width*Ut.o,mt(vt.Gb.length==0),vt.Gb=Zt(An),vt.Uc=0,vt.Gb==null?An=0:(vt.mb=vt.Gb,vt.nb=vt.Uc,vt.rc=null,An=1),An=!An),!An){An=vt.ga;var Sn=vt.Fa,Fn=vt.P,Kn=vt.qc,Pi=vt.mb,Ii=vt.nb,er=Fn+1,Ui=Kn-1,Pr=An.l;if(mt(Sn!=null&&Pi!=null&&Ut!=null),zh[0]=null,zh[1]=Wd,zh[2]=LA,zh[3]=kc,An.ca=Pi,An.tb=Ii,An.c=Ut.width,An.i=Ut.height,mt(0<An.c&&0<An.i),1>=Kn)Ut=0;else if(An.$a=Sn[Fn+0]>>0&3,An.Z=Sn[Fn+0]>>2&3,An.Lc=Sn[Fn+0]>>4&3,Fn=Sn[Fn+0]>>6&3,0>An.$a||1<An.$a||4<=An.Z||1<An.Lc||Fn)Ut=0;else if(Pr.put=ea,Pr.ac=_s,Pr.bc=Yl,Pr.ma=An,Pr.width=Ut.width,Pr.height=Ut.height,Pr.Da=Ut.Da,Pr.v=Ut.v,Pr.va=Ut.va,Pr.j=Ut.j,Pr.o=Ut.o,An.$a)t:{mt(An.$a==1),Ut=Ia();e:for(;;){if(Ut==null){Ut=0;break t}if(mt(An!=null),An.mc=Ut,Ut.c=An.c,Ut.i=An.i,Ut.l=An.l,Ut.l.ma=An,Ut.l.width=An.c,Ut.l.height=An.i,Ut.a=0,cn(Ut.m,Sn,er,Ui),!Nl(An.c,An.i,1,Ut,null)||(Ut.ab==1&&Ut.gc[0].hc==3&&na(Ut.s)?(An.ic=1,Sn=Ut.c*Ut.i,Ut.Ta=null,Ut.Ua=0,Ut.V=Zt(Sn),Ut.Ba=0,Ut.V==null?(Ut.a=1,Ut=0):Ut=1):(An.ic=0,Ut=Iu(Ut,An.c)),!Ut))break e;Ut=1;break t}An.mc=null,Ut=0}else Ut=Ui>=An.c*An.i;An=!Ut}if(An)return null;vt.ga.Lc!=1?vt.Ga=0:Ne=vn-me}mt(vt.ga!=null),mt(me+Ne<=vn);t:{if(Ut=(Sn=vt.ga).c,vn=Sn.l.o,Sn.$a==0){if(er=vt.rc,Ui=vt.Vc,Pr=vt.Fa,Fn=vt.P+1+me*Ut,Kn=vt.mb,Pi=vt.nb+me*Ut,mt(Fn<=vt.P+vt.qc),Sn.Z!=0)for(mt(zh[Sn.Z]!=null),An=0;An<Ne;++An)zh[Sn.Z](er,Ui,Pr,Fn,Kn,Pi,Ut),er=Kn,Ui=Pi,Pi+=Ut,Fn+=Ut;else for(An=0;An<Ne;++An)jt(Kn,Pi,Pr,Fn,Ut),er=Kn,Ui=Pi,Pi+=Ut,Fn+=Ut;vt.rc=er,vt.Vc=Ui}else{if(mt(Sn.mc!=null),Ut=me+Ne,mt((An=Sn.mc)!=null),mt(Ut<=An.i),An.C>=Ut)Ut=1;else if(Sn.ic||cr(),Sn.ic){Sn=An.V,er=An.Ba,Ui=An.c;var Mr=An.i,ji=(Pr=1,Fn=An.$/Ui,Kn=An.$%Ui,Pi=An.m,Ii=An.s,An.$),Gi=Ui*Mr,Dr=Ui*Ut,eo=Ii.wc,ro=ji<Dr?Ra(Ii,Kn,Fn):null;mt(ji<=Gi),mt(Ut<=Mr),mt(na(Ii));e:for(;;){for(;!Pi.h&&ji<Dr;){if(Kn&eo||(ro=Ra(Ii,Kn,Fn)),mt(ro!=null),Zn(Pi),256>(Mr=yl(ro.G[0],ro.H[0],Pi)))Sn[er+ji]=Mr,++ji,++Kn>=Ui&&(Kn=0,++Fn<=Ut&&!(Fn%16)&&Xa(An,Fn));else{if(!(280>Mr)){Pr=0;break e}Mr=eu(Mr-256,Pi);var es,Wo=yl(ro.G[4],ro.H[4],Pi);if(Zn(Pi),!(ji>=(Wo=fa(Ui,Wo=eu(Wo,Pi)))&&Gi-ji>=Mr)){Pr=0;break e}for(es=0;es<Mr;++es)Sn[er+ji+es]=Sn[er+ji+es-Wo];for(ji+=Mr,Kn+=Mr;Kn>=Ui;)Kn-=Ui,++Fn<=Ut&&!(Fn%16)&&Xa(An,Fn);ji<Dr&&Kn&eo&&(ro=Ra(Ii,Kn,Fn))}mt(Pi.h==yn(Pi))}Xa(An,Fn>Ut?Ut:Fn);break e}!Pr||Pi.h&&ji<Gi?(Pr=0,An.a=Pi.h?5:3):An.$=ji,Ut=Pr}else Ut=ul(An,An.V,An.Ba,An.c,An.i,Ut,mu);if(!Ut){Ne=0;break t}}me+Ne>=vn&&(vt.Cc=1),Ne=1}if(!Ne)return null;if(vt.Cc&&((Ne=vt.ga)!=null&&(Ne.mc=null),vt.ga=null,0<vt.Ga))return alert("todo:WebPDequantizeLevels"),null}return vt.nb+me*Je}function pe(vt,Ut,me,Ne,Je,vn){for(;0<Je--;){var An,Sn=vt,Fn=Ut+(me?1:0),Kn=vt,Pi=Ut+(me?0:3);for(An=0;An<Ne;++An){var Ii=Kn[Pi+4*An];Ii!=255&&(Ii*=32897,Sn[Fn+4*An+0]=Sn[Fn+4*An+0]*Ii>>23,Sn[Fn+4*An+1]=Sn[Fn+4*An+1]*Ii>>23,Sn[Fn+4*An+2]=Sn[Fn+4*An+2]*Ii>>23)}Ut+=vn}}function wn(vt,Ut,me,Ne,Je){for(;0<Ne--;){var vn;for(vn=0;vn<me;++vn){var An=vt[Ut+2*vn+0],Sn=15&(Kn=vt[Ut+2*vn+1]),Fn=4369*Sn,Kn=(240&Kn|Kn>>4)*Fn>>16;vt[Ut+2*vn+0]=(240&An|An>>4)*Fn>>16&240|(15&An|An<<4)*Fn>>16>>4&15,vt[Ut+2*vn+1]=240&Kn|Sn}Ut+=Je}}function vi(vt,Ut,me,Ne,Je,vn,An,Sn){var Fn,Kn,Pi=255;for(Kn=0;Kn<Je;++Kn){for(Fn=0;Fn<Ne;++Fn){var Ii=vt[Ut+Fn];vn[An+4*Fn]=Ii,Pi&=Ii}Ut+=me,An+=Sn}return Pi!=255}function Ri(vt,Ut,me,Ne,Je){var vn;for(vn=0;vn<Je;++vn)me[Ne+vn]=vt[Ut+vn]>>8}function cr(){fl=pe,Ja=wn,Ua=vi,Za=Ri}function Qr(vt,Ut,me){Ti[vt]=function(Ne,Je,vn,An,Sn,Fn,Kn,Pi,Ii,er,Ui,Pr,Mr,ji,Gi,Dr,eo){var ro,es=eo-1>>1,Wo=Sn[Fn+0]|Kn[Pi+0]<<16,Ks=Ii[er+0]|Ui[Pr+0]<<16;mt(Ne!=null);var qn=3*Wo+Ks+131074>>2;for(Ut(Ne[Je+0],255&qn,qn>>16,Mr,ji),vn!=null&&(qn=3*Ks+Wo+131074>>2,Ut(vn[An+0],255&qn,qn>>16,Gi,Dr)),ro=1;ro<=es;++ro){var gl=Sn[Fn+ro]|Kn[Pi+ro]<<16,kl=Ii[er+ro]|Ui[Pr+ro]<<16,rl=Wo+gl+Ks+kl+524296,Qa=rl+2*(gl+Ks)>>3;qn=Qa+Wo>>1,Wo=(rl=rl+2*(Wo+kl)>>3)+gl>>1,Ut(Ne[Je+2*ro-1],255&qn,qn>>16,Mr,ji+(2*ro-1)*me),Ut(Ne[Je+2*ro-0],255&Wo,Wo>>16,Mr,ji+(2*ro-0)*me),vn!=null&&(qn=rl+Ks>>1,Wo=Qa+kl>>1,Ut(vn[An+2*ro-1],255&qn,qn>>16,Gi,Dr+(2*ro-1)*me),Ut(vn[An+2*ro+0],255&Wo,Wo>>16,Gi,Dr+(2*ro+0)*me)),Wo=gl,Ks=kl}1&eo||(qn=3*Wo+Ks+131074>>2,Ut(Ne[Je+eo-1],255&qn,qn>>16,Mr,ji+(eo-1)*me),vn!=null&&(qn=3*Ks+Wo+131074>>2,Ut(vn[An+eo-1],255&qn,qn>>16,Gi,Dr+(eo-1)*me)))}}function yo(){vc[ch]=yc,vc[fu]=xp,vc[Xd]=ZA,vc[Fh]=wf,vc[eh]=Rs,vc[xh]=Gg,vc[Ql]=Sp,vc[Hu]=xp,vc[qc]=wf,vc[Md]=Rs,vc[Cg]=Gg}function ps(vt){return vt&~Wg?0>vt?0:255:vt>>bg}function Ws(vt,Ut){return ps((19077*vt>>8)+(26149*Ut>>8)-14234)}function _a(vt,Ut,me){return ps((19077*vt>>8)-(6419*Ut>>8)-(13320*me>>8)+8708)}function ba(vt,Ut){return ps((19077*vt>>8)+(33050*Ut>>8)-17685)}function Cl(vt,Ut,me,Ne,Je){Ne[Je+0]=Ws(vt,me),Ne[Je+1]=_a(vt,Ut,me),Ne[Je+2]=ba(vt,Ut)}function Us(vt,Ut,me,Ne,Je){Ne[Je+0]=ba(vt,Ut),Ne[Je+1]=_a(vt,Ut,me),Ne[Je+2]=Ws(vt,me)}function Au(vt,Ut,me,Ne,Je){var vn=_a(vt,Ut,me);Ut=vn<<3&224|ba(vt,Ut)>>3,Ne[Je+0]=248&Ws(vt,me)|vn>>5,Ne[Je+1]=Ut}function yu(vt,Ut,me,Ne,Je){var vn=240&ba(vt,Ut)|15;Ne[Je+0]=240&Ws(vt,me)|_a(vt,Ut,me)>>4,Ne[Je+1]=vn}function Al(vt,Ut,me,Ne,Je){Ne[Je+0]=255,Cl(vt,Ut,me,Ne,Je+1)}function Il(vt,Ut,me,Ne,Je){Us(vt,Ut,me,Ne,Je),Ne[Je+3]=255}function wh(vt,Ut,me,Ne,Je){Cl(vt,Ut,me,Ne,Je),Ne[Je+3]=255}function Eh(vt,Ut){return 0>vt?0:vt>Ut?Ut:vt}function oc(vt,Ut,me){Ti[vt]=function(Ne,Je,vn,An,Sn,Fn,Kn,Pi,Ii){for(var er=Pi+(-2&Ii)*me;Pi!=er;)Ut(Ne[Je+0],vn[An+0],Sn[Fn+0],Kn,Pi),Ut(Ne[Je+1],vn[An+0],Sn[Fn+0],Kn,Pi+me),Je+=2,++An,++Fn,Pi+=2*me;1&Ii&&Ut(Ne[Je+0],vn[An+0],Sn[Fn+0],Kn,Pi)}}function Vd(vt,Ut,me){return me==0?vt==0?Ut==0?6:5:Ut==0?4:0:me}function cA(vt,Ut,me,Ne,Je){switch(vt>>>30){case 3:un(Ut,me,Ne,Je,0);break;case 2:Yn(Ut,me,Ne,Je);break;case 1:Ni(Ut,me,Ne,Je)}}function dA(vt,Ut){var me,Ne,Je=Ut.M,vn=Ut.Nb,An=vt.oc,Sn=vt.pc+40,Fn=vt.oc,Kn=vt.pc+584,Pi=vt.oc,Ii=vt.pc+600;for(me=0;16>me;++me)An[Sn+32*me-1]=129;for(me=0;8>me;++me)Fn[Kn+32*me-1]=129,Pi[Ii+32*me-1]=129;for(0<Je?An[Sn-1-32]=Fn[Kn-1-32]=Pi[Ii-1-32]=129:(le(An,Sn-32-1,127,21),le(Fn,Kn-32-1,127,9),le(Pi,Ii-32-1,127,9)),Ne=0;Ne<vt.za;++Ne){var er=Ut.ya[Ut.aa+Ne];if(0<Ne){for(me=-1;16>me;++me)jt(An,Sn+32*me-4,An,Sn+32*me+12,4);for(me=-1;8>me;++me)jt(Fn,Kn+32*me-4,Fn,Kn+32*me+4,4),jt(Pi,Ii+32*me-4,Pi,Ii+32*me+4,4)}var Ui=vt.Gd,Pr=vt.Hd+Ne,Mr=er.ad,ji=er.Hc;if(0<Je&&(jt(An,Sn-32,Ui[Pr].y,0,16),jt(Fn,Kn-32,Ui[Pr].f,0,8),jt(Pi,Ii-32,Ui[Pr].ea,0,8)),er.Za){var Gi=An,Dr=Sn-32+16;for(0<Je&&(Ne>=vt.za-1?le(Gi,Dr,Ui[Pr].y[15],4):jt(Gi,Dr,Ui[Pr+1].y,0,4)),me=0;4>me;me++)Gi[Dr+128+me]=Gi[Dr+256+me]=Gi[Dr+384+me]=Gi[Dr+0+me];for(me=0;16>me;++me,ji<<=2)Gi=An,Dr=Sn+In[me],Qh[er.Ob[me]](Gi,Dr),cA(ji,Mr,16*+me,Gi,Dr)}else if(Gi=Vd(Ne,Je,er.Ob[0]),NA[Gi](An,Sn),ji!=0)for(me=0;16>me;++me,ji<<=2)cA(ji,Mr,16*+me,An,Sn+In[me]);for(me=er.Gc,Gi=Vd(Ne,Je,er.Dd),Ad[Gi](Fn,Kn),Ad[Gi](Pi,Ii),ji=Mr,Gi=Fn,Dr=Kn,255&(er=me>>0)&&(170&er?xn(ji,256,Gi,Dr):Ei(ji,256,Gi,Dr)),er=Pi,ji=Ii,255&(me>>=8)&&(170&me?xn(Mr,320,er,ji):Ei(Mr,320,er,ji)),Je<vt.Ub-1&&(jt(Ui[Pr].y,0,An,Sn+480,16),jt(Ui[Pr].f,0,Fn,Kn+224,8),jt(Ui[Pr].ea,0,Pi,Ii+224,8)),me=8*vn*vt.B,Ui=vt.sa,Pr=vt.ta+16*Ne+16*vn*vt.R,Mr=vt.qa,er=vt.ra+8*Ne+me,ji=vt.Ha,Gi=vt.Ia+8*Ne+me,me=0;16>me;++me)jt(Ui,Pr+me*vt.R,An,Sn+32*me,16);for(me=0;8>me;++me)jt(Mr,er+me*vt.B,Fn,Kn+32*me,8),jt(ji,Gi+me*vt.B,Pi,Ii+32*me,8)}}function AA(vt,Ut,me,Ne,Je,vn,An,Sn,Fn){var Kn=[0],Pi=[0],Ii=0,er=Fn!=null?Fn.kd:0,Ui=Fn!=null?Fn:new hd;if(vt==null||12>me)return 7;Ui.data=vt,Ui.w=Ut,Ui.ha=me,Ut=[Ut],me=[me],Ui.gb=[Ui.gb];t:{var Pr=Ut,Mr=me,ji=Ui.gb;if(mt(vt!=null),mt(Mr!=null),mt(ji!=null),ji[0]=0,12<=Mr[0]&&!Et(vt,Pr[0],"RIFF")){if(Et(vt,Pr[0]+8,"WEBP")){ji=3;break t}var Gi=gr(vt,Pr[0]+4);if(12>Gi||4294967286<Gi){ji=3;break t}if(er&&Gi>Mr[0]-8){ji=7;break t}ji[0]=Gi,Pr[0]+=12,Mr[0]-=12}ji=0}if(ji!=0)return ji;for(Gi=0<Ui.gb[0],me=me[0];;){t:{var Dr=vt;Mr=Ut,ji=me;var eo=Kn,ro=Pi,es=Pr=[0];if((qn=Ii=[Ii])[0]=0,8>ji[0])ji=7;else{if(!Et(Dr,Mr[0],"VP8X")){if(gr(Dr,Mr[0]+4)!=10){ji=3;break t}if(18>ji[0]){ji=7;break t}var Wo=gr(Dr,Mr[0]+8),Ks=1+ar(Dr,Mr[0]+12);if(2147483648<=Ks*(Dr=1+ar(Dr,Mr[0]+15))){ji=3;break t}es!=null&&(es[0]=Wo),eo!=null&&(eo[0]=Ks),ro!=null&&(ro[0]=Dr),Mr[0]+=18,ji[0]-=18,qn[0]=1}ji=0}}if(Ii=Ii[0],Pr=Pr[0],ji!=0)return ji;if(Mr=!!(2&Pr),!Gi&&Ii)return 3;if(vn!=null&&(vn[0]=!!(16&Pr)),An!=null&&(An[0]=Mr),Sn!=null&&(Sn[0]=0),An=Kn[0],Pr=Pi[0],Ii&&Mr&&Fn==null){ji=0;break}if(4>me){ji=7;break}if(Gi&&Ii||!Gi&&!Ii&&!Et(vt,Ut[0],"ALPH")){me=[me],Ui.na=[Ui.na],Ui.P=[Ui.P],Ui.Sa=[Ui.Sa];t:{Wo=vt,ji=Ut,Gi=me;var qn=Ui.gb;eo=Ui.na,ro=Ui.P,es=Ui.Sa,Ks=22,mt(Wo!=null),mt(Gi!=null),Dr=ji[0];var gl=Gi[0];for(mt(eo!=null),mt(es!=null),eo[0]=null,ro[0]=null,es[0]=0;;){if(ji[0]=Dr,Gi[0]=gl,8>gl){ji=7;break t}var kl=gr(Wo,Dr+4);if(4294967286<kl){ji=3;break t}var rl=8+kl+1&-2;if(Ks+=rl,0<qn&&Ks>qn){ji=3;break t}if(!Et(Wo,Dr,"VP8 ")||!Et(Wo,Dr,"VP8L")){ji=0;break t}if(gl[0]<rl){ji=7;break t}Et(Wo,Dr,"ALPH")||(eo[0]=Wo,ro[0]=Dr+8,es[0]=kl),Dr+=rl,gl-=rl}}if(me=me[0],Ui.na=Ui.na[0],Ui.P=Ui.P[0],Ui.Sa=Ui.Sa[0],ji!=0)break}me=[me],Ui.Ja=[Ui.Ja],Ui.xa=[Ui.xa];t:if(qn=vt,ji=Ut,Gi=me,eo=Ui.gb[0],ro=Ui.Ja,es=Ui.xa,Wo=ji[0],Dr=!Et(qn,Wo,"VP8 "),Ks=!Et(qn,Wo,"VP8L"),mt(qn!=null),mt(Gi!=null),mt(ro!=null),mt(es!=null),8>Gi[0])ji=7;else{if(Dr||Ks){if(qn=gr(qn,Wo+4),12<=eo&&qn>eo-12){ji=3;break t}if(er&&qn>Gi[0]-8){ji=7;break t}ro[0]=qn,ji[0]+=8,Gi[0]-=8,es[0]=Ks}else es[0]=5<=Gi[0]&&qn[Wo+0]==47&&!(qn[Wo+4]>>5),ro[0]=Gi[0];ji=0}if(me=me[0],Ui.Ja=Ui.Ja[0],Ui.xa=Ui.xa[0],Ut=Ut[0],ji!=0)break;if(4294967286<Ui.Ja)return 3;if(Sn==null||Mr||(Sn[0]=Ui.xa?2:1),An=[An],Pr=[Pr],Ui.xa){if(5>me){ji=7;break}Sn=An,er=Pr,Mr=vn,vt==null||5>me?vt=0:5<=me&&vt[Ut+0]==47&&!(vt[Ut+4]>>5)?(Gi=[0],qn=[0],eo=[0],cn(ro=new Ue,vt,Ut,me),As(ro,Gi,qn,eo)?(Sn!=null&&(Sn[0]=Gi[0]),er!=null&&(er[0]=qn[0]),Mr!=null&&(Mr[0]=eo[0]),vt=1):vt=0):vt=0}else{if(10>me){ji=7;break}Sn=Pr,vt==null||10>me||!uu(vt,Ut+3,me-3)?vt=0:(er=vt[Ut+0]|vt[Ut+1]<<8|vt[Ut+2]<<16,Mr=16383&(vt[Ut+7]<<8|vt[Ut+6]),vt=16383&(vt[Ut+9]<<8|vt[Ut+8]),1&er||3<(er>>1&7)||!(er>>4&1)||er>>5>=Ui.Ja||!Mr||!vt?vt=0:(An&&(An[0]=Mr),Sn&&(Sn[0]=vt),vt=1))}if(!vt||(An=An[0],Pr=Pr[0],Ii&&(Kn[0]!=An||Pi[0]!=Pr)))return 3;Fn!=null&&(Fn[0]=Ui,Fn.offset=Ut-Fn.w,mt(4294967286>Ut-Fn.w),mt(Fn.offset==Fn.ha-me));break}return ji==0||ji==7&&Ii&&Fn==null?(vn!=null&&(vn[0]|=Ui.na!=null&&0<Ui.na.length),Ne!=null&&(Ne[0]=An),Je!=null&&(Je[0]=Pr),0):ji}function Tc(vt,Ut,me){var Ne=Ut.width,Je=Ut.height,vn=0,An=0,Sn=Ne,Fn=Je;if(Ut.Da=vt!=null&&0<vt.Da,Ut.Da&&(Sn=vt.cd,Fn=vt.bd,vn=vt.v,An=vt.j,11>me||(vn&=-2,An&=-2),0>vn||0>An||0>=Sn||0>=Fn||vn+Sn>Ne||An+Fn>Je))return 0;if(Ut.v=vn,Ut.j=An,Ut.va=vn+Sn,Ut.o=An+Fn,Ut.U=Sn,Ut.T=Fn,Ut.da=vt!=null&&0<vt.da,Ut.da){if(!so(Sn,Fn,me=[vt.ib],vn=[vt.hb]))return 0;Ut.ib=me[0],Ut.hb=vn[0]}return Ut.ob=vt!=null&&vt.ob,Ut.Kb=vt==null||!vt.Sd,Ut.da&&(Ut.ob=Ut.ib<3*Ne/4&&Ut.hb<3*Je/4,Ut.Kb=0),1}function Ld(vt){if(vt==null)return 2;if(11>vt.S){var Ut=vt.f.RGBA;Ut.fb+=(vt.height-1)*Ut.A,Ut.A=-Ut.A}else Ut=vt.f.kb,vt=vt.height,Ut.O+=(vt-1)*Ut.fa,Ut.fa=-Ut.fa,Ut.N+=(vt-1>>1)*Ut.Ab,Ut.Ab=-Ut.Ab,Ut.W+=(vt-1>>1)*Ut.Db,Ut.Db=-Ut.Db,Ut.F!=null&&(Ut.J+=(vt-1)*Ut.lb,Ut.lb=-Ut.lb);return 0}function Oc(vt,Ut,me,Ne){if(Ne==null||0>=vt||0>=Ut)return 2;if(me!=null){if(me.Da){var Je=me.cd,vn=me.bd,An=-2&me.v,Sn=-2&me.j;if(0>An||0>Sn||0>=Je||0>=vn||An+Je>vt||Sn+vn>Ut)return 2;vt=Je,Ut=vn}if(me.da){if(!so(vt,Ut,Je=[me.ib],vn=[me.hb]))return 2;vt=Je[0],Ut=vn[0]}}Ne.width=vt,Ne.height=Ut;t:{var Fn=Ne.width,Kn=Ne.height;if(vt=Ne.S,0>=Fn||0>=Kn||!(vt>=ch&&13>vt))vt=2;else{if(0>=Ne.Rd&&Ne.sd==null){An=vn=Je=Ut=0;var Pi=(Sn=Fn*Qi[vt])*Kn;if(11>vt||(vn=(Kn+1)/2*(Ut=(Fn+1)/2),vt==12&&(An=(Je=Fn)*Kn)),(Kn=Zt(Pi+2*vn+An))==null){vt=1;break t}Ne.sd=Kn,11>vt?((Fn=Ne.f.RGBA).eb=Kn,Fn.fb=0,Fn.A=Sn,Fn.size=Pi):((Fn=Ne.f.kb).y=Kn,Fn.O=0,Fn.fa=Sn,Fn.Fd=Pi,Fn.f=Kn,Fn.N=0+Pi,Fn.Ab=Ut,Fn.Cd=vn,Fn.ea=Kn,Fn.W=0+Pi+vn,Fn.Db=Ut,Fn.Ed=vn,vt==12&&(Fn.F=Kn,Fn.J=0+Pi+2*vn),Fn.Tc=An,Fn.lb=Je)}if(Ut=1,Je=Ne.S,vn=Ne.width,An=Ne.height,Je>=ch&&13>Je)if(11>Je)vt=Ne.f.RGBA,Ut&=(Sn=Math.abs(vt.A))*(An-1)+vn<=vt.size,Ut&=Sn>=vn*Qi[Je],Ut&=vt.eb!=null;else{vt=Ne.f.kb,Sn=(vn+1)/2,Pi=(An+1)/2,Fn=Math.abs(vt.fa),Kn=Math.abs(vt.Ab);var Ii=Math.abs(vt.Db),er=Math.abs(vt.lb),Ui=er*(An-1)+vn;Ut&=Fn*(An-1)+vn<=vt.Fd,Ut&=Kn*(Pi-1)+Sn<=vt.Cd,Ut=(Ut&=Ii*(Pi-1)+Sn<=vt.Ed)&Fn>=vn&Kn>=Sn&Ii>=Sn,Ut&=vt.y!=null,Ut&=vt.f!=null,Ut&=vt.ea!=null,Je==12&&(Ut&=er>=vn,Ut&=Ui<=vt.Tc,Ut&=vt.F!=null)}else Ut=0;vt=Ut?0:2}}return vt!=0||me!=null&&me.fd&&(vt=Ld(Ne)),vt}var Sa=64,mc=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Zd=24,Jl=32,_h=8,_u=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];wr("Predictor0","PredictorAdd0"),Ti.Predictor0=function(){return 4278190080},Ti.Predictor1=function(vt){return vt},Ti.Predictor2=function(vt,Ut,me){return Ut[me+0]},Ti.Predictor3=function(vt,Ut,me){return Ut[me+1]},Ti.Predictor4=function(vt,Ut,me){return Ut[me-1]},Ti.Predictor5=function(vt,Ut,me){return ir(ir(vt,Ut[me+1]),Ut[me+0])},Ti.Predictor6=function(vt,Ut,me){return ir(vt,Ut[me-1])},Ti.Predictor7=function(vt,Ut,me){return ir(vt,Ut[me+0])},Ti.Predictor8=function(vt,Ut,me){return ir(Ut[me-1],Ut[me+0])},Ti.Predictor9=function(vt,Ut,me){return ir(Ut[me+0],Ut[me+1])},Ti.Predictor10=function(vt,Ut,me){return ir(ir(vt,Ut[me-1]),ir(Ut[me+0],Ut[me+1]))},Ti.Predictor11=function(vt,Ut,me){var Ne=Ut[me+0];return 0>=So(Ne>>24&255,vt>>24&255,(Ut=Ut[me-1])>>24&255)+So(Ne>>16&255,vt>>16&255,Ut>>16&255)+So(Ne>>8&255,vt>>8&255,Ut>>8&255)+So(255&Ne,255&vt,255&Ut)?Ne:vt},Ti.Predictor12=function(vt,Ut,me){var Ne=Ut[me+0];return(Or((vt>>24&255)+(Ne>>24&255)-((Ut=Ut[me-1])>>24&255))<<24|Or((vt>>16&255)+(Ne>>16&255)-(Ut>>16&255))<<16|Or((vt>>8&255)+(Ne>>8&255)-(Ut>>8&255))<<8|Or((255&vt)+(255&Ne)-(255&Ut)))>>>0},Ti.Predictor13=function(vt,Ut,me){var Ne=Ut[me-1];return(ho((vt=ir(vt,Ut[me+0]))>>24&255,Ne>>24&255)<<24|ho(vt>>16&255,Ne>>16&255)<<16|ho(vt>>8&255,Ne>>8&255)<<8|ho(vt>>0&255,Ne>>0&255))>>>0};var cd=Ti.PredictorAdd0;Ti.PredictorAdd1=Fo,wr("Predictor2","PredictorAdd2"),wr("Predictor3","PredictorAdd3"),wr("Predictor4","PredictorAdd4"),wr("Predictor5","PredictorAdd5"),wr("Predictor6","PredictorAdd6"),wr("Predictor7","PredictorAdd7"),wr("Predictor8","PredictorAdd8"),wr("Predictor9","PredictorAdd9"),wr("Predictor10","PredictorAdd10"),wr("Predictor11","PredictorAdd11"),wr("Predictor12","PredictorAdd12"),wr("Predictor13","PredictorAdd13");var Rl=Ti.PredictorAdd2;hs("ColorIndexInverseTransform","MapARGB","32b",function(vt){return vt>>8&255},function(vt){return vt}),hs("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(vt){return vt},function(vt){return vt>>8&255});var Yd,Eu=Ti.ColorIndexInverseTransform,sc=Ti.MapARGB,$d=Ti.VP8LColorIndexInverseTransformAlpha,it=Ti.MapAlpha,st=Ti.VP8LPredictorsAdd=[];st.length=16,(Ti.VP8LPredictors=[]).length=16,(Ti.VP8LPredictorsAdd_C=[]).length=16,(Ti.VP8LPredictors_C=[]).length=16;var ft,At,xt,ne,Be,He,_e,un,Yn,xn,Ni,Ei,Nr,jr,to,Co,$o,Do,ss,Ds,jo,Js,_l,$l,fl,Ja,Ua,Za,El=Zt(511),wu=Zt(2041),Ro=Zt(225),Ca=Zt(767),Xl=0,Hl=wu,Zu=Ro,aa=Ca,zs=El,ch=0,fu=1,Xd=2,Fh=3,eh=4,xh=5,Ql=6,Hu=7,qc=8,Md=9,Cg=10,Hh=[2,3,7],Bg=[3,3,11],dd=[280,256,256,256,40],Wf=[0,1,1,1,0],yf=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],GA=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],MA=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Vf=8,fA=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],Nd=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Pu=null,Sh=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],Zf=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Kg=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],wp=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],WA=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],VA=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],Yf=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],NA=[],Qh=[],Ad=[],Pg=1,td=2,zh=[],vc=[];Qr("UpsampleRgbLinePair",Cl,3),Qr("UpsampleBgrLinePair",Us,3),Qr("UpsampleRgbaLinePair",wh,4),Qr("UpsampleBgraLinePair",Il,4),Qr("UpsampleArgbLinePair",Al,4),Qr("UpsampleRgba4444LinePair",yu,2),Qr("UpsampleRgb565LinePair",Au,2);var yc=Ti.UpsampleRgbLinePair,ZA=Ti.UpsampleBgrLinePair,xp=Ti.UpsampleRgbaLinePair,wf=Ti.UpsampleBgraLinePair,Rs=Ti.UpsampleArgbLinePair,Gg=Ti.UpsampleRgba4444LinePair,Sp=Ti.UpsampleRgb565LinePair,xf=16,IA=1<<xf-1,gA=-227,fd=482,bg=6,Wg=(256<<bg)-1,Eg=0,Ot=Zt(256),It=Zt(256),Qt=Zt(256),Ht=Zt(256),Le=Zt(fd-gA),nn=Zt(fd-gA);oc("YuvToRgbRow",Cl,3),oc("YuvToBgrRow",Us,3),oc("YuvToRgbaRow",wh,4),oc("YuvToBgraRow",Il,4),oc("YuvToArgbRow",Al,4),oc("YuvToRgba4444Row",yu,2),oc("YuvToRgb565Row",Au,2);var In=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],ti=[0,2,8],Rn=[8,7,6,4,4,2,2,2,1,1,1,1],Di=1;this.WebPDecodeRGBA=function(vt,Ut,me,Ne,Je){var vn=fu,An=new pc,Sn=new as;An.ba=Sn,Sn.S=vn,Sn.width=[Sn.width],Sn.height=[Sn.height];var Fn=Sn.width,Kn=Sn.height,Pi=new ds;if(Pi==null||vt==null)var Ii=2;else mt(Pi!=null),Ii=AA(vt,Ut,me,Pi.width,Pi.height,Pi.Pd,Pi.Qd,Pi.format,null);if(Ii!=0?Fn=0:(Fn!=null&&(Fn[0]=Pi.width[0]),Kn!=null&&(Kn[0]=Pi.height[0]),Fn=1),Fn){Sn.width=Sn.width[0],Sn.height=Sn.height[0],Ne!=null&&(Ne[0]=Sn.width),Je!=null&&(Je[0]=Sn.height);t:{if(Ne=new Wu,(Je=new hd).data=vt,Je.w=Ut,Je.ha=me,Je.kd=1,Ut=[0],mt(Je!=null),((vt=AA(Je.data,Je.w,Je.ha,null,null,null,Ut,null,Je))==0||vt==7)&&Ut[0]&&(vt=4),(Ut=vt)==0){if(mt(An!=null),Ne.data=Je.data,Ne.w=Je.w+Je.offset,Ne.ha=Je.ha-Je.offset,Ne.put=ea,Ne.ac=_s,Ne.bc=Yl,Ne.ma=An,Je.xa){if((vt=Ia())==null){An=1;break t}if(function(er,Ui){var Pr=[0],Mr=[0],ji=[0];e:for(;;){if(er==null)return 0;if(Ui==null)return er.a=2,0;if(er.l=Ui,er.a=0,cn(er.m,Ui.data,Ui.w,Ui.ha),!As(er.m,Pr,Mr,ji)){er.a=3;break e}if(er.xb=td,Ui.width=Pr[0],Ui.height=Mr[0],!Nl(Pr[0],Mr[0],1,er,null))break e;return 1}return mt(er.a!=0),0}(vt,Ne)){if(Ne=(Ut=Oc(Ne.width,Ne.height,An.Oa,An.ba))==0){e:{Ne=vt;n:for(;;){if(Ne==null){Ne=0;break e}if(mt(Ne.s.yc!=null),mt(Ne.s.Ya!=null),mt(0<Ne.s.Wb),mt((me=Ne.l)!=null),mt((Je=me.ma)!=null),Ne.xb!=0){if(Ne.ca=Je.ba,Ne.tb=Je.tb,mt(Ne.ca!=null),!Tc(Je.Oa,me,Fh)){Ne.a=2;break n}if(!Iu(Ne,me.width)||me.da)break n;if((me.da||js(Ne.ca.S))&&cr(),11>Ne.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),Ne.ca.f.kb.F!=null&&cr()),Ne.Pb&&0<Ne.s.ua&&Ne.s.vb.X==null&&!qr(Ne.s.vb,Ne.s.Wa.Xa)){Ne.a=1;break n}Ne.xb=0}if(!ul(Ne,Ne.V,Ne.Ba,Ne.c,Ne.i,me.o,wa))break n;Je.Dc=Ne.Ma,Ne=1;break e}mt(Ne.a!=0),Ne=0}Ne=!Ne}Ne&&(Ut=vt.a)}else Ut=vt.a}else{if((vt=new ka)==null){An=1;break t}if(vt.Fa=Je.na,vt.P=Je.P,vt.qc=Je.Sa,wl(vt,Ne)){if((Ut=Oc(Ne.width,Ne.height,An.Oa,An.ba))==0){if(vt.Aa=0,me=An.Oa,mt((Je=vt)!=null),me!=null){if(0<(Fn=0>(Fn=me.Md)?0:100<Fn?255:255*Fn/100)){for(Kn=Pi=0;4>Kn;++Kn)12>(Ii=Je.pb[Kn]).lc&&(Ii.ia=Fn*Rn[0>Ii.lc?0:Ii.lc]>>3),Pi|=Ii.ia;Pi&&(alert("todo:VP8InitRandom"),Je.ia=1)}Je.Ga=me.Id,100<Je.Ga?Je.Ga=100:0>Je.Ga&&(Je.Ga=0)}Ru(vt,Ne)||(Ut=vt.a)}}else Ut=vt.a}Ut==0&&An.Oa!=null&&An.Oa.fd&&(Ut=Ld(An.ba))}An=Ut}vn=An!=0?null:11>vn?Sn.f.RGBA.eb:Sn.f.kb.y}else vn=null;return vn};var Qi=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function tn(Ti,Br){for(var Vr="",zn=0;zn<4;zn++)Vr+=String.fromCharCode(Ti[Br++]);return Vr}function mn(Ti,Br){return(Ti[Br+0]<<0|Ti[Br+1]<<8|Ti[Br+2]<<16)>>>0}function pn(Ti,Br){return(Ti[Br+0]<<0|Ti[Br+1]<<8|Ti[Br+2]<<16|Ti[Br+3]<<24)>>>0}new Ie;var Tn=[0],ze=[0],di=[],$n=new Ie,pi=Pt,Hn=function(Ti,Br){var Vr={},zn=0,Xn=!1,Yi=0,ve=0;if(Vr.frames=[],!function(hn,yn,Mn,Zn){for(var li=0;li<Zn;li++)if(hn[yn+li]!=Mn.charCodeAt(li))return!0;return!1}(Ti,Br,"RIFF",4)){for(pn(Ti,Br+=4),Br+=8;Br<Ti.length;){var Ee=tn(Ti,Br),Ye=pn(Ti,Br+=4);Br+=4;var on=Ye+(1&Ye);switch(Ee){case"VP8 ":case"VP8L":Vr.frames[zn]===void 0&&(Vr.frames[zn]={}),(Dn=Vr.frames[zn]).src_off=Xn?ve:Br-8,Dn.src_size=Yi+Ye+8,zn++,Xn&&(Xn=!1,Yi=0,ve=0);break;case"VP8X":(Dn=Vr.header={}).feature_flags=Ti[Br];var cn=Br+4;Dn.canvas_width=1+mn(Ti,cn),cn+=3,Dn.canvas_height=1+mn(Ti,cn),cn+=3;break;case"ALPH":Xn=!0,Yi=on+8,ve=Br-8;break;case"ANIM":(Dn=Vr.header).bgcolor=pn(Ti,Br),cn=Br+4,Dn.loop_count=(Jn=Ti)[(Ue=cn)+0]<<0|Jn[Ue+1]<<8,cn+=2;break;case"ANMF":var dn,Dn;(Dn=Vr.frames[zn]={}).offset_x=2*mn(Ti,Br),Br+=3,Dn.offset_y=2*mn(Ti,Br),Br+=3,Dn.width=1+mn(Ti,Br),Br+=3,Dn.height=1+mn(Ti,Br),Br+=3,Dn.duration=mn(Ti,Br),Br+=3,dn=Ti[Br++],Dn.dispose=1&dn,Dn.blend=dn>>1&1}Ee!="ANMF"&&(Br+=on)}var Jn,Ue;return Vr}}(pi,0);Hn.response=pi,Hn.rgbaoutput=!0,Hn.dataurl=!1;var gi=Hn.header?Hn.header:null,Hi=Hn.frames?Hn.frames:null;if(gi){gi.loop_counter=gi.loop_count,Tn=[gi.canvas_height],ze=[gi.canvas_width];for(var ur=0;ur<Hi.length&&Hi[ur].blend!=0;ur++);}var Ir=Hi[0],io=$n.WebPDecodeRGBA(pi,Ir.src_off,Ir.src_size,ze,Tn);Ir.rgba=io,Ir.imgwidth=ze[0],Ir.imgheight=Tn[0];for(var vr=0;vr<ze[0]*Tn[0]*4;vr++)di[vr]=io[vr];return this.width=ze,this.height=Tn,this.data=di,this}(function(Pt){var mt=function(){return typeof On=="function"},Et=function(Tn,ze,di,$n){var pi=4,Hn=ye;switch($n){case Pt.image_compression.FAST:pi=1,Hn=Zt;break;case Pt.image_compression.MEDIUM:pi=6,Hn=Se;break;case Pt.image_compression.SLOW:pi=9,Hn=Ie}Tn=jt(Tn,ze,di,Hn);var gi=On(Tn,{level:pi});return Pt.__addimage__.arrayBufferToBinaryString(gi)},jt=function(Tn,ze,di,$n){for(var pi,Hn,gi,Hi=Tn.length/ze,ur=new Uint8Array(Tn.length+Hi),Ir=mn(),io=0;io<Hi;io+=1){if(gi=io*ze,pi=Tn.subarray(gi,gi+ze),$n)ur.set($n(pi,di,Hn),gi+io);else{for(var vr,Ti=Ir.length,Br=[];vr<Ti;vr+=1)Br[vr]=Ir[vr](pi,di,Hn);var Vr=pn(Br.concat());ur.set(Br[Vr],gi+io)}Hn=pi}return ur},le=function(Tn){var ze=Array.apply([],Tn);return ze.unshift(0),ze},Zt=function(Tn,ze){var di,$n=[],pi=Tn.length;$n[0]=1;for(var Hn=0;Hn<pi;Hn+=1)di=Tn[Hn-ze]||0,$n[Hn+1]=Tn[Hn]-di+256&255;return $n},ye=function(Tn,ze,di){var $n,pi=[],Hn=Tn.length;pi[0]=2;for(var gi=0;gi<Hn;gi+=1)$n=di&&di[gi]||0,pi[gi+1]=Tn[gi]-$n+256&255;return pi},Se=function(Tn,ze,di){var $n,pi,Hn=[],gi=Tn.length;Hn[0]=3;for(var Hi=0;Hi<gi;Hi+=1)$n=Tn[Hi-ze]||0,pi=di&&di[Hi]||0,Hn[Hi+1]=Tn[Hi]+256-($n+pi>>>1)&255;return Hn},Ie=function(Tn,ze,di){var $n,pi,Hn,gi,Hi=[],ur=Tn.length;Hi[0]=4;for(var Ir=0;Ir<ur;Ir+=1)$n=Tn[Ir-ze]||0,pi=di&&di[Ir]||0,Hn=di&&di[Ir-ze]||0,gi=tn($n,pi,Hn),Hi[Ir+1]=Tn[Ir]-gi+256&255;return Hi},tn=function(Tn,ze,di){if(Tn===ze&&ze===di)return Tn;var $n=Math.abs(ze-di),pi=Math.abs(Tn-di),Hn=Math.abs(Tn+ze-di-di);return $n<=pi&&$n<=Hn?Tn:pi<=Hn?ze:di},mn=function(){return[le,Zt,ye,Se,Ie]},pn=function(Tn){var ze=Tn.map(function(di){return di.reduce(function($n,pi){return $n+Math.abs(pi)},0)});return ze.indexOf(Math.min.apply(null,ze))};Pt.processPNG=function(Tn,ze,di,$n){var pi,Hn,gi,Hi,ur,Ir,io,vr,Ti,Br,Vr,zn,Xn,Yi,ve,Ee=this.decode.FLATE_DECODE,Ye="";if(this.__addimage__.isArrayBuffer(Tn)&&(Tn=new Uint8Array(Tn)),this.__addimage__.isArrayBufferView(Tn)){if(Tn=(gi=new sA(Tn)).imgData,Hn=gi.bits,pi=gi.colorSpace,ur=gi.colors,[4,6].indexOf(gi.colorType)!==-1){if(gi.bits===8){Ti=(vr=gi.pixelBitlength==32?new Uint32Array(gi.decodePixels().buffer):gi.pixelBitlength==16?new Uint16Array(gi.decodePixels().buffer):new Uint8Array(gi.decodePixels().buffer)).length,Vr=new Uint8Array(Ti*gi.colors),Br=new Uint8Array(Ti);var on,cn=gi.pixelBitlength-gi.bits;for(Yi=0,ve=0;Yi<Ti;Yi++){for(Xn=vr[Yi],on=0;on<cn;)Vr[ve++]=Xn>>>on&255,on+=gi.bits;Br[Yi]=Xn>>>on&255}}if(gi.bits===16){Ti=(vr=new Uint32Array(gi.decodePixels().buffer)).length,Vr=new Uint8Array(Ti*(32/gi.pixelBitlength)*gi.colors),Br=new Uint8Array(Ti*(32/gi.pixelBitlength)),zn=gi.colors>1,Yi=0,ve=0;for(var dn=0;Yi<Ti;)Xn=vr[Yi++],Vr[ve++]=Xn>>>0&255,zn&&(Vr[ve++]=Xn>>>16&255,Xn=vr[Yi++],Vr[ve++]=Xn>>>0&255),Br[dn++]=Xn>>>16&255;Hn=8}$n!==Pt.image_compression.NONE&&mt()?(Tn=Et(Vr,gi.width*gi.colors,gi.colors,$n),io=Et(Br,gi.width,1,$n)):(Tn=Vr,io=Br,Ee=void 0)}if(gi.colorType===3&&(pi=this.color_spaces.INDEXED,Ir=gi.palette,gi.transparency.indexed)){var Dn=gi.transparency.indexed,Jn=0;for(Yi=0,Ti=Dn.length;Yi<Ti;++Yi)Jn+=Dn[Yi];if((Jn/=255)===Ti-1&&Dn.indexOf(0)!==-1)Hi=[Dn.indexOf(0)];else if(Jn!==Ti){for(vr=gi.decodePixels(),Br=new Uint8Array(vr.length),Yi=0,Ti=vr.length;Yi<Ti;Yi++)Br[Yi]=Dn[vr[Yi]];io=Et(Br,gi.width,1)}}var Ue=function(hn){var yn;switch(hn){case Pt.image_compression.FAST:yn=11;break;case Pt.image_compression.MEDIUM:yn=13;break;case Pt.image_compression.SLOW:yn=14;break;default:yn=12}return yn}($n);return Ee===this.decode.FLATE_DECODE&&(Ye="/Predictor "+Ue+" "),Ye+="/Colors "+ur+" /BitsPerComponent "+Hn+" /Columns "+gi.width,(this.__addimage__.isArrayBuffer(Tn)||this.__addimage__.isArrayBufferView(Tn))&&(Tn=this.__addimage__.arrayBufferToBinaryString(Tn)),(io&&this.__addimage__.isArrayBuffer(io)||this.__addimage__.isArrayBufferView(io))&&(io=this.__addimage__.arrayBufferToBinaryString(io)),{alias:di,data:Tn,index:ze,filter:Ee,decodeParameters:Ye,transparency:Hi,palette:Ir,sMask:io,predictor:Ue,width:gi.width,height:gi.height,bitsPerComponent:Hn,colorSpace:pi}}}})(zo.API),function(Pt){Pt.processGIF89A=function(mt,Et,jt,le){var Zt=new Ln(mt),ye=Zt.width,Se=Zt.height,Ie=[];Zt.decodeAndBlitFrameRGBA(0,Ie);var tn={data:Ie,width:ye,height:Se},mn=new aA(100).encode(tn,100);return Pt.processJPEG.call(this,mn,Et,jt,le)},Pt.processGIF87A=Pt.processGIF89A}(zo.API),tc.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var Pt=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(Pt);for(var mt=0;mt<Pt;mt++){var Et=this.datav.getUint8(this.pos++,!0),jt=this.datav.getUint8(this.pos++,!0),le=this.datav.getUint8(this.pos++,!0),Zt=this.datav.getUint8(this.pos++,!0);this.palette[mt]={red:le,green:jt,blue:Et,quad:Zt}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},tc.prototype.parseBGR=function(){this.pos=this.offset;try{var Pt="bit"+this.bitPP,mt=this.width*this.height*4;this.data=new Uint8Array(mt),this[Pt]()}catch(Et){Qo.log("bit decode error:"+Et)}},tc.prototype.bit1=function(){var Pt,mt=Math.ceil(this.width/8),Et=mt%4;for(Pt=this.height-1;Pt>=0;Pt--){for(var jt=this.bottom_up?Pt:this.height-1-Pt,le=0;le<mt;le++)for(var Zt=this.datav.getUint8(this.pos++,!0),ye=jt*this.width*4+8*le*4,Se=0;Se<8&&8*le+Se<this.width;Se++){var Ie=this.palette[Zt>>7-Se&1];this.data[ye+4*Se]=Ie.blue,this.data[ye+4*Se+1]=Ie.green,this.data[ye+4*Se+2]=Ie.red,this.data[ye+4*Se+3]=255}Et!==0&&(this.pos+=4-Et)}},tc.prototype.bit4=function(){for(var Pt=Math.ceil(this.width/2),mt=Pt%4,Et=this.height-1;Et>=0;Et--){for(var jt=this.bottom_up?Et:this.height-1-Et,le=0;le<Pt;le++){var Zt=this.datav.getUint8(this.pos++,!0),ye=jt*this.width*4+2*le*4,Se=Zt>>4,Ie=15&Zt,tn=this.palette[Se];if(this.data[ye]=tn.blue,this.data[ye+1]=tn.green,this.data[ye+2]=tn.red,this.data[ye+3]=255,2*le+1>=this.width)break;tn=this.palette[Ie],this.data[ye+4]=tn.blue,this.data[ye+4+1]=tn.green,this.data[ye+4+2]=tn.red,this.data[ye+4+3]=255}mt!==0&&(this.pos+=4-mt)}},tc.prototype.bit8=function(){for(var Pt=this.width%4,mt=this.height-1;mt>=0;mt--){for(var Et=this.bottom_up?mt:this.height-1-mt,jt=0;jt<this.width;jt++){var le=this.datav.getUint8(this.pos++,!0),Zt=Et*this.width*4+4*jt;if(le<this.palette.length){var ye=this.palette[le];this.data[Zt]=ye.red,this.data[Zt+1]=ye.green,this.data[Zt+2]=ye.blue,this.data[Zt+3]=255}else this.data[Zt]=255,this.data[Zt+1]=255,this.data[Zt+2]=255,this.data[Zt+3]=255}Pt!==0&&(this.pos+=4-Pt)}},tc.prototype.bit15=function(){for(var Pt=this.width%3,mt=parseInt("11111",2),Et=this.height-1;Et>=0;Et--){for(var jt=this.bottom_up?Et:this.height-1-Et,le=0;le<this.width;le++){var Zt=this.datav.getUint16(this.pos,!0);this.pos+=2;var ye=(Zt&mt)/mt*255|0,Se=(Zt>>5&mt)/mt*255|0,Ie=(Zt>>10&mt)/mt*255|0,tn=Zt>>15?255:0,mn=jt*this.width*4+4*le;this.data[mn]=Ie,this.data[mn+1]=Se,this.data[mn+2]=ye,this.data[mn+3]=tn}this.pos+=Pt}},tc.prototype.bit16=function(){for(var Pt=this.width%3,mt=parseInt("11111",2),Et=parseInt("111111",2),jt=this.height-1;jt>=0;jt--){for(var le=this.bottom_up?jt:this.height-1-jt,Zt=0;Zt<this.width;Zt++){var ye=this.datav.getUint16(this.pos,!0);this.pos+=2;var Se=(ye&mt)/mt*255|0,Ie=(ye>>5&Et)/Et*255|0,tn=(ye>>11)/mt*255|0,mn=le*this.width*4+4*Zt;this.data[mn]=tn,this.data[mn+1]=Ie,this.data[mn+2]=Se,this.data[mn+3]=255}this.pos+=Pt}},tc.prototype.bit24=function(){for(var Pt=this.height-1;Pt>=0;Pt--){for(var mt=this.bottom_up?Pt:this.height-1-Pt,Et=0;Et<this.width;Et++){var jt=this.datav.getUint8(this.pos++,!0),le=this.datav.getUint8(this.pos++,!0),Zt=this.datav.getUint8(this.pos++,!0),ye=mt*this.width*4+4*Et;this.data[ye]=Zt,this.data[ye+1]=le,this.data[ye+2]=jt,this.data[ye+3]=255}this.pos+=this.width%4}},tc.prototype.bit32=function(){for(var Pt=this.height-1;Pt>=0;Pt--)for(var mt=this.bottom_up?Pt:this.height-1-Pt,Et=0;Et<this.width;Et++){var jt=this.datav.getUint8(this.pos++,!0),le=this.datav.getUint8(this.pos++,!0),Zt=this.datav.getUint8(this.pos++,!0),ye=this.datav.getUint8(this.pos++,!0),Se=mt*this.width*4+4*Et;this.data[Se]=Zt,this.data[Se+1]=le,this.data[Se+2]=jt,this.data[Se+3]=ye}},tc.prototype.getData=function(){return this.data},function(Pt){Pt.processBMP=function(mt,Et,jt,le){var Zt=new tc(mt,!1),ye=Zt.width,Se=Zt.height,Ie={data:Zt.getData(),width:ye,height:Se},tn=new aA(100).encode(Ie,100);return Pt.processJPEG.call(this,tn,Et,jt,le)}}(zo.API),ju.prototype.getData=function(){return this.data},function(Pt){Pt.processWEBP=function(mt,Et,jt,le){var Zt=new ju(mt),ye=Zt.width,Se=Zt.height,Ie={data:Zt.getData(),width:ye,height:Se},tn=new aA(100).encode(Ie,100);return Pt.processJPEG.call(this,tn,Et,jt,le)}}(zo.API),zo.API.processRGBA=function(Pt,mt,Et){for(var jt=Pt.data,le=jt.length,Zt=new Uint8Array(le/4*3),ye=new Uint8Array(le/4),Se=0,Ie=0,tn=0;tn<le;tn+=4){var mn=jt[tn],pn=jt[tn+1],Tn=jt[tn+2],ze=jt[tn+3];Zt[Se++]=mn,Zt[Se++]=pn,Zt[Se++]=Tn,ye[Ie++]=ze}var di=this.__addimage__.arrayBufferToBinaryString(Zt);return{alpha:this.__addimage__.arrayBufferToBinaryString(ye),data:di,index:mt,alias:Et,colorSpace:"DeviceRGB",bitsPerComponent:8,width:Pt.width,height:Pt.height}},zo.API.setLanguage=function(Pt){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[Pt]!==void 0&&(this.internal.languageSettings.languageCode=Pt,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},cl=zo.API,Ud=cl.getCharWidthsArray=function(Pt,mt){var Et,jt,le=(mt=mt||{}).font||this.internal.getFont(),Zt=mt.fontSize||this.internal.getFontSize(),ye=mt.charSpace||this.internal.getCharSpace(),Se=mt.widths?mt.widths:le.metadata.Unicode.widths,Ie=Se.fof?Se.fof:1,tn=mt.kerning?mt.kerning:le.metadata.Unicode.kerning,mn=tn.fof?tn.fof:1,pn=mt.doKerning!==!1,Tn=0,ze=Pt.length,di=0,$n=Se[0]||Ie,pi=[];for(Et=0;Et<ze;Et++)jt=Pt.charCodeAt(Et),typeof le.metadata.widthOfString=="function"?pi.push((le.metadata.widthOfGlyph(le.metadata.characterToGlyph(jt))+ye*(1e3/Zt)||0)/1e3):(Tn=pn&&(0,bt.Z)(tn[jt])==="object"&&!isNaN(parseInt(tn[jt][di],10))?tn[jt][di]/mn:0,pi.push((Se[jt]||$n)/Ie+Tn)),di=jt;return pi},od=cl.getStringUnitWidth=function(Pt,mt){var Et=(mt=mt||{}).fontSize||this.internal.getFontSize(),jt=mt.font||this.internal.getFont(),le=mt.charSpace||this.internal.getCharSpace();return cl.processArabic&&(Pt=cl.processArabic(Pt)),typeof jt.metadata.widthOfString=="function"?jt.metadata.widthOfString(Pt,Et,le)/Et:Ud.apply(this,arguments).reduce(function(Zt,ye){return Zt+ye},0)},Ah=function(Pt,mt,Et,jt){for(var le=[],Zt=0,ye=Pt.length,Se=0;Zt!==ye&&Se+mt[Zt]<Et;)Se+=mt[Zt],Zt++;le.push(Pt.slice(0,Zt));var Ie=Zt;for(Se=0;Zt!==ye;)Se+mt[Zt]>jt&&(le.push(Pt.slice(Ie,Zt)),Se=0,Ie=Zt),Se+=mt[Zt],Zt++;return Ie!==Zt&&le.push(Pt.slice(Ie,Zt)),le},Ko=function(Pt,mt,Et){Et||(Et={});var jt,le,Zt,ye,Se,Ie,tn,mn=[],pn=[mn],Tn=Et.textIndent||0,ze=0,di=0,$n=Pt.split(" "),pi=Ud.apply(this,[" ",Et])[0];if(Ie=Et.lineIndent===-1?$n[0].length+2:Et.lineIndent||0){var Hn=Array(Ie).join(" "),gi=[];$n.map(function(ur){(ur=ur.split(/\s*\n/)).length>1?gi=gi.concat(ur.map(function(Ir,io){return(io&&Ir.length?`
|
|
|
`:"")+Ir})):gi.push(ur[0])}),$n=gi,Ie=od.apply(this,[Hn,Et])}for(Zt=0,ye=$n.length;Zt<ye;Zt++){var Hi=0;if(jt=$n[Zt],Ie&&jt[0]==`
|
|
|
`&&(jt=jt.substr(1),Hi=1),Tn+ze+(di=(le=Ud.apply(this,[jt,Et])).reduce(function(ur,Ir){return ur+Ir},0))>mt||Hi){if(di>mt){for(Se=Ah.apply(this,[jt,le,mt-(Tn+ze),mt]),mn.push(Se.shift()),mn=[Se.pop()];Se.length;)pn.push([Se.shift()]);di=le.slice(jt.length-(mn[0]?mn[0].length:0)).reduce(function(ur,Ir){return ur+Ir},0)}else mn=[jt];pn.push(mn),Tn=di+Ie,ze=pi}else mn.push(jt),Tn+=ze+di,ze=pi}return tn=Ie?function(ur,Ir){return(Ir?Hn:"")+ur.join(" ")}:function(ur){return ur.join(" ")},pn.map(tn)},cl.splitTextToSize=function(Pt,mt,Et){var jt,le=(Et=Et||{}).fontSize||this.internal.getFontSize(),Zt=function(mn){if(mn.widths&&mn.kerning)return{widths:mn.widths,kerning:mn.kerning};var pn=this.internal.getFont(mn.fontName,mn.fontStyle);return pn.metadata.Unicode?{widths:pn.metadata.Unicode.widths||{0:1},kerning:pn.metadata.Unicode.kerning||{}}:{font:pn.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,Et);jt=Array.isArray(Pt)?Pt:String(Pt).split(/\r?\n/);var ye=1*this.internal.scaleFactor*mt/le;Zt.textIndent=Et.textIndent?1*Et.textIndent*this.internal.scaleFactor/le:0,Zt.lineIndent=Et.lineIndent;var Se,Ie,tn=[];for(Se=0,Ie=jt.length;Se<Ie;Se++)tn=tn.concat(Ko.apply(this,[jt[Se],ye,Zt]));return tn},function(Pt){Pt.__fontmetrics__=Pt.__fontmetrics__||{};for(var mt="klmnopqrstuvwxyz",Et={},jt={},le=0;le<mt.length;le++)Et[mt[le]]="0123456789abcdef"[le],jt["0123456789abcdef"[le]]=mt[le];var Zt=function(pn){return"0x"+parseInt(pn,10).toString(16)},ye=Pt.__fontmetrics__.compress=function(pn){var Tn,ze,di,$n,pi=["{"];for(var Hn in pn){if(Tn=pn[Hn],isNaN(parseInt(Hn,10))?ze="'"+Hn+"'":(Hn=parseInt(Hn,10),ze=(ze=Zt(Hn).slice(2)).slice(0,-1)+jt[ze.slice(-1)]),typeof Tn=="number")Tn<0?(di=Zt(Tn).slice(3),$n="-"):(di=Zt(Tn).slice(2),$n=""),di=$n+di.slice(0,-1)+jt[di.slice(-1)];else{if((0,bt.Z)(Tn)!=="object")throw new Error("Don't know what to do with value type "+(0,bt.Z)(Tn)+".");di=ye(Tn)}pi.push(ze+di)}return pi.push("}"),pi.join("")},Se=Pt.__fontmetrics__.uncompress=function(pn){if(typeof pn!="string")throw new Error("Invalid argument passed to uncompress.");for(var Tn,ze,di,$n,pi={},Hn=1,gi=pi,Hi=[],ur="",Ir="",io=pn.length-1,vr=1;vr<io;vr+=1)($n=pn[vr])=="'"?Tn?(di=Tn.join(""),Tn=void 0):Tn=[]:Tn?Tn.push($n):$n=="{"?(Hi.push([gi,di]),gi={},di=void 0):$n=="}"?((ze=Hi.pop())[0][ze[1]]=gi,di=void 0,gi=ze[0]):$n=="-"?Hn=-1:di===void 0?Et.hasOwnProperty($n)?(ur+=Et[$n],di=parseInt(ur,16)*Hn,Hn=1,ur=""):ur+=$n:Et.hasOwnProperty($n)?(Ir+=Et[$n],gi[di]=parseInt(Ir,16)*Hn,Hn=1,di=void 0,Ir=""):Ir+=$n;return pi},Ie={codePages:["WinAnsiEncoding"],WinAnsiEncoding:Se("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},tn={Unicode:{Courier:Ie,"Courier-Bold":Ie,"Courier-BoldOblique":Ie,"Courier-Oblique":Ie,Helvetica:Ie,"Helvetica-Bold":Ie,"Helvetica-BoldOblique":Ie,"Helvetica-Oblique":Ie,"Times-Roman":Ie,"Times-Bold":Ie,"Times-BoldItalic":Ie,"Times-Italic":Ie}},mn={Unicode:{"Courier-Oblique":Se("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":Se("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":Se("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:Se("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":Se("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":Se("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:Se("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:Se("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":Se("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:Se("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":Se("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":Se("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":Se("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":Se("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};Pt.events.push(["addFont",function(pn){var Tn=pn.font,ze=mn.Unicode[Tn.postScriptName];ze&&(Tn.metadata.Unicode={},Tn.metadata.Unicode.widths=ze.widths,Tn.metadata.Unicode.kerning=ze.kerning);var di=tn.Unicode[Tn.postScriptName];di&&(Tn.metadata.Unicode.encoding=di,Tn.encoding=di.codePages[0])}])}(zo.API),function(Pt){var mt=function(Et){for(var jt=Et.length,le=new Uint8Array(jt),Zt=0;Zt<jt;Zt++)le[Zt]=Et.charCodeAt(Zt);return le};Pt.API.events.push(["addFont",function(Et){var jt=void 0,le=Et.font,Zt=Et.instance;if(!le.isStandardFont){if(Zt===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+le.postScriptName+"').");if(typeof(jt=Zt.existsFileInVFS(le.postScriptName)===!1?Zt.loadFile(le.postScriptName):Zt.getFileFromVFS(le.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+le.postScriptName+"').");(function(ye,Se){Se=/^\x00\x01\x00\x00/.test(Se)?mt(Se):mt(fs(Se)),ye.metadata=Pt.API.TTFFont.open(Se),ye.metadata.Unicode=ye.metadata.Unicode||{encoding:{},kerning:{},widths:[]},ye.metadata.glyIdsUsed=[0]})(le,jt)}}])}(zo),function(Pt){function mt(){return(_r.canvg?Promise.resolve(_r.canvg):Bt.e(3754).then(Bt.bind(Bt,63754))).catch(function(Et){return Promise.reject(new Error("Could not load canvg: "+Et))}).then(function(Et){return Et.default?Et.default:Et})}zo.API.addSvgAsImage=function(Et,jt,le,Zt,ye,Se,Ie,tn){if(isNaN(jt)||isNaN(le))throw Qo.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(Zt)||isNaN(ye))throw Qo.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var mn=document.createElement("canvas");mn.width=Zt,mn.height=ye;var pn=mn.getContext("2d");pn.fillStyle="#fff",pn.fillRect(0,0,mn.width,mn.height);var Tn={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},ze=this;return mt().then(function(di){return di.fromString(pn,Et,Tn)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(di){return di.render(Tn)}).then(function(){ze.addImage(mn.toDataURL("image/jpeg",1),jt,le,Zt,ye,Ie,tn)})}}(),zo.API.putTotalPages=function(Pt){var mt,Et=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(mt=new RegExp(Pt,"g"),Et=this.internal.getNumberOfPages()):(mt=new RegExp(this.pdfEscape16(Pt,this.internal.getFont()),"g"),Et=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var jt=1;jt<=this.internal.getNumberOfPages();jt++)for(var le=0;le<this.internal.pages[jt].length;le++)this.internal.pages[jt][le]=this.internal.pages[jt][le].replace(mt,Et);return this},zo.API.viewerPreferences=function(Pt,mt){var Et;Pt=Pt||{},mt=mt||!1;var jt,le,Zt,ye={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},Se=Object.keys(ye),Ie=[],tn=0,mn=0,pn=0;function Tn(di,$n){var pi,Hn=!1;for(pi=0;pi<di.length;pi+=1)di[pi]===$n&&(Hn=!0);return Hn}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(ye)),this.internal.viewerpreferences.isSubscribed=!1),Et=this.internal.viewerpreferences.configuration,Pt==="reset"||mt===!0){var ze=Se.length;for(pn=0;pn<ze;pn+=1)Et[Se[pn]].value=Et[Se[pn]].defaultValue,Et[Se[pn]].explicitSet=!1}if((0,bt.Z)(Pt)==="object"){for(le in Pt)if(Zt=Pt[le],Tn(Se,le)&&Zt!==void 0){if(Et[le].type==="boolean"&&typeof Zt=="boolean")Et[le].value=Zt;else if(Et[le].type==="name"&&Tn(Et[le].valueSet,Zt))Et[le].value=Zt;else if(Et[le].type==="integer"&&Number.isInteger(Zt))Et[le].value=Zt;else if(Et[le].type==="array"){for(tn=0;tn<Zt.length;tn+=1)if(jt=!0,Zt[tn].length===1&&typeof Zt[tn][0]=="number")Ie.push(String(Zt[tn]-1));else if(Zt[tn].length>1){for(mn=0;mn<Zt[tn].length;mn+=1)typeof Zt[tn][mn]!="number"&&(jt=!1);jt===!0&&Ie.push([Zt[tn][0]-1,Zt[tn][1]-1].join(" "))}Et[le].value="["+Ie.join(" ")+"]"}else Et[le].value=Et[le].defaultValue;Et[le].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var di,$n=[];for(di in Et)Et[di].explicitSet===!0&&(Et[di].type==="name"?$n.push("/"+di+" /"+Et[di].value):$n.push("/"+di+" "+Et[di].value));$n.length!==0&&this.internal.write(`/ViewerPreferences
|
|
|
<<
|
|
|
`+$n.join(`
|
|
|
`)+`
|
|
|
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=Et,this},function(Pt){var mt=function(){var jt='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',le=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),Zt=unescape(encodeURIComponent(jt)),ye=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),Se=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),Ie=unescape(encodeURIComponent("</x:xmpmeta>")),tn=Zt.length+ye.length+Se.length+le.length+Ie.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+tn+" >>"),this.internal.write("stream"),this.internal.write(le+Zt+ye+Se+Ie),this.internal.write("endstream"),this.internal.write("endobj")},Et=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};Pt.addMetadata=function(jt,le){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:jt,namespaceuri:le||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",Et),this.internal.events.subscribe("postPutResources",mt)),this}}(zo.API),function(Pt){var mt=Pt.API,Et=mt.pdfEscape16=function(Zt,ye){for(var Se,Ie=ye.metadata.Unicode.widths,tn=["","0","00","000","0000"],mn=[""],pn=0,Tn=Zt.length;pn<Tn;++pn){if(Se=ye.metadata.characterToGlyph(Zt.charCodeAt(pn)),ye.metadata.glyIdsUsed.push(Se),ye.metadata.toUnicode[Se]=Zt.charCodeAt(pn),Ie.indexOf(Se)==-1&&(Ie.push(Se),Ie.push([parseInt(ye.metadata.widthOfGlyph(Se),10)])),Se=="0")return mn.join("");Se=Se.toString(16),mn.push(tn[4-Se.length],Se)}return mn.join("")},jt=function(Zt){var ye,Se,Ie,tn,mn,pn,Tn;for(mn=`/CIDInit /ProcSet findresource begin
|
|
|
12 dict begin
|
|
|
begincmap
|
|
|
/CIDSystemInfo <<
|
|
|
/Registry (Adobe)
|
|
|
/Ordering (UCS)
|
|
|
/Supplement 0
|
|
|
>> def
|
|
|
/CMapName /Adobe-Identity-UCS def
|
|
|
/CMapType 2 def
|
|
|
1 begincodespacerange
|
|
|
<0000><ffff>
|
|
|
endcodespacerange`,Ie=[],pn=0,Tn=(Se=Object.keys(Zt).sort(function(ze,di){return ze-di})).length;pn<Tn;pn++)ye=Se[pn],Ie.length>=100&&(mn+=`
|
|
|
`+Ie.length+` beginbfchar
|
|
|
`+Ie.join(`
|
|
|
`)+`
|
|
|
endbfchar`,Ie=[]),Zt[ye]!==void 0&&Zt[ye]!==null&&typeof Zt[ye].toString=="function"&&(tn=("0000"+Zt[ye].toString(16)).slice(-4),ye=("0000"+(+ye).toString(16)).slice(-4),Ie.push("<"+ye+"><"+tn+">"));return Ie.length&&(mn+=`
|
|
|
`+Ie.length+` beginbfchar
|
|
|
`+Ie.join(`
|
|
|
`)+`
|
|
|
endbfchar
|
|
|
`),mn+=`endcmap
|
|
|
CMapName currentdict /CMap defineresource pop
|
|
|
end
|
|
|
end`};mt.events.push(["putFont",function(Zt){(function(ye){var Se=ye.font,Ie=ye.out,tn=ye.newObject,mn=ye.putStream;if(Se.metadata instanceof Pt.API.TTFFont&&Se.encoding==="Identity-H"){for(var pn=Se.metadata.Unicode.widths,Tn=Se.metadata.subset.encode(Se.metadata.glyIdsUsed,1),ze="",di=0;di<Tn.length;di++)ze+=String.fromCharCode(Tn[di]);var $n=tn();mn({data:ze,addLength1:!0,objectId:$n}),Ie("endobj");var pi=tn();mn({data:jt(Se.metadata.toUnicode),addLength1:!0,objectId:pi}),Ie("endobj");var Hn=tn();Ie("<<"),Ie("/Type /FontDescriptor"),Ie("/FontName /"+vo(Se.fontName)),Ie("/FontFile2 "+$n+" 0 R"),Ie("/FontBBox "+Pt.API.PDFObject.convert(Se.metadata.bbox)),Ie("/Flags "+Se.metadata.flags),Ie("/StemV "+Se.metadata.stemV),Ie("/ItalicAngle "+Se.metadata.italicAngle),Ie("/Ascent "+Se.metadata.ascender),Ie("/Descent "+Se.metadata.decender),Ie("/CapHeight "+Se.metadata.capHeight),Ie(">>"),Ie("endobj");var gi=tn();Ie("<<"),Ie("/Type /Font"),Ie("/BaseFont /"+vo(Se.fontName)),Ie("/FontDescriptor "+Hn+" 0 R"),Ie("/W "+Pt.API.PDFObject.convert(pn)),Ie("/CIDToGIDMap /Identity"),Ie("/DW 1000"),Ie("/Subtype /CIDFontType2"),Ie("/CIDSystemInfo"),Ie("<<"),Ie("/Supplement 0"),Ie("/Registry (Adobe)"),Ie("/Ordering ("+Se.encoding+")"),Ie(">>"),Ie(">>"),Ie("endobj"),Se.objectNumber=tn(),Ie("<<"),Ie("/Type /Font"),Ie("/Subtype /Type0"),Ie("/ToUnicode "+pi+" 0 R"),Ie("/BaseFont /"+vo(Se.fontName)),Ie("/Encoding /"+Se.encoding),Ie("/DescendantFonts ["+gi+" 0 R]"),Ie(">>"),Ie("endobj"),Se.isAlreadyPutted=!0}})(Zt)}]),mt.events.push(["putFont",function(Zt){(function(ye){var Se=ye.font,Ie=ye.out,tn=ye.newObject,mn=ye.putStream;if(Se.metadata instanceof Pt.API.TTFFont&&Se.encoding==="WinAnsiEncoding"){for(var pn=Se.metadata.rawData,Tn="",ze=0;ze<pn.length;ze++)Tn+=String.fromCharCode(pn[ze]);var di=tn();mn({data:Tn,addLength1:!0,objectId:di}),Ie("endobj");var $n=tn();mn({data:jt(Se.metadata.toUnicode),addLength1:!0,objectId:$n}),Ie("endobj");var pi=tn();Ie("<<"),Ie("/Descent "+Se.metadata.decender),Ie("/CapHeight "+Se.metadata.capHeight),Ie("/StemV "+Se.metadata.stemV),Ie("/Type /FontDescriptor"),Ie("/FontFile2 "+di+" 0 R"),Ie("/Flags 96"),Ie("/FontBBox "+Pt.API.PDFObject.convert(Se.metadata.bbox)),Ie("/FontName /"+vo(Se.fontName)),Ie("/ItalicAngle "+Se.metadata.italicAngle),Ie("/Ascent "+Se.metadata.ascender),Ie(">>"),Ie("endobj"),Se.objectNumber=tn();for(var Hn=0;Hn<Se.metadata.hmtx.widths.length;Hn++)Se.metadata.hmtx.widths[Hn]=parseInt(Se.metadata.hmtx.widths[Hn]*(1e3/Se.metadata.head.unitsPerEm));Ie("<</Subtype/TrueType/Type/Font/ToUnicode "+$n+" 0 R/BaseFont/"+vo(Se.fontName)+"/FontDescriptor "+pi+" 0 R/Encoding/"+Se.encoding+" /FirstChar 29 /LastChar 255 /Widths "+Pt.API.PDFObject.convert(Se.metadata.hmtx.widths)+">>"),Ie("endobj"),Se.isAlreadyPutted=!0}})(Zt)}]);var le=function(Zt){var ye,Se=Zt.text||"",Ie=Zt.x,tn=Zt.y,mn=Zt.options||{},pn=Zt.mutex||{},Tn=pn.pdfEscape,ze=pn.activeFontKey,di=pn.fonts,$n=ze,pi="",Hn=0,gi="",Hi=di[$n].encoding;if(di[$n].encoding!=="Identity-H")return{text:Se,x:Ie,y:tn,options:mn,mutex:pn};for(gi=Se,$n=ze,Array.isArray(Se)&&(gi=Se[0]),Hn=0;Hn<gi.length;Hn+=1)di[$n].metadata.hasOwnProperty("cmap")&&(ye=di[$n].metadata.cmap.unicode.codeMap[gi[Hn].charCodeAt(0)]),ye||gi[Hn].charCodeAt(0)<256&&di[$n].metadata.hasOwnProperty("Unicode")?pi+=gi[Hn]:pi+="";var ur="";return parseInt($n.slice(1))<14||Hi==="WinAnsiEncoding"?ur=Tn(pi,$n).split("").map(function(Ir){return Ir.charCodeAt(0).toString(16)}).join(""):Hi==="Identity-H"&&(ur=Et(pi,di[$n])),pn.isHex=!0,{text:ur,x:Ie,y:tn,options:mn,mutex:pn}};mt.events.push(["postProcessText",function(Zt){var ye=Zt.text||"",Se=[],Ie={text:ye,x:Zt.x,y:Zt.y,options:Zt.options,mutex:Zt.mutex};if(Array.isArray(ye)){var tn=0;for(tn=0;tn<ye.length;tn+=1)Array.isArray(ye[tn])&&ye[tn].length===3?Se.push([le(Object.assign({},Ie,{text:ye[tn][0]})).text,ye[tn][1],ye[tn][2]]):Se.push(le(Object.assign({},Ie,{text:ye[tn]})).text);Zt.text=Se}else Zt.text=le(Object.assign({},Ie,{text:ye})).text}])}(zo),function(Pt){var mt=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};Pt.existsFileInVFS=function(Et){return mt.call(this),this.internal.vFS[Et]!==void 0},Pt.addFileToVFS=function(Et,jt){return mt.call(this),this.internal.vFS[Et]=jt,this},Pt.getFileFromVFS=function(Et){return mt.call(this),this.internal.vFS[Et]!==void 0?this.internal.vFS[Et]:null}}(zo.API),function(Pt){Pt.__bidiEngine__=Pt.prototype.__bidiEngine__=function(jt){var le,Zt,ye,Se,Ie,tn,mn,pn=mt,Tn=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],ze=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],di={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},$n={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},pi=["(",")","(","<",">","<","[","]","[","{","}","{","\xAB","\xBB","\xAB","\u2039","\u203A","\u2039","\u2045","\u2046","\u2045","\u207D","\u207E","\u207D","\u208D","\u208E","\u208D","\u2264","\u2265","\u2264","\u2329","\u232A","\u2329","\uFE59","\uFE5A","\uFE59","\uFE5B","\uFE5C","\uFE5B","\uFE5D","\uFE5E","\uFE5D","\uFE64","\uFE65","\uFE64"],Hn=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),gi=!1,Hi=0;this.__bidiEngine__={};var ur=function(zn){var Xn=zn.charCodeAt(),Yi=Xn>>8,ve=$n[Yi];return ve!==void 0?pn[256*ve+(255&Xn)]:Yi===252||Yi===253?"AL":Hn.test(Yi)?"L":Yi===8?"R":"N"},Ir=function(zn){for(var Xn,Yi=0;Yi<zn.length;Yi++){if((Xn=ur(zn.charAt(Yi)))==="L")return!1;if(Xn==="R")return!0}return!1},io=function(zn,Xn,Yi,ve){var Ee,Ye,on,cn,dn=Xn[ve];switch(dn){case"L":case"R":gi=!1;break;case"N":case"AN":break;case"EN":gi&&(dn="AN");break;case"AL":gi=!0,dn="R";break;case"WS":dn="N";break;case"CS":ve<1||ve+1>=Xn.length||(Ee=Yi[ve-1])!=="EN"&&Ee!=="AN"||(Ye=Xn[ve+1])!=="EN"&&Ye!=="AN"?dn="N":gi&&(Ye="AN"),dn=Ye===Ee?Ye:"N";break;case"ES":dn=(Ee=ve>0?Yi[ve-1]:"B")==="EN"&&ve+1<Xn.length&&Xn[ve+1]==="EN"?"EN":"N";break;case"ET":if(ve>0&&Yi[ve-1]==="EN"){dn="EN";break}if(gi){dn="N";break}for(on=ve+1,cn=Xn.length;on<cn&&Xn[on]==="ET";)on++;dn=on<cn&&Xn[on]==="EN"?"EN":"N";break;case"NSM":if(ye&&!Se){for(cn=Xn.length,on=ve+1;on<cn&&Xn[on]==="NSM";)on++;if(on<cn){var Dn=zn[ve],Jn=Dn>=1425&&Dn<=2303||Dn===64286;if(Ee=Xn[on],Jn&&(Ee==="R"||Ee==="AL")){dn="R";break}}}dn=ve<1||(Ee=Xn[ve-1])==="B"?"N":Yi[ve-1];break;case"B":gi=!1,le=!0,dn=Hi;break;case"S":Zt=!0,dn="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":gi=!1;break;case"BN":dn="N"}return dn},vr=function(zn,Xn,Yi){var ve=zn.split("");return Yi&&Ti(ve,Yi,{hiLevel:Hi}),ve.reverse(),Xn&&Xn.reverse(),ve.join("")},Ti=function(zn,Xn,Yi){var ve,Ee,Ye,on,cn,dn=-1,Dn=zn.length,Jn=0,Ue=[],hn=Hi?ze:Tn,yn=[];for(gi=!1,le=!1,Zt=!1,Ee=0;Ee<Dn;Ee++)yn[Ee]=ur(zn[Ee]);for(Ye=0;Ye<Dn;Ye++){if(cn=Jn,Ue[Ye]=io(zn,yn,Ue,Ye),ve=240&(Jn=hn[cn][di[Ue[Ye]]]),Jn&=15,Xn[Ye]=on=hn[Jn][5],ve>0)if(ve===16){for(Ee=dn;Ee<Ye;Ee++)Xn[Ee]=1;dn=-1}else dn=-1;if(hn[Jn][6])dn===-1&&(dn=Ye);else if(dn>-1){for(Ee=dn;Ee<Ye;Ee++)Xn[Ee]=on;dn=-1}yn[Ye]==="B"&&(Xn[Ye]=0),Yi.hiLevel|=on}Zt&&function(Mn,Zn,li){for(var oi=0;oi<li;oi++)if(Mn[oi]==="S"){Zn[oi]=Hi;for(var Fi=oi-1;Fi>=0&&Mn[Fi]==="WS";Fi--)Zn[Fi]=Hi}}(yn,Xn,Dn)},Br=function(zn,Xn,Yi,ve,Ee){if(!(Ee.hiLevel<zn)){if(zn===1&&Hi===1&&!le)return Xn.reverse(),void(Yi&&Yi.reverse());for(var Ye,on,cn,dn,Dn=Xn.length,Jn=0;Jn<Dn;){if(ve[Jn]>=zn){for(cn=Jn+1;cn<Dn&&ve[cn]>=zn;)cn++;for(dn=Jn,on=cn-1;dn<on;dn++,on--)Ye=Xn[dn],Xn[dn]=Xn[on],Xn[on]=Ye,Yi&&(Ye=Yi[dn],Yi[dn]=Yi[on],Yi[on]=Ye);Jn=cn}Jn++}}},Vr=function(zn,Xn,Yi){var ve=zn.split(""),Ee={hiLevel:Hi};return Yi||(Yi=[]),Ti(ve,Yi,Ee),function(Ye,on,cn){if(cn.hiLevel!==0&&mn)for(var dn,Dn=0;Dn<Ye.length;Dn++)on[Dn]===1&&(dn=pi.indexOf(Ye[Dn]))>=0&&(Ye[Dn]=pi[dn+1])}(ve,Yi,Ee),Br(2,ve,Xn,Yi,Ee),Br(1,ve,Xn,Yi,Ee),ve.join("")};return this.__bidiEngine__.doBidiReorder=function(zn,Xn,Yi){if(function(Ee,Ye){if(Ye)for(var on=0;on<Ee.length;on++)Ye[on]=on;Se===void 0&&(Se=Ir(Ee)),tn===void 0&&(tn=Ir(Ee))}(zn,Xn),ye||!Ie||tn)if(ye&&Ie&&Se^tn)Hi=Se?1:0,zn=vr(zn,Xn,Yi);else if(!ye&&Ie&&tn)Hi=Se?1:0,zn=Vr(zn,Xn,Yi),zn=vr(zn,Xn);else if(!ye||Se||Ie||tn){if(ye&&!Ie&&Se^tn)zn=vr(zn,Xn),Se?(Hi=0,zn=Vr(zn,Xn,Yi)):(Hi=1,zn=Vr(zn,Xn,Yi),zn=vr(zn,Xn));else if(ye&&Se&&!Ie&&tn)Hi=1,zn=Vr(zn,Xn,Yi),zn=vr(zn,Xn);else if(!ye&&!Ie&&Se^tn){var ve=mn;Se?(Hi=1,zn=Vr(zn,Xn,Yi),Hi=0,mn=!1,zn=Vr(zn,Xn,Yi),mn=ve):(Hi=0,zn=Vr(zn,Xn,Yi),zn=vr(zn,Xn),Hi=1,mn=!1,zn=Vr(zn,Xn,Yi),mn=ve,zn=vr(zn,Xn))}}else Hi=0,zn=Vr(zn,Xn,Yi);else Hi=Se?1:0,zn=Vr(zn,Xn,Yi);return zn},this.__bidiEngine__.setOptions=function(zn){zn&&(ye=zn.isInputVisual,Ie=zn.isOutputVisual,Se=zn.isInputRtl,tn=zn.isOutputRtl,mn=zn.isSymmetricSwapping)},this.__bidiEngine__.setOptions(jt),this.__bidiEngine__};var mt=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],Et=new Pt.__bidiEngine__({isInputVisual:!0});Pt.API.events.push(["postProcessText",function(jt){var le=jt.text;jt.x,jt.y;var Zt=jt.options||{};jt.mutex,Zt.lang;var ye=[];if(Zt.isInputVisual=typeof Zt.isInputVisual!="boolean"||Zt.isInputVisual,Et.setOptions(Zt),Object.prototype.toString.call(le)==="[object Array]"){var Se=0;for(ye=[],Se=0;Se<le.length;Se+=1)Object.prototype.toString.call(le[Se])==="[object Array]"?ye.push([Et.doBidiReorder(le[Se][0]),le[Se][1],le[Se][2]]):ye.push([Et.doBidiReorder(le[Se])]);jt.text=ye}else jt.text=Et.doBidiReorder(le);Et.setOptions({isInputVisual:!0})}])}(zo),zo.API.TTFFont=function(){function Pt(mt){var Et;if(this.rawData=mt,Et=this.contents=new fh(mt),this.contents.pos=4,Et.readString(4)==="ttcf")throw new Error("TTCF not supported.");Et.pos=0,this.parse(),this.subset=new Zl(this),this.registerTTF()}return Pt.open=function(mt){return new Pt(mt)},Pt.prototype.parse=function(){return this.directory=new _A(this.contents),this.head=new gs(this),this.name=new xl(this),this.cmap=new Ku(this),this.toUnicode={},this.hhea=new bl(this),this.maxp=new Oh(this),this.hmtx=new Su(this),this.post=new pu(this),this.os2=new sa(this),this.loca=new vl(this),this.glyf=new Da(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},Pt.prototype.registerTTF=function(){var mt,Et,jt,le,Zt;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var ye,Se,Ie,tn;for(tn=[],ye=0,Se=(Ie=this.bbox).length;ye<Se;ye++)mt=Ie[ye],tn.push(Math.round(mt*this.scaleFactor));return tn}.call(this),this.stemV=0,this.post.exists?(jt=255&(le=this.post.italic_angle),32768&(Et=le>>16)&&(Et=-(1+(65535^Et))),this.italicAngle=+(Et+"."+jt)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(Zt=this.familyClass)===1||Zt===2||Zt===3||Zt===4||Zt===5||Zt===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},Pt.prototype.characterToGlyph=function(mt){var Et;return((Et=this.cmap.unicode)!=null?Et.codeMap[mt]:void 0)||0},Pt.prototype.widthOfGlyph=function(mt){var Et;return Et=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(mt).advance*Et},Pt.prototype.widthOfString=function(mt,Et,jt){var le,Zt,ye,Se;for(ye=0,Zt=0,Se=(mt=""+mt).length;0<=Se?Zt<Se:Zt>Se;Zt=0<=Se?++Zt:--Zt)le=mt.charCodeAt(Zt),ye+=this.widthOfGlyph(this.characterToGlyph(le))+jt*(1e3/Et)||0;return ye*(Et/1e3)},Pt.prototype.lineHeight=function(mt,Et){var jt;return Et==null&&(Et=!1),jt=Et?this.lineGap:0,(this.ascender+jt-this.decender)/1e3*mt},Pt}();var Uu,fh=function(){function Pt(mt){this.data=mt!=null?mt:[],this.pos=0,this.length=this.data.length}return Pt.prototype.readByte=function(){return this.data[this.pos++]},Pt.prototype.writeByte=function(mt){return this.data[this.pos++]=mt},Pt.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},Pt.prototype.writeUInt32=function(mt){return this.writeByte(mt>>>24&255),this.writeByte(mt>>16&255),this.writeByte(mt>>8&255),this.writeByte(255&mt)},Pt.prototype.readInt32=function(){var mt;return(mt=this.readUInt32())>=2147483648?mt-4294967296:mt},Pt.prototype.writeInt32=function(mt){return mt<0&&(mt+=4294967296),this.writeUInt32(mt)},Pt.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},Pt.prototype.writeUInt16=function(mt){return this.writeByte(mt>>8&255),this.writeByte(255&mt)},Pt.prototype.readInt16=function(){var mt;return(mt=this.readUInt16())>=32768?mt-65536:mt},Pt.prototype.writeInt16=function(mt){return mt<0&&(mt+=65536),this.writeUInt16(mt)},Pt.prototype.readString=function(mt){var Et,jt;for(jt=[],Et=0;0<=mt?Et<mt:Et>mt;Et=0<=mt?++Et:--Et)jt[Et]=String.fromCharCode(this.readByte());return jt.join("")},Pt.prototype.writeString=function(mt){var Et,jt,le;for(le=[],Et=0,jt=mt.length;0<=jt?Et<jt:Et>jt;Et=0<=jt?++Et:--Et)le.push(this.writeByte(mt.charCodeAt(Et)));return le},Pt.prototype.readShort=function(){return this.readInt16()},Pt.prototype.writeShort=function(mt){return this.writeInt16(mt)},Pt.prototype.readLongLong=function(){var mt,Et,jt,le,Zt,ye,Se,Ie;return mt=this.readByte(),Et=this.readByte(),jt=this.readByte(),le=this.readByte(),Zt=this.readByte(),ye=this.readByte(),Se=this.readByte(),Ie=this.readByte(),128&mt?-1*(72057594037927940*(255^mt)+281474976710656*(255^Et)+1099511627776*(255^jt)+4294967296*(255^le)+16777216*(255^Zt)+65536*(255^ye)+256*(255^Se)+(255^Ie)+1):72057594037927940*mt+281474976710656*Et+1099511627776*jt+4294967296*le+16777216*Zt+65536*ye+256*Se+Ie},Pt.prototype.writeLongLong=function(mt){var Et,jt;return Et=Math.floor(mt/4294967296),jt=4294967295&mt,this.writeByte(Et>>24&255),this.writeByte(Et>>16&255),this.writeByte(Et>>8&255),this.writeByte(255&Et),this.writeByte(jt>>24&255),this.writeByte(jt>>16&255),this.writeByte(jt>>8&255),this.writeByte(255&jt)},Pt.prototype.readInt=function(){return this.readInt32()},Pt.prototype.writeInt=function(mt){return this.writeInt32(mt)},Pt.prototype.read=function(mt){var Et,jt;for(Et=[],jt=0;0<=mt?jt<mt:jt>mt;jt=0<=mt?++jt:--jt)Et.push(this.readByte());return Et},Pt.prototype.write=function(mt){var Et,jt,le,Zt;for(Zt=[],jt=0,le=mt.length;jt<le;jt++)Et=mt[jt],Zt.push(this.writeByte(Et));return Zt},Pt}(),_A=function(){var Pt;function mt(Et){var jt,le,Zt;for(this.scalarType=Et.readInt(),this.tableCount=Et.readShort(),this.searchRange=Et.readShort(),this.entrySelector=Et.readShort(),this.rangeShift=Et.readShort(),this.tables={},le=0,Zt=this.tableCount;0<=Zt?le<Zt:le>Zt;le=0<=Zt?++le:--le)jt={tag:Et.readString(4),checksum:Et.readInt(),offset:Et.readInt(),length:Et.readInt()},this.tables[jt.tag]=jt}return mt.prototype.encode=function(Et){var jt,le,Zt,ye,Se,Ie,tn,mn,pn,Tn,ze,di,$n;for($n in ze=Object.keys(Et).length,Ie=Math.log(2),pn=16*Math.floor(Math.log(ze)/Ie),ye=Math.floor(pn/Ie),mn=16*ze-pn,(le=new fh).writeInt(this.scalarType),le.writeShort(ze),le.writeShort(pn),le.writeShort(ye),le.writeShort(mn),Zt=16*ze,tn=le.pos+Zt,Se=null,di=[],Et)for(Tn=Et[$n],le.writeString($n),le.writeInt(Pt(Tn)),le.writeInt(tn),le.writeInt(Tn.length),di=di.concat(Tn),$n==="head"&&(Se=tn),tn+=Tn.length;tn%4;)di.push(0),tn++;return le.write(di),jt=2981146554-Pt(le.data),le.pos=Se+8,le.writeUInt32(jt),le.data},Pt=function(Et){var jt,le,Zt,ye;for(Et=xd.call(Et);Et.length%4;)Et.push(0);for(Zt=new fh(Et),le=0,jt=0,ye=Et.length;jt<ye;jt=jt+=4)le+=Zt.readUInt32();return 4294967295&le},mt}(),sd={}.hasOwnProperty,il=function(Pt,mt){for(var Et in mt)sd.call(mt,Et)&&(Pt[Et]=mt[Et]);function jt(){this.constructor=Pt}return jt.prototype=mt.prototype,Pt.prototype=new jt,Pt.__super__=mt.prototype,Pt};Uu=function(){function Pt(mt){var Et;this.file=mt,Et=this.file.directory.tables[this.tag],this.exists=!!Et,Et&&(this.offset=Et.offset,this.length=Et.length,this.parse(this.file.contents))}return Pt.prototype.parse=function(){},Pt.prototype.encode=function(){},Pt.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},Pt}();var gs=function(Pt){function mt(){return mt.__super__.constructor.apply(this,arguments)}return il(mt,Uu),mt.prototype.tag="head",mt.prototype.parse=function(Et){return Et.pos=this.offset,this.version=Et.readInt(),this.revision=Et.readInt(),this.checkSumAdjustment=Et.readInt(),this.magicNumber=Et.readInt(),this.flags=Et.readShort(),this.unitsPerEm=Et.readShort(),this.created=Et.readLongLong(),this.modified=Et.readLongLong(),this.xMin=Et.readShort(),this.yMin=Et.readShort(),this.xMax=Et.readShort(),this.yMax=Et.readShort(),this.macStyle=Et.readShort(),this.lowestRecPPEM=Et.readShort(),this.fontDirectionHint=Et.readShort(),this.indexToLocFormat=Et.readShort(),this.glyphDataFormat=Et.readShort()},mt.prototype.encode=function(Et){var jt;return(jt=new fh).writeInt(this.version),jt.writeInt(this.revision),jt.writeInt(this.checkSumAdjustment),jt.writeInt(this.magicNumber),jt.writeShort(this.flags),jt.writeShort(this.unitsPerEm),jt.writeLongLong(this.created),jt.writeLongLong(this.modified),jt.writeShort(this.xMin),jt.writeShort(this.yMin),jt.writeShort(this.xMax),jt.writeShort(this.yMax),jt.writeShort(this.macStyle),jt.writeShort(this.lowestRecPPEM),jt.writeShort(this.fontDirectionHint),jt.writeShort(Et),jt.writeShort(this.glyphDataFormat),jt.data},mt}(),Xu=function(){function Pt(mt,Et){var jt,le,Zt,ye,Se,Ie,tn,mn,pn,Tn,ze,di,$n,pi,Hn,gi,Hi;switch(this.platformID=mt.readUInt16(),this.encodingID=mt.readShort(),this.offset=Et+mt.readInt(),pn=mt.pos,mt.pos=this.offset,this.format=mt.readUInt16(),this.length=mt.readUInt16(),this.language=mt.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(Ie=0;Ie<256;++Ie)this.codeMap[Ie]=mt.readByte();break;case 4:for(ze=mt.readUInt16(),Tn=ze/2,mt.pos+=6,Zt=function(){var ur,Ir;for(Ir=[],Ie=ur=0;0<=Tn?ur<Tn:ur>Tn;Ie=0<=Tn?++ur:--ur)Ir.push(mt.readUInt16());return Ir}(),mt.pos+=2,$n=function(){var ur,Ir;for(Ir=[],Ie=ur=0;0<=Tn?ur<Tn:ur>Tn;Ie=0<=Tn?++ur:--ur)Ir.push(mt.readUInt16());return Ir}(),tn=function(){var ur,Ir;for(Ir=[],Ie=ur=0;0<=Tn?ur<Tn:ur>Tn;Ie=0<=Tn?++ur:--ur)Ir.push(mt.readUInt16());return Ir}(),mn=function(){var ur,Ir;for(Ir=[],Ie=ur=0;0<=Tn?ur<Tn:ur>Tn;Ie=0<=Tn?++ur:--ur)Ir.push(mt.readUInt16());return Ir}(),le=(this.length-mt.pos+this.offset)/2,Se=function(){var ur,Ir;for(Ir=[],Ie=ur=0;0<=le?ur<le:ur>le;Ie=0<=le?++ur:--ur)Ir.push(mt.readUInt16());return Ir}(),Ie=Hn=0,Hi=Zt.length;Hn<Hi;Ie=++Hn)for(pi=Zt[Ie],jt=gi=di=$n[Ie];di<=pi?gi<=pi:gi>=pi;jt=di<=pi?++gi:--gi)mn[Ie]===0?ye=jt+tn[Ie]:(ye=Se[mn[Ie]/2+(jt-di)-(Tn-Ie)]||0)!==0&&(ye+=tn[Ie]),this.codeMap[jt]=65535&ye}mt.pos=pn}return Pt.encode=function(mt,Et){var jt,le,Zt,ye,Se,Ie,tn,mn,pn,Tn,ze,di,$n,pi,Hn,gi,Hi,ur,Ir,io,vr,Ti,Br,Vr,zn,Xn,Yi,ve,Ee,Ye,on,cn,dn,Dn,Jn,Ue,hn,yn,Mn,Zn,li,oi,Fi,ki,Xi,ar;switch(ve=new fh,ye=Object.keys(mt).sort(function(gr,qr){return gr-qr}),Et){case"macroman":for($n=0,pi=function(){var gr=[];for(di=0;di<256;++di)gr.push(0);return gr}(),gi={0:0},Zt={},Ee=0,dn=ye.length;Ee<dn;Ee++)gi[Fi=mt[le=ye[Ee]]]==null&&(gi[Fi]=++$n),Zt[le]={old:mt[le],new:gi[mt[le]]},pi[le]=gi[mt[le]];return ve.writeUInt16(1),ve.writeUInt16(0),ve.writeUInt32(12),ve.writeUInt16(0),ve.writeUInt16(262),ve.writeUInt16(0),ve.write(pi),{charMap:Zt,subtable:ve.data,maxGlyphID:$n+1};case"unicode":for(Xn=[],pn=[],Hi=0,gi={},jt={},Hn=tn=null,Ye=0,Dn=ye.length;Ye<Dn;Ye++)gi[Ir=mt[le=ye[Ye]]]==null&&(gi[Ir]=++Hi),jt[le]={old:Ir,new:gi[Ir]},Se=gi[Ir]-le,Hn!=null&&Se===tn||(Hn&&pn.push(Hn),Xn.push(le),tn=Se),Hn=le;for(Hn&&pn.push(Hn),pn.push(65535),Xn.push(65535),Vr=2*(Br=Xn.length),Ti=2*Math.pow(Math.log(Br)/Math.LN2,2),Tn=Math.log(Ti/2)/Math.LN2,vr=2*Br-Ti,Ie=[],io=[],ze=[],di=on=0,Jn=Xn.length;on<Jn;di=++on){if(zn=Xn[di],mn=pn[di],zn===65535){Ie.push(0),io.push(0);break}if(zn-(Yi=jt[zn].new)>=32768)for(Ie.push(0),io.push(2*(ze.length+Br-di)),le=cn=zn;zn<=mn?cn<=mn:cn>=mn;le=zn<=mn?++cn:--cn)ze.push(jt[le].new);else Ie.push(Yi-zn),io.push(0)}for(ve.writeUInt16(3),ve.writeUInt16(1),ve.writeUInt32(12),ve.writeUInt16(4),ve.writeUInt16(16+8*Br+2*ze.length),ve.writeUInt16(0),ve.writeUInt16(Vr),ve.writeUInt16(Ti),ve.writeUInt16(Tn),ve.writeUInt16(vr),li=0,Ue=pn.length;li<Ue;li++)le=pn[li],ve.writeUInt16(le);for(ve.writeUInt16(0),oi=0,hn=Xn.length;oi<hn;oi++)le=Xn[oi],ve.writeUInt16(le);for(ki=0,yn=Ie.length;ki<yn;ki++)Se=Ie[ki],ve.writeUInt16(Se);for(Xi=0,Mn=io.length;Xi<Mn;Xi++)ur=io[Xi],ve.writeUInt16(ur);for(ar=0,Zn=ze.length;ar<Zn;ar++)$n=ze[ar],ve.writeUInt16($n);return{charMap:jt,subtable:ve.data,maxGlyphID:Hi+1}}},Pt}(),Ku=function(Pt){function mt(){return mt.__super__.constructor.apply(this,arguments)}return il(mt,Uu),mt.prototype.tag="cmap",mt.prototype.parse=function(Et){var jt,le,Zt;for(Et.pos=this.offset,this.version=Et.readUInt16(),Zt=Et.readUInt16(),this.tables=[],this.unicode=null,le=0;0<=Zt?le<Zt:le>Zt;le=0<=Zt?++le:--le)jt=new Xu(Et,this.offset),this.tables.push(jt),jt.isUnicode&&this.unicode==null&&(this.unicode=jt);return!0},mt.encode=function(Et,jt){var le,Zt;return jt==null&&(jt="macroman"),le=Xu.encode(Et,jt),(Zt=new fh).writeUInt16(0),Zt.writeUInt16(1),le.table=Zt.data.concat(le.subtable),le},mt}(),bl=function(Pt){function mt(){return mt.__super__.constructor.apply(this,arguments)}return il(mt,Uu),mt.prototype.tag="hhea",mt.prototype.parse=function(Et){return Et.pos=this.offset,this.version=Et.readInt(),this.ascender=Et.readShort(),this.decender=Et.readShort(),this.lineGap=Et.readShort(),this.advanceWidthMax=Et.readShort(),this.minLeftSideBearing=Et.readShort(),this.minRightSideBearing=Et.readShort(),this.xMaxExtent=Et.readShort(),this.caretSlopeRise=Et.readShort(),this.caretSlopeRun=Et.readShort(),this.caretOffset=Et.readShort(),Et.pos+=8,this.metricDataFormat=Et.readShort(),this.numberOfMetrics=Et.readUInt16()},mt}(),sa=function(Pt){function mt(){return mt.__super__.constructor.apply(this,arguments)}return il(mt,Uu),mt.prototype.tag="OS/2",mt.prototype.parse=function(Et){if(Et.pos=this.offset,this.version=Et.readUInt16(),this.averageCharWidth=Et.readShort(),this.weightClass=Et.readUInt16(),this.widthClass=Et.readUInt16(),this.type=Et.readShort(),this.ySubscriptXSize=Et.readShort(),this.ySubscriptYSize=Et.readShort(),this.ySubscriptXOffset=Et.readShort(),this.ySubscriptYOffset=Et.readShort(),this.ySuperscriptXSize=Et.readShort(),this.ySuperscriptYSize=Et.readShort(),this.ySuperscriptXOffset=Et.readShort(),this.ySuperscriptYOffset=Et.readShort(),this.yStrikeoutSize=Et.readShort(),this.yStrikeoutPosition=Et.readShort(),this.familyClass=Et.readShort(),this.panose=function(){var jt,le;for(le=[],jt=0;jt<10;++jt)le.push(Et.readByte());return le}(),this.charRange=function(){var jt,le;for(le=[],jt=0;jt<4;++jt)le.push(Et.readInt());return le}(),this.vendorID=Et.readString(4),this.selection=Et.readShort(),this.firstCharIndex=Et.readShort(),this.lastCharIndex=Et.readShort(),this.version>0&&(this.ascent=Et.readShort(),this.descent=Et.readShort(),this.lineGap=Et.readShort(),this.winAscent=Et.readShort(),this.winDescent=Et.readShort(),this.codePageRange=function(){var jt,le;for(le=[],jt=0;jt<2;jt=++jt)le.push(Et.readInt());return le}(),this.version>1))return this.xHeight=Et.readShort(),this.capHeight=Et.readShort(),this.defaultChar=Et.readShort(),this.breakChar=Et.readShort(),this.maxContext=Et.readShort()},mt}(),pu=function(Pt){function mt(){return mt.__super__.constructor.apply(this,arguments)}return il(mt,Uu),mt.prototype.tag="post",mt.prototype.parse=function(Et){var jt,le,Zt;switch(Et.pos=this.offset,this.format=Et.readInt(),this.italicAngle=Et.readInt(),this.underlinePosition=Et.readShort(),this.underlineThickness=Et.readShort(),this.isFixedPitch=Et.readInt(),this.minMemType42=Et.readInt(),this.maxMemType42=Et.readInt(),this.minMemType1=Et.readInt(),this.maxMemType1=Et.readInt(),this.format){case 65536:break;case 131072:var ye;for(le=Et.readUInt16(),this.glyphNameIndex=[],ye=0;0<=le?ye<le:ye>le;ye=0<=le?++ye:--ye)this.glyphNameIndex.push(Et.readUInt16());for(this.names=[],Zt=[];Et.pos<this.offset+this.length;)jt=Et.readByte(),Zt.push(this.names.push(Et.readString(jt)));return Zt;case 151552:return le=Et.readUInt16(),this.offsets=Et.read(le);case 196608:break;case 262144:return this.map=function(){var Se,Ie,tn;for(tn=[],ye=Se=0,Ie=this.file.maxp.numGlyphs;0<=Ie?Se<Ie:Se>Ie;ye=0<=Ie?++Se:--Se)tn.push(Et.readUInt32());return tn}.call(this)}},mt}(),gh=function(Pt,mt){this.raw=Pt,this.length=Pt.length,this.platformID=mt.platformID,this.encodingID=mt.encodingID,this.languageID=mt.languageID},xl=function(Pt){function mt(){return mt.__super__.constructor.apply(this,arguments)}return il(mt,Uu),mt.prototype.tag="name",mt.prototype.parse=function(Et){var jt,le,Zt,ye,Se,Ie,tn,mn,pn,Tn,ze;for(Et.pos=this.offset,Et.readShort(),jt=Et.readShort(),Ie=Et.readShort(),le=[],ye=0;0<=jt?ye<jt:ye>jt;ye=0<=jt?++ye:--ye)le.push({platformID:Et.readShort(),encodingID:Et.readShort(),languageID:Et.readShort(),nameID:Et.readShort(),length:Et.readShort(),offset:this.offset+Ie+Et.readShort()});for(tn={},ye=pn=0,Tn=le.length;pn<Tn;ye=++pn)Zt=le[ye],Et.pos=Zt.offset,mn=Et.readString(Zt.length),Se=new gh(mn,Zt),tn[ze=Zt.nameID]==null&&(tn[ze]=[]),tn[Zt.nameID].push(Se);this.strings=tn,this.copyright=tn[0],this.fontFamily=tn[1],this.fontSubfamily=tn[2],this.uniqueSubfamily=tn[3],this.fontName=tn[4],this.version=tn[5];try{this.postscriptName=tn[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(di){this.postscriptName=tn[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=tn[7],this.manufacturer=tn[8],this.designer=tn[9],this.description=tn[10],this.vendorUrl=tn[11],this.designerUrl=tn[12],this.license=tn[13],this.licenseUrl=tn[14],this.preferredFamily=tn[15],this.preferredSubfamily=tn[17],this.compatibleFull=tn[18],this.sampleText=tn[19]},mt}(),Oh=function(Pt){function mt(){return mt.__super__.constructor.apply(this,arguments)}return il(mt,Uu),mt.prototype.tag="maxp",mt.prototype.parse=function(Et){return Et.pos=this.offset,this.version=Et.readInt(),this.numGlyphs=Et.readUInt16(),this.maxPoints=Et.readUInt16(),this.maxContours=Et.readUInt16(),this.maxCompositePoints=Et.readUInt16(),this.maxComponentContours=Et.readUInt16(),this.maxZones=Et.readUInt16(),this.maxTwilightPoints=Et.readUInt16(),this.maxStorage=Et.readUInt16(),this.maxFunctionDefs=Et.readUInt16(),this.maxInstructionDefs=Et.readUInt16(),this.maxStackElements=Et.readUInt16(),this.maxSizeOfInstructions=Et.readUInt16(),this.maxComponentElements=Et.readUInt16(),this.maxComponentDepth=Et.readUInt16()},mt}(),Su=function(Pt){function mt(){return mt.__super__.constructor.apply(this,arguments)}return il(mt,Uu),mt.prototype.tag="hmtx",mt.prototype.parse=function(Et){var jt,le,Zt,ye,Se,Ie,tn;for(Et.pos=this.offset,this.metrics=[],jt=0,Ie=this.file.hhea.numberOfMetrics;0<=Ie?jt<Ie:jt>Ie;jt=0<=Ie?++jt:--jt)this.metrics.push({advance:Et.readUInt16(),lsb:Et.readInt16()});for(Zt=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var mn,pn;for(pn=[],jt=mn=0;0<=Zt?mn<Zt:mn>Zt;jt=0<=Zt?++mn:--mn)pn.push(Et.readInt16());return pn}(),this.widths=function(){var mn,pn,Tn,ze;for(ze=[],mn=0,pn=(Tn=this.metrics).length;mn<pn;mn++)ye=Tn[mn],ze.push(ye.advance);return ze}.call(this),le=this.widths[this.widths.length-1],tn=[],jt=Se=0;0<=Zt?Se<Zt:Se>Zt;jt=0<=Zt?++Se:--Se)tn.push(this.widths.push(le));return tn},mt.prototype.forGlyph=function(Et){return Et in this.metrics?this.metrics[Et]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[Et-this.metrics.length]}},mt}(),xd=[].slice,Da=function(Pt){function mt(){return mt.__super__.constructor.apply(this,arguments)}return il(mt,Uu),mt.prototype.tag="glyf",mt.prototype.parse=function(){return this.cache={}},mt.prototype.glyphFor=function(Et){var jt,le,Zt,ye,Se,Ie,tn,mn,pn,Tn;return Et in this.cache?this.cache[Et]:(ye=this.file.loca,jt=this.file.contents,le=ye.indexOf(Et),(Zt=ye.lengthOf(Et))===0?this.cache[Et]=null:(jt.pos=this.offset+le,Se=(Ie=new fh(jt.read(Zt))).readShort(),mn=Ie.readShort(),Tn=Ie.readShort(),tn=Ie.readShort(),pn=Ie.readShort(),this.cache[Et]=Se===-1?new ja(Ie,mn,Tn,tn,pn):new Ju(Ie,Se,mn,Tn,tn,pn),this.cache[Et]))},mt.prototype.encode=function(Et,jt,le){var Zt,ye,Se,Ie,tn;for(Se=[],ye=[],Ie=0,tn=jt.length;Ie<tn;Ie++)Zt=Et[jt[Ie]],ye.push(Se.length),Zt&&(Se=Se.concat(Zt.encode(le)));return ye.push(Se.length),{table:Se,offsets:ye}},mt}(),Ju=function(){function Pt(mt,Et,jt,le,Zt,ye){this.raw=mt,this.numberOfContours=Et,this.xMin=jt,this.yMin=le,this.xMax=Zt,this.yMax=ye,this.compound=!1}return Pt.prototype.encode=function(){return this.raw.data},Pt}(),ja=function(){function Pt(mt,Et,jt,le,Zt){var ye,Se;for(this.raw=mt,this.xMin=Et,this.yMin=jt,this.xMax=le,this.yMax=Zt,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],ye=this.raw;Se=ye.readShort(),this.glyphOffsets.push(ye.pos),this.glyphIDs.push(ye.readUInt16()),32&Se;)ye.pos+=1&Se?4:2,128&Se?ye.pos+=8:64&Se?ye.pos+=4:8&Se&&(ye.pos+=2)}return Pt.prototype.encode=function(){var mt,Et,jt;for(Et=new fh(xd.call(this.raw.data)),mt=0,jt=this.glyphIDs.length;mt<jt;++mt)Et.pos=this.glyphOffsets[mt];return Et.data},Pt}(),vl=function(Pt){function mt(){return mt.__super__.constructor.apply(this,arguments)}return il(mt,Uu),mt.prototype.tag="loca",mt.prototype.parse=function(Et){var jt,le;return Et.pos=this.offset,jt=this.file.head.indexToLocFormat,this.offsets=jt===0?function(){var Zt,ye;for(ye=[],le=0,Zt=this.length;le<Zt;le+=2)ye.push(2*Et.readUInt16());return ye}.call(this):function(){var Zt,ye;for(ye=[],le=0,Zt=this.length;le<Zt;le+=4)ye.push(Et.readUInt32());return ye}.call(this)},mt.prototype.indexOf=function(Et){return this.offsets[Et]},mt.prototype.lengthOf=function(Et){return this.offsets[Et+1]-this.offsets[Et]},mt.prototype.encode=function(Et,jt){for(var le=new Uint32Array(this.offsets.length),Zt=0,ye=0,Se=0;Se<le.length;++Se)if(le[Se]=Zt,ye<jt.length&&jt[ye]==Se){++ye,le[Se]=Zt;var Ie=this.offsets[Se],tn=this.offsets[Se+1]-Ie;tn>0&&(Zt+=tn)}for(var mn=new Array(4*le.length),pn=0;pn<le.length;++pn)mn[4*pn+3]=255&le[pn],mn[4*pn+2]=(65280&le[pn])>>8,mn[4*pn+1]=(16711680&le[pn])>>16,mn[4*pn]=(4278190080&le[pn])>>24;return mn},mt}(),Zl=function(){function Pt(mt){this.font=mt,this.subset={},this.unicodes={},this.next=33}return Pt.prototype.generateCmap=function(){var mt,Et,jt,le,Zt;for(Et in le=this.font.cmap.tables[0].codeMap,mt={},Zt=this.subset)jt=Zt[Et],mt[Et]=le[jt];return mt},Pt.prototype.glyphsFor=function(mt){var Et,jt,le,Zt,ye,Se,Ie;for(le={},ye=0,Se=mt.length;ye<Se;ye++)le[Zt=mt[ye]]=this.font.glyf.glyphFor(Zt);for(Zt in Et=[],le)(jt=le[Zt])!=null&&jt.compound&&Et.push.apply(Et,jt.glyphIDs);if(Et.length>0)for(Zt in Ie=this.glyphsFor(Et))jt=Ie[Zt],le[Zt]=jt;return le},Pt.prototype.encode=function(mt,Et){var jt,le,Zt,ye,Se,Ie,tn,mn,pn,Tn,ze,di,$n,pi,Hn;for(le in jt=Ku.encode(this.generateCmap(),"unicode"),ye=this.glyphsFor(mt),ze={0:0},Hn=jt.charMap)ze[(Ie=Hn[le]).old]=Ie.new;for(di in Tn=jt.maxGlyphID,ye)di in ze||(ze[di]=Tn++);return mn=function(gi){var Hi,ur;for(Hi in ur={},gi)ur[gi[Hi]]=Hi;return ur}(ze),pn=Object.keys(mn).sort(function(gi,Hi){return gi-Hi}),$n=function(){var gi,Hi,ur;for(ur=[],gi=0,Hi=pn.length;gi<Hi;gi++)Se=pn[gi],ur.push(mn[Se]);return ur}(),Zt=this.font.glyf.encode(ye,$n,ze),tn=this.font.loca.encode(Zt.offsets,$n),pi={cmap:this.font.cmap.raw(),glyf:Zt.table,loca:tn,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(Et)},this.font.os2.exists&&(pi["OS/2"]=this.font.os2.raw()),this.font.directory.encode(pi)},Pt}();zo.API.PDFObject=function(){var Pt;function mt(){}return Pt=function(Et,jt){return(Array(jt+1).join("0")+Et).slice(-jt)},mt.convert=function(Et){var jt,le,Zt,ye;if(Array.isArray(Et))return"["+function(){var Se,Ie,tn;for(tn=[],Se=0,Ie=Et.length;Se<Ie;Se++)jt=Et[Se],tn.push(mt.convert(jt));return tn}().join(" ")+"]";if(typeof Et=="string")return"/"+Et;if(Et!=null&&Et.isString)return"("+Et+")";if(Et instanceof Date)return"(D:"+Pt(Et.getUTCFullYear(),4)+Pt(Et.getUTCMonth(),2)+Pt(Et.getUTCDate(),2)+Pt(Et.getUTCHours(),2)+Pt(Et.getUTCMinutes(),2)+Pt(Et.getUTCSeconds(),2)+"Z)";if({}.toString.call(Et)==="[object Object]"){for(le in Zt=["<<"],Et)ye=Et[le],Zt.push("/"+le+" "+mt.convert(ye));return Zt.push(">>"),Zt.join(`
|
|
|
`)}return""+Et},mt}()},86129:function(ui,Cn,Bt){var bt=Bt(19208).lW,ge=Bt(97671);(function(se){ui.exports=se()})(function(){return function se(Me,ie,ae){function Lt(St,Wt){if(!ie[St]){if(!Me[St]){var Gt=void 0;if(!Wt&&Gt)return require(St,!0);if(kt)return kt(St,!0);var qt=new Error("Cannot find module '"+St+"'");throw qt.code="MODULE_NOT_FOUND",qt}var wt=ie[St]={exports:{}};Me[St][0].call(wt.exports,function(et){var tt=Me[St][1][et];return Lt(tt||et)},wt,wt.exports,se,Me,ie,ae)}return ie[St].exports}for(var kt=void 0,Jt=0;Jt<ae.length;Jt++)Lt(ae[Jt]);return Lt}({1:[function(se,Me,ie){"use strict";var ae=se("./utils"),Lt=se("./support"),kt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";ie.encode=function(Jt){for(var St,Wt,Gt,qt,wt,et,tt,lt=[],rt=0,ut=Jt.length,dt=ut,pt=ae.getTypeOf(Jt)!=="string";rt<Jt.length;)dt=ut-rt,Gt=pt?(St=Jt[rt++],Wt=rt<ut?Jt[rt++]:0,rt<ut?Jt[rt++]:0):(St=Jt.charCodeAt(rt++),Wt=rt<ut?Jt.charCodeAt(rt++):0,rt<ut?Jt.charCodeAt(rt++):0),qt=St>>2,wt=(3&St)<<4|Wt>>4,et=1<dt?(15&Wt)<<2|Gt>>6:64,tt=2<dt?63&Gt:64,lt.push(kt.charAt(qt)+kt.charAt(wt)+kt.charAt(et)+kt.charAt(tt));return lt.join("")},ie.decode=function(Jt){var St,Wt,Gt,qt,wt,et,tt=0,lt=0,rt="data:";if(Jt.substr(0,rt.length)===rt)throw new Error("Invalid base64 input, it looks like a data url.");var ut,dt=3*(Jt=Jt.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(Jt.charAt(Jt.length-1)===kt.charAt(64)&&dt--,Jt.charAt(Jt.length-2)===kt.charAt(64)&&dt--,dt%1!=0)throw new Error("Invalid base64 input, bad content length.");for(ut=Lt.uint8array?new Uint8Array(0|dt):new Array(0|dt);tt<Jt.length;)St=kt.indexOf(Jt.charAt(tt++))<<2|(qt=kt.indexOf(Jt.charAt(tt++)))>>4,Wt=(15&qt)<<4|(wt=kt.indexOf(Jt.charAt(tt++)))>>2,Gt=(3&wt)<<6|(et=kt.indexOf(Jt.charAt(tt++))),ut[lt++]=St,wt!==64&&(ut[lt++]=Wt),et!==64&&(ut[lt++]=Gt);return ut}},{"./support":30,"./utils":32}],2:[function(se,Me,ie){"use strict";var ae=se("./external"),Lt=se("./stream/DataWorker"),kt=se("./stream/Crc32Probe"),Jt=se("./stream/DataLengthProbe");function St(Wt,Gt,qt,wt,et){this.compressedSize=Wt,this.uncompressedSize=Gt,this.crc32=qt,this.compression=wt,this.compressedContent=et}St.prototype={getContentWorker:function(){var Wt=new Lt(ae.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new Jt("data_length")),Gt=this;return Wt.on("end",function(){if(this.streamInfo.data_length!==Gt.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),Wt},getCompressedWorker:function(){return new Lt(ae.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},St.createWorkerFrom=function(Wt,Gt,qt){return Wt.pipe(new kt).pipe(new Jt("uncompressedSize")).pipe(Gt.compressWorker(qt)).pipe(new Jt("compressedSize")).withStreamInfo("compression",Gt)},Me.exports=St},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(se,Me,ie){"use strict";var ae=se("./stream/GenericWorker");ie.STORE={magic:"\0\0",compressWorker:function(){return new ae("STORE compression")},uncompressWorker:function(){return new ae("STORE decompression")}},ie.DEFLATE=se("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(se,Me,ie){"use strict";var ae=se("./utils"),Lt=function(){for(var kt,Jt=[],St=0;St<256;St++){kt=St;for(var Wt=0;Wt<8;Wt++)kt=1&kt?3988292384^kt>>>1:kt>>>1;Jt[St]=kt}return Jt}();Me.exports=function(kt,Jt){return kt!==void 0&&kt.length?ae.getTypeOf(kt)!=="string"?function(St,Wt,Gt,qt){var wt=Lt,et=qt+Gt;St^=-1;for(var tt=qt;tt<et;tt++)St=St>>>8^wt[255&(St^Wt[tt])];return-1^St}(0|Jt,kt,kt.length,0):function(St,Wt,Gt,qt){var wt=Lt,et=qt+Gt;St^=-1;for(var tt=qt;tt<et;tt++)St=St>>>8^wt[255&(St^Wt.charCodeAt(tt))];return-1^St}(0|Jt,kt,kt.length,0):0}},{"./utils":32}],5:[function(se,Me,ie){"use strict";ie.base64=!1,ie.binary=!1,ie.dir=!1,ie.createFolders=!0,ie.date=null,ie.compression=null,ie.compressionOptions=null,ie.comment=null,ie.unixPermissions=null,ie.dosPermissions=null},{}],6:[function(se,Me,ie){"use strict";var ae=null;ae=typeof Promise!="undefined"?Promise:se("lie"),Me.exports={Promise:ae}},{lie:37}],7:[function(se,Me,ie){"use strict";var ae=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",Lt=se("pako"),kt=se("./utils"),Jt=se("./stream/GenericWorker"),St=ae?"uint8array":"array";function Wt(Gt,qt){Jt.call(this,"FlateWorker/"+Gt),this._pako=null,this._pakoAction=Gt,this._pakoOptions=qt,this.meta={}}ie.magic="\b\0",kt.inherits(Wt,Jt),Wt.prototype.processChunk=function(Gt){this.meta=Gt.meta,this._pako===null&&this._createPako(),this._pako.push(kt.transformTo(St,Gt.data),!1)},Wt.prototype.flush=function(){Jt.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},Wt.prototype.cleanUp=function(){Jt.prototype.cleanUp.call(this),this._pako=null},Wt.prototype._createPako=function(){this._pako=new Lt[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var Gt=this;this._pako.onData=function(qt){Gt.push({data:qt,meta:Gt.meta})}},ie.compressWorker=function(Gt){return new Wt("Deflate",Gt)},ie.uncompressWorker=function(){return new Wt("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(se,Me,ie){"use strict";function ae(wt,et){var tt,lt="";for(tt=0;tt<et;tt++)lt+=String.fromCharCode(255&wt),wt>>>=8;return lt}function Lt(wt,et,tt,lt,rt,ut){var dt,pt,Ft=wt.file,Tt=wt.compression,_t=ut!==St.utf8encode,re=kt.transformTo("string",ut(Ft.name)),he=kt.transformTo("string",St.utf8encode(Ft.name)),Ae=Ft.comment,Fe=kt.transformTo("string",ut(Ae)),ee=kt.transformTo("string",St.utf8encode(Ae)),We=he.length!==Ft.name.length,Yt=ee.length!==Ae.length,qe="",Ge="",Oe="",Ze=Ft.dir,Qe=Ft.date,we={crc32:0,compressedSize:0,uncompressedSize:0};et&&!tt||(we.crc32=wt.crc32,we.compressedSize=wt.compressedSize,we.uncompressedSize=wt.uncompressedSize);var oe=0;et&&(oe|=8),_t||!We&&!Yt||(oe|=2048);var Pe=0,En=0;Ze&&(Pe|=16),rt==="UNIX"?(En=798,Pe|=function(Xe,kn){var Vn=Xe;return Xe||(Vn=kn?16893:33204),(65535&Vn)<<16}(Ft.unixPermissions,Ze)):(En=20,Pe|=function(Xe){return 63&(Xe||0)}(Ft.dosPermissions)),dt=Qe.getUTCHours(),dt<<=6,dt|=Qe.getUTCMinutes(),dt<<=5,dt|=Qe.getUTCSeconds()/2,pt=Qe.getUTCFullYear()-1980,pt<<=4,pt|=Qe.getUTCMonth()+1,pt<<=5,pt|=Qe.getUTCDate(),We&&(Ge=ae(1,1)+ae(Wt(re),4)+he,qe+="up"+ae(Ge.length,2)+Ge),Yt&&(Oe=ae(1,1)+ae(Wt(Fe),4)+ee,qe+="uc"+ae(Oe.length,2)+Oe);var Nn="";return Nn+=`
|
|
|
\0`,Nn+=ae(oe,2),Nn+=Tt.magic,Nn+=ae(dt,2),Nn+=ae(pt,2),Nn+=ae(we.crc32,4),Nn+=ae(we.compressedSize,4),Nn+=ae(we.uncompressedSize,4),Nn+=ae(re.length,2),Nn+=ae(qe.length,2),{fileRecord:Gt.LOCAL_FILE_HEADER+Nn+re+qe,dirRecord:Gt.CENTRAL_FILE_HEADER+ae(En,2)+Nn+ae(Fe.length,2)+"\0\0\0\0"+ae(Pe,4)+ae(lt,4)+re+qe+Fe}}var kt=se("../utils"),Jt=se("../stream/GenericWorker"),St=se("../utf8"),Wt=se("../crc32"),Gt=se("../signature");function qt(wt,et,tt,lt){Jt.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=et,this.zipPlatform=tt,this.encodeFileName=lt,this.streamFiles=wt,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}kt.inherits(qt,Jt),qt.prototype.push=function(wt){var et=wt.meta.percent||0,tt=this.entriesCount,lt=this._sources.length;this.accumulate?this.contentBuffer.push(wt):(this.bytesWritten+=wt.data.length,Jt.prototype.push.call(this,{data:wt.data,meta:{currentFile:this.currentFile,percent:tt?(et+100*(tt-lt-1))/tt:100}}))},qt.prototype.openedSource=function(wt){this.currentSourceOffset=this.bytesWritten,this.currentFile=wt.file.name;var et=this.streamFiles&&!wt.file.dir;if(et){var tt=Lt(wt,et,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:tt.fileRecord,meta:{percent:0}})}else this.accumulate=!0},qt.prototype.closedSource=function(wt){this.accumulate=!1;var et=this.streamFiles&&!wt.file.dir,tt=Lt(wt,et,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(tt.dirRecord),et)this.push({data:function(lt){return Gt.DATA_DESCRIPTOR+ae(lt.crc32,4)+ae(lt.compressedSize,4)+ae(lt.uncompressedSize,4)}(wt),meta:{percent:100}});else for(this.push({data:tt.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},qt.prototype.flush=function(){for(var wt=this.bytesWritten,et=0;et<this.dirRecords.length;et++)this.push({data:this.dirRecords[et],meta:{percent:100}});var tt=this.bytesWritten-wt,lt=function(rt,ut,dt,pt,Ft){var Tt=kt.transformTo("string",Ft(pt));return Gt.CENTRAL_DIRECTORY_END+"\0\0\0\0"+ae(rt,2)+ae(rt,2)+ae(ut,4)+ae(dt,4)+ae(Tt.length,2)+Tt}(this.dirRecords.length,tt,wt,this.zipComment,this.encodeFileName);this.push({data:lt,meta:{percent:100}})},qt.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},qt.prototype.registerPrevious=function(wt){this._sources.push(wt);var et=this;return wt.on("data",function(tt){et.processChunk(tt)}),wt.on("end",function(){et.closedSource(et.previous.streamInfo),et._sources.length?et.prepareNextSource():et.end()}),wt.on("error",function(tt){et.error(tt)}),this},qt.prototype.resume=function(){return!!Jt.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},qt.prototype.error=function(wt){var et=this._sources;if(!Jt.prototype.error.call(this,wt))return!1;for(var tt=0;tt<et.length;tt++)try{et[tt].error(wt)}catch(lt){}return!0},qt.prototype.lock=function(){Jt.prototype.lock.call(this);for(var wt=this._sources,et=0;et<wt.length;et++)wt[et].lock()},Me.exports=qt},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(se,Me,ie){"use strict";var ae=se("../compressions"),Lt=se("./ZipFileWorker");ie.generateWorker=function(kt,Jt,St){var Wt=new Lt(Jt.streamFiles,St,Jt.platform,Jt.encodeFileName),Gt=0;try{kt.forEach(function(qt,wt){Gt++;var et=function(ut,dt){var pt=ut||dt,Ft=ae[pt];if(!Ft)throw new Error(pt+" is not a valid compression method !");return Ft}(wt.options.compression,Jt.compression),tt=wt.options.compressionOptions||Jt.compressionOptions||{},lt=wt.dir,rt=wt.date;wt._compressWorker(et,tt).withStreamInfo("file",{name:qt,dir:lt,date:rt,comment:wt.comment||"",unixPermissions:wt.unixPermissions,dosPermissions:wt.dosPermissions}).pipe(Wt)}),Wt.entriesCount=Gt}catch(qt){Wt.error(qt)}return Wt}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(se,Me,ie){"use strict";function ae(){if(!(this instanceof ae))return new ae;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var Lt=new ae;for(var kt in this)typeof this[kt]!="function"&&(Lt[kt]=this[kt]);return Lt}}(ae.prototype=se("./object")).loadAsync=se("./load"),ae.support=se("./support"),ae.defaults=se("./defaults"),ae.version="3.10.1",ae.loadAsync=function(Lt,kt){return new ae().loadAsync(Lt,kt)},ae.external=se("./external"),Me.exports=ae},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(se,Me,ie){"use strict";var ae=se("./utils"),Lt=se("./external"),kt=se("./utf8"),Jt=se("./zipEntries"),St=se("./stream/Crc32Probe"),Wt=se("./nodejsUtils");function Gt(qt){return new Lt.Promise(function(wt,et){var tt=qt.decompressed.getContentWorker().pipe(new St);tt.on("error",function(lt){et(lt)}).on("end",function(){tt.streamInfo.crc32!==qt.decompressed.crc32?et(new Error("Corrupted zip : CRC32 mismatch")):wt()}).resume()})}Me.exports=function(qt,wt){var et=this;return wt=ae.extend(wt||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:kt.utf8decode}),Wt.isNode&&Wt.isStream(qt)?Lt.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):ae.prepareContent("the loaded zip file",qt,!0,wt.optimizedBinaryString,wt.base64).then(function(tt){var lt=new Jt(wt);return lt.load(tt),lt}).then(function(tt){var lt=[Lt.Promise.resolve(tt)],rt=tt.files;if(wt.checkCRC32)for(var ut=0;ut<rt.length;ut++)lt.push(Gt(rt[ut]));return Lt.Promise.all(lt)}).then(function(tt){for(var lt=tt.shift(),rt=lt.files,ut=0;ut<rt.length;ut++){var dt=rt[ut],pt=dt.fileNameStr,Ft=ae.resolve(dt.fileNameStr);et.file(Ft,dt.decompressed,{binary:!0,optimizedBinaryString:!0,date:dt.date,dir:dt.dir,comment:dt.fileCommentStr.length?dt.fileCommentStr:null,unixPermissions:dt.unixPermissions,dosPermissions:dt.dosPermissions,createFolders:wt.createFolders}),dt.dir||(et.file(Ft).unsafeOriginalName=pt)}return lt.zipComment.length&&(et.comment=lt.zipComment),et})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(se,Me,ie){"use strict";var ae=se("../utils"),Lt=se("../stream/GenericWorker");function kt(Jt,St){Lt.call(this,"Nodejs stream input adapter for "+Jt),this._upstreamEnded=!1,this._bindStream(St)}ae.inherits(kt,Lt),kt.prototype._bindStream=function(Jt){var St=this;(this._stream=Jt).pause(),Jt.on("data",function(Wt){St.push({data:Wt,meta:{percent:0}})}).on("error",function(Wt){St.isPaused?this.generatedError=Wt:St.error(Wt)}).on("end",function(){St.isPaused?St._upstreamEnded=!0:St.end()})},kt.prototype.pause=function(){return!!Lt.prototype.pause.call(this)&&(this._stream.pause(),!0)},kt.prototype.resume=function(){return!!Lt.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},Me.exports=kt},{"../stream/GenericWorker":28,"../utils":32}],13:[function(se,Me,ie){"use strict";var ae=se("readable-stream").Readable;function Lt(kt,Jt,St){ae.call(this,Jt),this._helper=kt;var Wt=this;kt.on("data",function(Gt,qt){Wt.push(Gt)||Wt._helper.pause(),St&&St(qt)}).on("error",function(Gt){Wt.emit("error",Gt)}).on("end",function(){Wt.push(null)})}se("../utils").inherits(Lt,ae),Lt.prototype._read=function(){this._helper.resume()},Me.exports=Lt},{"../utils":32,"readable-stream":16}],14:[function(se,Me,ie){"use strict";Me.exports={isNode:typeof bt!="undefined",newBufferFrom:function(ae,Lt){if(bt.from&&bt.from!==Uint8Array.from)return bt.from(ae,Lt);if(typeof ae=="number")throw new Error('The "data" argument must not be a number');return new bt(ae,Lt)},allocBuffer:function(ae){if(bt.alloc)return bt.alloc(ae);var Lt=new bt(ae);return Lt.fill(0),Lt},isBuffer:function(ae){return bt.isBuffer(ae)},isStream:function(ae){return ae&&typeof ae.on=="function"&&typeof ae.pause=="function"&&typeof ae.resume=="function"}}},{}],15:[function(se,Me,ie){"use strict";function ae(Ft,Tt,_t){var re,he=kt.getTypeOf(Tt),Ae=kt.extend(_t||{},Wt);Ae.date=Ae.date||new Date,Ae.compression!==null&&(Ae.compression=Ae.compression.toUpperCase()),typeof Ae.unixPermissions=="string"&&(Ae.unixPermissions=parseInt(Ae.unixPermissions,8)),Ae.unixPermissions&&16384&Ae.unixPermissions&&(Ae.dir=!0),Ae.dosPermissions&&16&Ae.dosPermissions&&(Ae.dir=!0),Ae.dir&&(Ft=rt(Ft)),Ae.createFolders&&(re=lt(Ft))&&ut.call(this,re,!0);var Fe=he==="string"&&Ae.binary===!1&&Ae.base64===!1;_t&&_t.binary!==void 0||(Ae.binary=!Fe),(Tt instanceof Gt&&Tt.uncompressedSize===0||Ae.dir||!Tt||Tt.length===0)&&(Ae.base64=!1,Ae.binary=!0,Tt="",Ae.compression="STORE",he="string");var ee=null;ee=Tt instanceof Gt||Tt instanceof Jt?Tt:et.isNode&&et.isStream(Tt)?new tt(Ft,Tt):kt.prepareContent(Ft,Tt,Ae.binary,Ae.optimizedBinaryString,Ae.base64);var We=new qt(Ft,ee,Ae);this.files[Ft]=We}var Lt=se("./utf8"),kt=se("./utils"),Jt=se("./stream/GenericWorker"),St=se("./stream/StreamHelper"),Wt=se("./defaults"),Gt=se("./compressedObject"),qt=se("./zipObject"),wt=se("./generate"),et=se("./nodejsUtils"),tt=se("./nodejs/NodejsStreamInputAdapter"),lt=function(Ft){Ft.slice(-1)==="/"&&(Ft=Ft.substring(0,Ft.length-1));var Tt=Ft.lastIndexOf("/");return 0<Tt?Ft.substring(0,Tt):""},rt=function(Ft){return Ft.slice(-1)!=="/"&&(Ft+="/"),Ft},ut=function(Ft,Tt){return Tt=Tt!==void 0?Tt:Wt.createFolders,Ft=rt(Ft),this.files[Ft]||ae.call(this,Ft,null,{dir:!0,createFolders:Tt}),this.files[Ft]};function dt(Ft){return Object.prototype.toString.call(Ft)==="[object RegExp]"}var pt={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(Ft){var Tt,_t,re;for(Tt in this.files)re=this.files[Tt],(_t=Tt.slice(this.root.length,Tt.length))&&Tt.slice(0,this.root.length)===this.root&&Ft(_t,re)},filter:function(Ft){var Tt=[];return this.forEach(function(_t,re){Ft(_t,re)&&Tt.push(re)}),Tt},file:function(Ft,Tt,_t){if(arguments.length!==1)return Ft=this.root+Ft,ae.call(this,Ft,Tt,_t),this;if(dt(Ft)){var re=Ft;return this.filter(function(Ae,Fe){return!Fe.dir&&re.test(Ae)})}var he=this.files[this.root+Ft];return he&&!he.dir?he:null},folder:function(Ft){if(!Ft)return this;if(dt(Ft))return this.filter(function(he,Ae){return Ae.dir&&Ft.test(he)});var Tt=this.root+Ft,_t=ut.call(this,Tt),re=this.clone();return re.root=_t.name,re},remove:function(Ft){Ft=this.root+Ft;var Tt=this.files[Ft];if(Tt||(Ft.slice(-1)!=="/"&&(Ft+="/"),Tt=this.files[Ft]),Tt&&!Tt.dir)delete this.files[Ft];else for(var _t=this.filter(function(he,Ae){return Ae.name.slice(0,Ft.length)===Ft}),re=0;re<_t.length;re++)delete this.files[_t[re].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(Ft){var Tt,_t={};try{if((_t=kt.extend(Ft||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:Lt.utf8encode})).type=_t.type.toLowerCase(),_t.compression=_t.compression.toUpperCase(),_t.type==="binarystring"&&(_t.type="string"),!_t.type)throw new Error("No output type specified.");kt.checkSupport(_t.type),_t.platform!=="darwin"&&_t.platform!=="freebsd"&&_t.platform!=="linux"&&_t.platform!=="sunos"||(_t.platform="UNIX"),_t.platform==="win32"&&(_t.platform="DOS");var re=_t.comment||this.comment||"";Tt=wt.generateWorker(this,_t,re)}catch(he){(Tt=new Jt("error")).error(he)}return new St(Tt,_t.type||"string",_t.mimeType)},generateAsync:function(Ft,Tt){return this.generateInternalStream(Ft).accumulate(Tt)},generateNodeStream:function(Ft,Tt){return(Ft=Ft||{}).type||(Ft.type="nodebuffer"),this.generateInternalStream(Ft).toNodejsStream(Tt)}};Me.exports=pt},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(se,Me,ie){"use strict";Me.exports=se("stream")},{stream:void 0}],17:[function(se,Me,ie){"use strict";var ae=se("./DataReader");function Lt(kt){ae.call(this,kt);for(var Jt=0;Jt<this.data.length;Jt++)kt[Jt]=255&kt[Jt]}se("../utils").inherits(Lt,ae),Lt.prototype.byteAt=function(kt){return this.data[this.zero+kt]},Lt.prototype.lastIndexOfSignature=function(kt){for(var Jt=kt.charCodeAt(0),St=kt.charCodeAt(1),Wt=kt.charCodeAt(2),Gt=kt.charCodeAt(3),qt=this.length-4;0<=qt;--qt)if(this.data[qt]===Jt&&this.data[qt+1]===St&&this.data[qt+2]===Wt&&this.data[qt+3]===Gt)return qt-this.zero;return-1},Lt.prototype.readAndCheckSignature=function(kt){var Jt=kt.charCodeAt(0),St=kt.charCodeAt(1),Wt=kt.charCodeAt(2),Gt=kt.charCodeAt(3),qt=this.readData(4);return Jt===qt[0]&&St===qt[1]&&Wt===qt[2]&&Gt===qt[3]},Lt.prototype.readData=function(kt){if(this.checkOffset(kt),kt===0)return[];var Jt=this.data.slice(this.zero+this.index,this.zero+this.index+kt);return this.index+=kt,Jt},Me.exports=Lt},{"../utils":32,"./DataReader":18}],18:[function(se,Me,ie){"use strict";var ae=se("../utils");function Lt(kt){this.data=kt,this.length=kt.length,this.index=0,this.zero=0}Lt.prototype={checkOffset:function(kt){this.checkIndex(this.index+kt)},checkIndex:function(kt){if(this.length<this.zero+kt||kt<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+kt+"). Corrupted zip ?")},setIndex:function(kt){this.checkIndex(kt),this.index=kt},skip:function(kt){this.setIndex(this.index+kt)},byteAt:function(){},readInt:function(kt){var Jt,St=0;for(this.checkOffset(kt),Jt=this.index+kt-1;Jt>=this.index;Jt--)St=(St<<8)+this.byteAt(Jt);return this.index+=kt,St},readString:function(kt){return ae.transformTo("string",this.readData(kt))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var kt=this.readInt(4);return new Date(Date.UTC(1980+(kt>>25&127),(kt>>21&15)-1,kt>>16&31,kt>>11&31,kt>>5&63,(31&kt)<<1))}},Me.exports=Lt},{"../utils":32}],19:[function(se,Me,ie){"use strict";var ae=se("./Uint8ArrayReader");function Lt(kt){ae.call(this,kt)}se("../utils").inherits(Lt,ae),Lt.prototype.readData=function(kt){this.checkOffset(kt);var Jt=this.data.slice(this.zero+this.index,this.zero+this.index+kt);return this.index+=kt,Jt},Me.exports=Lt},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(se,Me,ie){"use strict";var ae=se("./DataReader");function Lt(kt){ae.call(this,kt)}se("../utils").inherits(Lt,ae),Lt.prototype.byteAt=function(kt){return this.data.charCodeAt(this.zero+kt)},Lt.prototype.lastIndexOfSignature=function(kt){return this.data.lastIndexOf(kt)-this.zero},Lt.prototype.readAndCheckSignature=function(kt){return kt===this.readData(4)},Lt.prototype.readData=function(kt){this.checkOffset(kt);var Jt=this.data.slice(this.zero+this.index,this.zero+this.index+kt);return this.index+=kt,Jt},Me.exports=Lt},{"../utils":32,"./DataReader":18}],21:[function(se,Me,ie){"use strict";var ae=se("./ArrayReader");function Lt(kt){ae.call(this,kt)}se("../utils").inherits(Lt,ae),Lt.prototype.readData=function(kt){if(this.checkOffset(kt),kt===0)return new Uint8Array(0);var Jt=this.data.subarray(this.zero+this.index,this.zero+this.index+kt);return this.index+=kt,Jt},Me.exports=Lt},{"../utils":32,"./ArrayReader":17}],22:[function(se,Me,ie){"use strict";var ae=se("../utils"),Lt=se("../support"),kt=se("./ArrayReader"),Jt=se("./StringReader"),St=se("./NodeBufferReader"),Wt=se("./Uint8ArrayReader");Me.exports=function(Gt){var qt=ae.getTypeOf(Gt);return ae.checkSupport(qt),qt!=="string"||Lt.uint8array?qt==="nodebuffer"?new St(Gt):Lt.uint8array?new Wt(ae.transformTo("uint8array",Gt)):new kt(ae.transformTo("array",Gt)):new Jt(Gt)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(se,Me,ie){"use strict";ie.LOCAL_FILE_HEADER="PK",ie.CENTRAL_FILE_HEADER="PK",ie.CENTRAL_DIRECTORY_END="PK",ie.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",ie.ZIP64_CENTRAL_DIRECTORY_END="PK",ie.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(se,Me,ie){"use strict";var ae=se("./GenericWorker"),Lt=se("../utils");function kt(Jt){ae.call(this,"ConvertWorker to "+Jt),this.destType=Jt}Lt.inherits(kt,ae),kt.prototype.processChunk=function(Jt){this.push({data:Lt.transformTo(this.destType,Jt.data),meta:Jt.meta})},Me.exports=kt},{"../utils":32,"./GenericWorker":28}],25:[function(se,Me,ie){"use strict";var ae=se("./GenericWorker"),Lt=se("../crc32");function kt(){ae.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}se("../utils").inherits(kt,ae),kt.prototype.processChunk=function(Jt){this.streamInfo.crc32=Lt(Jt.data,this.streamInfo.crc32||0),this.push(Jt)},Me.exports=kt},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(se,Me,ie){"use strict";var ae=se("../utils"),Lt=se("./GenericWorker");function kt(Jt){Lt.call(this,"DataLengthProbe for "+Jt),this.propName=Jt,this.withStreamInfo(Jt,0)}ae.inherits(kt,Lt),kt.prototype.processChunk=function(Jt){if(Jt){var St=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=St+Jt.data.length}Lt.prototype.processChunk.call(this,Jt)},Me.exports=kt},{"../utils":32,"./GenericWorker":28}],27:[function(se,Me,ie){"use strict";var ae=se("../utils"),Lt=se("./GenericWorker");function kt(Jt){Lt.call(this,"DataWorker");var St=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,Jt.then(function(Wt){St.dataIsReady=!0,St.data=Wt,St.max=Wt&&Wt.length||0,St.type=ae.getTypeOf(Wt),St.isPaused||St._tickAndRepeat()},function(Wt){St.error(Wt)})}ae.inherits(kt,Lt),kt.prototype.cleanUp=function(){Lt.prototype.cleanUp.call(this),this.data=null},kt.prototype.resume=function(){return!!Lt.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,ae.delay(this._tickAndRepeat,[],this)),!0)},kt.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(ae.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},kt.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var Jt=null,St=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":Jt=this.data.substring(this.index,St);break;case"uint8array":Jt=this.data.subarray(this.index,St);break;case"array":case"nodebuffer":Jt=this.data.slice(this.index,St)}return this.index=St,this.push({data:Jt,meta:{percent:this.max?this.index/this.max*100:0}})},Me.exports=kt},{"../utils":32,"./GenericWorker":28}],28:[function(se,Me,ie){"use strict";function ae(Lt){this.name=Lt||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}ae.prototype={push:function(Lt){this.emit("data",Lt)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(Lt){this.emit("error",Lt)}return!0},error:function(Lt){return!this.isFinished&&(this.isPaused?this.generatedError=Lt:(this.isFinished=!0,this.emit("error",Lt),this.previous&&this.previous.error(Lt),this.cleanUp()),!0)},on:function(Lt,kt){return this._listeners[Lt].push(kt),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(Lt,kt){if(this._listeners[Lt])for(var Jt=0;Jt<this._listeners[Lt].length;Jt++)this._listeners[Lt][Jt].call(this,kt)},pipe:function(Lt){return Lt.registerPrevious(this)},registerPrevious:function(Lt){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=Lt.streamInfo,this.mergeStreamInfo(),this.previous=Lt;var kt=this;return Lt.on("data",function(Jt){kt.processChunk(Jt)}),Lt.on("end",function(){kt.end()}),Lt.on("error",function(Jt){kt.error(Jt)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var Lt=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),Lt=!0),this.previous&&this.previous.resume(),!Lt},flush:function(){},processChunk:function(Lt){this.push(Lt)},withStreamInfo:function(Lt,kt){return this.extraStreamInfo[Lt]=kt,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var Lt in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,Lt)&&(this.streamInfo[Lt]=this.extraStreamInfo[Lt])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var Lt="Worker "+this.name;return this.previous?this.previous+" -> "+Lt:Lt}},Me.exports=ae},{}],29:[function(se,Me,ie){"use strict";var ae=se("../utils"),Lt=se("./ConvertWorker"),kt=se("./GenericWorker"),Jt=se("../base64"),St=se("../support"),Wt=se("../external"),Gt=null;if(St.nodestream)try{Gt=se("../nodejs/NodejsStreamOutputAdapter")}catch(et){}function qt(et,tt){return new Wt.Promise(function(lt,rt){var ut=[],dt=et._internalType,pt=et._outputType,Ft=et._mimeType;et.on("data",function(Tt,_t){ut.push(Tt),tt&&tt(_t)}).on("error",function(Tt){ut=[],rt(Tt)}).on("end",function(){try{var Tt=function(_t,re,he){switch(_t){case"blob":return ae.newBlob(ae.transformTo("arraybuffer",re),he);case"base64":return Jt.encode(re);default:return ae.transformTo(_t,re)}}(pt,function(_t,re){var he,Ae=0,Fe=null,ee=0;for(he=0;he<re.length;he++)ee+=re[he].length;switch(_t){case"string":return re.join("");case"array":return Array.prototype.concat.apply([],re);case"uint8array":for(Fe=new Uint8Array(ee),he=0;he<re.length;he++)Fe.set(re[he],Ae),Ae+=re[he].length;return Fe;case"nodebuffer":return bt.concat(re);default:throw new Error("concat : unsupported type '"+_t+"'")}}(dt,ut),Ft);lt(Tt)}catch(_t){rt(_t)}ut=[]}).resume()})}function wt(et,tt,lt){var rt=tt;switch(tt){case"blob":case"arraybuffer":rt="uint8array";break;case"base64":rt="string"}try{this._internalType=rt,this._outputType=tt,this._mimeType=lt,ae.checkSupport(rt),this._worker=et.pipe(new Lt(rt)),et.lock()}catch(ut){this._worker=new kt("error"),this._worker.error(ut)}}wt.prototype={accumulate:function(et){return qt(this,et)},on:function(et,tt){var lt=this;return et==="data"?this._worker.on(et,function(rt){tt.call(lt,rt.data,rt.meta)}):this._worker.on(et,function(){ae.delay(tt,arguments,lt)}),this},resume:function(){return ae.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(et){if(ae.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new Gt(this,{objectMode:this._outputType!=="nodebuffer"},et)}},Me.exports=wt},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(se,Me,ie){"use strict";if(ie.base64=!0,ie.array=!0,ie.string=!0,ie.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",ie.nodebuffer=typeof bt!="undefined",ie.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")ie.blob=!1;else{var ae=new ArrayBuffer(0);try{ie.blob=new Blob([ae],{type:"application/zip"}).size===0}catch(kt){try{var Lt=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);Lt.append(ae),ie.blob=Lt.getBlob("application/zip").size===0}catch(Jt){ie.blob=!1}}}try{ie.nodestream=!!se("readable-stream").Readable}catch(kt){ie.nodestream=!1}},{"readable-stream":16}],31:[function(se,Me,ie){"use strict";for(var ae=se("./utils"),Lt=se("./support"),kt=se("./nodejsUtils"),Jt=se("./stream/GenericWorker"),St=new Array(256),Wt=0;Wt<256;Wt++)St[Wt]=252<=Wt?6:248<=Wt?5:240<=Wt?4:224<=Wt?3:192<=Wt?2:1;St[254]=St[254]=1;function Gt(){Jt.call(this,"utf-8 decode"),this.leftOver=null}function qt(){Jt.call(this,"utf-8 encode")}ie.utf8encode=function(wt){return Lt.nodebuffer?kt.newBufferFrom(wt,"utf-8"):function(et){var tt,lt,rt,ut,dt,pt=et.length,Ft=0;for(ut=0;ut<pt;ut++)(64512&(lt=et.charCodeAt(ut)))==55296&&ut+1<pt&&(64512&(rt=et.charCodeAt(ut+1)))==56320&&(lt=65536+(lt-55296<<10)+(rt-56320),ut++),Ft+=lt<128?1:lt<2048?2:lt<65536?3:4;for(tt=Lt.uint8array?new Uint8Array(Ft):new Array(Ft),ut=dt=0;dt<Ft;ut++)(64512&(lt=et.charCodeAt(ut)))==55296&&ut+1<pt&&(64512&(rt=et.charCodeAt(ut+1)))==56320&&(lt=65536+(lt-55296<<10)+(rt-56320),ut++),lt<128?tt[dt++]=lt:(lt<2048?tt[dt++]=192|lt>>>6:(lt<65536?tt[dt++]=224|lt>>>12:(tt[dt++]=240|lt>>>18,tt[dt++]=128|lt>>>12&63),tt[dt++]=128|lt>>>6&63),tt[dt++]=128|63<);return tt}(wt)},ie.utf8decode=function(wt){return Lt.nodebuffer?ae.transformTo("nodebuffer",wt).toString("utf-8"):function(et){var tt,lt,rt,ut,dt=et.length,pt=new Array(2*dt);for(tt=lt=0;tt<dt;)if((rt=et[tt++])<128)pt[lt++]=rt;else if(4<(ut=St[rt]))pt[lt++]=65533,tt+=ut-1;else{for(rt&=ut===2?31:ut===3?15:7;1<ut&&tt<dt;)rt=rt<<6|63&et[tt++],ut--;1<ut?pt[lt++]=65533:rt<65536?pt[lt++]=rt:(rt-=65536,pt[lt++]=55296|rt>>10&1023,pt[lt++]=56320|1023&rt)}return pt.length!==lt&&(pt.subarray?pt=pt.subarray(0,lt):pt.length=lt),ae.applyFromCharCode(pt)}(wt=ae.transformTo(Lt.uint8array?"uint8array":"array",wt))},ae.inherits(Gt,Jt),Gt.prototype.processChunk=function(wt){var et=ae.transformTo(Lt.uint8array?"uint8array":"array",wt.data);if(this.leftOver&&this.leftOver.length){if(Lt.uint8array){var tt=et;(et=new Uint8Array(tt.length+this.leftOver.length)).set(this.leftOver,0),et.set(tt,this.leftOver.length)}else et=this.leftOver.concat(et);this.leftOver=null}var lt=function(ut,dt){var pt;for((dt=dt||ut.length)>ut.length&&(dt=ut.length),pt=dt-1;0<=pt&&(192&ut[pt])==128;)pt--;return pt<0||pt===0?dt:pt+St[ut[pt]]>dt?pt:dt}(et),rt=et;lt!==et.length&&(Lt.uint8array?(rt=et.subarray(0,lt),this.leftOver=et.subarray(lt,et.length)):(rt=et.slice(0,lt),this.leftOver=et.slice(lt,et.length))),this.push({data:ie.utf8decode(rt),meta:wt.meta})},Gt.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:ie.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},ie.Utf8DecodeWorker=Gt,ae.inherits(qt,Jt),qt.prototype.processChunk=function(wt){this.push({data:ie.utf8encode(wt.data),meta:wt.meta})},ie.Utf8EncodeWorker=qt},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(se,Me,ie){"use strict";var ae=se("./support"),Lt=se("./base64"),kt=se("./nodejsUtils"),Jt=se("./external");function St(tt){return tt}function Wt(tt,lt){for(var rt=0;rt<tt.length;++rt)lt[rt]=255&tt.charCodeAt(rt);return lt}se("setimmediate"),ie.newBlob=function(tt,lt){ie.checkSupport("blob");try{return new Blob([tt],{type:lt})}catch(ut){try{var rt=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return rt.append(tt),rt.getBlob(lt)}catch(dt){throw new Error("Bug : can't construct the Blob.")}}};var Gt={stringifyByChunk:function(tt,lt,rt){var ut=[],dt=0,pt=tt.length;if(pt<=rt)return String.fromCharCode.apply(null,tt);for(;dt<pt;)lt==="array"||lt==="nodebuffer"?ut.push(String.fromCharCode.apply(null,tt.slice(dt,Math.min(dt+rt,pt)))):ut.push(String.fromCharCode.apply(null,tt.subarray(dt,Math.min(dt+rt,pt)))),dt+=rt;return ut.join("")},stringifyByChar:function(tt){for(var lt="",rt=0;rt<tt.length;rt++)lt+=String.fromCharCode(tt[rt]);return lt},applyCanBeUsed:{uint8array:function(){try{return ae.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(tt){return!1}}(),nodebuffer:function(){try{return ae.nodebuffer&&String.fromCharCode.apply(null,kt.allocBuffer(1)).length===1}catch(tt){return!1}}()}};function qt(tt){var lt=65536,rt=ie.getTypeOf(tt),ut=!0;if(rt==="uint8array"?ut=Gt.applyCanBeUsed.uint8array:rt==="nodebuffer"&&(ut=Gt.applyCanBeUsed.nodebuffer),ut)for(;1<lt;)try{return Gt.stringifyByChunk(tt,rt,lt)}catch(dt){lt=Math.floor(lt/2)}return Gt.stringifyByChar(tt)}function wt(tt,lt){for(var rt=0;rt<tt.length;rt++)lt[rt]=tt[rt];return lt}ie.applyFromCharCode=qt;var et={};et.string={string:St,array:function(tt){return Wt(tt,new Array(tt.length))},arraybuffer:function(tt){return et.string.uint8array(tt).buffer},uint8array:function(tt){return Wt(tt,new Uint8Array(tt.length))},nodebuffer:function(tt){return Wt(tt,kt.allocBuffer(tt.length))}},et.array={string:qt,array:St,arraybuffer:function(tt){return new Uint8Array(tt).buffer},uint8array:function(tt){return new Uint8Array(tt)},nodebuffer:function(tt){return kt.newBufferFrom(tt)}},et.arraybuffer={string:function(tt){return qt(new Uint8Array(tt))},array:function(tt){return wt(new Uint8Array(tt),new Array(tt.byteLength))},arraybuffer:St,uint8array:function(tt){return new Uint8Array(tt)},nodebuffer:function(tt){return kt.newBufferFrom(new Uint8Array(tt))}},et.uint8array={string:qt,array:function(tt){return wt(tt,new Array(tt.length))},arraybuffer:function(tt){return tt.buffer},uint8array:St,nodebuffer:function(tt){return kt.newBufferFrom(tt)}},et.nodebuffer={string:qt,array:function(tt){return wt(tt,new Array(tt.length))},arraybuffer:function(tt){return et.nodebuffer.uint8array(tt).buffer},uint8array:function(tt){return wt(tt,new Uint8Array(tt.length))},nodebuffer:St},ie.transformTo=function(tt,lt){if(lt=lt||"",!tt)return lt;ie.checkSupport(tt);var rt=ie.getTypeOf(lt);return et[rt][tt](lt)},ie.resolve=function(tt){for(var lt=tt.split("/"),rt=[],ut=0;ut<lt.length;ut++){var dt=lt[ut];dt==="."||dt===""&&ut!==0&&ut!==lt.length-1||(dt===".."?rt.pop():rt.push(dt))}return rt.join("/")},ie.getTypeOf=function(tt){return typeof tt=="string"?"string":Object.prototype.toString.call(tt)==="[object Array]"?"array":ae.nodebuffer&&kt.isBuffer(tt)?"nodebuffer":ae.uint8array&&tt instanceof Uint8Array?"uint8array":ae.arraybuffer&&tt instanceof ArrayBuffer?"arraybuffer":void 0},ie.checkSupport=function(tt){if(!ae[tt.toLowerCase()])throw new Error(tt+" is not supported by this platform")},ie.MAX_VALUE_16BITS=65535,ie.MAX_VALUE_32BITS=-1,ie.pretty=function(tt){var lt,rt,ut="";for(rt=0;rt<(tt||"").length;rt++)ut+="\\x"+((lt=tt.charCodeAt(rt))<16?"0":"")+lt.toString(16).toUpperCase();return ut},ie.delay=function(tt,lt,rt){setImmediate(function(){tt.apply(rt||null,lt||[])})},ie.inherits=function(tt,lt){function rt(){}rt.prototype=lt.prototype,tt.prototype=new rt},ie.extend=function(){var tt,lt,rt={};for(tt=0;tt<arguments.length;tt++)for(lt in arguments[tt])Object.prototype.hasOwnProperty.call(arguments[tt],lt)&&rt[lt]===void 0&&(rt[lt]=arguments[tt][lt]);return rt},ie.prepareContent=function(tt,lt,rt,ut,dt){return Jt.Promise.resolve(lt).then(function(pt){return ae.blob&&(pt instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(pt))!==-1)&&typeof FileReader!="undefined"?new Jt.Promise(function(Ft,Tt){var _t=new FileReader;_t.onload=function(re){Ft(re.target.result)},_t.onerror=function(re){Tt(re.target.error)},_t.readAsArrayBuffer(pt)}):pt}).then(function(pt){var Ft=ie.getTypeOf(pt);return Ft?(Ft==="arraybuffer"?pt=ie.transformTo("uint8array",pt):Ft==="string"&&(dt?pt=Lt.decode(pt):rt&&ut!==!0&&(pt=function(Tt){return Wt(Tt,ae.uint8array?new Uint8Array(Tt.length):new Array(Tt.length))}(pt))),pt):Jt.Promise.reject(new Error("Can't read the data of '"+tt+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(se,Me,ie){"use strict";var ae=se("./reader/readerFor"),Lt=se("./utils"),kt=se("./signature"),Jt=se("./zipEntry"),St=se("./support");function Wt(Gt){this.files=[],this.loadOptions=Gt}Wt.prototype={checkSignature:function(Gt){if(!this.reader.readAndCheckSignature(Gt)){this.reader.index-=4;var qt=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+Lt.pretty(qt)+", expected "+Lt.pretty(Gt)+")")}},isSignature:function(Gt,qt){var wt=this.reader.index;this.reader.setIndex(Gt);var et=this.reader.readString(4)===qt;return this.reader.setIndex(wt),et},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var Gt=this.reader.readData(this.zipCommentLength),qt=St.uint8array?"uint8array":"array",wt=Lt.transformTo(qt,Gt);this.zipComment=this.loadOptions.decodeFileName(wt)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var Gt,qt,wt,et=this.zip64EndOfCentralSize-44;0<et;)Gt=this.reader.readInt(2),qt=this.reader.readInt(4),wt=this.reader.readData(qt),this.zip64ExtensibleData[Gt]={id:Gt,length:qt,value:wt}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var Gt,qt;for(Gt=0;Gt<this.files.length;Gt++)qt=this.files[Gt],this.reader.setIndex(qt.localHeaderOffset),this.checkSignature(kt.LOCAL_FILE_HEADER),qt.readLocalPart(this.reader),qt.handleUTF8(),qt.processAttributes()},readCentralDir:function(){var Gt;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(kt.CENTRAL_FILE_HEADER);)(Gt=new Jt({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(Gt);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var Gt=this.reader.lastIndexOfSignature(kt.CENTRAL_DIRECTORY_END);if(Gt<0)throw this.isSignature(0,kt.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(Gt);var qt=Gt;if(this.checkSignature(kt.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===Lt.MAX_VALUE_16BITS||this.diskWithCentralDirStart===Lt.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===Lt.MAX_VALUE_16BITS||this.centralDirRecords===Lt.MAX_VALUE_16BITS||this.centralDirSize===Lt.MAX_VALUE_32BITS||this.centralDirOffset===Lt.MAX_VALUE_32BITS){if(this.zip64=!0,(Gt=this.reader.lastIndexOfSignature(kt.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(Gt),this.checkSignature(kt.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,kt.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(kt.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(kt.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var wt=this.centralDirOffset+this.centralDirSize;this.zip64&&(wt+=20,wt+=12+this.zip64EndOfCentralSize);var et=qt-wt;if(0<et)this.isSignature(qt,kt.CENTRAL_FILE_HEADER)||(this.reader.zero=et);else if(et<0)throw new Error("Corrupted zip: missing "+Math.abs(et)+" bytes.")},prepareReader:function(Gt){this.reader=ae(Gt)},load:function(Gt){this.prepareReader(Gt),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},Me.exports=Wt},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(se,Me,ie){"use strict";var ae=se("./reader/readerFor"),Lt=se("./utils"),kt=se("./compressedObject"),Jt=se("./crc32"),St=se("./utf8"),Wt=se("./compressions"),Gt=se("./support");function qt(wt,et){this.options=wt,this.loadOptions=et}qt.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(wt){var et,tt;if(wt.skip(22),this.fileNameLength=wt.readInt(2),tt=wt.readInt(2),this.fileName=wt.readData(this.fileNameLength),wt.skip(tt),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((et=function(lt){for(var rt in Wt)if(Object.prototype.hasOwnProperty.call(Wt,rt)&&Wt[rt].magic===lt)return Wt[rt];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+Lt.pretty(this.compressionMethod)+" unknown (inner file : "+Lt.transformTo("string",this.fileName)+")");this.decompressed=new kt(this.compressedSize,this.uncompressedSize,this.crc32,et,wt.readData(this.compressedSize))},readCentralPart:function(wt){this.versionMadeBy=wt.readInt(2),wt.skip(2),this.bitFlag=wt.readInt(2),this.compressionMethod=wt.readString(2),this.date=wt.readDate(),this.crc32=wt.readInt(4),this.compressedSize=wt.readInt(4),this.uncompressedSize=wt.readInt(4);var et=wt.readInt(2);if(this.extraFieldsLength=wt.readInt(2),this.fileCommentLength=wt.readInt(2),this.diskNumberStart=wt.readInt(2),this.internalFileAttributes=wt.readInt(2),this.externalFileAttributes=wt.readInt(4),this.localHeaderOffset=wt.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");wt.skip(et),this.readExtraFields(wt),this.parseZIP64ExtraField(wt),this.fileComment=wt.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var wt=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),wt==0&&(this.dosPermissions=63&this.externalFileAttributes),wt==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var wt=ae(this.extraFields[1].value);this.uncompressedSize===Lt.MAX_VALUE_32BITS&&(this.uncompressedSize=wt.readInt(8)),this.compressedSize===Lt.MAX_VALUE_32BITS&&(this.compressedSize=wt.readInt(8)),this.localHeaderOffset===Lt.MAX_VALUE_32BITS&&(this.localHeaderOffset=wt.readInt(8)),this.diskNumberStart===Lt.MAX_VALUE_32BITS&&(this.diskNumberStart=wt.readInt(4))}},readExtraFields:function(wt){var et,tt,lt,rt=wt.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});wt.index+4<rt;)et=wt.readInt(2),tt=wt.readInt(2),lt=wt.readData(tt),this.extraFields[et]={id:et,length:tt,value:lt};wt.setIndex(rt)},handleUTF8:function(){var wt=Gt.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=St.utf8decode(this.fileName),this.fileCommentStr=St.utf8decode(this.fileComment);else{var et=this.findExtraFieldUnicodePath();if(et!==null)this.fileNameStr=et;else{var tt=Lt.transformTo(wt,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(tt)}var lt=this.findExtraFieldUnicodeComment();if(lt!==null)this.fileCommentStr=lt;else{var rt=Lt.transformTo(wt,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(rt)}}},findExtraFieldUnicodePath:function(){var wt=this.extraFields[28789];if(wt){var et=ae(wt.value);return et.readInt(1)!==1||Jt(this.fileName)!==et.readInt(4)?null:St.utf8decode(et.readData(wt.length-5))}return null},findExtraFieldUnicodeComment:function(){var wt=this.extraFields[25461];if(wt){var et=ae(wt.value);return et.readInt(1)!==1||Jt(this.fileComment)!==et.readInt(4)?null:St.utf8decode(et.readData(wt.length-5))}return null}},Me.exports=qt},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(se,Me,ie){"use strict";function ae(et,tt,lt){this.name=et,this.dir=lt.dir,this.date=lt.date,this.comment=lt.comment,this.unixPermissions=lt.unixPermissions,this.dosPermissions=lt.dosPermissions,this._data=tt,this._dataBinary=lt.binary,this.options={compression:lt.compression,compressionOptions:lt.compressionOptions}}var Lt=se("./stream/StreamHelper"),kt=se("./stream/DataWorker"),Jt=se("./utf8"),St=se("./compressedObject"),Wt=se("./stream/GenericWorker");ae.prototype={internalStream:function(et){var tt=null,lt="string";try{if(!et)throw new Error("No output type specified.");var rt=(lt=et.toLowerCase())==="string"||lt==="text";lt!=="binarystring"&<!=="text"||(lt="string"),tt=this._decompressWorker();var ut=!this._dataBinary;ut&&!rt&&(tt=tt.pipe(new Jt.Utf8EncodeWorker)),!ut&&rt&&(tt=tt.pipe(new Jt.Utf8DecodeWorker))}catch(dt){(tt=new Wt("error")).error(dt)}return new Lt(tt,lt,"")},async:function(et,tt){return this.internalStream(et).accumulate(tt)},nodeStream:function(et,tt){return this.internalStream(et||"nodebuffer").toNodejsStream(tt)},_compressWorker:function(et,tt){if(this._data instanceof St&&this._data.compression.magic===et.magic)return this._data.getCompressedWorker();var lt=this._decompressWorker();return this._dataBinary||(lt=lt.pipe(new Jt.Utf8EncodeWorker)),St.createWorkerFrom(lt,et,tt)},_decompressWorker:function(){return this._data instanceof St?this._data.getContentWorker():this._data instanceof Wt?this._data:new kt(this._data)}};for(var Gt=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],qt=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},wt=0;wt<Gt.length;wt++)ae.prototype[Gt[wt]]=qt;Me.exports=ae},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(se,Me,ie){(function(ae){"use strict";var Lt,kt,Jt=ae.MutationObserver||ae.WebKitMutationObserver;if(Jt){var St=0,Wt=new Jt(et),Gt=ae.document.createTextNode("");Wt.observe(Gt,{characterData:!0}),Lt=function(){Gt.data=St=++St%2}}else if(ae.setImmediate||ae.MessageChannel===void 0)Lt="document"in ae&&"onreadystatechange"in ae.document.createElement("script")?function(){var tt=ae.document.createElement("script");tt.onreadystatechange=function(){et(),tt.onreadystatechange=null,tt.parentNode.removeChild(tt),tt=null},ae.document.documentElement.appendChild(tt)}:function(){setTimeout(et,0)};else{var qt=new ae.MessageChannel;qt.port1.onmessage=et,Lt=function(){qt.port2.postMessage(0)}}var wt=[];function et(){var tt,lt;kt=!0;for(var rt=wt.length;rt;){for(lt=wt,wt=[],tt=-1;++tt<rt;)lt[tt]();rt=wt.length}kt=!1}Me.exports=function(tt){wt.push(tt)!==1||kt||Lt()}}).call(this,typeof Bt.g!="undefined"?Bt.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(se,Me,ie){"use strict";var ae=se("immediate");function Lt(){}var kt={},Jt=["REJECTED"],St=["FULFILLED"],Wt=["PENDING"];function Gt(rt){if(typeof rt!="function")throw new TypeError("resolver must be a function");this.state=Wt,this.queue=[],this.outcome=void 0,rt!==Lt&&tt(this,rt)}function qt(rt,ut,dt){this.promise=rt,typeof ut=="function"&&(this.onFulfilled=ut,this.callFulfilled=this.otherCallFulfilled),typeof dt=="function"&&(this.onRejected=dt,this.callRejected=this.otherCallRejected)}function wt(rt,ut,dt){ae(function(){var pt;try{pt=ut(dt)}catch(Ft){return kt.reject(rt,Ft)}pt===rt?kt.reject(rt,new TypeError("Cannot resolve promise with itself")):kt.resolve(rt,pt)})}function et(rt){var ut=rt&&rt.then;if(rt&&(typeof rt=="object"||typeof rt=="function")&&typeof ut=="function")return function(){ut.apply(rt,arguments)}}function tt(rt,ut){var dt=!1;function pt(_t){dt||(dt=!0,kt.reject(rt,_t))}function Ft(_t){dt||(dt=!0,kt.resolve(rt,_t))}var Tt=lt(function(){ut(Ft,pt)});Tt.status==="error"&&pt(Tt.value)}function lt(rt,ut){var dt={};try{dt.value=rt(ut),dt.status="success"}catch(pt){dt.status="error",dt.value=pt}return dt}(Me.exports=Gt).prototype.finally=function(rt){if(typeof rt!="function")return this;var ut=this.constructor;return this.then(function(dt){return ut.resolve(rt()).then(function(){return dt})},function(dt){return ut.resolve(rt()).then(function(){throw dt})})},Gt.prototype.catch=function(rt){return this.then(null,rt)},Gt.prototype.then=function(rt,ut){if(typeof rt!="function"&&this.state===St||typeof ut!="function"&&this.state===Jt)return this;var dt=new this.constructor(Lt);return this.state!==Wt?wt(dt,this.state===St?rt:ut,this.outcome):this.queue.push(new qt(dt,rt,ut)),dt},qt.prototype.callFulfilled=function(rt){kt.resolve(this.promise,rt)},qt.prototype.otherCallFulfilled=function(rt){wt(this.promise,this.onFulfilled,rt)},qt.prototype.callRejected=function(rt){kt.reject(this.promise,rt)},qt.prototype.otherCallRejected=function(rt){wt(this.promise,this.onRejected,rt)},kt.resolve=function(rt,ut){var dt=lt(et,ut);if(dt.status==="error")return kt.reject(rt,dt.value);var pt=dt.value;if(pt)tt(rt,pt);else{rt.state=St,rt.outcome=ut;for(var Ft=-1,Tt=rt.queue.length;++Ft<Tt;)rt.queue[Ft].callFulfilled(ut)}return rt},kt.reject=function(rt,ut){rt.state=Jt,rt.outcome=ut;for(var dt=-1,pt=rt.queue.length;++dt<pt;)rt.queue[dt].callRejected(ut);return rt},Gt.resolve=function(rt){return rt instanceof this?rt:kt.resolve(new this(Lt),rt)},Gt.reject=function(rt){var ut=new this(Lt);return kt.reject(ut,rt)},Gt.all=function(rt){var ut=this;if(Object.prototype.toString.call(rt)!=="[object Array]")return this.reject(new TypeError("must be an array"));var dt=rt.length,pt=!1;if(!dt)return this.resolve([]);for(var Ft=new Array(dt),Tt=0,_t=-1,re=new this(Lt);++_t<dt;)he(rt[_t],_t);return re;function he(Ae,Fe){ut.resolve(Ae).then(function(ee){Ft[Fe]=ee,++Tt!==dt||pt||(pt=!0,kt.resolve(re,Ft))},function(ee){pt||(pt=!0,kt.reject(re,ee))})}},Gt.race=function(rt){var ut=this;if(Object.prototype.toString.call(rt)!=="[object Array]")return this.reject(new TypeError("must be an array"));var dt=rt.length,pt=!1;if(!dt)return this.resolve([]);for(var Ft=-1,Tt=new this(Lt);++Ft<dt;)_t=rt[Ft],ut.resolve(_t).then(function(re){pt||(pt=!0,kt.resolve(Tt,re))},function(re){pt||(pt=!0,kt.reject(Tt,re))});var _t;return Tt}},{immediate:36}],38:[function(se,Me,ie){"use strict";var ae={};(0,se("./lib/utils/common").assign)(ae,se("./lib/deflate"),se("./lib/inflate"),se("./lib/zlib/constants")),Me.exports=ae},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(se,Me,ie){"use strict";var ae=se("./zlib/deflate"),Lt=se("./utils/common"),kt=se("./utils/strings"),Jt=se("./zlib/messages"),St=se("./zlib/zstream"),Wt=Object.prototype.toString,Gt=0,qt=-1,wt=0,et=8;function tt(rt){if(!(this instanceof tt))return new tt(rt);this.options=Lt.assign({level:qt,method:et,chunkSize:16384,windowBits:15,memLevel:8,strategy:wt,to:""},rt||{});var ut=this.options;ut.raw&&0<ut.windowBits?ut.windowBits=-ut.windowBits:ut.gzip&&0<ut.windowBits&&ut.windowBits<16&&(ut.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new St,this.strm.avail_out=0;var dt=ae.deflateInit2(this.strm,ut.level,ut.method,ut.windowBits,ut.memLevel,ut.strategy);if(dt!==Gt)throw new Error(Jt[dt]);if(ut.header&&ae.deflateSetHeader(this.strm,ut.header),ut.dictionary){var pt;if(pt=typeof ut.dictionary=="string"?kt.string2buf(ut.dictionary):Wt.call(ut.dictionary)==="[object ArrayBuffer]"?new Uint8Array(ut.dictionary):ut.dictionary,(dt=ae.deflateSetDictionary(this.strm,pt))!==Gt)throw new Error(Jt[dt]);this._dict_set=!0}}function lt(rt,ut){var dt=new tt(ut);if(dt.push(rt,!0),dt.err)throw dt.msg||Jt[dt.err];return dt.result}tt.prototype.push=function(rt,ut){var dt,pt,Ft=this.strm,Tt=this.options.chunkSize;if(this.ended)return!1;pt=ut===~~ut?ut:ut===!0?4:0,typeof rt=="string"?Ft.input=kt.string2buf(rt):Wt.call(rt)==="[object ArrayBuffer]"?Ft.input=new Uint8Array(rt):Ft.input=rt,Ft.next_in=0,Ft.avail_in=Ft.input.length;do{if(Ft.avail_out===0&&(Ft.output=new Lt.Buf8(Tt),Ft.next_out=0,Ft.avail_out=Tt),(dt=ae.deflate(Ft,pt))!==1&&dt!==Gt)return this.onEnd(dt),!(this.ended=!0);Ft.avail_out!==0&&(Ft.avail_in!==0||pt!==4&&pt!==2)||(this.options.to==="string"?this.onData(kt.buf2binstring(Lt.shrinkBuf(Ft.output,Ft.next_out))):this.onData(Lt.shrinkBuf(Ft.output,Ft.next_out)))}while((0<Ft.avail_in||Ft.avail_out===0)&&dt!==1);return pt===4?(dt=ae.deflateEnd(this.strm),this.onEnd(dt),this.ended=!0,dt===Gt):pt!==2||(this.onEnd(Gt),!(Ft.avail_out=0))},tt.prototype.onData=function(rt){this.chunks.push(rt)},tt.prototype.onEnd=function(rt){rt===Gt&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Lt.flattenChunks(this.chunks)),this.chunks=[],this.err=rt,this.msg=this.strm.msg},ie.Deflate=tt,ie.deflate=lt,ie.deflateRaw=function(rt,ut){return(ut=ut||{}).raw=!0,lt(rt,ut)},ie.gzip=function(rt,ut){return(ut=ut||{}).gzip=!0,lt(rt,ut)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(se,Me,ie){"use strict";var ae=se("./zlib/inflate"),Lt=se("./utils/common"),kt=se("./utils/strings"),Jt=se("./zlib/constants"),St=se("./zlib/messages"),Wt=se("./zlib/zstream"),Gt=se("./zlib/gzheader"),qt=Object.prototype.toString;function wt(tt){if(!(this instanceof wt))return new wt(tt);this.options=Lt.assign({chunkSize:16384,windowBits:0,to:""},tt||{});var lt=this.options;lt.raw&&0<=lt.windowBits&<.windowBits<16&&(lt.windowBits=-lt.windowBits,lt.windowBits===0&&(lt.windowBits=-15)),!(0<=lt.windowBits&<.windowBits<16)||tt&&tt.windowBits||(lt.windowBits+=32),15<lt.windowBits&<.windowBits<48&&!(15<.windowBits)&&(lt.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Wt,this.strm.avail_out=0;var rt=ae.inflateInit2(this.strm,lt.windowBits);if(rt!==Jt.Z_OK)throw new Error(St[rt]);this.header=new Gt,ae.inflateGetHeader(this.strm,this.header)}function et(tt,lt){var rt=new wt(lt);if(rt.push(tt,!0),rt.err)throw rt.msg||St[rt.err];return rt.result}wt.prototype.push=function(tt,lt){var rt,ut,dt,pt,Ft,Tt,_t=this.strm,re=this.options.chunkSize,he=this.options.dictionary,Ae=!1;if(this.ended)return!1;ut=lt===~~lt?lt:lt===!0?Jt.Z_FINISH:Jt.Z_NO_FLUSH,typeof tt=="string"?_t.input=kt.binstring2buf(tt):qt.call(tt)==="[object ArrayBuffer]"?_t.input=new Uint8Array(tt):_t.input=tt,_t.next_in=0,_t.avail_in=_t.input.length;do{if(_t.avail_out===0&&(_t.output=new Lt.Buf8(re),_t.next_out=0,_t.avail_out=re),(rt=ae.inflate(_t,Jt.Z_NO_FLUSH))===Jt.Z_NEED_DICT&&he&&(Tt=typeof he=="string"?kt.string2buf(he):qt.call(he)==="[object ArrayBuffer]"?new Uint8Array(he):he,rt=ae.inflateSetDictionary(this.strm,Tt)),rt===Jt.Z_BUF_ERROR&&Ae===!0&&(rt=Jt.Z_OK,Ae=!1),rt!==Jt.Z_STREAM_END&&rt!==Jt.Z_OK)return this.onEnd(rt),!(this.ended=!0);_t.next_out&&(_t.avail_out!==0&&rt!==Jt.Z_STREAM_END&&(_t.avail_in!==0||ut!==Jt.Z_FINISH&&ut!==Jt.Z_SYNC_FLUSH)||(this.options.to==="string"?(dt=kt.utf8border(_t.output,_t.next_out),pt=_t.next_out-dt,Ft=kt.buf2string(_t.output,dt),_t.next_out=pt,_t.avail_out=re-pt,pt&&Lt.arraySet(_t.output,_t.output,dt,pt,0),this.onData(Ft)):this.onData(Lt.shrinkBuf(_t.output,_t.next_out)))),_t.avail_in===0&&_t.avail_out===0&&(Ae=!0)}while((0<_t.avail_in||_t.avail_out===0)&&rt!==Jt.Z_STREAM_END);return rt===Jt.Z_STREAM_END&&(ut=Jt.Z_FINISH),ut===Jt.Z_FINISH?(rt=ae.inflateEnd(this.strm),this.onEnd(rt),this.ended=!0,rt===Jt.Z_OK):ut!==Jt.Z_SYNC_FLUSH||(this.onEnd(Jt.Z_OK),!(_t.avail_out=0))},wt.prototype.onData=function(tt){this.chunks.push(tt)},wt.prototype.onEnd=function(tt){tt===Jt.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Lt.flattenChunks(this.chunks)),this.chunks=[],this.err=tt,this.msg=this.strm.msg},ie.Inflate=wt,ie.inflate=et,ie.inflateRaw=function(tt,lt){return(lt=lt||{}).raw=!0,et(tt,lt)},ie.ungzip=et},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(se,Me,ie){"use strict";var ae=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";ie.assign=function(Jt){for(var St=Array.prototype.slice.call(arguments,1);St.length;){var Wt=St.shift();if(Wt){if(typeof Wt!="object")throw new TypeError(Wt+"must be non-object");for(var Gt in Wt)Wt.hasOwnProperty(Gt)&&(Jt[Gt]=Wt[Gt])}}return Jt},ie.shrinkBuf=function(Jt,St){return Jt.length===St?Jt:Jt.subarray?Jt.subarray(0,St):(Jt.length=St,Jt)};var Lt={arraySet:function(Jt,St,Wt,Gt,qt){if(St.subarray&&Jt.subarray)Jt.set(St.subarray(Wt,Wt+Gt),qt);else for(var wt=0;wt<Gt;wt++)Jt[qt+wt]=St[Wt+wt]},flattenChunks:function(Jt){var St,Wt,Gt,qt,wt,et;for(St=Gt=0,Wt=Jt.length;St<Wt;St++)Gt+=Jt[St].length;for(et=new Uint8Array(Gt),St=qt=0,Wt=Jt.length;St<Wt;St++)wt=Jt[St],et.set(wt,qt),qt+=wt.length;return et}},kt={arraySet:function(Jt,St,Wt,Gt,qt){for(var wt=0;wt<Gt;wt++)Jt[qt+wt]=St[Wt+wt]},flattenChunks:function(Jt){return[].concat.apply([],Jt)}};ie.setTyped=function(Jt){Jt?(ie.Buf8=Uint8Array,ie.Buf16=Uint16Array,ie.Buf32=Int32Array,ie.assign(ie,Lt)):(ie.Buf8=Array,ie.Buf16=Array,ie.Buf32=Array,ie.assign(ie,kt))},ie.setTyped(ae)},{}],42:[function(se,Me,ie){"use strict";var ae=se("./common"),Lt=!0,kt=!0;try{String.fromCharCode.apply(null,[0])}catch(Gt){Lt=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(Gt){kt=!1}for(var Jt=new ae.Buf8(256),St=0;St<256;St++)Jt[St]=252<=St?6:248<=St?5:240<=St?4:224<=St?3:192<=St?2:1;function Wt(Gt,qt){if(qt<65537&&(Gt.subarray&&kt||!Gt.subarray&&Lt))return String.fromCharCode.apply(null,ae.shrinkBuf(Gt,qt));for(var wt="",et=0;et<qt;et++)wt+=String.fromCharCode(Gt[et]);return wt}Jt[254]=Jt[254]=1,ie.string2buf=function(Gt){var qt,wt,et,tt,lt,rt=Gt.length,ut=0;for(tt=0;tt<rt;tt++)(64512&(wt=Gt.charCodeAt(tt)))==55296&&tt+1<rt&&(64512&(et=Gt.charCodeAt(tt+1)))==56320&&(wt=65536+(wt-55296<<10)+(et-56320),tt++),ut+=wt<128?1:wt<2048?2:wt<65536?3:4;for(qt=new ae.Buf8(ut),tt=lt=0;lt<ut;tt++)(64512&(wt=Gt.charCodeAt(tt)))==55296&&tt+1<rt&&(64512&(et=Gt.charCodeAt(tt+1)))==56320&&(wt=65536+(wt-55296<<10)+(et-56320),tt++),wt<128?qt[lt++]=wt:(wt<2048?qt[lt++]=192|wt>>>6:(wt<65536?qt[lt++]=224|wt>>>12:(qt[lt++]=240|wt>>>18,qt[lt++]=128|wt>>>12&63),qt[lt++]=128|wt>>>6&63),qt[lt++]=128|63&wt);return qt},ie.buf2binstring=function(Gt){return Wt(Gt,Gt.length)},ie.binstring2buf=function(Gt){for(var qt=new ae.Buf8(Gt.length),wt=0,et=qt.length;wt<et;wt++)qt[wt]=Gt.charCodeAt(wt);return qt},ie.buf2string=function(Gt,qt){var wt,et,tt,lt,rt=qt||Gt.length,ut=new Array(2*rt);for(wt=et=0;wt<rt;)if((tt=Gt[wt++])<128)ut[et++]=tt;else if(4<(lt=Jt[tt]))ut[et++]=65533,wt+=lt-1;else{for(tt&=lt===2?31:lt===3?15:7;1<lt&&wt<rt;)tt=tt<<6|63&Gt[wt++],lt--;1<lt?ut[et++]=65533:tt<65536?ut[et++]=tt:(tt-=65536,ut[et++]=55296|tt>>10&1023,ut[et++]=56320|1023&tt)}return Wt(ut,et)},ie.utf8border=function(Gt,qt){var wt;for((qt=qt||Gt.length)>Gt.length&&(qt=Gt.length),wt=qt-1;0<=wt&&(192&Gt[wt])==128;)wt--;return wt<0||wt===0?qt:wt+Jt[Gt[wt]]>qt?wt:qt}},{"./common":41}],43:[function(se,Me,ie){"use strict";Me.exports=function(ae,Lt,kt,Jt){for(var St=65535&ae|0,Wt=ae>>>16&65535|0,Gt=0;kt!==0;){for(kt-=Gt=2e3<kt?2e3:kt;Wt=Wt+(St=St+Lt[Jt++]|0)|0,--Gt;);St%=65521,Wt%=65521}return St|Wt<<16|0}},{}],44:[function(se,Me,ie){"use strict";Me.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(se,Me,ie){"use strict";var ae=function(){for(var Lt,kt=[],Jt=0;Jt<256;Jt++){Lt=Jt;for(var St=0;St<8;St++)Lt=1&Lt?3988292384^Lt>>>1:Lt>>>1;kt[Jt]=Lt}return kt}();Me.exports=function(Lt,kt,Jt,St){var Wt=ae,Gt=St+Jt;Lt^=-1;for(var qt=St;qt<Gt;qt++)Lt=Lt>>>8^Wt[255&(Lt^kt[qt])];return-1^Lt}},{}],46:[function(se,Me,ie){"use strict";var ae,Lt=se("../utils/common"),kt=se("./trees"),Jt=se("./adler32"),St=se("./crc32"),Wt=se("./messages"),Gt=0,qt=4,wt=0,et=-2,tt=-1,lt=4,rt=2,ut=8,dt=9,pt=286,Ft=30,Tt=19,_t=2*pt+1,re=15,he=3,Ae=258,Fe=Ae+he+1,ee=42,We=113,Yt=1,qe=2,Ge=3,Oe=4;function Ze(ue,Pn){return ue.msg=Wt[Pn],Pn}function Qe(ue){return(ue<<1)-(4<ue?9:0)}function we(ue){for(var Pn=ue.length;0<=--Pn;)ue[Pn]=0}function oe(ue){var Pn=ue.state,de=Pn.pending;de>ue.avail_out&&(de=ue.avail_out),de!==0&&(Lt.arraySet(ue.output,Pn.pending_buf,Pn.pending_out,de,ue.next_out),ue.next_out+=de,Pn.pending_out+=de,ue.total_out+=de,ue.avail_out-=de,Pn.pending-=de,Pn.pending===0&&(Pn.pending_out=0))}function Pe(ue,Pn){kt._tr_flush_block(ue,0<=ue.block_start?ue.block_start:-1,ue.strstart-ue.block_start,Pn),ue.block_start=ue.strstart,oe(ue.strm)}function En(ue,Pn){ue.pending_buf[ue.pending++]=Pn}function Nn(ue,Pn){ue.pending_buf[ue.pending++]=Pn>>>8&255,ue.pending_buf[ue.pending++]=255&Pn}function Xe(ue,Pn){var de,Dt,Mt=ue.max_chain_length,zt=ue.strstart,be=ue.prev_length,De=ue.nice_match,fe=ue.strstart>ue.w_size-Fe?ue.strstart-(ue.w_size-Fe):0,Ce=ue.window,te=ue.w_mask,Ct=ue.prev,yt=ue.strstart+Ae,$t=Ce[zt+be-1],xe=Ce[zt+be];ue.prev_length>=ue.good_match&&(Mt>>=2),De>ue.lookahead&&(De=ue.lookahead);do if(Ce[(de=Pn)+be]===xe&&Ce[de+be-1]===$t&&Ce[de]===Ce[zt]&&Ce[++de]===Ce[zt+1]){zt+=2,de++;do;while(Ce[++zt]===Ce[++de]&&Ce[++zt]===Ce[++de]&&Ce[++zt]===Ce[++de]&&Ce[++zt]===Ce[++de]&&Ce[++zt]===Ce[++de]&&Ce[++zt]===Ce[++de]&&Ce[++zt]===Ce[++de]&&Ce[++zt]===Ce[++de]&&zt<yt);if(Dt=Ae-(yt-zt),zt=yt-Ae,be<Dt){if(ue.match_start=Pn,De<=(be=Dt))break;$t=Ce[zt+be-1],xe=Ce[zt+be]}}while((Pn=Ct[Pn&te])>fe&&--Mt!=0);return be<=ue.lookahead?be:ue.lookahead}function kn(ue){var Pn,de,Dt,Mt,zt,be,De,fe,Ce,te,Ct=ue.w_size;do{if(Mt=ue.window_size-ue.lookahead-ue.strstart,ue.strstart>=Ct+(Ct-Fe)){for(Lt.arraySet(ue.window,ue.window,Ct,Ct,0),ue.match_start-=Ct,ue.strstart-=Ct,ue.block_start-=Ct,Pn=de=ue.hash_size;Dt=ue.head[--Pn],ue.head[Pn]=Ct<=Dt?Dt-Ct:0,--de;);for(Pn=de=Ct;Dt=ue.prev[--Pn],ue.prev[Pn]=Ct<=Dt?Dt-Ct:0,--de;);Mt+=Ct}if(ue.strm.avail_in===0)break;if(be=ue.strm,De=ue.window,fe=ue.strstart+ue.lookahead,Ce=Mt,te=void 0,te=be.avail_in,Ce<te&&(te=Ce),de=te===0?0:(be.avail_in-=te,Lt.arraySet(De,be.input,be.next_in,te,fe),be.state.wrap===1?be.adler=Jt(be.adler,De,te,fe):be.state.wrap===2&&(be.adler=St(be.adler,De,te,fe)),be.next_in+=te,be.total_in+=te,te),ue.lookahead+=de,ue.lookahead+ue.insert>=he)for(zt=ue.strstart-ue.insert,ue.ins_h=ue.window[zt],ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[zt+1])&ue.hash_mask;ue.insert&&(ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[zt+he-1])&ue.hash_mask,ue.prev[zt&ue.w_mask]=ue.head[ue.ins_h],ue.head[ue.ins_h]=zt,zt++,ue.insert--,!(ue.lookahead+ue.insert<he)););}while(ue.lookahead<Fe&&ue.strm.avail_in!==0)}function Vn(ue,Pn){for(var de,Dt;;){if(ue.lookahead<Fe){if(kn(ue),ue.lookahead<Fe&&Pn===Gt)return Yt;if(ue.lookahead===0)break}if(de=0,ue.lookahead>=he&&(ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[ue.strstart+he-1])&ue.hash_mask,de=ue.prev[ue.strstart&ue.w_mask]=ue.head[ue.ins_h],ue.head[ue.ins_h]=ue.strstart),de!==0&&ue.strstart-de<=ue.w_size-Fe&&(ue.match_length=Xe(ue,de)),ue.match_length>=he)if(Dt=kt._tr_tally(ue,ue.strstart-ue.match_start,ue.match_length-he),ue.lookahead-=ue.match_length,ue.match_length<=ue.max_lazy_match&&ue.lookahead>=he){for(ue.match_length--;ue.strstart++,ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[ue.strstart+he-1])&ue.hash_mask,de=ue.prev[ue.strstart&ue.w_mask]=ue.head[ue.ins_h],ue.head[ue.ins_h]=ue.strstart,--ue.match_length!=0;);ue.strstart++}else ue.strstart+=ue.match_length,ue.match_length=0,ue.ins_h=ue.window[ue.strstart],ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[ue.strstart+1])&ue.hash_mask;else Dt=kt._tr_tally(ue,0,ue.window[ue.strstart]),ue.lookahead--,ue.strstart++;if(Dt&&(Pe(ue,!1),ue.strm.avail_out===0))return Yt}return ue.insert=ue.strstart<he-1?ue.strstart:he-1,Pn===qt?(Pe(ue,!0),ue.strm.avail_out===0?Ge:Oe):ue.last_lit&&(Pe(ue,!1),ue.strm.avail_out===0)?Yt:qe}function Ai(ue,Pn){for(var de,Dt,Mt;;){if(ue.lookahead<Fe){if(kn(ue),ue.lookahead<Fe&&Pn===Gt)return Yt;if(ue.lookahead===0)break}if(de=0,ue.lookahead>=he&&(ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[ue.strstart+he-1])&ue.hash_mask,de=ue.prev[ue.strstart&ue.w_mask]=ue.head[ue.ins_h],ue.head[ue.ins_h]=ue.strstart),ue.prev_length=ue.match_length,ue.prev_match=ue.match_start,ue.match_length=he-1,de!==0&&ue.prev_length<ue.max_lazy_match&&ue.strstart-de<=ue.w_size-Fe&&(ue.match_length=Xe(ue,de),ue.match_length<=5&&(ue.strategy===1||ue.match_length===he&&4096<ue.strstart-ue.match_start)&&(ue.match_length=he-1)),ue.prev_length>=he&&ue.match_length<=ue.prev_length){for(Mt=ue.strstart+ue.lookahead-he,Dt=kt._tr_tally(ue,ue.strstart-1-ue.prev_match,ue.prev_length-he),ue.lookahead-=ue.prev_length-1,ue.prev_length-=2;++ue.strstart<=Mt&&(ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[ue.strstart+he-1])&ue.hash_mask,de=ue.prev[ue.strstart&ue.w_mask]=ue.head[ue.ins_h],ue.head[ue.ins_h]=ue.strstart),--ue.prev_length!=0;);if(ue.match_available=0,ue.match_length=he-1,ue.strstart++,Dt&&(Pe(ue,!1),ue.strm.avail_out===0))return Yt}else if(ue.match_available){if((Dt=kt._tr_tally(ue,0,ue.window[ue.strstart-1]))&&Pe(ue,!1),ue.strstart++,ue.lookahead--,ue.strm.avail_out===0)return Yt}else ue.match_available=1,ue.strstart++,ue.lookahead--}return ue.match_available&&(Dt=kt._tr_tally(ue,0,ue.window[ue.strstart-1]),ue.match_available=0),ue.insert=ue.strstart<he-1?ue.strstart:he-1,Pn===qt?(Pe(ue,!0),ue.strm.avail_out===0?Ge:Oe):ue.last_lit&&(Pe(ue,!1),ue.strm.avail_out===0)?Yt:qe}function Wn(ue,Pn,de,Dt,Mt){this.good_length=ue,this.max_lazy=Pn,this.nice_length=de,this.max_chain=Dt,this.func=Mt}function Si(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ut,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Lt.Buf16(2*_t),this.dyn_dtree=new Lt.Buf16(2*(2*Ft+1)),this.bl_tree=new Lt.Buf16(2*(2*Tt+1)),we(this.dyn_ltree),we(this.dyn_dtree),we(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Lt.Buf16(re+1),this.heap=new Lt.Buf16(2*pt+1),we(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Lt.Buf16(2*pt+1),we(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function an(ue){var Pn;return ue&&ue.state?(ue.total_in=ue.total_out=0,ue.data_type=rt,(Pn=ue.state).pending=0,Pn.pending_out=0,Pn.wrap<0&&(Pn.wrap=-Pn.wrap),Pn.status=Pn.wrap?ee:We,ue.adler=Pn.wrap===2?0:1,Pn.last_flush=Gt,kt._tr_init(Pn),wt):Ze(ue,et)}function Li(ue){var Pn=an(ue);return Pn===wt&&function(de){de.window_size=2*de.w_size,we(de.head),de.max_lazy_match=ae[de.level].max_lazy,de.good_match=ae[de.level].good_length,de.nice_match=ae[de.level].nice_length,de.max_chain_length=ae[de.level].max_chain,de.strstart=0,de.block_start=0,de.lookahead=0,de.insert=0,de.match_length=de.prev_length=he-1,de.match_available=0,de.ins_h=0}(ue.state),Pn}function Oi(ue,Pn,de,Dt,Mt,zt){if(!ue)return et;var be=1;if(Pn===tt&&(Pn=6),Dt<0?(be=0,Dt=-Dt):15<Dt&&(be=2,Dt-=16),Mt<1||dt<Mt||de!==ut||Dt<8||15<Dt||Pn<0||9<Pn||zt<0||lt<zt)return Ze(ue,et);Dt===8&&(Dt=9);var De=new Si;return(ue.state=De).strm=ue,De.wrap=be,De.gzhead=null,De.w_bits=Dt,De.w_size=1<<De.w_bits,De.w_mask=De.w_size-1,De.hash_bits=Mt+7,De.hash_size=1<<De.hash_bits,De.hash_mask=De.hash_size-1,De.hash_shift=~~((De.hash_bits+he-1)/he),De.window=new Lt.Buf8(2*De.w_size),De.head=new Lt.Buf16(De.hash_size),De.prev=new Lt.Buf16(De.w_size),De.lit_bufsize=1<<Mt+6,De.pending_buf_size=4*De.lit_bufsize,De.pending_buf=new Lt.Buf8(De.pending_buf_size),De.d_buf=1*De.lit_bufsize,De.l_buf=3*De.lit_bufsize,De.level=Pn,De.strategy=zt,De.method=de,Li(ue)}ae=[new Wn(0,0,0,0,function(ue,Pn){var de=65535;for(de>ue.pending_buf_size-5&&(de=ue.pending_buf_size-5);;){if(ue.lookahead<=1){if(kn(ue),ue.lookahead===0&&Pn===Gt)return Yt;if(ue.lookahead===0)break}ue.strstart+=ue.lookahead,ue.lookahead=0;var Dt=ue.block_start+de;if((ue.strstart===0||ue.strstart>=Dt)&&(ue.lookahead=ue.strstart-Dt,ue.strstart=Dt,Pe(ue,!1),ue.strm.avail_out===0)||ue.strstart-ue.block_start>=ue.w_size-Fe&&(Pe(ue,!1),ue.strm.avail_out===0))return Yt}return ue.insert=0,Pn===qt?(Pe(ue,!0),ue.strm.avail_out===0?Ge:Oe):(ue.strstart>ue.block_start&&(Pe(ue,!1),ue.strm.avail_out),Yt)}),new Wn(4,4,8,4,Vn),new Wn(4,5,16,8,Vn),new Wn(4,6,32,32,Vn),new Wn(4,4,16,16,Ai),new Wn(8,16,32,32,Ai),new Wn(8,16,128,128,Ai),new Wn(8,32,128,256,Ai),new Wn(32,128,258,1024,Ai),new Wn(32,258,258,4096,Ai)],ie.deflateInit=function(ue,Pn){return Oi(ue,Pn,ut,15,8,0)},ie.deflateInit2=Oi,ie.deflateReset=Li,ie.deflateResetKeep=an,ie.deflateSetHeader=function(ue,Pn){return ue&&ue.state?ue.state.wrap!==2?et:(ue.state.gzhead=Pn,wt):et},ie.deflate=function(ue,Pn){var de,Dt,Mt,zt;if(!ue||!ue.state||5<Pn||Pn<0)return ue?Ze(ue,et):et;if(Dt=ue.state,!ue.output||!ue.input&&ue.avail_in!==0||Dt.status===666&&Pn!==qt)return Ze(ue,ue.avail_out===0?-5:et);if(Dt.strm=ue,de=Dt.last_flush,Dt.last_flush=Pn,Dt.status===ee)if(Dt.wrap===2)ue.adler=0,En(Dt,31),En(Dt,139),En(Dt,8),Dt.gzhead?(En(Dt,(Dt.gzhead.text?1:0)+(Dt.gzhead.hcrc?2:0)+(Dt.gzhead.extra?4:0)+(Dt.gzhead.name?8:0)+(Dt.gzhead.comment?16:0)),En(Dt,255&Dt.gzhead.time),En(Dt,Dt.gzhead.time>>8&255),En(Dt,Dt.gzhead.time>>16&255),En(Dt,Dt.gzhead.time>>24&255),En(Dt,Dt.level===9?2:2<=Dt.strategy||Dt.level<2?4:0),En(Dt,255&Dt.gzhead.os),Dt.gzhead.extra&&Dt.gzhead.extra.length&&(En(Dt,255&Dt.gzhead.extra.length),En(Dt,Dt.gzhead.extra.length>>8&255)),Dt.gzhead.hcrc&&(ue.adler=St(ue.adler,Dt.pending_buf,Dt.pending,0)),Dt.gzindex=0,Dt.status=69):(En(Dt,0),En(Dt,0),En(Dt,0),En(Dt,0),En(Dt,0),En(Dt,Dt.level===9?2:2<=Dt.strategy||Dt.level<2?4:0),En(Dt,3),Dt.status=We);else{var be=ut+(Dt.w_bits-8<<4)<<8;be|=(2<=Dt.strategy||Dt.level<2?0:Dt.level<6?1:Dt.level===6?2:3)<<6,Dt.strstart!==0&&(be|=32),be+=31-be%31,Dt.status=We,Nn(Dt,be),Dt.strstart!==0&&(Nn(Dt,ue.adler>>>16),Nn(Dt,65535&ue.adler)),ue.adler=1}if(Dt.status===69)if(Dt.gzhead.extra){for(Mt=Dt.pending;Dt.gzindex<(65535&Dt.gzhead.extra.length)&&(Dt.pending!==Dt.pending_buf_size||(Dt.gzhead.hcrc&&Dt.pending>Mt&&(ue.adler=St(ue.adler,Dt.pending_buf,Dt.pending-Mt,Mt)),oe(ue),Mt=Dt.pending,Dt.pending!==Dt.pending_buf_size));)En(Dt,255&Dt.gzhead.extra[Dt.gzindex]),Dt.gzindex++;Dt.gzhead.hcrc&&Dt.pending>Mt&&(ue.adler=St(ue.adler,Dt.pending_buf,Dt.pending-Mt,Mt)),Dt.gzindex===Dt.gzhead.extra.length&&(Dt.gzindex=0,Dt.status=73)}else Dt.status=73;if(Dt.status===73)if(Dt.gzhead.name){Mt=Dt.pending;do{if(Dt.pending===Dt.pending_buf_size&&(Dt.gzhead.hcrc&&Dt.pending>Mt&&(ue.adler=St(ue.adler,Dt.pending_buf,Dt.pending-Mt,Mt)),oe(ue),Mt=Dt.pending,Dt.pending===Dt.pending_buf_size)){zt=1;break}zt=Dt.gzindex<Dt.gzhead.name.length?255&Dt.gzhead.name.charCodeAt(Dt.gzindex++):0,En(Dt,zt)}while(zt!==0);Dt.gzhead.hcrc&&Dt.pending>Mt&&(ue.adler=St(ue.adler,Dt.pending_buf,Dt.pending-Mt,Mt)),zt===0&&(Dt.gzindex=0,Dt.status=91)}else Dt.status=91;if(Dt.status===91)if(Dt.gzhead.comment){Mt=Dt.pending;do{if(Dt.pending===Dt.pending_buf_size&&(Dt.gzhead.hcrc&&Dt.pending>Mt&&(ue.adler=St(ue.adler,Dt.pending_buf,Dt.pending-Mt,Mt)),oe(ue),Mt=Dt.pending,Dt.pending===Dt.pending_buf_size)){zt=1;break}zt=Dt.gzindex<Dt.gzhead.comment.length?255&Dt.gzhead.comment.charCodeAt(Dt.gzindex++):0,En(Dt,zt)}while(zt!==0);Dt.gzhead.hcrc&&Dt.pending>Mt&&(ue.adler=St(ue.adler,Dt.pending_buf,Dt.pending-Mt,Mt)),zt===0&&(Dt.status=103)}else Dt.status=103;if(Dt.status===103&&(Dt.gzhead.hcrc?(Dt.pending+2>Dt.pending_buf_size&&oe(ue),Dt.pending+2<=Dt.pending_buf_size&&(En(Dt,255&ue.adler),En(Dt,ue.adler>>8&255),ue.adler=0,Dt.status=We)):Dt.status=We),Dt.pending!==0){if(oe(ue),ue.avail_out===0)return Dt.last_flush=-1,wt}else if(ue.avail_in===0&&Qe(Pn)<=Qe(de)&&Pn!==qt)return Ze(ue,-5);if(Dt.status===666&&ue.avail_in!==0)return Ze(ue,-5);if(ue.avail_in!==0||Dt.lookahead!==0||Pn!==Gt&&Dt.status!==666){var De=Dt.strategy===2?function(fe,Ce){for(var te;;){if(fe.lookahead===0&&(kn(fe),fe.lookahead===0)){if(Ce===Gt)return Yt;break}if(fe.match_length=0,te=kt._tr_tally(fe,0,fe.window[fe.strstart]),fe.lookahead--,fe.strstart++,te&&(Pe(fe,!1),fe.strm.avail_out===0))return Yt}return fe.insert=0,Ce===qt?(Pe(fe,!0),fe.strm.avail_out===0?Ge:Oe):fe.last_lit&&(Pe(fe,!1),fe.strm.avail_out===0)?Yt:qe}(Dt,Pn):Dt.strategy===3?function(fe,Ce){for(var te,Ct,yt,$t,xe=fe.window;;){if(fe.lookahead<=Ae){if(kn(fe),fe.lookahead<=Ae&&Ce===Gt)return Yt;if(fe.lookahead===0)break}if(fe.match_length=0,fe.lookahead>=he&&0<fe.strstart&&(Ct=xe[yt=fe.strstart-1])===xe[++yt]&&Ct===xe[++yt]&&Ct===xe[++yt]){$t=fe.strstart+Ae;do;while(Ct===xe[++yt]&&Ct===xe[++yt]&&Ct===xe[++yt]&&Ct===xe[++yt]&&Ct===xe[++yt]&&Ct===xe[++yt]&&Ct===xe[++yt]&&Ct===xe[++yt]&&yt<$t);fe.match_length=Ae-($t-yt),fe.match_length>fe.lookahead&&(fe.match_length=fe.lookahead)}if(fe.match_length>=he?(te=kt._tr_tally(fe,1,fe.match_length-he),fe.lookahead-=fe.match_length,fe.strstart+=fe.match_length,fe.match_length=0):(te=kt._tr_tally(fe,0,fe.window[fe.strstart]),fe.lookahead--,fe.strstart++),te&&(Pe(fe,!1),fe.strm.avail_out===0))return Yt}return fe.insert=0,Ce===qt?(Pe(fe,!0),fe.strm.avail_out===0?Ge:Oe):fe.last_lit&&(Pe(fe,!1),fe.strm.avail_out===0)?Yt:qe}(Dt,Pn):ae[Dt.level].func(Dt,Pn);if(De!==Ge&&De!==Oe||(Dt.status=666),De===Yt||De===Ge)return ue.avail_out===0&&(Dt.last_flush=-1),wt;if(De===qe&&(Pn===1?kt._tr_align(Dt):Pn!==5&&(kt._tr_stored_block(Dt,0,0,!1),Pn===3&&(we(Dt.head),Dt.lookahead===0&&(Dt.strstart=0,Dt.block_start=0,Dt.insert=0))),oe(ue),ue.avail_out===0))return Dt.last_flush=-1,wt}return Pn!==qt?wt:Dt.wrap<=0?1:(Dt.wrap===2?(En(Dt,255&ue.adler),En(Dt,ue.adler>>8&255),En(Dt,ue.adler>>16&255),En(Dt,ue.adler>>24&255),En(Dt,255&ue.total_in),En(Dt,ue.total_in>>8&255),En(Dt,ue.total_in>>16&255),En(Dt,ue.total_in>>24&255)):(Nn(Dt,ue.adler>>>16),Nn(Dt,65535&ue.adler)),oe(ue),0<Dt.wrap&&(Dt.wrap=-Dt.wrap),Dt.pending!==0?wt:1)},ie.deflateEnd=function(ue){var Pn;return ue&&ue.state?(Pn=ue.state.status)!==ee&&Pn!==69&&Pn!==73&&Pn!==91&&Pn!==103&&Pn!==We&&Pn!==666?Ze(ue,et):(ue.state=null,Pn===We?Ze(ue,-3):wt):et},ie.deflateSetDictionary=function(ue,Pn){var de,Dt,Mt,zt,be,De,fe,Ce,te=Pn.length;if(!ue||!ue.state||(zt=(de=ue.state).wrap)===2||zt===1&&de.status!==ee||de.lookahead)return et;for(zt===1&&(ue.adler=Jt(ue.adler,Pn,te,0)),de.wrap=0,te>=de.w_size&&(zt===0&&(we(de.head),de.strstart=0,de.block_start=0,de.insert=0),Ce=new Lt.Buf8(de.w_size),Lt.arraySet(Ce,Pn,te-de.w_size,de.w_size,0),Pn=Ce,te=de.w_size),be=ue.avail_in,De=ue.next_in,fe=ue.input,ue.avail_in=te,ue.next_in=0,ue.input=Pn,kn(de);de.lookahead>=he;){for(Dt=de.strstart,Mt=de.lookahead-(he-1);de.ins_h=(de.ins_h<<de.hash_shift^de.window[Dt+he-1])&de.hash_mask,de.prev[Dt&de.w_mask]=de.head[de.ins_h],de.head[de.ins_h]=Dt,Dt++,--Mt;);de.strstart=Dt,de.lookahead=he-1,kn(de)}return de.strstart+=de.lookahead,de.block_start=de.strstart,de.insert=de.lookahead,de.lookahead=0,de.match_length=de.prev_length=he-1,de.match_available=0,ue.next_in=De,ue.input=fe,ue.avail_in=be,de.wrap=zt,wt},ie.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(se,Me,ie){"use strict";Me.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(se,Me,ie){"use strict";Me.exports=function(ae,Lt){var kt,Jt,St,Wt,Gt,qt,wt,et,tt,lt,rt,ut,dt,pt,Ft,Tt,_t,re,he,Ae,Fe,ee,We,Yt,qe;kt=ae.state,Jt=ae.next_in,Yt=ae.input,St=Jt+(ae.avail_in-5),Wt=ae.next_out,qe=ae.output,Gt=Wt-(Lt-ae.avail_out),qt=Wt+(ae.avail_out-257),wt=kt.dmax,et=kt.wsize,tt=kt.whave,lt=kt.wnext,rt=kt.window,ut=kt.hold,dt=kt.bits,pt=kt.lencode,Ft=kt.distcode,Tt=(1<<kt.lenbits)-1,_t=(1<<kt.distbits)-1;t:do{dt<15&&(ut+=Yt[Jt++]<<dt,dt+=8,ut+=Yt[Jt++]<<dt,dt+=8),re=pt[ut&Tt];e:for(;;){if(ut>>>=he=re>>>24,dt-=he,(he=re>>>16&255)===0)qe[Wt++]=65535&re;else{if(!(16&he)){if(!(64&he)){re=pt[(65535&re)+(ut&(1<<he)-1)];continue e}if(32&he){kt.mode=12;break t}ae.msg="invalid literal/length code",kt.mode=30;break t}Ae=65535&re,(he&=15)&&(dt<he&&(ut+=Yt[Jt++]<<dt,dt+=8),Ae+=ut&(1<<he)-1,ut>>>=he,dt-=he),dt<15&&(ut+=Yt[Jt++]<<dt,dt+=8,ut+=Yt[Jt++]<<dt,dt+=8),re=Ft[ut&_t];n:for(;;){if(ut>>>=he=re>>>24,dt-=he,!(16&(he=re>>>16&255))){if(!(64&he)){re=Ft[(65535&re)+(ut&(1<<he)-1)];continue n}ae.msg="invalid distance code",kt.mode=30;break t}if(Fe=65535&re,dt<(he&=15)&&(ut+=Yt[Jt++]<<dt,(dt+=8)<he&&(ut+=Yt[Jt++]<<dt,dt+=8)),wt<(Fe+=ut&(1<<he)-1)){ae.msg="invalid distance too far back",kt.mode=30;break t}if(ut>>>=he,dt-=he,(he=Wt-Gt)<Fe){if(tt<(he=Fe-he)&&kt.sane){ae.msg="invalid distance too far back",kt.mode=30;break t}if(We=rt,(ee=0)===lt){if(ee+=et-he,he<Ae){for(Ae-=he;qe[Wt++]=rt[ee++],--he;);ee=Wt-Fe,We=qe}}else if(lt<he){if(ee+=et+lt-he,(he-=lt)<Ae){for(Ae-=he;qe[Wt++]=rt[ee++],--he;);if(ee=0,lt<Ae){for(Ae-=he=lt;qe[Wt++]=rt[ee++],--he;);ee=Wt-Fe,We=qe}}}else if(ee+=lt-he,he<Ae){for(Ae-=he;qe[Wt++]=rt[ee++],--he;);ee=Wt-Fe,We=qe}for(;2<Ae;)qe[Wt++]=We[ee++],qe[Wt++]=We[ee++],qe[Wt++]=We[ee++],Ae-=3;Ae&&(qe[Wt++]=We[ee++],1<Ae&&(qe[Wt++]=We[ee++]))}else{for(ee=Wt-Fe;qe[Wt++]=qe[ee++],qe[Wt++]=qe[ee++],qe[Wt++]=qe[ee++],2<(Ae-=3););Ae&&(qe[Wt++]=qe[ee++],1<Ae&&(qe[Wt++]=qe[ee++]))}break}}break}}while(Jt<St&&Wt<qt);Jt-=Ae=dt>>3,ut&=(1<<(dt-=Ae<<3))-1,ae.next_in=Jt,ae.next_out=Wt,ae.avail_in=Jt<St?St-Jt+5:5-(Jt-St),ae.avail_out=Wt<qt?qt-Wt+257:257-(Wt-qt),kt.hold=ut,kt.bits=dt}},{}],49:[function(se,Me,ie){"use strict";var ae=se("../utils/common"),Lt=se("./adler32"),kt=se("./crc32"),Jt=se("./inffast"),St=se("./inftrees"),Wt=1,Gt=2,qt=0,wt=-2,et=1,tt=852,lt=592;function rt(ee){return(ee>>>24&255)+(ee>>>8&65280)+((65280&ee)<<8)+((255&ee)<<24)}function ut(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new ae.Buf16(320),this.work=new ae.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function dt(ee){var We;return ee&&ee.state?(We=ee.state,ee.total_in=ee.total_out=We.total=0,ee.msg="",We.wrap&&(ee.adler=1&We.wrap),We.mode=et,We.last=0,We.havedict=0,We.dmax=32768,We.head=null,We.hold=0,We.bits=0,We.lencode=We.lendyn=new ae.Buf32(tt),We.distcode=We.distdyn=new ae.Buf32(lt),We.sane=1,We.back=-1,qt):wt}function pt(ee){var We;return ee&&ee.state?((We=ee.state).wsize=0,We.whave=0,We.wnext=0,dt(ee)):wt}function Ft(ee,We){var Yt,qe;return ee&&ee.state?(qe=ee.state,We<0?(Yt=0,We=-We):(Yt=1+(We>>4),We<48&&(We&=15)),We&&(We<8||15<We)?wt:(qe.window!==null&&qe.wbits!==We&&(qe.window=null),qe.wrap=Yt,qe.wbits=We,pt(ee))):wt}function Tt(ee,We){var Yt,qe;return ee?(qe=new ut,(ee.state=qe).window=null,(Yt=Ft(ee,We))!==qt&&(ee.state=null),Yt):wt}var _t,re,he=!0;function Ae(ee){if(he){var We;for(_t=new ae.Buf32(512),re=new ae.Buf32(32),We=0;We<144;)ee.lens[We++]=8;for(;We<256;)ee.lens[We++]=9;for(;We<280;)ee.lens[We++]=7;for(;We<288;)ee.lens[We++]=8;for(St(Wt,ee.lens,0,288,_t,0,ee.work,{bits:9}),We=0;We<32;)ee.lens[We++]=5;St(Gt,ee.lens,0,32,re,0,ee.work,{bits:5}),he=!1}ee.lencode=_t,ee.lenbits=9,ee.distcode=re,ee.distbits=5}function Fe(ee,We,Yt,qe){var Ge,Oe=ee.state;return Oe.window===null&&(Oe.wsize=1<<Oe.wbits,Oe.wnext=0,Oe.whave=0,Oe.window=new ae.Buf8(Oe.wsize)),qe>=Oe.wsize?(ae.arraySet(Oe.window,We,Yt-Oe.wsize,Oe.wsize,0),Oe.wnext=0,Oe.whave=Oe.wsize):(qe<(Ge=Oe.wsize-Oe.wnext)&&(Ge=qe),ae.arraySet(Oe.window,We,Yt-qe,Ge,Oe.wnext),(qe-=Ge)?(ae.arraySet(Oe.window,We,Yt-qe,qe,0),Oe.wnext=qe,Oe.whave=Oe.wsize):(Oe.wnext+=Ge,Oe.wnext===Oe.wsize&&(Oe.wnext=0),Oe.whave<Oe.wsize&&(Oe.whave+=Ge))),0}ie.inflateReset=pt,ie.inflateReset2=Ft,ie.inflateResetKeep=dt,ie.inflateInit=function(ee){return Tt(ee,15)},ie.inflateInit2=Tt,ie.inflate=function(ee,We){var Yt,qe,Ge,Oe,Ze,Qe,we,oe,Pe,En,Nn,Xe,kn,Vn,Ai,Wn,Si,an,Li,Oi,ue,Pn,de,Dt,Mt=0,zt=new ae.Buf8(4),be=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!ee||!ee.state||!ee.output||!ee.input&&ee.avail_in!==0)return wt;(Yt=ee.state).mode===12&&(Yt.mode=13),Ze=ee.next_out,Ge=ee.output,we=ee.avail_out,Oe=ee.next_in,qe=ee.input,Qe=ee.avail_in,oe=Yt.hold,Pe=Yt.bits,En=Qe,Nn=we,Pn=qt;t:for(;;)switch(Yt.mode){case et:if(Yt.wrap===0){Yt.mode=13;break}for(;Pe<16;){if(Qe===0)break t;Qe--,oe+=qe[Oe++]<<Pe,Pe+=8}if(2&Yt.wrap&&oe===35615){zt[Yt.check=0]=255&oe,zt[1]=oe>>>8&255,Yt.check=kt(Yt.check,zt,2,0),Pe=oe=0,Yt.mode=2;break}if(Yt.flags=0,Yt.head&&(Yt.head.done=!1),!(1&Yt.wrap)||(((255&oe)<<8)+(oe>>8))%31){ee.msg="incorrect header check",Yt.mode=30;break}if((15&oe)!=8){ee.msg="unknown compression method",Yt.mode=30;break}if(Pe-=4,ue=8+(15&(oe>>>=4)),Yt.wbits===0)Yt.wbits=ue;else if(ue>Yt.wbits){ee.msg="invalid window size",Yt.mode=30;break}Yt.dmax=1<<ue,ee.adler=Yt.check=1,Yt.mode=512&oe?10:12,Pe=oe=0;break;case 2:for(;Pe<16;){if(Qe===0)break t;Qe--,oe+=qe[Oe++]<<Pe,Pe+=8}if(Yt.flags=oe,(255&Yt.flags)!=8){ee.msg="unknown compression method",Yt.mode=30;break}if(57344&Yt.flags){ee.msg="unknown header flags set",Yt.mode=30;break}Yt.head&&(Yt.head.text=oe>>8&1),512&Yt.flags&&(zt[0]=255&oe,zt[1]=oe>>>8&255,Yt.check=kt(Yt.check,zt,2,0)),Pe=oe=0,Yt.mode=3;case 3:for(;Pe<32;){if(Qe===0)break t;Qe--,oe+=qe[Oe++]<<Pe,Pe+=8}Yt.head&&(Yt.head.time=oe),512&Yt.flags&&(zt[0]=255&oe,zt[1]=oe>>>8&255,zt[2]=oe>>>16&255,zt[3]=oe>>>24&255,Yt.check=kt(Yt.check,zt,4,0)),Pe=oe=0,Yt.mode=4;case 4:for(;Pe<16;){if(Qe===0)break t;Qe--,oe+=qe[Oe++]<<Pe,Pe+=8}Yt.head&&(Yt.head.xflags=255&oe,Yt.head.os=oe>>8),512&Yt.flags&&(zt[0]=255&oe,zt[1]=oe>>>8&255,Yt.check=kt(Yt.check,zt,2,0)),Pe=oe=0,Yt.mode=5;case 5:if(1024&Yt.flags){for(;Pe<16;){if(Qe===0)break t;Qe--,oe+=qe[Oe++]<<Pe,Pe+=8}Yt.length=oe,Yt.head&&(Yt.head.extra_len=oe),512&Yt.flags&&(zt[0]=255&oe,zt[1]=oe>>>8&255,Yt.check=kt(Yt.check,zt,2,0)),Pe=oe=0}else Yt.head&&(Yt.head.extra=null);Yt.mode=6;case 6:if(1024&Yt.flags&&(Qe<(Xe=Yt.length)&&(Xe=Qe),Xe&&(Yt.head&&(ue=Yt.head.extra_len-Yt.length,Yt.head.extra||(Yt.head.extra=new Array(Yt.head.extra_len)),ae.arraySet(Yt.head.extra,qe,Oe,Xe,ue)),512&Yt.flags&&(Yt.check=kt(Yt.check,qe,Xe,Oe)),Qe-=Xe,Oe+=Xe,Yt.length-=Xe),Yt.length))break t;Yt.length=0,Yt.mode=7;case 7:if(2048&Yt.flags){if(Qe===0)break t;for(Xe=0;ue=qe[Oe+Xe++],Yt.head&&ue&&Yt.length<65536&&(Yt.head.name+=String.fromCharCode(ue)),ue&&Xe<Qe;);if(512&Yt.flags&&(Yt.check=kt(Yt.check,qe,Xe,Oe)),Qe-=Xe,Oe+=Xe,ue)break t}else Yt.head&&(Yt.head.name=null);Yt.length=0,Yt.mode=8;case 8:if(4096&Yt.flags){if(Qe===0)break t;for(Xe=0;ue=qe[Oe+Xe++],Yt.head&&ue&&Yt.length<65536&&(Yt.head.comment+=String.fromCharCode(ue)),ue&&Xe<Qe;);if(512&Yt.flags&&(Yt.check=kt(Yt.check,qe,Xe,Oe)),Qe-=Xe,Oe+=Xe,ue)break t}else Yt.head&&(Yt.head.comment=null);Yt.mode=9;case 9:if(512&Yt.flags){for(;Pe<16;){if(Qe===0)break t;Qe--,oe+=qe[Oe++]<<Pe,Pe+=8}if(oe!==(65535&Yt.check)){ee.msg="header crc mismatch",Yt.mode=30;break}Pe=oe=0}Yt.head&&(Yt.head.hcrc=Yt.flags>>9&1,Yt.head.done=!0),ee.adler=Yt.check=0,Yt.mode=12;break;case 10:for(;Pe<32;){if(Qe===0)break t;Qe--,oe+=qe[Oe++]<<Pe,Pe+=8}ee.adler=Yt.check=rt(oe),Pe=oe=0,Yt.mode=11;case 11:if(Yt.havedict===0)return ee.next_out=Ze,ee.avail_out=we,ee.next_in=Oe,ee.avail_in=Qe,Yt.hold=oe,Yt.bits=Pe,2;ee.adler=Yt.check=1,Yt.mode=12;case 12:if(We===5||We===6)break t;case 13:if(Yt.last){oe>>>=7&Pe,Pe-=7&Pe,Yt.mode=27;break}for(;Pe<3;){if(Qe===0)break t;Qe--,oe+=qe[Oe++]<<Pe,Pe+=8}switch(Yt.last=1&oe,Pe-=1,3&(oe>>>=1)){case 0:Yt.mode=14;break;case 1:if(Ae(Yt),Yt.mode=20,We!==6)break;oe>>>=2,Pe-=2;break t;case 2:Yt.mode=17;break;case 3:ee.msg="invalid block type",Yt.mode=30}oe>>>=2,Pe-=2;break;case 14:for(oe>>>=7&Pe,Pe-=7&Pe;Pe<32;){if(Qe===0)break t;Qe--,oe+=qe[Oe++]<<Pe,Pe+=8}if((65535&oe)!=(oe>>>16^65535)){ee.msg="invalid stored block lengths",Yt.mode=30;break}if(Yt.length=65535&oe,Pe=oe=0,Yt.mode=15,We===6)break t;case 15:Yt.mode=16;case 16:if(Xe=Yt.length){if(Qe<Xe&&(Xe=Qe),we<Xe&&(Xe=we),Xe===0)break t;ae.arraySet(Ge,qe,Oe,Xe,Ze),Qe-=Xe,Oe+=Xe,we-=Xe,Ze+=Xe,Yt.length-=Xe;break}Yt.mode=12;break;case 17:for(;Pe<14;){if(Qe===0)break t;Qe--,oe+=qe[Oe++]<<Pe,Pe+=8}if(Yt.nlen=257+(31&oe),oe>>>=5,Pe-=5,Yt.ndist=1+(31&oe),oe>>>=5,Pe-=5,Yt.ncode=4+(15&oe),oe>>>=4,Pe-=4,286<Yt.nlen||30<Yt.ndist){ee.msg="too many length or distance symbols",Yt.mode=30;break}Yt.have=0,Yt.mode=18;case 18:for(;Yt.have<Yt.ncode;){for(;Pe<3;){if(Qe===0)break t;Qe--,oe+=qe[Oe++]<<Pe,Pe+=8}Yt.lens[be[Yt.have++]]=7&oe,oe>>>=3,Pe-=3}for(;Yt.have<19;)Yt.lens[be[Yt.have++]]=0;if(Yt.lencode=Yt.lendyn,Yt.lenbits=7,de={bits:Yt.lenbits},Pn=St(0,Yt.lens,0,19,Yt.lencode,0,Yt.work,de),Yt.lenbits=de.bits,Pn){ee.msg="invalid code lengths set",Yt.mode=30;break}Yt.have=0,Yt.mode=19;case 19:for(;Yt.have<Yt.nlen+Yt.ndist;){for(;Wn=(Mt=Yt.lencode[oe&(1<<Yt.lenbits)-1])>>>16&255,Si=65535&Mt,!((Ai=Mt>>>24)<=Pe);){if(Qe===0)break t;Qe--,oe+=qe[Oe++]<<Pe,Pe+=8}if(Si<16)oe>>>=Ai,Pe-=Ai,Yt.lens[Yt.have++]=Si;else{if(Si===16){for(Dt=Ai+2;Pe<Dt;){if(Qe===0)break t;Qe--,oe+=qe[Oe++]<<Pe,Pe+=8}if(oe>>>=Ai,Pe-=Ai,Yt.have===0){ee.msg="invalid bit length repeat",Yt.mode=30;break}ue=Yt.lens[Yt.have-1],Xe=3+(3&oe),oe>>>=2,Pe-=2}else if(Si===17){for(Dt=Ai+3;Pe<Dt;){if(Qe===0)break t;Qe--,oe+=qe[Oe++]<<Pe,Pe+=8}Pe-=Ai,ue=0,Xe=3+(7&(oe>>>=Ai)),oe>>>=3,Pe-=3}else{for(Dt=Ai+7;Pe<Dt;){if(Qe===0)break t;Qe--,oe+=qe[Oe++]<<Pe,Pe+=8}Pe-=Ai,ue=0,Xe=11+(127&(oe>>>=Ai)),oe>>>=7,Pe-=7}if(Yt.have+Xe>Yt.nlen+Yt.ndist){ee.msg="invalid bit length repeat",Yt.mode=30;break}for(;Xe--;)Yt.lens[Yt.have++]=ue}}if(Yt.mode===30)break;if(Yt.lens[256]===0){ee.msg="invalid code -- missing end-of-block",Yt.mode=30;break}if(Yt.lenbits=9,de={bits:Yt.lenbits},Pn=St(Wt,Yt.lens,0,Yt.nlen,Yt.lencode,0,Yt.work,de),Yt.lenbits=de.bits,Pn){ee.msg="invalid literal/lengths set",Yt.mode=30;break}if(Yt.distbits=6,Yt.distcode=Yt.distdyn,de={bits:Yt.distbits},Pn=St(Gt,Yt.lens,Yt.nlen,Yt.ndist,Yt.distcode,0,Yt.work,de),Yt.distbits=de.bits,Pn){ee.msg="invalid distances set",Yt.mode=30;break}if(Yt.mode=20,We===6)break t;case 20:Yt.mode=21;case 21:if(6<=Qe&&258<=we){ee.next_out=Ze,ee.avail_out=we,ee.next_in=Oe,ee.avail_in=Qe,Yt.hold=oe,Yt.bits=Pe,Jt(ee,Nn),Ze=ee.next_out,Ge=ee.output,we=ee.avail_out,Oe=ee.next_in,qe=ee.input,Qe=ee.avail_in,oe=Yt.hold,Pe=Yt.bits,Yt.mode===12&&(Yt.back=-1);break}for(Yt.back=0;Wn=(Mt=Yt.lencode[oe&(1<<Yt.lenbits)-1])>>>16&255,Si=65535&Mt,!((Ai=Mt>>>24)<=Pe);){if(Qe===0)break t;Qe--,oe+=qe[Oe++]<<Pe,Pe+=8}if(Wn&&!(240&Wn)){for(an=Ai,Li=Wn,Oi=Si;Wn=(Mt=Yt.lencode[Oi+((oe&(1<<an+Li)-1)>>an)])>>>16&255,Si=65535&Mt,!(an+(Ai=Mt>>>24)<=Pe);){if(Qe===0)break t;Qe--,oe+=qe[Oe++]<<Pe,Pe+=8}oe>>>=an,Pe-=an,Yt.back+=an}if(oe>>>=Ai,Pe-=Ai,Yt.back+=Ai,Yt.length=Si,Wn===0){Yt.mode=26;break}if(32&Wn){Yt.back=-1,Yt.mode=12;break}if(64&Wn){ee.msg="invalid literal/length code",Yt.mode=30;break}Yt.extra=15&Wn,Yt.mode=22;case 22:if(Yt.extra){for(Dt=Yt.extra;Pe<Dt;){if(Qe===0)break t;Qe--,oe+=qe[Oe++]<<Pe,Pe+=8}Yt.length+=oe&(1<<Yt.extra)-1,oe>>>=Yt.extra,Pe-=Yt.extra,Yt.back+=Yt.extra}Yt.was=Yt.length,Yt.mode=23;case 23:for(;Wn=(Mt=Yt.distcode[oe&(1<<Yt.distbits)-1])>>>16&255,Si=65535&Mt,!((Ai=Mt>>>24)<=Pe);){if(Qe===0)break t;Qe--,oe+=qe[Oe++]<<Pe,Pe+=8}if(!(240&Wn)){for(an=Ai,Li=Wn,Oi=Si;Wn=(Mt=Yt.distcode[Oi+((oe&(1<<an+Li)-1)>>an)])>>>16&255,Si=65535&Mt,!(an+(Ai=Mt>>>24)<=Pe);){if(Qe===0)break t;Qe--,oe+=qe[Oe++]<<Pe,Pe+=8}oe>>>=an,Pe-=an,Yt.back+=an}if(oe>>>=Ai,Pe-=Ai,Yt.back+=Ai,64&Wn){ee.msg="invalid distance code",Yt.mode=30;break}Yt.offset=Si,Yt.extra=15&Wn,Yt.mode=24;case 24:if(Yt.extra){for(Dt=Yt.extra;Pe<Dt;){if(Qe===0)break t;Qe--,oe+=qe[Oe++]<<Pe,Pe+=8}Yt.offset+=oe&(1<<Yt.extra)-1,oe>>>=Yt.extra,Pe-=Yt.extra,Yt.back+=Yt.extra}if(Yt.offset>Yt.dmax){ee.msg="invalid distance too far back",Yt.mode=30;break}Yt.mode=25;case 25:if(we===0)break t;if(Xe=Nn-we,Yt.offset>Xe){if((Xe=Yt.offset-Xe)>Yt.whave&&Yt.sane){ee.msg="invalid distance too far back",Yt.mode=30;break}kn=Xe>Yt.wnext?(Xe-=Yt.wnext,Yt.wsize-Xe):Yt.wnext-Xe,Xe>Yt.length&&(Xe=Yt.length),Vn=Yt.window}else Vn=Ge,kn=Ze-Yt.offset,Xe=Yt.length;for(we<Xe&&(Xe=we),we-=Xe,Yt.length-=Xe;Ge[Ze++]=Vn[kn++],--Xe;);Yt.length===0&&(Yt.mode=21);break;case 26:if(we===0)break t;Ge[Ze++]=Yt.length,we--,Yt.mode=21;break;case 27:if(Yt.wrap){for(;Pe<32;){if(Qe===0)break t;Qe--,oe|=qe[Oe++]<<Pe,Pe+=8}if(Nn-=we,ee.total_out+=Nn,Yt.total+=Nn,Nn&&(ee.adler=Yt.check=Yt.flags?kt(Yt.check,Ge,Nn,Ze-Nn):Lt(Yt.check,Ge,Nn,Ze-Nn)),Nn=we,(Yt.flags?oe:rt(oe))!==Yt.check){ee.msg="incorrect data check",Yt.mode=30;break}Pe=oe=0}Yt.mode=28;case 28:if(Yt.wrap&&Yt.flags){for(;Pe<32;){if(Qe===0)break t;Qe--,oe+=qe[Oe++]<<Pe,Pe+=8}if(oe!==(4294967295&Yt.total)){ee.msg="incorrect length check",Yt.mode=30;break}Pe=oe=0}Yt.mode=29;case 29:Pn=1;break t;case 30:Pn=-3;break t;case 31:return-4;case 32:default:return wt}return ee.next_out=Ze,ee.avail_out=we,ee.next_in=Oe,ee.avail_in=Qe,Yt.hold=oe,Yt.bits=Pe,(Yt.wsize||Nn!==ee.avail_out&&Yt.mode<30&&(Yt.mode<27||We!==4))&&Fe(ee,ee.output,ee.next_out,Nn-ee.avail_out)?(Yt.mode=31,-4):(En-=ee.avail_in,Nn-=ee.avail_out,ee.total_in+=En,ee.total_out+=Nn,Yt.total+=Nn,Yt.wrap&&Nn&&(ee.adler=Yt.check=Yt.flags?kt(Yt.check,Ge,Nn,ee.next_out-Nn):Lt(Yt.check,Ge,Nn,ee.next_out-Nn)),ee.data_type=Yt.bits+(Yt.last?64:0)+(Yt.mode===12?128:0)+(Yt.mode===20||Yt.mode===15?256:0),(En==0&&Nn===0||We===4)&&Pn===qt&&(Pn=-5),Pn)},ie.inflateEnd=function(ee){if(!ee||!ee.state)return wt;var We=ee.state;return We.window&&(We.window=null),ee.state=null,qt},ie.inflateGetHeader=function(ee,We){var Yt;return ee&&ee.state&&2&(Yt=ee.state).wrap?((Yt.head=We).done=!1,qt):wt},ie.inflateSetDictionary=function(ee,We){var Yt,qe=We.length;return ee&&ee.state?(Yt=ee.state).wrap!==0&&Yt.mode!==11?wt:Yt.mode===11&&Lt(1,We,qe,0)!==Yt.check?-3:Fe(ee,We,qe,qe)?(Yt.mode=31,-4):(Yt.havedict=1,qt):wt},ie.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(se,Me,ie){"use strict";var ae=se("../utils/common"),Lt=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],kt=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],Jt=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],St=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];Me.exports=function(Wt,Gt,qt,wt,et,tt,lt,rt){var ut,dt,pt,Ft,Tt,_t,re,he,Ae,Fe=rt.bits,ee=0,We=0,Yt=0,qe=0,Ge=0,Oe=0,Ze=0,Qe=0,we=0,oe=0,Pe=null,En=0,Nn=new ae.Buf16(16),Xe=new ae.Buf16(16),kn=null,Vn=0;for(ee=0;ee<=15;ee++)Nn[ee]=0;for(We=0;We<wt;We++)Nn[Gt[qt+We]]++;for(Ge=Fe,qe=15;1<=qe&&Nn[qe]===0;qe--);if(qe<Ge&&(Ge=qe),qe===0)return et[tt++]=20971520,et[tt++]=20971520,rt.bits=1,0;for(Yt=1;Yt<qe&&Nn[Yt]===0;Yt++);for(Ge<Yt&&(Ge=Yt),ee=Qe=1;ee<=15;ee++)if(Qe<<=1,(Qe-=Nn[ee])<0)return-1;if(0<Qe&&(Wt===0||qe!==1))return-1;for(Xe[1]=0,ee=1;ee<15;ee++)Xe[ee+1]=Xe[ee]+Nn[ee];for(We=0;We<wt;We++)Gt[qt+We]!==0&&(lt[Xe[Gt[qt+We]]++]=We);if(_t=Wt===0?(Pe=kn=lt,19):Wt===1?(Pe=Lt,En-=257,kn=kt,Vn-=257,256):(Pe=Jt,kn=St,-1),ee=Yt,Tt=tt,Ze=We=oe=0,pt=-1,Ft=(we=1<<(Oe=Ge))-1,Wt===1&&852<we||Wt===2&&592<we)return 1;for(;;){for(re=ee-Ze,Ae=lt[We]<_t?(he=0,lt[We]):lt[We]>_t?(he=kn[Vn+lt[We]],Pe[En+lt[We]]):(he=96,0),ut=1<<ee-Ze,Yt=dt=1<<Oe;et[Tt+(oe>>Ze)+(dt-=ut)]=re<<24|he<<16|Ae|0,dt!==0;);for(ut=1<<ee-1;oe&ut;)ut>>=1;if(ut!==0?(oe&=ut-1,oe+=ut):oe=0,We++,--Nn[ee]==0){if(ee===qe)break;ee=Gt[qt+lt[We]]}if(Ge<ee&&(oe&Ft)!==pt){for(Ze===0&&(Ze=Ge),Tt+=Yt,Qe=1<<(Oe=ee-Ze);Oe+Ze<qe&&!((Qe-=Nn[Oe+Ze])<=0);)Oe++,Qe<<=1;if(we+=1<<Oe,Wt===1&&852<we||Wt===2&&592<we)return 1;et[pt=oe&Ft]=Ge<<24|Oe<<16|Tt-tt|0}}return oe!==0&&(et[Tt+oe]=ee-Ze<<24|64<<16|0),rt.bits=Ge,0}},{"../utils/common":41}],51:[function(se,Me,ie){"use strict";Me.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(se,Me,ie){"use strict";var ae=se("../utils/common"),Lt=0,kt=1;function Jt(Mt){for(var zt=Mt.length;0<=--zt;)Mt[zt]=0}var St=0,Wt=29,Gt=256,qt=Gt+1+Wt,wt=30,et=19,tt=2*qt+1,lt=15,rt=16,ut=7,dt=256,pt=16,Ft=17,Tt=18,_t=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],re=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],he=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Ae=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Fe=new Array(2*(qt+2));Jt(Fe);var ee=new Array(2*wt);Jt(ee);var We=new Array(512);Jt(We);var Yt=new Array(256);Jt(Yt);var qe=new Array(Wt);Jt(qe);var Ge,Oe,Ze,Qe=new Array(wt);function we(Mt,zt,be,De,fe){this.static_tree=Mt,this.extra_bits=zt,this.extra_base=be,this.elems=De,this.max_length=fe,this.has_stree=Mt&&Mt.length}function oe(Mt,zt){this.dyn_tree=Mt,this.max_code=0,this.stat_desc=zt}function Pe(Mt){return Mt<256?We[Mt]:We[256+(Mt>>>7)]}function En(Mt,zt){Mt.pending_buf[Mt.pending++]=255&zt,Mt.pending_buf[Mt.pending++]=zt>>>8&255}function Nn(Mt,zt,be){Mt.bi_valid>rt-be?(Mt.bi_buf|=zt<<Mt.bi_valid&65535,En(Mt,Mt.bi_buf),Mt.bi_buf=zt>>rt-Mt.bi_valid,Mt.bi_valid+=be-rt):(Mt.bi_buf|=zt<<Mt.bi_valid&65535,Mt.bi_valid+=be)}function Xe(Mt,zt,be){Nn(Mt,be[2*zt],be[2*zt+1])}function kn(Mt,zt){for(var be=0;be|=1&Mt,Mt>>>=1,be<<=1,0<--zt;);return be>>>1}function Vn(Mt,zt,be){var De,fe,Ce=new Array(lt+1),te=0;for(De=1;De<=lt;De++)Ce[De]=te=te+be[De-1]<<1;for(fe=0;fe<=zt;fe++){var Ct=Mt[2*fe+1];Ct!==0&&(Mt[2*fe]=kn(Ce[Ct]++,Ct))}}function Ai(Mt){var zt;for(zt=0;zt<qt;zt++)Mt.dyn_ltree[2*zt]=0;for(zt=0;zt<wt;zt++)Mt.dyn_dtree[2*zt]=0;for(zt=0;zt<et;zt++)Mt.bl_tree[2*zt]=0;Mt.dyn_ltree[2*dt]=1,Mt.opt_len=Mt.static_len=0,Mt.last_lit=Mt.matches=0}function Wn(Mt){8<Mt.bi_valid?En(Mt,Mt.bi_buf):0<Mt.bi_valid&&(Mt.pending_buf[Mt.pending++]=Mt.bi_buf),Mt.bi_buf=0,Mt.bi_valid=0}function Si(Mt,zt,be,De){var fe=2*zt,Ce=2*be;return Mt[fe]<Mt[Ce]||Mt[fe]===Mt[Ce]&&De[zt]<=De[be]}function an(Mt,zt,be){for(var De=Mt.heap[be],fe=be<<1;fe<=Mt.heap_len&&(fe<Mt.heap_len&&Si(zt,Mt.heap[fe+1],Mt.heap[fe],Mt.depth)&&fe++,!Si(zt,De,Mt.heap[fe],Mt.depth));)Mt.heap[be]=Mt.heap[fe],be=fe,fe<<=1;Mt.heap[be]=De}function Li(Mt,zt,be){var De,fe,Ce,te,Ct=0;if(Mt.last_lit!==0)for(;De=Mt.pending_buf[Mt.d_buf+2*Ct]<<8|Mt.pending_buf[Mt.d_buf+2*Ct+1],fe=Mt.pending_buf[Mt.l_buf+Ct],Ct++,De===0?Xe(Mt,fe,zt):(Xe(Mt,(Ce=Yt[fe])+Gt+1,zt),(te=_t[Ce])!==0&&Nn(Mt,fe-=qe[Ce],te),Xe(Mt,Ce=Pe(--De),be),(te=re[Ce])!==0&&Nn(Mt,De-=Qe[Ce],te)),Ct<Mt.last_lit;);Xe(Mt,dt,zt)}function Oi(Mt,zt){var be,De,fe,Ce=zt.dyn_tree,te=zt.stat_desc.static_tree,Ct=zt.stat_desc.has_stree,yt=zt.stat_desc.elems,$t=-1;for(Mt.heap_len=0,Mt.heap_max=tt,be=0;be<yt;be++)Ce[2*be]!==0?(Mt.heap[++Mt.heap_len]=$t=be,Mt.depth[be]=0):Ce[2*be+1]=0;for(;Mt.heap_len<2;)Ce[2*(fe=Mt.heap[++Mt.heap_len]=$t<2?++$t:0)]=1,Mt.depth[fe]=0,Mt.opt_len--,Ct&&(Mt.static_len-=te[2*fe+1]);for(zt.max_code=$t,be=Mt.heap_len>>1;1<=be;be--)an(Mt,Ce,be);for(fe=yt;be=Mt.heap[1],Mt.heap[1]=Mt.heap[Mt.heap_len--],an(Mt,Ce,1),De=Mt.heap[1],Mt.heap[--Mt.heap_max]=be,Mt.heap[--Mt.heap_max]=De,Ce[2*fe]=Ce[2*be]+Ce[2*De],Mt.depth[fe]=(Mt.depth[be]>=Mt.depth[De]?Mt.depth[be]:Mt.depth[De])+1,Ce[2*be+1]=Ce[2*De+1]=fe,Mt.heap[1]=fe++,an(Mt,Ce,1),2<=Mt.heap_len;);Mt.heap[--Mt.heap_max]=Mt.heap[1],function(xe,Rt){var je,fn,jn,bn,ci,Ji,zi=Rt.dyn_tree,dr=Rt.max_code,Fr=Rt.stat_desc.static_tree,oo=Rt.stat_desc.has_stree,Jr=Rt.stat_desc.extra_bits,zr=Rt.stat_desc.extra_base,pr=Rt.stat_desc.max_length,Kr=0;for(bn=0;bn<=lt;bn++)xe.bl_count[bn]=0;for(zi[2*xe.heap[xe.heap_max]+1]=0,je=xe.heap_max+1;je<tt;je++)pr<(bn=zi[2*zi[2*(fn=xe.heap[je])+1]+1]+1)&&(bn=pr,Kr++),zi[2*fn+1]=bn,dr<fn||(xe.bl_count[bn]++,ci=0,zr<=fn&&(ci=Jr[fn-zr]),Ji=zi[2*fn],xe.opt_len+=Ji*(bn+ci),oo&&(xe.static_len+=Ji*(Fr[2*fn+1]+ci)));if(Kr!==0){do{for(bn=pr-1;xe.bl_count[bn]===0;)bn--;xe.bl_count[bn]--,xe.bl_count[bn+1]+=2,xe.bl_count[pr]--,Kr-=2}while(0<Kr);for(bn=pr;bn!==0;bn--)for(fn=xe.bl_count[bn];fn!==0;)dr<(jn=xe.heap[--je])||(zi[2*jn+1]!==bn&&(xe.opt_len+=(bn-zi[2*jn+1])*zi[2*jn],zi[2*jn+1]=bn),fn--)}}(Mt,zt),Vn(Ce,$t,Mt.bl_count)}function ue(Mt,zt,be){var De,fe,Ce=-1,te=zt[1],Ct=0,yt=7,$t=4;for(te===0&&(yt=138,$t=3),zt[2*(be+1)+1]=65535,De=0;De<=be;De++)fe=te,te=zt[2*(De+1)+1],++Ct<yt&&fe===te||(Ct<$t?Mt.bl_tree[2*fe]+=Ct:fe!==0?(fe!==Ce&&Mt.bl_tree[2*fe]++,Mt.bl_tree[2*pt]++):Ct<=10?Mt.bl_tree[2*Ft]++:Mt.bl_tree[2*Tt]++,Ce=fe,$t=(Ct=0)===te?(yt=138,3):fe===te?(yt=6,3):(yt=7,4))}function Pn(Mt,zt,be){var De,fe,Ce=-1,te=zt[1],Ct=0,yt=7,$t=4;for(te===0&&(yt=138,$t=3),De=0;De<=be;De++)if(fe=te,te=zt[2*(De+1)+1],!(++Ct<yt&&fe===te)){if(Ct<$t)for(;Xe(Mt,fe,Mt.bl_tree),--Ct!=0;);else fe!==0?(fe!==Ce&&(Xe(Mt,fe,Mt.bl_tree),Ct--),Xe(Mt,pt,Mt.bl_tree),Nn(Mt,Ct-3,2)):Ct<=10?(Xe(Mt,Ft,Mt.bl_tree),Nn(Mt,Ct-3,3)):(Xe(Mt,Tt,Mt.bl_tree),Nn(Mt,Ct-11,7));Ce=fe,$t=(Ct=0)===te?(yt=138,3):fe===te?(yt=6,3):(yt=7,4)}}Jt(Qe);var de=!1;function Dt(Mt,zt,be,De){Nn(Mt,(St<<1)+(De?1:0),3),function(fe,Ce,te,Ct){Wn(fe),Ct&&(En(fe,te),En(fe,~te)),ae.arraySet(fe.pending_buf,fe.window,Ce,te,fe.pending),fe.pending+=te}(Mt,zt,be,!0)}ie._tr_init=function(Mt){de||(function(){var zt,be,De,fe,Ce,te=new Array(lt+1);for(fe=De=0;fe<Wt-1;fe++)for(qe[fe]=De,zt=0;zt<1<<_t[fe];zt++)Yt[De++]=fe;for(Yt[De-1]=fe,fe=Ce=0;fe<16;fe++)for(Qe[fe]=Ce,zt=0;zt<1<<re[fe];zt++)We[Ce++]=fe;for(Ce>>=7;fe<wt;fe++)for(Qe[fe]=Ce<<7,zt=0;zt<1<<re[fe]-7;zt++)We[256+Ce++]=fe;for(be=0;be<=lt;be++)te[be]=0;for(zt=0;zt<=143;)Fe[2*zt+1]=8,zt++,te[8]++;for(;zt<=255;)Fe[2*zt+1]=9,zt++,te[9]++;for(;zt<=279;)Fe[2*zt+1]=7,zt++,te[7]++;for(;zt<=287;)Fe[2*zt+1]=8,zt++,te[8]++;for(Vn(Fe,qt+1,te),zt=0;zt<wt;zt++)ee[2*zt+1]=5,ee[2*zt]=kn(zt,5);Ge=new we(Fe,_t,Gt+1,qt,lt),Oe=new we(ee,re,0,wt,lt),Ze=new we(new Array(0),he,0,et,ut)}(),de=!0),Mt.l_desc=new oe(Mt.dyn_ltree,Ge),Mt.d_desc=new oe(Mt.dyn_dtree,Oe),Mt.bl_desc=new oe(Mt.bl_tree,Ze),Mt.bi_buf=0,Mt.bi_valid=0,Ai(Mt)},ie._tr_stored_block=Dt,ie._tr_flush_block=function(Mt,zt,be,De){var fe,Ce,te=0;0<Mt.level?(Mt.strm.data_type===2&&(Mt.strm.data_type=function(Ct){var yt,$t=4093624447;for(yt=0;yt<=31;yt++,$t>>>=1)if(1&$t&&Ct.dyn_ltree[2*yt]!==0)return Lt;if(Ct.dyn_ltree[18]!==0||Ct.dyn_ltree[20]!==0||Ct.dyn_ltree[26]!==0)return kt;for(yt=32;yt<Gt;yt++)if(Ct.dyn_ltree[2*yt]!==0)return kt;return Lt}(Mt)),Oi(Mt,Mt.l_desc),Oi(Mt,Mt.d_desc),te=function(Ct){var yt;for(ue(Ct,Ct.dyn_ltree,Ct.l_desc.max_code),ue(Ct,Ct.dyn_dtree,Ct.d_desc.max_code),Oi(Ct,Ct.bl_desc),yt=et-1;3<=yt&&Ct.bl_tree[2*Ae[yt]+1]===0;yt--);return Ct.opt_len+=3*(yt+1)+5+5+4,yt}(Mt),fe=Mt.opt_len+3+7>>>3,(Ce=Mt.static_len+3+7>>>3)<=fe&&(fe=Ce)):fe=Ce=be+5,be+4<=fe&&zt!==-1?Dt(Mt,zt,be,De):Mt.strategy===4||Ce===fe?(Nn(Mt,2+(De?1:0),3),Li(Mt,Fe,ee)):(Nn(Mt,4+(De?1:0),3),function(Ct,yt,$t,xe){var Rt;for(Nn(Ct,yt-257,5),Nn(Ct,$t-1,5),Nn(Ct,xe-4,4),Rt=0;Rt<xe;Rt++)Nn(Ct,Ct.bl_tree[2*Ae[Rt]+1],3);Pn(Ct,Ct.dyn_ltree,yt-1),Pn(Ct,Ct.dyn_dtree,$t-1)}(Mt,Mt.l_desc.max_code+1,Mt.d_desc.max_code+1,te+1),Li(Mt,Mt.dyn_ltree,Mt.dyn_dtree)),Ai(Mt),De&&Wn(Mt)},ie._tr_tally=function(Mt,zt,be){return Mt.pending_buf[Mt.d_buf+2*Mt.last_lit]=zt>>>8&255,Mt.pending_buf[Mt.d_buf+2*Mt.last_lit+1]=255&zt,Mt.pending_buf[Mt.l_buf+Mt.last_lit]=255&be,Mt.last_lit++,zt===0?Mt.dyn_ltree[2*be]++:(Mt.matches++,zt--,Mt.dyn_ltree[2*(Yt[be]+Gt+1)]++,Mt.dyn_dtree[2*Pe(zt)]++),Mt.last_lit===Mt.lit_bufsize-1},ie._tr_align=function(Mt){Nn(Mt,2,3),Xe(Mt,dt,Fe),function(zt){zt.bi_valid===16?(En(zt,zt.bi_buf),zt.bi_buf=0,zt.bi_valid=0):8<=zt.bi_valid&&(zt.pending_buf[zt.pending++]=255&zt.bi_buf,zt.bi_buf>>=8,zt.bi_valid-=8)}(Mt)}},{"../utils/common":41}],53:[function(se,Me,ie){"use strict";Me.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(se,Me,ie){(function(ae){(function(Lt,kt){"use strict";if(!Lt.setImmediate){var Jt,St,Wt,Gt,qt=1,wt={},et=!1,tt=Lt.document,lt=Object.getPrototypeOf&&Object.getPrototypeOf(Lt);lt=lt&<.setTimeout?lt:Lt,Jt={}.toString.call(Lt.process)==="[object process]"?function(pt){ge.nextTick(function(){ut(pt)})}:function(){if(Lt.postMessage&&!Lt.importScripts){var pt=!0,Ft=Lt.onmessage;return Lt.onmessage=function(){pt=!1},Lt.postMessage("","*"),Lt.onmessage=Ft,pt}}()?(Gt="setImmediate$"+Math.random()+"$",Lt.addEventListener?Lt.addEventListener("message",dt,!1):Lt.attachEvent("onmessage",dt),function(pt){Lt.postMessage(Gt+pt,"*")}):Lt.MessageChannel?((Wt=new MessageChannel).port1.onmessage=function(pt){ut(pt.data)},function(pt){Wt.port2.postMessage(pt)}):tt&&"onreadystatechange"in tt.createElement("script")?(St=tt.documentElement,function(pt){var Ft=tt.createElement("script");Ft.onreadystatechange=function(){ut(pt),Ft.onreadystatechange=null,St.removeChild(Ft),Ft=null},St.appendChild(Ft)}):function(pt){setTimeout(ut,0,pt)},lt.setImmediate=function(pt){typeof pt!="function"&&(pt=new Function(""+pt));for(var Ft=new Array(arguments.length-1),Tt=0;Tt<Ft.length;Tt++)Ft[Tt]=arguments[Tt+1];var _t={callback:pt,args:Ft};return wt[qt]=_t,Jt(qt),qt++},lt.clearImmediate=rt}function rt(pt){delete wt[pt]}function ut(pt){if(et)setTimeout(ut,0,pt);else{var Ft=wt[pt];if(Ft){et=!0;try{(function(Tt){var _t=Tt.callback,re=Tt.args;switch(re.length){case 0:_t();break;case 1:_t(re[0]);break;case 2:_t(re[0],re[1]);break;case 3:_t(re[0],re[1],re[2]);break;default:_t.apply(kt,re)}})(Ft)}finally{rt(pt),et=!1}}}}function dt(pt){pt.source===Lt&&typeof pt.data=="string"&&pt.data.indexOf(Gt)===0&&ut(+pt.data.slice(Gt.length))}})(typeof self=="undefined"?ae===void 0?this:ae:self)}).call(this,typeof Bt.g!="undefined"?Bt.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})},17115:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{ZP:function(){return Lt}});var bt=Bt(52487),ge=Bt(59301),se=Bt(47273),Me=0,ie=(0,se.Z)();function ae(){var kt;return ie?(kt=Me,Me+=1):kt="TEST_OR_SSR",kt}function Lt(kt){var Jt=ge.useState(),St=(0,bt.Z)(Jt,2),Wt=St[0],Gt=St[1];return ge.useEffect(function(){Gt("rc_select_".concat(ae()))},[]),kt||Wt}},77861:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Ac:function(){return $t},Xo:function(){return Jr},Wx:function(){return pr},ZP:function(){return en},lk:function(){return pt}});var bt=Bt(72308),ge=Bt(80702),se=Bt(49618),Me=Bt(77321),ie=Bt(52487),ae=Bt(74416),Lt=Bt(62853),kt=Bt(18929),Jt=Bt(48736),St=Bt(59301),Wt=Bt(92310),Gt=Bt.n(Wt),qt=Bt(34280),wt=Bt(49658),et=Bt(10228),tt=Bt(8654),lt=function(Ve){var ni=Ve.className,Bi=Ve.customizeIcon,_i=Ve.customizeIconProps,tr=Ve.onMouseDown,sn=Ve.onClick,fi=Ve.children,Zi;return typeof Bi=="function"?Zi=Bi(_i):Zi=Bi,St.createElement("span",{className:ni,onMouseDown:function(ii){ii.preventDefault(),tr&&tr(ii)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:sn,"aria-hidden":!0},Zi!==void 0?Zi:St.createElement("span",{className:Gt()(ni.split(/\s+/).map(function(Tr){return"".concat(Tr,"-icon")}))},fi))},rt=lt;function ut(gn,Ve,ni,Bi,_i){var tr=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,sn=arguments.length>6?arguments[6]:void 0,fi=arguments.length>7?arguments[7]:void 0,Zi=St.useMemo(function(){if((0,Lt.Z)(Bi)==="object")return Bi.clearIcon;if(_i)return _i},[Bi,_i]),Tr=St.useMemo(function(){return!!(!tr&&Bi&&(ni.length||sn)&&!(fi==="combobox"&&sn===""))},[Bi,tr,ni.length,sn,fi]);return{allowClear:Tr,clearIcon:St.createElement(rt,{className:"".concat(gn,"-clear"),onMouseDown:Ve,customizeIcon:Zi},"\xD7")}}var dt=St.createContext(null);function pt(){return St.useContext(dt)}function Ft(){var gn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ve=St.useState(!1),ni=(0,ie.Z)(Ve,2),Bi=ni[0],_i=ni[1],tr=St.useRef(null),sn=function(){window.clearTimeout(tr.current)};St.useEffect(function(){return sn},[]);var fi=function(Tr,ii){sn(),tr.current=window.setTimeout(function(){_i(Tr),ii&&ii()},gn)};return[Bi,fi,sn]}function Tt(){var gn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ve=St.useRef(null),ni=St.useRef(null);St.useEffect(function(){return function(){window.clearTimeout(ni.current)}},[]);function Bi(_i){(_i||Ve.current===null)&&(Ve.current=_i),window.clearTimeout(ni.current),ni.current=window.setTimeout(function(){Ve.current=null},gn)}return[function(){return Ve.current},Bi]}function _t(gn,Ve,ni,Bi){var _i=St.useRef(null);_i.current={open:Ve,triggerOpen:ni,customizedTrigger:Bi},St.useEffect(function(){function tr(sn){var fi;if(!((fi=_i.current)!==null&&fi!==void 0&&fi.customizedTrigger)){var Zi=sn.target;Zi.shadowRoot&&sn.composed&&(Zi=sn.composedPath()[0]||Zi),_i.current.open&&gn().filter(function(Tr){return Tr}).every(function(Tr){return!Tr.contains(Zi)&&Tr!==Zi})&&_i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",tr),function(){return window.removeEventListener("mousedown",tr)}},[])}var re=Bt(26112),he=Bt(11780),Ae=function(Ve,ni){var Bi,_i,tr=Ve.prefixCls,sn=Ve.id,fi=Ve.inputElement,Zi=Ve.disabled,Tr=Ve.tabIndex,ii=Ve.autoFocus,xi=Ve.autoComplete,fr=Ve.editable,mi=Ve.activeDescendantId,wi=Ve.value,yi=Ve.maxLength,nr=Ve.onKeyDown,sr=Ve.onMouseDown,Rr=Ve.onChange,Zr=Ve.onPaste,Xr=Ve.onCompositionStart,ei=Ve.onCompositionEnd,Ho=Ve.open,Zo=Ve.attrs,cs=fi||St.createElement("input",null),ri=cs,or=ri.ref,Er=ri.props,no=Er.onKeyDown,Lr=Er.onChange,Wr=Er.onMouseDown,wo=Er.onCompositionStart,fo=Er.onCompositionEnd,xo=Er.style;return(0,Jt.Kp)(!("maxLength"in cs.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),cs=St.cloneElement(cs,(0,Me.Z)((0,Me.Z)((0,Me.Z)({type:"search"},Er),{},{id:sn,ref:(0,tt.sQ)(ni,or),disabled:Zi,tabIndex:Tr,autoComplete:xi||"off",autoFocus:ii,className:Gt()("".concat(tr,"-selection-search-input"),(Bi=cs)===null||Bi===void 0||(_i=Bi.props)===null||_i===void 0?void 0:_i.className),role:"combobox","aria-label":"Search","aria-expanded":Ho||!1,"aria-haspopup":"listbox","aria-owns":"".concat(sn,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(sn,"_list"),"aria-activedescendant":Ho?mi:void 0},Zo),{},{value:fr?wi:"",maxLength:yi,readOnly:!fr,unselectable:fr?null:"on",style:(0,Me.Z)((0,Me.Z)({},xo),{},{opacity:fr?null:0}),onKeyDown:function(Ci){nr(Ci),no&&no(Ci)},onMouseDown:function(Ci){sr(Ci),Wr&&Wr(Ci)},onChange:function(Ci){Rr(Ci),Lr&&Lr(Ci)},onCompositionStart:function(Ci){Xr(Ci),wo&&wo(Ci)},onCompositionEnd:function(Ci){ei(Ci),fo&&fo(Ci)},onPaste:Zr})),cs},Fe=St.forwardRef(Ae);Fe.displayName="Input";var ee=Fe;function We(gn){return Array.isArray(gn)?gn:gn!==void 0?[gn]:[]}var Yt=typeof window!="undefined"&&window.document&&window.document.documentElement,qe=Yt;function Ge(gn){return gn!=null}function Oe(gn){return!gn&&gn!==0}function Ze(gn){return["string","number"].includes((0,Lt.Z)(gn))}function Qe(gn){var Ve=void 0;return gn&&(Ze(gn.title)?Ve=gn.title.toString():Ze(gn.label)&&(Ve=gn.label.toString())),Ve}function we(gn,Ve){qe?St.useLayoutEffect(gn,Ve):St.useEffect(gn,Ve)}function oe(gn){var Ve;return(Ve=gn.key)!==null&&Ve!==void 0?Ve:gn.value}var Pe=function(Ve){Ve.preventDefault(),Ve.stopPropagation()},En=function(Ve){var ni=Ve.id,Bi=Ve.prefixCls,_i=Ve.values,tr=Ve.open,sn=Ve.searchValue,fi=Ve.autoClearSearchValue,Zi=Ve.inputRef,Tr=Ve.placeholder,ii=Ve.disabled,xi=Ve.mode,fr=Ve.showSearch,mi=Ve.autoFocus,wi=Ve.autoComplete,yi=Ve.activeDescendantId,nr=Ve.tabIndex,sr=Ve.removeIcon,Rr=Ve.maxTagCount,Zr=Ve.maxTagTextLength,Xr=Ve.maxTagPlaceholder,ei=Xr===void 0?function(ts){return"+ ".concat(ts.length," ...")}:Xr,Ho=Ve.tagRender,Zo=Ve.onToggleOpen,cs=Ve.onRemove,ri=Ve.onInputChange,or=Ve.onInputPaste,Er=Ve.onInputKeyDown,no=Ve.onInputMouseDown,Lr=Ve.onInputCompositionStart,Wr=Ve.onInputCompositionEnd,wo=St.useRef(null),fo=(0,St.useState)(0),xo=(0,ie.Z)(fo,2),_r=xo[0],Ci=xo[1],Qo=(0,St.useState)(!1),bi=(0,ie.Z)(Qo,2),ns=bi[0],qs=bi[1],fs="".concat(Bi,"-selection"),Hs=tr||xi==="multiple"&&fi===!1||xi==="tags"?sn:"",Gs=xi==="tags"||xi==="multiple"&&fi===!1||fr&&(tr||ns);we(function(){Ci(wo.current.scrollWidth)},[Hs]);function si(ts,ta,qa,ol,ml){return St.createElement("span",{className:Gt()("".concat(fs,"-item"),(0,se.Z)({},"".concat(fs,"-item-disabled"),qa)),title:Qe(ts)},St.createElement("span",{className:"".concat(fs,"-item-content")},ta),ol&&St.createElement(rt,{className:"".concat(fs,"-item-remove"),onMouseDown:Pe,onClick:ml,customizeIcon:sr},"\xD7"))}function To(ts,ta,qa,ol,ml){var yr=function(Jo){Pe(Jo),Zo(!tr)};return St.createElement("span",{onMouseDown:yr},Ho({label:ta,value:ts,disabled:qa,closable:ol,onClose:ml}))}function us(ts){var ta=ts.disabled,qa=ts.label,ol=ts.value,ml=!ii&&!ta,yr=qa;if(typeof Zr=="number"&&(typeof qa=="string"||typeof qa=="number")){var $r=String(yr);$r.length>Zr&&(yr="".concat($r.slice(0,Zr),"..."))}var Jo=function(os){os&&os.stopPropagation(),cs(ts)};return typeof Ho=="function"?To(ol,yr,ta,ml,Jo):si(ts,yr,ta,ml,Jo)}function rs(ts){var ta=typeof ei=="function"?ei(ts):ei;return si({title:ta},ta,!1)}var Cr=St.createElement("div",{className:"".concat(fs,"-search"),style:{width:_r},onFocus:function(){qs(!0)},onBlur:function(){qs(!1)}},St.createElement(ee,{ref:Zi,open:tr,prefixCls:Bi,id:ni,inputElement:null,disabled:ii,autoFocus:mi,autoComplete:wi,editable:Gs,activeDescendantId:yi,value:Hs,onKeyDown:Er,onMouseDown:no,onChange:ri,onPaste:or,onCompositionStart:Lr,onCompositionEnd:Wr,tabIndex:nr,attrs:(0,re.Z)(Ve,!0)}),St.createElement("span",{ref:wo,className:"".concat(fs,"-search-mirror"),"aria-hidden":!0},Hs,"\xA0")),ke=St.createElement(he.Z,{prefixCls:"".concat(fs,"-overflow"),data:_i,renderItem:us,renderRest:rs,suffix:Cr,itemKey:oe,maxCount:Rr});return St.createElement(St.Fragment,null,ke,!_i.length&&!Hs&&St.createElement("span",{className:"".concat(fs,"-placeholder")},Tr))},Nn=En,Xe=function(Ve){var ni=Ve.inputElement,Bi=Ve.prefixCls,_i=Ve.id,tr=Ve.inputRef,sn=Ve.disabled,fi=Ve.autoFocus,Zi=Ve.autoComplete,Tr=Ve.activeDescendantId,ii=Ve.mode,xi=Ve.open,fr=Ve.values,mi=Ve.placeholder,wi=Ve.tabIndex,yi=Ve.showSearch,nr=Ve.searchValue,sr=Ve.activeValue,Rr=Ve.maxLength,Zr=Ve.onInputKeyDown,Xr=Ve.onInputMouseDown,ei=Ve.onInputChange,Ho=Ve.onInputPaste,Zo=Ve.onInputCompositionStart,cs=Ve.onInputCompositionEnd,ri=Ve.title,or=St.useState(!1),Er=(0,ie.Z)(or,2),no=Er[0],Lr=Er[1],Wr=ii==="combobox",wo=Wr||yi,fo=fr[0],xo=nr||"";Wr&&sr&&!no&&(xo=sr),St.useEffect(function(){Wr&&Lr(!1)},[Wr,sr]);var _r=ii!=="combobox"&&!xi&&!yi?!1:!!xo,Ci=ri===void 0?Qe(fo):ri,Qo=function(){if(fo)return null;var ns=_r?{visibility:"hidden"}:void 0;return St.createElement("span",{className:"".concat(Bi,"-selection-placeholder"),style:ns},mi)};return St.createElement(St.Fragment,null,St.createElement("span",{className:"".concat(Bi,"-selection-search")},St.createElement(ee,{ref:tr,prefixCls:Bi,id:_i,open:xi,inputElement:ni,disabled:sn,autoFocus:fi,autoComplete:Zi,editable:wo,activeDescendantId:Tr,value:xo,onKeyDown:Zr,onMouseDown:Xr,onChange:function(ns){Lr(!0),ei(ns)},onPaste:Ho,onCompositionStart:Zo,onCompositionEnd:cs,tabIndex:wi,attrs:(0,re.Z)(Ve,!0),maxLength:Wr?Rr:void 0})),!Wr&&fo?St.createElement("span",{className:"".concat(Bi,"-selection-item"),title:Ci,style:_r?{visibility:"hidden"}:void 0},fo.label):null,Qo())},kn=Xe;function Vn(gn){return![et.Z.ESC,et.Z.SHIFT,et.Z.BACKSPACE,et.Z.TAB,et.Z.WIN_KEY,et.Z.ALT,et.Z.META,et.Z.WIN_KEY_RIGHT,et.Z.CTRL,et.Z.SEMICOLON,et.Z.EQUALS,et.Z.CAPS_LOCK,et.Z.CONTEXT_MENU,et.Z.F1,et.Z.F2,et.Z.F3,et.Z.F4,et.Z.F5,et.Z.F6,et.Z.F7,et.Z.F8,et.Z.F9,et.Z.F10,et.Z.F11,et.Z.F12].includes(gn)}var Ai=function(Ve,ni){var Bi=(0,St.useRef)(null),_i=(0,St.useRef)(!1),tr=Ve.prefixCls,sn=Ve.open,fi=Ve.mode,Zi=Ve.showSearch,Tr=Ve.tokenWithEnter,ii=Ve.autoClearSearchValue,xi=Ve.onSearch,fr=Ve.onSearchSubmit,mi=Ve.onToggleOpen,wi=Ve.onInputKeyDown,yi=Ve.domRef;St.useImperativeHandle(ni,function(){return{focus:function(){Bi.current.focus()},blur:function(){Bi.current.blur()}}});var nr=Tt(0),sr=(0,ie.Z)(nr,2),Rr=sr[0],Zr=sr[1],Xr=function(xo){var _r=xo.which;(_r===et.Z.UP||_r===et.Z.DOWN)&&xo.preventDefault(),wi&&wi(xo),_r===et.Z.ENTER&&fi==="tags"&&!_i.current&&!sn&&(fr==null||fr(xo.target.value)),Vn(_r)&&mi(!0)},ei=function(){Zr(!0)},Ho=(0,St.useRef)(null),Zo=function(xo){xi(xo,!0,_i.current)!==!1&&mi(!0)},cs=function(){_i.current=!0},ri=function(xo){_i.current=!1,fi!=="combobox"&&Zo(xo.target.value)},or=function(xo){var _r=xo.target.value;if(Tr&&Ho.current&&/[\r\n]/.test(Ho.current)){var Ci=Ho.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");_r=_r.replace(Ci,Ho.current)}Ho.current=null,Zo(_r)},Er=function(xo){var _r=xo.clipboardData,Ci=_r.getData("text");Ho.current=Ci},no=function(xo){var _r=xo.target;if(_r!==Bi.current){var Ci=document.body.style.msTouchAction!==void 0;Ci?setTimeout(function(){Bi.current.focus()}):Bi.current.focus()}},Lr=function(xo){var _r=Rr();xo.target!==Bi.current&&!_r&&fi!=="combobox"&&xo.preventDefault(),(fi!=="combobox"&&(!Zi||!_r)||!sn)&&(sn&&ii!==!1&&xi("",!0,!1),mi())},Wr={inputRef:Bi,onInputKeyDown:Xr,onInputMouseDown:ei,onInputChange:or,onInputPaste:Er,onInputCompositionStart:cs,onInputCompositionEnd:ri},wo=fi==="multiple"||fi==="tags"?St.createElement(Nn,(0,bt.Z)({},Ve,Wr)):St.createElement(kn,(0,bt.Z)({},Ve,Wr));return St.createElement("div",{ref:yi,className:"".concat(tr,"-selector"),onClick:no,onMouseDown:Lr},wo)},Wn=St.forwardRef(Ai);Wn.displayName="Selector";var Si=Wn,an=Bt(35593),Li=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Oi=function(Ve){var ni=Ve===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:ni,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:ni,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:ni,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:ni,adjustY:1},htmlRegion:"scroll"}}},ue=function(Ve,ni){var Bi=Ve.prefixCls,_i=Ve.disabled,tr=Ve.visible,sn=Ve.children,fi=Ve.popupElement,Zi=Ve.animation,Tr=Ve.transitionName,ii=Ve.dropdownStyle,xi=Ve.dropdownClassName,fr=Ve.direction,mi=fr===void 0?"ltr":fr,wi=Ve.placement,yi=Ve.builtinPlacements,nr=Ve.dropdownMatchSelectWidth,sr=Ve.dropdownRender,Rr=Ve.dropdownAlign,Zr=Ve.getPopupContainer,Xr=Ve.empty,ei=Ve.getTriggerDOMNode,Ho=Ve.onPopupVisibleChange,Zo=Ve.onPopupMouseEnter,cs=(0,ae.Z)(Ve,Li),ri="".concat(Bi,"-dropdown"),or=fi;sr&&(or=sr(fi));var Er=St.useMemo(function(){return yi||Oi(nr)},[yi,nr]),no=Zi?"".concat(ri,"-").concat(Zi):Tr,Lr=typeof nr=="number",Wr=St.useMemo(function(){return Lr?null:nr===!1?"minWidth":"width"},[nr,Lr]),wo=ii;Lr&&(wo=(0,Me.Z)((0,Me.Z)({},wo),{},{width:nr}));var fo=St.useRef(null);return St.useImperativeHandle(ni,function(){return{getPopupElement:function(){return fo.current}}}),St.createElement(an.Z,(0,bt.Z)({},cs,{showAction:Ho?["click"]:[],hideAction:Ho?["click"]:[],popupPlacement:wi||(mi==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Er,prefixCls:ri,popupTransitionName:no,popup:St.createElement("div",{ref:fo,onMouseEnter:Zo},or),stretch:Wr,popupAlign:Rr,popupVisible:tr,getPopupContainer:Zr,popupClassName:Gt()(xi,(0,se.Z)({},"".concat(ri,"-empty"),Xr)),popupStyle:wo,getTriggerDOMNode:ei,onPopupVisibleChange:Ho}),sn)},Pn=St.forwardRef(ue);Pn.displayName="SelectTrigger";var de=Pn,Dt=Bt(68413);function Mt(gn,Ve){var ni=gn.key,Bi;return"value"in gn&&(Bi=gn.value),ni!=null?ni:Bi!==void 0?Bi:"rc-index-key-".concat(Ve)}function zt(gn,Ve){var ni=gn||{},Bi=ni.label,_i=ni.value,tr=ni.options,sn=ni.groupLabel,fi=Bi||(Ve?"children":"label");return{label:fi,value:_i||"value",options:tr||"options",groupLabel:sn||fi}}function be(gn){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ni=Ve.fieldNames,Bi=Ve.childrenAsData,_i=[],tr=zt(ni,!1),sn=tr.label,fi=tr.value,Zi=tr.options,Tr=tr.groupLabel;function ii(xi,fr){xi.forEach(function(mi){if(fr||!(Zi in mi)){var wi=mi[fi];_i.push({key:Mt(mi,_i.length),groupOption:fr,data:mi,label:mi[sn],value:wi})}else{var yi=mi[Tr];yi===void 0&&Bi&&(yi=mi.label),_i.push({key:Mt(mi,_i.length),group:!0,data:mi,label:yi}),ii(mi[Zi],!0)}})}return ii(gn,!1),_i}function De(gn){var Ve=(0,Me.Z)({},gn);return"props"in Ve||Object.defineProperty(Ve,"props",{get:function(){return(0,Jt.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Ve}}),Ve}function fe(gn,Ve){if(!Ve||!Ve.length)return null;var ni=!1;function Bi(tr,sn){var fi=(0,Dt.Z)(sn),Zi=fi[0],Tr=fi.slice(1);if(!Zi)return[tr];var ii=tr.split(Zi);return ni=ni||ii.length>1,ii.reduce(function(xi,fr){return[].concat((0,ge.Z)(xi),(0,ge.Z)(Bi(fr,Tr)))},[]).filter(function(xi){return xi})}var _i=Bi(gn,Ve);return ni?_i:null}var Ce=["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"],te=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Ct(gn){return gn==="tags"||gn==="multiple"}var yt=St.forwardRef(function(gn,Ve){var ni,Bi,_i=gn.id,tr=gn.prefixCls,sn=gn.className,fi=gn.showSearch,Zi=gn.tagRender,Tr=gn.direction,ii=gn.omitDomProps,xi=gn.displayValues,fr=gn.onDisplayValuesChange,mi=gn.emptyOptions,wi=gn.notFoundContent,yi=wi===void 0?"Not Found":wi,nr=gn.onClear,sr=gn.mode,Rr=gn.disabled,Zr=gn.loading,Xr=gn.getInputElement,ei=gn.getRawInputElement,Ho=gn.open,Zo=gn.defaultOpen,cs=gn.onDropdownVisibleChange,ri=gn.activeValue,or=gn.onActiveValueChange,Er=gn.activeDescendantId,no=gn.searchValue,Lr=gn.autoClearSearchValue,Wr=gn.onSearch,wo=gn.onSearchSplit,fo=gn.tokenSeparators,xo=gn.allowClear,_r=gn.suffixIcon,Ci=gn.clearIcon,Qo=gn.OptionList,bi=gn.animation,ns=gn.transitionName,qs=gn.dropdownStyle,fs=gn.dropdownClassName,Hs=gn.dropdownMatchSelectWidth,Gs=gn.dropdownRender,si=gn.dropdownAlign,To=gn.placement,us=gn.builtinPlacements,rs=gn.getPopupContainer,Cr=gn.showAction,ke=Cr===void 0?[]:Cr,ts=gn.onFocus,ta=gn.onBlur,qa=gn.onKeyUp,ol=gn.onKeyDown,ml=gn.onMouseDown,yr=(0,ae.Z)(gn,Ce),$r=Ct(sr),Jo=(fi!==void 0?fi:$r)||sr==="combobox",Lo=(0,Me.Z)({},yr);te.forEach(function(Bs){delete Lo[Bs]}),ii==null||ii.forEach(function(Bs){delete Lo[Bs]});var os=St.useState(!1),Fa=(0,ie.Z)(os,2),lo=Fa[0],vo=Fa[1];St.useEffect(function(){vo((0,wt.Z)())},[]);var Ki=St.useRef(null),Eo=St.useRef(null),Es=St.useRef(null),la=St.useRef(null),ca=St.useRef(null),zo=Ft(),Vs=(0,ie.Z)(zo,3),Ka=Vs[0],Wl=Vs[1],La=Vs[2];St.useImperativeHandle(Ve,function(){var Bs,ya;return{focus:(Bs=la.current)===null||Bs===void 0?void 0:Bs.focus,blur:(ya=la.current)===null||ya===void 0?void 0:ya.blur,scrollTo:function(el){var ll;return(ll=ca.current)===null||ll===void 0?void 0:ll.scrollTo(el)}}});var vs=St.useMemo(function(){var Bs;if(sr!=="combobox")return no;var ya=(Bs=xi[0])===null||Bs===void 0?void 0:Bs.value;return typeof ya=="string"||typeof ya=="number"?String(ya):""},[no,sr,xi]),ai=sr==="combobox"&&typeof Xr=="function"&&Xr()||null,Ta=typeof ei=="function"&&ei(),bc=(0,tt.x1)(Eo,Ta==null||(ni=Ta.props)===null||ni===void 0?void 0:ni.ref),Vl=St.useState(!1),Th=(0,ie.Z)(Vl,2),sl=Th[0],Wc=Th[1];(0,qt.Z)(function(){Wc(!0)},[]);var Fl=(0,kt.Z)(!1,{defaultValue:Zo,value:Ho}),Is=(0,ie.Z)(Fl,2),ia=Is[0],Ph=Is[1],is=sl?ia:!1,Zs=!yi&&mi;(Rr||Zs&&is&&sr==="combobox")&&(is=!1);var ys=Zs?!1:is,Hr=St.useCallback(function(Bs){var ya=Bs!==void 0?Bs:!is;Rr||(Ph(ya),is!==ya&&(cs==null||cs(ya)))},[Rr,is,Ph,cs]),Tl=St.useMemo(function(){return(fo||[]).some(function(Bs){return[`
|
|
|
`,`\r
|
|
|
`].includes(Bs)})},[fo]),Ol=function(ya,Mu,el){var ll=!0,Wa=ya;or==null||or(null);var Aa=el?null:fe(ya,fo);return sr!=="combobox"&&Aa&&(Wa="",wo==null||wo(Aa),Hr(!1),ll=!1),Wr&&vs!==Wa&&Wr(Wa,{source:Mu?"typing":"effect"}),ll},Ao=function(ya){!ya||!ya.trim()||Wr(ya,{source:"submit"})};St.useEffect(function(){!is&&!$r&&sr!=="combobox"&&Ol("",!1,!1)},[is]),St.useEffect(function(){ia&&Rr&&Ph(!1),Rr&&Wl(!1)},[Rr]);var Ns=Tt(),da=(0,ie.Z)(Ns,2),xr=da[0],Ma=da[1],Oa=function(ya){var Mu=xr(),el=ya.which;if(el===et.Z.ENTER&&(sr!=="combobox"&&ya.preventDefault(),is||Hr(!0)),Ma(!!vs),el===et.Z.BACKSPACE&&!Mu&&$r&&!vs&&xi.length){for(var ll=(0,ge.Z)(xi),Wa=null,Aa=ll.length-1;Aa>=0;Aa-=1){var nl=ll[Aa];if(!nl.disabled){ll.splice(Aa,1),Wa=nl;break}}Wa&&fr(ll,{type:"remove",values:[Wa]})}for(var Dl=arguments.length,Ac=new Array(Dl>1?Dl-1:0),rh=1;rh<Dl;rh++)Ac[rh-1]=arguments[rh];if(is&&ca.current){var cl;(cl=ca.current).onKeyDown.apply(cl,[ya].concat(Ac))}ol==null||ol.apply(void 0,[ya].concat(Ac))},Bl=function(ya){for(var Mu=arguments.length,el=new Array(Mu>1?Mu-1:0),ll=1;ll<Mu;ll++)el[ll-1]=arguments[ll];if(is&&ca.current){var Wa;(Wa=ca.current).onKeyUp.apply(Wa,[ya].concat(el))}qa==null||qa.apply(void 0,[ya].concat(el))},su=function(ya){var Mu=xi.filter(function(el){return el!==ya});fr(Mu,{type:"remove",values:[ya]})},au=St.useRef(!1),Yo=function(){Wl(!0),Rr||(ts&&!au.current&&ts.apply(void 0,arguments),ke.includes("focus")&&Hr(!0)),au.current=!0},va=function(){Wl(!1,function(){au.current=!1,Hr(!1)}),!Rr&&(vs&&(sr==="tags"?Wr(vs,{source:"submit"}):sr==="multiple"&&Wr("",{source:"blur"})),ta&&ta.apply(void 0,arguments))},Cs=[];St.useEffect(function(){return function(){Cs.forEach(function(Bs){return clearTimeout(Bs)}),Cs.splice(0,Cs.length)}},[]);var lu=function(ya){var Mu,el=ya.target,ll=(Mu=Es.current)===null||Mu===void 0?void 0:Mu.getPopupElement();if(ll&&ll.contains(el)){var Wa=setTimeout(function(){var Ac=Cs.indexOf(Wa);if(Ac!==-1&&Cs.splice(Ac,1),La(),!lo&&!ll.contains(document.activeElement)){var rh;(rh=la.current)===null||rh===void 0||rh.focus()}});Cs.push(Wa)}for(var Aa=arguments.length,nl=new Array(Aa>1?Aa-1:0),Dl=1;Dl<Aa;Dl++)nl[Dl-1]=arguments[Dl];ml==null||ml.apply(void 0,[ya].concat(nl))},Ll=St.useState({}),Ml=(0,ie.Z)(Ll,2),tl=Ml[1];function tu(){tl({})}var Pl;Ta&&(Pl=function(ya){Hr(ya)}),_t(function(){var Bs;return[Ki.current,(Bs=Es.current)===null||Bs===void 0?void 0:Bs.getPopupElement()]},ys,Hr,!!Ta);var Io=St.useMemo(function(){return(0,Me.Z)((0,Me.Z)({},gn),{},{notFoundContent:yi,open:is,triggerOpen:ys,id:_i,showSearch:Jo,multiple:$r,toggleOpen:Hr})},[gn,yi,ys,is,_i,Jo,$r,Hr]),dc=!!_r||Zr,al;dc&&(al=St.createElement(rt,{className:Gt()("".concat(tr,"-arrow"),(0,se.Z)({},"".concat(tr,"-arrow-loading"),Zr)),customizeIcon:_r,customizeIconProps:{loading:Zr,searchValue:vs,open:is,focused:Ka,showSearch:Jo}}));var zu=function(){var ya;nr==null||nr(),(ya=la.current)===null||ya===void 0||ya.focus(),fr([],{type:"clear",values:xi}),Ol("",!1,!1)},hh=ut(tr,zu,xi,xo,Ci,Rr,vs,sr),dh=hh.allowClear,Ga=hh.clearIcon,ih=St.createElement(Qo,{ref:ca}),Ec=Gt()(tr,sn,(Bi={},(0,se.Z)(Bi,"".concat(tr,"-focused"),Ka),(0,se.Z)(Bi,"".concat(tr,"-multiple"),$r),(0,se.Z)(Bi,"".concat(tr,"-single"),!$r),(0,se.Z)(Bi,"".concat(tr,"-allow-clear"),xo),(0,se.Z)(Bi,"".concat(tr,"-show-arrow"),dc),(0,se.Z)(Bi,"".concat(tr,"-disabled"),Rr),(0,se.Z)(Bi,"".concat(tr,"-loading"),Zr),(0,se.Z)(Bi,"".concat(tr,"-open"),is),(0,se.Z)(Bi,"".concat(tr,"-customize-input"),ai),(0,se.Z)(Bi,"".concat(tr,"-show-search"),Jo),Bi)),Vc=St.createElement(de,{ref:Es,disabled:Rr,prefixCls:tr,visible:ys,popupElement:ih,animation:bi,transitionName:ns,dropdownStyle:qs,dropdownClassName:fs,direction:Tr,dropdownMatchSelectWidth:Hs,dropdownRender:Gs,dropdownAlign:si,placement:To,builtinPlacements:us,getPopupContainer:rs,empty:mi,getTriggerDOMNode:function(){return Eo.current},onPopupVisibleChange:Pl,onPopupMouseEnter:tu},Ta?St.cloneElement(Ta,{ref:bc}):St.createElement(Si,(0,bt.Z)({},gn,{domRef:Eo,prefixCls:tr,inputElement:ai,ref:la,id:_i,showSearch:Jo,autoClearSearchValue:Lr,mode:sr,activeDescendantId:Er,tagRender:Zi,values:xi,open:is,onToggleOpen:Hr,activeValue:ri,searchValue:vs,onSearch:Ol,onSearchSubmit:Ao,onRemove:su,tokenWithEnter:Tl}))),Zc;return Ta?Zc=Vc:Zc=St.createElement("div",(0,bt.Z)({className:Ec},Lo,{ref:Ki,onMouseDown:lu,onKeyDown:Oa,onKeyUp:Bl,onFocus:Yo,onBlur:va}),Ka&&!is&&St.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(xi.map(function(Bs){var ya=Bs.label,Mu=Bs.value;return["number","string"].includes((0,Lt.Z)(ya))?ya:Mu}).join(", "))),Vc,al,dh&&Ga),St.createElement(dt.Provider,{value:Io},Zc)}),$t=yt,xe=function(gn,Ve){var ni=St.useRef({values:new Map,options:new Map}),Bi=St.useMemo(function(){var tr=ni.current,sn=tr.values,fi=tr.options,Zi=gn.map(function(xi){if(xi.label===void 0){var fr;return(0,Me.Z)((0,Me.Z)({},xi),{},{label:(fr=sn.get(xi.value))===null||fr===void 0?void 0:fr.label})}return xi}),Tr=new Map,ii=new Map;return Zi.forEach(function(xi){Tr.set(xi.value,xi),ii.set(xi.value,Ve.get(xi.value)||fi.get(xi.value))}),ni.current.values=Tr,ni.current.options=ii,Zi},[gn,Ve]),_i=St.useCallback(function(tr){return Ve.get(tr)||ni.current.options.get(tr)},[Ve]);return[Bi,_i]};function Rt(gn,Ve){return We(gn).join("").toUpperCase().includes(Ve)}var je=function(gn,Ve,ni,Bi,_i){return St.useMemo(function(){if(!ni||Bi===!1)return gn;var tr=Ve.options,sn=Ve.label,fi=Ve.value,Zi=[],Tr=typeof Bi=="function",ii=ni.toUpperCase(),xi=Tr?Bi:function(mi,wi){return _i?Rt(wi[_i],ii):wi[tr]?Rt(wi[sn!=="children"?sn:"label"],ii):Rt(wi[fi],ii)},fr=Tr?function(mi){return De(mi)}:function(mi){return mi};return gn.forEach(function(mi){if(mi[tr]){var wi=xi(ni,fr(mi));if(wi)Zi.push(mi);else{var yi=mi[tr].filter(function(nr){return xi(ni,fr(nr))});yi.length&&Zi.push((0,Me.Z)((0,Me.Z)({},mi),{},(0,se.Z)({},tr,yi)))}return}xi(ni,fr(mi))&&Zi.push(mi)}),Zi},[gn,Bi,_i,ni,Ve])},fn=Bt(17115),jn=Bt(11592),bn=["children","value"],ci=["children"];function Ji(gn){var Ve=gn,ni=Ve.key,Bi=Ve.props,_i=Bi.children,tr=Bi.value,sn=(0,ae.Z)(Bi,bn);return(0,Me.Z)({key:ni,value:tr!==void 0?tr:ni,children:_i},sn)}function zi(gn){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,jn.Z)(gn).map(function(ni,Bi){if(!St.isValidElement(ni)||!ni.type)return null;var _i=ni,tr=_i.type.isSelectOptGroup,sn=_i.key,fi=_i.props,Zi=fi.children,Tr=(0,ae.Z)(fi,ci);return Ve||!tr?Ji(ni):(0,Me.Z)((0,Me.Z)({key:"__RC_SELECT_GRP__".concat(sn===null?Bi:sn,"__"),label:sn},Tr),{},{options:zi(Zi)})}).filter(function(ni){return ni})}function dr(gn,Ve,ni,Bi,_i){return St.useMemo(function(){var tr=gn,sn=!gn;sn&&(tr=zi(Ve));var fi=new Map,Zi=new Map,Tr=function(fr,mi,wi){wi&&typeof wi=="string"&&fr.set(mi[wi],mi)};function ii(xi){for(var fr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,mi=0;mi<xi.length;mi+=1){var wi=xi[mi];!wi[ni.options]||fr?(fi.set(wi[ni.value],wi),Tr(Zi,wi,ni.label),Tr(Zi,wi,Bi),Tr(Zi,wi,_i)):ii(wi[ni.options],!0)}}return ii(tr),{options:tr,valueOptions:fi,labelOptions:Zi}},[gn,Ve,ni,Bi,_i])}function Fr(gn){var Ve=St.useRef();Ve.current=gn;var ni=St.useCallback(function(){return Ve.current.apply(Ve,arguments)},[]);return ni}var oo=function(){return null};oo.isSelectOptGroup=!0;var Jr=oo,zr=function(){return null};zr.isSelectOption=!0;var pr=zr,Kr=Bt(80547),hr=Bt(2738),Mo=Bt(45680),Xo=St.createContext(null),mo=Xo;function Ts(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var ws=["disabled","title","children","style","className"];function Vt(gn){return typeof gn=="string"||typeof gn=="number"}var xs=function(Ve,ni){var Bi=pt(),_i=Bi.prefixCls,tr=Bi.id,sn=Bi.open,fi=Bi.multiple,Zi=Bi.mode,Tr=Bi.searchValue,ii=Bi.toggleOpen,xi=Bi.notFoundContent,fr=Bi.onPopupScroll,mi=St.useContext(mo),wi=mi.flattenOptions,yi=mi.onActiveValue,nr=mi.defaultActiveFirstOption,sr=mi.onSelect,Rr=mi.menuItemSelectedIcon,Zr=mi.rawValues,Xr=mi.fieldNames,ei=mi.virtual,Ho=mi.direction,Zo=mi.listHeight,cs=mi.listItemHeight,ri="".concat(_i,"-item"),or=(0,Kr.Z)(function(){return wi},[sn,wi],function(si,To){return To[0]&&si[1]!==To[1]}),Er=St.useRef(null),no=function(To){To.preventDefault()},Lr=function(To){Er.current&&Er.current.scrollTo(typeof To=="number"?{index:To}:To)},Wr=function(To){for(var us=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,rs=or.length,Cr=0;Cr<rs;Cr+=1){var ke=(To+Cr*us+rs)%rs,ts=or[ke],ta=ts.group,qa=ts.data;if(!ta&&!qa.disabled)return ke}return-1},wo=St.useState(function(){return Wr(0)}),fo=(0,ie.Z)(wo,2),xo=fo[0],_r=fo[1],Ci=function(To){var us=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;_r(To);var rs={source:us?"keyboard":"mouse"},Cr=or[To];if(!Cr){yi(null,-1,rs);return}yi(Cr.value,To,rs)};(0,St.useEffect)(function(){Ci(nr!==!1?Wr(0):-1)},[or.length,Tr]);var Qo=St.useCallback(function(si){return Zr.has(si)&&Zi!=="combobox"},[Zi,(0,ge.Z)(Zr).toString(),Zr.size]);(0,St.useEffect)(function(){var si=setTimeout(function(){if(!fi&&sn&&Zr.size===1){var us=Array.from(Zr)[0],rs=or.findIndex(function(Cr){var ke=Cr.data;return ke.value===us});rs!==-1&&(Ci(rs),Lr(rs))}});if(sn){var To;(To=Er.current)===null||To===void 0||To.scrollTo(void 0)}return function(){return clearTimeout(si)}},[sn,Tr,wi.length]);var bi=function(To){To!==void 0&&sr(To,{selected:!Zr.has(To)}),fi||ii(!1)};if(St.useImperativeHandle(ni,function(){return{onKeyDown:function(To){var us=To.which,rs=To.ctrlKey;switch(us){case et.Z.N:case et.Z.P:case et.Z.UP:case et.Z.DOWN:{var Cr=0;if(us===et.Z.UP?Cr=-1:us===et.Z.DOWN?Cr=1:Ts()&&rs&&(us===et.Z.N?Cr=1:us===et.Z.P&&(Cr=-1)),Cr!==0){var ke=Wr(xo+Cr,Cr);Lr(ke),Ci(ke,!0)}break}case et.Z.ENTER:{var ts=or[xo];ts&&!ts.data.disabled?bi(ts.value):bi(void 0),sn&&To.preventDefault();break}case et.Z.ESC:ii(!1),sn&&To.stopPropagation()}},onKeyUp:function(){},scrollTo:function(To){Lr(To)}}}),or.length===0)return St.createElement("div",{role:"listbox",id:"".concat(tr,"_list"),className:"".concat(ri,"-empty"),onMouseDown:no},xi);var ns=Object.keys(Xr).map(function(si){return Xr[si]}),qs=function(To){return To.label};function fs(si,To){var us=si.group;return{role:us?"presentation":"option",id:"".concat(tr,"_list_").concat(To)}}var Hs=function(To){var us=or[To];if(!us)return null;var rs=us.data||{},Cr=rs.value,ke=us.group,ts=(0,re.Z)(rs,!0),ta=qs(us);return us?St.createElement("div",(0,bt.Z)({"aria-label":typeof ta=="string"&&!ke?ta:null},ts,{key:To},fs(us,To),{"aria-selected":Qo(Cr)}),Cr):null},Gs={role:"listbox",id:"".concat(tr,"_list")};return St.createElement(St.Fragment,null,ei&&St.createElement("div",(0,bt.Z)({},Gs,{style:{height:0,width:0,overflow:"hidden"}}),Hs(xo-1),Hs(xo),Hs(xo+1)),St.createElement(Mo.Z,{itemKey:"key",ref:Er,data:or,height:Zo,itemHeight:cs,fullHeight:!1,onMouseDown:no,onScroll:fr,virtual:ei,direction:Ho,innerProps:ei?null:Gs},function(si,To){var us,rs=si.group,Cr=si.groupOption,ke=si.data,ts=si.label,ta=si.value,qa=ke.key;if(rs){var ol,ml=(ol=ke.title)!==null&&ol!==void 0?ol:Vt(ts)?ts.toString():void 0;return St.createElement("div",{className:Gt()(ri,"".concat(ri,"-group")),title:ml},ts!==void 0?ts:qa)}var yr=ke.disabled,$r=ke.title,Jo=ke.children,Lo=ke.style,os=ke.className,Fa=(0,ae.Z)(ke,ws),lo=(0,hr.Z)(Fa,ns),vo=Qo(ta),Ki="".concat(ri,"-option"),Eo=Gt()(ri,Ki,os,(us={},(0,se.Z)(us,"".concat(Ki,"-grouped"),Cr),(0,se.Z)(us,"".concat(Ki,"-active"),xo===To&&!yr),(0,se.Z)(us,"".concat(Ki,"-disabled"),yr),(0,se.Z)(us,"".concat(Ki,"-selected"),vo),us)),Es=qs(si),la=!Rr||typeof Rr=="function"||vo,ca=typeof Es=="number"?Es:Es||ta,zo=Vt(ca)?ca.toString():void 0;return $r!==void 0&&(zo=$r),St.createElement("div",(0,bt.Z)({},(0,re.Z)(lo),ei?{}:fs(si,To),{"aria-selected":vo,className:Eo,title:zo,onMouseMove:function(){xo===To||yr||Ci(To)},onClick:function(){yr||bi(ta)},style:Lo}),St.createElement("div",{className:"".concat(Ki,"-content")},ca),St.isValidElement(Rr)||vo,la&&St.createElement(rt,{className:"".concat(ri,"-option-state"),customizeIcon:Rr,customizeIconProps:{isSelected:vo}},vo?"\u2713":null))}))},Ss=St.forwardRef(xs);Ss.displayName="OptionList";var Ms=Ss;function ma(gn){var Ve=gn.mode,ni=gn.options,Bi=gn.children,_i=gn.backfill,tr=gn.allowClear,sn=gn.placeholder,fi=gn.getInputElement,Zi=gn.showSearch,Tr=gn.onSearch,ii=gn.defaultOpen,xi=gn.autoFocus,fr=gn.labelInValue,mi=gn.value,wi=gn.inputValue,yi=gn.optionLabelProp,nr=isMultiple(Ve),sr=Zi!==void 0?Zi:nr||Ve==="combobox",Rr=ni||convertChildrenToData(Bi);if(warning(Ve!=="tags"||Rr.every(function(Ho){return!Ho.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Ve==="tags"||Ve==="combobox"){var Zr=Rr.some(function(Ho){return Ho.options?Ho.options.some(function(Zo){return typeof("value"in Zo?Zo.value:Zo.key)=="number"}):typeof("value"in Ho?Ho.value:Ho.key)=="number"});warning(!Zr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Ve!=="combobox"||!yi,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Ve==="combobox"||!_i,"`backfill` only works with `combobox` mode."),warning(Ve==="combobox"||!fi,"`getInputElement` only work with `combobox` mode."),noteOnce(Ve!=="combobox"||!fi||!tr||!sn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Tr&&!sr&&Ve!=="combobox"&&Ve!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!ii||xi,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),mi!=null){var Xr=toArray(mi);warning(!fr||Xr.every(function(Ho){return _typeof(Ho)==="object"&&("key"in Ho||"value"in Ho)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!nr||Array.isArray(mi),"`value` should be array when `mode` is `multiple` or `tags`")}if(Bi){var ei=null;toNodeArray(Bi).some(function(Ho){if(!React.isValidElement(Ho)||!Ho.type)return!1;var Zo=Ho,cs=Zo.type;if(cs.isSelectOption)return!1;if(cs.isSelectOptGroup){var ri=toNodeArray(Ho.props.children).every(function(or){return!React.isValidElement(or)||!Ho.type||or.type.isSelectOption?!0:(ei=or.type,!1)});return!ri}return ei=cs,!0}),ei&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ei.displayName||ei.name||ei,"`.")),warning(wi===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Ea(gn,Ve){if(gn){var ni=function Bi(_i){for(var tr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,sn=0;sn<_i.length;sn++){var fi=_i[sn];if(fi[Ve==null?void 0:Ve.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!tr&&Array.isArray(fi[Ve==null?void 0:Ve.options])&&Bi(fi[Ve==null?void 0:Ve.options],!0))break}};ni(gn)}}var oa=null,ao=["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"],br=["inputValue"];function Un(gn){return!gn||(0,Lt.Z)(gn)!=="object"}var On=St.forwardRef(function(gn,Ve){var ni=gn.id,Bi=gn.mode,_i=gn.prefixCls,tr=_i===void 0?"rc-select":_i,sn=gn.backfill,fi=gn.fieldNames,Zi=gn.inputValue,Tr=gn.searchValue,ii=gn.onSearch,xi=gn.autoClearSearchValue,fr=xi===void 0?!0:xi,mi=gn.onSelect,wi=gn.onDeselect,yi=gn.dropdownMatchSelectWidth,nr=yi===void 0?!0:yi,sr=gn.filterOption,Rr=gn.filterSort,Zr=gn.optionFilterProp,Xr=gn.optionLabelProp,ei=gn.options,Ho=gn.children,Zo=gn.defaultActiveFirstOption,cs=gn.menuItemSelectedIcon,ri=gn.virtual,or=gn.direction,Er=gn.listHeight,no=Er===void 0?200:Er,Lr=gn.listItemHeight,Wr=Lr===void 0?20:Lr,wo=gn.value,fo=gn.defaultValue,xo=gn.labelInValue,_r=gn.onChange,Ci=(0,ae.Z)(gn,ao),Qo=(0,fn.ZP)(ni),bi=Ct(Bi),ns=!!(!ei&&Ho),qs=St.useMemo(function(){return sr===void 0&&Bi==="combobox"?!1:sr},[sr,Bi]),fs=St.useMemo(function(){return zt(fi,ns)},[JSON.stringify(fi),ns]),Hs=(0,kt.Z)("",{value:Tr!==void 0?Tr:Zi,postState:function(Zs){return Zs||""}}),Gs=(0,ie.Z)(Hs,2),si=Gs[0],To=Gs[1],us=dr(ei,Ho,fs,Zr,Xr),rs=us.valueOptions,Cr=us.labelOptions,ke=us.options,ts=St.useCallback(function(is){var Zs=We(is);return Zs.map(function(ys){var Hr,Tl,Ol,Ao,Ns;if(Un(ys))Hr=ys;else{var da;Ol=ys.key,Tl=ys.label,Hr=(da=ys.value)!==null&&da!==void 0?da:Ol}var xr=rs.get(Hr);if(xr){var Ma;if(Tl===void 0&&(Tl=xr==null?void 0:xr[Xr||fs.label]),Ol===void 0&&(Ol=(Ma=xr==null?void 0:xr.key)!==null&&Ma!==void 0?Ma:Hr),Ao=xr==null?void 0:xr.disabled,Ns=xr==null?void 0:xr.title,0)var Oa}return{label:Tl,value:Hr,key:Ol,disabled:Ao,title:Ns}})},[fs,Xr,rs]),ta=(0,kt.Z)(fo,{value:wo}),qa=(0,ie.Z)(ta,2),ol=qa[0],ml=qa[1],yr=St.useMemo(function(){var is,Zs=ts(ol);return Bi==="combobox"&&Oe((is=Zs[0])===null||is===void 0?void 0:is.value)?[]:Zs},[ol,ts,Bi]),$r=xe(yr,rs),Jo=(0,ie.Z)($r,2),Lo=Jo[0],os=Jo[1],Fa=St.useMemo(function(){if(!Bi&&Lo.length===1){var is=Lo[0];if(is.value===null&&(is.label===null||is.label===void 0))return[]}return Lo.map(function(Zs){var ys;return(0,Me.Z)((0,Me.Z)({},Zs),{},{label:(ys=Zs.label)!==null&&ys!==void 0?ys:Zs.value})})},[Bi,Lo]),lo=St.useMemo(function(){return new Set(Lo.map(function(is){return is.value}))},[Lo]);St.useEffect(function(){if(Bi==="combobox"){var is,Zs=(is=Lo[0])===null||is===void 0?void 0:is.value;To(Ge(Zs)?String(Zs):"")}},[Lo]);var vo=Fr(function(is,Zs){var ys,Hr=Zs!=null?Zs:is;return ys={},(0,se.Z)(ys,fs.value,is),(0,se.Z)(ys,fs.label,Hr),ys}),Ki=St.useMemo(function(){if(Bi!=="tags")return ke;var is=(0,ge.Z)(ke),Zs=function(Hr){return rs.has(Hr)};return(0,ge.Z)(Lo).sort(function(ys,Hr){return ys.value<Hr.value?-1:1}).forEach(function(ys){var Hr=ys.value;Zs(Hr)||is.push(vo(Hr,ys.label))}),is},[vo,ke,rs,Lo,Bi]),Eo=je(Ki,fs,si,qs,Zr),Es=St.useMemo(function(){return Bi!=="tags"||!si||Eo.some(function(is){return is[Zr||"value"]===si})||Eo.some(function(is){return is[fs.value]===si})?Eo:[vo(si)].concat((0,ge.Z)(Eo))},[vo,Zr,Bi,Eo,si,fs]),la=St.useMemo(function(){return Rr?(0,ge.Z)(Es).sort(function(is,Zs){return Rr(is,Zs)}):Es},[Es,Rr]),ca=St.useMemo(function(){return be(la,{fieldNames:fs,childrenAsData:ns})},[la,fs,ns]),zo=function(Zs){var ys=ts(Zs);if(ml(ys),_r&&(ys.length!==Lo.length||ys.some(function(Ol,Ao){var Ns;return((Ns=Lo[Ao])===null||Ns===void 0?void 0:Ns.value)!==(Ol==null?void 0:Ol.value)}))){var Hr=xo?ys:ys.map(function(Ol){return Ol.value}),Tl=ys.map(function(Ol){return De(os(Ol.value))});_r(bi?Hr:Hr[0],bi?Tl:Tl[0])}},Vs=St.useState(null),Ka=(0,ie.Z)(Vs,2),Wl=Ka[0],La=Ka[1],vs=St.useState(0),ai=(0,ie.Z)(vs,2),Ta=ai[0],bc=ai[1],Vl=Zo!==void 0?Zo:Bi!=="combobox",Th=St.useCallback(function(is,Zs){var ys=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Hr=ys.source,Tl=Hr===void 0?"keyboard":Hr;bc(Zs),sn&&Bi==="combobox"&&is!==null&&Tl==="keyboard"&&La(String(is))},[sn,Bi]),sl=function(Zs,ys,Hr){var Tl=function(){var au,Yo=os(Zs);return[xo?{label:Yo==null?void 0:Yo[fs.label],value:Zs,key:(au=Yo==null?void 0:Yo.key)!==null&&au!==void 0?au:Zs}:Zs,De(Yo)]};if(ys&&mi){var Ol=Tl(),Ao=(0,ie.Z)(Ol,2),Ns=Ao[0],da=Ao[1];mi(Ns,da)}else if(!ys&&wi&&Hr!=="clear"){var xr=Tl(),Ma=(0,ie.Z)(xr,2),Oa=Ma[0],Bl=Ma[1];wi(Oa,Bl)}},Wc=Fr(function(is,Zs){var ys,Hr=bi?Zs.selected:!0;Hr?ys=bi?[].concat((0,ge.Z)(Lo),[is]):[is]:ys=Lo.filter(function(Tl){return Tl.value!==is}),zo(ys),sl(is,Hr),Bi==="combobox"?La(""):(!Ct||fr)&&(To(""),La(""))}),Fl=function(Zs,ys){zo(Zs);var Hr=ys.type,Tl=ys.values;(Hr==="remove"||Hr==="clear")&&Tl.forEach(function(Ol){sl(Ol.value,!1,Hr)})},Is=function(Zs,ys){if(To(Zs),La(null),ys.source==="submit"){var Hr=(Zs||"").trim();if(Hr){var Tl=Array.from(new Set([].concat((0,ge.Z)(lo),[Hr])));zo(Tl),sl(Hr,!0),To("")}return}ys.source!=="blur"&&(Bi==="combobox"&&zo(Zs),ii==null||ii(Zs))},ia=function(Zs){var ys=Zs;Bi!=="tags"&&(ys=Zs.map(function(Tl){var Ol=Cr.get(Tl);return Ol==null?void 0:Ol.value}).filter(function(Tl){return Tl!==void 0}));var Hr=Array.from(new Set([].concat((0,ge.Z)(lo),(0,ge.Z)(ys))));zo(Hr),Hr.forEach(function(Tl){sl(Tl,!0)})},Ph=St.useMemo(function(){var is=ri!==!1&&nr!==!1;return(0,Me.Z)((0,Me.Z)({},us),{},{flattenOptions:ca,onActiveValue:Th,defaultActiveFirstOption:Vl,onSelect:Wc,menuItemSelectedIcon:cs,rawValues:lo,fieldNames:fs,virtual:is,direction:or,listHeight:no,listItemHeight:Wr,childrenAsData:ns})},[us,ca,Th,Vl,Wc,cs,lo,fs,ri,nr,no,Wr,ns]);return St.createElement(mo.Provider,{value:Ph},St.createElement($t,(0,bt.Z)({},Ci,{id:Qo,prefixCls:tr,ref:Ve,omitDomProps:br,mode:Bi,displayValues:Fa,onDisplayValuesChange:Fl,direction:or,searchValue:si,onSearch:Is,autoClearSearchValue:fr,onSearchSplit:ia,dropdownMatchSelectWidth:nr,OptionList:Ms,emptyOptions:!ca.length,activeValue:Wl,activeDescendantId:"".concat(Qo,"_list_").concat(Ta)})))}),Re=On;Re.Option=pr,Re.OptGroup=Jr;var hi=Re,en=hi},9296:function(ui,Cn,Bt){"use strict";Bt.r(Cn),Bt.d(Cn,{ResizableTextArea:function(){return Fe},default:function(){return Oe}});var bt=Bt(72308),ge=Bt(77321),se=Bt(49618),Me=Bt(62853),ie=Bt(52487),ae=Bt(74416),Lt=Bt(80702),kt=Bt(92310),Jt=Bt.n(kt),St=Bt(93681),Wt=Bt(5643),Gt=Bt(18929),qt=Bt(59301),wt=Bt(29301),et=Bt(34280),tt=Bt(16089),lt=`
|
|
|
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;
|
|
|
`,rt=["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"],ut={},dt;function pt(Ze){var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,we=Ze.getAttribute("id")||Ze.getAttribute("data-reactid")||Ze.getAttribute("name");if(Qe&&ut[we])return ut[we];var oe=window.getComputedStyle(Ze),Pe=oe.getPropertyValue("box-sizing")||oe.getPropertyValue("-moz-box-sizing")||oe.getPropertyValue("-webkit-box-sizing"),En=parseFloat(oe.getPropertyValue("padding-bottom"))+parseFloat(oe.getPropertyValue("padding-top")),Nn=parseFloat(oe.getPropertyValue("border-bottom-width"))+parseFloat(oe.getPropertyValue("border-top-width")),Xe=rt.map(function(Vn){return"".concat(Vn,":").concat(oe.getPropertyValue(Vn))}).join(";"),kn={sizingStyle:Xe,paddingSize:En,borderSize:Nn,boxSizing:Pe};return Qe&&we&&(ut[we]=kn),kn}function Ft(Ze){var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,oe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;dt||(dt=document.createElement("textarea"),dt.setAttribute("tab-index","-1"),dt.setAttribute("aria-hidden","true"),document.body.appendChild(dt)),Ze.getAttribute("wrap")?dt.setAttribute("wrap",Ze.getAttribute("wrap")):dt.removeAttribute("wrap");var Pe=pt(Ze,Qe),En=Pe.paddingSize,Nn=Pe.borderSize,Xe=Pe.boxSizing,kn=Pe.sizingStyle;dt.setAttribute("style","".concat(kn,";").concat(lt)),dt.value=Ze.value||Ze.placeholder||"";var Vn=void 0,Ai=void 0,Wn,Si=dt.scrollHeight;if(Xe==="border-box"?Si+=Nn:Xe==="content-box"&&(Si-=En),we!==null||oe!==null){dt.value=" ";var an=dt.scrollHeight-En;we!==null&&(Vn=an*we,Xe==="border-box"&&(Vn=Vn+En+Nn),Si=Math.max(Vn,Si)),oe!==null&&(Ai=an*oe,Xe==="border-box"&&(Ai=Ai+En+Nn),Wn=Si>Ai?"":"hidden",Si=Math.min(Ai,Si))}var Li={height:Si,overflowY:Wn,resize:"none"};return Vn&&(Li.minHeight=Vn),Ai&&(Li.maxHeight=Ai),Li}var Tt=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],_t=0,re=1,he=2,Ae=qt.forwardRef(function(Ze,Qe){var we=Ze,oe=we.prefixCls,Pe=we.onPressEnter,En=we.defaultValue,Nn=we.value,Xe=we.autoSize,kn=we.onResize,Vn=we.className,Ai=we.style,Wn=we.disabled,Si=we.onChange,an=we.onInternalAutoSize,Li=(0,ae.Z)(we,Tt),Oi=(0,Gt.Z)(En,{value:Nn,postState:function(Jr){return Jr!=null?Jr:""}}),ue=(0,ie.Z)(Oi,2),Pn=ue[0],de=ue[1],Dt=function(Jr){de(Jr.target.value),Si==null||Si(Jr)},Mt=qt.useRef();qt.useImperativeHandle(Qe,function(){return{textArea:Mt.current}});var zt=qt.useMemo(function(){return Xe&&(0,Me.Z)(Xe)==="object"?[Xe.minRows,Xe.maxRows]:[]},[Xe]),be=(0,ie.Z)(zt,2),De=be[0],fe=be[1],Ce=!!Xe,te=function(){try{if(document.activeElement===Mt.current){var Jr=Mt.current,zr=Jr.selectionStart,pr=Jr.selectionEnd,Kr=Jr.scrollTop;Mt.current.setSelectionRange(zr,pr),Mt.current.scrollTop=Kr}}catch(hr){}},Ct=qt.useState(he),yt=(0,ie.Z)(Ct,2),$t=yt[0],xe=yt[1],Rt=qt.useState(),je=(0,ie.Z)(Rt,2),fn=je[0],jn=je[1],bn=function(){xe(_t)};(0,et.Z)(function(){Ce&&bn()},[Nn,De,fe,Ce]),(0,et.Z)(function(){if($t===_t)xe(re);else if($t===re){var oo=Ft(Mt.current,!1,De,fe);xe(he),jn(oo)}else te()},[$t]);var ci=qt.useRef(),Ji=function(){tt.Z.cancel(ci.current)},zi=function(Jr){$t===he&&(kn==null||kn(Jr),Xe&&(Ji(),ci.current=(0,tt.Z)(function(){bn()})))};qt.useEffect(function(){return Ji},[]);var dr=Ce?fn:null,Fr=(0,ge.Z)((0,ge.Z)({},Ai),dr);return($t===_t||$t===re)&&(Fr.overflowY="hidden",Fr.overflowX="hidden"),qt.createElement(wt.Z,{onResize:zi,disabled:!(Xe||kn)},qt.createElement("textarea",(0,bt.Z)({},Li,{ref:Mt,style:Fr,className:Jt()(oe,Vn,(0,se.Z)({},"".concat(oe,"-disabled"),Wn)),disabled:Wn,value:Pn,onChange:Dt})))}),Fe=Ae,ee=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function We(Ze,Qe){return(0,Lt.Z)(Ze||"").slice(0,Qe).join("")}function Yt(Ze,Qe,we,oe){var Pe=we;return Ze?Pe=We(we,oe):(0,Lt.Z)(Qe||"").length<we.length&&(0,Lt.Z)(we||"").length>oe&&(Pe=Qe),Pe}var qe=qt.forwardRef(function(Ze,Qe){var we,oe=Ze.defaultValue,Pe=Ze.value,En=Ze.onFocus,Nn=Ze.onBlur,Xe=Ze.onChange,kn=Ze.allowClear,Vn=Ze.maxLength,Ai=Ze.onCompositionStart,Wn=Ze.onCompositionEnd,Si=Ze.suffix,an=Ze.prefixCls,Li=an===void 0?"rc-textarea":an,Oi=Ze.classes,ue=Ze.showCount,Pn=Ze.className,de=Ze.style,Dt=Ze.disabled,Mt=Ze.hidden,zt=Ze.classNames,be=Ze.styles,De=Ze.onResize,fe=(0,ae.Z)(Ze,ee),Ce=(0,Gt.Z)(oe,{value:Pe,defaultValue:oe}),te=(0,ie.Z)(Ce,2),Ct=te[0],yt=te[1],$t=(0,qt.useRef)(null),xe=qt.useState(!1),Rt=(0,ie.Z)(xe,2),je=Rt[0],fn=Rt[1],jn=qt.useState(!1),bn=(0,ie.Z)(jn,2),ci=bn[0],Ji=bn[1],zi=qt.useRef(),dr=qt.useRef(0),Fr=qt.useState(null),oo=(0,ie.Z)(Fr,2),Jr=oo[0],zr=oo[1],pr=function(){var Un;(Un=$t.current)===null||Un===void 0||Un.textArea.focus()};(0,qt.useImperativeHandle)(Qe,function(){return{resizableTextArea:$t.current,focus:pr,blur:function(){var Un;(Un=$t.current)===null||Un===void 0||Un.textArea.blur()}}}),(0,qt.useEffect)(function(){fn(function(br){return!Dt&&br})},[Dt]);var Kr=Number(Vn)>0,hr=function(Un){Ji(!0),zi.current=Ct,dr.current=Un.currentTarget.selectionStart,Ai==null||Ai(Un)},Mo=function(Un){Ji(!1);var On=Un.currentTarget.value;if(Kr){var Re,hi=dr.current>=Vn+1||dr.current===((Re=zi.current)===null||Re===void 0?void 0:Re.length);On=Yt(hi,zi.current,On,Vn)}On!==Ct&&(yt(On),(0,Wt.rJ)(Un.currentTarget,Un,Xe,On)),Wn==null||Wn(Un)},Xo=function(Un){var On=Un.target.value;if(!ci&&Kr){var Re=Un.target.selectionStart>=Vn+1||Un.target.selectionStart===On.length||!Un.target.selectionStart;On=Yt(Re,Ct,On,Vn)}yt(On),(0,Wt.rJ)(Un.currentTarget,Un,Xe,On)},mo=function(Un){var On=fe.onPressEnter,Re=fe.onKeyDown;Un.key==="Enter"&&On&&On(Un),Re==null||Re(Un)},Ts=function(Un){fn(!0),En==null||En(Un)},ws=function(Un){fn(!1),Nn==null||Nn(Un)},Vt=function(Un){var On;yt(""),pr(),(0,Wt.rJ)((On=$t.current)===null||On===void 0?void 0:On.textArea,Un,Xe)},xs=(0,Wt.D7)(Ct);!ci&&Kr&&Pe==null&&(xs=We(xs,Vn));var Ss=Si,Ms;if(ue){var ma=(0,Lt.Z)(xs).length;(0,Me.Z)(ue)==="object"?Ms=ue.formatter({value:xs,count:ma,maxLength:Vn}):Ms="".concat(ma).concat(Kr?" / ".concat(Vn):""),Ss=qt.createElement(qt.Fragment,null,Ss,qt.createElement("span",{className:Jt()("".concat(Li,"-data-count"),zt==null?void 0:zt.count),style:be==null?void 0:be.count},Ms))}var Ea=function(Un){var On;De==null||De(Un),(On=$t.current)!==null&&On!==void 0&&On.textArea.style.height&&zr(!0)},oa=!fe.autoSize&&!ue&&!kn,ao=qt.createElement(St.BaseInput,{value:xs,allowClear:kn,handleReset:Vt,suffix:Ss,prefixCls:Li,classes:{affixWrapper:Jt()(Oi==null?void 0:Oi.affixWrapper,(we={},(0,se.Z)(we,"".concat(Li,"-show-count"),ue),(0,se.Z)(we,"".concat(Li,"-textarea-allow-clear"),kn),we))},disabled:Dt,focused:je,className:Pn,style:(0,ge.Z)((0,ge.Z)({},de),Jr&&!oa?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ms=="string"?Ms:void 0}},hidden:Mt,inputElement:qt.createElement(Fe,(0,bt.Z)({},fe,{onKeyDown:mo,onChange:Xo,onFocus:Ts,onBlur:ws,onCompositionStart:hr,onCompositionEnd:Mo,className:zt==null?void 0:zt.textarea,style:(0,ge.Z)((0,ge.Z)({},be==null?void 0:be.textarea),{},{resize:de==null?void 0:de.resize}),disabled:Dt,prefixCls:Li,onResize:Ea,ref:$t}))});return ao}),Ge=qe,Oe=Ge},39417:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return re}});var bt=Bt(72308),ge=Bt(49618),se=Bt(74416),Me=Bt(77321),ie=Bt(96949),ae=Bt(55090),Lt=Bt(80237),kt=Bt(77205),Jt=Bt(38793),St=Bt(92310),Wt=Bt.n(St),Gt=Bt(26112),qt=Bt(59301),wt=Bt(39378),et=function(Ae){for(var Fe=Ae.prefixCls,ee=Ae.level,We=Ae.isStart,Yt=Ae.isEnd,qe="".concat(Fe,"-indent-unit"),Ge=[],Oe=0;Oe<ee;Oe+=1){var Ze;Ge.push(qt.createElement("span",{key:Oe,className:Wt()(qe,(Ze={},(0,ge.Z)(Ze,"".concat(qe,"-start"),We[Oe]),(0,ge.Z)(Ze,"".concat(qe,"-end"),Yt[Oe]),Ze))}))}return qt.createElement("span",{"aria-hidden":"true",className:"".concat(Fe,"-indent")},Ge)},tt=qt.memo(et),lt=Bt(67841),rt=Bt(71430),ut=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],dt="open",pt="close",Ft="---",Tt=function(he){(0,kt.Z)(Fe,he);var Ae=(0,Jt.Z)(Fe);function Fe(){var ee;(0,ie.Z)(this,Fe);for(var We=arguments.length,Yt=new Array(We),qe=0;qe<We;qe++)Yt[qe]=arguments[qe];return ee=Ae.call.apply(Ae,[this].concat(Yt)),ee.state={dragNodeHighlight:!1},ee.selectHandle=void 0,ee.cacheIndent=void 0,ee.onSelectorClick=function(Ge){var Oe=ee.props.context.onNodeClick;Oe(Ge,(0,rt.F)(ee.props)),ee.isSelectable()?ee.onSelect(Ge):ee.onCheck(Ge)},ee.onSelectorDoubleClick=function(Ge){var Oe=ee.props.context.onNodeDoubleClick;Oe(Ge,(0,rt.F)(ee.props))},ee.onSelect=function(Ge){if(!ee.isDisabled()){var Oe=ee.props.context.onNodeSelect;Oe(Ge,(0,rt.F)(ee.props))}},ee.onCheck=function(Ge){if(!ee.isDisabled()){var Oe=ee.props,Ze=Oe.disableCheckbox,Qe=Oe.checked,we=ee.props.context.onNodeCheck;if(!(!ee.isCheckable()||Ze)){var oe=!Qe;we(Ge,(0,rt.F)(ee.props),oe)}}},ee.onMouseEnter=function(Ge){var Oe=ee.props.context.onNodeMouseEnter;Oe(Ge,(0,rt.F)(ee.props))},ee.onMouseLeave=function(Ge){var Oe=ee.props.context.onNodeMouseLeave;Oe(Ge,(0,rt.F)(ee.props))},ee.onContextMenu=function(Ge){var Oe=ee.props.context.onNodeContextMenu;Oe(Ge,(0,rt.F)(ee.props))},ee.onDragStart=function(Ge){var Oe=ee.props.context.onNodeDragStart;Ge.stopPropagation(),ee.setState({dragNodeHighlight:!0}),Oe(Ge,(0,Lt.Z)(ee));try{Ge.dataTransfer.setData("text/plain","")}catch(Ze){}},ee.onDragEnter=function(Ge){var Oe=ee.props.context.onNodeDragEnter;Ge.preventDefault(),Ge.stopPropagation(),Oe(Ge,(0,Lt.Z)(ee))},ee.onDragOver=function(Ge){var Oe=ee.props.context.onNodeDragOver;Ge.preventDefault(),Ge.stopPropagation(),Oe(Ge,(0,Lt.Z)(ee))},ee.onDragLeave=function(Ge){var Oe=ee.props.context.onNodeDragLeave;Ge.stopPropagation(),Oe(Ge,(0,Lt.Z)(ee))},ee.onDragEnd=function(Ge){var Oe=ee.props.context.onNodeDragEnd;Ge.stopPropagation(),ee.setState({dragNodeHighlight:!1}),Oe(Ge,(0,Lt.Z)(ee))},ee.onDrop=function(Ge){var Oe=ee.props.context.onNodeDrop;Ge.preventDefault(),Ge.stopPropagation(),ee.setState({dragNodeHighlight:!1}),Oe(Ge,(0,Lt.Z)(ee))},ee.onExpand=function(Ge){var Oe=ee.props,Ze=Oe.loading,Qe=Oe.context.onNodeExpand;Ze||Qe(Ge,(0,rt.F)(ee.props))},ee.setSelectHandle=function(Ge){ee.selectHandle=Ge},ee.getNodeState=function(){var Ge=ee.props.expanded;return ee.isLeaf()?null:Ge?dt:pt},ee.hasChildren=function(){var Ge=ee.props.eventKey,Oe=ee.props.context.keyEntities,Ze=(0,lt.Z)(Oe,Ge)||{},Qe=Ze.children;return!!(Qe||[]).length},ee.isLeaf=function(){var Ge=ee.props,Oe=Ge.isLeaf,Ze=Ge.loaded,Qe=ee.props.context.loadData,we=ee.hasChildren();return Oe===!1?!1:Oe||!Qe&&!we||Qe&&Ze&&!we},ee.isDisabled=function(){var Ge=ee.props.disabled,Oe=ee.props.context.disabled;return!!(Oe||Ge)},ee.isCheckable=function(){var Ge=ee.props.checkable,Oe=ee.props.context.checkable;return!Oe||Ge===!1?!1:Oe},ee.syncLoadData=function(Ge){var Oe=Ge.expanded,Ze=Ge.loading,Qe=Ge.loaded,we=ee.props.context,oe=we.loadData,Pe=we.onNodeLoad;Ze||oe&&Oe&&!ee.isLeaf()&&!ee.hasChildren()&&!Qe&&Pe((0,rt.F)(ee.props))},ee.isDraggable=function(){var Ge=ee.props,Oe=Ge.data,Ze=Ge.context.draggable;return!!(Ze&&(!Ze.nodeDraggable||Ze.nodeDraggable(Oe)))},ee.renderDragHandler=function(){var Ge=ee.props.context,Oe=Ge.draggable,Ze=Ge.prefixCls;return Oe!=null&&Oe.icon?qt.createElement("span",{className:"".concat(Ze,"-draggable-icon")},Oe.icon):null},ee.renderSwitcherIconDom=function(Ge){var Oe=ee.props.switcherIcon,Ze=ee.props.context.switcherIcon,Qe=Oe||Ze;return typeof Qe=="function"?Qe((0,Me.Z)((0,Me.Z)({},ee.props),{},{isLeaf:Ge})):Qe},ee.renderSwitcher=function(){var Ge=ee.props.expanded,Oe=ee.props.context.prefixCls;if(ee.isLeaf()){var Ze=ee.renderSwitcherIconDom(!0);return Ze!==!1?qt.createElement("span",{className:Wt()("".concat(Oe,"-switcher"),"".concat(Oe,"-switcher-noop"))},Ze):null}var Qe=Wt()("".concat(Oe,"-switcher"),"".concat(Oe,"-switcher_").concat(Ge?dt:pt)),we=ee.renderSwitcherIconDom(!1);return we!==!1?qt.createElement("span",{onClick:ee.onExpand,className:Qe},we):null},ee.renderCheckbox=function(){var Ge=ee.props,Oe=Ge.checked,Ze=Ge.halfChecked,Qe=Ge.disableCheckbox,we=ee.props.context.prefixCls,oe=ee.isDisabled(),Pe=ee.isCheckable();if(!Pe)return null;var En=typeof Pe!="boolean"?Pe:null;return qt.createElement("span",{className:Wt()("".concat(we,"-checkbox"),Oe&&"".concat(we,"-checkbox-checked"),!Oe&&Ze&&"".concat(we,"-checkbox-indeterminate"),(oe||Qe)&&"".concat(we,"-checkbox-disabled")),onClick:ee.onCheck},En)},ee.renderIcon=function(){var Ge=ee.props.loading,Oe=ee.props.context.prefixCls;return qt.createElement("span",{className:Wt()("".concat(Oe,"-iconEle"),"".concat(Oe,"-icon__").concat(ee.getNodeState()||"docu"),Ge&&"".concat(Oe,"-icon_loading"))})},ee.renderSelector=function(){var Ge=ee.state.dragNodeHighlight,Oe=ee.props,Ze=Oe.title,Qe=Ze===void 0?Ft:Ze,we=Oe.selected,oe=Oe.icon,Pe=Oe.loading,En=Oe.data,Nn=ee.props.context,Xe=Nn.prefixCls,kn=Nn.showIcon,Vn=Nn.icon,Ai=Nn.loadData,Wn=Nn.titleRender,Si=ee.isDisabled(),an="".concat(Xe,"-node-content-wrapper"),Li;if(kn){var Oi=oe||Vn;Li=Oi?qt.createElement("span",{className:Wt()("".concat(Xe,"-iconEle"),"".concat(Xe,"-icon__customize"))},typeof Oi=="function"?Oi(ee.props):Oi):ee.renderIcon()}else Ai&&Pe&&(Li=ee.renderIcon());var ue;typeof Qe=="function"?ue=Qe(En):Wn?ue=Wn(En):ue=Qe;var Pn=qt.createElement("span",{className:"".concat(Xe,"-title")},ue);return qt.createElement("span",{ref:ee.setSelectHandle,title:typeof Qe=="string"?Qe:"",className:Wt()("".concat(an),"".concat(an,"-").concat(ee.getNodeState()||"normal"),!Si&&(we||Ge)&&"".concat(Xe,"-node-selected")),onMouseEnter:ee.onMouseEnter,onMouseLeave:ee.onMouseLeave,onContextMenu:ee.onContextMenu,onClick:ee.onSelectorClick,onDoubleClick:ee.onSelectorDoubleClick},Li,Pn,ee.renderDropIndicator())},ee.renderDropIndicator=function(){var Ge=ee.props,Oe=Ge.disabled,Ze=Ge.eventKey,Qe=ee.props.context,we=Qe.draggable,oe=Qe.dropLevelOffset,Pe=Qe.dropPosition,En=Qe.prefixCls,Nn=Qe.indent,Xe=Qe.dropIndicatorRender,kn=Qe.dragOverNodeKey,Vn=Qe.direction,Ai=!!we,Wn=!Oe&&Ai&&kn===Ze,Si=Nn!=null?Nn:ee.cacheIndent;return ee.cacheIndent=Nn,Wn?Xe({dropPosition:Pe,dropLevelOffset:oe,indent:Si,prefixCls:En,direction:Vn}):null},ee}return(0,ae.Z)(Fe,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var We=this.props.selectable,Yt=this.props.context.selectable;return typeof We=="boolean"?We:Yt}},{key:"render",value:function(){var We,Yt=this.props,qe=Yt.eventKey,Ge=Yt.className,Oe=Yt.style,Ze=Yt.dragOver,Qe=Yt.dragOverGapTop,we=Yt.dragOverGapBottom,oe=Yt.isLeaf,Pe=Yt.isStart,En=Yt.isEnd,Nn=Yt.expanded,Xe=Yt.selected,kn=Yt.checked,Vn=Yt.halfChecked,Ai=Yt.loading,Wn=Yt.domRef,Si=Yt.active,an=Yt.data,Li=Yt.onMouseMove,Oi=Yt.selectable,ue=(0,se.Z)(Yt,ut),Pn=this.props.context,de=Pn.prefixCls,Dt=Pn.filterTreeNode,Mt=Pn.keyEntities,zt=Pn.dropContainerKey,be=Pn.dropTargetKey,De=Pn.draggingNodeKey,fe=this.isDisabled(),Ce=(0,Gt.Z)(ue,{aria:!0,data:!0}),te=(0,lt.Z)(Mt,qe)||{},Ct=te.level,yt=En[En.length-1],$t=this.isDraggable(),xe=!fe&&$t,Rt=De===qe,je=Oi!==void 0?{"aria-selected":!!Oi}:void 0;return qt.createElement("div",(0,bt.Z)({ref:Wn,className:Wt()(Ge,"".concat(de,"-treenode"),(We={},(0,ge.Z)(We,"".concat(de,"-treenode-disabled"),fe),(0,ge.Z)(We,"".concat(de,"-treenode-switcher-").concat(Nn?"open":"close"),!oe),(0,ge.Z)(We,"".concat(de,"-treenode-checkbox-checked"),kn),(0,ge.Z)(We,"".concat(de,"-treenode-checkbox-indeterminate"),Vn),(0,ge.Z)(We,"".concat(de,"-treenode-selected"),Xe),(0,ge.Z)(We,"".concat(de,"-treenode-loading"),Ai),(0,ge.Z)(We,"".concat(de,"-treenode-active"),Si),(0,ge.Z)(We,"".concat(de,"-treenode-leaf-last"),yt),(0,ge.Z)(We,"".concat(de,"-treenode-draggable"),$t),(0,ge.Z)(We,"dragging",Rt),(0,ge.Z)(We,"drop-target",be===qe),(0,ge.Z)(We,"drop-container",zt===qe),(0,ge.Z)(We,"drag-over",!fe&&Ze),(0,ge.Z)(We,"drag-over-gap-top",!fe&&Qe),(0,ge.Z)(We,"drag-over-gap-bottom",!fe&&we),(0,ge.Z)(We,"filter-node",Dt&&Dt((0,rt.F)(this.props))),We)),style:Oe,draggable:xe,"aria-grabbed":Rt,onDragStart:xe?this.onDragStart:void 0,onDragEnter:$t?this.onDragEnter:void 0,onDragOver:$t?this.onDragOver:void 0,onDragLeave:$t?this.onDragLeave:void 0,onDrop:$t?this.onDrop:void 0,onDragEnd:$t?this.onDragEnd:void 0,onMouseMove:Li},je,Ce),qt.createElement(tt,{prefixCls:de,level:Ct,isStart:Pe,isEnd:En}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Fe}(qt.Component),_t=function(Ae){return qt.createElement(wt.k.Consumer,null,function(Fe){return qt.createElement(Tt,(0,bt.Z)({},Ae,{context:Fe}))})};_t.displayName="TreeNode",_t.isTreeNode=1;var re=_t},39378:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{k:function(){return ge}});var bt=Bt(59301),ge=bt.createContext(null)},54844:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{O:function(){return re.Z},Z:function(){return Pn}});var bt=Bt(72308),ge=Bt(49618),se=Bt(62853),Me=Bt(77321),ie=Bt(80702),ae=Bt(96949),Lt=Bt(55090),kt=Bt(80237),Jt=Bt(77205),St=Bt(38793),Wt=Bt(92310),Gt=Bt.n(Wt),qt=Bt(10228),wt=Bt(26112),et=Bt(48736),tt=Bt(59301),lt=Bt(39378);function rt(de){var Dt=de.dropPosition,Mt=de.dropLevelOffset,zt=de.indent,be={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Dt){case-1:be.top=0,be.left=-Mt*zt;break;case 1:be.bottom=0,be.left=-Mt*zt;break;case 0:be.bottom=0,be.left=zt;break}return tt.createElement("div",{style:be})}function ut(de){if(de==null)throw new TypeError("Cannot destructure "+de)}var dt=Bt(52487),pt=Bt(74416),Ft=Bt(34280),Tt=Bt(45680),_t=Bt(77900),re=Bt(39417);function he(de,Dt){var Mt=tt.useState(!1),zt=(0,dt.Z)(Mt,2),be=zt[0],De=zt[1];tt.useLayoutEffect(function(){if(be)return de(),function(){Dt()}},[be]),tt.useLayoutEffect(function(){return De(!0),function(){De(!1)}},[])}var Ae=Bt(71430),Fe=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],ee=function(Dt,Mt){var zt=Dt.className,be=Dt.style,De=Dt.motion,fe=Dt.motionNodes,Ce=Dt.motionType,te=Dt.onMotionStart,Ct=Dt.onMotionEnd,yt=Dt.active,$t=Dt.treeNodeRequiredProps,xe=(0,pt.Z)(Dt,Fe),Rt=tt.useState(!0),je=(0,dt.Z)(Rt,2),fn=je[0],jn=je[1],bn=tt.useContext(lt.k),ci=bn.prefixCls,Ji=fe&&Ce!=="hide";(0,Ft.Z)(function(){fe&&Ji!==fn&&jn(Ji)},[fe]);var zi=function(){fe&&te()},dr=tt.useRef(!1),Fr=function(){fe&&!dr.current&&(dr.current=!0,Ct())};he(zi,Fr);var oo=function(zr){Ji===zr&&Fr()};return fe?tt.createElement(_t.default,(0,bt.Z)({ref:Mt,visible:fn},De,{motionAppear:Ce==="show",onVisibleChanged:oo}),function(Jr,zr){var pr=Jr.className,Kr=Jr.style;return tt.createElement("div",{ref:zr,className:Gt()("".concat(ci,"-treenode-motion"),pr),style:Kr},fe.map(function(hr){var Mo=(0,bt.Z)({},(ut(hr.data),hr.data)),Xo=hr.title,mo=hr.key,Ts=hr.isStart,ws=hr.isEnd;delete Mo.children;var Vt=(0,Ae.H8)(mo,$t);return tt.createElement(re.Z,(0,bt.Z)({},Mo,Vt,{title:Xo,active:yt,data:hr.data,key:mo,isStart:Ts,isEnd:ws}))}))}):tt.createElement(re.Z,(0,bt.Z)({domRef:Mt,className:zt,style:be},xe,{active:yt}))};ee.displayName="MotionTreeNode";var We=tt.forwardRef(ee),Yt=We;function qe(){var de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Mt=de.length,zt=Dt.length;if(Math.abs(Mt-zt)!==1)return{add:!1,key:null};function be(De,fe){var Ce=new Map;De.forEach(function(Ct){Ce.set(Ct,!0)});var te=fe.filter(function(Ct){return!Ce.has(Ct)});return te.length===1?te[0]:null}return Mt<zt?{add:!0,key:be(de,Dt)}:{add:!1,key:be(Dt,de)}}function Ge(de,Dt,Mt){var zt=de.findIndex(function(Ce){return Ce.key===Mt}),be=de[zt+1],De=Dt.findIndex(function(Ce){return Ce.key===Mt});if(be){var fe=Dt.findIndex(function(Ce){return Ce.key===be.key});return Dt.slice(De+1,fe)}return Dt.slice(De+1)}var Oe=["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"],Ze={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Qe=function(){},we="RC_TREE_MOTION_".concat(Math.random()),oe={key:we},Pe={key:we,level:0,index:0,pos:"0",node:oe,nodes:[oe]},En={parent:null,children:[],pos:Pe.pos,data:oe,title:null,key:we,isStart:[],isEnd:[]};function Nn(de,Dt,Mt,zt){return Dt===!1||!Mt?de:de.slice(0,Math.ceil(Mt/zt)+1)}function Xe(de){var Dt=de.key,Mt=de.pos;return(0,Ae.km)(Dt,Mt)}function kn(de){for(var Dt=String(de.data.key),Mt=de;Mt.parent;)Mt=Mt.parent,Dt="".concat(Mt.data.key," > ").concat(Dt);return Dt}var Vn=tt.forwardRef(function(de,Dt){var Mt=de.prefixCls,zt=de.data,be=de.selectable,De=de.checkable,fe=de.expandedKeys,Ce=de.selectedKeys,te=de.checkedKeys,Ct=de.loadedKeys,yt=de.loadingKeys,$t=de.halfCheckedKeys,xe=de.keyEntities,Rt=de.disabled,je=de.dragging,fn=de.dragOverNodeKey,jn=de.dropPosition,bn=de.motion,ci=de.height,Ji=de.itemHeight,zi=de.virtual,dr=de.focusable,Fr=de.activeItem,oo=de.focused,Jr=de.tabIndex,zr=de.onKeyDown,pr=de.onFocus,Kr=de.onBlur,hr=de.onActiveChange,Mo=de.onListChangeStart,Xo=de.onListChangeEnd,mo=(0,pt.Z)(de,Oe),Ts=tt.useRef(null),ws=tt.useRef(null);tt.useImperativeHandle(Dt,function(){return{scrollTo:function(xi){Ts.current.scrollTo(xi)},getIndentWidth:function(){return ws.current.offsetWidth}}});var Vt=tt.useState(fe),xs=(0,dt.Z)(Vt,2),Ss=xs[0],Ms=xs[1],ma=tt.useState(zt),Ea=(0,dt.Z)(ma,2),oa=Ea[0],ao=Ea[1],br=tt.useState(zt),Un=(0,dt.Z)(br,2),On=Un[0],Re=Un[1],hi=tt.useState([]),en=(0,dt.Z)(hi,2),gn=en[0],Ve=en[1],ni=tt.useState(null),Bi=(0,dt.Z)(ni,2),_i=Bi[0],tr=Bi[1],sn=tt.useRef(zt);sn.current=zt;function fi(){var ii=sn.current;ao(ii),Re(ii),Ve([]),tr(null),Xo()}(0,Ft.Z)(function(){Ms(fe);var ii=qe(Ss,fe);if(ii.key!==null)if(ii.add){var xi=oa.findIndex(function(sr){var Rr=sr.key;return Rr===ii.key}),fr=Nn(Ge(oa,zt,ii.key),zi,ci,Ji),mi=oa.slice();mi.splice(xi+1,0,En),Re(mi),Ve(fr),tr("show")}else{var wi=zt.findIndex(function(sr){var Rr=sr.key;return Rr===ii.key}),yi=Nn(Ge(zt,oa,ii.key),zi,ci,Ji),nr=zt.slice();nr.splice(wi+1,0,En),Re(nr),Ve(yi),tr("hide")}else oa!==zt&&(ao(zt),Re(zt))},[fe,zt]),tt.useEffect(function(){je||fi()},[je]);var Zi=bn?On:zt,Tr={expandedKeys:fe,selectedKeys:Ce,loadedKeys:Ct,loadingKeys:yt,checkedKeys:te,halfCheckedKeys:$t,dragOverNodeKey:fn,dropPosition:jn,keyEntities:xe};return tt.createElement(tt.Fragment,null,oo&&Fr&&tt.createElement("span",{style:Ze,"aria-live":"assertive"},kn(Fr)),tt.createElement("div",null,tt.createElement("input",{style:Ze,disabled:dr===!1||Rt,tabIndex:dr!==!1?Jr:null,onKeyDown:zr,onFocus:pr,onBlur:Kr,value:"",onChange:Qe,"aria-label":"for screen reader"})),tt.createElement("div",{className:"".concat(Mt,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},tt.createElement("div",{className:"".concat(Mt,"-indent")},tt.createElement("div",{ref:ws,className:"".concat(Mt,"-indent-unit")}))),tt.createElement(Tt.Z,(0,bt.Z)({},mo,{data:Zi,itemKey:Xe,height:ci,fullHeight:!1,virtual:zi,itemHeight:Ji,prefixCls:"".concat(Mt,"-list"),ref:Ts,onVisibleChange:function(xi,fr){var mi=new Set(xi),wi=fr.filter(function(yi){return!mi.has(yi)});wi.some(function(yi){return Xe(yi)===we})&&fi()}}),function(ii){var xi=ii.pos,fr=(0,bt.Z)({},(ut(ii.data),ii.data)),mi=ii.title,wi=ii.key,yi=ii.isStart,nr=ii.isEnd,sr=(0,Ae.km)(wi,xi);delete fr.key,delete fr.children;var Rr=(0,Ae.H8)(sr,Tr);return tt.createElement(Yt,(0,bt.Z)({},fr,Rr,{title:mi,active:!!Fr&&wi===Fr.key,pos:xi,data:ii.data,isStart:yi,isEnd:nr,motion:bn,motionNodes:wi===we?gn:null,motionType:_i,onMotionStart:Mo,onMotionEnd:fi,treeNodeRequiredProps:Tr,onMouseMove:function(){hr(null)}}))}))});Vn.displayName="NodeList";var Ai=Vn,Wn=Bt(35654),Si=Bt(90782),an=Bt(67841),Li=10,Oi=function(de){(0,Jt.Z)(Mt,de);var Dt=(0,St.Z)(Mt);function Mt(){var zt;(0,ae.Z)(this,Mt);for(var be=arguments.length,De=new Array(be),fe=0;fe<be;fe++)De[fe]=arguments[fe];return zt=Dt.call.apply(Dt,[this].concat(De)),zt.destroyed=!1,zt.delayedDragEnterLogic=void 0,zt.loadingRetryTimes={},zt.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,Ae.w$)()},zt.dragStartMousePosition=null,zt.dragNode=void 0,zt.currentMouseOverDroppableNodeKey=null,zt.listRef=tt.createRef(),zt.onNodeDragStart=function(Ce,te){var Ct=zt.state,yt=Ct.expandedKeys,$t=Ct.keyEntities,xe=zt.props.onDragStart,Rt=te.props.eventKey;zt.dragNode=te,zt.dragStartMousePosition={x:Ce.clientX,y:Ce.clientY};var je=(0,Wn._5)(yt,Rt);zt.setState({draggingNodeKey:Rt,dragChildrenKeys:(0,Wn.wA)(Rt,$t),indent:zt.listRef.current.getIndentWidth()}),zt.setExpandedKeys(je),window.addEventListener("dragend",zt.onWindowDragEnd),xe==null||xe({event:Ce,node:(0,Ae.F)(te.props)})},zt.onNodeDragEnter=function(Ce,te){var Ct=zt.state,yt=Ct.expandedKeys,$t=Ct.keyEntities,xe=Ct.dragChildrenKeys,Rt=Ct.flattenNodes,je=Ct.indent,fn=zt.props,jn=fn.onDragEnter,bn=fn.onExpand,ci=fn.allowDrop,Ji=fn.direction,zi=te.props,dr=zi.pos,Fr=zi.eventKey,oo=(0,kt.Z)(zt),Jr=oo.dragNode;if(zt.currentMouseOverDroppableNodeKey!==Fr&&(zt.currentMouseOverDroppableNodeKey=Fr),!Jr){zt.resetDragState();return}var zr=(0,Wn.OM)(Ce,Jr,te,je,zt.dragStartMousePosition,ci,Rt,$t,yt,Ji),pr=zr.dropPosition,Kr=zr.dropLevelOffset,hr=zr.dropTargetKey,Mo=zr.dropContainerKey,Xo=zr.dropTargetPos,mo=zr.dropAllowed,Ts=zr.dragOverNodeKey;if(xe.indexOf(hr)!==-1||!mo){zt.resetDragState();return}if(zt.delayedDragEnterLogic||(zt.delayedDragEnterLogic={}),Object.keys(zt.delayedDragEnterLogic).forEach(function(ws){clearTimeout(zt.delayedDragEnterLogic[ws])}),Jr.props.eventKey!==te.props.eventKey&&(Ce.persist(),zt.delayedDragEnterLogic[dr]=window.setTimeout(function(){if(zt.state.draggingNodeKey!==null){var ws=(0,ie.Z)(yt),Vt=(0,an.Z)($t,te.props.eventKey);Vt&&(Vt.children||[]).length&&(ws=(0,Wn.L0)(yt,te.props.eventKey)),"expandedKeys"in zt.props||zt.setExpandedKeys(ws),bn==null||bn(ws,{node:(0,Ae.F)(te.props),expanded:!0,nativeEvent:Ce.nativeEvent})}},800)),Jr.props.eventKey===hr&&Kr===0){zt.resetDragState();return}zt.setState({dragOverNodeKey:Ts,dropPosition:pr,dropLevelOffset:Kr,dropTargetKey:hr,dropContainerKey:Mo,dropTargetPos:Xo,dropAllowed:mo}),jn==null||jn({event:Ce,node:(0,Ae.F)(te.props),expandedKeys:yt})},zt.onNodeDragOver=function(Ce,te){var Ct=zt.state,yt=Ct.dragChildrenKeys,$t=Ct.flattenNodes,xe=Ct.keyEntities,Rt=Ct.expandedKeys,je=Ct.indent,fn=zt.props,jn=fn.onDragOver,bn=fn.allowDrop,ci=fn.direction,Ji=(0,kt.Z)(zt),zi=Ji.dragNode;if(zi){var dr=(0,Wn.OM)(Ce,zi,te,je,zt.dragStartMousePosition,bn,$t,xe,Rt,ci),Fr=dr.dropPosition,oo=dr.dropLevelOffset,Jr=dr.dropTargetKey,zr=dr.dropContainerKey,pr=dr.dropAllowed,Kr=dr.dropTargetPos,hr=dr.dragOverNodeKey;yt.indexOf(Jr)!==-1||!pr||(zi.props.eventKey===Jr&&oo===0?zt.state.dropPosition===null&&zt.state.dropLevelOffset===null&&zt.state.dropTargetKey===null&&zt.state.dropContainerKey===null&&zt.state.dropTargetPos===null&&zt.state.dropAllowed===!1&&zt.state.dragOverNodeKey===null||zt.resetDragState():Fr===zt.state.dropPosition&&oo===zt.state.dropLevelOffset&&Jr===zt.state.dropTargetKey&&zr===zt.state.dropContainerKey&&Kr===zt.state.dropTargetPos&&pr===zt.state.dropAllowed&&hr===zt.state.dragOverNodeKey||zt.setState({dropPosition:Fr,dropLevelOffset:oo,dropTargetKey:Jr,dropContainerKey:zr,dropTargetPos:Kr,dropAllowed:pr,dragOverNodeKey:hr}),jn==null||jn({event:Ce,node:(0,Ae.F)(te.props)}))}},zt.onNodeDragLeave=function(Ce,te){zt.currentMouseOverDroppableNodeKey===te.props.eventKey&&!Ce.currentTarget.contains(Ce.relatedTarget)&&(zt.resetDragState(),zt.currentMouseOverDroppableNodeKey=null);var Ct=zt.props.onDragLeave;Ct==null||Ct({event:Ce,node:(0,Ae.F)(te.props)})},zt.onWindowDragEnd=function(Ce){zt.onNodeDragEnd(Ce,null,!0),window.removeEventListener("dragend",zt.onWindowDragEnd)},zt.onNodeDragEnd=function(Ce,te){var Ct=zt.props.onDragEnd;zt.setState({dragOverNodeKey:null}),zt.cleanDragState(),Ct==null||Ct({event:Ce,node:(0,Ae.F)(te.props)}),zt.dragNode=null,window.removeEventListener("dragend",zt.onWindowDragEnd)},zt.onNodeDrop=function(Ce,te){var Ct,yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,$t=zt.state,xe=$t.dragChildrenKeys,Rt=$t.dropPosition,je=$t.dropTargetKey,fn=$t.dropTargetPos,jn=$t.dropAllowed;if(jn){var bn=zt.props.onDrop;if(zt.setState({dragOverNodeKey:null}),zt.cleanDragState(),je!==null){var ci=(0,Me.Z)((0,Me.Z)({},(0,Ae.H8)(je,zt.getTreeNodeRequiredProps())),{},{active:((Ct=zt.getActiveItem())===null||Ct===void 0?void 0:Ct.key)===je,data:(0,an.Z)(zt.state.keyEntities,je).node}),Ji=xe.indexOf(je)!==-1;(0,et.ZP)(!Ji,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var zi=(0,Wn.yx)(fn),dr={event:Ce,node:(0,Ae.F)(ci),dragNode:zt.dragNode?(0,Ae.F)(zt.dragNode.props):null,dragNodesKeys:[zt.dragNode.props.eventKey].concat(xe),dropToGap:Rt!==0,dropPosition:Rt+Number(zi[zi.length-1])};yt||bn==null||bn(dr),zt.dragNode=null}}},zt.cleanDragState=function(){var Ce=zt.state.draggingNodeKey;Ce!==null&&zt.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),zt.dragStartMousePosition=null,zt.currentMouseOverDroppableNodeKey=null},zt.triggerExpandActionExpand=function(Ce,te){var Ct=zt.state,yt=Ct.expandedKeys,$t=Ct.flattenNodes,xe=te.expanded,Rt=te.key,je=te.isLeaf;if(!(je||Ce.shiftKey||Ce.metaKey||Ce.ctrlKey)){var fn=$t.filter(function(bn){return bn.key===Rt})[0],jn=(0,Ae.F)((0,Me.Z)((0,Me.Z)({},(0,Ae.H8)(Rt,zt.getTreeNodeRequiredProps())),{},{data:fn.data}));zt.setExpandedKeys(xe?(0,Wn._5)(yt,Rt):(0,Wn.L0)(yt,Rt)),zt.onNodeExpand(Ce,jn)}},zt.onNodeClick=function(Ce,te){var Ct=zt.props,yt=Ct.onClick,$t=Ct.expandAction;$t==="click"&&zt.triggerExpandActionExpand(Ce,te),yt==null||yt(Ce,te)},zt.onNodeDoubleClick=function(Ce,te){var Ct=zt.props,yt=Ct.onDoubleClick,$t=Ct.expandAction;$t==="doubleClick"&&zt.triggerExpandActionExpand(Ce,te),yt==null||yt(Ce,te)},zt.onNodeSelect=function(Ce,te){var Ct=zt.state.selectedKeys,yt=zt.state,$t=yt.keyEntities,xe=yt.fieldNames,Rt=zt.props,je=Rt.onSelect,fn=Rt.multiple,jn=te.selected,bn=te[xe.key],ci=!jn;ci?fn?Ct=(0,Wn.L0)(Ct,bn):Ct=[bn]:Ct=(0,Wn._5)(Ct,bn);var Ji=Ct.map(function(zi){var dr=(0,an.Z)($t,zi);return dr?dr.node:null}).filter(function(zi){return zi});zt.setUncontrolledState({selectedKeys:Ct}),je==null||je(Ct,{event:"select",selected:ci,node:te,selectedNodes:Ji,nativeEvent:Ce.nativeEvent})},zt.onNodeCheck=function(Ce,te,Ct){var yt=zt.state,$t=yt.keyEntities,xe=yt.checkedKeys,Rt=yt.halfCheckedKeys,je=zt.props,fn=je.checkStrictly,jn=je.onCheck,bn=te.key,ci,Ji={event:"check",node:te,checked:Ct,nativeEvent:Ce.nativeEvent};if(fn){var zi=Ct?(0,Wn.L0)(xe,bn):(0,Wn._5)(xe,bn),dr=(0,Wn._5)(Rt,bn);ci={checked:zi,halfChecked:dr},Ji.checkedNodes=zi.map(function(Kr){return(0,an.Z)($t,Kr)}).filter(function(Kr){return Kr}).map(function(Kr){return Kr.node}),zt.setUncontrolledState({checkedKeys:zi})}else{var Fr=(0,Si.S)([].concat((0,ie.Z)(xe),[bn]),!0,$t),oo=Fr.checkedKeys,Jr=Fr.halfCheckedKeys;if(!Ct){var zr=new Set(oo);zr.delete(bn);var pr=(0,Si.S)(Array.from(zr),{checked:!1,halfCheckedKeys:Jr},$t);oo=pr.checkedKeys,Jr=pr.halfCheckedKeys}ci=oo,Ji.checkedNodes=[],Ji.checkedNodesPositions=[],Ji.halfCheckedKeys=Jr,oo.forEach(function(Kr){var hr=(0,an.Z)($t,Kr);if(hr){var Mo=hr.node,Xo=hr.pos;Ji.checkedNodes.push(Mo),Ji.checkedNodesPositions.push({node:Mo,pos:Xo})}}),zt.setUncontrolledState({checkedKeys:oo},!1,{halfCheckedKeys:Jr})}jn==null||jn(ci,Ji)},zt.onNodeLoad=function(Ce){var te=Ce.key,Ct=new Promise(function(yt,$t){zt.setState(function(xe){var Rt=xe.loadedKeys,je=Rt===void 0?[]:Rt,fn=xe.loadingKeys,jn=fn===void 0?[]:fn,bn=zt.props,ci=bn.loadData,Ji=bn.onLoad;if(!ci||je.indexOf(te)!==-1||jn.indexOf(te)!==-1)return null;var zi=ci(Ce);return zi.then(function(){var dr=zt.state.loadedKeys,Fr=(0,Wn.L0)(dr,te);Ji==null||Ji(Fr,{event:"load",node:Ce}),zt.setUncontrolledState({loadedKeys:Fr}),zt.setState(function(oo){return{loadingKeys:(0,Wn._5)(oo.loadingKeys,te)}}),yt()}).catch(function(dr){if(zt.setState(function(oo){return{loadingKeys:(0,Wn._5)(oo.loadingKeys,te)}}),zt.loadingRetryTimes[te]=(zt.loadingRetryTimes[te]||0)+1,zt.loadingRetryTimes[te]>=Li){var Fr=zt.state.loadedKeys;(0,et.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),zt.setUncontrolledState({loadedKeys:(0,Wn.L0)(Fr,te)}),yt()}$t(dr)}),{loadingKeys:(0,Wn.L0)(jn,te)}})});return Ct.catch(function(){}),Ct},zt.onNodeMouseEnter=function(Ce,te){var Ct=zt.props.onMouseEnter;Ct==null||Ct({event:Ce,node:te})},zt.onNodeMouseLeave=function(Ce,te){var Ct=zt.props.onMouseLeave;Ct==null||Ct({event:Ce,node:te})},zt.onNodeContextMenu=function(Ce,te){var Ct=zt.props.onRightClick;Ct&&(Ce.preventDefault(),Ct({event:Ce,node:te}))},zt.onFocus=function(){var Ce=zt.props.onFocus;zt.setState({focused:!0});for(var te=arguments.length,Ct=new Array(te),yt=0;yt<te;yt++)Ct[yt]=arguments[yt];Ce==null||Ce.apply(void 0,Ct)},zt.onBlur=function(){var Ce=zt.props.onBlur;zt.setState({focused:!1}),zt.onActiveChange(null);for(var te=arguments.length,Ct=new Array(te),yt=0;yt<te;yt++)Ct[yt]=arguments[yt];Ce==null||Ce.apply(void 0,Ct)},zt.getTreeNodeRequiredProps=function(){var Ce=zt.state,te=Ce.expandedKeys,Ct=Ce.selectedKeys,yt=Ce.loadedKeys,$t=Ce.loadingKeys,xe=Ce.checkedKeys,Rt=Ce.halfCheckedKeys,je=Ce.dragOverNodeKey,fn=Ce.dropPosition,jn=Ce.keyEntities;return{expandedKeys:te||[],selectedKeys:Ct||[],loadedKeys:yt||[],loadingKeys:$t||[],checkedKeys:xe||[],halfCheckedKeys:Rt||[],dragOverNodeKey:je,dropPosition:fn,keyEntities:jn}},zt.setExpandedKeys=function(Ce){var te=zt.state,Ct=te.treeData,yt=te.fieldNames,$t=(0,Ae.oH)(Ct,Ce,yt);zt.setUncontrolledState({expandedKeys:Ce,flattenNodes:$t},!0)},zt.onNodeExpand=function(Ce,te){var Ct=zt.state.expandedKeys,yt=zt.state,$t=yt.listChanging,xe=yt.fieldNames,Rt=zt.props,je=Rt.onExpand,fn=Rt.loadData,jn=te.expanded,bn=te[xe.key];if(!$t){var ci=Ct.indexOf(bn),Ji=!jn;if((0,et.ZP)(jn&&ci!==-1||!jn&&ci===-1,"Expand state not sync with index check"),Ji?Ct=(0,Wn.L0)(Ct,bn):Ct=(0,Wn._5)(Ct,bn),zt.setExpandedKeys(Ct),je==null||je(Ct,{node:te,expanded:Ji,nativeEvent:Ce.nativeEvent}),Ji&&fn){var zi=zt.onNodeLoad(te);zi&&zi.then(function(){var dr=(0,Ae.oH)(zt.state.treeData,Ct,xe);zt.setUncontrolledState({flattenNodes:dr})}).catch(function(){var dr=zt.state.expandedKeys,Fr=(0,Wn._5)(dr,bn);zt.setExpandedKeys(Fr)})}}},zt.onListChangeStart=function(){zt.setUncontrolledState({listChanging:!0})},zt.onListChangeEnd=function(){setTimeout(function(){zt.setUncontrolledState({listChanging:!1})})},zt.onActiveChange=function(Ce){var te=zt.state.activeKey,Ct=zt.props.onActiveChange;te!==Ce&&(zt.setState({activeKey:Ce}),Ce!==null&&zt.scrollTo({key:Ce}),Ct==null||Ct(Ce))},zt.getActiveItem=function(){var Ce=zt.state,te=Ce.activeKey,Ct=Ce.flattenNodes;return te===null?null:Ct.find(function(yt){var $t=yt.key;return $t===te})||null},zt.offsetActiveKey=function(Ce){var te=zt.state,Ct=te.flattenNodes,yt=te.activeKey,$t=Ct.findIndex(function(je){var fn=je.key;return fn===yt});$t===-1&&Ce<0&&($t=Ct.length),$t=($t+Ce+Ct.length)%Ct.length;var xe=Ct[$t];if(xe){var Rt=xe.key;zt.onActiveChange(Rt)}else zt.onActiveChange(null)},zt.onKeyDown=function(Ce){var te=zt.state,Ct=te.activeKey,yt=te.expandedKeys,$t=te.checkedKeys,xe=te.fieldNames,Rt=zt.props,je=Rt.onKeyDown,fn=Rt.checkable,jn=Rt.selectable;switch(Ce.which){case qt.Z.UP:{zt.offsetActiveKey(-1),Ce.preventDefault();break}case qt.Z.DOWN:{zt.offsetActiveKey(1),Ce.preventDefault();break}}var bn=zt.getActiveItem();if(bn&&bn.data){var ci=zt.getTreeNodeRequiredProps(),Ji=bn.data.isLeaf===!1||!!(bn.data[xe.children]||[]).length,zi=(0,Ae.F)((0,Me.Z)((0,Me.Z)({},(0,Ae.H8)(Ct,ci)),{},{data:bn.data,active:!0}));switch(Ce.which){case qt.Z.LEFT:{Ji&&yt.includes(Ct)?zt.onNodeExpand({},zi):bn.parent&&zt.onActiveChange(bn.parent.key),Ce.preventDefault();break}case qt.Z.RIGHT:{Ji&&!yt.includes(Ct)?zt.onNodeExpand({},zi):bn.children&&bn.children.length&&zt.onActiveChange(bn.children[0].key),Ce.preventDefault();break}case qt.Z.ENTER:case qt.Z.SPACE:{fn&&!zi.disabled&&zi.checkable!==!1&&!zi.disableCheckbox?zt.onNodeCheck({},zi,!$t.includes(Ct)):!fn&&jn&&!zi.disabled&&zi.selectable!==!1&&zt.onNodeSelect({},zi);break}}}je==null||je(Ce)},zt.setUncontrolledState=function(Ce){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!zt.destroyed){var yt=!1,$t=!0,xe={};Object.keys(Ce).forEach(function(Rt){if(Rt in zt.props){$t=!1;return}yt=!0,xe[Rt]=Ce[Rt]}),yt&&(!te||$t)&&zt.setState((0,Me.Z)((0,Me.Z)({},xe),Ct))}},zt.scrollTo=function(Ce){zt.listRef.current.scrollTo(Ce)},zt}return(0,Lt.Z)(Mt,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var be=this.props.activeKey;be!==void 0&&be!==this.state.activeKey&&(this.setState({activeKey:be}),be!==null&&this.scrollTo({key:be}))}},{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 be,De=this.state,fe=De.focused,Ce=De.flattenNodes,te=De.keyEntities,Ct=De.draggingNodeKey,yt=De.activeKey,$t=De.dropLevelOffset,xe=De.dropContainerKey,Rt=De.dropTargetKey,je=De.dropPosition,fn=De.dragOverNodeKey,jn=De.indent,bn=this.props,ci=bn.prefixCls,Ji=bn.className,zi=bn.style,dr=bn.showLine,Fr=bn.focusable,oo=bn.tabIndex,Jr=oo===void 0?0:oo,zr=bn.selectable,pr=bn.showIcon,Kr=bn.icon,hr=bn.switcherIcon,Mo=bn.draggable,Xo=bn.checkable,mo=bn.checkStrictly,Ts=bn.disabled,ws=bn.motion,Vt=bn.loadData,xs=bn.filterTreeNode,Ss=bn.height,Ms=bn.itemHeight,ma=bn.virtual,Ea=bn.titleRender,oa=bn.dropIndicatorRender,ao=bn.onContextMenu,br=bn.onScroll,Un=bn.direction,On=bn.rootClassName,Re=bn.rootStyle,hi=(0,wt.Z)(this.props,{aria:!0,data:!0}),en;return Mo&&((0,se.Z)(Mo)==="object"?en=Mo:typeof Mo=="function"?en={nodeDraggable:Mo}:en={}),tt.createElement(lt.k.Provider,{value:{prefixCls:ci,selectable:zr,showIcon:pr,icon:Kr,switcherIcon:hr,draggable:en,draggingNodeKey:Ct,checkable:Xo,checkStrictly:mo,disabled:Ts,keyEntities:te,dropLevelOffset:$t,dropContainerKey:xe,dropTargetKey:Rt,dropPosition:je,dragOverNodeKey:fn,indent:jn,direction:Un,dropIndicatorRender:oa,loadData:Vt,filterTreeNode:xs,titleRender:Ea,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}},tt.createElement("div",{role:"tree",className:Gt()(ci,Ji,On,(be={},(0,ge.Z)(be,"".concat(ci,"-show-line"),dr),(0,ge.Z)(be,"".concat(ci,"-focused"),fe),(0,ge.Z)(be,"".concat(ci,"-active-focused"),yt!==null),be)),style:Re},tt.createElement(Ai,(0,bt.Z)({ref:this.listRef,prefixCls:ci,style:zi,data:Ce,disabled:Ts,selectable:zr,checkable:!!Xo,motion:ws,dragging:Ct!==null,height:Ss,itemHeight:Ms,virtual:ma,focusable:Fr,focused:fe,tabIndex:Jr,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:ao,onScroll:br},this.getTreeNodeRequiredProps(),hi))))}}],[{key:"getDerivedStateFromProps",value:function(be,De){var fe=De.prevProps,Ce={prevProps:be};function te(Fr){return!fe&&Fr in be||fe&&fe[Fr]!==be[Fr]}var Ct,yt=De.fieldNames;if(te("fieldNames")&&(yt=(0,Ae.w$)(be.fieldNames),Ce.fieldNames=yt),te("treeData")?Ct=be.treeData:te("children")&&((0,et.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Ct=(0,Ae.zn)(be.children)),Ct){Ce.treeData=Ct;var $t=(0,Ae.I8)(Ct,{fieldNames:yt});Ce.keyEntities=(0,Me.Z)((0,ge.Z)({},we,Pe),$t.keyEntities)}var xe=Ce.keyEntities||De.keyEntities;if(te("expandedKeys")||fe&&te("autoExpandParent"))Ce.expandedKeys=be.autoExpandParent||!fe&&be.defaultExpandParent?(0,Wn.r7)(be.expandedKeys,xe):be.expandedKeys;else if(!fe&&be.defaultExpandAll){var Rt=(0,Me.Z)({},xe);delete Rt[we],Ce.expandedKeys=Object.keys(Rt).map(function(Fr){return Rt[Fr].key})}else!fe&&be.defaultExpandedKeys&&(Ce.expandedKeys=be.autoExpandParent||be.defaultExpandParent?(0,Wn.r7)(be.defaultExpandedKeys,xe):be.defaultExpandedKeys);if(Ce.expandedKeys||delete Ce.expandedKeys,Ct||Ce.expandedKeys){var je=(0,Ae.oH)(Ct||De.treeData,Ce.expandedKeys||De.expandedKeys,yt);Ce.flattenNodes=je}if(be.selectable&&(te("selectedKeys")?Ce.selectedKeys=(0,Wn.BT)(be.selectedKeys,be):!fe&&be.defaultSelectedKeys&&(Ce.selectedKeys=(0,Wn.BT)(be.defaultSelectedKeys,be))),be.checkable){var fn;if(te("checkedKeys")?fn=(0,Wn.E6)(be.checkedKeys)||{}:!fe&&be.defaultCheckedKeys?fn=(0,Wn.E6)(be.defaultCheckedKeys)||{}:Ct&&(fn=(0,Wn.E6)(be.checkedKeys)||{checkedKeys:De.checkedKeys,halfCheckedKeys:De.halfCheckedKeys}),fn){var jn=fn,bn=jn.checkedKeys,ci=bn===void 0?[]:bn,Ji=jn.halfCheckedKeys,zi=Ji===void 0?[]:Ji;if(!be.checkStrictly){var dr=(0,Si.S)(ci,!0,xe);ci=dr.checkedKeys,zi=dr.halfCheckedKeys}Ce.checkedKeys=ci,Ce.halfCheckedKeys=zi}}return te("loadedKeys")&&(Ce.loadedKeys=be.loadedKeys),Ce}}]),Mt}(tt.Component);Oi.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:rt,allowDrop:function(){return!0},expandAction:!1},Oi.TreeNode=re.Z;var ue=Oi,Pn=ue},35654:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{BT:function(){return tt},E6:function(){return ut},L0:function(){return St},OM:function(){return et},_5:function(){return Jt},r7:function(){return dt},wA:function(){return Gt},yx:function(){return Wt}});var bt=Bt(80702),ge=Bt(62853),se=Bt(48736),Me=Bt(59301),ie=Bt(39417),ae=Bt(67841),Lt=Bt(71430),kt=null;function Jt(pt,Ft){if(!pt)return[];var Tt=pt.slice(),_t=Tt.indexOf(Ft);return _t>=0&&Tt.splice(_t,1),Tt}function St(pt,Ft){var Tt=(pt||[]).slice();return Tt.indexOf(Ft)===-1&&Tt.push(Ft),Tt}function Wt(pt){return pt.split("-")}function Gt(pt,Ft){var Tt=[],_t=(0,ae.Z)(Ft,pt);function re(){var he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];he.forEach(function(Ae){var Fe=Ae.key,ee=Ae.children;Tt.push(Fe),re(ee)})}return re(_t.children),Tt}function qt(pt){if(pt.parent){var Ft=Wt(pt.pos);return Number(Ft[Ft.length-1])===pt.parent.children.length-1}return!1}function wt(pt){var Ft=Wt(pt.pos);return Number(Ft[Ft.length-1])===0}function et(pt,Ft,Tt,_t,re,he,Ae,Fe,ee,We){var Yt,qe=pt.clientX,Ge=pt.clientY,Oe=pt.target.getBoundingClientRect(),Ze=Oe.top,Qe=Oe.height,we=(We==="rtl"?-1:1)*(((re==null?void 0:re.x)||0)-qe),oe=(we-12)/_t,Pe=(0,ae.Z)(Fe,Tt.props.eventKey);if(Ge<Ze+Qe/2){var En=Ae.findIndex(function(Pn){return Pn.key===Pe.key}),Nn=En<=0?0:En-1,Xe=Ae[Nn].key;Pe=(0,ae.Z)(Fe,Xe)}var kn=Pe.key,Vn=Pe,Ai=Pe.key,Wn=0,Si=0;if(!ee.includes(kn))for(var an=0;an<oe&&qt(Pe);an+=1)Pe=Pe.parent,Si+=1;var Li=Ft.props.data,Oi=Pe.node,ue=!0;return wt(Pe)&&Pe.level===0&&Ge<Ze+Qe/2&&he({dragNode:Li,dropNode:Oi,dropPosition:-1})&&Pe.key===Tt.props.eventKey?Wn=-1:(Vn.children||[]).length&&ee.includes(Ai)?he({dragNode:Li,dropNode:Oi,dropPosition:0})?Wn=0:ue=!1:Si===0?oe>-1.5?he({dragNode:Li,dropNode:Oi,dropPosition:1})?Wn=1:ue=!1:he({dragNode:Li,dropNode:Oi,dropPosition:0})?Wn=0:he({dragNode:Li,dropNode:Oi,dropPosition:1})?Wn=1:ue=!1:he({dragNode:Li,dropNode:Oi,dropPosition:1})?Wn=1:ue=!1,{dropPosition:Wn,dropLevelOffset:Si,dropTargetKey:Pe.key,dropTargetPos:Pe.pos,dragOverNodeKey:Ai,dropContainerKey:Wn===0?null:((Yt=Pe.parent)===null||Yt===void 0?void 0:Yt.key)||null,dropAllowed:ue}}function tt(pt,Ft){if(pt){var Tt=Ft.multiple;return Tt?pt.slice():pt.length?[pt[0]]:pt}}var lt=function(Ft){return Ft};function rt(pt,Ft){if(!pt)return[];var Tt=Ft||{},_t=Tt.processProps,re=_t===void 0?lt:_t,he=Array.isArray(pt)?pt:[pt];return he.map(function(Ae){var Fe=Ae.children,ee=_objectWithoutProperties(Ae,kt),We=rt(Fe,Ft);return React.createElement(TreeNode,_extends({key:ee.key},re(ee)),We)})}function ut(pt){if(!pt)return null;var Ft;if(Array.isArray(pt))Ft={checkedKeys:pt,halfCheckedKeys:void 0};else if((0,ge.Z)(pt)==="object")Ft={checkedKeys:pt.checked||void 0,halfCheckedKeys:pt.halfChecked||void 0};else return(0,se.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Ft}function dt(pt,Ft){var Tt=new Set;function _t(re){if(!Tt.has(re)){var he=(0,ae.Z)(Ft,re);if(he){Tt.add(re);var Ae=he.parent,Fe=he.node;Fe.disabled||Ae&&_t(Ae.key)}}}return(pt||[]).forEach(function(re){_t(re)}),(0,bt.Z)(Tt)}},90782:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{S:function(){return Lt}});var bt=Bt(48736),ge=Bt(67841);function se(kt,Jt){var St=new Set;return kt.forEach(function(Wt){Jt.has(Wt)||St.add(Wt)}),St}function Me(kt){var Jt=kt||{},St=Jt.disabled,Wt=Jt.disableCheckbox,Gt=Jt.checkable;return!!(St||Wt)||Gt===!1}function ie(kt,Jt,St,Wt){for(var Gt=new Set(kt),qt=new Set,wt=0;wt<=St;wt+=1){var et=Jt.get(wt)||new Set;et.forEach(function(ut){var dt=ut.key,pt=ut.node,Ft=ut.children,Tt=Ft===void 0?[]:Ft;Gt.has(dt)&&!Wt(pt)&&Tt.filter(function(_t){return!Wt(_t.node)}).forEach(function(_t){Gt.add(_t.key)})})}for(var tt=new Set,lt=St;lt>=0;lt-=1){var rt=Jt.get(lt)||new Set;rt.forEach(function(ut){var dt=ut.parent,pt=ut.node;if(!(Wt(pt)||!ut.parent||tt.has(ut.parent.key))){if(Wt(ut.parent.node)){tt.add(dt.key);return}var Ft=!0,Tt=!1;(dt.children||[]).filter(function(_t){return!Wt(_t.node)}).forEach(function(_t){var re=_t.key,he=Gt.has(re);Ft&&!he&&(Ft=!1),!Tt&&(he||qt.has(re))&&(Tt=!0)}),Ft&&Gt.add(dt.key),Tt&&qt.add(dt.key),tt.add(dt.key)}})}return{checkedKeys:Array.from(Gt),halfCheckedKeys:Array.from(se(qt,Gt))}}function ae(kt,Jt,St,Wt,Gt){for(var qt=new Set(kt),wt=new Set(Jt),et=0;et<=Wt;et+=1){var tt=St.get(et)||new Set;tt.forEach(function(dt){var pt=dt.key,Ft=dt.node,Tt=dt.children,_t=Tt===void 0?[]:Tt;!qt.has(pt)&&!wt.has(pt)&&!Gt(Ft)&&_t.filter(function(re){return!Gt(re.node)}).forEach(function(re){qt.delete(re.key)})})}wt=new Set;for(var lt=new Set,rt=Wt;rt>=0;rt-=1){var ut=St.get(rt)||new Set;ut.forEach(function(dt){var pt=dt.parent,Ft=dt.node;if(!(Gt(Ft)||!dt.parent||lt.has(dt.parent.key))){if(Gt(dt.parent.node)){lt.add(pt.key);return}var Tt=!0,_t=!1;(pt.children||[]).filter(function(re){return!Gt(re.node)}).forEach(function(re){var he=re.key,Ae=qt.has(he);Tt&&!Ae&&(Tt=!1),!_t&&(Ae||wt.has(he))&&(_t=!0)}),Tt||qt.delete(pt.key),_t&&wt.add(pt.key),lt.add(pt.key)}})}return{checkedKeys:Array.from(qt),halfCheckedKeys:Array.from(se(wt,qt))}}function Lt(kt,Jt,St,Wt){var Gt=[],qt;Wt?qt=Wt:qt=Me;var wt=new Set(kt.filter(function(rt){var ut=!!(0,ge.Z)(St,rt);return ut||Gt.push(rt),ut})),et=new Map,tt=0;Object.keys(St).forEach(function(rt){var ut=St[rt],dt=ut.level,pt=et.get(dt);pt||(pt=new Set,et.set(dt,pt)),pt.add(ut),tt=Math.max(tt,dt)}),(0,bt.ZP)(!Gt.length,"Tree missing follow keys: ".concat(Gt.slice(0,100).map(function(rt){return"'".concat(rt,"'")}).join(", ")));var lt;return Jt===!0?lt=ie(wt,et,tt,qt):lt=ae(wt,Jt.halfCheckedKeys,et,tt,qt),lt}},67841:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return bt}});function bt(ge,se){return ge[se]}},71430:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{F:function(){return dt},H8:function(){return ut},I8:function(){return rt},km:function(){return Gt},oH:function(){return tt},w$:function(){return qt},zn:function(){return et}});var bt=Bt(62853),ge=Bt(80702),se=Bt(77321),Me=Bt(74416),ie=Bt(11592),ae=Bt(2738),Lt=Bt(48736),kt=Bt(67841),Jt=["children"];function St(pt,Ft){return"".concat(pt,"-").concat(Ft)}function Wt(pt){return pt&&pt.type&&pt.type.isTreeNode}function Gt(pt,Ft){return pt!=null?pt:Ft}function qt(pt){var Ft=pt||{},Tt=Ft.title,_t=Ft._title,re=Ft.key,he=Ft.children,Ae=Tt||"title";return{title:Ae,_title:_t||[Ae],key:re||"key",children:he||"children"}}function wt(pt,Ft){var Tt=new Map;function _t(re){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(re||[]).forEach(function(Ae){var Fe=Ae[Ft.key],ee=Ae[Ft.children];warning(Fe!=null,"Tree node must have a certain key: [".concat(he).concat(Fe,"]"));var We=String(Fe);warning(!Tt.has(We)||Fe===null||Fe===void 0,"Same 'key' exist in the Tree: ".concat(We)),Tt.set(We,!0),_t(ee,"".concat(he).concat(We," > "))})}_t(pt)}function et(pt){function Ft(Tt){var _t=(0,ie.Z)(Tt);return _t.map(function(re){if(!Wt(re))return(0,Lt.ZP)(!re,"Tree/TreeNode can only accept TreeNode as children."),null;var he=re.key,Ae=re.props,Fe=Ae.children,ee=(0,Me.Z)(Ae,Jt),We=(0,se.Z)({key:he},ee),Yt=Ft(Fe);return Yt.length&&(We.children=Yt),We}).filter(function(re){return re})}return Ft(pt)}function tt(pt,Ft,Tt){var _t=qt(Tt),re=_t._title,he=_t.key,Ae=_t.children,Fe=new Set(Ft===!0?[]:Ft),ee=[];function We(Yt){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Yt.map(function(Ge,Oe){for(var Ze=St(qe?qe.pos:"0",Oe),Qe=Gt(Ge[he],Ze),we,oe=0;oe<re.length;oe+=1){var Pe=re[oe];if(Ge[Pe]!==void 0){we=Ge[Pe];break}}var En=(0,se.Z)((0,se.Z)({},(0,ae.Z)(Ge,[].concat((0,ge.Z)(re),[he,Ae]))),{},{title:we,key:Qe,parent:qe,pos:Ze,children:null,data:Ge,isStart:[].concat((0,ge.Z)(qe?qe.isStart:[]),[Oe===0]),isEnd:[].concat((0,ge.Z)(qe?qe.isEnd:[]),[Oe===Yt.length-1])});return ee.push(En),Ft===!0||Fe.has(Qe)?En.children=We(Ge[Ae]||[],En):En.children=[],En})}return We(pt),ee}function lt(pt,Ft,Tt){var _t={};(0,bt.Z)(Tt)==="object"?_t=Tt:_t={externalGetKey:Tt},_t=_t||{};var re=_t,he=re.childrenPropName,Ae=re.externalGetKey,Fe=re.fieldNames,ee=qt(Fe),We=ee.key,Yt=ee.children,qe=he||Yt,Ge;Ae?typeof Ae=="string"?Ge=function(Qe){return Qe[Ae]}:typeof Ae=="function"&&(Ge=function(Qe){return Ae(Qe)}):Ge=function(Qe,we){return Gt(Qe[We],we)};function Oe(Ze,Qe,we,oe){var Pe=Ze?Ze[qe]:pt,En=Ze?St(we.pos,Qe):"0",Nn=Ze?[].concat((0,ge.Z)(oe),[Ze]):[];if(Ze){var Xe=Ge(Ze,En),kn={node:Ze,index:Qe,pos:En,key:Xe,parentPos:we.node?we.pos:null,level:we.level+1,nodes:Nn};Ft(kn)}Pe&&Pe.forEach(function(Vn,Ai){Oe(Vn,Ai,{node:Ze,pos:En,level:we?we.level+1:-1},Nn)})}Oe(null)}function rt(pt){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Tt=Ft.initWrapper,_t=Ft.processEntity,re=Ft.onProcessFinished,he=Ft.externalGetKey,Ae=Ft.childrenPropName,Fe=Ft.fieldNames,ee=arguments.length>2?arguments[2]:void 0,We=he||ee,Yt={},qe={},Ge={posEntities:Yt,keyEntities:qe};return Tt&&(Ge=Tt(Ge)||Ge),lt(pt,function(Oe){var Ze=Oe.node,Qe=Oe.index,we=Oe.pos,oe=Oe.key,Pe=Oe.parentPos,En=Oe.level,Nn=Oe.nodes,Xe={node:Ze,nodes:Nn,index:Qe,key:oe,pos:we,level:En},kn=Gt(oe,we);Yt[we]=Xe,qe[kn]=Xe,Xe.parent=Yt[Pe],Xe.parent&&(Xe.parent.children=Xe.parent.children||[],Xe.parent.children.push(Xe)),_t&&_t(Xe,Ge)},{externalGetKey:We,childrenPropName:Ae,fieldNames:Fe}),re&&re(Ge),Ge}function ut(pt,Ft){var Tt=Ft.expandedKeys,_t=Ft.selectedKeys,re=Ft.loadedKeys,he=Ft.loadingKeys,Ae=Ft.checkedKeys,Fe=Ft.halfCheckedKeys,ee=Ft.dragOverNodeKey,We=Ft.dropPosition,Yt=Ft.keyEntities,qe=(0,kt.Z)(Yt,pt),Ge={eventKey:pt,expanded:Tt.indexOf(pt)!==-1,selected:_t.indexOf(pt)!==-1,loaded:re.indexOf(pt)!==-1,loading:he.indexOf(pt)!==-1,checked:Ae.indexOf(pt)!==-1,halfChecked:Fe.indexOf(pt)!==-1,pos:String(qe?qe.pos:""),dragOver:ee===pt&&We===0,dragOverGapTop:ee===pt&&We===-1,dragOverGapBottom:ee===pt&&We===1};return Ge}function dt(pt){var Ft=pt.data,Tt=pt.expanded,_t=pt.selected,re=pt.checked,he=pt.loaded,Ae=pt.loading,Fe=pt.halfChecked,ee=pt.dragOver,We=pt.dragOverGapTop,Yt=pt.dragOverGapBottom,qe=pt.pos,Ge=pt.active,Oe=pt.eventKey,Ze=(0,se.Z)((0,se.Z)({},Ft),{},{expanded:Tt,selected:_t,checked:re,loaded:he,loading:Ae,halfChecked:Fe,dragOver:ee,dragOverGapTop:We,dragOverGapBottom:Yt,pos:qe,active:Ge,key:Oe});return"props"in Ze||Object.defineProperty(Ze,"props",{get:function(){return(0,Lt.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),pt}}),Ze}},8224:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return ge}});var bt=Bt(4676);function ge(se,Me,ie,ae){var Lt=bt.unstable_batchedUpdates?function(Jt){bt.unstable_batchedUpdates(ie,Jt)}:ie;return se!=null&&se.addEventListener&&se.addEventListener(Me,Lt,ae),{remove:function(){se!=null&&se.removeEventListener&&se.removeEventListener(Me,Lt,ae)}}}},55468:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{g1:function(){return Wt},os:function(){return qt}});var bt=/margin|padding|width|height|max|min|offset/,ge={left:!0,top:!0},se={cssFloat:1,styleFloat:1,float:1};function Me(wt){return wt.nodeType===1?wt.ownerDocument.defaultView.getComputedStyle(wt,null):{}}function ie(wt,et,tt){if(et=et.toLowerCase(),tt==="auto"){if(et==="height")return wt.offsetHeight;if(et==="width")return wt.offsetWidth}return et in ge||(ge[et]=bt.test(et)),ge[et]?parseFloat(tt)||0:tt}function ae(wt,et){var tt=arguments.length,lt=Me(wt);return et=se[et]?"cssFloat"in wt.style?"cssFloat":"styleFloat":et,tt===1?lt:ie(wt,et,lt[et]||wt.style[et])}function Lt(wt,et,tt){var lt=arguments.length;if(et=se[et]?"cssFloat"in wt.style?"cssFloat":"styleFloat":et,lt===3)return typeof tt=="number"&&bt.test(et)&&(tt="".concat(tt,"px")),wt.style[et]=tt,tt;for(var rt in et)et.hasOwnProperty(rt)&&Lt(wt,rt,et[rt]);return Me(wt)}function kt(wt){return wt===document.body?document.documentElement.clientWidth:wt.offsetWidth}function Jt(wt){return wt===document.body?window.innerHeight||document.documentElement.clientHeight:wt.offsetHeight}function St(){var wt=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),et=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:wt,height:et}}function Wt(){var wt=document.documentElement.clientWidth,et=window.innerHeight||document.documentElement.clientHeight;return{width:wt,height:et}}function Gt(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function qt(wt){var et=wt.getBoundingClientRect(),tt=document.documentElement;return{left:et.left+(window.pageXOffset||tt.scrollLeft)-(tt.clientLeft||document.body.clientLeft||0),top:et.top+(window.pageYOffset||tt.scrollTop)-(tt.clientTop||document.body.clientTop||0)}}},24514:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{G:function(){return Me}});var bt=Bt(47273),ge=function(ae){if((0,bt.Z)()&&window.document.documentElement){var Lt=Array.isArray(ae)?ae:[ae],kt=window.document.documentElement;return Lt.some(function(Jt){return Jt in kt.style})}return!1},se=function(ae,Lt){if(!ge(ae))return!1;var kt=document.createElement("div"),Jt=kt.style[ae];return kt.style[ae]=Lt,kt.style[ae]!==Jt};function Me(ie,ae){return!Array.isArray(ie)&&ae!==void 0?se(ie,ae):ge(ie)}},45680:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return Oi}});var bt=Bt(72308),ge=Bt(62853),se=Bt(77321),Me=Bt(49618),ie=Bt(52487),ae=Bt(74416),Lt=Bt(92310),kt=Bt.n(Lt),Jt=Bt(29301),St=Bt(70425),Wt=Bt(34280),Gt=Bt(59301),qt=Bt(4676),wt=Gt.forwardRef(function(ue,Pn){var de=ue.height,Dt=ue.offsetY,Mt=ue.offsetX,zt=ue.children,be=ue.prefixCls,De=ue.onInnerResize,fe=ue.innerProps,Ce=ue.rtl,te=ue.extra,Ct={},yt={display:"flex",flexDirection:"column"};return Dt!==void 0&&(Ct={height:de,position:"relative",overflow:"hidden"},yt=(0,se.Z)((0,se.Z)({},yt),{},(0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)({transform:"translateY(".concat(Dt,"px)")},Ce?"marginRight":"marginLeft",-Mt),"position","absolute"),"left",0),"right",0),"top",0))),Gt.createElement("div",{style:Ct},Gt.createElement(Jt.Z,{onResize:function(xe){var Rt=xe.offsetHeight;Rt&&De&&De()}},Gt.createElement("div",(0,bt.Z)({style:yt,className:kt()((0,Me.Z)({},"".concat(be,"-holder-inner"),be)),ref:Pn},fe),zt,te)))});wt.displayName="Filler";var et=wt;function tt(ue){var Pn=ue.children,de=ue.setRef,Dt=Gt.useCallback(function(Mt){de(Mt)},[]);return Gt.cloneElement(Pn,{ref:Dt})}function lt(ue,Pn,de,Dt,Mt,zt,be,De){var fe=De.getKey;return ue.slice(Pn,de+1).map(function(Ce,te){var Ct=Pn+te,yt=be(Ce,Ct,{style:{width:Dt},offsetX:Mt}),$t=fe(Ce);return Gt.createElement(tt,{key:$t,setRef:function(Rt){return zt(Ce,Rt)}},yt)})}function rt(ue,Pn,de,Dt){var Mt=de-ue,zt=Pn-de,be=Math.min(Mt,zt)*2;if(Dt<=be){var De=Math.floor(Dt/2);return Dt%2?de+De+1:de-De}return Mt>zt?de-(Dt-zt):de+(Dt-Mt)}function ut(ue,Pn,de){var Dt=ue.length,Mt=Pn.length,zt,be;if(Dt===0&&Mt===0)return null;Dt<Mt?(zt=ue,be=Pn):(zt=Pn,be=ue);var De={__EMPTY_ITEM__:!0};function fe(xe){return xe!==void 0?de(xe):De}for(var Ce=null,te=Math.abs(Dt-Mt)!==1,Ct=0;Ct<be.length;Ct+=1){var yt=fe(zt[Ct]),$t=fe(be[Ct]);if(yt!==$t){Ce=Ct,te=te||yt!==fe(be[Ct+1]);break}}return Ce===null?null:{index:Ce,multiple:te}}function dt(ue,Pn,de){var Dt=Gt.useState(ue),Mt=(0,ie.Z)(Dt,2),zt=Mt[0],be=Mt[1],De=Gt.useState(null),fe=(0,ie.Z)(De,2),Ce=fe[0],te=fe[1];return Gt.useEffect(function(){var Ct=ut(zt||[],ue||[],Pn);(Ct==null?void 0:Ct.index)!==void 0&&(de==null||de(Ct.index),te(ue[Ct.index])),be(ue)},[ue]),[Ce]}var pt=Bt(16089),Ft=(typeof navigator=="undefined"?"undefined":(0,ge.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Tt=Ft,_t=function(ue,Pn,de,Dt){var Mt=(0,Gt.useRef)(!1),zt=(0,Gt.useRef)(null);function be(){clearTimeout(zt.current),Mt.current=!0,zt.current=setTimeout(function(){Mt.current=!1},50)}var De=(0,Gt.useRef)({top:ue,bottom:Pn,left:de,right:Dt});return De.current.top=ue,De.current.bottom=Pn,De.current.left=de,De.current.right=Dt,function(fe,Ce){var te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ct=fe?Ce<0&&De.current.left||Ce>0&&De.current.right:Ce<0&&De.current.top||Ce>0&&De.current.bottom;return te&&Ct?(clearTimeout(zt.current),Mt.current=!1):(!Ct||Mt.current)&&be(),!Mt.current&&Ct}};function re(ue,Pn,de,Dt,Mt,zt,be){var De=(0,Gt.useRef)(0),fe=(0,Gt.useRef)(null),Ce=(0,Gt.useRef)(null),te=(0,Gt.useRef)(!1),Ct=_t(Pn,de,Dt,Mt);function yt(jn,bn){if(pt.Z.cancel(fe.current),!Ct(!1,bn)){var ci=jn;if(!ci._virtualHandled)ci._virtualHandled=!0;else return;De.current+=bn,Ce.current=bn,Tt||ci.preventDefault(),fe.current=(0,pt.Z)(function(){var Ji=te.current?10:1;be(De.current*Ji,!1),De.current=0})}}function $t(jn,bn){be(bn,!0),Tt||jn.preventDefault()}var xe=(0,Gt.useRef)(null),Rt=(0,Gt.useRef)(null);function je(jn){if(ue){pt.Z.cancel(Rt.current),Rt.current=(0,pt.Z)(function(){xe.current=null},2);var bn=jn.deltaX,ci=jn.deltaY,Ji=jn.shiftKey,zi=bn,dr=ci;(xe.current==="sx"||!xe.current&&Ji&&ci&&!bn)&&(zi=ci,dr=0,xe.current="sx");var Fr=Math.abs(zi),oo=Math.abs(dr);xe.current===null&&(xe.current=zt&&Fr>oo?"x":"y"),xe.current==="y"?yt(jn,dr):$t(jn,zi)}}function fn(jn){ue&&(te.current=jn.detail===Ce.current)}return[je,fn]}function he(ue,Pn,de,Dt){var Mt=Gt.useMemo(function(){return[new Map,[]]},[ue,de.id,Dt]),zt=(0,ie.Z)(Mt,2),be=zt[0],De=zt[1],fe=function(te){var Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:te,yt=be.get(te),$t=be.get(Ct);if(yt===void 0||$t===void 0)for(var xe=ue.length,Rt=De.length;Rt<xe;Rt+=1){var je,fn=ue[Rt],jn=Pn(fn);be.set(jn,Rt);var bn=(je=de.get(jn))!==null&&je!==void 0?je:Dt;if(De[Rt]=(De[Rt-1]||0)+bn,jn===te&&(yt=Rt),jn===Ct&&($t=Rt),yt!==void 0&&$t!==void 0)break}return{top:De[yt-1]||0,bottom:De[$t]}};return fe}var Ae=Bt(96949),Fe=Bt(55090),ee=function(){function ue(){(0,Ae.Z)(this,ue),(0,Me.Z)(this,"maps",void 0),(0,Me.Z)(this,"id",0),(0,Me.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,Fe.Z)(ue,[{key:"set",value:function(de,Dt){this.maps[de]=Dt,this.id+=1,this.diffKeys.add(de)}},{key:"get",value:function(de){return this.maps[de]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),ue}(),We=ee;function Yt(ue){var Pn=parseFloat(ue);return isNaN(Pn)?0:Pn}function qe(ue,Pn,de){var Dt=Gt.useState(0),Mt=(0,ie.Z)(Dt,2),zt=Mt[0],be=Mt[1],De=(0,Gt.useRef)(new Map),fe=(0,Gt.useRef)(new We),Ce=(0,Gt.useRef)(0);function te(){Ce.current+=1}function Ct(){var $t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;te();var xe=function(){var fn=!1;De.current.forEach(function(jn,bn){if(jn&&jn.offsetParent){var ci=jn.offsetHeight,Ji=getComputedStyle(jn),zi=Ji.marginTop,dr=Ji.marginBottom,Fr=Yt(zi),oo=Yt(dr),Jr=ci+Fr+oo;fe.current.get(bn)!==Jr&&(fe.current.set(bn,Jr),fn=!0)}}),fn&&be(function(jn){return jn+1})};if($t)xe();else{Ce.current+=1;var Rt=Ce.current;Promise.resolve().then(function(){Rt===Ce.current&&xe()})}}function yt($t,xe){var Rt=ue($t),je=De.current.get(Rt);xe?(De.current.set(Rt,xe),Ct()):De.current.delete(Rt),!je!=!xe&&(xe?Pn==null||Pn($t):de==null||de($t))}return(0,Gt.useEffect)(function(){return te},[]),[yt,Ct,fe.current,zt]}var Ge=14/15;function Oe(ue,Pn,de){var Dt=(0,Gt.useRef)(!1),Mt=(0,Gt.useRef)(0),zt=(0,Gt.useRef)(0),be=(0,Gt.useRef)(null),De=(0,Gt.useRef)(null),fe,Ce=function($t){if(Dt.current){var xe=Math.ceil($t.touches[0].pageX),Rt=Math.ceil($t.touches[0].pageY),je=Mt.current-xe,fn=zt.current-Rt,jn=Math.abs(je)>Math.abs(fn);jn?Mt.current=xe:zt.current=Rt;var bn=de(jn,jn?je:fn,!1,$t);bn&&$t.preventDefault(),clearInterval(De.current),bn&&(De.current=setInterval(function(){jn?je*=Ge:fn*=Ge;var ci=Math.floor(jn?je:fn);(!de(jn,ci,!0)||Math.abs(ci)<=.1)&&clearInterval(De.current)},16))}},te=function(){Dt.current=!1,fe()},Ct=function($t){fe(),$t.touches.length===1&&!Dt.current&&(Dt.current=!0,Mt.current=Math.ceil($t.touches[0].pageX),zt.current=Math.ceil($t.touches[0].pageY),be.current=$t.target,be.current.addEventListener("touchmove",Ce,{passive:!1}),be.current.addEventListener("touchend",te,{passive:!0}))};fe=function(){be.current&&(be.current.removeEventListener("touchmove",Ce),be.current.removeEventListener("touchend",te))},(0,Wt.Z)(function(){return ue&&Pn.current.addEventListener("touchstart",Ct,{passive:!0}),function(){var yt;(yt=Pn.current)===null||yt===void 0||yt.removeEventListener("touchstart",Ct),fe(),clearInterval(De.current)}},[ue])}function Ze(ue){return Math.floor(Math.pow(ue,.5))}function Qe(ue,Pn){var de="touches"in ue?ue.touches[0]:ue;return de[Pn?"pageX":"pageY"]-window[Pn?"scrollX":"scrollY"]}function we(ue,Pn,de){Gt.useEffect(function(){var Dt=Pn.current;if(ue&&Dt){var Mt=!1,zt,be,De=function(){pt.Z.cancel(zt)},fe=function yt(){De(),zt=(0,pt.Z)(function(){de(be),yt()})},Ce=function($t){if(!($t.target.draggable||$t.button!==0)){var xe=$t;xe._virtualHandled||(xe._virtualHandled=!0,Mt=!0)}},te=function(){Mt=!1,De()},Ct=function($t){if(Mt){var xe=Qe($t,!1),Rt=Dt.getBoundingClientRect(),je=Rt.top,fn=Rt.bottom;if(xe<=je){var jn=je-xe;be=-Ze(jn),fe()}else if(xe>=fn){var bn=xe-fn;be=Ze(bn),fe()}else De()}};return Dt.addEventListener("mousedown",Ce),Dt.ownerDocument.addEventListener("mouseup",te),Dt.ownerDocument.addEventListener("mousemove",Ct),function(){Dt.removeEventListener("mousedown",Ce),Dt.ownerDocument.removeEventListener("mouseup",te),Dt.ownerDocument.removeEventListener("mousemove",Ct),De()}}},[ue])}var oe=10;function Pe(ue,Pn,de,Dt,Mt,zt,be,De){var fe=Gt.useRef(),Ce=Gt.useState(null),te=(0,ie.Z)(Ce,2),Ct=te[0],yt=te[1];return(0,Wt.Z)(function(){if(Ct&&Ct.times<oe){if(!ue.current){yt(function(ws){return(0,se.Z)({},ws)});return}zt();var $t=Ct.targetAlign,xe=Ct.originAlign,Rt=Ct.index,je=Ct.offset,fn=ue.current.clientHeight,jn=!1,bn=$t,ci=null;if(fn){for(var Ji=$t||xe,zi=0,dr=0,Fr=0,oo=Math.min(Pn.length-1,Rt),Jr=0;Jr<=oo;Jr+=1){var zr=Mt(Pn[Jr]);dr=zi;var pr=de.get(zr);Fr=dr+(pr===void 0?Dt:pr),zi=Fr}for(var Kr=Ji==="top"?je:fn-je,hr=oo;hr>=0;hr-=1){var Mo=Mt(Pn[hr]),Xo=de.get(Mo);if(Xo===void 0){jn=!0;break}if(Kr-=Xo,Kr<=0)break}switch(Ji){case"top":ci=dr-je;break;case"bottom":ci=Fr-fn+je;break;default:{var mo=ue.current.scrollTop,Ts=mo+fn;dr<mo?bn="top":Fr>Ts&&(bn="bottom")}}ci!==null&&be(ci),ci!==Ct.lastTop&&(jn=!0)}jn&&yt((0,se.Z)((0,se.Z)({},Ct),{},{times:Ct.times+1,targetAlign:bn,lastTop:ci}))}},[Ct,ue.current]),function($t){if($t==null){De();return}if(pt.Z.cancel(fe.current),typeof $t=="number")be($t);else if($t&&(0,ge.Z)($t)==="object"){var xe,Rt=$t.align;"index"in $t?xe=$t.index:xe=Pn.findIndex(function(jn){return Mt(jn)===$t.key});var je=$t.offset,fn=je===void 0?0:je;yt({times:0,index:xe,offset:fn,originAlign:Rt})}}}var En=Gt.forwardRef(function(ue,Pn){var de=ue.prefixCls,Dt=ue.rtl,Mt=ue.scrollOffset,zt=ue.scrollRange,be=ue.onStartMove,De=ue.onStopMove,fe=ue.onScroll,Ce=ue.horizontal,te=ue.spinSize,Ct=ue.containerSize,yt=ue.style,$t=ue.thumbStyle,xe=ue.showScrollBar,Rt=Gt.useState(!1),je=(0,ie.Z)(Rt,2),fn=je[0],jn=je[1],bn=Gt.useState(null),ci=(0,ie.Z)(bn,2),Ji=ci[0],zi=ci[1],dr=Gt.useState(null),Fr=(0,ie.Z)(dr,2),oo=Fr[0],Jr=Fr[1],zr=!Dt,pr=Gt.useRef(),Kr=Gt.useRef(),hr=Gt.useState(xe),Mo=(0,ie.Z)(hr,2),Xo=Mo[0],mo=Mo[1],Ts=Gt.useRef(),ws=function(){xe===!0||xe===!1||(clearTimeout(Ts.current),mo(!0),Ts.current=setTimeout(function(){mo(!1)},3e3))},Vt=zt-Ct||0,xs=Ct-te||0,Ss=Gt.useMemo(function(){if(Mt===0||Vt===0)return 0;var Re=Mt/Vt;return Re*xs},[Mt,Vt,xs]),Ms=function(hi){hi.stopPropagation(),hi.preventDefault()},ma=Gt.useRef({top:Ss,dragging:fn,pageY:Ji,startTop:oo});ma.current={top:Ss,dragging:fn,pageY:Ji,startTop:oo};var Ea=function(hi){jn(!0),zi(Qe(hi,Ce)),Jr(ma.current.top),be(),hi.stopPropagation(),hi.preventDefault()};Gt.useEffect(function(){var Re=function(Ve){Ve.preventDefault()},hi=pr.current,en=Kr.current;return hi.addEventListener("touchstart",Re,{passive:!1}),en.addEventListener("touchstart",Ea,{passive:!1}),function(){hi.removeEventListener("touchstart",Re),en.removeEventListener("touchstart",Ea)}},[]);var oa=Gt.useRef();oa.current=Vt;var ao=Gt.useRef();ao.current=xs,Gt.useEffect(function(){if(fn){var Re,hi=function(Ve){var ni=ma.current,Bi=ni.dragging,_i=ni.pageY,tr=ni.startTop;pt.Z.cancel(Re);var sn=pr.current.getBoundingClientRect(),fi=Ct/(Ce?sn.width:sn.height);if(Bi){var Zi=(Qe(Ve,Ce)-_i)*fi,Tr=tr;!zr&&Ce?Tr-=Zi:Tr+=Zi;var ii=oa.current,xi=ao.current,fr=xi?Tr/xi:0,mi=Math.ceil(fr*ii);mi=Math.max(mi,0),mi=Math.min(mi,ii),Re=(0,pt.Z)(function(){fe(mi,Ce)})}},en=function(){jn(!1),De()};return window.addEventListener("mousemove",hi,{passive:!0}),window.addEventListener("touchmove",hi,{passive:!0}),window.addEventListener("mouseup",en,{passive:!0}),window.addEventListener("touchend",en,{passive:!0}),function(){window.removeEventListener("mousemove",hi),window.removeEventListener("touchmove",hi),window.removeEventListener("mouseup",en),window.removeEventListener("touchend",en),pt.Z.cancel(Re)}}},[fn]),Gt.useEffect(function(){return ws(),function(){clearTimeout(Ts.current)}},[Mt]),Gt.useImperativeHandle(Pn,function(){return{delayHidden:ws}});var br="".concat(de,"-scrollbar"),Un={position:"absolute",visibility:Xo?null:"hidden"},On={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Ce?(Un.height=8,Un.left=0,Un.right=0,Un.bottom=0,On.height="100%",On.width=te,zr?On.left=Ss:On.right=Ss):(Un.width=8,Un.top=0,Un.bottom=0,zr?Un.right=0:Un.left=0,On.width="100%",On.height=te,On.top=Ss),Gt.createElement("div",{ref:pr,className:kt()(br,(0,Me.Z)((0,Me.Z)((0,Me.Z)({},"".concat(br,"-horizontal"),Ce),"".concat(br,"-vertical"),!Ce),"".concat(br,"-visible"),Xo)),style:(0,se.Z)((0,se.Z)({},Un),yt),onMouseDown:Ms,onMouseMove:ws},Gt.createElement("div",{ref:Kr,className:kt()("".concat(br,"-thumb"),(0,Me.Z)({},"".concat(br,"-thumb-moving"),fn)),style:(0,se.Z)((0,se.Z)({},On),$t),onMouseDown:Ea}))}),Nn=En,Xe=20;function kn(){var ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,de=ue/Pn*ue;return isNaN(de)&&(de=0),de=Math.max(de,Xe),Math.floor(de)}var Vn=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Ai=[],Wn={overflowY:"auto",overflowAnchor:"none"};function Si(ue,Pn){var de=ue.prefixCls,Dt=de===void 0?"rc-virtual-list":de,Mt=ue.className,zt=ue.height,be=ue.itemHeight,De=ue.fullHeight,fe=De===void 0?!0:De,Ce=ue.style,te=ue.data,Ct=ue.children,yt=ue.itemKey,$t=ue.virtual,xe=ue.direction,Rt=ue.scrollWidth,je=ue.component,fn=je===void 0?"div":je,jn=ue.onScroll,bn=ue.onVirtualScroll,ci=ue.onVisibleChange,Ji=ue.innerProps,zi=ue.extraRender,dr=ue.styles,Fr=ue.showScrollBar,oo=Fr===void 0?"optional":Fr,Jr=(0,ae.Z)(ue,Vn),zr=Gt.useCallback(function(yr){return typeof yt=="function"?yt(yr):yr==null?void 0:yr[yt]},[yt]),pr=qe(zr,null,null),Kr=(0,ie.Z)(pr,4),hr=Kr[0],Mo=Kr[1],Xo=Kr[2],mo=Kr[3],Ts=!!($t!==!1&&zt&&be),ws=Gt.useMemo(function(){return Object.values(Xo.maps).reduce(function(yr,$r){return yr+$r},0)},[Xo.id,Xo.maps]),Vt=Ts&&te&&(Math.max(be*te.length,ws)>zt||!!Rt),xs=xe==="rtl",Ss=kt()(Dt,(0,Me.Z)({},"".concat(Dt,"-rtl"),xs),Mt),Ms=te||Ai,ma=(0,Gt.useRef)(),Ea=(0,Gt.useRef)(),oa=(0,Gt.useRef)(),ao=(0,Gt.useState)(0),br=(0,ie.Z)(ao,2),Un=br[0],On=br[1],Re=(0,Gt.useState)(0),hi=(0,ie.Z)(Re,2),en=hi[0],gn=hi[1],Ve=(0,Gt.useState)(!1),ni=(0,ie.Z)(Ve,2),Bi=ni[0],_i=ni[1],tr=function(){_i(!0)},sn=function(){_i(!1)},fi={getKey:zr};function Zi(yr){On(function($r){var Jo;typeof yr=="function"?Jo=yr($r):Jo=yr;var Lo=Wr(Jo);return ma.current.scrollTop=Lo,Lo})}var Tr=(0,Gt.useRef)({start:0,end:Ms.length}),ii=(0,Gt.useRef)(),xi=dt(Ms,zr),fr=(0,ie.Z)(xi,1),mi=fr[0];ii.current=mi;var wi=Gt.useMemo(function(){if(!Ts)return{scrollHeight:void 0,start:0,end:Ms.length-1,offset:void 0};if(!Vt){var yr;return{scrollHeight:((yr=Ea.current)===null||yr===void 0?void 0:yr.offsetHeight)||0,start:0,end:Ms.length-1,offset:void 0}}for(var $r=0,Jo,Lo,os,Fa=Ms.length,lo=0;lo<Fa;lo+=1){var vo=Ms[lo],Ki=zr(vo),Eo=Xo.get(Ki),Es=$r+(Eo===void 0?be:Eo);Es>=Un&&Jo===void 0&&(Jo=lo,Lo=$r),Es>Un+zt&&os===void 0&&(os=lo),$r=Es}return Jo===void 0&&(Jo=0,Lo=0,os=Math.ceil(zt/be)),os===void 0&&(os=Ms.length-1),os=Math.min(os+1,Ms.length-1),{scrollHeight:$r,start:Jo,end:os,offset:Lo}},[Vt,Ts,Un,Ms,mo,zt]),yi=wi.scrollHeight,nr=wi.start,sr=wi.end,Rr=wi.offset;Tr.current.start=nr,Tr.current.end=sr,Gt.useLayoutEffect(function(){var yr=Xo.getRecord();if(yr.size===1){var $r=Array.from(yr)[0],Jo=Ms[nr];if(Jo){var Lo=zr(Jo);if(Lo===$r){var os=Xo.get($r),Fa=os-be;Zi(function(lo){return lo+Fa})}}}Xo.resetRecord()},[yi]);var Zr=Gt.useState({width:0,height:zt}),Xr=(0,ie.Z)(Zr,2),ei=Xr[0],Ho=Xr[1],Zo=function($r){Ho({width:$r.offsetWidth,height:$r.offsetHeight})},cs=(0,Gt.useRef)(),ri=(0,Gt.useRef)(),or=Gt.useMemo(function(){return kn(ei.width,Rt)},[ei.width,Rt]),Er=Gt.useMemo(function(){return kn(ei.height,yi)},[ei.height,yi]),no=yi-zt,Lr=(0,Gt.useRef)(no);Lr.current=no;function Wr(yr){var $r=yr;return Number.isNaN(Lr.current)||($r=Math.min($r,Lr.current)),$r=Math.max($r,0),$r}var wo=Un<=0,fo=Un>=no,xo=en<=0,_r=en>=Rt,Ci=_t(wo,fo,xo,_r),Qo=function(){return{x:xs?-en:en,y:Un}},bi=(0,Gt.useRef)(Qo()),ns=(0,St.useEvent)(function(yr){if(bn){var $r=(0,se.Z)((0,se.Z)({},Qo()),yr);(bi.current.x!==$r.x||bi.current.y!==$r.y)&&(bn($r),bi.current=$r)}});function qs(yr,$r){var Jo=yr;$r?((0,qt.flushSync)(function(){gn(Jo)}),ns()):Zi(Jo)}function fs(yr){var $r=yr.currentTarget.scrollTop;$r!==Un&&Zi($r),jn==null||jn(yr),ns()}var Hs=function($r){var Jo=$r,Lo=Rt?Rt-ei.width:0;return Jo=Math.max(Jo,0),Jo=Math.min(Jo,Lo),Jo},Gs=(0,St.useEvent)(function(yr,$r){$r?((0,qt.flushSync)(function(){gn(function(Jo){var Lo=Jo+(xs?-yr:yr);return Hs(Lo)})}),ns()):Zi(function(Jo){var Lo=Jo+yr;return Lo})}),si=re(Ts,wo,fo,xo,_r,!!Rt,Gs),To=(0,ie.Z)(si,2),us=To[0],rs=To[1];Oe(Ts,ma,function(yr,$r,Jo,Lo){var os=Lo;return Ci(yr,$r,Jo)?!1:!os||!os._virtualHandled?(os&&(os._virtualHandled=!0),us({preventDefault:function(){},deltaX:yr?$r:0,deltaY:yr?0:$r}),!0):!1}),we(Vt,ma,function(yr){Zi(function($r){return $r+yr})}),(0,Wt.Z)(function(){function yr(Jo){var Lo=wo&&Jo.detail<0,os=fo&&Jo.detail>0;Ts&&!Lo&&!os&&Jo.preventDefault()}var $r=ma.current;return $r.addEventListener("wheel",us,{passive:!1}),$r.addEventListener("DOMMouseScroll",rs,{passive:!0}),$r.addEventListener("MozMousePixelScroll",yr,{passive:!1}),function(){$r.removeEventListener("wheel",us),$r.removeEventListener("DOMMouseScroll",rs),$r.removeEventListener("MozMousePixelScroll",yr)}},[Ts,wo,fo]),(0,Wt.Z)(function(){if(Rt){var yr=Hs(en);gn(yr),ns({x:yr})}},[ei.width,Rt]);var Cr=function(){var $r,Jo;($r=cs.current)===null||$r===void 0||$r.delayHidden(),(Jo=ri.current)===null||Jo===void 0||Jo.delayHidden()},ke=Pe(ma,Ms,Xo,be,zr,function(){return Mo(!0)},Zi,Cr);Gt.useImperativeHandle(Pn,function(){return{nativeElement:oa.current,getScrollInfo:Qo,scrollTo:function($r){function Jo(Lo){return Lo&&(0,ge.Z)(Lo)==="object"&&("left"in Lo||"top"in Lo)}Jo($r)?($r.left!==void 0&&gn(Hs($r.left)),ke($r.top)):ke($r)}}}),(0,Wt.Z)(function(){if(ci){var yr=Ms.slice(nr,sr+1);ci(yr,Ms)}},[nr,sr,Ms]);var ts=he(Ms,zr,Xo,be),ta=zi==null?void 0:zi({start:nr,end:sr,virtual:Vt,offsetX:en,offsetY:Rr,rtl:xs,getSize:ts}),qa=lt(Ms,nr,sr,Rt,en,hr,Ct,fi),ol=null;zt&&(ol=(0,se.Z)((0,Me.Z)({},fe?"height":"maxHeight",zt),Wn),Ts&&(ol.overflowY="hidden",Rt&&(ol.overflowX="hidden"),Bi&&(ol.pointerEvents="none")));var ml={};return xs&&(ml.dir="rtl"),Gt.createElement("div",(0,bt.Z)({ref:oa,style:(0,se.Z)((0,se.Z)({},Ce),{},{position:"relative"}),className:Ss},ml,Jr),Gt.createElement(Jt.Z,{onResize:Zo},Gt.createElement(fn,{className:"".concat(Dt,"-holder"),style:ol,ref:ma,onScroll:fs,onMouseEnter:Cr},Gt.createElement(et,{prefixCls:Dt,height:yi,offsetX:en,offsetY:Rr,scrollWidth:Rt,onInnerResize:Mo,ref:Ea,innerProps:Ji,rtl:xs,extra:ta},qa))),Vt&&yi>zt&&Gt.createElement(Nn,{ref:cs,prefixCls:Dt,scrollOffset:Un,scrollRange:yi,rtl:xs,onScroll:qs,onStartMove:tr,onStopMove:sn,spinSize:Er,containerSize:ei.height,style:dr==null?void 0:dr.verticalScrollBar,thumbStyle:dr==null?void 0:dr.verticalScrollBarThumb,showScrollBar:oo}),Vt&&Rt>ei.width&&Gt.createElement(Nn,{ref:ri,prefixCls:Dt,scrollOffset:en,scrollRange:Rt,rtl:xs,onScroll:qs,onStartMove:tr,onStopMove:sn,spinSize:or,containerSize:ei.width,horizontal:!0,style:dr==null?void 0:dr.horizontalScrollBar,thumbStyle:dr==null?void 0:dr.horizontalScrollBarThumb,showScrollBar:oo}))}var an=Gt.forwardRef(Si);an.displayName="List";var Li=an,Oi=Li},2637:function(ui,Cn,Bt){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Object.defineProperty(Cn,"DraggableCore",{enumerable:!0,get:function(){return kt.default}}),Cn.default=void 0;var bt=Gt(Bt(59301)),ge=St(Bt(12708)),se=St(Bt(4676)),Me=St(Bt(57780)),ie=Bt(13957),ae=Bt(60976),Lt=Bt(36641),kt=St(Bt(80486)),Jt=St(Bt(94187));function St(rt){return rt&&rt.__esModule?rt:{default:rt}}function Wt(rt){if(typeof WeakMap!="function")return null;var ut=new WeakMap,dt=new WeakMap;return(Wt=function(pt){return pt?dt:ut})(rt)}function Gt(rt,ut){if(!ut&&rt&&rt.__esModule)return rt;if(rt===null||typeof rt!="object"&&typeof rt!="function")return{default:rt};var dt=Wt(ut);if(dt&&dt.has(rt))return dt.get(rt);var pt={},Ft=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Tt in rt)if(Tt!=="default"&&Object.prototype.hasOwnProperty.call(rt,Tt)){var _t=Ft?Object.getOwnPropertyDescriptor(rt,Tt):null;_t&&(_t.get||_t.set)?Object.defineProperty(pt,Tt,_t):pt[Tt]=rt[Tt]}return pt.default=rt,dt&&dt.set(rt,pt),pt}function qt(){return qt=Object.assign?Object.assign.bind():function(rt){for(var ut=1;ut<arguments.length;ut++){var dt=arguments[ut];for(var pt in dt)Object.prototype.hasOwnProperty.call(dt,pt)&&(rt[pt]=dt[pt])}return rt},qt.apply(this,arguments)}function wt(rt,ut,dt){return ut=et(ut),ut in rt?Object.defineProperty(rt,ut,{value:dt,enumerable:!0,configurable:!0,writable:!0}):rt[ut]=dt,rt}function et(rt){var ut=tt(rt,"string");return typeof ut=="symbol"?ut:String(ut)}function tt(rt,ut){if(typeof rt!="object"||rt===null)return rt;var dt=rt[Symbol.toPrimitive];if(dt!==void 0){var pt=dt.call(rt,ut||"default");if(typeof pt!="object")return pt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ut==="string"?String:Number)(rt)}class lt extends bt.Component{static getDerivedStateFromProps(ut,dt){let{position:pt}=ut,{prevPropsPosition:Ft}=dt;return pt&&(!Ft||pt.x!==Ft.x||pt.y!==Ft.y)?((0,Jt.default)("Draggable: getDerivedStateFromProps %j",{position:pt,prevPropsPosition:Ft}),{x:pt.x,y:pt.y,prevPropsPosition:Sg({},pt)}):null}constructor(ut){super(ut),wt(this,"onDragStart",(dt,pt)=>{if((0,Jt.default)("Draggable: onDragStart: %j",pt),this.props.onStart(dt,(0,ae.createDraggableData)(this,pt))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),wt(this,"onDrag",(dt,pt)=>{if(!this.state.dragging)return!1;(0,Jt.default)("Draggable: onDrag: %j",pt);const Ft=(0,ae.createDraggableData)(this,pt),Tt={x:Ft.x,y:Ft.y,slackX:0,slackY:0};if(this.props.bounds){const{x:re,y:he}=Tt;Tt.x+=this.state.slackX,Tt.y+=this.state.slackY;const[Ae,Fe]=(0,ae.getBoundPosition)(this,Tt.x,Tt.y);Tt.x=Ae,Tt.y=Fe,Tt.slackX=this.state.slackX+(re-Tt.x),Tt.slackY=this.state.slackY+(he-Tt.y),Ft.x=Tt.x,Ft.y=Tt.y,Ft.deltaX=Tt.x-this.state.x,Ft.deltaY=Tt.y-this.state.y}if(this.props.onDrag(dt,Ft)===!1)return!1;this.setState(Tt)}),wt(this,"onDragStop",(dt,pt)=>{if(!this.state.dragging||this.props.onStop(dt,(0,ae.createDraggableData)(this,pt))===!1)return!1;(0,Jt.default)("Draggable: onDragStop: %j",pt);const Tt={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:re,y:he}=this.props.position;Tt.x=re,Tt.y=he}this.setState(Tt)}),this.state={dragging:!1,dragged:!1,x:ut.position?ut.position.x:ut.defaultPosition.x,y:ut.position?ut.position.y:ut.defaultPosition.y,prevPropsPosition:Sg({},ut.position),slackX:0,slackY:0,isElementSVG:!1},ut.position&&!(ut.onDrag||ut.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement!="undefined"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var ut,dt;return(ut=(dt=this.props)===null||dt===void 0||(dt=dt.nodeRef)===null||dt===void 0?void 0:dt.current)!==null&&ut!==void 0?ut:se.default.findDOMNode(this)}render(){const we=this.props,{axis:ut,bounds:dt,children:pt,defaultPosition:Ft,defaultClassName:Tt,defaultClassNameDragging:_t,defaultClassNameDragged:re,position:he,positionOffset:Ae,scale:Fe}=we,ee=Pw(we,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"]);let We={},Yt=null;const Ge=!!!he||this.state.dragging,Oe=he||Ft,Ze={x:(0,ae.canDragX)(this)&&Ge?this.state.x:Oe.x,y:(0,ae.canDragY)(this)&&Ge?this.state.y:Oe.y};this.state.isElementSVG?Yt=(0,ie.createSVGTransform)(Ze,Ae):We=(0,ie.createCSSTransform)(Ze,Ae);const Qe=(0,Me.default)(pt.props.className||"",Tt,{[_t]:this.state.dragging,[re]:this.state.dragged});return bt.createElement(kt.default,qt({},ee,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),bt.cloneElement(bt.Children.only(pt),{className:Qe,style:Sg(Sg({},pt.props.style),We),transform:Yt}))}}Cn.default=lt,wt(lt,"displayName","Draggable"),wt(lt,"propTypes",Iy(Sg({},kt.default.propTypes),{axis:ge.default.oneOf(["both","x","y","none"]),bounds:ge.default.oneOfType([ge.default.shape({left:ge.default.number,right:ge.default.number,top:ge.default.number,bottom:ge.default.number}),ge.default.string,ge.default.oneOf([!1])]),defaultClassName:ge.default.string,defaultClassNameDragging:ge.default.string,defaultClassNameDragged:ge.default.string,defaultPosition:ge.default.shape({x:ge.default.number,y:ge.default.number}),positionOffset:ge.default.shape({x:ge.default.oneOfType([ge.default.number,ge.default.string]),y:ge.default.oneOfType([ge.default.number,ge.default.string])}),position:ge.default.shape({x:ge.default.number,y:ge.default.number}),className:Lt.dontSetMe,style:Lt.dontSetMe,transform:Lt.dontSetMe})),wt(lt,"defaultProps",Iy(Sg({},kt.default.defaultProps),{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},80486:function(ui,Cn,Bt){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.default=void 0;var bt=St(Bt(59301)),ge=kt(Bt(12708)),se=kt(Bt(4676)),Me=Bt(13957),ie=Bt(60976),ae=Bt(36641),Lt=kt(Bt(94187));function kt(lt){return lt&<.__esModule?lt:{default:lt}}function Jt(lt){if(typeof WeakMap!="function")return null;var rt=new WeakMap,ut=new WeakMap;return(Jt=function(dt){return dt?ut:rt})(lt)}function St(lt,rt){if(!rt&<&<.__esModule)return lt;if(lt===null||typeof lt!="object"&&typeof lt!="function")return{default:lt};var ut=Jt(rt);if(ut&&ut.has(lt))return ut.get(lt);var dt={},pt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Ft in lt)if(Ft!=="default"&&Object.prototype.hasOwnProperty.call(lt,Ft)){var Tt=pt?Object.getOwnPropertyDescriptor(lt,Ft):null;Tt&&(Tt.get||Tt.set)?Object.defineProperty(dt,Ft,Tt):dt[Ft]=lt[Ft]}return dt.default=lt,ut&&ut.set(lt,dt),dt}function Wt(lt,rt,ut){return rt=Gt(rt),rt in lt?Object.defineProperty(lt,rt,{value:ut,enumerable:!0,configurable:!0,writable:!0}):lt[rt]=ut,lt}function Gt(lt){var rt=qt(lt,"string");return typeof rt=="symbol"?rt:String(rt)}function qt(lt,rt){if(typeof lt!="object"||lt===null)return lt;var ut=lt[Symbol.toPrimitive];if(ut!==void 0){var dt=ut.call(lt,rt||"default");if(typeof dt!="object")return dt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(rt==="string"?String:Number)(lt)}const wt={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let et=wt.mouse;class tt extends bt.Component{constructor(){super(...arguments),Wt(this,"dragging",!1),Wt(this,"lastX",NaN),Wt(this,"lastY",NaN),Wt(this,"touchIdentifier",null),Wt(this,"mounted",!1),Wt(this,"handleDragStart",rt=>{if(this.props.onMouseDown(rt),!this.props.allowAnyClick&&typeof rt.button=="number"&&rt.button!==0)return!1;const ut=this.findDOMNode();if(!ut||!ut.ownerDocument||!ut.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:dt}=ut;if(this.props.disabled||!(rt.target instanceof dt.defaultView.Node)||this.props.handle&&!(0,Me.matchesSelectorAndParentsTo)(rt.target,this.props.handle,ut)||this.props.cancel&&(0,Me.matchesSelectorAndParentsTo)(rt.target,this.props.cancel,ut))return;rt.type==="touchstart"&&rt.preventDefault();const pt=(0,Me.getTouchIdentifier)(rt);this.touchIdentifier=pt;const Ft=(0,ie.getControlPosition)(rt,pt,this);if(Ft==null)return;const{x:Tt,y:_t}=Ft,re=(0,ie.createCoreData)(this,Tt,_t);(0,Lt.default)("DraggableCore: handleDragStart: %j",re),(0,Lt.default)("calling",this.props.onStart),!(this.props.onStart(rt,re)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,Me.addUserSelectStyles)(dt),this.dragging=!0,this.lastX=Tt,this.lastY=_t,(0,Me.addEvent)(dt,et.move,this.handleDrag),(0,Me.addEvent)(dt,et.stop,this.handleDragStop))}),Wt(this,"handleDrag",rt=>{const ut=(0,ie.getControlPosition)(rt,this.touchIdentifier,this);if(ut==null)return;let{x:dt,y:pt}=ut;if(Array.isArray(this.props.grid)){let _t=dt-this.lastX,re=pt-this.lastY;if([_t,re]=(0,ie.snapToGrid)(this.props.grid,_t,re),!_t&&!re)return;dt=this.lastX+_t,pt=this.lastY+re}const Ft=(0,ie.createCoreData)(this,dt,pt);if((0,Lt.default)("DraggableCore: handleDrag: %j",Ft),this.props.onDrag(rt,Ft)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch(_t){const re=document.createEvent("MouseEvents");re.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(re)}return}this.lastX=dt,this.lastY=pt}),Wt(this,"handleDragStop",rt=>{if(!this.dragging)return;const ut=(0,ie.getControlPosition)(rt,this.touchIdentifier,this);if(ut==null)return;let{x:dt,y:pt}=ut;if(Array.isArray(this.props.grid)){let re=dt-this.lastX||0,he=pt-this.lastY||0;[re,he]=(0,ie.snapToGrid)(this.props.grid,re,he),dt=this.lastX+re,pt=this.lastY+he}const Ft=(0,ie.createCoreData)(this,dt,pt);if(this.props.onStop(rt,Ft)===!1||this.mounted===!1)return!1;const _t=this.findDOMNode();_t&&this.props.enableUserSelectHack&&(0,Me.removeUserSelectStyles)(_t.ownerDocument),(0,Lt.default)("DraggableCore: handleDragStop: %j",Ft),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,_t&&((0,Lt.default)("DraggableCore: Removing handlers"),(0,Me.removeEvent)(_t.ownerDocument,et.move,this.handleDrag),(0,Me.removeEvent)(_t.ownerDocument,et.stop,this.handleDragStop))}),Wt(this,"onMouseDown",rt=>(et=wt.mouse,this.handleDragStart(rt))),Wt(this,"onMouseUp",rt=>(et=wt.mouse,this.handleDragStop(rt))),Wt(this,"onTouchStart",rt=>(et=wt.touch,this.handleDragStart(rt))),Wt(this,"onTouchEnd",rt=>(et=wt.touch,this.handleDragStop(rt)))}componentDidMount(){this.mounted=!0;const rt=this.findDOMNode();rt&&(0,Me.addEvent)(rt,wt.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const rt=this.findDOMNode();if(rt){const{ownerDocument:ut}=rt;(0,Me.removeEvent)(ut,wt.mouse.move,this.handleDrag),(0,Me.removeEvent)(ut,wt.touch.move,this.handleDrag),(0,Me.removeEvent)(ut,wt.mouse.stop,this.handleDragStop),(0,Me.removeEvent)(ut,wt.touch.stop,this.handleDragStop),(0,Me.removeEvent)(rt,wt.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,Me.removeUserSelectStyles)(ut)}}findDOMNode(){var rt,ut;return(rt=this.props)!==null&&rt!==void 0&&rt.nodeRef?(ut=this.props)===null||ut===void 0||(ut=ut.nodeRef)===null||ut===void 0?void 0:ut.current:se.default.findDOMNode(this)}render(){return bt.cloneElement(bt.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}Cn.default=tt,Wt(tt,"displayName","DraggableCore"),Wt(tt,"propTypes",{allowAnyClick:ge.default.bool,children:ge.default.node.isRequired,disabled:ge.default.bool,enableUserSelectHack:ge.default.bool,offsetParent:function(lt,rt){if(lt[rt]&<[rt].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:ge.default.arrayOf(ge.default.number),handle:ge.default.string,cancel:ge.default.string,nodeRef:ge.default.object,onStart:ge.default.func,onDrag:ge.default.func,onStop:ge.default.func,onMouseDown:ge.default.func,scale:ge.default.number,className:ae.dontSetMe,style:ae.dontSetMe,transform:ae.dontSetMe}),Wt(tt,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},12911:function(ui,Cn,Bt){"use strict";const{default:bt,DraggableCore:ge}=Bt(2637);ui.exports=bt,ui.exports.default=bt,ui.exports.DraggableCore=ge},13957:function(ui,Cn,Bt){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.addClassName=Ft,Cn.addEvent=kt,Cn.addUserSelectStyles=dt,Cn.createCSSTransform=et,Cn.createSVGTransform=tt,Cn.getTouch=rt,Cn.getTouchIdentifier=ut,Cn.getTranslation=lt,Cn.innerHeight=Gt,Cn.innerWidth=qt,Cn.matchesSelector=ae,Cn.matchesSelectorAndParentsTo=Lt,Cn.offsetXYFromParent=wt,Cn.outerHeight=St,Cn.outerWidth=Wt,Cn.removeClassName=Tt,Cn.removeEvent=Jt,Cn.removeUserSelectStyles=pt;var bt=Bt(36641),ge=Me(Bt(32092));function se(_t){if(typeof WeakMap!="function")return null;var re=new WeakMap,he=new WeakMap;return(se=function(Ae){return Ae?he:re})(_t)}function Me(_t,re){if(!re&&_t&&_t.__esModule)return _t;if(_t===null||typeof _t!="object"&&typeof _t!="function")return{default:_t};var he=se(re);if(he&&he.has(_t))return he.get(_t);var Ae={},Fe=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ee in _t)if(ee!=="default"&&Object.prototype.hasOwnProperty.call(_t,ee)){var We=Fe?Object.getOwnPropertyDescriptor(_t,ee):null;We&&(We.get||We.set)?Object.defineProperty(Ae,ee,We):Ae[ee]=_t[ee]}return Ae.default=_t,he&&he.set(_t,Ae),Ae}let ie="";function ae(_t,re){return ie||(ie=(0,bt.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(he){return(0,bt.isFunction)(_t[he])})),(0,bt.isFunction)(_t[ie])?_t[ie](re):!1}function Lt(_t,re,he){let Ae=_t;do{if(ae(Ae,re))return!0;if(Ae===he)return!1;Ae=Ae.parentNode}while(Ae);return!1}function kt(_t,re,he,Ae){if(!_t)return;const Fe=Sg({capture:!0},Ae);_t.addEventListener?_t.addEventListener(re,he,Fe):_t.attachEvent?_t.attachEvent("on"+re,he):_t["on"+re]=he}function Jt(_t,re,he,Ae){if(!_t)return;const Fe=Sg({capture:!0},Ae);_t.removeEventListener?_t.removeEventListener(re,he,Fe):_t.detachEvent?_t.detachEvent("on"+re,he):_t["on"+re]=null}function St(_t){let re=_t.clientHeight;const he=_t.ownerDocument.defaultView.getComputedStyle(_t);return re+=(0,bt.int)(he.borderTopWidth),re+=(0,bt.int)(he.borderBottomWidth),re}function Wt(_t){let re=_t.clientWidth;const he=_t.ownerDocument.defaultView.getComputedStyle(_t);return re+=(0,bt.int)(he.borderLeftWidth),re+=(0,bt.int)(he.borderRightWidth),re}function Gt(_t){let re=_t.clientHeight;const he=_t.ownerDocument.defaultView.getComputedStyle(_t);return re-=(0,bt.int)(he.paddingTop),re-=(0,bt.int)(he.paddingBottom),re}function qt(_t){let re=_t.clientWidth;const he=_t.ownerDocument.defaultView.getComputedStyle(_t);return re-=(0,bt.int)(he.paddingLeft),re-=(0,bt.int)(he.paddingRight),re}function wt(_t,re,he){const Fe=re===re.ownerDocument.body?{left:0,top:0}:re.getBoundingClientRect(),ee=(_t.clientX+re.scrollLeft-Fe.left)/he,We=(_t.clientY+re.scrollTop-Fe.top)/he;return{x:ee,y:We}}function et(_t,re){const he=lt(_t,re,"px");return{[(0,ge.browserPrefixToKey)("transform",ge.default)]:he}}function tt(_t,re){return lt(_t,re,"")}function lt(_t,re,he){let{x:Ae,y:Fe}=_t,ee="translate(".concat(Ae).concat(he,",").concat(Fe).concat(he,")");if(re){const We="".concat(typeof re.x=="string"?re.x:re.x+he),Yt="".concat(typeof re.y=="string"?re.y:re.y+he);ee="translate(".concat(We,", ").concat(Yt,")")+ee}return ee}function rt(_t,re){return _t.targetTouches&&(0,bt.findInArray)(_t.targetTouches,he=>re===he.identifier)||_t.changedTouches&&(0,bt.findInArray)(_t.changedTouches,he=>re===he.identifier)}function ut(_t){if(_t.targetTouches&&_t.targetTouches[0])return _t.targetTouches[0].identifier;if(_t.changedTouches&&_t.changedTouches[0])return _t.changedTouches[0].identifier}function dt(_t){if(!_t)return;let re=_t.getElementById("react-draggable-style-el");re||(re=_t.createElement("style"),re.type="text/css",re.id="react-draggable-style-el",re.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
|
`,re.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
|
`,_t.getElementsByTagName("head")[0].appendChild(re)),_t.body&&Ft(_t.body,"react-draggable-transparent-selection")}function pt(_t){if(_t)try{if(_t.body&&Tt(_t.body,"react-draggable-transparent-selection"),_t.selection)_t.selection.empty();else{const re=(_t.defaultView||window).getSelection();re&&re.type!=="Caret"&&re.removeAllRanges()}}catch(re){}}function Ft(_t,re){_t.classList?_t.classList.add(re):_t.className.match(new RegExp("(?:^|\\s)".concat(re,"(?!\\S)")))||(_t.className+=" ".concat(re))}function Tt(_t,re){_t.classList?_t.classList.remove(re):_t.className=_t.className.replace(new RegExp("(?:^|\\s)".concat(re,"(?!\\S)"),"g"),"")}},32092:function(ui,Cn){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.browserPrefixToKey=ge,Cn.browserPrefixToStyle=se,Cn.default=void 0,Cn.getPrefix=bt;const Bt=["Moz","Webkit","O","ms"];function bt(){var ae;let Lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";const kt=(ae=window.document)===null||ae===void 0||(ae=ae.documentElement)===null||ae===void 0?void 0:ae.style;if(!kt||Lt in kt)return"";for(let Jt=0;Jt<Bt.length;Jt++)if(ge(Lt,Bt[Jt])in kt)return Bt[Jt];return""}function ge(ae,Lt){return Lt?"".concat(Lt).concat(Me(ae)):ae}function se(ae,Lt){return Lt?"-".concat(Lt.toLowerCase(),"-").concat(ae):ae}function Me(ae){let Lt="",kt=!0;for(let Jt=0;Jt<ae.length;Jt++)kt?(Lt+=ae[Jt].toUpperCase(),kt=!1):ae[Jt]==="-"?kt=!0:Lt+=ae[Jt];return Lt}var ie=Cn.default=bt()},94187:function(ui,Cn){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.default=Bt;function Bt(){}},60976:function(ui,Cn,Bt){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.canDragX=ie,Cn.canDragY=ae,Cn.createCoreData=kt,Cn.createDraggableData=Jt,Cn.getBoundPosition=se,Cn.getControlPosition=Lt,Cn.snapToGrid=Me;var bt=Bt(36641),ge=Bt(13957);function se(Gt,qt,wt){if(!Gt.props.bounds)return[qt,wt];let{bounds:et}=Gt.props;et=typeof et=="string"?et:St(et);const tt=Wt(Gt);if(typeof et=="string"){const{ownerDocument:lt}=tt,rt=lt.defaultView;let ut;if(et==="parent"?ut=tt.parentNode:ut=lt.querySelector(et),!(ut instanceof rt.HTMLElement))throw new Error('Bounds selector "'+et+'" could not find an element.');const dt=ut,pt=rt.getComputedStyle(tt),Ft=rt.getComputedStyle(dt);et={left:-tt.offsetLeft+(0,bt.int)(Ft.paddingLeft)+(0,bt.int)(pt.marginLeft),top:-tt.offsetTop+(0,bt.int)(Ft.paddingTop)+(0,bt.int)(pt.marginTop),right:(0,ge.innerWidth)(dt)-(0,ge.outerWidth)(tt)-tt.offsetLeft+(0,bt.int)(Ft.paddingRight)-(0,bt.int)(pt.marginRight),bottom:(0,ge.innerHeight)(dt)-(0,ge.outerHeight)(tt)-tt.offsetTop+(0,bt.int)(Ft.paddingBottom)-(0,bt.int)(pt.marginBottom)}}return(0,bt.isNum)(et.right)&&(qt=Math.min(qt,et.right)),(0,bt.isNum)(et.bottom)&&(wt=Math.min(wt,et.bottom)),(0,bt.isNum)(et.left)&&(qt=Math.max(qt,et.left)),(0,bt.isNum)(et.top)&&(wt=Math.max(wt,et.top)),[qt,wt]}function Me(Gt,qt,wt){const et=Math.round(qt/Gt[0])*Gt[0],tt=Math.round(wt/Gt[1])*Gt[1];return[et,tt]}function ie(Gt){return Gt.props.axis==="both"||Gt.props.axis==="x"}function ae(Gt){return Gt.props.axis==="both"||Gt.props.axis==="y"}function Lt(Gt,qt,wt){const et=typeof qt=="number"?(0,ge.getTouch)(Gt,qt):null;if(typeof qt=="number"&&!et)return null;const tt=Wt(wt),lt=wt.props.offsetParent||tt.offsetParent||tt.ownerDocument.body;return(0,ge.offsetXYFromParent)(et||Gt,lt,wt.props.scale)}function kt(Gt,qt,wt){const et=!(0,bt.isNum)(Gt.lastX),tt=Wt(Gt);return et?{node:tt,deltaX:0,deltaY:0,lastX:qt,lastY:wt,x:qt,y:wt}:{node:tt,deltaX:qt-Gt.lastX,deltaY:wt-Gt.lastY,lastX:Gt.lastX,lastY:Gt.lastY,x:qt,y:wt}}function Jt(Gt,qt){const wt=Gt.props.scale;return{node:qt.node,x:Gt.state.x+qt.deltaX/wt,y:Gt.state.y+qt.deltaY/wt,deltaX:qt.deltaX/wt,deltaY:qt.deltaY/wt,lastX:Gt.state.x,lastY:Gt.state.y}}function St(Gt){return{left:Gt.left,top:Gt.top,right:Gt.right,bottom:Gt.bottom}}function Wt(Gt){const qt=Gt.findDOMNode();if(!qt)throw new Error("<DraggableCore>: Unmounted during event!");return qt}},36641:function(ui,Cn){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.dontSetMe=Me,Cn.findInArray=Bt,Cn.int=se,Cn.isFunction=bt,Cn.isNum=ge;function Bt(ie,ae){for(let Lt=0,kt=ie.length;Lt<kt;Lt++)if(ae.apply(ae,[ie[Lt],Lt,ie]))return ie[Lt]}function bt(ie){return typeof ie=="function"||Object.prototype.toString.call(ie)==="[object Function]"}function ge(ie){return typeof ie=="number"&&!isNaN(ie)}function se(ie){return parseInt(ie,10)}function Me(ie,ae,Lt){if(ie[ae])return new Error("Invalid prop ".concat(ae," passed to ").concat(Lt," - do not set this, set it on the child."))}},27774:function(ui,Cn){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.SizeSensorId=Cn.SensorTabIndex=Cn.SensorClassName=void 0;var Bt="size-sensor-id";Cn.SizeSensorId=Bt;var bt="size-sensor-object";Cn.SensorClassName=bt;var ge="-1";Cn.SensorTabIndex=ge},79301:function(ui,Cn){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.default=void 0;var Bt=function(ge){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,Me=null;return function(){for(var ie=this,ae=arguments.length,Lt=new Array(ae),kt=0;kt<ae;kt++)Lt[kt]=arguments[kt];clearTimeout(Me),Me=setTimeout(function(){ge.apply(ie,Lt)},se)}};Cn.default=Bt},79789:function(ui,Cn){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.default=void 0;var Bt=1,bt=function(){return"".concat(Bt++)};Cn.default=bt},47242:function(ui,Cn,Bt){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.ver=Cn.clear=Cn.bind=void 0;var bt=Bt(95270),ge=function(ae,Lt){var kt=(0,bt.getSensor)(ae);return kt.bind(Lt),function(){kt.unbind(Lt)}};Cn.bind=ge;var se=function(ae){var Lt=(0,bt.getSensor)(ae);(0,bt.removeSensor)(Lt)};Cn.clear=se;var Me="1.0.2";Cn.ver=Me},95270:function(ui,Cn,Bt){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.removeSensor=Cn.getSensor=Cn.Sensors=void 0;var bt=Me(Bt(79789)),ge=Bt(57829),se=Bt(27774);function Me(Jt){return Jt&&Jt.__esModule?Jt:{default:Jt}}var ie={};Cn.Sensors=ie;function ae(Jt){Jt&&ie[Jt]&&delete ie[Jt]}var Lt=function(St){var Wt=St.getAttribute(se.SizeSensorId);if(Wt&&ie[Wt])return ie[Wt];var Gt=(0,bt.default)();St.setAttribute(se.SizeSensorId,Gt);var qt=(0,ge.createSensor)(St,function(){return ae(Gt)});return ie[Gt]=qt,qt};Cn.getSensor=Lt;var kt=function(St){var Wt=St.element.getAttribute(se.SizeSensorId);St.destroy(),ae(Wt)};Cn.removeSensor=kt},57829:function(ui,Cn,Bt){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.createSensor=void 0;var bt=Bt(20953),ge=Bt(55202),se=typeof ResizeObserver!="undefined"?ge.createSensor:bt.createSensor;Cn.createSensor=se},20953:function(ui,Cn,Bt){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.createSensor=void 0;var bt=se(Bt(79301)),ge=Bt(27774);function se(ie){return ie&&ie.__esModule?ie:{default:ie}}var Me=function(ae,Lt){var kt=void 0,Jt=[],St=function(){getComputedStyle(ae).position==="static"&&(ae.style.position="relative");var tt=document.createElement("object");return tt.onload=function(){tt.contentDocument.defaultView.addEventListener("resize",Wt),Wt()},tt.style.display="block",tt.style.position="absolute",tt.style.top="0",tt.style.left="0",tt.style.height="100%",tt.style.width="100%",tt.style.overflow="hidden",tt.style.pointerEvents="none",tt.style.zIndex="-1",tt.style.opacity="0",tt.setAttribute("class",ge.SensorClassName),tt.setAttribute("tabindex",ge.SensorTabIndex),tt.type="text/html",ae.appendChild(tt),tt.data="about:blank",tt},Wt=(0,bt.default)(function(){Jt.forEach(function(et){et(ae)})}),Gt=function(tt){kt||(kt=St()),Jt.indexOf(tt)===-1&&Jt.push(tt)},qt=function(){kt&&kt.parentNode&&(kt.contentDocument&&kt.contentDocument.defaultView.removeEventListener("resize",Wt),kt.parentNode.removeChild(kt),ae.removeAttribute(ge.SizeSensorId),kt=void 0,Jt=[],Lt&&Lt())},wt=function(tt){var lt=Jt.indexOf(tt);lt!==-1&&Jt.splice(lt,1),Jt.length===0&&kt&&qt()};return{element:ae,bind:Gt,destroy:qt,unbind:wt}};Cn.createSensor=Me},55202:function(ui,Cn,Bt){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.createSensor=void 0;var bt=Bt(27774),ge=se(Bt(79301));function se(ie){return ie&&ie.__esModule?ie:{default:ie}}var Me=function(ae,Lt){var kt=void 0,Jt=[],St=(0,ge.default)(function(){Jt.forEach(function(et){et(ae)})}),Wt=function(){var tt=new ResizeObserver(St);return tt.observe(ae),St(),tt},Gt=function(tt){kt||(kt=Wt()),Jt.indexOf(tt)===-1&&Jt.push(tt)},qt=function(){kt.disconnect(),Jt=[],kt=void 0,ae.removeAttribute(bt.SizeSensorId),Lt&&Lt()},wt=function(tt){var lt=Jt.indexOf(tt);lt!==-1&&Jt.splice(lt,1),Jt.length===0&&kt&&qt()};return{element:ae,bind:Gt,destroy:qt,unbind:wt}};Cn.createSensor=Me},93314:function(ui){"use strict";ui.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},96908:function(ui){"use strict";ui.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oqpPSBgw6BASOh/xAlxgC+u6WJqh0bqdi2nrb66gI0sjQXL2W8xHpb9XUykwPITjZ43KuTpcnBw2HA4TBwFBw81Dt66+42aoq2U7FjAw0Ve8R52KxpLB6v86KWjTvuetmswAGkTUN1W7aDBsHIieiHjkVDlhpuavbkU7ThE9wtjQLMbTosyFzGc5pGoD/RyQ13ANnJBk9YdSm9YVg6+tB0NC2ZtqZ6dn/1P+rKirwqaRqrknVuSM9mZ8J0FD2CetmJ1MipO74WkPXn0VOg72CvY1ZRuJU9uRvQPW4ZLes0jdszlvG3+CoRWroDyERZPtH1Dk1HH56B5vHQWFvJzrUf42lrUaMlPJ4BMxOxtnQAmWhgJLL+3gPQR5+E1qsPDdXl5G9YjUdipIreGpzGFUOfpb4zVXQA2ZnW7op1paSiH30qWlIqdVWlFGz6Al1ipmqkXH0wnD0ym8bOUt0BZGdZuivXk9IH/ajJaK4Uasr3UJizUQX/Fb2WOZ7LtfniosefHEDG38bdo4bUvuijJqG5XFQU5VOSv22/3hr8NTObWzqjIQ4gO8PK3aWO3v3RR57gHR13blpHQ121FZTTM7N5Od5NcQAZbwt3N/mDjvDu8jQ11rHj6/XoskevqKxXMuOPfZHyeDbJAWQ8rdsdZct2zYjj0VJS2bu7gLLiXdZRMiszmx/Hs1kOIONp3e4qO60/+rBx6O5WdmzeRHOTz8lO0pg2fhkr4tU0B5Dxsmx3lytTd99B1FZVUZC31dqanMzxTNDmsz9gGcumOoCMpTV7kixXEvrwCV4HZ1vuZlqamqytu2VCNn+NR3MdQMbDqj1Epj5wBFqfgVSU7qWkWB3CENKgEhibme39jCklBpCysf/H3aohrY1w64CYNqrLCJOziRJg1hN+qqtjJklJQx88xrudmJuzBY+cVveBcmlmNr/qmODQpRIHyPuKlVYtjXBL/1i3K7HyDh4Gp94IU2+Ee0+A+pgPJJ3WPn3QEWgpvSkpKaaiosJabxsuJk7IYksslXEAGUtrmrIW5sHAkerb7UO6NSBJ6wcDhnvXkFu354HlDK8GKzOzOS+WJnQAGUtrmrIW5atXCHoCIDXwDDwSlyuJvIICGhran7OIdRjIAaQDyIgW0PsNRkvtR2l5OaXlAcuPmIaBuh4gp1wP/QYrI338ODRUBRpM0+Cc36p0OVT6nwd9PIcdAydcqr7nroL8NXDi5TBmKoyepPgL16n0dS+3dzgGjoaTjY0If7n+Wow+GdK/p1Jr9sC+Ihg1SX0X3Xob6+K3F0FLg0r/egUUbWovSRy8SdNh5PEw4jho2Ae71sOuDbDhVaWvP1nbWLIZvvo3TLwQvjtDvdQlaf+eB2Uxeuu1V2/oP4yGhnryCn3etqmWS+PmjGUsiYhsGwxdD5C/WwsjJirV7xkX3KjyPvZSY+poqoXbBvqaetzF8HPjDMAbc2HIWDjlp8FNsfldePIaH+iTU2FxIRxkyHvgu5D3afCyM5dDprF8emuBN4jM6TPDm/zZG+HTf/l4xpwG1z/nXaMFpYIv4fHpUGVEJEwmaxu/eBFyP4Br/t5exMPnwZb3bUDADouGPmiU9+3FnLxC3BZvW0rHMgzUswEpI5O8Q9LaDAVroHgzDE2H0SdB6kGqJyryYdFJ0GicbLnsfjjLOGn1yT/ghRmBPSajmgBXLg+Qwwd3j4WzboXTDV4J95jkPZxghH2e+xl89ozKEVDdlKVu8RAq/lqNikm91Eg++GiVXlsGD52tRr1ggCz+BgaPAXk/20oxBSTo/YagJfdiV8lequuMEd9SnwYxCQP1bECKwerK4ZELQUYbk2RbbNZbMOQYlbJyMSy/Wz3LdDjvG/XcWAN3Hg6t7XYp4IxZ8CNjmSCj7NJp7cEQyamRH8m8zT7H54WZ8MkTPhlyO4ZM+xcvUGkb3oDHLw8OSDP1m3fgw0ehtlSBWUb2ysL2eh3It7T+iMddVV1LUVnQMFZMwkA9H5CPXQqb3gzsChlVBBSyHm2uh7ljFHiFbn4Pjj1DPT/1U5Bp0Uq/XQ1HnKxSnrgC1r8aHSAvnAfn3aXKfPYsPHN9cKiYywIJrC+a5Ft/WqfsSDIOBITWsnJjRr/DaG1pIbewJKjUWISBejYgZTqeOzZ0l9zyPhxzusp/7BLY9JZ6FifjhhfUc85/YckPfDKsI6iMRnNGq3t+rBRphJyzBuQgrNBD34etHwTXcfLVcN3TKu/d++H136lnKyDlx3TXkcGdv1iB0ZTT7zDv0/aiMppaWoNKP9AwUM8G5Fdvwt8MjzuY+ab/Bc40dr+yfw2rDEdRRgMBlXSArAFl9KwyzgVaR7f3HoDX5gRKjgTIh6rV2lZow+uBSwJTojhX489R32QUltHYH5A7P4P7T4s19ILLk2k7JY3SqhpK99WFqvOAwkA9G5Af/R1emhW6s865HS5ZpPJXLYXsW328Fy+EH9yhvi+/B1YafH/YCoceqdLnZUBpu6NZKj0cICVgLvnRkoSCFk8OBOSXy+DJq6OV1jH+5F6Q1p/G5mZ2lAQJxxlSDyQMFHtATpgGR56iVNvyHmz7KLDxstcrXqpQUx3cdoiPJ5ZhnzUvwNPXhjb+tLth2lyV/86f4I3f+3jF8Zmfq+6SLNsB96TDUVPgNx8qHmnXg2cFlx0OkDIyPrhPrV2FJNbqe8MvtK4S3go2Zcv6Vta5nUGicp9B3vuBcooraXMHfxHxQMJAsQfkRQvg3DuVeazeq9Vgo06EOz9XKXu3wvwMX651fbXgeCgxPF5reQlgLzSCvuHikOJpSiwxFF3zBEy5TuU+exN8aqzXTP5fvgkZxvrxz2fC5CvhtJ+p3KevgzXPRw9IKWHd6w41yoYDmH8csrMAKTql9vWGqoqr6qisaw6pZUfDQLEH5Hd+Atc+qRRdmw3/vCpQaStPzn9gybk+nl+8BhMvUN+XXgCb3wksf+1T8J1rVHo4QMoux7xxwcMfElwXUJt7zg+cDnmr29clux+/MDxoGW0zzlVBc9lNmTMy9Nov0hpy1goY/31Vl3/Ix6rB8ZfACT9UKRJe+vw59ZxIQMq0nZJGbUMzBRVhL7XoUBgo9oCUoPMdxu6GBKQXTIByy4VaKWnwm4/VVpnQf5fAy7/2dcP0B+FMY90XbMo9fCLM+UJNpZEAKflfZqndGH8SZ0acGiEJSC82wjhWPokH3pvnA62ZJ/G+rJsDZZop1nWmePni7VvpuIvg56+oFNlynJ8JzX5OgswCd63zbUH+5Xuw/ePEA1KWGvIOt9vNlr21eDyhz3p2JAwUe0CKyWavhHRjfVVXoUAni38x8ik/geHGFC33yMgIZu2wcWfDr972dZ/slnz+PNTuhaNPhUvuVd6vSeFGSPGQBbjrXoH3/gxl22BIOpz0I593LXIevQi+ttRpBc/5c+ECI2hupt8rMcGvQgPSGk6SsFHO+2rPXLxyk2a8DrLeFirdrtaHEryXy0ZlmTD5Kt9uzTcrVXDfpESOkKKD7G3rOruqmqhuCv9qjcvF+RlZhDBuoAnjA0iJ1ckoaR4wCNV1794HrxsBYivPze/CsWcGLyUgWz5XAVMoHCAFiEInXhZcloBkxQKQvehQJFP6wh2+Lb78L+C+KaH5JUeWE7Ks8KdZaeqqZaFDRsCMN3z79qEk7t4IMjo21XQdQLpSvP8QoKaxlcJ9odeRorCmsSVjHBPtvhQWH0CKJtKRVz3mO4BgNXhFgQrHyC8/GMmhUNlTPvWG9rnVJarcphX2DleIByrOxxVL1Mhsxv5EqkyVWbNh4/Lw4JLc2e/4TvbI3raM2pFo6k1wxkwYPNa3z2wFpJSXeOf5v1d751bdJE/WqfJDkeWBf+A90SOkTNtJvdA9bWwpa8ET4RWNaMJA8QOk2WF9DlEHGmS6FhDszVX7rXao76EwdJy6yF2OjJXLieUIFKqzpPMlHCWjdsFadWTMDglQFhVAnwFqi/HOEYHrPTtywvFIBx96FAzPVODbk6PW3XbCQQdad0fLiz11D7urW9nXHP4eqmjCQPEHZEcb3NFysR49JMxz5SNKm9VPgZzYcQjE4ZOzKy1u8qtt3Jmv8fCEZcyOZDoHkJEsNHcjDBuvuO6bCvlG/DRSuW9Dvly74tHZUumOOG3LUWo7L4U5gAwHHHGsxMESkvOKC40DEd8GsEXRxqI6D1VNka+P1ODtzGzOD7t66XGX3sdyypaguATHhbJvg1UPR9FN3x7WxjbYsc/ezSqRwkA9b4QclqE8aiEJeH/5UseQITs5F81X/+tQSPa6g73f0zHpPaqUhMa3VrppDRMkNxscKQzU8wDZo7q6+zSmtFGntN6GcwOECwM5gOw+fd6lNW31QG6lADLytTHhwkAOILt0N3cv5XZWe6gXZNqhEGEgB5B2jOfw2LLAvmad3bX2pu1QYSAHkLZM7TDZsYD4NDn2YpJeccHCQA4g7Vja4bFtgeJ6D5WNNqdtcXD8TgM5gLRtaofRjgWa3LC9yl5M0jtK+p0GcgBpx8oOT1QWyKt209Aa2ds2hbpczM7Iwrvr4AAyKlM7zHYsEKVz0+5uIAeQdizs8Ni2gIyL8icxSbeNnZv9go0wkANI26Z2GKOxwJ56D+VRODdmGMgBZDRWdnhtW6C6WWeX/Zjk/jDQ/wHkSLPJ/mcrgQAAAABJRU5ErkJggg=="},57177:function(ui){"use strict";ui.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANQAAAA8CAYAAAAeyZT3AAAAAXNSR0IArs4c6QAAEpJJREFUeF7tXQeYFdUV/mcbS1F6UUEsoLC7IGKNJWpERbEgSoxGo7HEQFDRWCAGgdASNBbEhglqsC1rAxVBNGg0qNgLsJRddmFhe3vby3uT7393ZmfeezOv7M57W3LP9/EtM3Pn3DPn3n/uvf85c58CKdID0gOOeUBxTJNUJD0gPQAJKNkJpAcc9EALoNRpCaqt3rh4QIkDvH/jxV/zuZZjrVy8uRzvSzDdrx3HxWnnEnz1eevhOf/79HpNdrAs6wrQr9VvtiMc+/kc0HSan9Nrq8Uzt9hquuZjv8kPev26r8x16X5VPYDHDYT7Vy/L8vo94d7P8u5mcV+w+1U34GEZ7a+5Tg/vV31tbrmu36ff23JcB9VdBo9a5v2rekq14/1wN30GNXGzctPKKgf7eExVKUGBpJsSEkgWYPMHXEuH0sHlB5iW8jrAtE6sd9AW8GidVD9mR/fvxDrAzJ3Yp/ObAGL3srC1XweJnf0awHUQWgGJ52i3P+D9OyOP/QHSAjYT8Lwd3gRGH3Bp5dza34D7LUDsD04vmPzuN9cZGkSAF3xm4JttNoFWdasNlRVNta4SV21l6YHakvyPGurrNivA12kZ2B1TdLSisvAA1QrF8hbpAUsP8EWVkAwkdgMSugHxiUB8EpDcC+g1AOjeG+BciSBWPXA3NaA8Pxel+7LRXF+bCwXpShxeTX0V33ZED0tAdcRW+X+2iaN3j35Ar/7iX/e+XnCpbg9cZfkozctBrauci/9tioIlKSpeUTLg7iguk4DqKC0h7bD2QPJBQP/hUHsNhsIVv+qBq7QI+7O2w93USGDtUoEFaavxoqJ4x7Z2FQmodnW/rDxsD3Ba2PcwqL0PhaLEobmxAXnZmaiuKPOqUBRsSlBx06gM7AlbZxQKSkBFwalSZRQ9kJAEDD4GSD7Yyz6WFu5HQV4uVI+Ho1W1ouCe1NV4OooWBFUtAdVenpf1ts0DfQ6F2mcoOMurq6nCnp2Z8DAMwNEKWJEKTG+PtZUEVNuaVd7dnh5I6gF1wFFQEpJQW+1CTtYueBgeEPLuwGRcNWQVamJpogRULL0t63LeA/GJUAeNhBKXgOpqF3Kzs6Ey3iVGqs29gQnDMlDnfMXWGiWgYuVpWU/0PBCfBHXQ0VCUeLgqK7B3b67I4BDyZloKrlTmQ6AsyiIBFWUHS/Ux8kBCMtT+w70MYGlJMfILCloqVoDH0jIwMxaWSEDFwsuyjth4IKk71D7DGKzCnj05qK0zZnoKMDUtA69F2xAJqGh7WOqPrQeYvtSjL+rr65C1JxeqMfUrTkpAyrGvoCSaBklARdO7UnfsPaAAat/DocTFo7C4FMWlIvBLUYD0tAz8KppGSUBF07tSd/t4ILE71N5DoHrcyMrJQ0NjY4sd8QompazGumgZJgEVLc9Kve3rgZ79gW49UVVdg9wDhWZbMtNSMEaZDxEFdlgkoBx2qFTXQTygxHnz/gAPdu3NR2Njk9mwmWMy8Fg0LJWAioZXpU7DA/0OB479hTguyQZ2/Sdm3lF79IWS2B2llVXILylvqVcBuLAamZbh/euotA+geg0E/ponHqSpDrizj6MP1WGU8WM671eq7fhVweTFwIQ/Cpe8PRfY8NfYuue4y4BbNbb6y1eA534Tu/rjEqEeNAAejxs7cgvg4VfGmijA8rQM3Oa0Me0HqKUHxLM01gEzD3b6udpXX+9DgNNvBs64GVh0PFDj+Isw/Oe7fAlw3t2i/NoHgPVLwr/XiZLtCShGpHr29zJ++aWVKHX5pPU1Iw5jx6RjuxOP2QLUsPaUcLJG6uII1ZUBtTAb6McAI4B7BktAtdcIRf/zM/vkg9HY3IydeQxBGbMFBVifloELnezecoRy0pu6rsU5QJ/DJKDogXYeoWiCp2c/7mWF7MJy1Nb7kBNwmkaXgJKAioYHDJ0dAFBqt55Q4ruhyFWDooqArzkcpdE7HqBOuxE4aKBokE9WALUGO9PSStxc4Px7xWFzI/DhI0YDDjoGOP5ycbxjE5CzBRh/JTDiDGD4CaL83m/E+W9e8yUM+g0HTtIC6f56/bvd8JOAURp75SoAKvYDh58gStG27tq68L3FQGOtOP/TOmD/j76aOP09YSowbBww9DigtgLY9y2w7zvguzeEvf5ifsb8bcAPbwNjLwF+Pg3oPQTgubfnAcW7ASfXUAOOBH52PTB0nKiHn6UXZwFFu4DPVwEFFssRK0BRz7gpwn/0U+7XQM6XwFfpYrsxpyUhEUjqhdqGJmQXVgRoj1NwR+pqLHOi2o4HqD99DQwdK55t7mjRKfyF++4t1xIf66uAu/oZJcwNuGYOMHgkcKoNs7TtfWDltQZoOd9eshfoqel76OdA9mfWfp6+FkjTpt/vLhA79Jw1PXibrLoZ+OwFo8yIM4EbXwT6MF5iIblfASumAuUaI6oX8e+kOz4Crn3GV8HjFwLbP3AOUJfMBybO9m7eYCnuJmDjQ4L4MIu/rR8+Bty2zvCxuezuT4AVVwHVxU70bR8dao8+XsY1c38F3Ca2j4WcpNG7NqA4MiT1AJoagNwtwIFtwJBRwPATvVF0r5TmAItPBOoqxfEVDwLnapn+n/4DeHlaYONyVCHw4hPErqoPjATOvRM4Syvr3RVWE2/jaQvhF38HfP4vcYEd7ZZ0sWsu5cBPYlTiW58j6cCjxfmqYuDRCWLU0cXcSQ9sBQaOEPvcmcVJQF08F7joz4b2sr3iRcOX2eHjxT9dVl4HfPWqta0cnRmX4r58WZ8CRbsD24Mvj8UnOE7kqN16eT/t2FdWjcrawFHfKRq9awOKzVpdAjxxCcC3vS79jwBmvCs2+6CQStbfrJxOzdsqzte5gFmHAU31vp317BnAL7VpJke55ZN8r4ciJQjyedsM4uLl6cCnzxo6uDcdp42XLRDnvlsDrLjSupPqZ7duAD5+EqgqEmBkh2fHb+uUjy+eJXliI0rK6/f6TrF5ji+TK5aK65wCzh1lbyvb48nJQM4XRpkBRwHT3gIOGS3Obfw78OYsX5+29YgvnLgklNc0YH+FNgX31ekIjd71AfXU5cCP7wQ2B9/q7NScwjTUAHNGCPBR7tgIHHu2+D8DkQxImuXezcARJ4kzz14FfPuG7/VQgLpkHnDh/eIerj3+daN1d9GnlQwM862tr7/MI1QoHW0FFNdLE+8ToQ6uFTlFtpJFe4C+Q8WVmb2NdaO/rS/cCHyxyro95m4Ve9ozNsn24MvBKeHW10nd0dTsxo5C663TnaDRuzagOJ2bM9K+SWZ+ABxzlrj+1GTgx3fF/0kS3PSy+H/mv4FlFxg6zCMYG3z28MCFdChAzd4CDDte6Hz0PGDnR9Y2nvxr4IbnxbX3HwTe+pP4v7mT8mVw/5HW5A3LthVQ4XboO94Hjj1HlF403hr8ZfsEULQ9HwJUz1gHpJwnTj89RZAtTgpHW9WD3cU1qG+y/iK+rTR61wbUD+8AT2uMn1XDTH0YOEfLPsn4I7BJI3q43zZBcdAgsUZiJyjfJzSYRxcuwt+cHag5FKAerRRrO8p3bwVOKXWNJEdSzhdHHAU5GvoDas/nwINn2nc7JwHF2NrxUwCydP2PFEQMiRzulcdjfV1Ke2iXv61b14vpt52Y169v3Ad88LCTcBJ2KvEoqmpAUbUFeypqaxON3rUB9Z9ngFdn2DfK+fcAzHWjbFoOZNxplL1sIXDBfeJ47VxgvVbuLztFh6LMSwWKdgbqDwYodkpej1RIpS85ObCTfrUaWPnr6AKKDNlVy4DxUwURE0rsABWqPZhzOEXLNfz4KSD99lA1RXbd+1NCiahrdCOrzH4jpLbQ6M4Daswk4MhTxYNu32idXcxcN7JklPpq4K6+hmOcpM23vAw8f7290yc9AEyaI65v+BuwxsRkkbiYv0PM6fWF9lGnAXd/LMoza/qRc611BwMUR6ZHKgz6mbE2uymQWTsZNaspX6iE07aOUInJwO0bgKNPM9qL8bHCXUBVoRhdmxuAibOMaawdoL54EXjht/btYR791y0E3pkfGWBClSbjH0c21IPM4no0e6yTlttCozsPqEsXCOdSzOyZ+WFJs87SWJ7CncD8VOOqeX2xYByQrzFu5vsZgF2oxaeCxaHIdDGWZCfXPgucdoO4uuoW4DNtvaKX/8M7QKq2fvr7OcDJVwNn/k5cff4GYMtLkQOKd5hz/exGuWCdI5Lsg7YCimzj5EXCmrzvBYXP4LO/zPrcCGzbASrYS4j6rvuHCBxT7MiLUKAJdZ3Teag44GpCWZ39j3a0lkZ3HlCnXAdcv1I81tcZwD+vCXxEc5nMD4FlE40yv38TGHuxOF5+MbBtQ+D91z8HnKKxTcEAxSyDeaMFfewvDA4TlHrO3UNnAdmbfUsx++D3GoPH0S51oghIskPNHma/9gm1hjIvvv0pc7MF4yaLNQuF9Dzf8JRYAop0NmcdlGeuBL5fE+hL/qbT0gJjOmgHKLbHn48CXD5f0Ap9bA/67eDB4njp6SKbxWnRfjmzqr4ZuZVBszJaRaM7DygGTe/TsgsYUF0wBigx/SACpxB3fyJSbSj/Xga8pn2vw+OpjwDnaOseqynbYWOB2V+KqRglGKB4neksVlQvyQiSEhQGVJdoNLi5ARkPWpRtgE6/xnhP+h32TW1eZ5FlJNtoluMuBW59XZxhytL8NKCh2rcMR+H7vzFSmB7+BcBMAkosAWWegvPlyJekv5hBx2t2gOK1/64EXro1UMeEu4ApfxPnmYa0VJti2nu59Vfi4r27y24vaYYnyLdqraHRnQcUH/P29cAobX1RXSpAw8U7O8mp1wGHalM8bu7OEcTc4UZPAG57z3AWsxW+eEnM148+XUw/yL7pEgxQZOgIvG9eF8HC4l3A4FHAib802D3qefJS4CdTneamumgOcLFfOs0ixoR+sG9QMx1P2j3zA5EzSFZQF3MnZMYA10cMPvOzbU4zT77GyJbwZ8daCyjq58sjHPlhrfDJb1aKNqMU7gBemgZk/VdkeHCtfPliY82s6w0GKJYhkULSgdN5Zq4wTKGzrbzOGQtnLtES9gmPB/uqPKhsCL6hbFwcLkpNh03nCDQwOoBirIajlJ4gaueY95cCb2kBTnMZc0zD/16CZO0cY14fDFAEEmX8FdYWsJOvWwAwF89OOCVcmGWkCIXz9uR0lNNSf5mRLH6rlsIg6LQ1Rt6iXf1ct3B0qncZJVoLqEg6qM5sWrUlM0hIruiM386PBdj09aUdoLZtFOSGTq8HtK1bZKywX0RVvL/cBlejir2u4D9+qCjYnjoaY8Pd1CU6gKIz2BGvecpIIDU7qDRX0Nl881oJf7WOMYnTb/K9Wpkv7vtxXXjJsWTASB6Q8uVbVo/9UCunWqRlv18buunIcumZ5czt46gZSs64BTh7OjBwpJFnZwYU7+cCmTlyzB0028ZrXKcR6Jxe+mdgxxJQtOWIU4CrHzdYPP3Z2Y7fvi5GV+b7MXmWYgcopi0xiM2g+aARvh7kfhP0LUf0GAk5vu2l7qDTPpoSCY0ePUDpTunRVwzrnO6xE/NNFm5KCXcBHTJaLFT5yQWdHkrsOhs7L6co+ucCTKMJR9jRF+cCjMUwK2HW0MD1Tjh6gpVh+hPz2Q5NE+ApyBTrznDo9LbWHe79tHFIigACaXJOH/VUrXB1mMuxTbne1j+nqSltjZY235NX5UFFiGlfJDR69AHV5keOUEEkb+9wVHMac/UTouTm5wBmjEvpMh6oblKRUxnGb14reHzMaoSMNEtAheoac74HDkkRpZae4ZslHepeeb3De4DL6O1load9/JQ1nE1dJKCCNTmTPUmQUPi90kItobXDdxNpYCQe2F/tQXl96J+PUoD30jJwUdDZe7vsehTJ00Za1skpH4O6DO5SMu4CNj0eqTWyfCfwQF0zkFUR3qf3oWj0rjdCHZJqxE0YczF/PRpJ4zJyf+l8b3ayV5jrZ7W/RSQ6ZdkO6QGyfTvL3Giyye0zGx2KRu96gOqQTSaN6ugeKKpTUVQTBjkRgkaXgOroLS3ti4kH+L3hjjICKvS22cFodAmomDSXrKQzeGBPpQc1Nl/yBthvQ6NLQHWGlpY2xsQDFQ0q8qrCm/bZ0egSUDFpKllJZ/AAOYnM8GJS3sexotEloDpDS0sbY+aBAzUelNWFjknpBvnT6BJQMWsqWVFn8EC9G9hdHl5MyjtK+WWjS0B1hlaWNsbUA9mVbtQ2hWb7TKPU7anp8Eb9JaBi2lSyss7ggQjJCZ+90SWgOkMLSxtj5gGOS/zHmJQ7jMyJFsM0Gl0CKmZNJSvqTB4oqPGgJAJyQqfRJaA6UytLW2PmgcoGFfvCj0m10Oj/A9jGm+feuyEMAAAAAElFTkSuQmCC"},81378:function(ui){"use strict";ui.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALAAAAA8CAYAAADGxTD9AAAAAXNSR0IArs4c6QAAFoFJREFUeF7tXQl4k1W6fv8sTbqvlJa2tJSy74ugsiMqq4AKIlDUueNwR2dGHR0XdLwixW3uuF6Xq3O9o15nxuUiIIsCsijK1pa20NJ937eke5tmmec7f/40TfInaUNK6+R7nj5Jk7Of93z/t55w8JBnBYbwCnBDeOyeoXtWAB4Ae0AwpFeA+1SWbbA1A07KQSID6JWT0ivAyThIpBwgBSQy4+fCq0T4jANnrEdlWFkpjK/0ndAetd/znpMaTO0LZcz74tsxti0xjqVXfeNYZcZyxvHSuK3GbDYX03iMbbLy5nOz+pzGbGDrwpfj52DQG2DQAwad8Gcwvudf9ToDQN/pDdBrDYBFWfqMry/UAytP9fjPjJ/rYVHf2L7Qph4GaA0tOj1UnBYqvd6gMugMKr0OKoOOq+UMhhQ5DGfHPRNWMaSRaxy8bQBzPGAZAI3AFMAoAIJtnBnA2WaagdlU39iOAKKeje85FKY2TYDkwWh+APi2ebD0AJ8HMn/AzAHFA4x9Jxwss7bN5yXUpbnwB4SvY3Nu9LmwLr36NIKWAEhA1BlMgOUBCAZYBtJe761Byx+A3vV54Av1efDrtUawm4G+N+D5MfUcHH5s7H890KnqNjRWNGkaqlXqhgp1VV1JwxkOSJUAqUB0xk4s0Q4FgIty4KEweM8Yba+ARCmBzBuQeksgVXKQKugVkAdIoRwhhU+EHJycg0GrNz01Whs6UJhegtLsCmi7tI0GYC8H7osYTPhuO2Z3D9a19gB4sO6Mm8flFSKBd4QcyuFS+MbKIfOWMM6v69KjIq8WhVlFaKpvAQeuFsCr/gh45wmsbXHzsPrcvAfAfV6yn18FjgN8YmUInKiAd4TMJObUlNQj42wWutq7SNtXA9zrIVC88nts7Bgsq+AB8GDZiUEyDrm/BAFj5PBLUAASniNnpeSgvLCSjZADl8dBev8ubD41GIbsAfBg2IVBOAaSnUNnK6GM5DlyQ5UKmSlZ6GjvJBiT5epdGRSP7MRGzbUcvgfA13L1h0DfPtFyBE9VMKuMVqNH2rl0NNapBG78vQ98b9+B2xuu1VQ8AL5WKz+E+pV6cQiaqoAyXAp9tx5pyZfQUNdoBDEKAG5VEhJzrsWUPAC+Fqs+RPsMnOgF3xg5dBod0i9eRmM9D2IAFYB03m5sKRnoqXkAPNArPsT7CxingE+UFDqdHpfSMtHYYJIecn2hnL8DG+sGcooeAA/kav9M+gpIkEMZJYdBq0PqxXS0NDcLMvEFKRTzB1Kx8wD4ZwKqgZ6G/2g5vCPlaGttR+rFZMaRiSSQvLILW58YqPF4ADxQK/1z64cDs05IlByqqiqRX5gvKHV6gLspCYknB2LKHgAPxCr/TPuQ+XAImOQFzsDh0pVLUDcJ5jWUSaGcuBMbW9099WsOYDKYU8Qbi5zqshnZ6e41uGrtSxScU3NQhErR1UBhae4hstkaBiiWzDtSykSJri4NLmYmQ6s1dfz6bmx7xD0z7Gn1mgN4bX48CyapP9eBI/NLXZ5v3JYAzHlnOGvnyMJSqNO7TG36xMjYe41KB22r+GGR+nC48aNIVrb4780o2+OYkYTOVWLRnijk/JcKee+qoVHzMqE5zXlvOGLW+0MRIsXBGUVouuweJ9bys7HwjpJBldaJk2vcH/brP9aLRb1V11aisLzAKEpwWimks3Zic4bLm2qngUED4K5GHWpOttuda+U3bSj83ya7ZeLvCcD1f+HBd3hOMVQXeQDL/DhsVI1l71MerUXOm/zjzhYRV1lfmsC+Sn28FtmviZcV6t/wUSRGbQ5g/575RRWKPuE1c3Ma8+sgXPcmf7gynqvH5d3OO7DkARIowigzwDEtPxcLryApmrK7cGqtYwB31evQ3Wx94Bz3xJcgOThwrBd0Wj1Ssi6gW8sfTA44swuJ8zje9ewWGjQAdmZ2OW+rkPIwRfeJ09UAsH+CHGuuxLNOzj9Yjfz37R8axTAp1hWPBnmsOuu02BtXCL3Ges8IhOvLRkPmI0FjSie+ud55u//YB4Iw+w0e/Febkh+qQe47apea9Y2VQeYrQXlNGcpqeubFQfKrJGz9wKXG7VQeNADuqNKi6FNrrmU+9rqfOlDxtf3HudMAfkuFmPV+iN0QgMyXG6BK6xE1gqYpsDI5jnX9071VKHYwrklPhWDa88NY+csvNiDj2XrRJZ/7fgRG3xfIvv8qrgAdFc4Jq4MdwHQoCcQkA6fmXIBOz8v4HNAog2zcc9gsviguoNutAKZHsdRHYnd4y76LgU+UHKr0TvxwFx+y54iIu7WX9Ww8SwGS8/mp8YkBmPNuBHv/7fwSHph6A0jBshQhVqbGIWiKAgUfqnFue42p22HzvHHzyZHs/+83VKB8r/ihoRQjkuMp6IVShvYlFGLyjlCEzVXanIZXiJS5Y4laizSij+78/2lisrRA8kAJCz53RKO2BLL+ic5tr0btaftiGZXrrNGhu6n/IoQwJt+RMrbOJTVFqG4030vJX3dj632Oxt6f790K4CWHohF5s29/xmW3DoH98Oyex9TY3wRh9mvij1f15S4cWVBiBWCBW2vb9fhqZIFpEyNv9sGSQzFsDCdWlqHqqDgIiIsv+DyKlS39/xac3lSJpd9EI+Im1+Z9+YUGZPyHbaYVMlOB0DneNtdo5J3+GL7Ih31HcraYtYPmXPSx/SdeXzeORAifETJ0dnYivTgFBoMgRpEMLF24G5tP97VNR+WHJIBL97TgtBm37i+AJV4c1hbEsywEc8XOHJRHl5Si7rTtBASZLwfi4n7xXmydT60rR8XBNkx/IQwhM3s4cMgsJVOqCDT1Z5xLZij6W7MowMxFFkcbLPZ9R7UWX8XwFoOrSd4jOUilMuRWZkHdZq78cpdliJ5xtZNFBwTAxAW+u7nMap1uOhbDTEo1p9qR8oh95Ywe9YJp68fESpT8oyc9K+x6JUas8GPtB09TIGoV/55Eg45qHTprtSj8qMmmFWLKs6GY8scwNOdqcGBSEas3KjEAN3xotGRcV9xLPjafBJnFEv4tyPTRsZtKUfu9NUBJTApf6NOrD1dAYw7gikOt0Hc7r+SHTFcys6W7AOwVLIFXoBQ16iqU1BdaTvOJ3dj2iitzt6w7IADuqNHiq2jr0357xWgow2UoP9CK8/9eDZ8YOXxjZPAZaXyNkcN7uBRHF5dh7gcRGH1vIHQaA/ZE5ovKjk4rcUYzmt9oOW7L5i0Ox28tQ/Xxdkz+YyimPhvGPvsyPA8albV8GLXaF4u+iu61nqIAPhGD8Pk+aM7R4MBk/pC4QuYA3juqAJo+yK/XvRUOkpPdBWB6qpHuo9F0I73sgsU0uTYZFOShc93gb2x5wAD89YQiDLteyUBKDgVSZGI3+bOUb0e0L6EAEx8PRfQaP6gyOnFytbhts68Apr5vOT0SYXO9Uba3BT9sqMSNn0QiblMAOuu12BNpffDIbLYqLY4dPnMSA/CKlFgET1UyRdVcdnc0b7HvB7MIQWP2jiJlk8OVqgy0a6wU4H27sW1df+d+zTjwiRXlTF60R6TFd1Rq0VbSjbYyLdpLu9FW2s2UoxG3+qK1RIumzC67GnN/AEwmqmlJw5D3ngppO+pBjgCSYet+bGfc35IW7olih4mIQK4M44EsBuC1hfHswDYkd+LECuv2zNunC0wcORXMAaxR060nzsNB6ith9mp3cWAaiVewFBQnUaEqRVVzudXgOEjWJGHrAedHLV5ywDjw/rGFWF86Gu2lWrSV8cCM3xbIjPoElB+3VjHw0gbaIsHlXPyPZvyUWCU6I0sAtxV3Y/QvApH332pRTxx56TgJZwLOBtUYyP0kKPhrE87dX92rL6k3hzvrEtiTgwBZ+HGTybsmBuCN6jHMyO8M0eElU5w9MgfwF2F5fTKBCXZodwKY3MoE4rauVmTX2vQkF4dCOfFqpOcPGIBtycArLsQieLoS3a16ZL/WaFOWkyo4hN3gjejVPMdLe7oOWa+YUlms9tkcwAR2Uuh0HXrsH1folCuZYgjWF4/m+9pRh6w/Wfe1+EAUgiYp8M0NJezJILiubQGYAmvu7hjnDHZZmeY8DQ5MtC8nmwOY5Gq6b81Z8o6UMYuIOwFM3gvv4TLGjDJqkqHVWcd8SICXdmHbU86OW6zcNQWwI/OX5aAJ6IdnFqO1yPZNR8RJJz8dhomPhfSqShz/4NQipwAcscwHSw/zNuDv76hA+X5rJwYFDJFtmQKFzA+MLQCbx1VUHmlD9bE2m3sx/qFg5tBRZ3bh0PRipzlwfwHgVgADkAdL2F1zZc1FqG/v/RQzjrmbg9e0JGy60t85UD23AniZUfsmj9P+sdZchTRWAgxxMb943jtli7Tt5HnrRsnnLWg4T/cS9KaEXwZi5EZ/pulLjB45KkHyYe7bauS8pWIXdDgTzDPrtXCM+00w62BPTD46q+2HPToCcNQqXyzay1srLM1/5rNYkRyL4GlKNKZ24pu59mMkzDnwoZnF0DQ5H5o546VhzH3ubgBLlRLI/Tk0dzQjX51pc185cCeTkLhk0AL4ttxR8BvlxdyZx5bwygu5Q8l1KRDJpxTk0pKnYU4Aoti7/EEu1/Zyba/YB3Kn2nJ5Lvh8BAtTtKRvbyxBwwUe8M5Go60rjudd2xmdODzLcbCNIwBPfT4Mk5/iXbv2QihXpsUxsaTuTAeOLrRvZTIHcOmXLcy06CyRJYgcL+4GMF1XJQ+RsvvWLjcmQ0fXadogCbh7diHxY2fHb1nOrRz4rtYxTNkp+byZhQ7OejUc4Yt9cHBKEVryeDFAUM7MvWurMuIQOEGB6hNtOH4Lr8WS6eq23HhUHm5F+tP1vcSIcb8NwqQdoaDNNHQD437Lc1BnwinZ3b7G8xS+0BvLvuNjILLfaETqY44TbB0BeOmRaEQs8WXOhs8CckUDzVdfHoWAcV6oOtYGstjYo8FuRhPGToyJ4lRKW4rQ2NUTa2I+N7o8UAq/cTuxvl/hcG4DMGUd3FHNx9ReebWRKV7ktiVtPPcdFZIf4j1vzgJ4WlIYJj0RCl0nKWRFzGIhELl0dZ383bt9MaORy3j6i8NwfHk5yFohgI3abS3U4OCMYuja7XM3ewCmw3Fn3RjQfWP15ztwZJ44Z70tLx5+cXKTLdpZAP90TxW0rc4H4ox9MAgRS33dzoFp/BTYQ0p4i6YZha1Z9qb03m5s+3V/uLDbAEw3uaxM4e2+KY/VIucNFWb+aRjGPxzCrA57YwuY2coZAFMg9205o9j9tln/2Yi0p8Q5oxiAzZUpciuTB45kZqLkR2qgvtSFZcd47isQZVc4cnHbA/DIDf6Y/7cRrDlH1hMyMZKFoOj/mnDmvt5KD3FmWk+BYtb5IXYjHzx/9pdVIB3BWRqzPYgF+5B+cP6BHq6ozuhinsKrSSRGyPwl7B7izJZU6ETynDhAL4X0hp3Ycr6v/bsNwObKy+m7K9njnUxUxIVJO039Qy2yX1c5BeDrP4xAfGIgU1b2jym06doVJi4GYOK0ltYJqlN9vA2Xkhow+9VwZtKjCKqa4+0smozeH1taJhrMQ/XtAfjmUyMx7EY+auzriYUmscnWJt1Zn8BiCLLfVCH10d5xIRMeDcaMl8L7urd9Kn/xyVpc+bPjzJM+NUpc2FsCCQeUdRRA1S3OeDjg4lQor9uIjc5rpO60Qlz39nCM+RUf6GKuTC3aH4WoFX4sFpZEgbV5fE6cmAx8OanBJJemP1uHzBfFbcCWgBJkYP8xcqzJ4uMdiAiYFBif+VIjU/JINhfk5rz31YzDr8kZxTxsZJc9NKNYNFlTDMAhsxRYfpZ/AjnjQt7UOZYd7LRn6pD1cu85DmUAc3L6SQgJ2rXNKOiwK0ZQbu9Du7Dtzb4cErdwYDLe316eAJKDyQa7L77HsxS9zg8Lv4hC7Q/tOL25EreejrULYJKdKZWGLBDkzeuLTGquxJFiSMmHJZ+1IOvlBjRl8Y9LYTz0XrAXU8KneQaEvYMjBmDzWGjhCSS2MaSg3lHJ6wskEhR+ZB2nS8qQJUUs8wVF01Ecx8Wn6pD9qu3DPeU53hJCQVXkkcx/X42uut6MTswD2hcwiZUlzxz9NkduZxq6DeJiCgeu2RsY/zTsuFotOnELgEes9MXifbzt0zLFhsBNFgaSOYmckYFJGfIf44XmbMcy2vTdYSzwh+jgtCITUClIvTmvmylrAo1Y7osFX45glhLiyidXlZuC16nPVem8ZYBk9q8nFNq0CdsCsLmVwBnuO/EPIZj+Ap+SRFkkDeesbd3CmAkMI1b4ghwfw+bxMjwRJcSeWF1u/aTggDlvDwc5X8htT0Q28eK/tzD7OMm+7ibBNl+tKUO9zn7WDQd8loRtm5wdk1sALERz0SBI9qOYh/GP8KYtSxKi0djPTxnjWsnBwXEcA5Wt5Ehq48y91UyuJgpf5I15n4xgSiEBjoiSK/dEFYgGukTe4ouFe3rAe+GBGuT/pXfyprkcbysugvqxBDB9tvRIDBMHaPxkEqv+js/oGLbAGzNfCYeuXQ9dFz9fUlDDjNkVFAdB4ZZkUbEkGi/FKUet9mNxGgK1FGhw8ck6u2lPVJZMWgRicvpQZJwJ+KfaWYZ2OeUaOq8LOosvVo7iTCgxuVuvQW53msO6UnC3PI/Eow4LuksGnvnncIz/XTDqz3bgyIJSZqqypUA5M0CxMj9urWTiABFpuhvqE/iFMpKjDGaSUZedGMnuM7jwYA3yP7CdeXzT0RgMX+xjU7myBWAy7y0+EA3/0V649Hw9Lu3qSZ2nQKA7ahLYD6pYEkXiHVtSivqztrmv5RqSKzv/AzX70/fxN4ToYFL0XdBk3rJBThvy/rnzMhT62TNyahTpMtFhsO1OF9aEfsYgHKFTfoeVDh8PbuHANJCJj4ewC0QIGOQgEMvh6i+IKw609hIpxv8+mAWp0O0+ZftanLo0hOKRyUYrBl4aG5mvKOWo6ojtRY+72x+z3+Lz8egOhrofOxhXpUd8+h+tc9oS7g9EAF0EYvwJLNJc6n/qQOW3bb0SVS3XhTyYK5LjUL6vlUXJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},16722:function(ui,Cn,Bt){"use strict";Bt.d(Cn,{Z:function(){return kt}});const bt=Jt=>typeof Jt=="object"&&Jt!=null&&Jt.nodeType===1,ge=(Jt,St)=>(!St||Jt!=="hidden")&&Jt!=="visible"&&Jt!=="clip",se=(Jt,St)=>{if(Jt.clientHeight<Jt.scrollHeight||Jt.clientWidth<Jt.scrollWidth){const Wt=getComputedStyle(Jt,null);return ge(Wt.overflowY,St)||ge(Wt.overflowX,St)||(Gt=>{const qt=(wt=>{if(!wt.ownerDocument||!wt.ownerDocument.defaultView)return null;try{return wt.ownerDocument.defaultView.frameElement}catch(et){return null}})(Gt);return!!qt&&(qt.clientHeight<Gt.scrollHeight||qt.clientWidth<Gt.scrollWidth)})(Jt)}return!1},Me=(Jt,St,Wt,Gt,qt,wt,et,tt)=>wt<Jt&&et>St||wt>Jt&&et<St?0:wt<=Jt&&tt<=Wt||et>=St&&tt>=Wt?wt-Jt-Gt:et>St&&tt<Wt||wt<Jt&&tt>Wt?et-St+qt:0,ie=Jt=>{const St=Jt.parentElement;return St==null?Jt.getRootNode().host||null:St},ae=(Jt,St)=>{var Wt,Gt,qt,wt;if(typeof document=="undefined")return[];const{scrollMode:et,block:tt,inline:lt,boundary:rt,skipOverflowHiddenElements:ut}=St,dt=typeof rt=="function"?rt:Nn=>Nn!==rt;if(!bt(Jt))throw new TypeError("Invalid target");const pt=document.scrollingElement||document.documentElement,Ft=[];let Tt=Jt;for(;bt(Tt)&&dt(Tt);){if(Tt=ie(Tt),Tt===pt){Ft.push(Tt);break}Tt!=null&&Tt===document.body&&se(Tt)&&!se(document.documentElement)||Tt!=null&&se(Tt,ut)&&Ft.push(Tt)}const _t=(Gt=(Wt=window.visualViewport)==null?void 0:Wt.width)!=null?Gt:innerWidth,re=(wt=(qt=window.visualViewport)==null?void 0:qt.height)!=null?wt:innerHeight,{scrollX:he,scrollY:Ae}=window,{height:Fe,width:ee,top:We,right:Yt,bottom:qe,left:Ge}=Jt.getBoundingClientRect(),{top:Oe,right:Ze,bottom:Qe,left:we}=(Nn=>{const Xe=window.getComputedStyle(Nn);return{top:parseFloat(Xe.scrollMarginTop)||0,right:parseFloat(Xe.scrollMarginRight)||0,bottom:parseFloat(Xe.scrollMarginBottom)||0,left:parseFloat(Xe.scrollMarginLeft)||0}})(Jt);let oe=tt==="start"||tt==="nearest"?We-Oe:tt==="end"?qe+Qe:We+Fe/2-Oe+Qe,Pe=lt==="center"?Ge+ee/2-we+Ze:lt==="end"?Yt+Ze:Ge-we;const En=[];for(let Nn=0;Nn<Ft.length;Nn++){const Xe=Ft[Nn],{height:kn,width:Vn,top:Ai,right:Wn,bottom:Si,left:an}=Xe.getBoundingClientRect();if(et==="if-needed"&&We>=0&&Ge>=0&&qe<=re&&Yt<=_t&&(Xe===pt&&!se(Xe)||We>=Ai&&qe<=Si&&Ge>=an&&Yt<=Wn))return En;const Li=getComputedStyle(Xe),Oi=parseInt(Li.borderLeftWidth,10),ue=parseInt(Li.borderTopWidth,10),Pn=parseInt(Li.borderRightWidth,10),de=parseInt(Li.borderBottomWidth,10);let Dt=0,Mt=0;const zt="offsetWidth"in Xe?Xe.offsetWidth-Xe.clientWidth-Oi-Pn:0,be="offsetHeight"in Xe?Xe.offsetHeight-Xe.clientHeight-ue-de:0,De="offsetWidth"in Xe?Xe.offsetWidth===0?0:Vn/Xe.offsetWidth:0,fe="offsetHeight"in Xe?Xe.offsetHeight===0?0:kn/Xe.offsetHeight:0;if(pt===Xe)Dt=tt==="start"?oe:tt==="end"?oe-re:tt==="nearest"?Me(Ae,Ae+re,re,ue,de,Ae+oe,Ae+oe+Fe,Fe):oe-re/2,Mt=lt==="start"?Pe:lt==="center"?Pe-_t/2:lt==="end"?Pe-_t:Me(he,he+_t,_t,Oi,Pn,he+Pe,he+Pe+ee,ee),Dt=Math.max(0,Dt+Ae),Mt=Math.max(0,Mt+he);else{Dt=tt==="start"?oe-Ai-ue:tt==="end"?oe-Si+de+be:tt==="nearest"?Me(Ai,Si,kn,ue,de+be,oe,oe+Fe,Fe):oe-(Ai+kn/2)+be/2,Mt=lt==="start"?Pe-an-Oi:lt==="center"?Pe-(an+Vn/2)+zt/2:lt==="end"?Pe-Wn+Pn+zt:Me(an,Wn,Vn,Oi,Pn+zt,Pe,Pe+ee,ee);const{scrollLeft:Ce,scrollTop:te}=Xe;Dt=fe===0?0:Math.max(0,Math.min(te+Dt/fe,Xe.scrollHeight-kn/fe+be)),Mt=De===0?0:Math.max(0,Math.min(Ce+Mt/De,Xe.scrollWidth-Vn/De+zt)),oe+=te-Dt,Pe+=Ce-Mt}En.push({el:Xe,top:Dt,left:Mt})}return En},Lt=Jt=>Jt===!1?{block:"end",inline:"nearest"}:(St=>St===Object(St)&&Object.keys(St).length!==0)(Jt)?Jt:{block:"start",inline:"nearest"};function kt(Jt,St){if(!Jt.isConnected||!(qt=>{let wt=qt;for(;wt&&wt.parentNode;){if(wt.parentNode===document)return!0;wt=wt.parentNode instanceof ShadowRoot?wt.parentNode.host:wt.parentNode}return!1})(Jt))return;const Wt=(qt=>{const wt=window.getComputedStyle(qt);return{top:parseFloat(wt.scrollMarginTop)||0,right:parseFloat(wt.scrollMarginRight)||0,bottom:parseFloat(wt.scrollMarginBottom)||0,left:parseFloat(wt.scrollMarginLeft)||0}})(Jt);if((qt=>typeof qt=="object"&&typeof qt.behavior=="function")(St))return St.behavior(ae(Jt,St));const Gt=typeof St=="boolean"||St==null?void 0:St.behavior;for(const{el:qt,top:wt,left:et}of ae(Jt,Lt(St))){const tt=wt-Wt.top+Wt.bottom,lt=et-Wt.left+Wt.right;qt.scroll({top:tt,left:lt,behavior:Gt})}}}}]);
|
|
|
}()); |