|
|
!(function(){var sx=Object.defineProperty,ax=Object.defineProperties;var lx=Object.getOwnPropertyDescriptors;var vv=Object.getOwnPropertySymbols;var Cw=Object.prototype.hasOwnProperty,Bw=Object.prototype.propertyIsEnumerable;var Sw=(hi,Cn,bt)=>Cn in hi?sx(hi,Cn,{enumerable:!0,configurable:!0,writable:!0,value:bt}):hi[Cn]=bt,Sg=(hi,Cn)=>{for(var bt in Cn||(Cn={}))Cw.call(Cn,bt)&&Sw(hi,bt,Cn[bt]);if(vv)for(var bt of vv(Cn))Bw.call(Cn,bt)&&Sw(hi,bt,Cn[bt]);return hi},Iy=(hi,Cn)=>ax(hi,lx(Cn));var Pw=(hi,Cn)=>{var bt={};for(var Mt in hi)Cw.call(hi,Mt)&&Cn.indexOf(Mt)<0&&(bt[Mt]=hi[Mt]);if(hi!=null&&vv)for(var Mt of vv(hi))Cn.indexOf(Mt)<0&&Bw.call(hi,Mt)&&(bt[Mt]=hi[Mt]);return bt};(self.webpackChunk=self.webpackChunk||[]).push([[342],{27812:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return jt}});var Mt=bt(96663),ce=bt(59301),ie={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"},Ie=ie,ee=bt(7657),Zt=function(Pt,re){return ce.createElement(ee.Z,(0,Mt.Z)({},Pt,{ref:re,icon:Ie}))},Nt=ce.forwardRef(Zt),jt=Nt},89489:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return jt}});var Mt=bt(96663),ce=bt(59301),ie={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},Ie=ie,ee=bt(7657),Zt=function(Pt,re){return ce.createElement(ee.Z,(0,Mt.Z)({},Pt,{ref:re,icon:Ie}))},Nt=ce.forwardRef(Zt),jt=Nt},59477:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return jt}});var Mt=bt(96663),ce=bt(59301),ie={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},Ie=ie,ee=bt(7657),Zt=function(Pt,re){return ce.createElement(ee.Z,(0,Mt.Z)({},Pt,{ref:re,icon:Ie}))},Nt=ce.forwardRef(Zt),jt=Nt},40001:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return jt}});var Mt=bt(96663),ce=bt(59301),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},Ie=ie,ee=bt(7657),Zt=function(Pt,re){return ce.createElement(ee.Z,(0,Mt.Z)({},Pt,{ref:re,icon:Ie}))},Nt=ce.forwardRef(Zt),jt=Nt},26227:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return jt}});var Mt=bt(96663),ce=bt(59301),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Ie=ie,ee=bt(7657),Zt=function(Pt,re){return ce.createElement(ee.Z,(0,Mt.Z)({},Pt,{ref:re,icon:Ie}))},Nt=ce.forwardRef(Zt),jt=Nt},49198:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return jt}});var Mt=bt(96663),ce=bt(59301),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},Ie=ie,ee=bt(7657),Zt=function(Pt,re){return ce.createElement(ee.Z,(0,Mt.Z)({},Pt,{ref:re,icon:Ie}))},Nt=ce.forwardRef(Zt),jt=Nt},87169:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return jt}});var Mt=bt(96663),ce=bt(59301),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"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"},Ie=ie,ee=bt(7657),Zt=function(Pt,re){return ce.createElement(ee.Z,(0,Mt.Z)({},Pt,{ref:re,icon:Ie}))},Nt=ce.forwardRef(Zt),jt=Nt},73331:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return jt}});var Mt=bt(96663),ce=bt(59301),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},Ie=ie,ee=bt(7657),Zt=function(Pt,re){return ce.createElement(ee.Z,(0,Mt.Z)({},Pt,{ref:re,icon:Ie}))},Nt=ce.forwardRef(Zt),jt=Nt},15277:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return jt}});var Mt=bt(96663),ce=bt(59301),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},Ie=ie,ee=bt(7657),Zt=function(Pt,re){return ce.createElement(ee.Z,(0,Mt.Z)({},Pt,{ref:re,icon:Ie}))},Nt=ce.forwardRef(Zt),jt=Nt},52671:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return jt}});var Mt=bt(96663),ce=bt(59301),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},Ie=ie,ee=bt(7657),Zt=function(Pt,re){return ce.createElement(ee.Z,(0,Mt.Z)({},Pt,{ref:re,icon:Ie}))},Nt=ce.forwardRef(Zt),jt=Nt},8657:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return jt}});var Mt=bt(96663),ce=bt(59301),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},Ie=ie,ee=bt(7657),Zt=function(Pt,re){return ce.createElement(ee.Z,(0,Mt.Z)({},Pt,{ref:re,icon:Ie}))},Nt=ce.forwardRef(Zt),jt=Nt},56082:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return jt}});var Mt=bt(96663),ce=bt(59301),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},Ie=ie,ee=bt(7657),Zt=function(Pt,re){return ce.createElement(ee.Z,(0,Mt.Z)({},Pt,{ref:re,icon:Ie}))},Nt=ce.forwardRef(Zt),jt=Nt},33853:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return jt}});var Mt=bt(96663),ce=bt(59301),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Ie=ie,ee=bt(7657),Zt=function(Pt,re){return ce.createElement(ee.Z,(0,Mt.Z)({},Pt,{ref:re,icon:Ie}))},Nt=ce.forwardRef(Zt),jt=Nt},15075:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return jt}});var Mt=bt(96663),ce=bt(59301),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},Ie=ie,ee=bt(7657),Zt=function(Pt,re){return ce.createElement(ee.Z,(0,Mt.Z)({},Pt,{ref:re,icon:Ie}))},Nt=ce.forwardRef(Zt),jt=Nt},43531:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return jt}});var Mt=bt(96663),ce=bt(59301),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},Ie=ie,ee=bt(7657),Zt=function(Pt,re){return ce.createElement(ee.Z,(0,Mt.Z)({},Pt,{ref:re,icon:Ie}))},Nt=ce.forwardRef(Zt),jt=Nt},61485:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return jt}});var Mt=bt(96663),ce=bt(59301),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},Ie=ie,ee=bt(7657),Zt=function(Pt,re){return ce.createElement(ee.Z,(0,Mt.Z)({},Pt,{ref:re,icon:Ie}))},Nt=ce.forwardRef(Zt),jt=Nt},38819:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return jt}});var Mt=bt(96663),ce=bt(59301),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Ie=ie,ee=bt(7657),Zt=function(Pt,re){return ce.createElement(ee.Z,(0,Mt.Z)({},Pt,{ref:re,icon:Ie}))},Nt=ce.forwardRef(Zt),jt=Nt},47472:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return jt}});var Mt=bt(96663),ce=bt(59301),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},Ie=ie,ee=bt(7657),Zt=function(Pt,re){return ce.createElement(ee.Z,(0,Mt.Z)({},Pt,{ref:re,icon:Ie}))},Nt=ce.forwardRef(Zt),jt=Nt},95869:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return jt}});var Mt=bt(96663),ce=bt(59301),ie={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"},Ie=ie,ee=bt(7657),Zt=function(Pt,re){return ce.createElement(ee.Z,(0,Mt.Z)({},Pt,{ref:re,icon:Ie}))},Nt=ce.forwardRef(Zt),jt=Nt},37036:function(){"use strict"},95625:function(){"use strict"},88010:function(hi,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 hi(Ct,et,tt,lt){tt===void 0&&(tt=0),lt===void 0&&(lt=1/0),this._name=Ct,this._defaultValue=et,this._minimum=tt,this._maximum=lt}Object.defineProperty(hi.prototype,"name",{get:function(){return this._name},set:function(Ct){if(typeof Ct!="string"||Ct==="")throw new Error("Shape name must be a valid string.");this._name=Ct}}),Object.defineProperty(hi.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Ct){if(typeof Ct!="number"||isNaN(Ct))throw new Error("The default value must be a real number, not: "+Ct);this._defaultValue=Ct}}),Object.defineProperty(hi.prototype,"minimum",{get:function(){return this._minimum},set:function(Ct){if(typeof Ct!="number"||isNaN(Ct))throw new Error("Minimum must be a real number, not: "+Ct);this._minimum=Ct}}),Object.defineProperty(hi.prototype,"maximum",{get:function(){return this._maximum},set:function(Ct){if(typeof Ct!="number"||isNaN(Ct))throw new Error("Maximum must be a real number, not: "+Ct);this._maximum=Ct}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Ct,et){var tt=go.Shape._FigureParameters[Ct];return tt?tt[et]:null},go.Shape.setFigureParameter=function(Ct,et,tt){if(!(tt instanceof hi))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[Ct];lt||(lt=[],go.Shape._FigureParameters[Ct]=lt),lt[et]=tt};var Cn=[];function bt(Ct,et){var tt=Cn.pop();return tt===void 0?new go.Point(Ct,et):(tt.x=Ct,tt.y=et,tt)}function Mt(){var Ct=Cn.pop();return Ct===void 0?new go.Point:Ct}function ce(Ct){Cn.push(Ct)}function ie(Ct,et,tt,lt,rt,ht,dt,St,It){It||(It=new go.Point);var _t=Ct-tt,Gt=rt-dt,oe=NaN,ue=NaN;if(_t===0)if(Gt===0)Ct===tt&&(oe=Ct,ue=et);else{var de=(ht-St)/Gt,be=ht-de*rt;oe=Ct,ue=de*oe+be}else if(Gt===0){var Jt=(et-lt)/_t,Ke=et-Jt*Ct;oe=rt,ue=Jt*oe+Ke}else{var Jt=(et-lt)/_t,de=(ht-St)/Gt,Ke=et-Jt*Ct,be=ht-de*rt;oe=(be-Ke)/(Jt-de),ue=Jt*oe+Ke}return It.x=oe,It.y=ue,It}function Ie(Ct,et,tt,lt,rt,ht,dt,St,It,_t,Gt,oe,ue,de){var be=1-It,Jt=It,Ke=Ct*be+tt*Jt,Wt=et*be+lt*Jt,Ge=tt*be+rt*Jt,He=lt*be+ht*Jt,Me=rt*be+dt*Jt,We=ht*be+St*Jt,_e=Ke*be+Ge*Jt,ve=Wt*be+He*Jt,ne=Ge*be+Me*Jt,Se=He*be+We*Jt,Pn=_e*be+ne*Jt,Mn=ve*be+Se*Jt;_t.x=Ke,_t.y=Wt,Gt.x=_e,Gt.y=ve,oe.x=Pn,oe.y=Mn,ue.x=ne,ue.y=Se,de.x=Me,de.y=We}var ee=new go.Spot(.156,.156),Zt=new go.Spot(.844,.844),Nt=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new hi("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=5),lt=Math.min(lt,et/3),lt=Math.min(lt,tt/3);var rt=lt*Nt,ht=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&&(ht.spot1=new go.Spot(0,0,rt,rt),ht.spot2=new go.Spot(1,1,-rt,-rt)),ht}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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=ee,rt.spot2=Zt,rt.defaultStretch=go.GraphObject.Uniform,rt}),go.Shape.defineFigureGenerator("Line1",function(Ct,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(Ct,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(Ct,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,tt,Nt*et,0,et,(1-Nt)*tt)))}),go.Shape.defineFigureGenerator("Curve2",function(Ct,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,tt,0,Nt*tt,(1-Nt)*et,tt)))}),go.Shape.defineFigureGenerator("Curve3",function(Ct,et,tt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,et,Nt*tt,Nt*et,tt)))}),go.Shape.defineFigureGenerator("Curve4",function(Ct,et,tt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,(1-Nt)*et,0,0,(1-Nt)*tt)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Ct,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(Ct,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(Ct,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(Ct,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 hi("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)?lt=.1:lt<-1?lt=-1:lt>1&&(lt=1);var rt=Math.abs(lt)*et;if(lt===0){var ht=new go.Geometry(go.Geometry.Rectangle);return ht.startX=0,ht.startY=0,ht.endX=et,ht.endY=tt,ht}else{var ht=new go.Geometry;return lt>0?ht.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())):ht.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&&ht.setSpots(rt/et,0,(et-rt)/et,1),ht}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new hi("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)?lt=10:lt<-et?lt=-et:lt>et&&(lt=et);var rt=Math.abs(lt);if(lt===0){var ht=new go.Geometry(go.Geometry.Rectangle);return ht.startX=0,ht.startY=0,ht.endX=et,ht.endY=tt,ht}else{var ht=new go.Geometry;return lt>0?ht.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())):ht.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&&ht.setSpots(rt/et,0,(et-rt)/et,1),ht}}),go.Shape.setFigureParameter("Trapezoid1",0,new hi("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)?lt=.2:lt<.5?lt=-.5:lt>.5&&(lt=.5);var rt=Math.abs(lt)*et;if(lt===0){var ht=new go.Geometry(go.Geometry.Rectangle);return ht.startX=0,ht.startY=0,ht.endX=et,ht.endY=tt,ht}else{var ht=new go.Geometry;return lt>0?ht.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())):ht.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&&ht.setSpots(rt/et,0,(et-rt)/et,1),ht}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new hi("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(Ct,et,tt){var lt=Ct?Ct.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 ht=new go.Geometry(go.Geometry.Rectangle);return ht.startX=0,ht.startY=0,ht.endX=et,ht.endY=tt,ht}else{var ht=new go.Geometry;return lt>0?ht.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())):ht.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&&ht.setSpots(rt/et,0,(et-rt)/et,1),ht}}),go.Shape.setFigureParameter("ManualOperation",0,new hi("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(Ct,et,tt){var lt=Ct?Ct.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 ht=new go.Geometry(go.Geometry.Rectangle);return ht.startX=0,ht.startY=0,ht.endX=et,ht.endY=tt,ht}else{var ht=new go.Geometry;return lt>0?ht.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())):ht.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&&ht.setSpots(rt/et,0,(et-rt)/et,1),ht}});var jt=[];function qt(){var Ct=jt.pop();return Ct===void 0?[]:Ct}function Pt(Ct){Ct.length=0,jt.push(Ct)}function re(Ct){for(var et=qt(),tt=.5,lt=.5,rt=Math.PI*1.5,ht=0,dt=0;dt<Ct;dt++)ht=2*Math.PI/Ct*dt+rt,et[dt]=new go.Point(lt+tt*Math.cos(ht),lt+tt*Math.sin(ht));return et.push(et[0]),et}function Kt(Ct){var et=Yt(Ct),tt=qt();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 Pt(et),tt}function Yt(Ct){for(var et=re(Ct),tt=qt(),lt=Math.floor(et.length/2),rt=et.length-1,ht=Ct%2===0?2:1,dt=0;dt<rt;dt++){var St=et[dt],It=et[dt+1],_t=et[(lt+dt-1)%rt],Gt=et[(lt+dt+ht)%rt];tt[dt*2]=St,tt[dt*2+1]=ie(St.x,St.y,_t.x,_t.y,It.x,It.y,Gt.x,Gt.y,new go.Point)}return tt[tt.length]=tt[0],Pt(et),tt}go.Shape.defineFigureGenerator("Pentagon",function(Ct,et,tt){var lt=re(5),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<5;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Pt(lt),rt.spot1=new go.Spot(.2,.22),rt.spot2=new go.Spot(.8,.9),rt}),go.Shape.defineFigureGenerator("Hexagon",function(Ct,et,tt){var lt=re(6),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<6;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Pt(lt),rt.spot1=new go.Spot(.07,.25),rt.spot2=new go.Spot(.93,.75),rt}),go.Shape.defineFigureGenerator("Heptagon",function(Ct,et,tt){var lt=re(7),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<7;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Pt(lt),rt.spot1=new go.Spot(.2,.15),rt.spot2=new go.Spot(.8,.85),rt}),go.Shape.defineFigureGenerator("Octagon",function(Ct,et,tt){var lt=re(8),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<8;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Pt(lt),rt.spot1=new go.Spot(.15,.15),rt.spot2=new go.Spot(.85,.85),rt}),go.Shape.defineFigureGenerator("Nonagon",function(Ct,et,tt){var lt=re(9),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<9;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Pt(lt),rt.spot1=new go.Spot(.17,.13),rt.spot2=new go.Spot(.82,.82),rt}),go.Shape.defineFigureGenerator("Decagon",function(Ct,et,tt){var lt=re(10),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<10;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Pt(lt),rt.spot1=new go.Spot(.16,.16),rt.spot2=new go.Spot(.84,.84),rt}),go.Shape.defineFigureGenerator("Dodecagon",function(Ct,et,tt){var lt=re(12),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<12;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Pt(lt),rt.spot1=new go.Spot(.16,.16),rt.spot2=new go.Spot(.84,.84),rt}),go.Shape.defineFigureGenerator("FivePointedStar",function(Ct,et,tt){var lt=Yt(5),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<10;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Pt(lt),rt.spot1=new go.Spot(.266,.333),rt.spot2=new go.Spot(.733,.733),rt}),go.Shape.defineFigureGenerator("SixPointedStar",function(Ct,et,tt){var lt=Yt(6),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<12;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Pt(lt),rt.spot1=new go.Spot(.17,.25),rt.spot2=new go.Spot(.83,.75),rt}),go.Shape.defineFigureGenerator("SevenPointedStar",function(Ct,et,tt){var lt=Yt(7),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<14;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Pt(lt),rt.spot1=new go.Spot(.222,.277),rt.spot2=new go.Spot(.777,.666),rt}),go.Shape.defineFigureGenerator("EightPointedStar",function(Ct,et,tt){var lt=Yt(8),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<16;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Pt(lt),rt.spot1=new go.Spot(.25,.25),rt.spot2=new go.Spot(.75,.75),rt}),go.Shape.defineFigureGenerator("NinePointedStar",function(Ct,et,tt){var lt=Yt(9),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<18;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Pt(lt),rt.spot1=new go.Spot(.222,.277),rt.spot2=new go.Spot(.777,.666),rt}),go.Shape.defineFigureGenerator("TenPointedStar",function(Ct,et,tt){var lt=Yt(10),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<20;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Pt(lt),rt.spot1=new go.Spot(.281,.261),rt.spot2=new go.Spot(.723,.748),rt}),go.Shape.defineFigureGenerator("FivePointedBurst",function(Ct,et,tt){var lt=Kt(5),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<lt.length;dt+=3)ht.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 ht.segments.last().close(),Pt(lt),rt.spot1=new go.Spot(.222,.277),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.defineFigureGenerator("SixPointedBurst",function(Ct,et,tt){var lt=Kt(6),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<lt.length;dt+=3)ht.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 ht.segments.last().close(),Pt(lt),rt.spot1=new go.Spot(.17,.222),rt.spot2=new go.Spot(.833,.777),rt}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(Ct,et,tt){var lt=Kt(7),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<lt.length;dt+=3)ht.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 ht.segments.last().close(),Pt(lt),rt.spot1=new go.Spot(.222,.222),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.defineFigureGenerator("EightPointedBurst",function(Ct,et,tt){var lt=Kt(8),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<lt.length;dt+=3)ht.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 ht.segments.last().close(),Pt(lt),rt.spot1=new go.Spot(.222,.222),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.defineFigureGenerator("NinePointedBurst",function(Ct,et,tt){var lt=Kt(9),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<lt.length;dt+=3)ht.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 ht.segments.last().close(),Pt(lt),rt.spot1=new go.Spot(.222,.222),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.defineFigureGenerator("TenPointedBurst",function(Ct,et,tt){var lt=Kt(10),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<lt.length;dt+=3)ht.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 ht.segments.last().close(),Pt(lt),rt.spot1=new go.Spot(.222,.222),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.setFigureParameter("FramedRectangle",0,new hi("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new hi("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN,rt=Ct?Ct.parameter2:NaN;isNaN(lt)&&(lt=8),isNaN(rt)&&(rt=8);var ht=new go.Geometry,dt=new go.PathFigure(0,0,!0);return ht.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())),ht.setSpots(0,0,1,1,lt,rt,-lt,-rt),ht}),go.Shape.setFigureParameter("Ring",0,new hi("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=8);var rt=et/2,ht=new go.Geometry,dt=new go.PathFigure(et,et/2,!0);ht.add(dt),dt.add(new go.PathSegment(go.PathSegment.Arc,0,360,rt,rt,rt,rt).close());var St=Math.max(rt-lt,0);return St>0&&(dt.add(new go.PathSegment(go.PathSegment.Move,et/2+St,et/2)),dt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,rt,rt,St,St).close())),ht.spot1=ee,ht.spot2=Zt,ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("Cloud",function(Ct,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(Ct,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 hi("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new hi("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN,rt=Ct?Ct.parameter2:NaN;isNaN(lt)&&(lt=0),isNaN(rt)&&(rt=315);var ht=lt%360;ht<0&&(ht+=360);var dt=rt%360,St=Math.min(et,tt)/2;return new go.Geometry().add(new go.PathFigure(St,St).add(new go.PathSegment(go.PathSegment.Arc,ht,dt,St,St,St,St).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Ct,et,tt){var lt=Nt/Math.SQRT2*.5,rt=Math.SQRT2/2,ht=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(et,tt,!0).add(new go.PathSegment(go.PathSegment.Bezier,rt*et,ht*tt,et,(1-lt)*tt,(rt+lt)*et,(ht+lt)*tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close()))}),go.Shape.setFigureParameter("ThickCross",0,new hi("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=30);var rt=Math.min(lt,et)/2,ht=et/2,dt=tt/2;return new go.Geometry().add(new go.PathFigure(ht-rt,0,!0).add(new go.PathSegment(go.PathSegment.Line,ht+rt,0)).add(new go.PathSegment(go.PathSegment.Line,ht+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,ht+rt,dt+rt)).add(new go.PathSegment(go.PathSegment.Line,ht+rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ht-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ht-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,ht-rt,dt-rt).close()))}),go.Shape.setFigureParameter("ThinCross",0,new hi("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=10);var rt=Math.min(lt,et)/2,ht=et/2,dt=tt/2;return new go.Geometry().add(new go.PathFigure(ht-rt,0,!0).add(new go.PathSegment(go.PathSegment.Line,ht+rt,0)).add(new go.PathSegment(go.PathSegment.Line,ht+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,ht+rt,dt+rt)).add(new go.PathSegment(go.PathSegment.Line,ht+rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ht-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ht-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,ht-rt,dt-rt).close()))}),go.Shape.setFigureParameter("ThickX",0,new hi("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Ct,et,tt){var lt=Ct?Ct.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 ht=et/2,dt=tt/2,St=Math.atan2(tt,et),It=lt-Math.min(Math.cos(St)*lt/2,ht),_t=lt-Math.min(Math.sin(St)*lt/2,dt),rt=new go.Geometry,Gt=new go.PathFigure(It,0,!0);return rt.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Line,ht,.2*tt)),Gt.add(new go.PathSegment(go.PathSegment.Line,et-It,0)),Gt.add(new go.PathSegment(go.PathSegment.Line,et,_t)),Gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,dt)),Gt.add(new go.PathSegment(go.PathSegment.Line,et,tt-_t)),Gt.add(new go.PathSegment(go.PathSegment.Line,et-It,tt)),Gt.add(new go.PathSegment(go.PathSegment.Line,ht,.8*tt)),Gt.add(new go.PathSegment(go.PathSegment.Line,It,tt)),Gt.add(new go.PathSegment(go.PathSegment.Line,0,tt-_t)),Gt.add(new go.PathSegment(go.PathSegment.Line,.2*et,dt)),Gt.add(new go.PathSegment(go.PathSegment.Line,0,_t).close()),rt}}),go.Shape.setFigureParameter("ThinX",0,new hi("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=10);var rt=new go.Geometry,ht=new go.PathFigure(.1*et,0,!0);return rt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,et,.1*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.6*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.1*et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,.9*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt).close()),rt}),go.Shape.setFigureParameter("SquareIBeam",0,new hi("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=.2);var rt=new go.Geometry,ht=new go.PathFigure(0,0,!0);return rt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,et,lt*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,(.5+lt/2)*et,lt*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,(.5+lt/2)*et,(1-lt)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,(1-lt)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,(1-lt)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,(.5-lt/2)*et,(1-lt)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,(.5-lt/2)*et,lt*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,lt*tt).close()),rt}),go.Shape.setFigureParameter("RoundedIBeam",0,new hi("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=.5);var rt=new go.Geometry,ht=new go.PathFigure(0,0,!0);return rt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Bezier,et,tt,Math.abs(1-lt)*et,.25*tt,Math.abs(1-lt)*et,.75*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,0,0,lt*et,.75*tt,lt*et,.25*tt).close()),rt}),go.Shape.defineFigureGenerator("HalfEllipse",function(Ct,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,Nt*et,0,et,(.5-Nt/2)*tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,et,(.5+Nt/2)*tt,Nt*et,tt).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Ct,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(Ct,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(Ct,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(Ct,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 ht=.2,dt=.3,St=0,It=ht*Nt;return rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+dt)*et,(.5+ht+St)*tt,(.5-ht+dt)*et,(.5+It+St)*tt,(.5-It+dt)*et,(.5+ht+St)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ht+dt)*et,(.5+St)*tt,(.5+It+dt)*et,(.5+ht+St)*tt,(.5+ht+dt)*et,(.5+It+St)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+dt)*et,(.5-ht+St)*tt,(1-.5+ht+dt)*et,(.5-It+St)*tt,(.5+It+dt)*et,(.5-ht+St)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.65*et,.36771243*tt,(.5-It+dt)*et,(.5-ht+St)*tt,(.5-ht+dt+.05)*et,(.5-It+St-.02)*tt)),ht=.2,dt=0,St=-.3,It=ht*Nt,rt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ht+dt)*et,(.5+St)*tt,(.5+It+dt)*et,(.5+ht+St)*tt,(.5+ht+dt)*et,(.5+It+St)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+dt)*et,(.5-ht+St)*tt,(1-.5+ht+dt)*et,(.5-It+St)*tt,(.5+It+dt)*et,(.5-ht+St)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ht+dt)*et,(.5+St)*tt,(.5-It+dt)*et,(.5-ht+St)*tt,(.5-ht+dt)*et,(.5-It+St)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-It+dt)*et,(.5+ht+St)*tt,(.5-ht+dt)*et,(.5+It+St)*tt,(.5-It+dt)*et,(.5+ht+St)*tt)),ht=.2,dt=-.3,St=0,It=ht*Nt,rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+dt)*et,(.5-ht+St)*tt,(1-.5+ht+dt-.05)*et,(.5-It+St-.02)*tt,(.5+It+dt)*et,(.5-ht+St)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ht+dt)*et,(.5+St)*tt,(.5-It+dt)*et,(.5-ht+St)*tt,(.5-ht+dt)*et,(.5-It+St)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+dt)*et,(.5+ht+St)*tt,(.5-ht+dt)*et,(.5+It+St)*tt,(.5-It+dt)*et,(.5+ht+St)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.6*tt,(.5+It+dt)*et,(.5+ht+St)*tt,(.5+ht+dt)*et,(.5+It+St)*tt).close()),lt.setSpots(.06,.33,.93,.68),lt}),go.Shape.defineFigureGenerator("YinYang",function(Ct,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 ht=.1,dt=.5,St=.25;return rt.add(new go.PathSegment(go.PathSegment.Move,(dt+ht)*et,St*tt)),rt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,et*dt,tt*St,ht*et,ht*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)),St=.75,rt=new go.PathFigure((dt+ht)*et,St*tt,!0),lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,0,360,et*dt,tt*St,ht*et,ht*et).close()),lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("Peace",function(Ct,et,tt){var lt=.8535533905932737,rt=.5*et,ht=.5*tt;return new go.Geometry().add(new go.PathFigure(rt,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,rt,ht,rt,ht)).add(new go.PathSegment(go.PathSegment.Line,rt,tt)).add(new go.PathSegment(go.PathSegment.Move,rt,ht)).add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,lt*tt)).add(new go.PathSegment(go.PathSegment.Move,rt,ht)).add(new go.PathSegment(go.PathSegment.Line,lt*et,lt*tt)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Ct,et,tt){var lt=new go.Geometry,rt=Nt*.5,ht=.5,dt=.5,St=.5,It=new go.PathFigure(dt*et,(St-ht)*tt);lt.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ht)*et,St*tt,(dt-rt)*et,(St-ht)*tt,(dt-ht)*et,(St-rt)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(St+ht)*tt,(dt-ht)*et,(St+rt)*tt,(dt-rt)*et,(St+ht)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,St*tt,(dt+rt)*et,(St+ht)*tt,(dt+ht)*et,(St+rt)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(St-ht)*tt,(dt+ht)*et,(St-rt)*tt,(dt+rt)*et,(St-ht)*tt)),ht=.4,rt=Nt*.4;var _t=Mt(),Gt=Mt(),oe=Mt(),ue=Mt();Ie(dt,St-ht,dt+rt,St-ht,dt+ht,St-rt,dt+ht,St,.42,_t,Gt,oe,ue,ue);var de=Mt(),be=Mt(),Jt=Mt();Ie(dt,St-ht,dt+rt,St-ht,dt+ht,St-rt,dt+ht,St,.58,ue,ue,Jt,de,be);var Ke=Mt(),Wt=Mt(),Ge=Mt();Ie(dt,St+ht,dt-rt,St+ht,dt-ht,St+rt,dt-ht,St,.42,Ke,Wt,Ge,ue,ue);var He=Mt(),Me=Mt(),We=Mt();return Ie(dt,St+ht,dt-rt,St+ht,dt-ht,St+rt,dt-ht,St,.58,ue,ue,We,He,Me),It.add(new go.PathSegment(go.PathSegment.Move,We.x*et,We.y*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ht)*et,St*tt,He.x*et,He.y*tt,Me.x*et,Me.y*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(St-ht)*tt,(dt-ht)*et,(St-rt)*tt,(dt-rt)*et,(St-ht)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*et,oe.y*tt,_t.x*et,_t.y*tt,Gt.x*et,Gt.y*tt)),It.add(new go.PathSegment(go.PathSegment.Line,We.x*et,We.y*tt).close()),It.add(new go.PathSegment(go.PathSegment.Move,Ge.x*et,Ge.y*tt)),It.add(new go.PathSegment(go.PathSegment.Line,Jt.x*et,Jt.y*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,St*tt,de.x*et,de.y*tt,be.x*et,be.y*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(St+ht)*tt,(dt+ht)*et,(St+rt)*tt,(dt+rt)*et,(St+ht)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,Ge.x*et,Ge.y*tt,Ke.x*et,Ke.y*tt,Wt.x*et,Wt.y*tt).close()),ce(_t),ce(Gt),ce(oe),ce(ue),ce(de),ce(be),ce(Jt),ce(Ke),ce(Wt),ce(Ge),ce(He),ce(Me),ce(We),lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("Fragile",function(Ct,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 hi("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=30),lt>et&&(lt=et);var rt=(et-lt)/2,ht=rt+lt;return new go.Geometry().add(new go.PathFigure(ht,.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(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=Nt*.4,ht=.4,dt=.5,St=.5,It=Mt(),_t=Mt(),Gt=Mt(),oe=Mt(),ue=new go.PathFigure((dt-ht)*et,St*tt,!1);lt.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(St-ht)*tt,(dt-ht)*et,(St-rt)*tt,(dt-rt)*et,(St-ht)*tt)),Ie(dt,St-ht,dt+rt,St-ht,dt+ht,St-rt,dt+ht,St,.44,Gt,oe,_t,It,It),ue.add(new go.PathSegment(go.PathSegment.Bezier,_t.x*et,_t.y*tt,Gt.x*et,Gt.y*tt,oe.x*et,oe.y*tt));var de=bt(_t.x,_t.y);Ie(dt,St-ht,dt+rt,St-ht,dt+ht,St-rt,dt+ht,St,.56,It,It,_t,Gt,oe);var be=bt(_t.x,_t.y);ue.add(new go.PathSegment(go.PathSegment.Line,(de.x*.1+.95*.9)*et,de.y*.1*tt)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*et,de.y*.1*tt)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*et,0)),ue.add(new go.PathSegment(go.PathSegment.Line,et,0)),ue.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),ue.add(new go.PathSegment(go.PathSegment.Line,(be.x*.1+.9)*et,.15*tt)),ue.add(new go.PathSegment(go.PathSegment.Line,(be.x*.1+.9)*et,(be.y*.1+.05*.9)*tt)),ue.add(new go.PathSegment(go.PathSegment.Line,be.x*et,be.y*tt)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,St*tt,Gt.x*et,Gt.y*tt,oe.x*et,oe.y*tt)),ue.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(St+ht)*tt,(dt+ht)*et,(St+rt)*tt,(dt+rt)*et,(St+ht)*tt)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ht)*et,St*tt,(dt-rt)*et,(St+ht)*tt,(dt-ht)*et,(St+rt)*tt)),ht=.35,rt=Nt*.35;var Jt=new go.PathFigure(dt*et,(St-ht)*tt,!1);lt.add(Jt),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ht)*et,St*tt,(dt-rt)*et,(St-ht)*tt,(dt-ht)*et,(St-rt)*tt)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(St+ht)*tt,(dt-ht)*et,(St+rt)*tt,(dt-rt)*et,(St+ht)*tt)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,St*tt,(dt+rt)*et,(St+ht)*tt,(dt+ht)*et,(St+rt)*tt)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(St-ht)*tt,(dt+ht)*et,(St-rt)*tt,(dt+rt)*et,(St-ht)*tt));var Ke=new go.PathFigure((dt-ht)*et,St*tt,!1);return lt.add(Ke),ce(It),ce(_t),ce(Gt),ce(oe),ce(de),ce(be),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(Ct,et,tt){var lt=new go.Geometry,rt=.375,ht=0,dt=-.125,St=rt*Nt,It=new go.PathFigure((.525+ht)*et,(.5+rt+dt)*tt,!1);lt.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+rt+ht)*et,(.5+dt)*tt,(.5+St+ht)*et,(.5+rt+dt)*tt,(.5+rt+ht)*et,(.5+St+dt)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ht)*et,(.5-rt+dt)*tt,(1-.5+rt+ht)*et,(.5-St+dt)*tt,(.5+St+ht)*et,(.5-rt+dt)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(.5-rt+ht)*et,(.5+dt)*tt,(.5-St+ht)*et,(.5-rt+dt)*tt,(.5-rt+ht)*et,(.5-St+dt)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(.475+ht)*et,(.5+rt+dt)*tt,(.5-rt+ht)*et,(.5+St+dt)*tt,(.5-St+ht)*et,(.5+rt+dt)*tt)),It.add(new go.PathSegment(go.PathSegment.Line,.475*et,.85*tt)),It.add(new go.PathSegment(go.PathSegment.Line,.425*et,.85*tt)),It.add(new go.PathSegment(go.PathSegment.Line,.425*et,.9*tt)),It.add(new go.PathSegment(go.PathSegment.Line,.475*et,.9*tt)),It.add(new go.PathSegment(go.PathSegment.Line,.475*et,tt)),It.add(new go.PathSegment(go.PathSegment.Line,.525*et,tt)),It.add(new go.PathSegment(go.PathSegment.Line,.525*et,.9*tt)),It.add(new go.PathSegment(go.PathSegment.Line,.575*et,.9*tt)),It.add(new go.PathSegment(go.PathSegment.Line,.575*et,.85*tt)),It.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*tt).close()),rt=.325,ht=0,dt=-.125,St=rt*Nt;var It=new go.PathFigure((1-.5+rt+ht)*et,(.5+dt)*tt,!1);lt.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ht)*et,(.5+rt+dt)*tt,(.5+rt+ht)*et,(.5+St+dt)*tt,(.5+St+ht)*et,(.5+rt+dt)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(.5-rt+ht)*et,(.5+dt)*tt,(.5-St+ht)*et,(.5+rt+dt)*tt,(.5-rt+ht)*et,(.5+St+dt)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ht)*et,(.5-rt+dt)*tt,(.5-rt+ht)*et,(.5-St+dt)*tt,(.5-St+ht)*et,(.5-rt+dt)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+rt+ht)*et,(.5+dt)*tt,(.5+St+ht)*et,(.5-rt+dt)*tt,(1-.5+rt+ht)*et,(.5-St+dt)*tt));var It=new go.PathFigure((.525+ht)*et,(.5+rt+dt)*tt,!1);return lt.add(It),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(Ct,et,tt){var lt=Ct?Ct.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(Ct,et,tt){var lt=Ct?Ct.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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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 hi("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new hi("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=.3);var rt=Ct?Ct.parameter2:NaN;isNaN(rt)&&(rt=.3);var ht=(1-lt)*et,dt=(.5-rt/2)*tt,St=(.5+rt/2)*tt,It=new go.Geometry,_t=new go.PathFigure(0,dt,!0);It.add(_t),_t.add(new go.PathSegment(go.PathSegment.Line,ht,dt)),_t.add(new go.PathSegment(go.PathSegment.Line,ht,0)),_t.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),_t.add(new go.PathSegment(go.PathSegment.Line,ht,tt)),_t.add(new go.PathSegment(go.PathSegment.Line,ht,St)),_t.add(new go.PathSegment(go.PathSegment.Line,0,St).close()),It.spot1=new go.Spot(0,dt/tt);var Gt=ie(0,St/tt,1,St/tt,ht/et,1,1,.5,Mt());return It.spot2=new go.Spot(Gt.x,Gt.y),ce(Gt),It}),go.Shape.setFigureParameter("Arrow2",0,new hi("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new hi("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=30),lt>et&&(lt=et);var rt=Ct?Ct.parameter2:NaN;isNaN(rt)&&(rt=30),rt=Math.min(rt,tt/2);var ht=et-lt,dt=(tt-rt)/2,St=dt+rt,It=new go.Geometry,_t=new go.PathFigure(0,dt,!0);It.add(_t),_t.add(new go.PathSegment(go.PathSegment.Line,ht,dt)),_t.add(new go.PathSegment(go.PathSegment.Line,ht,0)),_t.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),_t.add(new go.PathSegment(go.PathSegment.Line,ht,tt)),_t.add(new go.PathSegment(go.PathSegment.Line,ht,St)),_t.add(new go.PathSegment(go.PathSegment.Line,0,St).close()),It.spot1=new go.Spot(0,dt/tt);var Gt=ie(0,St/tt,1,St/tt,ht/et,1,1,.5,Mt());return It.spot2=new go.Spot(Gt.x,Gt.y),ce(Gt),It}),go.Shape.defineFigureGenerator("Chevron",function(Ct,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(Ct,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 hi("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=.3);var rt=(.5-lt/2)*tt,ht=(.5+lt/2)*tt,dt=new go.Geometry,St=new go.PathFigure(et,.5*tt,!0);dt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*et,ht)),St.add(new go.PathSegment(go.PathSegment.Line,.3*et,ht)),St.add(new go.PathSegment(go.PathSegment.Line,.3*et,tt)),St.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),St.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),St.add(new go.PathSegment(go.PathSegment.Line,.3*et,rt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close());var It=ie(0,.5,.3,0,0,rt/tt,.1,rt/tt,Mt());return dt.spot1=new go.Spot(It.x,It.y),It=ie(.7,1,1,.5,0,ht/tt,1,ht/tt,It),dt.spot2=new go.Spot(It.x,It.y),ce(It),dt}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new hi("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new hi("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=40);var rt=Ct?Ct.parameter2:NaN;isNaN(rt)&&(rt=100);var ht=(tt-lt)/2,dt=ht+lt,St=(tt-rt)/2,It=St+rt;(lt>tt||rt>tt)&&(rt>lt?(lt=lt*tt/rt,ht=(tt-lt)/2,dt=ht+lt,St=0,It=tt):(ht=0,dt=tt,St=0,It=tt));var _t=new go.Geometry,Gt=new go.PathFigure(et,.5*tt,!0);_t.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,It)),Gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,dt)),Gt.add(new go.PathSegment(go.PathSegment.Line,.3*et,dt)),Gt.add(new go.PathSegment(go.PathSegment.Line,.3*et,It)),Gt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),Gt.add(new go.PathSegment(go.PathSegment.Line,.3*et,St)),Gt.add(new go.PathSegment(go.PathSegment.Line,.3*et,ht)),Gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ht)),Gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,St).close());var oe=ie(0,.5,.3,St/tt,0,ht/tt,1,ht/tt,Mt());return _t.spot1=new go.Spot(oe.x,oe.y),oe=ie(.7,It/tt,1,.5,0,dt/tt,1,dt/tt,oe),_t.spot2=new go.Spot(oe.x,oe.y),ce(oe),_t}),go.Shape.setFigureParameter("IBeamArrow",0,new hi("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=.3);var rt=(.5-lt/2)*tt,ht=(.5+lt/2)*tt,dt=new go.Geometry,St=new go.PathFigure(et,.5*tt,!0);dt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*et,ht)),St.add(new go.PathSegment(go.PathSegment.Line,.2*et,ht)),St.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),St.add(new go.PathSegment(go.PathSegment.Line,0,tt)),St.add(new go.PathSegment(go.PathSegment.Line,0,0)),St.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),St.add(new go.PathSegment(go.PathSegment.Line,.2*et,rt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),dt.spot1=new go.Spot(0,rt/tt);var It=ie(.7,1,1,.5,0,ht/tt,1,ht/tt,Mt());return dt.spot2=new go.Spot(It.x,It.y),ce(It),dt}),go.Shape.setFigureParameter("IBeamArrow2",0,new hi("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new hi("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=40);var rt=Ct?Ct.parameter2:NaN;isNaN(rt)&&(rt=100);var ht=(tt-lt)/2,dt=ht+lt,St=(tt-rt)/2,It=St+rt;(lt>tt||rt>tt)&&(rt>lt?(lt=lt*tt/rt,ht=(tt-lt)/2,dt=ht+lt,St=0,It=tt):(ht=0,dt=tt,St=0,It=tt));var _t=new go.Geometry,Gt=new go.PathFigure(et,.5*tt,!0);_t.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,It)),Gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,dt)),Gt.add(new go.PathSegment(go.PathSegment.Line,.2*et,dt)),Gt.add(new go.PathSegment(go.PathSegment.Line,.2*et,It)),Gt.add(new go.PathSegment(go.PathSegment.Line,0,It)),Gt.add(new go.PathSegment(go.PathSegment.Line,0,St)),Gt.add(new go.PathSegment(go.PathSegment.Line,.2*et,St)),Gt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ht)),Gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ht)),Gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,St).close()),_t.spot1=new go.Spot(0,ht/tt);var oe=ie(.7,It/tt,1,.5,0,dt/tt,1,dt/tt,Mt());return _t.spot2=new go.Spot(oe.x,oe.y),ce(oe),_t}),go.Shape.setFigureParameter("Pointer",0,new hi("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=.1);var rt=new go.Geometry,ht=new go.PathFigure(et,.5*tt,!0);rt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,lt*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),rt.spot1=new go.Spot(lt,.35);var dt=ie(.2,.65,1,.65,0,1,1,.5,Mt());return rt.spot2=new go.Spot(dt.x,dt.y),ce(dt),rt}),go.Shape.setFigureParameter("RoundedPointer",0,new hi("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=.3);var rt=new go.Geometry,ht=new go.PathFigure(et,.5*tt,!0);rt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ht.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=ie(0,.65,1,.65,0,1,1,.5,Mt());return rt.spot2=new go.Spot(dt.x,dt.y),ce(dt),rt}),go.Shape.setFigureParameter("SplitEndArrow",0,new hi("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=.4);var rt=(.5-lt/2)*tt,ht=(.5+lt/2)*tt,dt=new go.Geometry,St=new go.PathFigure(et,.5*tt,!0);dt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*et,ht)),St.add(new go.PathSegment(go.PathSegment.Line,0,ht)),St.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*tt)),St.add(new go.PathSegment(go.PathSegment.Line,0,rt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),dt.spot1=new go.Spot(.2,.3);var It=ie(.7,1,1,.5,0,ht/tt,1,ht/tt,Mt());return dt.spot2=new go.Spot(It.x,It.y),ce(It),dt}),go.Shape.setFigureParameter("SplitEndArrow2",0,new hi("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=50);var rt=(tt-lt)/2,ht=rt+lt;lt>tt&&(rt=0,ht=tt);var dt=new go.Geometry,St=new go.PathFigure(et,.5*tt,!0);dt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*et,ht)),St.add(new go.PathSegment(go.PathSegment.Line,0,ht)),St.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*tt)),St.add(new go.PathSegment(go.PathSegment.Line,0,rt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),dt.spot1=new go.Spot(.2,rt/tt);var It=ie(.7,1,1,.5,0,ht/tt,1,ht/tt,Mt());return dt.spot2=new go.Spot(It.x,It.y),ce(It),dt}),go.Shape.setFigureParameter("SquareArrow",0,new hi("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=.7);var rt=new go.Geometry,ht=new go.PathFigure(et,.5*tt,!0);return rt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,lt*et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,0)),ht.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(Ct,et,tt){var lt=new go.Geometry,rt=Nt*.5,ht=Nt*.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+ht)*tt,(.5+rt)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-rt)*et,tt,0,(.9+ht)*tt).close()),lt.spot1=new go.Spot(.25,.5),lt.spot2=new go.Spot(.75,.97),lt}),go.Shape.defineFigureGenerator("Cone2",function(Ct,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 ht=new go.PathFigure(0,.9*tt,!1);return lt.add(ht),ht.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(Ct,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 ht=new go.PathFigure(.5*et,tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,.15*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.5*et,.3*tt)),ht.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(Ct,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 ht=new go.PathFigure(0,.3*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.7*et,.3*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Move,.7*et,.3*tt)),ht.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(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=5),lt=Math.min(lt,tt/3);var rt=new go.Geometry,ht=Nt*.5,dt=new go.PathFigure(0,lt,!0);rt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,Nt*lt,(.5-ht)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,1*et,lt,(.5+ht)*et,0,1*et,Nt*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-Nt*lt,(.5+ht)*et,1*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-lt,(.5-ht)*et,1*tt,0,tt-Nt*lt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,lt));var St=new go.PathFigure(et,lt,!1);return rt.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,2*lt,1*et,2*lt-Nt*lt,(.5+ht)*et,2*lt)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,lt,(.5-ht)*et,2*lt,0,2*lt-Nt*lt)),rt.spot1=new go.Spot(0,0,0,2*lt),rt.spot2=new go.Spot(1,1),rt}),go.Shape.defineFigureGenerator("Cylinder2",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=5),lt=Math.min(lt,tt/3);var rt=new go.Geometry,ht=Nt*.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,Nt*lt,(.5-ht)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,lt,(.5+ht)*et,0,et,Nt*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-Nt*lt,(.5+ht)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-lt,(.5-ht)*et,tt,0,tt-Nt*lt));var St=new go.PathFigure(0,tt-lt,!1);return rt.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt-2*lt,0,tt-lt-Nt*lt,(.5-ht)*et,tt-2*lt)),St.add(new go.PathSegment(go.PathSegment.Bezier,et,tt-lt,(.5+ht)*et,tt-2*lt,et,tt-lt-Nt*lt)),rt.spot1=new go.Spot(0,0),rt.spot2=new go.Spot(1,1,0,-2*lt),rt}),go.Shape.defineFigureGenerator("Cylinder3",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=5),lt=Math.min(lt,et/3);var rt=new go.Geometry,ht=Nt*.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-Nt*lt,0,et,(.5-ht)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,tt,et,(.5+ht)*tt,et-Nt*lt,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,lt,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,Nt*lt,tt,0,(.5+ht)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,lt,0,0,(.5-ht)*tt,Nt*lt,0));var St=new go.PathFigure(lt,0,!1);return rt.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,2*lt,.5*tt,lt+Nt*lt,0,2*lt,(.5-ht)*tt)),St.add(new go.PathSegment(go.PathSegment.Bezier,lt,tt,2*lt,(.5+ht)*tt,lt+Nt*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(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=5),lt=Math.min(lt,et/3);var rt=new go.Geometry,ht=Nt*.5,dt=new go.PathFigure(et-lt,0,!0);rt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,et-Nt*lt,0,et,(.5-ht)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,tt,et,(.5+ht)*tt,et-Nt*lt,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,lt,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,Nt*lt,tt,0,(.5+ht)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,lt,0,0,(.5-ht)*tt,Nt*lt,0)),dt.add(new go.PathSegment(go.PathSegment.Line,et-lt,0));var St=new go.PathFigure(et-lt,0,!1);return rt.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,et-2*lt,.5*tt,et-lt-Nt*lt,0,et-2*lt,(.5-ht)*tt)),St.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,tt,et-2*lt,(.5+ht)*tt,et-lt-Nt*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(Ct,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 ht=new go.PathFigure(.25*et,.25*tt,!1);return lt.add(ht),ht.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(Ct,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 ht=new go.PathFigure(0,tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,0,.25*tt)),ht.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(Ct,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 ht=new go.PathFigure(.5*et,0,!1);return lt.add(ht),ht.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(Ct,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 ht=new go.PathFigure(.5*et,0,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,.85*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*tt)),ht.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(Ct,et,tt){var lt=new go.Geometry,rt=.2,ht=.1,dt=Nt*rt,St=Nt*ht,It=.5,_t=.1,Gt=new go.PathFigure(It*et,(_t+ht)*tt,!0);lt.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(It-rt)*et,_t*tt,(It-dt)*et,(_t+ht)*tt,(It-rt)*et,(_t+St)*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,It*et,(_t-ht)*tt,(It-rt)*et,(_t-St)*tt,(It-dt)*et,(_t-ht)*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(It+rt)*et,_t*tt,(It+dt)*et,(_t-ht)*tt,(It+rt)*et,(_t-St)*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,It*et,(_t+ht)*tt,(It+rt)*et,(_t+St)*tt,(It+dt)*et,(_t+ht)*tt));var oe=.05,ue=Nt*oe;It=.05,_t=.25;var de=new go.PathFigure(.5*et,.2*tt,!0);return lt.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.95*et,.2*tt)),It=.95,_t=.25,de.add(new go.PathSegment(go.PathSegment.Bezier,(It+oe)*et,_t*tt,(It+ue)*et,(_t-oe)*tt,(It+oe)*et,(_t-ue)*tt)),de.add(new go.PathSegment(go.PathSegment.Line,et,.6*tt)),de.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*tt)),de.add(new go.PathSegment(go.PathSegment.Line,.85*et,.35*tt)),oe=.025,ue=Nt*oe,It=.825,_t=.35,de.add(new go.PathSegment(go.PathSegment.Bezier,It*et,(_t-oe)*tt,(It+oe)*et,(_t-ue)*tt,(It+ue)*et,(_t-oe)*tt)),de.add(new go.PathSegment(go.PathSegment.Bezier,(It-oe)*et,_t*tt,(It-ue)*et,(_t-oe)*tt,(It-oe)*et,(_t-ue)*tt)),de.add(new go.PathSegment(go.PathSegment.Line,.8*et,tt)),de.add(new go.PathSegment(go.PathSegment.Line,.55*et,tt)),de.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*tt)),oe=.05,ue=Nt*oe,It=.5,_t=.7,de.add(new go.PathSegment(go.PathSegment.Bezier,It*et,(_t-oe)*tt,(It+oe)*et,(_t-ue)*tt,(It+ue)*et,(_t-oe)*tt)),de.add(new go.PathSegment(go.PathSegment.Bezier,(It-oe)*et,_t*tt,(It-ue)*et,(_t-oe)*tt,(It-oe)*et,(_t-ue)*tt)),de.add(new go.PathSegment(go.PathSegment.Line,.45*et,tt)),de.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),de.add(new go.PathSegment(go.PathSegment.Line,.2*et,.35*tt)),oe=.025,ue=Nt*oe,It=.175,_t=.35,de.add(new go.PathSegment(go.PathSegment.Bezier,It*et,(_t-oe)*tt,(It+oe)*et,(_t-ue)*tt,(It+ue)*et,(_t-oe)*tt)),de.add(new go.PathSegment(go.PathSegment.Bezier,(It-oe)*et,_t*tt,(It-ue)*et,(_t-oe)*tt,(It-oe)*et,(_t-ue)*tt)),de.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*tt)),de.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt)),de.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),oe=.05,ue=Nt*oe,It=.05,_t=.25,de.add(new go.PathSegment(go.PathSegment.Bezier,It*et,(_t-oe)*tt,(It-oe)*et,(_t-ue)*tt,(It-ue)*et,(_t-oe)*tt)),de.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 hi("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=.2);var rt=new go.Geometry,ht=new go.PathFigure(et,0,!0);return rt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,lt*tt)),ht.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(Ct,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 ht=new go.PathFigure(.5*et,.5*tt,!0);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ht.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(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;isNaN(rt)&&(rt=.1);var ht=new go.PathFigure(0,0,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.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(Ct,et,tt){var lt=new go.Geometry,rt=Nt*.5,ht=Nt*.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+ht)*tt,(.5+rt)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-rt)*et,tt,0,(.9+ht)*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-ht)*tt,(.5-rt)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*tt,(.5+rt)*et,0,et,(.1-ht)*tt));var St=new go.PathFigure(et,.1*tt,!1);return lt.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,et,(.1+ht)*tt,(.5+rt)*et,.2*tt)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*tt,(.5-rt)*et,.2*tt,0,(.1+ht)*tt)),St.add(new go.PathSegment(go.PathSegment.Move,et,.2*tt)),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*tt,et,(.2+ht)*tt,(.5+rt)*et,.3*tt)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*tt,(.5-rt)*et,.3*tt,0,(.2+ht)*tt)),St.add(new go.PathSegment(go.PathSegment.Move,et,.3*tt)),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.4*tt,et,(.3+ht)*tt,(.5+rt)*et,.4*tt)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*tt,(.5-rt)*et,.4*tt,0,(.3+ht)*tt)),lt.spot1=new go.Spot(0,.4),lt.spot2=new go.Spot(1,.9),lt}),go.Shape.defineFigureGenerator("DataStorage",function(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=Nt*.5,ht=Nt*.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+ht)*tt,(.5+rt)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-rt)*et,tt,0,(.9+ht)*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-ht)*tt,(.5-rt)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*tt,(.5+rt)*et,0,et,(.1-ht)*tt));var St=new go.PathFigure(et,.1*tt,!1);return lt.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,et,(.1+ht)*tt,(.5+rt)*et,.2*tt)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*tt,(.5-rt)*et,.2*tt,0,(.1+ht)*tt)),St.add(new go.PathSegment(go.PathSegment.Move,et,.2*tt)),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*tt,et,(.2+ht)*tt,(.5+rt)*et,.3*tt)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*tt,(.5-rt)*et,.3*tt,0,(.2+ht)*tt)),lt.spot1=new go.Spot(0,.3),lt.spot2=new go.Spot(1,.9),lt}),go.Shape.defineFigureGenerator("Display",function(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;isNaN(rt)?rt=.2:rt<.15&&(rt=.15);var ht=Nt*.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-ht)*tt,(.2-ht)*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+ht)*et,0,et,(.2-ht)*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+ht)*tt,(.8+ht)*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-ht)*et,tt,0,(.8+ht)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt));var St=new go.PathFigure(0,rt*tt,!1);return lt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,et,rt*tt)),lt}),go.Shape.defineFigureGenerator("DividedProcess",function(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;(isNaN(rt)||rt<.1)&&(rt=.1);var ht=new go.PathFigure(0,0,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.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(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;(isNaN(rt)||rt<.2)&&(rt=.2);var ht=new go.PathFigure(0,0,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.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(Ct,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 ht=new go.PathFigure(.1*et,.4*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.9*et,.6*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.6*et,.1*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.4*et,.1*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.4*et,.9*tt)),ht.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(Ct,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 ht=new go.PathFigure(.75*et,0,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*tt)),ht.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(Ct,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 ht=new go.PathFigure(et,.5*tt,!1);lt.add(ht),ht.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(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN,ht=Ct?Ct.parameter2:NaN;isNaN(rt)&&(rt=.1),isNaN(ht)&&(ht=.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 St=new go.PathFigure(rt*et,0,!1);return lt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),St.add(new go.PathSegment(go.PathSegment.Move,0,ht*tt)),St.add(new go.PathSegment(go.PathSegment.Line,et,ht*tt)),lt}),go.Shape.defineFigureGenerator("Junction",function(Ct,et,tt){var lt=new go.Geometry,rt=1/Math.SQRT2,ht=(1-1/Math.SQRT2)/2,dt=Nt*.5,St=.5,It=new go.PathFigure(et,St*tt,!0);lt.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,St*et,tt,et,(St+dt)*tt,(St+dt)*et,tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,0,St*tt,(St-dt)*et,tt,0,(St+dt)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,St*et,0,0,(St-dt)*tt,(St-dt)*et,0)),It.add(new go.PathSegment(go.PathSegment.Bezier,et,St*tt,(St+dt)*et,0,et,(St-dt)*tt));var _t=new go.PathFigure((ht+rt)*et,(ht+rt)*tt,!1);return lt.add(_t),_t.add(new go.PathSegment(go.PathSegment.Line,ht*et,ht*tt)),_t.add(new go.PathSegment(go.PathSegment.Move,ht*et,(ht+rt)*tt)),_t.add(new go.PathSegment(go.PathSegment.Line,(ht+rt)*et,ht*tt)),lt}),go.Shape.defineFigureGenerator("LinedDocument",function(Ct,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 ht=new go.PathFigure(.1*et,0,!1);return lt.add(ht),ht.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(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=Nt*.5,ht=.5,dt=new go.PathFigure(.5*et,tt,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,ht*tt,(ht-rt)*et,tt,0,(ht+rt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,ht*et,0,0,(ht-rt)*tt,(ht-rt)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,ht*tt,(ht+rt)*et,0,et,(ht-rt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(ht+.1)*et,.9*tt,et,(ht+rt)*tt,(ht+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(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;isNaN(rt)&&(rt=.7);var ht=new go.PathFigure(0,0,!0);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,rt*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt.spot1=go.Spot.TopLeft,lt}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;isNaN(rt)&&(rt=.25);var ht=new go.PathFigure(0,0,!0);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,rt*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,(1-rt)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt}),go.Shape.defineFigureGenerator("MicroformRecording",function(Ct,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(Ct,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 ht=new go.PathFigure(.1*et,.2*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.54*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*tt)),ht.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(Ct,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 ht=new go.PathFigure(.2*et,.1*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.1*et,.2*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ht.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(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;isNaN(rt)&&(rt=.1);var ht=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 St=new go.PathFigure(.5*rt*et,rt*tt,!1);return lt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,(1-.5*rt)*et,rt*tt)),lt}),go.Shape.defineFigureGenerator("OffPageConnector",function(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=Nt*.5,ht=.5,dt=new go.PathFigure(et,ht*tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,ht*et,tt,et,(ht+rt)*tt,(ht+rt)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,ht*tt,(ht-rt)*et,tt,0,(ht+rt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,ht*et,0,0,(ht-rt)*tt,(ht-rt)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,ht*tt,(ht+rt)*et,0,et,(ht-rt)*tt));var St=new go.PathFigure(et,.5*tt,!1);return lt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),St.add(new go.PathSegment(go.PathSegment.Move,.5*et,tt)),St.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt}),go.Shape.defineFigureGenerator("PaperTape",function(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN,ht=Ct?Ct.parameter2:NaN;isNaN(rt)&&(rt=.1),isNaN(ht)&&(ht=.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-ht)*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(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN,ht=Ct?Ct.parameter2:NaN;isNaN(rt)&&(rt=.1),isNaN(ht)&&(ht=.3);var dt=new go.PathFigure(0,0,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt}),go.Shape.defineFigureGenerator("Procedure",function(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;isNaN(rt)&&(rt=.1);var ht=new go.PathFigure(0,0,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.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(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;isNaN(rt)&&(rt=.1);var ht=new go.PathFigure(0,0,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.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(Ct,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 ht=new go.PathFigure(0,.5*tt,!1);return lt.add(ht),ht.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(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;isNaN(rt)&&(rt=.25);var ht=new go.PathFigure(rt*et,0,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*tt,.25*et,.5*tt)),ht.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(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;isNaN(rt)&&(rt=.1);var ht=new go.PathFigure(0,0,!0);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.75*et,(1-rt)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,(1-rt)*tt).close()),lt.spot1=go.Spot.TopLeft,lt}),go.Shape.defineFigureGenerator("AndGate",function(Ct,et,tt){var lt=new go.Geometry,rt=Nt*.5,ht=new go.PathFigure(0,0,!0);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ht.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(.5+rt)*et,0,et,(.5-rt)*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.5+rt)*tt,(.5+rt)*et,tt)),ht.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(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=Nt*.5,ht=.5,dt=new go.PathFigure(et,ht*tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,ht*et,tt,et,(ht+rt)*tt,(ht+rt)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,ht*tt,(ht-rt)*et,tt,0,(ht+rt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,ht*et,0,0,(ht-rt)*tt,(ht-rt)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,ht*tt,(ht+rt)*et,0,et,(ht-rt)*tt));var St=new go.PathFigure(et,ht*tt,!1);lt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,et,ht*tt));var It=new go.PathFigure(.8*et,.75*tt,!1);return lt.add(It),It.add(new go.PathSegment(go.PathSegment.Line,.8*et,.25*tt)),It.add(new go.PathSegment(go.PathSegment.Line,.6*et,.25*tt)),It.add(new go.PathSegment(go.PathSegment.Line,.6*et,.75*tt)),It.add(new go.PathSegment(go.PathSegment.Line,.4*et,.75*tt)),It.add(new go.PathSegment(go.PathSegment.Line,.4*et,.25*tt)),It.add(new go.PathSegment(go.PathSegment.Line,.2*et,.25*tt)),It.add(new go.PathSegment(go.PathSegment.Line,.2*et,.75*tt)),lt}),go.Shape.defineFigureGenerator("Ground",function(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=Nt*.1,ht=.1,dt=.9,St=.5,It=new go.PathFigure(.8*et,.5*tt,!0);lt.add(It),It.add(new go.PathSegment(go.PathSegment.Line,0,tt)),It.add(new go.PathSegment(go.PathSegment.Line,0,0)),It.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*tt));var _t=new go.PathFigure((dt+ht)*et,St*tt,!0);return lt.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(St+ht)*tt,(dt+ht)*et,(St+rt)*tt,(dt+rt)*et,(St+ht)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ht)*et,St*tt,(dt-rt)*et,(St+ht)*tt,(dt-ht)*et,(St+rt)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(St-ht)*tt,(dt-ht)*et,(St-rt)*tt,(dt-rt)*et,(St-ht)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,St*tt,(dt+rt)*et,(St-ht)*tt,(dt+ht)*et,(St-rt)*tt)),lt.spot1=new go.Spot(0,.25),lt.spot2=new go.Spot(.4,.75),lt}),go.Shape.defineFigureGenerator("NandGate",function(Ct,et,tt){var lt=new go.Geometry,rt=Nt*.5,ht=Nt*.4,dt=Nt*.1,St=.1,It=.9,_t=.5,Gt=new go.PathFigure(.8*et,.5*tt,!0);lt.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,tt,.8*et,(.5+ht)*tt,(.4+rt)*et,tt)),Gt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),Gt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Gt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(.4+rt)*et,0,.8*et,(.5-ht)*tt));var oe=new go.PathFigure((It+St)*et,_t*tt,!0);return lt.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,It*et,(_t+St)*tt,(It+St)*et,(_t+dt)*tt,(It+dt)*et,(_t+St)*tt)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(It-St)*et,_t*tt,(It-dt)*et,(_t+St)*tt,(It-St)*et,(_t+dt)*tt)),oe.add(new go.PathSegment(go.PathSegment.Bezier,It*et,(_t-St)*tt,(It-St)*et,(_t-dt)*tt,(It-dt)*et,(_t-St)*tt)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(It+St)*et,_t*tt,(It+dt)*et,(_t-St)*tt,(It+St)*et,(_t-dt)*tt)),lt.spot1=new go.Spot(0,.05),lt.spot2=new go.Spot(.55,.95),lt}),go.Shape.defineFigureGenerator("NorGate",function(Ct,et,tt){var lt=new go.Geometry,rt=.5,ht=Nt*rt,dt=0,St=.5,It=new go.PathFigure(.8*et,.5*tt,!0);lt.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.7*et,(St+ht)*tt,(dt+ht)*et,(St+rt)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*tt,.25*et,.25*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(dt+ht)*et,(St-rt)*tt,.7*et,(St-ht)*tt)),rt=.1,ht=Nt*.1,dt=.9,St=.5;var _t=new go.PathFigure((dt-rt)*et,St*tt,!0);return lt.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(St-rt)*tt,(dt-rt)*et,(St-ht)*tt,(dt-ht)*et,(St-rt)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(dt+rt)*et,St*tt,(dt+ht)*et,(St-rt)*tt,(dt+rt)*et,(St-ht)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(St+rt)*tt,(dt+rt)*et,(St+ht)*tt,(dt+ht)*et,(St+rt)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(dt-rt)*et,St*tt,(dt-ht)*et,(St+rt)*tt,(dt-rt)*et,(St+ht)*tt)),lt.spot1=new go.Spot(.2,.25),lt.spot2=new go.Spot(.6,.75),lt}),go.Shape.defineFigureGenerator("OrGate",function(Ct,et,tt){var lt=new go.Geometry,rt=.5,ht=Nt*rt,dt=0,St=.5,It=new go.PathFigure(0,0,!0);return lt.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(dt+ht+ht)*et,(St-rt)*tt,.8*et,(St-ht)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.8*et,(St+ht)*tt,(dt+ht+ht)*et,(St+rt)*tt)),It.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(Ct,et,tt){var lt=new go.Geometry,rt=.5,ht=Nt*rt,dt=.2,St=.5,It=new go.PathFigure(.1*et,0,!1);lt.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,tt,.35*et,.25*tt,.35*et,.75*tt));var _t=new go.PathFigure(.8*et,.5*tt,!0);lt.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,tt,.7*et,(St+ht)*tt,(dt+ht)*et,(St+rt)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*tt,.45*et,.25*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(dt+ht)*et,(St-rt)*tt,.7*et,(St-ht)*tt)),rt=.1,ht=Nt*.1,dt=.9,St=.5;var Gt=new go.PathFigure((dt-rt)*et,St*tt,!0);return lt.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(St-rt)*tt,(dt-rt)*et,(St-ht)*tt,(dt-ht)*et,(St-rt)*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+rt)*et,St*tt,(dt+ht)*et,(St-rt)*tt,(dt+rt)*et,(St-ht)*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(St+rt)*tt,(dt+rt)*et,(St+ht)*tt,(dt+ht)*et,(St+rt)*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(dt-rt)*et,St*tt,(dt-ht)*et,(St+rt)*tt,(dt-rt)*et,(St+ht)*tt)),lt.spot1=new go.Spot(.4,.25),lt.spot2=new go.Spot(.65,.75),lt}),go.Shape.defineFigureGenerator("XorGate",function(Ct,et,tt){var lt=new go.Geometry,rt=.5,ht=Nt*rt,dt=.2,St=.5,It=new go.PathFigure(.1*et,0,!1);lt.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,tt,.35*et,.25*tt,.35*et,.75*tt));var _t=new go.PathFigure(.2*et,0,!0);return lt.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(dt+ht)*et,(St-rt)*tt,.9*et,(St-ht)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,tt,.9*et,(St+ht)*tt,(dt+ht)*et,(St+rt)*tt)),_t.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(Ct,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(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=Nt*.1,ht=.1,dt=.1,St=.5,It=new go.PathFigure((dt-rt*.5)*et,tt,!1);return lt.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,0,(dt-rt)*et,tt,(dt-ht)*et,0)),dt=.3,It.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,tt,(dt+ht)*et,0,(dt+rt)*et,tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,0,(dt-rt)*et,tt,(dt-ht)*et,0)),dt=.5,It.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,tt,(dt+ht)*et,0,(dt+rt)*et,tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,0,(dt-rt)*et,tt,(dt-ht)*et,0)),dt=.7,It.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,tt,(dt+ht)*et,0,(dt+rt)*et,tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,0,(dt-rt)*et,tt,(dt-ht)*et,0)),dt=.9,It.add(new go.PathSegment(go.PathSegment.Bezier,(dt+rt*.5)*et,tt,(dt+ht)*et,0,(dt+rt)*et,tt)),lt}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Ct,et,tt){var lt=new go.Geometry,rt=Nt*.5,ht=.5,dt=.5,St=.5,It=new go.PathFigure((dt-ht)*et,St*tt,!1);return lt.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(St-ht)*tt,(dt-ht)*et,(St-rt)*tt,(dt-rt)*et,(St-ht)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,St*tt,(dt+rt)*et,(St-ht)*tt,(dt+ht)*et,(St-rt)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(St+ht)*tt,(dt+ht)*et,(St+rt)*tt,(dt+rt)*et,(St+ht)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ht)*et,St*tt,(dt-rt)*et,(St+ht)*tt,(dt-ht)*et,(St+rt)*tt)),It.add(new go.PathSegment(go.PathSegment.Move,(dt-ht+.1)*et,St*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht-.1)*et,St*tt,dt*et,(St-ht)*tt,dt*et,(St+ht)*tt)),lt}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Ct,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(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=et,ht=tt;et=et*.38,tt=tt*.6;var dt=Nt*.8,St=.8,It=0,_t=.5,Gt=(rt-et)/2,oe=(ht-tt)/2,ue=new go.PathFigure(It*et+Gt,(_t+St)*tt+oe,!0);lt.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,(It-St)*et+Gt,_t*tt+oe,(It-dt)*et+Gt,(_t+St)*tt+oe,(It-St)*et+Gt,(_t+dt)*tt+oe)),ue.add(new go.PathSegment(go.PathSegment.Bezier,It*et+Gt,(_t-St)*tt+oe,(It-St)*et+Gt,(_t-dt)*tt+oe,(It-dt)*et+Gt,(_t-St)*tt+oe)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(It-St+dt*.5)*et+Gt,_t*tt+oe,It*et+Gt,(_t-St)*tt+oe,(It-St+dt*.5)*et+Gt,(_t-dt)*tt+oe)),ue.add(new go.PathSegment(go.PathSegment.Bezier,It*et+Gt,(_t+St)*tt+oe,(It-St+dt*.5)*et+Gt,(_t+dt)*tt+oe,It*et+Gt,(_t+St)*tt+oe).close()),dt=Nt*.4,St=.4,It=.2,_t=.5;var de=new go.PathFigure(It*et+Gt,(_t+St)*tt+oe,!0);lt.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,(It-St)*et+Gt,_t*tt+oe,(It-dt)*et+Gt,(_t+St)*tt+oe,(It-St)*et+Gt,(_t+dt)*tt+oe)),de.add(new go.PathSegment(go.PathSegment.Bezier,It*et+Gt,(_t-St)*tt+oe,(It-St)*et+Gt,(_t-dt)*tt+oe,(It-dt)*et+Gt,(_t-St)*tt+oe)),de.add(new go.PathSegment(go.PathSegment.Bezier,(It-St+dt*.5)*et+Gt,_t*tt+oe,It*et+Gt,(_t-St)*tt+oe,(It-St+dt*.5)*et+Gt,(_t-dt)*tt+oe)),de.add(new go.PathSegment(go.PathSegment.Bezier,It*et+Gt,(_t+St)*tt+oe,(It-St+dt*.5)*et+Gt,(_t+dt)*tt+oe,It*et+Gt,(_t+St)*tt+oe).close()),dt=Nt*.2,St=.2,It=.5,_t=.5;var be=new go.PathFigure((It-St)*et+Gt,_t*tt+oe,!0);lt.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,It*et+Gt,(_t-St)*tt+oe,(It-St)*et+Gt,(_t-dt)*tt+oe,(It-dt)*et+Gt,(_t-St)*tt+oe)),be.add(new go.PathSegment(go.PathSegment.Bezier,(It+St)*et+Gt,_t*tt+oe,(It+dt)*et+Gt,(_t-St)*tt+oe,(It+St)*et+Gt,(_t-dt)*tt+oe)),be.add(new go.PathSegment(go.PathSegment.Bezier,It*et+Gt,(_t+St)*tt+oe,(It+St)*et+Gt,(_t+dt)*tt+oe,(It+dt)*et+Gt,(_t+St)*tt+oe)),be.add(new go.PathSegment(go.PathSegment.Bezier,(It-St)*et+Gt,_t*tt+oe,(It-dt)*et+Gt,(_t+St)*tt+oe,(It-St)*et+Gt,(_t+dt)*tt+oe)),dt=Nt*.4,St=.4,It=.8,_t=.5;var Jt=new go.PathFigure(It*et+Gt,(_t-St)*tt+oe,!0);lt.add(Jt),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(It+St)*et+Gt,_t*tt+oe,(It+dt)*et+Gt,(_t-St)*tt+oe,(It+St)*et+Gt,(_t-dt)*tt+oe)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,It*et+Gt,(_t+St)*tt+oe,(It+St)*et+Gt,(_t+dt)*tt+oe,(It+dt)*et+Gt,(_t+St)*tt+oe)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(It+St-dt*.5)*et+Gt,_t*tt+oe,It*et+Gt,(_t+St)*tt+oe,(It+St-dt*.5)*et+Gt,(_t+dt)*tt+oe)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,It*et+Gt,(_t-St)*tt+oe,(It+St-dt*.5)*et+Gt,(_t-dt)*tt+oe,It*et+Gt,(_t-St)*tt+oe).close()),dt=Nt*.8,St=.8,It=1,_t=.5;var Ke=new go.PathFigure(It*et+Gt,(_t-St)*tt+oe,!0);return lt.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(It+St)*et+Gt,_t*tt+oe,(It+dt)*et+Gt,(_t-St)*tt+oe,(It+St)*et+Gt,(_t-dt)*tt+oe)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,It*et+Gt,(_t+St)*tt+oe,(It+St)*et+Gt,(_t+dt)*tt+oe,(It+dt)*et+Gt,(_t+St)*tt+oe)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(It+St-dt*.5)*et+Gt,_t*tt+oe,It*et+Gt,(_t+St)*tt+oe,(It+St-dt*.5)*et+Gt,(_t+dt)*tt+oe)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,It*et+Gt,(_t-St)*tt+oe,(It+St-dt*.5)*et+Gt,(_t-dt)*tt+oe,It*et+Gt,(_t-St)*tt+oe).close()),lt}),go.Shape.defineFigureGenerator("Email",function(Ct,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 ht=new go.PathFigure(0,0,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Move,0,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.45*et,.54*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.55*et,.54*tt)),lt}),go.Shape.defineFigureGenerator("Ethernet",function(Ct,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 ht=new go.PathFigure(.1*et,tt,!0,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.4*et,.6*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*tt)),ht.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 St=new go.PathFigure(0,.5*tt,!1);return lt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),St.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*tt)),St.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*tt)),St.add(new go.PathSegment(go.PathSegment.Move,.75*et,.5*tt)),St.add(new go.PathSegment(go.PathSegment.Line,.75*et,.6*tt)),St.add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*tt)),St.add(new go.PathSegment(go.PathSegment.Line,.25*et,.6*tt)),lt}),go.Shape.defineFigureGenerator("Power",function(Ct,et,tt){var lt=new go.Geometry,rt=Nt*.4,ht=.4,dt=.5,St=.5,It=Mt(),_t=Mt(),Gt=Mt(),oe=Mt();Ie(dt,St-ht,dt+rt,St-ht,dt+ht,St-rt,dt+ht,St,.5,It,It,_t,Gt,oe);var ue=bt(_t.x,_t.y),de=new go.PathFigure(_t.x*et,_t.y*tt,!0);lt.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,St*tt,Gt.x*et,Gt.y*tt,oe.x*et,oe.y*tt)),de.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(St+ht)*tt,(dt+ht)*et,(St+rt)*tt,(dt+rt)*et,(St+ht)*tt)),de.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ht)*et,St*tt,(dt-rt)*et,(St+ht)*tt,(dt-ht)*et,(St+rt)*tt)),Ie(dt-ht,St,dt-ht,St-rt,dt-rt,St-ht,dt,St-ht,.5,Gt,oe,_t,It,It),de.add(new go.PathSegment(go.PathSegment.Bezier,_t.x*et,_t.y*tt,Gt.x*et,Gt.y*tt,oe.x*et,oe.y*tt)),rt=Nt*.3,ht=.3,Ie(dt-ht,St,dt-ht,St-rt,dt-rt,St-ht,dt,St-ht,.5,Gt,oe,_t,It,It),de.add(new go.PathSegment(go.PathSegment.Line,_t.x*et,_t.y*tt)),de.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ht)*et,St*tt,oe.x*et,oe.y*tt,Gt.x*et,Gt.y*tt)),de.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(St+ht)*tt,(dt-ht)*et,(St+rt)*tt,(dt-rt)*et,(St+ht)*tt)),de.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,St*tt,(dt+rt)*et,(St+ht)*tt,(dt+ht)*et,(St+rt)*tt)),Ie(dt,St-ht,dt+rt,St-ht,dt+ht,St-rt,dt+ht,St,.5,It,It,_t,Gt,oe),de.add(new go.PathSegment(go.PathSegment.Bezier,_t.x*et,_t.y*tt,oe.x*et,oe.y*tt,Gt.x*et,Gt.y*tt).close());var de=new go.PathFigure(.45*et,0,!0);return lt.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*tt)),de.add(new go.PathSegment(go.PathSegment.Line,.55*et,.5*tt)),de.add(new go.PathSegment(go.PathSegment.Line,.55*et,0).close()),ce(It),ce(_t),ce(Gt),ce(oe),ce(ue),lt.spot1=new go.Spot(.25,.45),lt.spot2=new go.Spot(.75,.8),lt}),go.Shape.defineFigureGenerator("Fallout",function(Ct,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 ht(dt,St,It){dt.add(new go.PathSegment(go.PathSegment.Move,(.3+St)*et,(.8+It)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,(.5+St)*et,(.5+It)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,(.1+St)*et,(.5+It)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,(.3+St)*et,(.8+It)*tt).close())}return ht(rt,0,0),ht(rt,.4,0),ht(rt,.2,-.3),lt}),go.Shape.defineFigureGenerator("IrritationHazard",function(Ct,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(Ct,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(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=.5,ht=0,dt=0,St=rt*Nt,It=.4*Math.SQRT2/2+.5,_t=.5-.5*Math.SQRT2/2,Gt=1,oe=.5,ue=.5,de=0,be=new go.PathFigure(It*et,(1-_t)*tt,!1);return lt.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,Gt*et,oe*tt,Gt*et,.7*tt,Gt*et,oe*tt)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue+ht)*et,(de+ht)*tt,(.5+rt+ht)*et,(.5-St+ht)*tt,(.5+St+ht)*et,(.5-rt+ht)*tt)),be.add(new go.PathSegment(go.PathSegment.Bezier,(.5-rt+ht)*et,(.5+dt)*tt,(.5-St+ht)*et,(.5-rt+dt)*tt,(.5-rt+ht)*et,(.5-St+dt)*tt)),be.add(new go.PathSegment(go.PathSegment.Bezier,(.35+ht)*et,.9*tt,(.5-rt+ht)*et,(.5+St+dt)*tt,(.5-St+ht)*et,.9*tt)),be.add(new go.PathSegment(go.PathSegment.Move,(.25+ht)*et,.8*tt)),be.add(new go.PathSegment(go.PathSegment.Line,(.35+ht)*et,.9*tt)),be.add(new go.PathSegment(go.PathSegment.Line,(.2+ht)*et,.95*tt)),lt}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Ct,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(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!1);lt.add(rt);var ht=new go.PathFigure(et,tt,!1);lt.add(ht);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(Ct,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(Ct,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(Ct,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 ht=new go.PathFigure(.45*et,.73*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.7*et,.73*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.38*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.63*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.31*et,.27*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.56*et,.27*tt)),lt}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!1);lt.add(rt);var ht=new go.PathFigure(.335*et,(1-.555)*tt,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,et,.68*tt,(1-.12)*et,.46*tt,(1-.02)*et,.54*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,.68*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,.335*et,(1-.555)*tt,.02*et,.54*tt,.12*et,.46*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.365*et,(1-.595)*tt));var dt=.5-.285,St=.5,It=dt,_t=Math.PI/4,Gt=4*(1-Math.cos(_t))/(3*Math.sin(_t)),oe=Gt*.5,ue=dt,de=dt,be=Gt*ue,Jt=Gt*de;ht.add(new go.PathSegment(go.PathSegment.Bezier,(St-ue)*et,It*tt,(St-(be+ue)/2)*et,(It+(de+Jt)/2)*tt,(St-ue)*et,(It+Jt)*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,St*et,(It-de)*tt,(St-ue)*et,(It-Jt)*tt,(St-be)*et,(It-de)*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,(St+ue)*et,It*tt,(St+be)*et,(It-de)*tt,(St+ue)*et,(It-Jt)*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*et,(1-.595)*tt,(St+ue)*et,(It+Jt)*tt,(St+(be+ue)/2)*et,(It+(de+Jt)/2)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*et,(1-.595)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*tt));var Ke=new go.PathFigure(.2*et,tt,!1);lt.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Line,.2*et,.8*tt));var Wt=new go.PathFigure(.8*et,tt,!1);return lt.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*tt)),lt}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Ct,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 ht=new go.PathFigure(.2*et,.2*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.2*et,.8*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*tt)),lt}),go.Shape.defineFigureGenerator("BpmnEventError",function(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!1);lt.add(rt);var ht=new go.PathFigure(et,tt,!1);lt.add(ht);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(Ct,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 ht=.05;return rt.add(new go.PathSegment(go.PathSegment.Move,(.5-ht)*et,.875*tt)),rt.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*et,.875*tt,ht*et,ht*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(Ct,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 ht=new go.PathFigure(.475*et,.2*tt,!1);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.4*et,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.225*et,.3*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.275*et,.175*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.325*et,.05*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.05*tt,.35*et,0,.375*et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,.575*et,.375*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.525*et,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.75*et,.475*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.85*et,.315*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.32*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.65*et,.05*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,0,.65*et,.05*tt,.625*et,0)),ht.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(Ct,et,tt){var lt=new go.Geometry,rt=.5,ht=Nt*.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+ht)*tt,(rt+ht)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,rt*tt,(rt-ht)*et,tt,0,(rt+ht)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,rt*et,0,0,(rt-ht)*tt,(rt-ht)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,rt*tt,(rt+ht)*et,0,et,(rt-ht)*tt));var St=new go.PathFigure(rt*et,0,!1);return lt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,rt*et,.15*tt)),St.add(new go.PathSegment(go.PathSegment.Move,rt*et,tt)),St.add(new go.PathSegment(go.PathSegment.Line,rt*et,.85*tt)),St.add(new go.PathSegment(go.PathSegment.Move,0,rt*tt)),St.add(new go.PathSegment(go.PathSegment.Line,.15*et,rt*tt)),St.add(new go.PathSegment(go.PathSegment.Move,et,rt*tt)),St.add(new go.PathSegment(go.PathSegment.Line,.85*et,rt*tt)),St.add(new go.PathSegment(go.PathSegment.Move,rt*et,rt*tt)),St.add(new go.PathSegment(go.PathSegment.Line,.58*et,.1*tt)),St.add(new go.PathSegment(go.PathSegment.Move,rt*et,rt*tt)),St.add(new go.PathSegment(go.PathSegment.Line,.78*et,.54*tt)),lt}),go.Shape.defineFigureGenerator("Package",function(Ct,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 ht=new go.PathFigure(0,.15*tt,!0);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,0,0)),ht.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),ht.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(Ct,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 ht=new go.PathFigure(0,.2*tt,!1);lt.add(ht),ht.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(Ct,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 ht=new go.PathFigure(0,.2*tt,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.45*et,.2*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,.4*tt)),ht.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(Ct,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 ht=new go.PathFigure(.15*et,.6*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*tt)),lt}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Ct,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(Ct,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(Ct,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(Ct,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 ht=new go.PathFigure(et,.8*tt,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.6*et,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt).close());var dt=.1,St=Nt*.1,It=.2,_t=.9,Gt=new go.PathFigure((It-dt)*et,_t*tt,!0);lt.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,It*et,(_t-dt)*tt,(It-dt)*et,(_t-St)*tt,(It-St)*et,(_t-dt)*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(It+dt)*et,_t*tt,(It+St)*et,(_t-dt)*tt,(It+dt)*et,(_t-St)*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,It*et,(_t+dt)*tt,(It+dt)*et,(_t+St)*tt,(It+St)*et,(_t+dt)*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(It-dt)*et,_t*tt,(It-St)*et,(_t+dt)*tt,(It-dt)*et,(_t+St)*tt).close()),dt=.1,St=Nt*.1,It=.8,_t=.9;var oe=new go.PathFigure((It-dt)*et,_t*tt,!0);return lt.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,It*et,(_t-dt)*tt,(It-dt)*et,(_t-St)*tt,(It-St)*et,(_t-dt)*tt)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(It+dt)*et,_t*tt,(It+St)*et,(_t-dt)*tt,(It+dt)*et,(_t-St)*tt)),oe.add(new go.PathSegment(go.PathSegment.Bezier,It*et,(_t+dt)*tt,(It+dt)*et,(_t+St)*tt,(It+St)*et,(_t+dt)*tt)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(It-dt)*et,_t*tt,(It-St)*et,(_t+dt)*tt,(It-dt)*et,(_t+St)*tt).close()),lt}),go.Shape.defineFigureGenerator("KanbanPost",function(Ct,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(Ct,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 ht=new go.PathFigure(0,.5*tt,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),ht.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 St=new go.PathFigure(.5*et,.7*tt,!1);lt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt));var It=.1,_t=Nt*.1,Gt=.1,oe=.9,ue=new go.PathFigure((Gt-It)*et,oe*tt,!0);lt.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,Gt*et,(oe-It)*tt,(Gt-It)*et,(oe-_t)*tt,(Gt-_t)*et,(oe-It)*tt)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(Gt+It)*et,oe*tt,(Gt+_t)*et,(oe-It)*tt,(Gt+It)*et,(oe-_t)*tt)),ue.add(new go.PathSegment(go.PathSegment.Bezier,Gt*et,(oe+It)*tt,(Gt+It)*et,(oe+_t)*tt,(Gt+_t)*et,(oe+It)*tt)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(Gt-It)*et,oe*tt,(Gt-_t)*et,(oe+It)*tt,(Gt-It)*et,(oe+_t)*tt)),It=.1,_t=Nt*.1,Gt=.4,oe=.9;var de=new go.PathFigure((Gt-It)*et,oe*tt,!0);return lt.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,Gt*et,(oe-It)*tt,(Gt-It)*et,(oe-_t)*tt,(Gt-_t)*et,(oe-It)*tt)),de.add(new go.PathSegment(go.PathSegment.Bezier,(Gt+It)*et,oe*tt,(Gt+_t)*et,(oe-It)*tt,(Gt+It)*et,(oe-_t)*tt)),de.add(new go.PathSegment(go.PathSegment.Bezier,Gt*et,(oe+It)*tt,(Gt+It)*et,(oe+_t)*tt,(Gt+_t)*et,(oe+It)*tt)),de.add(new go.PathSegment(go.PathSegment.Bezier,(Gt-It)*et,oe*tt,(Gt-_t)*et,(oe+It)*tt,(Gt-It)*et,(oe+_t)*tt)),lt}),go.Shape.defineFigureGenerator("RailShipment",function(Ct,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 ht=new go.PathFigure(.45*et,.7*tt,!1);lt.add(ht),ht.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 Gt=.05,oe=Nt*.05,ue=.175,de=.95,St=new go.PathFigure((ue-Gt)*et,de*tt,!0);lt.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,ue*et,(de-Gt)*tt,(ue-Gt)*et,(de-oe)*tt,(ue-oe)*et,(de-Gt)*tt)),St.add(new go.PathSegment(go.PathSegment.Bezier,(ue+Gt)*et,de*tt,(ue+oe)*et,(de-Gt)*tt,(ue+Gt)*et,(de-oe)*tt)),St.add(new go.PathSegment(go.PathSegment.Bezier,ue*et,(de+Gt)*tt,(ue+Gt)*et,(de+oe)*tt,(ue+oe)*et,(de+Gt)*tt)),St.add(new go.PathSegment(go.PathSegment.Bezier,(ue-Gt)*et,de*tt,(ue-oe)*et,(de+Gt)*tt,(ue-Gt)*et,(de+oe)*tt));var Gt=.05,oe=Nt*.05,ue=.375,de=.95,It=new go.PathFigure((ue-Gt)*et,de*tt,!0);lt.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,ue*et,(de-Gt)*tt,(ue-Gt)*et,(de-oe)*tt,(ue-oe)*et,(de-Gt)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(ue+Gt)*et,de*tt,(ue+oe)*et,(de-Gt)*tt,(ue+Gt)*et,(de-oe)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,ue*et,(de+Gt)*tt,(ue+Gt)*et,(de+oe)*tt,(ue+oe)*et,(de+Gt)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(ue-Gt)*et,de*tt,(ue-oe)*et,(de+Gt)*tt,(ue-Gt)*et,(de+oe)*tt));var Gt=.05,oe=Nt*.05,ue=.625,de=.95,_t=new go.PathFigure((ue-Gt)*et,de*tt,!0);lt.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,ue*et,(de-Gt)*tt,(ue-Gt)*et,(de-oe)*tt,(ue-oe)*et,(de-Gt)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(ue+Gt)*et,de*tt,(ue+oe)*et,(de-Gt)*tt,(ue+Gt)*et,(de-oe)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,ue*et,(de+Gt)*tt,(ue+Gt)*et,(de+oe)*tt,(ue+oe)*et,(de+Gt)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(ue-Gt)*et,de*tt,(ue-oe)*et,(de+Gt)*tt,(ue-Gt)*et,(de+oe)*tt));var Gt=.05,oe=Nt*.05,ue=.825,de=.95,be=new go.PathFigure((ue-Gt)*et,de*tt,!0);lt.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*et,(de-Gt)*tt,(ue-Gt)*et,(de-oe)*tt,(ue-oe)*et,(de-Gt)*tt)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue+Gt)*et,de*tt,(ue+oe)*et,(de-Gt)*tt,(ue+Gt)*et,(de-oe)*tt)),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*et,(de+Gt)*tt,(ue+Gt)*et,(de+oe)*tt,(ue+oe)*et,(de+Gt)*tt)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue-Gt)*et,de*tt,(ue-oe)*et,(de+Gt)*tt,(ue-Gt)*et,(de+oe)*tt).close());var Jt=new go.PathFigure(0,tt,!1);return lt.add(Jt),Jt.add(new go.PathSegment(go.PathSegment.Line,et,tt).close()),lt}),go.Shape.defineFigureGenerator("Warehouse",function(Ct,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 ht=new go.PathFigure(0,.2*tt,!1);lt.add(ht),ht.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 St=.05,It=Nt*.05,_t=.35,Gt=.775,oe=new go.PathFigure((_t-St)*et,Gt*tt,!0);return lt.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,_t*et,(Gt-St)*tt,(_t-St)*et,(Gt-It)*tt,(_t-It)*et,(Gt-St)*tt)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(_t+St)*et,Gt*tt,(_t+It)*et,(Gt-St)*tt,(_t+St)*et,(Gt-It)*tt)),oe.add(new go.PathSegment(go.PathSegment.Bezier,_t*et,(Gt+St)*tt,(_t+St)*et,(Gt+It)*tt,(_t+It)*et,(Gt+St)*tt)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(_t-St)*et,Gt*tt,(_t-It)*et,(Gt+St)*tt,(_t-St)*et,(Gt+It)*tt).close()),lt}),go.Shape.defineFigureGenerator("ControlCenter",function(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=.3,ht=Nt*.3,dt=.5,St=.7,It=new go.PathFigure((dt-rt)*et,St*tt,!0);lt.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(St-rt)*tt,(dt-rt)*et,(St-ht)*tt,(dt-ht)*et,(St-rt)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(dt+rt)*et,St*tt,(dt+ht)*et,(St-rt)*tt,(dt+rt)*et,(St-ht)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(St+rt)*tt,(dt+rt)*et,(St+ht)*tt,(dt+ht)*et,(St+rt)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(dt-rt)*et,St*tt,(dt-ht)*et,(St+rt)*tt,(dt-rt)*et,(St+ht)*tt));var _t=new go.PathFigure(0,.7*tt,!1);return lt.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,et,.7*tt,0,0,et,0)),lt}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Ct,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(Ct,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(Ct,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 ht=new go.PathFigure(0,.6*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Move,0,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,.4*tt)),lt}),go.Shape.defineFigureGenerator("Delete",function(Ct,et,tt){var lt=new go.Geometry,rt=.5,ht=Nt*.5,dt=.5,St=.5,It=new go.PathFigure((dt-rt)*et,St*tt,!0);lt.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(St-rt)*tt,(dt-rt)*et,(St-ht)*tt,(dt-ht)*et,(St-rt)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(dt+rt)*et,St*tt,(dt+ht)*et,(St-rt)*tt,(dt+rt)*et,(St-ht)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(St+rt)*tt,(dt+rt)*et,(St+ht)*tt,(dt+ht)*et,(St+rt)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(dt-rt)*et,St*tt,(dt-ht)*et,(St+rt)*tt,(dt-rt)*et,(St+ht)*tt));var _t=new go.PathFigure(.15*et,.5*tt,!1);return lt.add(_t),_t.add(new go.PathSegment(go.PathSegment.Line,.85*et,.5*tt)),lt}),go.Shape.defineFigureGenerator("Flag",function(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=.5,ht=Nt*.5,dt=.5,St=.5,It=new go.PathFigure((dt-rt)*et,St*tt,!1);lt.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(St-rt)*tt,(dt-rt)*et,(St-ht)*tt,(dt-ht)*et,(St-rt)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(dt+rt)*et,St*tt,(dt+ht)*et,(St-rt)*tt,(dt+rt)*et,(St-ht)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(St+rt)*tt,(dt+rt)*et,(St+ht)*tt,(dt+ht)*et,(St+rt)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(dt-rt)*et,St*tt,(dt-ht)*et,(St+rt)*tt,(dt-rt)*et,(St+ht)*tt).close()),rt=.05,ht=Nt*.05,dt=.5,St=.8;var _t=new go.PathFigure((dt-rt)*et,St*tt,!1);return lt.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(St-rt)*tt,(dt-rt)*et,(St-ht)*tt,(dt-ht)*et,(St-rt)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(dt+rt)*et,St*tt,(dt+ht)*et,(St-rt)*tt,(dt+rt)*et,(St-ht)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(St+rt)*tt,(dt+rt)*et,(St+ht)*tt,(dt+ht)*et,(St+rt)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(dt-rt)*et,St*tt,(dt-ht)*et,(St+rt)*tt,(dt-rt)*et,(St+ht)*tt).close()),_t.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*tt)),_t.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,.75*et,.475*tt,.75*et,.225*tt)),_t.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(Ct,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(Ct,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 ht=new go.PathFigure(.2*et,.5*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*tt,.25*et,0,.75*et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.3*tt)),lt}),go.Shape.defineFigureGenerator("Unlocked",function(Ct,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 ht=new go.PathFigure(.2*et,.5*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*tt,.25*et,0,.75*et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.35*tt)),lt}),go.Shape.defineFigureGenerator("Gear",function(Ct,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(Ct,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(Ct,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(Ct,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 ht=new go.PathFigure(0,tt*.6,!0);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,.6*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close()),lt}),go.Shape.defineFigureGenerator("Pencil",function(Ct,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(Ct,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 ht=new go.PathFigure(.126*et,.85*tt,!1);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.126*et,.45*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.322*et,.45*tt)),ht.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 St=new go.PathFigure(.678*et,.85*tt,!1);lt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.678*et,.45*tt)),St.add(new go.PathSegment(go.PathSegment.Line,.874*et,.45*tt)),St.add(new go.PathSegment(go.PathSegment.Line,.874*et,.85*tt).close());var It=new go.PathFigure(.5*et,.1*tt,!1);return lt.add(It),It.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*et,.3*tt)),It.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*et,.3*tt).close()),lt}),go.Shape.defineFigureGenerator("Staircase",function(Ct,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(Ct,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 ht=new go.PathFigure(et*.204,tt,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et*.204,tt*(1-.184))),ht.add(new go.PathSegment(go.PathSegment.Line,et*.388,tt*(1-.184*2))),ht.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 St=new go.PathFigure(et*.612,tt,!0);lt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,et*.612,tt*(1-.184*3))),St.add(new go.PathSegment(go.PathSegment.Line,et*.796,tt*(1-.184*4))),St.add(new go.PathSegment(go.PathSegment.Line,et*.796,tt*1).close());var It=new go.PathFigure(et*.816,tt,!0);return lt.add(It),It.add(new go.PathSegment(go.PathSegment.Line,et*.816,tt*(1-.184*4))),It.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-.184*5))),It.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1).close()),lt}),go.Shape.defineFigureGenerator("PC",function(Ct,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 ht=new go.PathFigure(et*.055,.07*tt,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.07)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.1)),ht.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 St=new go.PathFigure(et*.055,.18*tt,!0);lt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.18)),St.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.21)),St.add(new go.PathSegment(go.PathSegment.Line,et*.055,tt*.21).close());var It=new go.PathFigure(et*1,0,!0);return lt.add(It),It.add(new go.PathSegment(go.PathSegment.Line,et*.4,0)),It.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.65)),It.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.65).close()),lt}),go.Shape.defineFigureGenerator("Plane",function(Ct,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(Ct,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(Ct,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 ht=new go.PathFigure(0,0,!1);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*0)),ht.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*1,et*.3,et*.055)),ht.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 St=new go.PathFigure(et*(.11+.24133333*1+.028*1),tt*.1,!1);lt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),tt*.1)),St.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),tt*.8)),St.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*1),tt*.8).close());var It=new go.PathFigure(et*(.11+.24133333*2+.028*2),tt*.1,!1);return lt.add(It),It.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),tt*.1)),It.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),tt*.8)),It.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*2),tt*.8).close()),lt}),go.Shape.defineFigureGenerator("FloppyDisk",function(Ct,et,tt){var lt=new go.Geometry,rt=8,ht=rt*Nt,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-ht,et-ht,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,rt,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-rt,ht,tt,0,tt-ht)),dt.add(new go.PathSegment(go.PathSegment.Line,0,rt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,rt,0,0,ht,ht,0).close());var St=new go.PathFigure(et*.83,0,!1);lt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,et*.83,tt*.3)),St.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*.3)),St.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*0).close());var It=new go.PathFigure(et*.83,tt*1,!1);lt.add(It),It.add(new go.PathSegment(go.PathSegment.Line,et*.83,tt*.5)),It.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*.5)),It.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*1).close());var _t=new go.PathFigure(et*.78,tt*.05,!1);return lt.add(_t),_t.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.05)),_t.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.25)),_t.add(new go.PathSegment(go.PathSegment.Line,et*.78,tt*.25).close()),lt}),go.Shape.defineFigureGenerator("SpeechBubble",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=15),lt=Math.min(lt,et/3),lt=Math.min(lt,tt/3);var rt=lt*Nt,ht=tt*.8,dt=new go.Geometry,St=new go.PathFigure(lt,0,!0);return dt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,et-lt,0)),St.add(new go.PathSegment(go.PathSegment.Bezier,et,lt,et-rt,0,et,rt)),St.add(new go.PathSegment(go.PathSegment.Line,et,ht-lt)),St.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,ht,et,ht-rt,et-rt,ht)),St.add(new go.PathSegment(go.PathSegment.Line,et*.7,ht)),St.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt)),St.add(new go.PathSegment(go.PathSegment.Line,et*.55,ht)),St.add(new go.PathSegment(go.PathSegment.Line,lt,ht)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,ht-lt,rt,ht,0,ht-rt)),St.add(new go.PathSegment(go.PathSegment.Line,0,lt)),St.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(Ct,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 ht=new go.PathFigure(et*1,tt*.55,!0);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*1)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.55)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*.55)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*.1)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.1)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*0)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*.55).close()),lt}),go.Shape.defineFigureGenerator("Windows",function(Ct,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(Ct,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 ht=new go.PathFigure(et*.1,tt*.2,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et*.1,tt*.25)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.22,tt*.285)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.1,tt*.32)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.1,tt*.37)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.275,tt*.32)),ht.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(Ct,et,tt){var lt=new go.Geometry,rt=15,ht=rt*Nt,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-ht,et-ht,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,rt,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-rt,ht,tt,0,tt-ht)),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()),ht>1?(lt.spot1=new go.Spot(0,0,ht,ht),lt.spot2=new go.Spot(1,1,-ht,-ht)):(lt.spot1=go.Spot.TopLeft,lt.spot2=go.Spot.BottomRight),lt}),go.Shape.defineFigureGenerator("Download",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*0,tt*1,!0);lt.add(rt);var ht=.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-ht))),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-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*(1-ht))),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-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.07,tt*(1-ht))),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-ht)).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(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*0,tt*1,!0);lt.add(rt);var ht=.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-ht))),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-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*(1-ht))),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-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.07,tt*(1-ht))),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-ht)).close()),lt}),go.Shape.defineFigureGenerator("Upload",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*0,tt*1,!0);lt.add(rt);var ht=.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-ht))),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-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*(1-ht))),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-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.07,tt*(1-ht))),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-ht)).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(Ct,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(Ct,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 ht=new go.PathFigure(et*.235,tt*.28,!0);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et*.765,tt*.28)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.655,tt*.97)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.345,tt*.97).close()),lt}),go.Shape.defineFigureGenerator("4Arrows",function(Ct,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 hi={},Cn="5.0",bt={},Mt=null,ce=!1,ie=!1,Ie=null,ee=!1,Zt=null,Nt=null,jt=0;jt<arguments.length;jt++){var qt=arguments[jt];if(qt!==null)switch(typeof qt){case"number":Cn=qt.toFixed(1);break;case"string":qt.match(new RegExp("^[0-9]\\.[0-9]+$"))?Cn=qt:Ie=qt;break;case"object":typeof qt.is3D!="undefined"?Mt=qt:bt=qt;break;case"boolean":ce=qt,ie=!0;break}}Mt===null&&(Mt={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&&!ie&&(ce=!0)),Ie!==null&&bt.id===void 0&&(bt.id=Ie);var Pt="",re="",Kt=!1,Yt=null,Ct=null,et=null,tt=!1,lt=null,rt=null,ht=null,dt=null,St=null;bt.height!==void 0&&(bt.height=Math.round(bt.height)),bt.width!==void 0&&(bt.width=Math.round(bt.width));var It=function(Xe){return parseFloat(Xe)>4?parseFloat(Xe):5};hi.setHTML5Codebase=function(Xe,Nn){Nt=Xe,Se(Xe,Nn)},hi.setJavaCodebase=hi.setJavaCodebaseVersion=hi.isCompiledInstalled=hi.setPreCompiledScriptPath=hi.setPreCompiledResourcePath=function(){},hi.setHTML5CodebaseVersion=function(Xe,Nn){var Zn=parseFloat(Xe);if(Zn!==NaN&&Zn<5){console.log("The GeoGebra HTML5 codebase version "+Zn+" is deprecated. Using version latest instead.");return}Zt=Xe,ne(Xe,Nn)},hi.getHTML5CodebaseVersion=function(){return Ct},hi.getParameters=function(){return bt},hi.setFontsCSSURL=function(Xe){dt=Xe},hi.setGiacJSURL=function(Xe){},hi.setJNLPFile=function(Xe){Pt=Xe},hi.setJNLPBaseDir=function(Xe){},hi.inject=function(){function Xe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Nn="auto",Zn=bt.id,fi,zn=!1,Si=0;Si<arguments.length;Si++){var nn=arguments[Si];typeof nn=="string"?(nn=nn.toLowerCase(),nn.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Nn=nn:Zn=arguments[Si]):typeof nn=="boolean"?zn=nn:nn instanceof HTMLElement&&(fi=nn)}Fi();function Fi(){if(!ee){setTimeout(Fi,200);return}Nn=_e(Nn);var Ti=fi||document.getElementById(Zn);if(!Ti){console.log("possibly bug on ajax loading? ");return}if(hi.removeExistingApplet(Ti,!1),bt.width===void 0&&Ti.clientWidth&&(bt.width=Ti.clientWidth),bt.height===void 0&&Ti.clientHeight&&(bt.height=Ti.clientHeight),!(bt.width&&bt.height)&&Nn==="html5"&&(delete bt.width,delete bt.height),Yt=Nn,Nn==="screenshot")Wt(Ti,bt);else{var Lt=!1;bt.hasOwnProperty("playButton")&&bt.playButton||bt.hasOwnProperty("clickToLoad")&&bt.clickToLoad?Lt=!0:bt.hasOwnProperty("playButtonAutoDecide")&&bt.playButtonAutoDecide&&(Lt=(!_t()||Xe())&&Gt()),Lt?(Yt="screenshot",He(Ti,bt,zn,Nn)):Ke(Ti,bt,zn)}}};function _t(){try{return window.self!==window.top}catch(Xe){return!0}}function Gt(){return bt.hasOwnProperty("screenshotGenerator")&&bt.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}hi.getViews=function(){return Mt},hi.isJavaInstalled=function(){return!1};var oe=function(Xe){var Nn=function(Si){var nn=JSON.parse(Si),Fi=function(Ot){return Ot.type=="G"||Ot.type=="E"},Ti=nn.elements?nn.elements.filter(Fi)[0]:nn;if(!Ti||!Ti.url){Zn();return}bt.fileName=Ti.url,ue(Ti.settings||{}),Mt.is3D=!0;var Lt="https://www.geogebra.org/images/";hi.setPreviewImage(lt||Ti.previewUrl,Lt+"GeoGebra_loading.png",Lt+"applet_play.png"),Xe()},Zn=function(){bt.onError&&bt.onError(),Pn("Error: Fetching material (id "+bt.material_id+") failed.",bt)},fi=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",zn="/materials/"+bt.material_id+"?scope=basic";de("https://"+fi+"/api/proxy.php?path="+encodeURIComponent(zn),Nn,Zn)};function ue(Xe){var Nn=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Zn){Xe[Zn]=!!Xe[Zn]}),Nn.forEach(function(Zn){bt[Zn]===void 0&&Xe[Zn]!==void 0&&(bt[Zn]=Xe[Zn])}),bt.showToolBarHelp===void 0&&(bt.showToolBarHelp=bt.showToolBar)}function de(Xe,Nn,Zn){var fi=new XMLHttpRequest;fi.open("GET",Xe),fi.onload=function(){Nn(fi.responseText)},fi.onerror=Zn,fi.send()}hi.isHTML5Installed=function(){return!0},hi.getLoadedAppletType=function(){return Yt},hi.setPreviewImage=function(Xe,Nn,Zn){lt=Xe,rt=Nn,ht=Zn},hi.removeExistingApplet=function(Xe,Nn){var Zn;typeof Xe=="string"&&(Xe=document.getElementById(Xe)),Yt=null;var fi=null;for(Zn=0;Zn<Xe.childNodes.length;Zn++){var zn=Xe.childNodes[Zn],Si=zn.className;Si==="applet_screenshot"?Nn?(zn.style.display="block",Yt="screenshot"):zn.style.display="none":Si!=="applet_scaler prerender"&&(Xe.removeChild(zn),fi=Si&&Si.indexOf("appletParameters")!=-1?zn.id:null,Zn--)}var nn=bt.id!==void 0?bt.id:fi,Fi=window[nn];Fi&&typeof Fi.getBase64=="function"&&(Fi.remove(),window[nn]=null)},hi.refreshHitPoints=function(){if(It(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Xe=hi.getAppletObject();return Xe&&typeof Xe.recalculateEnvironments=="function"?(Xe.recalculateEnvironments(),!0):!1},hi.startAnimation=function(){var Xe=hi.getAppletObject();return Xe&&typeof Xe.startAnimation=="function"?(Xe.startAnimation(),!0):!1},hi.stopAnimation=function(){var Xe=hi.getAppletObject();return Xe&&typeof Xe.stopAnimation=="function"?(Xe.stopAnimation(),!0):!1},hi.getAppletObject=function(){var Xe=bt.id!==void 0?bt.id:"ggbApplet";return window[Xe]},hi.resize=function(){};var be=function(Xe,Nn,Zn){var fi=document.createElement("param");fi.setAttribute("name",Nn),fi.setAttribute("value",Zn),Xe.appendChild(fi)},Jt=function(Xe){return Xe&&Xe!=="false"},Ke=function(Xe,Nn,Zn){It(Ct)<=4.2&&(Zn=!0);var fi=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Ct||ggbHTML5LoadedCodebaseIsWebSimple&&!tt)&&(fi=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var zn=document.createElement("div");zn.classList.add("appletParameters","notranslate");var Si=Nn.width,nn=Nn.height;if(Nn.disableAutoScale=Nn.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Nn.disableAutoScale,Nn.width!==void 0)if(It(Ct)<=4.4)Jt(Nn.showToolBar)&&(Nn.height-=7),Jt(Nn.showAlgebraInput)&&(Nn.height-=37),Nn.width<605&&Jt(Nn.showToolBar)&&(Nn.width=605,Si=605);else{var Fi=100;(Jt(Nn.showToolBar)||Jt(Nn.showMenuBar))&&(Nn.hasOwnProperty("customToolBar")&&(Nn.customToolbar=Nn.customToolBar),Fi=Jt(Nn.showMenuBar)?245:155),Si<Fi&&(Nn.width=Fi,Si=Fi)}zn.style.border="none",zn.style.display="inline-block";for(var Ti in Nn)Nn.hasOwnProperty(Ti)&&Ti!=="appletOnLoad"&&zn.setAttribute("data-param-"+Ti,Nn[Ti]);dt&&zn.setAttribute("data-param-fontscssurl",dt),hi.resize=function(){GGBAppletUtils.responsiveResize(Xe,Nn)},window.addEventListener("resize",function(ke){hi.resize()});var Lt=typeof Nn.appletOnLoad=="function"?Nn.appletOnLoad:function(){};if(!Zn&&Nn.width!==void 0){Nn.hasOwnProperty("showSplash")||zn.setAttribute("data-param-showSplash","false");var Ot=Xe.querySelector(".applet_scaler.prerender"),mt=Ot!==null;if(mt)var ft=Ot.querySelector(".ggb_preview");else{var ft=We(Si,nn,Nn.borderColor,!1);Ot=document.createElement("div"),Ot.className="applet_scaler",Ot.style.position="relative",Ot.style.display="block",Ot.style.width=Si+"px",Ot.style.height=nn+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ot,"66%"),It(Ct)>=5?(Nn.appletOnLoad=function(ke){var rn=Xe.querySelector(".ggb_preview");rn&&rn.parentNode.removeChild(rn),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Ot),window.GGBT_wsf_view&&$(window).trigger("resize"),Lt(ke)},mt||Ot.appendChild(ft)):zn.appendChild(ft),Ot.appendChild(zn),mt||Xe.appendChild(Ot),setTimeout(function(){hi.resize()},1)}else{var pt=document.createElement("div");pt.className="applet_scaler",pt.style.position="relative",pt.style.display="block",pt.appendChild(zn),Xe.appendChild(pt),Nn.appletOnLoad=function(ke){hi.resize(),Lt(ke)}}function At(ke,rn){rn&&typeof rn.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ke,rn.appletOnLoad):renderGGBElement(ke),Pn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",rn)}function le(ke,rn){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ke,params:rn}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Vn){At(Vn.article,Vn.params)}),html5AppletsToProcess=null)},It(Ct)<5&&(ke.className+=" geogebraweb")):At(ke,rn)}if(fi){scriptLoadStarted=!0;for(var we=0;we<zn.childNodes.length;we++){var ae=zn.childNodes[we].tagName;ae==="TABLE"&&(zn.removeChild(zn.childNodes[we]),we--)}if(ggbHTML5LoadedScript!==null){var me=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');me!=null&&me.parentNode.removeChild(me)}var Re=document.createElement("script"),Oe=function(){le(zn,Nn)};Re.src=re+et,ggbHTML5LoadedCodebaseIsWebSimple=tt,ggbHTML5LoadedCodebaseVersion=Ct,ggbHTML5LoadedScript=Re.src,Pn("GeoGebra HTML5 codebase loaded: '"+re+"'.",Nn),!Nt&&(!Zt||Zt=="5.0")?(tt?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Oe()):re.requirejs?__webpack_require__.e(4184).then(function(){var ke=[__webpack_require__(74620)];Oe.apply(null,ke)}.bind(this)).catch(__webpack_require__.oe):(Re.onload=Oe,Xe.appendChild(Re))}else le(zn,Nn);Nn.height=nn,Nn.width=Si},Wt=function(Xe,Nn,Zn){var fi=We(Nn.width,Nn.height,Nn.borderColor,Zn),zn=document.createElement("div");zn.style.position="relative",zn.style.display="block",zn.style.width=Nn.width+"px",zn.style.height=Nn.height+"px",zn.className="applet_screenshot applet_scaler"+(Zn?" applet_screenshot_play":""),zn.appendChild(fi);var Si=GGBAppletUtils.getScale(Nn,Xe,Zn);Zn?(Xe.appendChild(Me()),window.GGBT_wsf_view||(Xe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(zn,"66%"),Xe.appendChild(zn),Si!==1&&!isNaN(Si)&&(GGBAppletUtils.scaleElement(zn,Si),zn.style.width=Nn.width+"px",zn.style.height=Nn.height+"px",zn.parentNode.style.width=Nn.width*Si+"px",zn.parentNode.style.height=Nn.height*Si+"px"),hi.resize=function(){Ge(Xe,fi,zn,Zn)},window.addEventListener("resize",function(nn){hi.resize()}),hi.resize()};function Ge(Xe,Nn,Zn,fi){if(Xe.contains(Nn)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Xe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Xe)}var zn=GGBAppletUtils.getScale(bt,Xe,fi);Zn.parentNode!==null&&(!isNaN(zn)&&zn!==1?(GGBAppletUtils.scaleElement(Zn,zn),Zn.parentNode.style.width=bt.width*zn+"px",Zn.parentNode.style.height=bt.height*zn+"px"):(GGBAppletUtils.scaleElement(Zn,1),Zn.parentNode.style.width=bt.width+"px",Zn.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()}}hi.onExitFullscreen=function(Xe,Nn){Nn.appendChild(Xe)};var He=function(Xe,Nn,Zn,fi){Wt(Xe,Nn,!0);for(var zn=function(){var Fi=[];for(nn=0;nn<Xe.childNodes.length;nn++)Fi.push(Xe.childNodes[nn]);if(window.GGBT_wsf_view){var Ti=window.GGBT_wsf_view.renderFullScreen(Xe,Nn.id),Lt=document.getElementById("fullscreencontainer"),Ot=jQuery(Xe).find(".fullscreencontent");Ot.length>0?(Ti.remove(),Ot.attr("id","fullscreencontent").show(),jQuery(Lt).append(Ot),window.dispatchEvent(new Event("resize"))):Ke(Ti,Nn,!1),window.GGBT_wsf_view.launchFullScreen(Lt)}else Yt=fi,Ke(Xe,Nn,!1);if(!window.GGBT_wsf_view)for(nn=0;nn<Fi.length;nn++)Xe.removeChild(Fi[nn])},Si=Xe.getElementsByClassName("ggb_preview_play"),nn=0;nn<Si.length;nn++)Si[nn].addEventListener("click",zn,!1),Si[nn].addEventListener("ontouchstart",zn,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Xe),Gt()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Me=function(){var Xe=document.createElement("div");if(Xe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Nn='.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");}',Zn=document.createElement("style");Zn.styleSheet?Zn.styleSheet.cssText=Nn:Zn.appendChild(document.createTextNode(Nn)),document.getElementsByTagName("head")[0].appendChild(Zn)}return Xe},We=function(Xe,Nn,Zn,fi){var zn=document.createElement("div");zn.className="ggb_preview",zn.style.position="absolute",zn.style.zIndex="90",zn.style.width=Xe-2+"px",zn.style.height=Nn-2+"px",zn.style.top="0px",zn.style.left="0px",zn.style.overflow="hidden",zn.style.backgroundColor="white";var Si="lightgrey";Zn!==void 0&&(Zn==="none"?Si="transparent":Si=Zn),zn.style.border="1px solid "+Si;var nn=document.createElement("img");if(nn.style.position="relative",nn.style.zIndex="1000",nn.style.top="-1px",nn.style.left="-1px",lt!==null&&nn.setAttribute("src",lt),nn.style.opacity=.7,rt!==null){var Fi,Ti,Lt;if(!fi){Fi=document.createElement("img"),Fi.style.position="absolute",Fi.style.zIndex="1001",Fi.style.opacity=1,nn.style.opacity=.3,Ti=360,Ti>Xe/4*3&&(Ti=Xe/4*3),Lt=Ti/5.8,Fi.setAttribute("src",rt),Fi.setAttribute("width",Ti),Fi.setAttribute("height",Lt);var Ot=(Xe-Ti)/2,mt=(Nn-Lt)/2;Fi.style.left=Ot+"px",Fi.style.top=mt+"px",zn.appendChild(Fi)}}return zn.appendChild(nn),zn},_e=function(Xe){return Xe=Xe.toLowerCase(),Xe==="html5"||Xe==="screenshot"?Xe:"html5"},ve=["web","webSimple","web3d","tablet","tablet3d","phone"],ne=function(Xe,Nn){if(Ct=Xe,Nn){Se(Ct,!0);return}var Zn=!ce;if(Zn){var fi=It(Ct);!isNaN(fi)&&fi<4.4&&(Zn=!1)}var zn,Si;window.location.protocol.substr(0,4)==="http"?zn=window.location.protocol:zn="http:";var nn=Ct.indexOf("//");nn>0?Si=Ct:nn===0?Si=zn+Ct:Si="https://www.geogebra.org/apps/5.2.814.0/";for(var Fi in ve)if(Ct.slice(ve[Fi].length*-1)===ve[Fi]||Ct.slice((ve[Fi].length+1)*-1)===ve[Fi]+"/"){Se(Si,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Zn&&!Mt.is3D&&!Mt.AV&&!Mt.SV&&!Mt.CV&&!Mt.EV2&&!Mt.CP&&!Mt.PC&&!Mt.DA&&!Mt.FI&&!Mt.PV&&!Jt(bt.showToolBar)&&!Jt(bt.showMenuBar)&&!Jt(bt.showAlgebraInput)&&!Jt(bt.enableRightClick)&&(!bt.appName||bt.appName=="classic")?Si+="webSimple/":Si+="web3d/",Se(Si,!1)},Se=function(Xe,Nn){if(Xe.requirejs){re=Xe;return}Xe.slice(-1)!=="/"&&(Xe+="/"),re=Xe,Nn===null&&(Nn=Xe.indexOf("http")===-1),Kt=Nn,et="web.nocache.js",tt=!1;var Zn=re.split("/");Zn.length>1&&(!Nn&&Zn[Zn.length-2]==="webSimple"?(et="webSimple.nocache.js",tt=!0):ve.indexOf(Zn[Zn.length-2])>=0&&(et=Zn[Zn.length-2]+".nocache.js")),Zn=Xe.split("/"),Ct=Zn[Zn.length-3],Ct.substr(0,4)==="test"?Ct=Ct.substr(4,1)+"."+Ct.substr(5,1):(Ct.substr(0,3)==="war"||Ct.substr(0,4)==="beta")&&(Ct="5.0");var fi=parseFloat(Ct);fi!==NaN&&fi<5&&Xe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+fi+" is deprecated. Using version latest instead."),ne("5.0",Nn))},Pn=function(Xe,Nn){window.console&&window.console.log&&(!Nn||typeof Nn.showLogging=="undefined"||Nn.showLogging&&Nn.showLogging!=="false")&&console.log(Xe)};bt.material_id!==void 0?oe(Mn):Mn();function Mn(){var Xe=Cn;Zt!==null?Xe=Zt:parseFloat(Xe)<5&&(Xe="5.0"),ne(Xe,!1),Nt!==null&&Se(Nt,Kt),ee=!0}return hi},GGBAppletUtils=function(){"use strict";function hi(){return window.GGBT_wsf_edit!==void 0}function Cn(ee,Zt){Zt!=1?(ee.style.transformOrigin="0% 0% 0px",ee.style.webkitTransformOrigin="0% 0% 0px",ee.style.transform="scale("+Zt+","+Zt+")",ee.style.webkitTransform="scale("+Zt+","+Zt+")",ee.style.maxWidth="initial",ee.querySelector(".ggb_preview")!==null&&(ee.querySelector(".ggb_preview").style.maxWidth="initial"),ee.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ee.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ee.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ee.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ee.style.transform="none",ee.style.webkitTransform="none")}function bt(ee,Zt,Nt,jt,qt,Pt){var re=null;if(Pt!=null&&Pt!="")for(var Kt=ee.parentNode;Kt!=null;)if((" "+Kt.className+" ").indexOf(" "+Pt+" ")>-1){re=Kt;break}else Kt=Kt.parentNode;var Yt=0,Ct=0,et=0,tt=0,lt=0,rt=0,ht=0;if(re)Yt=re.offsetWidth,Ct=Math.max(jt?re.offsetWidth:0,re.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Yt=Math.min(window.innerWidth,document.documentElement.clientWidth),Ct=Math.min(window.innerHeight,document.documentElement.clientHeight),et=Yt):(Yt=window.innerWidth,Ct=window.innerHeight,et=window.innerWidth),ee){var dt=ee.getBoundingClientRect();dt.left>0&&dt.left<=Yt&&(qt===void 0||!qt)&&(document.dir==="rtl"?(lt=Yt-dt.width-dt.left,rt=et<=480?10:30):(rt=dt.left,lt=et<=480?10:30),tt=rt+lt)}if(ee&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var St=ee.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(tt=40,ht=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(tt=0,ht=40)}}return ee&&((Nt===void 0||!Nt)&&Zt>0&&Zt+tt<Yt?Yt=Zt:Yt-=tt,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Nt===void 0||!Nt)&&(Ct-=ht)),{width:Yt,height:Ct}}function Mt(ee,Zt,Nt,jt,qt){if(ee.isScreenshoGenerator)return 1;var Pt=jt!==void 0&&jt,re=ee.noScaleMargin!=null&&ee.noScaleMargin,Kt=function(St){return St&&St!=="false"},Yt=Kt(ee.autoHeight),Ct=bt(Zt,ee.width,Nt,Yt,Pt&&window.GGBT_wsf_view||re,qt),et=parseInt(Ct.width),tt=ee.width,lt=ee.height;if(tt===void 0){var rt=Zt.querySelector(".appletParameters");rt&&(tt=rt.offsetWidth,lt=rt.offsetHeight)}var ht=et/tt,dt=Pt?1:Ct.height/lt;return Nt!==void 0&&!Nt&&(ht=Math.min(1,ht),dt=Math.min(1,dt)),Math.min(ht,dt)}function ce(ee,Zt,Nt){var jt=1,qt,Pt=!1;if(ee.hasOwnProperty("allowUpscale")&&(Pt=ee.allowUpscale),ee.hasOwnProperty("scale")&&(jt=parseFloat(ee.scale),(isNaN(jt)||jt===null||jt===0)&&(jt=1),jt>1&&(Pt=!0)),Zt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Pt=!0),!(ee.hasOwnProperty("disableAutoScale")&&ee.disableAutoScale))qt=Mt(ee,Zt,Pt,Nt,ee.scaleContainerClass);else return jt;return Pt&&(!ee.hasOwnProperty("scale")||jt===1)?qt:Math.min(jt,qt)}function ie(ee){var Zt=Math.min(window.innerWidth,document.documentElement.clientWidth),Nt=Math.min(window.innerHeight,document.documentElement.clientHeight),jt=ee.getBoundingClientRect(),qt=(Zt-jt.width)/2,Pt=(Nt-jt.height)/2;Pt<0&&(Pt=0),ee.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(qt<40?ee.style.left="40px":ee.style.left=qt+"px",ee.style.top=Pt+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Pt<40?ee.style.top="40px":ee.style.top=Pt+"px",ee.style.left=qt+"px")}function Ie(ee,Zt){var Nt=ee.querySelector(".appletParameters");if(Nt){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Zt.id!==Nt.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ee)}if(Nt.parentElement&&/fullscreen/.test(Nt.parentElement.className))return;var jt=ce(Zt,ee);hi()&&Nt.setAttribute("data-param-scale",jt);for(var qt=null,Pt=0;Pt<ee.childNodes.length;Pt++)if(ee.childNodes[Pt].className!==void 0&&ee.childNodes[Pt].className.match(/^applet_scaler/)){qt=ee.childNodes[Pt];break}if(qt!==null&&qt.querySelector(".noscale")!==null)return;var re=Zt.id!==void 0?Zt.id:"ggbApplet",Kt=window[re];(Kt==null||!Kt.recalculateEnvironments)&&qt!==null&&!qt.className.match(/fullscreen/)&&(qt.parentNode.style.transform="",!isNaN(jt)&&jt!==1?(qt.parentNode.style.width=Zt.width*jt+"px",qt.parentNode.style.height=Zt.height*jt+"px",Cn(qt,jt)):(Cn(qt,1),qt.parentNode.style.width=Zt.width+"px",qt.parentNode.style.height=Zt.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&ie(ee),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Nt).parents(".content-added-content"))}}return{responsiveResize:Ie,isFlexibleWorksheetEditor:hi,positionCenter:ie,getScale:ce,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 hi=n.location.search;return hi.indexOf(J)!=-1||hi.indexOf(K)!=-1}function q(hi,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(hi){var Cn=s[L].bindings;s[L].bindings=function(){for(var bt=Cn?Cn():{},Mt=hi[webModule.__softPermutationId],ce=O;ce<Mt.length;ce++){var ie=Mt[ce];bt[ie[O]]=ie[P]}return bt}};var t;function u(){return v(),t}function v(){if(!t){var hi=o.createElement(Q);if(hi.id=L,hi.style.cssText=R+S,hi.tabIndex=-1,o.body.appendChild(hi),t=hi.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Cn=document.compatMode==U?V:W;t.write(Cn+X),t.close()}}}function w(hi){function Cn(Mt){function ce(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var ie=ce();if(ie){Mt();return}function Ie(){if(!ie){if(!ce())return;ie=!0,Mt(),o.removeEventListener&&o.removeEventListener(Z,Ie,!1),ee&&clearInterval(ee)}}o.addEventListener&&o.addEventListener(Z,Ie,!1);var ee=setInterval(function(){Ie()},$)}function bt(Mt){var ce=u(),ie=ce.body,Ie=ce.createElement(_);Ie.language=ab,Ie.crossOrigin=W,Ie.src=Mt,webModule.__errFn&&(Ie.onerror=function(){webModule.__errFn(L,new Error(bb+Mt))}),ie.appendChild(Ie)}Cn(function(){bt(hi)})}webModule.__startLoadingFragment=function(hi){return C(hi)},webModule.__installRunAsyncCode=function(hi){var Cn=u(),bt=Cn.body,Mt=Cn.createElement(_);Mt.language=ab,Mt.text=hi,bt.appendChild(Mt),bt.removeChild(Mt)};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(hi){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(hi){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(hi){var Cn=c[hi];return Cn==null?null:Cn},r=d,webModule.__errFn=e}function B(){function hi(ee){var Zt=ee.lastIndexOf(rb);Zt==-1&&(Zt=ee.length);var Nt=ee.indexOf(sb);Nt==-1&&(Nt=ee.length);var jt=ee.lastIndexOf(tb,Math.min(Nt,Zt));return jt>=O?ee.substring(O,jt+P):W}function Cn(ee){if(!ee.match(/^\w+:\/\//)){var Zt=o.createElement(ub);Zt.src=ee+vb,ee=hi(Zt.src)}return ee}function bt(){var ee=__gwt_getMetaProperty(wb);return ee!=null?ee:W}function Mt(){for(var ee=o.getElementsByTagName(_),Zt=O;Zt<ee.length;++Zt)if(ee[Zt].src.indexOf(xb)!=-1)return hi(ee[Zt].src);return W}function ce(){var ee=o.getElementsByTagName(yb);return ee.length>O?ee[ee.length-P].href:W}function ie(){var ee=o.location;return ee.href==ee.protocol+zb+ee.host+ee.pathname+ee.search+ee.hash}var Ie=bt();return Ie==W&&(Ie=Mt()),Ie==W&&(Ie=ce()),Ie==W&&ie()&&(Ie=hi(o.location.href)),Ie=Cn(Ie),Ie}function C(hi){return hi.match(/^\//)||hi.match(/^[a-zA-Z]+:\/\//)?hi:webModule.__moduleBase+hi}function D(){var hi=[],Cn=O,bt=[],Mt=[];function ce(ee){var Zt=Mt[ee](),Nt=bt[ee];if(Zt in Nt)return Zt;var jt=[];for(var qt in Nt)jt[Nt[qt]]=qt;throw r&&r(ee,jt,Zt),null}if(__gwt_isKnownPropertyValue=function(ee,Zt){return Zt in bt[ee]},webModule.__getPropMap=function(){var ee={};for(var Zt in bt)bt.hasOwnProperty(Zt)&&(ee[Zt]=ce(Zt));return ee},webModule.__computePropValue=ce,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ie;try{ie=Cb;var Ie=ie.indexOf(Db);Ie!=-1&&(Cn=parseInt(ie.substring(Ie+P),$),ie=ie.substring(O,Ie))}catch(ee){}return webModule.__softPermutationId=Cn,C(ie+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},77903:function(hi,Cn,bt){"use strict";bt.d(Cn,{Ax:function(){return Ie},Ds:function(){return ee},KI:function(){return Nt},SI:function(){return ie},f1:function(){return ce}});var Mt=bt(3294);function ce(jt){let qt=!0;if(jt.length>0){for(let Pt=0;Pt<jt.length;Pt++)if(jt[Pt].compile_success==0||!jt[Pt].compile_success){qt=!1;break}}else qt=!1;return qt}function ie(jt,qt=""){let Pt=[];for(let re=0;re<jt.length;re++){let Kt=jt[re],Yt=qt?`${qt}/${Kt.name}`:`${Kt.name}`;Pt.push({title:Kt.name,type:Kt.type,isLeaf:Kt.type!=="tree",key:Yt})}return Pt}function Ie(jt,qt,Pt){for(let re=0;re<jt.length;re++){let Kt=jt[re];if(Kt.key===qt){Kt.children=Pt;break}Kt.children&&Ie(Kt.children,qt,Pt)}return jt}function ee(jt,qt,Pt){let re;return function(){let Kt=this,Yt=arguments,Ct=function(){re=null,Pt||jt.apply(Kt,Yt)},et=Pt&&!re;clearTimeout(re),re=setTimeout(Ct,qt),et&&jt.apply(Kt,Yt)}}const Zt=!0,Nt=Mt.Z.API_SERVER},41069:function(hi,Cn,bt){"use strict";bt.d(Cn,{ij:function(){return ht},_s:function(){return rt},Uf:function(){return lt},ZP:function(){return St}});var Mt=bt(59301),ce={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"},ie=bt(92310),Ie=bt.n(ie),ee=bt(42441),Zt=bt(6848),Nt=bt(61621),jt=bt(71418),qt=bt(8797),Pt=bt(3294),re=Object.defineProperty,Kt=Object.getOwnPropertySymbols,Yt=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,et=(It,_t,Gt)=>_t in It?re(It,_t,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):It[_t]=Gt,tt=(It,_t)=>{for(var Gt in _t||(_t={}))Yt.call(_t,Gt)&&et(It,Gt,_t[Gt]);if(Kt)for(var Gt of Kt(_t))Ct.call(_t,Gt)&&et(It,Gt,_t[Gt]);return It};const lt=(It={})=>{var _t,Gt,oe,ue;let de=(_t=It==null?void 0:It.emotion)==null?void 0:_t.map(Wt=>tt({value:Wt==null?void 0:Wt.rate},Wt)),be=(Gt=It==null?void 0:It.focus)==null?void 0:Gt.map(Wt=>tt({value:Wt==null?void 0:Wt.rate},Wt)),Jt=(oe=It==null?void 0:It.action)==null?void 0:oe.map(Wt=>tt({value:Wt==null?void 0:Wt.rate},Wt)),Ke=(ue=It==null?void 0:It.intention)==null?void 0:ue.map(Wt=>tt({value:Wt==null?void 0:Wt.rate},Wt));return[{title:"\u8868\u60C5\u5360\u6BD4",color:["#f7ca2e","#4ccf71","#3791ee","#f9ac95","#4f74ee","#f0e999"],data:de||[]},{title:"\u4E13\u6CE8\u5EA6\u5360\u6BD4",color:["#4f74ee","#f9ac95","#9cb5fe","#eaa170","#3791ee","#a39bed"],data:be||[]},{title:"\u884C\u4E3A\u5360\u6BD4\u60C5\u51B5",color:["#5eca9c","#a39bed","#f68238","#f0e999","#eaa170","#f9ac95"],data:Jt||[]},{title:"\u610F\u56FE\u5360\u6BD4\u60C5\u51B5",color:["#eaa170","#739fcb","#f0e999","#f9ac95","#4f74ee","#5eca9c"],data:Ke||[]}]},rt=({className:It,dataSource:_t=[],col:Gt=4,right:oe,bottom:ue=23,precision:de=0,wrapWidth:be=1200})=>{const Jt=(Wt="",Ge,He="--")=>Wt?(Wt==null?void 0:Wt.length)>Ge?(Wt==null?void 0:Wt.slice(0,Ge-1))+"...":Wt:He,Ke=Math.floor((be-(Gt-1)*oe)/Gt);return Mt.createElement("div",{className:Ie()(ce.list,It)},!!(_t!=null&&_t.length)&&(_t==null?void 0:_t.map((Wt,Ge)=>{const{cover_pic:He,created_at:Me,emotion:We,action:_e,intention:ve,focus:ne}=Wt;return Mt.createElement("div",{key:Ge,className:ce.wrap,style:{width:Ke,marginRight:(1+Ge)%Gt===0?0:oe+de,marginBottom:ue}},Mt.createElement("div",{className:ce.img},Mt.createElement("img",{src:`${Pt.Z.API_SERVER}${He}`}),Mt.createElement("div",{className:ce.tips},Mt.createElement("div",null,Mt.createElement("i",{className:"iconfont icon-paisheshijian mr5 font14"})," \u62CD\u6444\u65F6\u95F4"),Mt.createElement("span",null,Me))),Mt.createElement("div",{className:ce.footer},Mt.createElement("ul",null,Mt.createElement("li",null,Mt.createElement("i",{className:"iconfont icon-biaoqing"}),Mt.createElement("span",null,"\u8868\u60C5\uFF1A",Mt.createElement(Zt.Z,{title:We},Mt.createElement("span",{className:"c-grey-333"},Jt(We,4))))),Mt.createElement("li",null,Mt.createElement("i",{className:"iconfont icon-hangwei"}),Mt.createElement("span",null,"\u884C\u4E3A\uFF1A",Mt.createElement(Zt.Z,{title:_e},Mt.createElement("span",{className:"c-grey-333"},Jt(_e,4)))))),Mt.createElement("ul",null,Mt.createElement("li",null,Mt.createElement("i",{className:"iconfont icon-yitu"}),Mt.createElement("span",null,"\u610F\u56FE\uFF1A",Mt.createElement(Zt.Z,{title:ve},Mt.createElement("span",{className:"c-grey-333"},Jt(ve,4))))),Mt.createElement("li",null,Mt.createElement("i",{className:"iconfont icon-zhuangtai"}),Mt.createElement("span",null,"\u4E13\u6CE8\u5EA6\uFF1A",Mt.createElement(Zt.Z,{title:ne},Mt.createElement("span",{className:"c-grey-333"},Jt(ne,3))))))))})))},ht=({className:It,style:_t,title:Gt,hideBar:oe=!1,children:ue,customText:de="",noDataText:be="",emptyData:Jt=[],loading:Ke,actionAnalysis:Wt})=>{var Ge,He;const Me=((Ge=Jt==null?void 0:Jt[0])==null?void 0:Ge.every(_e=>{var ve;return!((ve=_e==null?void 0:_e.data)!=null&&ve.length)}))&&!((He=Jt==null?void 0:Jt[1])!=null&&He.length)||!Wt,We=Wt?be:de;return Mt.createElement(Nt.Z,{loading:Ke,active:!0},Me&&Mt.createElement("div",{className:Ie()(ce.noData,It),style:_t},!!Gt&&Mt.createElement("div",{className:ce.title},!oe&&Mt.createElement("b",null),Mt.createElement("span",null,Gt)),Mt.createElement("div",{className:ce.itemWrap},Mt.createElement(qt.Z,{customText:We}))),!Me&&ue)};var St=({className:It,style:_t,data:Gt=[],title:oe,hideBar:ue=!1,loading:de=!1})=>Mt.createElement("div",{className:Ie()(ce.analysis,It),style:_t},!!oe&&Mt.createElement("div",{className:ce.title},!ue&&Mt.createElement("b",null),Mt.createElement("span",null,oe)),Mt.createElement(jt.Z,{spinning:de},Mt.createElement("div",{className:ce.itemWrap},Gt==null?void 0:Gt.map((be,Jt)=>Mt.createElement("div",{className:ce.item,key:Jt},Mt.createElement(ee.Z,{option:{tooltip:{trigger:"item",formatter:"{a} <br/>{b}: {c}%"},title:{left:"center",bottom:15,text:be==null?void 0:be.title},legend:{top:10,right:10,orient:"vertical",show:!0,align:"left",icon:"circle",itemWidth:10,itemHeight:10,formatter:function(Ke){for(let Wt in be==null?void 0:be.data)if(Ke==(be==null?void 0:be.data[Wt].name))return Ke+" "+(be==null?void 0:be.data[Wt].value)+"%"},textStyle:{color:"#767676",fontSize:12}},color:be==null?void 0:be.color,series:[{type:"pie",radius:["20%","35%"],center:["20%","40%"],avoidLabelOverlap:!1,label:{show:!1},labelLine:{show:!1},data:be==null?void 0:be.data}]},style:{height:145}}))))))},73524:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return re}});var Mt=bt(59301),ce={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},ie=bt(92310),Ie=bt.n(ie),ee=bt(71418),Zt=bt(2859),Nt=bt(99064),jt=bt(955),qt=(Kt,Yt,Ct)=>new Promise((et,tt)=>{var lt=dt=>{try{ht(Ct.next(dt))}catch(St){tt(St)}},rt=dt=>{try{ht(Ct.throw(dt))}catch(St){tt(St)}},ht=dt=>dt.done?et(dt.value):Promise.resolve(dt.value).then(lt,rt);ht((Ct=Ct.apply(Kt,Yt)).next())}),re=({data:Kt,className:Yt,fullWidth:Ct,style:et={},onClose:tt,onOk:lt,showFullTools:rt,noAssociationId:ht})=>{const dt=(0,Mt.useRef)(null),St=(0,Mt.useRef)(null),It=(0,Mt.useRef)(null),_t=(0,Mt.useRef)(null),[Gt,oe]=(0,Mt.useState)(!1),[ue,de]=(0,Mt.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,Mt.useEffect)(()=>(It.current||(It.current=document.createElement("style"),document.head.appendChild(It.current)),Kt!=null&&Kt.visible?(document.body.setAttribute("data-custom","y-hidden"),It.current.innerHTML=" html { overflow-y: hidden; }",Kt!=null&&Kt.src&&be()):(document.body.removeAttribute("data-custom"),It.current&&(document.head.removeChild(It.current),It.current=null)),()=>{document.body.removeAttribute("data-custom"),It.current&&(document.head.removeChild(It.current),It.current=null)}),[Kt==null?void 0:Kt.visible]);const be=()=>qt(void 0,null,function*(){oe(!0),de("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ge=yield(0,jt.ZJ)(Kt==null?void 0:Kt.src);dt.current.src="",dt.current.src=Ge,dt.current.onload=function(){Wt()},oe(!1),de("")}),Jt=Ge=>qt(void 0,null,function*(){oe(!0),de("\u6B63\u5728\u4FDD\u5B58\u4E2D");const He=yield(0,Nt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Kt.title,file:Ge.dataUrl}});He!=null&&He.id&&!ht?(yield(0,Nt.ZP)(`/api/attachments/${Kt.id}/add_subitem.json`,{method:"post",body:{subitem_id:He==null?void 0:He.id,settings:JSON.stringify(Ge.state)}})).status===0&<():He!=null&&He.id&<(He),oe(!1),de("")}),Ke=()=>{const Ge=document.querySelector('a[href="https://markerjs.com/"]');Ge&&Ge.parentNode&&(Ge.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(Me=>{const We=document.querySelector(Me.name);We&&We.setAttribute("title",Me.title)})},Wt=()=>{St.current=new Zt.hP(dt.current),St.current.targetRoot=_t.current,St.current.addEventListener("render",Jt),St.current.addEventListener("beforeclose",tt),rt&&(St.current.availableMarkerTypes=St.current.ALL_MARKER_TYPES,St.current.uiStyleSettings.redoButtonVisible=!0,St.current.uiStyleSettings.notesButtonVisible=!0,St.current.uiStyleSettings.zoomButtonVisible=!0,St.current.uiStyleSettings.zoomOutButtonVisible=!0,St.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=St.current.uiStyleSettings,St.current.show(),Kt!=null&&Kt.snapshotData&&St.current.restoreState(Kt.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ke()},300)};return Mt.createElement(Mt.Fragment,null,(Kt==null?void 0:Kt.visible)&&Mt.createElement(ee.Z,{spinning:Gt,tip:ue,style:{position:"absolute",width:"100vw"}},Mt.createElement("div",{ref:_t,className:Ie()(ce.imageDimensions,Yt,Ct?ce.fullWidth:""),style:et},Mt.createElement("img",{className:ce.img,ref:dt}))))}},41588:function(hi,Cn,bt){"use strict";var Mt=bt(59301),ce=bt(95237),ie=bt(43604),Ie=bt(99313),ee=bt(3113),Zt=bt(85149),Nt=bt(88010),jt=bt(48136),qt=bt(59301);const Pt=(0,Mt.forwardRef)(({callback:re,showSaveButton:Kt,value:Yt=""},Ct)=>{const et=(0,Mt.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=St=>{et.current.setValue(et.current.getValue()+" "+St.value+" ")},ht=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:qt.createElement(ce.Z,{className:Nt.Z.lists,gutter:[10,10]},tt.map((St,It)=>qt.createElement(ie.Z,{flex:"110px",className:Nt.Z.item},qt.createElement("div",null,qt.createElement(Zt.Z,{value:`$$${St.value}$$`}),St.name),qt.createElement("div",{className:Nt.Z.children},St.children.map((_t,Gt)=>qt.createElement("div",{key:Gt},qt.createElement("h1",null,_t.name),qt.createElement(ce.Z,{gutter:[10,10]},_t.data.map((oe,ue)=>qt.createElement(ie.Z,{key:ue,onClick:()=>rt(oe),className:Nt.Z.diamond},qt.createElement(Zt.Z,{value:"`$$"+oe.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:qt.createElement(ce.Z,{className:Nt.Z.lists,gutter:[10,10]},lt.map((St,It)=>qt.createElement(ie.Z,{flex:"110px",className:Nt.Z.item},qt.createElement("div",null,qt.createElement(Zt.Z,{value:"`$$"+St.value+"$$`"}),St.name),qt.createElement("div",{className:Nt.Z.children},St.children.map((_t,Gt)=>qt.createElement("div",{key:Gt},_t.name&&qt.createElement("h1",null,_t.name),qt.createElement(ce.Z,{gutter:[10,10]},_t.data.map((oe,ue)=>qt.createElement(ie.Z,{key:ue,onClick:()=>rt(oe),className:Nt.Z.diamond},qt.createElement(Zt.Z,{value:"`$$"+oe.value+"$$`"}))))))))))}],dt=()=>{var St=document.createElement("div");St.innerHTML=et.current.getValue();var It=St.innerText;return re&&re(It),It};return(0,Mt.useImperativeHandle)(Ct,()=>({getData:dt})),qt.createElement("div",{className:Nt.Z.mathWrap},qt.createElement(Ie.default,{defaultActiveKey:"1",items:ht}),qt.createElement("math-field",{locale:"zh_cn",className:Nt.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:et,style:{width:800,marginTop:30,fontSize:18}},Yt||""),Kt&&qt.createElement("div",{className:Nt.Z.button},qt.createElement(ee.ZP,{size:"large",onClick:dt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Cn.Z=Pt},8797:function(hi,Cn,bt){"use strict";var Mt=bt(59301),ce=bt(93314),ie=bt(3113),Ie=Object.defineProperty,ee=Object.defineProperties,Zt=Object.getOwnPropertyDescriptors,Nt=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable,Pt=(Ct,et,tt)=>et in Ct?Ie(Ct,et,{enumerable:!0,configurable:!0,writable:!0,value:tt}):Ct[et]=tt,re=(Ct,et)=>{for(var tt in et||(et={}))jt.call(et,tt)&&Pt(Ct,tt,et[tt]);if(Nt)for(var tt of Nt(et))qt.call(et,tt)&&Pt(Ct,tt,et[tt]);return Ct},Kt=(Ct,et)=>ee(Ct,Zt(et));const Yt=({img:Ct,buttonProps:et={},styles:tt={},customText:lt,ButtonText:rt,ButtonClick:ht,Buttonclass:dt,ButtonTwo:St,imgStyles:It,loading:_t=!1})=>Mt.createElement("section",{className:"tc animated fadeIn",style:re(re({},{color:"#999",margin:"100px auto",visibility:_t?"hidden":"visible"}),tt)},Mt.createElement("img",{src:Ct||ce,style:Kt(re({},It),{pointerEvents:"none",userSelect:"none"})}),Mt.createElement("p",{className:"mt20 font14"},lt||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),rt&&Mt.createElement(ie.ZP,re({className:dt,onClick:ht},et),rt),St&&St);Cn.Z=Yt},23210:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return dt}});var Mt=bt(59301),ce={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},ie=bt(3113),Ie=bt(70557),ee=bt(23954),Zt=bt(6848),Nt=bt(955),jt=bt(94941),qt=bt(8797),Pt=bt(3294),re=bt(19381),Kt=bt(59301),Yt=Object.defineProperty,Ct=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,lt=(St,It,_t)=>It in St?Yt(St,It,{enumerable:!0,configurable:!0,writable:!0,value:_t}):St[It]=_t,rt=(St,It)=>{for(var _t in It||(It={}))et.call(It,_t)&<(St,_t,It[_t]);if(Ct)for(var _t of Ct(It))tt.call(It,_t)&<(St,_t,It[_t]);return St},ht=(St,It,_t)=>new Promise((Gt,oe)=>{var ue=Jt=>{try{be(_t.next(Jt))}catch(Ke){oe(Ke)}},de=Jt=>{try{be(_t.throw(Jt))}catch(Ke){oe(Ke)}},be=Jt=>Jt.done?Gt(Jt.value):Promise.resolve(Jt.value).then(ue,de);be((_t=_t.apply(St,It)).next())}),dt=({editOffice:St="view",data:It,theme:_t,type:Gt,filename:oe,monacoEditor:ue,className:de,style:be,close:Jt,onClose:Ke,hasMask:Wt,disabledDownload:Ge,onImgDimensions:He,showNodata:Me,recordInfo:We})=>{const[_e,ve]=(0,Mt.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[ne,Se]=(0,Mt.useState)(""),[Pn,Mn]=(0,Mt.useState)(),Xe=window.ENV==="build"?"/react/build":"",Nn=location.host.startsWith("localhost")?Pt.Z.PROXY_SERVER:Pt.Z.API_SERVER,fi=10*(1024*1024),zn=(0,Mt.useRef)();It!=null&&It.startsWith("/api")&&Gt!=="txt"&&(It=Pt.Z.API_SERVER+It);const Si=Lt=>Lt.substring(Lt.lastIndexOf("/")+1).split(".").pop();oe&&ue&&(ue.filename=oe),(0,Mt.useEffect)(()=>{var Lt,Ot;const mt=(Ot=(Lt=document.cookie)==null?void 0:Lt.replace(/\s/g,""))==null?void 0:Ot.split(";");mt==null||mt.map(ft=>{let pt=ft.split("=");pt[0]==="_educoder_session"&&Se(pt[1])})},[]),(0,Mt.useEffect)(()=>{Gt==="office"&&(It.indexOf("bigfilescdn.")>-1||It.indexOf("bigfiles1")>-1?Mn({url:It,fileType:Si(It),model:It.indexOf("model=edit")?"edit":"view"}):nn())},[Gt,It]);const nn=()=>ht(void 0,null,function*(){console.log("data:",It);let Lt=It;It.startsWith("http")||(Lt=location.origin+Lt);let Ot=new URL(Lt).pathname.split("/").pop();const mt=yield(0,jt.gJ)({attachment_id:Ot});mt.url=Nn+mt.url,Mn(mt)}),Fi=()=>{if(It.startsWith("http")||It.startsWith("blob:")){Ti();return}(0,Nt.Sv)(oe||"educoder",It,oe)},Ti=()=>{We&&(0,re.fc)({id:We==null?void 0:We.id,watch_type:1,course_id:We==null?void 0:We.course_id}),(0,Nt.Nd)(oe||"educoder",decodeURIComponent(It))};return Kt.createElement("div",{style:rt({},be||{}),className:`${Wt&&ce.bgBlack} ${Gt?ce.wrp:"hide"}`},Jt&&Kt.createElement("div",{className:ce.close,ref:zn},!!He&&Kt.createElement(Zt.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>zn.current},Kt.createElement("span",{onClick:()=>{Ke(),He()}},Kt.createElement("i",{className:"icon-yulanpizhu"}))),!Ge&&Kt.createElement(Zt.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>zn.current},Kt.createElement("span",{onClick:Ti},Kt.createElement("i",{className:"icon-quxiaozhiding"}))),Kt.createElement(Zt.Z,{title:"\u5173\u95ED",getPopupContainer:()=>zn.current},Kt.createElement("span",{className:"",onClick:Ke},Kt.createElement("i",{className:"icon-guanbi1"})))),Kt.createElement("div",{className:`${ce[de]} ${de} ${ce.monaco} ${Gt==="txt"?"show":"hide"}`},Gt==="txt"&&Kt.createElement(Kt.Fragment,null,Kt.createElement(ee.ZP,rt({},ue)))),Gt==="audio"&&Kt.createElement("audio",{src:`${(It==null?void 0:It.indexOf("http://"))>-1||(It==null?void 0:It.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${It}`,autoPlay:!0}),Gt==="video"&&Kt.createElement(Kt.Fragment,null,(It==null?void 0:It.indexOf("http"))>-1?Kt.createElement("video",{controls:!0,src:`${It}`,autoPlay:!0}):Kt.createElement("video",{controls:!0,src:`data:video/mp4;base64,${It}`,autoPlay:!0})),Gt==="office"&&Pn&&Kt.createElement("iframe",{src:`${Xe}/office.html?key=${Pn.key}&url=${btoa(Pn.url)}&callbackUrl=${Nn+(Pn.callbackUrl||"")}&fileType=${Pn.fileType}&title=${Pn.title||""}&model=${St}&officeServer=${Pt.Z.ONLYOFFICE}&disabledDownload=${!!Ge}`}),Gt==="html"&&Kt.createElement("iframe",{src:It+"&disposition=inline"}),Gt==="pdf"&&Kt.createElement("iframe",{src:`${Xe}/js/pdfview/index.html?filename=${oe||"educoder.pdf"}&url=${encodeURIComponent(It)}&disabledDownload=${!!Ge}`}),Gt==="image"&&Kt.createElement("img",{src:`${(It==null?void 0:It.indexOf("http://"))>-1||(It==null?void 0:It.indexOf("https://"))>-1?"":"data:image/png;base64,"}${It}`}),(Gt==="other"||Gt==="download")&&Kt.createElement(Kt.Fragment,null,Me?Kt.createElement(qt.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Kt.createElement(ie.ZP,{icon:Kt.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Fi,disabled:Ge},"\u4E0B\u8F7D")}):Kt.createElement(ie.ZP,{type:"primary",size:"middle",onClick:Fi,disabled:Ge},Kt.createElement(Ie.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(hi,Cn,bt){"use strict";bt.d(Cn,{z:function(){return Gt},Z:function(){return oe}});var Mt=bt(59301),ce=bt(50304),ie=bt(24768),Ie=bt(64018),ee=bt(40846),Zt=bt(3294),Nt=bt(955),jt=bt(15342),qt=bt(1012),Pt=bt(23210),re=bt(59301),Yt=({html:ue})=>{const de=(0,Mt.useRef)(null),be=(0,Mt.useRef)(null),Jt=`.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,Mt.useEffect)(()=>{const Ke=de.current.attachShadow({mode:"open"});be.current=document.createElement("div"),be.current.className="markdown-body",be.current.innerHTML=ue,Ke.appendChild(be.current);const Wt=document.createElement("style");return Wt.textContent=Jt,Ke.appendChild(Wt),()=>{Ke.innerHTML=""}},[]),(0,Mt.useEffect)(()=>{be.current&&(be.current.innerHTML=ue)},[ue]),re.createElement("div",{ref:de})},Ct=Object.defineProperty,et=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,rt=(ue,de,be)=>de in ue?Ct(ue,de,{enumerable:!0,configurable:!0,writable:!0,value:be}):ue[de]=be,ht=(ue,de)=>{for(var be in de||(de={}))tt.call(de,be)&&rt(ue,be,de[be]);if(et)for(var be of et(de))lt.call(de,be)&&rt(ue,be,de[be]);return ue};const dt="@\u2581\u2581@",St="@\u2581@",It=/<pre[^>]*>/g;function _t(ue){let de=document.createElement("div");return de.innerHTML=ue,de.childNodes.length===0?"":de.childNodes[0].nodeValue}const Gt=(ue,de)=>{ue=ue||"";const be=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Jt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ke=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Wt=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return de?ue.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(be,(Ge,He,Me,We,_e,ve,ne)=>{const Se=He||We||ve,Pn=Me||_e||ne||"?";return Zt.Z.API_SERVER+"/api/attachments/"+Se+Pn+"&t="+(0,Nt.Jn)(Se,Date.now())+(Ge.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(ue=ue.replace(Wt,(Ge,He,Me,We,_e,ve,ne)=>{const Se=He||We||ve,Pn=Me||_e||ne||"?";return Zt.Z.API_SERVER+"/attachments/download/"+Se+Pn+"&t="+(0,Nt.Jn)(Se,Date.now())+(Ge.indexOf(")")>-1?")":"&")}).replace(be,(Ge,He,Me,We,_e,ve,ne)=>{const Se=He||We||ve,Pn=Me||_e||ne||"?";return Zt.Z.API_SERVER+"/api/attachments/"+Se+Pn+"&t="+(0,Nt.Jn)(Se,Date.now())+(Ge.indexOf(")")>-1?")":"&")}).replace(Jt,(Ge,He,Me,We,_e)=>{const ve=He||We,ne=Me||_e||"";return'"'+Zt.Z.API_SERVER+"/api/attachments/"+ve+ne+ve+ne+"&t="+(0,Nt.Jn)(ve,Date.now())}).replace(Ke,(Ge,He,Me,We,_e)=>{const ve=He||We,ne=Me||_e||"";return"("+Zt.Z.API_SERVER+"/files/uploads/"+ve+ne+ve+ne+"&t="+(0,Nt.Jn)(ve,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,`
|
|
|
`),ue)};var oe=({value:ue="",className:de,showTextOnly:be,showLines:Jt,style:Ke={},stylesPrev:Wt={},highlightKeywords:Ge,showProgramFill:He,isProgramFill:Me,disabledFill:We=!1,programFillValue:_e,onFillChange:ve=Pn=>{},onFillBlur:ne=()=>{},onFillFocus:Se=()=>{}})=>{let Pn=String(ue);const[Mn,Xe]=(0,Mt.useState)(""),[Nn,Zn]=(0,Mt.useState)("office"),[fi,zn]=(0,Mt.useState)([]),Si=(0,Mt.useRef)("a"+(0,qt.Z)()),nn={},Fi=(Re,Oe,ke)=>{const rn=document.createElement(Re===St?"input":"textarea");rn.style.width="100%",rn.style.height=Re===St?"40px":"151px",rn.rows=5,rn.spellcheck=!1,rn.name="edu-program-fill",rn.placeholder="\u8BF7\u8F93\u5165",rn.dataset.id=Oe;const Vn=Object.keys(nn).length;return nn[Vn]=rn,`<span class="edu-program-fill-wrap ${Re===St?"":"show"}" style="width:${Re===St?"400px":"100%"}" title=${ke||""}><span>${rn.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Ti(Re){return Re=Re.replace(/!\[.*?\]\(.*?\)/g,""),Re=Re.replace(/\[.*?\]\(.*?\)/g,""),Re=Re.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Re=Re.replace(/<embed.*?>/g,""),Re=Re.replace(/<img.*?>/g,""),Re=Re.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Re=Re.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Re=Re.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Re=Re.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Re}const Lt=Re=>Re.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Oe,ke){let rn=ke.replace(/(\n|\r)/g,"").split("}"),Vn=[];return rn.map(sn=>{sn!=""&&Vn.push(`.${Si.current} ${sn}`)}),`<style>${Vn.join("}")}</style>`}),Ot=(0,Mt.useMemo)(()=>{try{const rn=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Vn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,sn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,An=/\(\/attachments\/download\//g;Pn=Pn.replace(An,"("+Zt.Z.API_SERVER+"/attachments/download/").replace(rn,"("+Zt.Z.API_SERVER+"/api/attachments/").replace(Vn,'"'+Zt.Z.API_SERVER+"/api/attachments/").replace(sn,'"'+Zt.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(rn){}if(He){let rn=-1;return Pn=Pn.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Vn,sn,An){var Bn;return++rn,Fi(Vn,rn,(Bn=_e==null?void 0:_e[rn])==null?void 0:Bn.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${Lt(Pn||"")}</pre>`}let Re=Lt(Pn);Re=(0,ie.ZP)(Re);const Oe=(0,ie.ez)();Pn.match(/\[TOC\]/)&&(Re=Re.replace("<p>[TOC]</p>",(0,ie.Qv)()),(0,ie.Iy)()),Re=Re.replace(/(__special_katext_id_\d+__)/g,(rn,Vn)=>{const{type:sn,expression:An}=Oe[Vn];return(0,jt.renderToString)(_t(An)||"",{displayMode:sn==="block",throwOnError:!1,output:"html"})}),Re=Re.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ie.AL)();const ke=document.createElement("div");if(ke.innerHTML=Re,be)return ke.innerText;if(Ge){const rn=Ge.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return At(ke,rn),ke.innerHTML}return setTimeout(()=>ae(),500),ke.innerHTML},[Pn,Ge]);(0,Mt.useEffect)(()=>{le.current&&le.current.querySelectorAll(["input","textarea"]).forEach(Oe=>{Oe.oninput=mt,Oe.onblur=ft,Oe.onfocus=pt})},[fi]),(0,Mt.useEffect)(()=>{var Re,Oe,ke,rn,Vn;if(_e!=null&&_e.length)try{const sn=le.current.querySelectorAll(".edu-program-fill-score"),An=le.current.querySelectorAll('[name="edu-program-fill"]');for(const[Bn,ii]of An.entries())ii.value=((Re=_e==null?void 0:_e[Bn])==null?void 0:Re.value)||"",((Oe=_e==null?void 0:_e[Bn])==null?void 0:Oe.type)==="warning"?ii.className="program-fill-warning":((ke=_e==null?void 0:_e[Bn])==null?void 0:ke.type)==="success"?ii.className="program-fill-success":ii.className="";for(const[Bn,ii]of sn.entries())ii.innerHTML=(rn=_e==null?void 0:_e[Bn])!=null&&rn.score?`${(Vn=_e==null?void 0:_e[Bn])==null?void 0:Vn.score}\u5206`:"";zn(_e)}catch(sn){console.log(sn,"error")}},[_e]);const mt=Re=>{fi[Re.target.dataset.id]=fi[Re.target.dataset.id]||{},fi[Re.target.dataset.id].value=Re.target.value,zn([...fi]),ve(fi,Re.target.dataset.id)},ft=Re=>{fi[Re.target.dataset.id]=fi[Re.target.dataset.id]||{},fi[Re.target.dataset.id].value=Re.target.value,zn([...fi]),ne(fi,Re.target.dataset.id)},pt=Re=>{fi[Re.target.dataset.id]=fi[Re.target.dataset.id]||{},fi[Re.target.dataset.id].value=Re.target.value,zn([...fi]),Se(fi,Re.target.dataset.id)};function At(Re,Oe){return Re.childNodes.forEach(ke=>{var rn;if(ke.childNodes.length>0)At(ke,Oe);else if(ke.nodeName!=="IMG")if(ke.innerHTML)ke.innerHTML=(rn=ke.innerHTML)==null?void 0:rn.replace(new RegExp(Oe,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Vn=document.createElement("span");Vn.innerHTML=ke.textContent.replace(new RegExp(Oe,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),ke.replaceWith(Vn)}})}const le=(0,Mt.useRef)();ie.jb.WebkitLineClamp=Jt,Jt&&(Ke=ht(ht({},Ke),ie.jb));function we(Re){let Oe=Re.target;if(Oe.tagName.toUpperCase()==="A"){let ke=Oe.getAttribute("href");if(ke.indexOf("office")>-1)Re.preventDefault(),Xe(ke),Zn("office");else if(ke.indexOf("application/pdf")>-1)Re.preventDefault(),Xe(ke),Zn("pdf");else if(ke.indexOf("text/html")>-1)Re.preventDefault(),Xe(ke),Zn("html");else if(ke.startsWith("#")){Re.preventDefault();let rn=document.getElementById(ke.replace("#",""));rn&&rn.scrollIntoView(!0)}}}const ae=()=>{var Re;const Oe=(Re=le.current)==null?void 0:Re.querySelectorAll("video");Oe==null||Oe.forEach(ke=>{if(ke.oncontextmenu=()=>!1,ke.src.indexOf(".m3u8")>-1&&!ke.canPlayType("application/vnd.apple.mpegurl")){if(ee.ZP.isSupported()){var rn=new ee.ZP;rn.loadSource(ke.src),rn.attachMedia(ke)}}})};(0,Mt.useEffect)(()=>{if(le.current&&Ot&&Ot.match(It)&&window.PR.prettyPrint(),le.current)return le.current.addEventListener("click",we),()=>{var Re;(Re=le.current)==null||Re.removeEventListener("click",we),(0,ie.AL)(),(0,ie.Iy)()}},[Ot,le.current,we]),(0,Mt.useEffect)(()=>{var Re;const Oe=ke=>{ke.preventDefault(),ke.clipboardData.setData("text",window.getSelection().toString())};return(Re=le.current)==null||Re.addEventListener("copy",Oe),()=>{var ke;(ke=le.current)==null||ke.removeEventListener("copy",Oe)}},[le.current]);const me=Re=>/<style[\s\S]*?>/i.test(Re||"");return Mt.createElement(Mt.Fragment,null,be&&Mt.createElement("div",{ref:le},Ot),!be&&!me(Ot)&&Mt.createElement("div",{ref:le,style:ht({},Ke),className:`${de||""} ${We?"disabled-fill":""} markdown-body ${Si.current}`,dangerouslySetInnerHTML:{__html:Ot}}),!be&&me(Ot)&&Mt.createElement(Yt,{html:Ot}),Mt.createElement(Pt.Z,{close:!0,data:Mn,type:Mn!=null&&Mn.length?Nn:"",style:ht({},Wt),onClose:()=>Xe("")}))}},30917:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return Ke}});var Mt=bt(59301),ce=bt(89070),ie=bt(43418),Ie=bt(78241),ee=bt(8591),Zt=bt(71418),Nt=bt(17574),jt=bt(95237),qt=bt(43604),Pt=bt(6848),re=bt(92832),Kt={currentPrimary:"currentPrimary___NPWiR",currentDelete:"currentDelete___UEfhf",DirectoryTree:"DirectoryTree___xPxCY",EditDom:"EditDom___seNxC"},Yt=bt(83312),Ct=bt(24780),et=bt(8797),tt=bt(85057),lt=Object.defineProperty,rt=Object.defineProperties,ht=Object.getOwnPropertyDescriptors,dt=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,_t=(Wt,Ge,He)=>Ge in Wt?lt(Wt,Ge,{enumerable:!0,configurable:!0,writable:!0,value:He}):Wt[Ge]=He,Gt=(Wt,Ge)=>{for(var He in Ge||(Ge={}))St.call(Ge,He)&&_t(Wt,He,Ge[He]);if(dt)for(var He of dt(Ge))It.call(Ge,He)&&_t(Wt,He,Ge[He]);return Wt},oe=(Wt,Ge)=>rt(Wt,ht(Ge)),ue=(Wt,Ge)=>{var He={};for(var Me in Wt)St.call(Wt,Me)&&Ge.indexOf(Me)<0&&(He[Me]=Wt[Me]);if(Wt!=null&&dt)for(var Me of dt(Wt))Ge.indexOf(Me)<0&&It.call(Wt,Me)&&(He[Me]=Wt[Me]);return He},de=(Wt,Ge,He)=>new Promise((Me,We)=>{var _e=Se=>{try{ne(He.next(Se))}catch(Pn){We(Pn)}},ve=Se=>{try{ne(He.throw(Se))}catch(Pn){We(Pn)}},ne=Se=>Se.done?Me(Se.value):Promise.resolve(Se.value).then(_e,ve);ne((He=He.apply(Wt,Ge)).next())});const be=(Wt=[])=>Wt==null?void 0:Wt.map(Ge=>oe(Gt({},Ge),{title:(Ge==null?void 0:Ge.value)||"",key:Ge==null?void 0:Ge.id,isLeaf:!0})),Jt=Wt=>{var Ge=Wt,{user:He,children:Me,isShowComponent:We=!0,ModalProps:_e={},onDataSelect:ve}=Ge,ne=ue(Ge,["user","children","isShowComponent","ModalProps","onDataSelect"]);const[Se,Pn]=ie.default.useModal(),[Mn]=Ie.default.useForm(),[Xe,Nn]=(0,Mt.useState)([]),[Zn,fi]=(0,Mt.useState)(!1),[zn,Si]=(0,Mt.useState)(!1),[,nn,Fi,Ti]=(0,Yt.U)(Ct.qE,{page:1,limit:9999}),[,,Lt]=(0,Yt.U)(Ct.V8,{}),[,,Ot]=(0,Yt.U)(Ct.B$,{}),[,,mt]=(0,Yt.U)(Ct.DH,{}),[,,ft]=(0,Yt.U)(Ct.bJ,{}),pt=()=>{fi(!1),Mn.resetFields(),Si(!1)},At=we=>de(void 0,null,function*(){const{node:ae,dragNode:me,event:Re}=we,Oe=we.node.pos.split("-"),ke=we.dropPosition-Number(Oe[Oe.length-1]);if(ke==0){ee.ZP.warning("\u65E0\u6CD5\u79FB\u52A8\u5230\u5185\u90E8\u4F4D\u7F6E");return}if(ke==1&&(me==null?void 0:me.item_index)==(ae==null?void 0:ae.item_index)+1){ee.ZP.warning("\u672A\u79FB\u52A8\u4F4D\u7F6E");return}const rn=yield ft({id:me==null?void 0:me.key,position:ke==-1?1:(me==null?void 0:me.item_index)>(ae==null?void 0:ae.item_index)?(ae==null?void 0:ae.item_index)+1:ae==null?void 0:ae.item_index});(rn==null?void 0:rn.status)===0&&(ee.ZP.success("\u79FB\u52A8\u6210\u529F"),Fi({},!0))}),le=we=>de(void 0,null,function*(){let ae={};zn?ae=yield Ot(Gt({},we)):ae=yield mt(Gt({},we)),(ae==null?void 0:ae.status)==0&&(ee.ZP.success((ae==null?void 0:ae.message)||(zn?"\u6DFB\u52A0\u6210\u529F":"\u66F4\u65B0\u6210\u529F")),Fi({},!0),pt())});return(0,Mt.useEffect)(()=>{_e!=null&&_e.open&&Fi({},!0)},[_e==null?void 0:_e.open]),(0,Mt.useEffect)(()=>{var we;Nn(be((we=Ti==null?void 0:Ti.data)==null?void 0:we.list))},[Ti]),We?Mt.createElement(Mt.Fragment,null,Pn,Me,Mt.createElement(ie.default,Gt({},Gt({title:"\u5E38\u7528\u8BC4\u8BED",width:640,centered:!0,footer:null,bodyStyle:{padding:"10px 5px 25px"}},_e)),Mt.createElement(Zt.Z,{spinning:nn},(Xe==null?void 0:Xe.length)>0?Mt.createElement(Mt.Fragment,null,Mt.createElement(Nt.default.DirectoryTree,{height:500,className:Kt.DirectoryTree,multiple:!0,draggable:{icon:!1},defaultExpandAll:!0,switcherIcon:!1,showIcon:!1,onSelect:ve,treeData:Xe,onDrop:At,titleRender:we=>Mt.createElement(Mt.Fragment,null,Mt.createElement("span",{className:"multi_ellipsis1",style:{flex:1,marginRight:"32px"}},we==null?void 0:we.title),Mt.createElement("div",{className:`${Kt.EditDom}`},Mt.createElement(jt.Z,{wrap:!1,align:"middle",gutter:16},Mt.createElement(qt.Z,null,Mt.createElement(Pt.Z,{title:"\u957F\u6309\u53EF\u8FDB\u884C\u62D6\u62FD\u6392\u5E8F"},Mt.createElement("i",{className:`iconfont icon-tuodong1 font12 ${Kt.currentPrimary}`}))),Mt.createElement(qt.Z,null,Mt.createElement(Pt.Z,{title:"\u7F16\u8F91"},Mt.createElement("i",{className:`iconfont icon-bianji11 font12 ${Kt.currentPrimary}`,onClick:ae=>{ae.stopPropagation(),Mn.setFieldsValue(Gt({},we)),fi(!0)}}))),Mt.createElement(qt.Z,null,Mt.createElement(Pt.Z,{title:"\u5220\u9664"},Mt.createElement("i",{className:`iconfont icon-shanchu14 font12 ${Kt.currentDelete}`,onClick:ae=>{ae.stopPropagation(),Se.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:()=>de(void 0,null,function*(){const me=yield Lt({id:we==null?void 0:we.key});(me==null?void 0:me.status)==0&&(ee.ZP.success((me==null?void 0:me.message)||"\u5220\u9664\u6210\u529F"),Fi({},!0))})})}}))))))}),Mt.createElement(tt.op,{className:"ml20 mt20",icon:Mt.createElement("i",{className:"iconfont icon-xiaojiahao"}),style:{borderRadius:"4px"},onClick:()=>{Si(!0),fi(!0)}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED")):Mt.createElement(et.Z,{styles:{margin:"30px auto"},customText:Mt.createElement("span",null,"\u6682\u65E0\u5E38\u7528\u8BC4\u8BED\uFF0C\u4F60\u53EF\u4EE5",Mt.createElement("a",{onClick:()=>{Si(!0),fi(!0)}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED"))}))),Mt.createElement(ie.default,{title:zn?"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED":"\u7F16\u8F91\u5E38\u7528\u8BC4\u8BED",open:Zn,okText:zn?"\u6DFB\u52A0":"\u786E\u5B9A",onCancel:()=>{pt()},onOk:()=>{Mn.submit()}},Mt.createElement(Ie.default,{form:Mn,onFinish:le},zn&&Mt.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"),Mt.createElement(Ie.default.Item,{hidden:!0,name:"id"}),Mt.createElement(Ie.default.Item,{className:"mt10",name:"value"},Mt.createElement(re.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 Ke=(0,ce.connect)(({loading:Wt,user:Ge})=>({user:Ge,loading:Wt.effects}))(Jt)},97692:function(hi,Cn,bt){"use strict";bt.d(Cn,{h:function(){return St}});var Mt=bt(59301),ce=bt(57809),ie=bt(78241),Ie=bt(3113),ee=bt(89780),Zt=bt.n(ee),Nt=bt(37036),jt=bt(95625),qt=Object.defineProperty,Pt=Object.defineProperties,re=Object.getOwnPropertyDescriptors,Kt=Object.getOwnPropertySymbols,Yt=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,et=(It,_t,Gt)=>_t in It?qt(It,_t,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):It[_t]=Gt,tt=(It,_t)=>{for(var Gt in _t||(_t={}))Yt.call(_t,Gt)&&et(It,Gt,_t[Gt]);if(Kt)for(var Gt of Kt(_t))Ct.call(_t,Gt)&&et(It,Gt,_t[Gt]);return It},lt=(It,_t)=>Pt(It,re(_t));const rt=ce.default.Option,ht={labelCol:{span:4},wrapperCol:{span:20}},dt={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"]};Cn.Z=({callback:It,onCancel:_t})=>{const[Gt,oe]=(0,Mt.useState)("python");function ue(be){oe(dt[be][1])}function de(be){It(be)}return Mt.createElement(ie.default,lt(tt({},ht),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:de,style:{width:500}}),Mt.createElement(ie.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},Mt.createElement(ce.default,{getPopupContainer:be=>be.parentNode,onChange:ue},Object.keys(dt).map(be=>Mt.createElement(rt,{key:be,value:be},dt[be][0])))),Mt.createElement(ie.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},Mt.createElement(St,{mode:Gt})),Mt.createElement("div",{className:"flex-container flex-end"},Mt.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Mt.createElement(Ie.ZP,{type:"ghost",onClick:_t},"\u53D6\u6D88")))};function St({value:It,onChange:_t,mode:Gt,options:oe={}}){const ue=(0,Mt.useRef)(),[de,be]=(0,Mt.useState)();return(0,Mt.useEffect)(()=>{if(de){let Jt=function(Ke){const Wt=Ke.getValue();_t&&_t(Wt)};return de.on("change",Jt),()=>{de.off("change",Jt)}}},[de,_t]),(0,Mt.useEffect)(()=>{de&&de.setOption("mode",Gt)},[de,Gt]),(0,Mt.useEffect)(()=>{de&&(It!==de.getValue()||It==="")&&setTimeout(()=>{de.setValue(It||"")},300)},[de,It]),(0,Mt.useEffect)(()=>{if(ue.current&&!de){const Jt=Zt().fromTextArea(ue.current,tt({mode:Gt,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},oe));be(Jt)}},[ue.current,de]),Mt.createElement("div",{className:"my-codemirror-container"},Mt.createElement("textarea",{ref:ue}))}},12290:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return Dr}});var Mt=bt(59301),ce=bt(89780),ie=bt.n(ce),Ie=bt(76374),ee=bt(37036),Zt=bt(6313),Nt=bt(25717),jt=bt(99498),qt=bt(25419),Pt=bt(67549),re=bt(85149),Kt=({value:kn="",className:Tn,showTextOnly:De,showLines:ti,style:yi={}})=>{const dn=(0,Mt.useMemo)(()=>"",[kn]);return Mt.createElement(Mt.Fragment,null,Mt.createElement("div",{dangerouslySetInnerHTML:{__html:dn}}))},Yt=bt(59301),Ct=Object.defineProperty,et=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,dt=(kn,Tn,De)=>Tn in kn?Ct(kn,Tn,{enumerable:!0,configurable:!0,writable:!0,value:De}):kn[Tn]=De,St=(kn,Tn)=>{for(var De in Tn||(Tn={}))rt.call(Tn,De)&&dt(kn,De,Tn[De]);if(lt)for(var De of lt(Tn))ht.call(Tn,De)&&dt(kn,De,Tn[De]);return kn},It=(kn,Tn)=>et(kn,tt(Tn));let _t=[{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 Gt({onActionCallback:kn,title:Tn,icon:De,actionName:ti,className:yi="",children:dn}){function Le(){kn(ti)}return Yt.createElement("a",{title:Tn,className:yi,onClick:Le},Yt.createElement("i",{className:`${De}`}),dn)}var oe=({watch:kn,showNullButton:Tn,showNullProgramButton:De,onActionCallback:ti,fullScreen:yi,insertTemp:dn,hidetoolBar:Le,extraUse:yn})=>{const Qn=[..._t,{title:`${kn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${kn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Yt.createElement("ul",{className:"markdown-toolbar-container"},!Le&&Qn.map((wi,Oi)=>Yt.createElement("li",{key:Oi},wi.actionName?Yt.createElement(Gt,It(St({},wi),{onActionCallback:ti})):Yt.createElement("span",{className:"v-line"}))),Tn?Yt.createElement("li",null,Yt.createElement(Gt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:ti},Yt.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,De?Yt.createElement(Yt.Fragment,null,Yt.createElement("li",null,Yt.createElement(Gt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:ti},Yt.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Yt.createElement("li",null,Yt.createElement(Gt,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:ti},Yt.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,dn&&Yt.createElement("li",null,Yt.createElement(Gt,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${dn}`,onActionCallback:ti},Yt.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),yn&&Yt.createElement("li",null,yn),Yt.createElement("li",{className:"btn-full-screen"},Yt.createElement(Gt,{icon:`${yi?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:yi?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:ti})))},ue=bt(79346),de=bt(78241),be=bt(92832),Jt=bt(3113),Ke=Object.defineProperty,Wt=Object.defineProperties,Ge=Object.getOwnPropertyDescriptors,He=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,_e=(kn,Tn,De)=>Tn in kn?Ke(kn,Tn,{enumerable:!0,configurable:!0,writable:!0,value:De}):kn[Tn]=De,ve=(kn,Tn)=>{for(var De in Tn||(Tn={}))Me.call(Tn,De)&&_e(kn,De,Tn[De]);if(He)for(var De of He(Tn))We.call(Tn,De)&&_e(kn,De,Tn[De]);return kn},ne=(kn,Tn)=>Wt(kn,Ge(Tn));const Se={labelCol:{span:4},wrapperCol:{span:20}};var Pn=({callback:kn,onCancel:Tn})=>{function De(ti){kn(ti)}return Mt.createElement(de.default,ne(ve({},Se),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:De,style:{width:500}}),Mt.createElement(de.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},Mt.createElement(be.default,null)),Mt.createElement(de.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},Mt.createElement(be.default,null)),Mt.createElement("div",{className:"flex-container flex-end"},Mt.createElement(Jt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Mt.createElement(Jt.ZP,{type:"ghost",onClick:Tn},"\u53D6\u6D88")))},Mn=bt(97692),Xe=bt(28451),Nn=bt(43418),Zn=bt(95237),fi=bt(73524),zn=bt(59301),Si=({callback:kn,onCancel:Tn})=>{const De=document.createElement("canvas"),ti=De.getContext("2d");De.width=1e3,De.height=800,ti.fillStyle="#ffffff",ti.fillRect(0,0,De.width,De.height);const yi=De.toDataURL("image/png");return zn.createElement(Nn.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},zn.createElement(Zn.Z,{style:{height:"100vh"}},zn.createElement(fi.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:yi,visible:!0,title:String(Date.now())},onOk:dn=>{kn({src:dn.url})},onClose:Tn})))},nn=bt(12378);function Fi(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Fi,go.CommandHandler),Fi.prototype.canAlignSelection=function(){var kn=this.diagram;return!(kn===null||kn.isReadOnly||kn.isModelReadOnly||kn.selection.count<2)},Fi.prototype.alignLeft=function(){var kn=this.diagram;kn.startTransaction("aligning left");var Tn=1/0;kn.selection.each(function(De){De instanceof go.Link||(Tn=Math.min(De.position.x,Tn))}),kn.selection.each(function(De){De instanceof go.Link||De.move(new go.Point(Tn,De.position.y))}),kn.commitTransaction("aligning left")},Fi.prototype.alignRight=function(){var kn=this.diagram;kn.startTransaction("aligning right");var Tn=-1/0;kn.selection.each(function(De){if(!(De instanceof go.Link)){var ti=De.actualBounds.x+De.actualBounds.width;Tn=Math.max(ti,Tn)}}),kn.selection.each(function(De){De instanceof go.Link||De.move(new go.Point(Tn-De.actualBounds.width,De.position.y))}),kn.commitTransaction("aligning right")},Fi.prototype.alignTop=function(){var kn=this.diagram;kn.startTransaction("alignTop");var Tn=1/0;kn.selection.each(function(De){De instanceof go.Link||(Tn=Math.min(De.position.y,Tn))}),kn.selection.each(function(De){De instanceof go.Link||De.move(new go.Point(De.position.x,Tn))}),kn.commitTransaction("alignTop")},Fi.prototype.alignBottom=function(){var kn=this.diagram;kn.startTransaction("aligning bottom");var Tn=-1/0;kn.selection.each(function(De){if(!(De instanceof go.Link)){var ti=De.actualBounds.y+De.actualBounds.height;Tn=Math.max(ti,Tn)}}),kn.selection.each(function(De){De instanceof go.Link||De.move(new go.Point(De.actualBounds.x,Tn-De.actualBounds.height))}),kn.commitTransaction("aligning bottom")},Fi.prototype.alignCenterX=function(){var kn=this.diagram,Tn=kn.selection.first();if(Tn){kn.startTransaction("aligning Center X");var De=Tn.actualBounds.x+Tn.actualBounds.width/2;kn.selection.each(function(ti){ti instanceof go.Link||ti.move(new go.Point(De-ti.actualBounds.width/2,ti.actualBounds.y))}),kn.commitTransaction("aligning Center X")}},Fi.prototype.alignCenterY=function(){var kn=this.diagram,Tn=kn.selection.first();if(Tn){kn.startTransaction("aligning Center Y");var De=Tn.actualBounds.y+Tn.actualBounds.height/2;kn.selection.each(function(ti){ti instanceof go.Link||ti.move(new go.Point(ti.actualBounds.x,De-ti.actualBounds.height/2))}),kn.commitTransaction("aligning Center Y")}},Fi.prototype.alignColumn=function(kn){var Tn=this.diagram;Tn.startTransaction("align Column"),kn===void 0&&(kn=0),kn=parseFloat(kn);var De=new Array;Tn.selection.each(function(yn){yn instanceof go.Link||De.push(yn)});for(var ti=0;ti<De.length-1;ti++){var yi=De[ti],dn=yi.actualBounds.y+yi.actualBounds.height+kn,Le=De[ti+1];Le.move(new go.Point(yi.actualBounds.x,dn))}Tn.commitTransaction("align Column")},Fi.prototype.alignRow=function(kn){kn===void 0&&(kn=0),kn=parseFloat(kn);var Tn=this.diagram;Tn.startTransaction("align Row");var De=new Array;Tn.selection.each(function(yn){yn instanceof go.Link||De.push(yn)});for(var ti=0;ti<De.length-1;ti++){var yi=De[ti],dn=yi.actualBounds.x+yi.actualBounds.width+kn,Le=De[ti+1];Le.move(new go.Point(dn,yi.actualBounds.y))}Tn.commitTransaction("align Row")},Fi.prototype.canRotate=function(kn){var Tn=this.diagram;return!(Tn===null||Tn.isReadOnly||Tn.isModelReadOnly||Tn.selection.count<1)},Fi.prototype.rotate=function(kn){kn===void 0&&(kn=90);var Tn=this.diagram;Tn.startTransaction("rotate "+kn.toString());var Tn=this.diagram;Tn.selection.each(function(De){De instanceof go.Link||De instanceof go.Group||(De.angle+=kn)}),Tn.commitTransaction("rotate "+kn.toString())},Fi.prototype.pullToFront=function(){var kn=this.diagram;kn.startTransaction("pullToFront");var Tn=new go.Map;kn.selection.each(function(De){Tn.set(De.layer,0)}),Tn.iteratorKeys.each(function(De){var ti=0;De.parts.each(function(yi){if(!yi.isSelected){var dn=yi.zOrder;isNaN(dn)?yi.zOrder=0:ti=Math.max(ti,dn)}}),Tn.set(De,ti)}),kn.selection.each(function(De){Fi._assignZOrder(De,Tn.get(De.layer)+1)}),kn.commitTransaction("pullToFront")},Fi.prototype.pushToBack=function(){var kn=this.diagram;kn.startTransaction("pushToBack");var Tn=new go.Map;kn.selection.each(function(De){Tn.set(De.layer,0)}),Tn.iteratorKeys.each(function(De){var ti=0;De.parts.each(function(yi){if(!yi.isSelected){var dn=yi.zOrder;isNaN(dn)?yi.zOrder=0:ti=Math.min(ti,dn)}}),Tn.set(De,ti)}),kn.selection.each(function(De){Fi._assignZOrder(De,Tn.get(De.layer)-1-Fi._findGroupDepth(De))}),kn.commitTransaction("pushToBack")},Fi._assignZOrder=function(kn,Tn,De){De===void 0&&(De=kn),kn.layer===De.layer&&(kn.zOrder=Tn),kn instanceof go.Group&&kn.memberParts.each(function(ti){Fi._assignZOrder(ti,Tn+1,De)})},Fi._findGroupDepth=function(kn){if(kn instanceof go.Group){var Tn=0;return kn.memberParts.each(function(De){Tn=Math.max(Tn,Fi._findGroupDepth(De))}),Tn+1}else return 0},Fi.prototype.doKeyDown=function(){var kn=this.diagram;if(kn!==null){var Tn=kn.lastInput;if(Tn.key==="Up"||Tn.key==="Down"||Tn.key==="Left"||Tn.key==="Right"){var De=this.arrowKeyBehavior;if(De==="none")return;if(De==="select"){this._arrowKeySelect();return}else if(De==="move"){this._arrowKeyMove();return}else if(De==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Fi.prototype._getAllParts=function(){var kn=new Array;return this.diagram.nodes.each(function(Tn){kn.push(Tn)}),this.diagram.parts.each(function(Tn){kn.push(Tn)}),kn},Fi.prototype._arrowKeyMove=function(){var kn=this.diagram,Tn=kn.lastInput,De=0,ti=0;if(Tn.control||Tn.meta)De=1,ti=1;else if(kn.grid!==null){var yi=kn.grid.gridCellSize;ti=yi.width,De=yi.height}kn.startTransaction("arrowKeyMove"),kn.selection.each(function(dn){Tn.key==="Up"?dn.move(new go.Point(dn.actualBounds.x,dn.actualBounds.y-De)):Tn.key==="Down"?dn.move(new go.Point(dn.actualBounds.x,dn.actualBounds.y+De)):Tn.key==="Left"?dn.move(new go.Point(dn.actualBounds.x-ti,dn.actualBounds.y)):Tn.key==="Right"&&dn.move(new go.Point(dn.actualBounds.x+ti,dn.actualBounds.y))}),kn.commitTransaction("arrowKeyMove")},Fi.prototype._arrowKeySelect=function(){var kn=this.diagram,Tn=kn.lastInput,De=null;Tn.key==="Up"?De=this._findNearestPartTowards(270):Tn.key==="Down"?De=this._findNearestPartTowards(90):Tn.key==="Left"?De=this._findNearestPartTowards(180):Tn.key==="Right"&&(De=this._findNearestPartTowards(0)),De!==null&&(Tn.shift?De.isSelected=!0:Tn.control||Tn.meta?De.isSelected=!De.isSelected:kn.select(De))},Fi.prototype._findNearestPartTowards=function(kn){var Tn=this.diagram.selection.first();if(Tn===null)return null;for(var De=Tn.actualBounds.center,ti=this._getAllParts(),yi=1/0,dn=Tn,Le=0;Le<ti.length;Le++){var yn=ti[Le];if(yn!==Tn&&yn.canSelect()){var Qn=yn.actualBounds.center,wi=De.directionPoint(Qn),Oi=this._angleCloseness(wi,kn);if(Oi<=45){var qe=De.distanceSquaredPoint(Qn);qe*=1+Math.sin(Oi*Math.PI/180),qe<yi&&(yi=qe,dn=yn)}}}return dn},Fi.prototype._angleCloseness=function(kn,Tn){return Math.min(Math.abs(Tn-kn),Math.min(Math.abs(Tn+360-kn),Math.abs(Tn-360-kn)))},Fi.prototype._arrowKeyTree=function(){var kn=this.diagram,Tn=kn.selection.first();if(Tn instanceof go.Node){var De=kn.lastInput;if(De.key==="Right"){if(!Tn.isTreeLeaf)if(!Tn.isTreeExpanded)kn.commandHandler.canExpandTree(Tn)&&kn.commandHandler.expandTree(Tn);else{var ti=this._sortTreeChildrenByY(Tn).first();ti!==null&&kn.select(ti)}}else if(De.key==="Left")if(!Tn.isTreeLeaf&&Tn.isTreeExpanded)kn.commandHandler.canCollapseTree(Tn)&&kn.commandHandler.collapseTree(Tn);else{var yi=Tn.findTreeParentNode();yi!==null&&kn.select(yi)}else if(De.key==="Up"){var yi=Tn.findTreeParentNode();if(yi!==null){var dn=this._sortTreeChildrenByY(yi),Le=dn.indexOf(Tn);if(Le>0){for(var yn=dn.elt(Le-1);yn!==null&&yn.isTreeExpanded&&!yn.isTreeLeaf;){var Qn=this._sortTreeChildrenByY(yn);yn=Qn.last()}yn!==null&&kn.select(yn)}else kn.select(yi)}}else if(De.key==="Down")if(Tn.isTreeExpanded&&!Tn.isTreeLeaf){var ti=this._sortTreeChildrenByY(Tn).first();ti!==null&&kn.select(ti)}else for(;Tn!==null;){var yi=Tn.findTreeParentNode();if(yi===null)break;var dn=this._sortTreeChildrenByY(yi),Le=dn.indexOf(Tn);if(Le<dn.length-1){kn.select(dn.elt(Le+1));break}else Tn=yi}var wi=kn.selection.first();wi!==null&&kn.scrollToRect(wi.actualBounds)}},Fi.prototype._sortTreeChildrenByY=function(kn){var Tn=new go.List().addAll(kn.findTreeChildrenNodes());return Tn.sort(function(De,ti){var yi=De.location,dn=ti.location;return yi.y<dn.y?-1:yi.y>dn.y?1:yi.x<dn.x?-1:yi.x>dn.x?1:0}),Tn},Fi.prototype.copyToClipboard=function(kn){go.CommandHandler.prototype.copyToClipboard.call(this,kn),this._lastPasteOffset.set(this.pasteOffset)},Fi.prototype.pasteFromClipboard=function(){var kn=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(kn,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),kn},Object.defineProperty(Fi.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(kn){if(kn!=="move"&&kn!=="select"&&kn!=="scroll"&&kn!=="tree"&&kn!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+kn);this._arrowKeyBehavior=kn}}),Object.defineProperty(Fi.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(kn){if(!(kn instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+kn);this._pasteOffset.set(kn)}});var Ti=Fi,Lt=bt(74413),Ot=bt(43604),mt=bt(99064),ft={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},pt=bt(24065),At=bt(59301),le=(kn,Tn,De)=>new Promise((ti,yi)=>{var dn=Qn=>{try{yn(De.next(Qn))}catch(wi){yi(wi)}},Le=Qn=>{try{yn(De.throw(Qn))}catch(wi){yi(wi)}},yn=Qn=>Qn.done?ti(Qn.value):Promise.resolve(Qn.value).then(dn,Le);yn((De=De.apply(kn,Tn)).next())});function we({onCancel:kn,callback:Tn}){let De=(0,Mt.useRef)(),ti=(0,Mt.useRef)(),yi=(0,Mt.useRef)(),dn=(0,Mt.useRef)(!1);const Le=(0,Mt.useRef)(!1),[yn,Qn]=(0,Mt.useState)(0);function wi(){const qe=nn.bx.make,oi={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"};De.current=new nn.S0(ti.current,{padding:20,grid:qe(nn.s_,"Grid",qe(nn.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),qe(nn.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:ur=>{var Ur=ur.diagram.commandHandler.addTopLevelParts(ur.diagram.selection,!0);Ur||ur.diagram.currentTool.doCancel()},commandHandler:qe(Ti),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:ur=>{var Ur=ur.subject;Ur.location=Ur.location.copy().snapToGridPoint(ur.diagram.grid.gridOrigin,ur.diagram.grid.gridCellSize),setTimeout(()=>{ur.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:ur=>{var Ur=ur.subject;setTimeout(()=>{ur.diagram.commandHandler.editTextBlock()})},LinkRelinked:ur=>{var Ur=ur.parameter.part;Ur.invalidateConnectedLinks();var uo=ur.subject;ur.diagram.toolManager.linkingTool.isForwards?uo.toNode.invalidateConnectedLinks():uo.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),De.current.nodeTemplate=qe(nn.NB,"Auto",{locationSpot:nn.z6.Center,locationObjectName:"SHAPE",desiredSize:new nn.$u(120,60),minSize:new nn.$u(40,40),resizable:!0,resizeCellSize:new nn.$u(10,10),rotatable:!0},new nn.KX("location","loc",nn.E9.parse).makeTwoWay(nn.E9.stringify),new nn.KX("desiredSize","size",nn.$u.parse).makeTwoWay(nn.$u.stringify),qe(nn.bn,{name:"SHAPE",fill:oi.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:nn.z6.AllSides,toSpot:nn.z6.AllSides},new nn.KX("figure"),new nn.KX("fill"),new nn.KX("stroke","borderColor"),new nn.KX("strokeWidth","thickness"),new nn.KX("strokeDashArray","dash")),qe(nn.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),qe(nn.al,{margin:1,textAlign:"center",overflow:nn.al.OverflowEllipsis,editable:!0},new nn.KX("text").makeTwoWay(),new nn.KX("stroke","color"))),De.current.nodeTemplate.toolTip=qe("ToolTip",qe(nn.s_,"Vertical",{maxSize:new nn.$u(200,NaN)},qe(nn.al,{font:"bold 10pt sans-serif",textAlign:"center"},new nn.KX("text")),qe(nn.al,{font:"10pt sans-serif",textAlign:"center"},new nn.KX("text","details"))));function Pi(ur,Ur){var uo=(qr,ko)=>{qr.handled=!0,qr.diagram.model.commit(di=>{var Co=ko.part.adornedPart,jr=new nn.E9().setRectSpot(Co.actualBounds,ur);jr.subtract(Co.location),jr.scale(2,2),jr.x+=Math.sign(jr.x)*130,jr.y+=Math.sign(jr.y)*130,jr.add(Co.location),jr.snapToGridPoint(qr.diagram.grid.gridOrigin,qr.diagram.grid.gridCellSize);var Sr=di.copyNodeData(Co.data);di.setGroupKeyForNodeData(Sr,di.getGroupKeyForNodeData(Co.data)),di.addNodeData(Sr);var Ci={from:Co.key,to:di.getKeyForNodeData(Sr)};di.addLinkData(Ci);var Bo=qr.diagram.findNodeForData(Sr);Bo.location=jr,qr.diagram.select(Bo),setTimeout(()=>{qr.diagram.commandHandler.editTextBlock()},20)})};return qe(nn.bn,{figure:Ur,alignment:ur,alignmentFocus:ur.opposite(),width:ur.equals(nn.z6.Top)||ur.equals(nn.z6.Bottom)?25:18,height:ur.equals(nn.z6.Top)||ur.equals(nn.z6.Bottom)?18:25,fill:"orange",stroke:oi.white,strokeWidth:4,mouseEnter:(qr,ko)=>ko.fill="dodgerblue",mouseLeave:(qr,ko)=>ko.fill="orange",isActionable:!0,click:uo,contextClick:uo})}function er(ur){return qe(nn.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:(Ur,uo)=>uo.fill="dodgerblue",mouseLeave:(Ur,uo)=>uo.fill="orange",click:(Ur,uo)=>{Ur.diagram.commandHandler.showContextMenu(uo.part.adornedPart)}},ur||{})}De.current.nodeTemplate.selectionAdornmentTemplate=qe(nn.uz,"Spot",qe(nn.Vm,{padding:10}),Pi(nn.z6.Top,"TriangleUp"),Pi(nn.z6.Left,"TriangleLeft"),Pi(nn.z6.Right,"TriangleRight"),Pi(nn.z6.Bottom,"TriangleDown"),er({alignment:new nn.z6(.75,0)}));function On(ur,Ur){return(uo,qr)=>{uo.handled=!0,uo.diagram.model.commit(ko=>{ko.set(qr.part.adornedPart.data,ur,Ur)})}}function ui(ur,Ur){return Ur||(Ur="color"),qe(nn.bn,{width:16,height:16,stroke:"lightgray",fill:ur,margin:1,background:"transparent",mouseEnter:(uo,qr)=>qr.stroke="dodgerblue",mouseLeave:(uo,qr)=>qr.stroke="lightgray",click:On(Ur,ur),contextClick:On(Ur,ur)})}function Cr(){return[qe("ContextMenuButton",qe(nn.s_,"Horizontal",ui(oi.white,"fill"),ui(oi.beige,"fill"),ui(oi.extralightblue,"fill"),ui(oi.extralightred,"fill"))),qe("ContextMenuButton",qe(nn.s_,"Horizontal",ui(oi.lightgray,"fill"),ui(oi.lightgreen,"fill"),ui(oi.lightblue,"fill"),ui(oi.lightred,"fill")))]}function or(){return[qe("ContextMenuButton",qe(nn.s_,"Horizontal",ui(oi.black),ui(oi.green),ui(oi.blue),ui(oi.red))),qe("ContextMenuButton",qe(nn.s_,"Horizontal",ui(oi.white),ui(oi.magenta),ui(oi.purple),ui(oi.orange)))]}function zr(ur,Ur){return Ur||(Ur="thickness"),qe(nn.bn,"LineH",{width:16,height:16,strokeWidth:ur,margin:1,background:"transparent",mouseEnter:(uo,qr)=>qr.background="dodgerblue",mouseLeave:(uo,qr)=>qr.background="transparent",click:On(Ur,ur),contextClick:On(Ur,ur)})}function ar(ur,Ur){return Ur||(Ur="dash"),qe(nn.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:ur,margin:1,background:"transparent",mouseEnter:(uo,qr)=>qr.background="dodgerblue",mouseLeave:(uo,qr)=>qr.background="transparent",click:On(Ur,ur),contextClick:On(Ur,ur)})}function Lr(){return[qe("ContextMenuButton",qe(nn.s_,"Horizontal",zr(1),zr(2),zr(3),zr(4))),qe("ContextMenuButton",qe(nn.s_,"Horizontal",ar(null),ar([2,4]),ar([4,4])))]}function nr(ur,Ur){return Ur||(Ur="figure"),qe(nn.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:ur,margin:1,background:"transparent",mouseEnter:(uo,qr)=>qr.fill="dodgerblue",mouseLeave:(uo,qr)=>qr.fill="lightgray",click:On(Ur,ur),contextClick:On(Ur,ur)})}De.current.nodeTemplate.contextMenu=qe("ContextMenu",qe("ContextMenuButton",qe(nn.s_,"Horizontal",nr("Rectangle"),nr("RoundedRectangle"),nr("Ellipse"),nr("Diamond"))),qe("ContextMenuButton",qe(nn.s_,"Horizontal",nr("Parallelogram2"),nr("ManualOperation"),nr("Procedure"),nr("Cylinder1"))),qe("ContextMenuButton",qe(nn.s_,"Horizontal",nr("Terminator"),nr("CreateRequest"),nr("Document"),nr("TriangleDown"))),Cr(),or(),Lr()),De.current.groupTemplate=qe(nn.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:nn.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(ur,Ur)=>{var uo=Ur.addMembers(Ur.diagram.selection,!0);uo||Ur.diagram.currentTool.doCancel()},avoidable:!1},new nn.KX("location","loc",nn.E9.parse).makeTwoWay(nn.E9.stringify),qe(nn.s_,"Auto",{name:"BODY"},qe(nn.bn,{parameter1:10,fill:oi.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:nn.z6.AllSides,toSpot:nn.z6.AllSides},new nn.KX("fill"),new nn.KX("stroke","color"),new nn.KX("strokeWidth","thickness"),new nn.KX("strokeDashArray","dash")),qe(nn.Vm,{background:"transparent",margin:20})),qe(nn.al,{alignment:nn.z6.Top,alignmentFocus:nn.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new nn.KX("text"),new nn.KX("stroke","color"))),De.current.groupTemplate.selectionAdornmentTemplate=qe(nn.uz,"Spot",qe(nn.s_,"Auto",qe(nn.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),qe(nn.Vm,{margin:1.5})),er({alignment:nn.z6.TopRight,alignmentFocus:nn.z6.BottomRight})),De.current.groupTemplate.contextMenu=qe("ContextMenu",Cr(),or(),Lr()),De.current.linkTemplate=qe(nn.rU,{layerName:"Foreground",routing:nn.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new nn.KX("fromSpot","fromSpot",nn.z6.parse),new nn.KX("toSpot","toSpot",nn.z6.parse),new nn.KX("fromShortLength","dir",ur=>ur>=1?10:0),new nn.KX("toShortLength","dir",ur=>ur>=1?10:0),new nn.KX("points").makeTwoWay(),qe(nn.bn,{strokeWidth:2},new nn.KX("stroke","color"),new nn.KX("strokeWidth","thickness"),new nn.KX("strokeDashArray","dash")),qe(nn.bn,{segmentIndex:0,segmentOffset:new nn.E9(15,0),segmentOrientation:nn.rU.OrientAlong,alignmentFocus:nn.z6.Right,figure:"circle",width:10,strokeWidth:0},new nn.KX("fill","color"),new nn.KX("visible","dir",ur=>ur===1)),qe(nn.bn,{segmentIndex:-1,segmentOffset:new nn.E9(-10,6),segmentOrientation:nn.rU.OrientPlus90,alignmentFocus:nn.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new nn.KX("fill","color"),new nn.KX("visible","dir",ur=>ur>=1),new nn.KX("width","thickness",ur=>7+3*ur),new nn.KX("height","thickness",ur=>7+3*ur),new nn.KX("segmentOffset","thickness",ur=>new nn.E9(-15,4+1.5*ur))),qe(nn.bn,{segmentIndex:0,segmentOffset:new nn.E9(15,-6),segmentOrientation:nn.rU.OrientMinus90,alignmentFocus:nn.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new nn.KX("fill","color"),new nn.KX("visible","dir",ur=>ur===2),new nn.KX("width","thickness",ur=>7+3*ur),new nn.KX("height","thickness",ur=>7+3*ur),new nn.KX("segmentOffset","thickness",ur=>new nn.E9(-15,4+1.5*ur))),qe(nn.al,{alignmentFocus:new nn.z6(0,1,-4,0),editable:!0},new nn.KX("text").makeTwoWay(),new nn.KX("stroke","color"))),De.current.linkTemplate.selectionAdornmentTemplate=qe(nn.uz,qe(nn.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Pr(2)},new nn.KX("pathPattern","thickness",Pr)),er({alignmentFocus:new nn.z6(0,0,-6,-4)}));function Pr(ur){return qe(nn.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(ur+4).toString()+" H3"})}function io(ur){var Ur="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return ur===0?Ur="M0 0 M16 16 M0 8 L16 8":ur===2&&(Ur="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),qe(nn.bn,{geometryString:Ur,margin:2,background:"transparent",mouseEnter:(uo,qr)=>qr.background="dodgerblue",mouseLeave:(uo,qr)=>qr.background="transparent",click:On("dir",ur),contextClick:On("dir",ur)})}function Uo(ur){var Ur=(uo,qr)=>{uo.handled=!0,uo.diagram.model.commit(ko=>{var di=qr.part.adornedPart;ko.set(di.data,ur?"toSpot":"fromSpot",nn.z6.stringify(nn.z6.AllSides)),(ur?di.toNode:di.fromNode).invalidateConnectedLinks()})};return qe(nn.bn,{width:12,height:12,fill:"transparent",mouseEnter:(uo,qr)=>qr.background="dodgerblue",mouseLeave:(uo,qr)=>qr.background="transparent",click:Ur,contextClick:Ur})}function gi(ur,Ur){var uo=0,qr=nn.z6.RightSide;ur.equals(nn.z6.Top)?(uo=270,qr=nn.z6.TopSide):ur.equals(nn.z6.Left)?(uo=180,qr=nn.z6.LeftSide):ur.equals(nn.z6.Bottom)&&(uo=90,qr=nn.z6.BottomSide),Ur||(uo-=180);var ko=(di,Co)=>{di.handled=!0,di.diagram.model.commit(jr=>{var Sr=Co.part.adornedPart;jr.set(Sr.data,Ur?"toSpot":"fromSpot",nn.z6.stringify(qr)),(Ur?Sr.toNode:Sr.fromNode).invalidateConnectedLinks()})};return qe(nn.bn,{alignment:ur,alignmentFocus:ur.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:uo,background:"transparent",mouseEnter:(di,Co)=>Co.background="dodgerblue",mouseLeave:(di,Co)=>Co.background="transparent",click:ko,contextClick:ko})}De.current.linkTemplate.contextMenu=qe("ContextMenu",or(),Lr(),qe("ContextMenuButton",qe(nn.s_,"Horizontal",io(0),io(1),io(2))),qe("ContextMenuButton",qe(nn.s_,"Horizontal",qe(nn.s_,"Spot",Uo(!1),gi(nn.z6.Top,!1),gi(nn.z6.Left,!1),gi(nn.z6.Right,!1),gi(nn.z6.Bottom,!1)),qe(nn.s_,"Spot",{margin:new nn.Zt(0,0,0,2)},Uo(!0),gi(nn.z6.Top,!0),gi(nn.z6.Left,!0),gi(nn.z6.Right,!0),gi(nn.z6.Bottom,!0)))));const Qo=`{ "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 ps=["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 $o(ur){return console.log("shapeName:",ur),ps.indexOf(ur)>=0}var pi=new nn.YI(yi.current,{maxSelectionCount:1,linkTemplate:qe(nn.rU,{locationSpot:nn.z6.Center,selectionAdornmentTemplate:qe(nn.uz,"Link",{locationSpot:nn.z6.Center},qe(nn.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),qe(nn.bn,{toArrow:"Standard",stroke:null}))},{routing:nn.rU.AvoidsNodes,curve:nn.rU.JumpOver,corner:5,toShortLength:4},new nn.KX("points"),qe(nn.bn,{isPanelMain:!0,strokeWidth:2}),qe(nn.bn,{toArrow:"Standard",stroke:null})),model:new nn.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...nn.bn.getFigureGenerators().toArray().map(ur=>({text:"\u672A\u547D\u540D",size:"100 100",figure:ur.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return De.current.addDiagramListener("TextEdited",function(ur){var Ur;const uo=ur.subject.part;var qr=(Ur=document.activeElement)==null?void 0:Ur.value;typeof qr=="string"&&qr.trim()===""&&De.current.model.commit(function(ko){ko.set(uo.data,"text","\u672A\u547D\u540D"),De.current.commandHandler.stopCommand()},"increment")}),pi.nodeTemplate=qe(nn.NB,"Auto",{locationSpot:nn.z6.Center},new nn.KX("location","location",nn.E9.parse).makeTwoWay(nn.E9.stringify),qe(nn.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 nn.KX("stroke").makeTwoWay(),new nn.KX("fill").makeTwoWay(),new nn.KX("figure")),qe(nn.al,{margin:new nn.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new nn.$u(16,16),maxSize:new nn.$u(10,NaN),textAlign:"center",editable:!0},new nn.KX("key").makeTwoWay())),setTimeout(()=>{De.current.grid=qe(nn.s_,"Grid",qe(nn.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),qe(nn.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),De.current.grid.visible=!0,De.current.grid.gridCellStroke="darkgray",De.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=De.current,De.current}const Oi=()=>le(this,null,function*(){var qe,oi=De.current.makeImage();const Pi=yield(0,mt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:oi.src,file_data:JSON.stringify({login:(qe=(0,pt.eY)())==null?void 0:qe.login,data:JSON.parse(De.current.model.toJson())})}});Tn({src:Pi.url})});return(0,Mt.useEffect)(()=>(setTimeout(()=>{wi()},500),Qn(yn+1),()=>{De.current=null}),[]),At.createElement("div",{ref:Le,className:dn.current?`${ft.maxH60} body-overflow-initial`:"body-overflow-initial"},At.createElement(Nn.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!yn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:At.createElement(Zn.Z,null,At.createElement(Ot.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),At.createElement(Ot.Z,{onClick:()=>{var qe,oi,Pi=De.current.selection.first();if(dn.current=!dn.current,document.activeElement&&Pi){let er=(oi=(qe=document.activeElement)==null?void 0:qe.value)==null?void 0:oi.trim();typeof er=="string"&&De.current.model.commit(function(On){On.set(Pi.data,"text",er||"\u672A\u547D\u540D"),De.current.commandHandler.stopCommand()},"increment")}Qn(yn+1)}},At.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:kn},At.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:ft.flowChartWrp},At.createElement("div",{style:{display:"flex",height:"100%"}},At.createElement("div",{style:{width:"300px",height:"100%"}},At.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),At.createElement("div",{style:{height:"calc(100% - 50px)"},className:ft.myPaletteDiv,ref:yi})),At.createElement("div",{style:{flex:1,position:"relative"}},At.createElement("div",{ref:ti,style:{height:"80vh"}}))),At.createElement("div",{className:"tr"},At.createElement(Jt.ZP,{size:"large",onClick:Oi,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var ae=we,me=bt(5112),Re=bt(5871);const Oe=me.ZP.Group,ke={margin:"0 8px"};var rn=({callback:kn,onCancel:Tn})=>{function De(ti){kn(ti)}return Mt.createElement(de.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:De},Mt.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},Mt.createElement("span",{style:ke},"\u5355\u5143\u683C\u6570\uFF1A"),Mt.createElement("span",{style:ke},"\u884C\u6570"),Mt.createElement(de.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},Mt.createElement(Re.Z,null)),Mt.createElement("span",{style:ke},"\u5217\u6570"),Mt.createElement(de.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},Mt.createElement(Re.Z,null))),Mt.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},Mt.createElement("span",{style:ke},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),Mt.createElement(de.default.Item,{name:"align"},Mt.createElement(Oe,null,Mt.createElement(me.ZP,{value:"default"},Mt.createElement("i",{className:"fa fa-align-justify"})),Mt.createElement(me.ZP,{value:"left"},Mt.createElement("i",{className:"fa fa-align-left"})),Mt.createElement(me.ZP,{value:"center"},Mt.createElement("i",{className:"fa fa-align-center"})),Mt.createElement(me.ZP,{value:"right"},Mt.createElement("i",{className:"fa fa-align-right"}))))),Mt.createElement("div",{className:"flex-container flex-end"},Mt.createElement(Jt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Mt.createElement(Jt.ZP,{type:"ghost",onClick:Tn},"\u53D6\u6D88")))},Vn=bt(78673),sn=bt(80727),An=bt.n(sn),ii=(0,Mt.forwardRef)(({use3d:kn,width:Tn,height:De,callback:ti,showSaveButton:yi},dn)=>{const Le=(0,Mt.useRef)(),yn=(0,Mt.useRef)(),[Qn,wi]=(0,Mt.useState)(!1),Oi=(0,Mt.useRef)({id:Le,appName:"graphing",width:Tn||1e3,height:De||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,Mt.useEffect)(()=>{yn.current=new(An())(Oi.current,!0),window.onload=function(){yn.current.inject("applet_container")}},[]);const qe=()=>{var oi=window.ggbApplet.getPNGBase64(1,!0,72);return ti&&ti(oi),oi};return(0,Mt.useEffect)(()=>{Oi.current.appName=Qn?"3D":"graphing",yn.current.inject("applet_container")},[Qn]),(0,Mt.useEffect)(()=>{wi(kn)},[kn]),(0,Mt.useImperativeHandle)(dn,()=>({getImgData:qe})),Mt.createElement(Mt.Fragment,null,Mt.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Le}),Mt.createElement(Zn.Z,{align:"middle"},Mt.createElement(Ot.Z,{flex:1},Mt.createElement(Vn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Qn,onChange:oi=>wi(oi)})),Mt.createElement(Ot.Z,null,Mt.createElement(Jt.ZP,{size:"large",onClick:qe,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),_n=bt(41588),ji=bt(8591);const cr="link",Ji="upload-image",mr="add-flowchart",Mr="draw-image",ao="add-flowchart",Yr="code-block",Zr="add-table",kr="------------",Gr={default:kr,left:`:${kr}`,center:`:${kr}:`,right:`${kr}:`};var lo=bt(58856);function _o(){}let ns=0;const co=1e4,ys="\u2581",jo="@\u2581\u2581@",$t="@\u2581@",ri=`
|
|
|
**\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`,ws=["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 Is(kn){return/^\d+$/.test(kn)?`${kn}px`:kn}const va=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",qs={[va+"-B"]:"bold",[va+"-I"]:"italic"},_r={[cr]:"\u6DFB\u52A0\u94FE\u63A5",[Yr]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Ji]:"\u6DFB\u52A0\u56FE\u7247",[Mr]:"\u6DFB\u52A0\u753B\u56FE",[mr]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Zr]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Dr=({defaultValue:kn="",onChange:Tn,width:De="100%",height:ti=400,miniToolbar:yi=!1,isFocus:dn=!1,watch:Le,insertTemp:yn,mode:Qn="markdown",id:wi="markdown-editor-id",showResizeBar:Oi=!1,noStorage:qe=!1,showNullButton:oi=!1,showNullProgramButton:Pi=!1,hidetoolBar:er=!1,fullScreen:On=!1,onBlur:ui,onCMBeforeChange:Cr,onFullScreen:or,className:zr="",disablePaste:ar=!1,disabled:Lr=!1,disabledFill:nr=!1,placeholder:Pr="",values:io="",extraUse:Uo})=>{const[gi,Qo]=(0,Mt.useState)(null),[ps,$o]=(0,Mt.useState)(kn),[pi,ur]=(0,Mt.useState)(Le),[Ur,uo]=(0,Mt.useState)(On),[qr,ko]=(0,Mt.useState)(""),[di,Co]=(0,Mt.useState)(0),[jr,Sr]=(0,Mt.useState)(ti),[Ci,Bo]=(0,Mt.useState)(!1),[xi,Yo]=(0,Mt.useState)(0),[ha,vs]=(0,Mt.useState)(0),da=(0,Mt.useRef)(),ta=(0,Mt.useRef)(),To=(0,Mt.useRef)(),Ro=(0,Mt.useRef)();(0,Mt.useEffect)(()=>{const Ao=window.scrollY||window.pageYOffset;$o(io),gi==null||gi.setValue(io),window.scrollTo(0,Ao)},[io]),(0,Mt.useEffect)(()=>{or==null||or(Ur)},[Ur]),(0,Mt.useEffect)(()=>{if(da.current){let Ao=function(Zi,bo){var xs;if(ar){bo.preventDefault();return}const ca=bo.clipboardData;if(ca){const aa=ca.types.toString(),Ho=ca.items;if(aa==="Files"||ca.types.indexOf("Files")>-1){if(bo.preventDefault(),Qn=="stex")return;try{let Zs=Ho[1];((xs=Ho[0])==null?void 0:xs.kind)==="file"&&(Zs=Ho[0]);const ka=Zs.getAsFile(),Ml=ka.name.split(".").pop();(0,Xe.I)(ka,Ga=>{var Ss,ai,Ta;Ga.id?((Ss=ka==null?void 0:ka.type)==null?void 0:Ss.indexOf("image"))>-1?yo.replaceSelection(`<img width="100%" src="/api/attachments/${Ga.id}?type=${Ga.content_type})" alt="" />`):((ai=ka==null?void 0:ka.type)==null?void 0:ai.indexOf("video"))>-1?yo.replaceSelection(`<video width="100%" controls src="/api/attachments/${Ga.id}"></video>`):((Ta=ka==null?void 0:ka.type)==null?void 0:Ta.indexOf("pdf"))>-1?yo.replaceSelection(`<a href="/api/attachments/${Ga.id}?type=${ka.type}&disposition=inline" target="_blank">${ka.name}</a>`):ws.includes(Ml)?yo.replaceSelection(`<a href="/api/attachments/${Ga.id}?type=office&disposition=inline" target="_blank">${ka.name}</a>`):yo.replaceSelection(`[${ka.name}](/api/attachments/${Ga.id}?type=${Ga.content_type})`):(Ga==null?void 0:Ga.status)===401&&(document.location.href="/user/login")})}catch(Zs){ji.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const yo=ie().fromTextArea(da.current,{mode:Qn,lineNumbers:!yi,lineWrapping:!0,value:kn,autoCloseTags:!0,autoCloseBrackets:!0});return yo.on("keyup",function(Zi,bo){bo.keyCode===8&&(Zi.getValue()==""?yo.setOption("placeholder",Pr):yo.setOption("placeholder",null))}),yo.on("keydown",function(Zi,bo){if(bo.keyCode===8){var xs=os(Zi);xs&&bo.preventDefault()}}),dn&&yo.focus(),yo.on("paste",Ao),Lr&&yo.on("beforeChange",function(Zi,bo){(bo.origin==="paste"||bo.origin==="+input")&&bo.cancel()}),Qo(yo),()=>{yo.off("paste",Ao)}}},[]);const us=(0,Mt.useCallback)(()=>{if(ta.current)try{}catch(Ao){console.log(Ao,"---- to set md editor body height")}},[jr,ta,Ur]);(0,Mt.useEffect)(()=>{function Ao(){let yo=new Ie.Z(Zi=>{for(let bo of Zi)(bo.target.offsetHeight>0||bo.target.offsetWidth>0)&&(us(),gi.setSize("100%","100%"),gi.refresh())});return yo.observe(da.current.parentElement),yo}if(gi){const yo=Ao();return()=>{var Zi,bo;(Zi=da.current)!=null&&Zi.parentElement&&yo.unobserve((bo=da.current)==null?void 0:bo.parentElement)}}},[gi,us]),(0,Mt.useEffect)(()=>{if(gi){let Ao=[];for(const[yo,Zi]of Object.entries(qs)){let bo={[yo]:()=>{xr(Zi)}};Ao.push(bo),gi.addKeyMap(bo)}return()=>{for(let yo of Ao)gi.removeKeyMap(yo)}}},[gi]),(0,Mt.useEffect)(()=>{On!==Ur&&uo(On)},[On]),(0,lo.Z)(()=>{if(!qe&&di>0){let Ao=new Date().getTime(),yo=window.sessionStorage.getItem(wi);Ao>=di+co&&(!yo||yo!==ps)&&(window.sessionStorage.setItem(wi,ps),Bo(!0))}},co),(0,Mt.useEffect)(()=>{ur(Le)},[gi,Le]),(0,Mt.useEffect)(()=>{gi&&dn&&gi.focus()},[gi,dn]),(0,Mt.useEffect)(()=>{if(pi&&gi){let Ao=function(Zi){let bo=Zi.target;if(Ro.current){let xs=bo.scrollTop/bo.scrollHeight;Ro.current.scrollTop=Ro.current.scrollHeight*xs}};const yo=gi.getScrollerElement();return yo.addEventListener("scroll",Ao),()=>{yo.removeEventListener("scroll",Ao)}}},[gi,pi]),(0,Mt.useEffect)(()=>{if(gi&&Cr){let Ao=function(yo,Zi){Cr(yo,Zi)};return gi.on("beforeChange",Ao),()=>{gi.off("beforeChange",Ao)}}},[gi,Cr]),(0,Mt.useEffect)(()=>{if(gi&&ui){let Ao=function(){ui(gi.getValue())};return gi.on("blur",Ao),()=>{gi.off("blur",Ao)}}},[gi,ui]);function os(Ao,yo){var Zi=Ao.getDoc(),bo=Zi.getCursor(),xs=Zi.getLine(bo.line),ca=xs.charAt(bo.ch-1),aa=xs.lastIndexOf("@\u2581@",bo.ch),Ho=xs.lastIndexOf("@\u2581\u2581@",bo.ch),Zs=aa>Ho?aa:Ho,ka=aa>Ho?3:4;if(jo.indexOf(ca)===-1)return null;if(console.log("change1:",yo,Ao,xs,bo,Zs,aa,Ho,ca),Zs>=0&&bo.ch-Zs<5){var Ml=Zs+ka;return Zi.replaceRange("",{line:bo.line,ch:Zs},{line:bo.line,ch:Ml}),{line:bo.line,ch:Ml}}return null}(0,Mt.useEffect)(()=>{if(gi){let Ao=function(yo,Zi){const bo=yo.getValue();$o(bo),Co(new Date().getTime()),yo.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Tn&&(Pi?Tn(bo,Vo(bo)):Tn(bo))};return gi.on("change",Ao),()=>{gi.off("change",Ao)}}},[gi,Tn]),(0,Mt.useEffect)(()=>{if(gi)if(kn==null)gi.setValue(""),$o("");else{const Ao=window.scrollY||window.pageYOffset;kn!==gi.getValue()&&(gi.setValue(kn),$o(kn),gi.setCursor(Lr?1:gi.lineCount(),0),window.scrollTo(0,Ao))}},[gi,kn]);const xr=(0,Mt.useCallback)(Ao=>{const yo=gi.getCursor(),Zi=gi.getSelection();let bo=Zi.split(`
|
|
|
`);switch(Ao){case"bold":return gi.replaceSelection("**"+Zi+"**"),Zi===""&&gi.setCursor(yo.line,yo.ch+2),gi.focus();case"italic":return gi.replaceSelection("*"+Zi+"*"),Zi===""&&gi.setCursor(yo.line,yo.ch+1),gi.focus();case"code":return gi.replaceSelection("`"+Zi+"`"),Zi===""&&gi.setCursor(yo.line,yo.ch+1),gi.focus();case"inline-latex":return ko("inline-latex"),gi.focus();case"latex":return gi.replaceSelection("```latex\n"+Zi+"\n```"),gi.setCursor(yo.line+1,Zi.length+1),gi.focus();case"line-break":return gi.replaceSelection(`<br/>
|
|
|
`),gi.focus();case"list-ul":return Zi===""?gi.replaceSelection("- "+Zi):gi.replaceSelection(bo.map(xs=>xs===""?"":`- ${xs}`).join(`
|
|
|
`)),gi.focus();case"list-ol":return Zi===""?gi.replaceSelection("1. "+Zi):gi.replaceSelection(bo.map((xs,ca)=>xs===""?"":`${ca+1}. ${xs}`).join(`
|
|
|
`)),gi.focus();case"add-null-ch":return Zi===""&&gi.setCursor(yo.line,yo.ch),gi.replaceSelection(ys),gi.focus();case"add-signal":return Zi===""&&gi.setCursor(yo.line,yo.ch),gi.replaceSelection($t),gi.focus();case"add-multiple":return Zi===""&&gi.setCursor(yo.line,yo.ch),gi.replaceSelection(jo),gi.focus();case"inster-template-1":return Zi===""&&gi.setCursor(yo.line,yo.ch),gi.replaceSelection(ri),gi.focus();case"eraser":return gi.setValue(""),gi.focus();case"trigger-watch":return ur(!pi),gi.focus();case"trigger-full-screen":return uo(!Ur),gi.focus();case cr:ko(cr);return;case Yr:ko(Yr);return;case Ji:ko(Ji);return;case Mr:ko(Mr);return;case"maths-latex":ko("maths-latex");return;case mr:ko(mr);return;case Zr:ko(Zr);return;default:throw new Error}},[gi,pi,Ur]),Ne=(0,Mt.useCallback)((Ao,yo)=>{var Zi,bo,xs,ca,aa,Ho;switch(ko(""),qr){case cr:const{title:Ss,link:ai}=Ao;return gi.replaceSelection(`[${Ss}](${ai})`),gi.focus();case Yr:const{language:Ta,content:dc}=Ao;return gi.replaceSelection(["```"+Ta,dc,"```"].join(`
|
|
|
`)),gi.focus();case"maths-latex":for(var Zs=atob(Ao),ka=new Uint8Array(Zs.length),Ml=0;Ml<Zs.length;Ml++)ka[Ml]=Zs.charCodeAt(Ml);var Ga=new Blob([ka],{type:"image/png"});(0,Xe.I)(Ga,qo=>{qo.id?gi.replaceSelection(``):(qo==null?void 0:qo.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":gi.replaceSelection("`$$"+Ao+"$$`");break;case Ji:case Mr:case ao:const{src:hu,alt:kh}=Ao,Wr=yo,zs=(xs=(bo=(Zi=Wr==null?void 0:Wr.name)==null?void 0:Zi.split("."))==null?void 0:bo.pop)==null?void 0:xs.call(bo);return((ca=Wr==null?void 0:Wr.type)==null?void 0:ca.indexOf("image"))>-1||!(Wr!=null&&Wr.type)?Wr!=null&&Wr.align||Wr!=null&&Wr.width?gi.replaceSelection(`<p style="text-align:${Wr.align||"initial"}"><img width="${Wr.width?Wr.width+"%":"initial"}" src="${hu}" alt="${kh||""}" /></p>`):gi.replaceSelection(`<img width="100%" src="${hu}" alt="${kh||""}" />`):((aa=Wr==null?void 0:Wr.type)==null?void 0:aa.indexOf("video"))>-1?gi.replaceSelection(`<video width="100%" controls src="${hu}"></video>`):((Ho=Wr==null?void 0:Wr.type)==null?void 0:Ho.indexOf("pdf"))>-1?gi.replaceSelection(`<a href="${hu}?type=${Wr.type}&disposition=inline" target="_blank">${Wr.name}</a>`):ws.includes(zs)?gi.replaceSelection(`<a href="${hu}?type=office&disposition=inline" target="_blank">${Wr.name}</a>`):gi.replaceSelection(`[${Wr.name}](${hu})`),gi.focus();case Zr:const{row:Ms,col:Cs,align:Gs}=Ao;let cu=`
|
|
|
`;for(let qo=0;qo<Ms;qo++){let _s=[],ms=[];for(let Rr=0;Rr<Cs;Rr++)qo===1&&ms.push(Gr[Gs]),_s.push(" ");qo===1&&(cu+=`| ${ms.join(" | ")} |
|
|
|
`),cu+=`| ${_s.join(Cs===1?"":" | ")} |
|
|
|
`}return gi.replaceSelection(cu+`
|
|
|
`),gi.focus();default:throw new Error}},[gi,qr]),ls=(0,Mt.useMemo)(()=>{switch(qr){case cr:return Mt.createElement(Pn,{callback:Ne,onCancel:ra});case Yr:return Mt.createElement(Mn.Z,{callback:Ne,onCancel:ra});case Ji:return Mt.createElement(Xe.Z,{callback:Ne,onCancel:ra});case mr:return Mt.createElement(ae,{callback:Ne,onCancel:ra});case Zr:return Mt.createElement(rn,{callback:Ne,onCancel:ra});case"maths-latex":return Mt.createElement(ii,{showSaveButton:!0,callback:Ne});case"inline-latex":return Mt.createElement(_n.Z,{showSaveButton:!0,callback:Ne});default:return null}},[qr]);function ra(){ko("")}(0,Mt.useEffect)(()=>{if(To.current){let Ao=function(aa){xs=!0,ca=aa.pageY},yo=function(){xs=!1},Zi=function(aa){if(xs){let Ho=aa.pageY-ca;Ho<0&&(Ho=0),Ho>300&&(Ho=300);let Zs=ti+Ho+"px";Sr(Zs)}},bo=To.current,xs=!1,ca=0;return bo.addEventListener("mousedown",Ao),document.addEventListener("mousemove",Zi),document.addEventListener("mouseup",yo),()=>{bo.removeEventListener("mousedown",Ao),document.removeEventListener("mousemove",Zi),document.removeEventListener("mouseup",yo)}}},[gi,To]),(0,Mt.useEffect)(()=>{Sr(ti)},[ti]);const al=Is(De),ll=Is(jr),bl={width:al,height:ll},is=(0,Mt.useMemo)(()=>{if(di){let Ao=new Date(di),yo=Ao.getHours(),Zi=Ao.getMinutes(),bo=Ao.getSeconds();return yo=yo<10?"0"+yo:yo,Zi=Zi<10?"0"+Zi:Zi,bo=bo<10?"0"+bo:bo,`${yo}:${Zi}:${bo}`}return 0},[di]),Vo=Ao=>{const yo=[];if(Pi){let Zi=-1;Ao=Ao.replace(/(@▁▁@|@▁@)/g,function(bo,xs,ca){yo.push({multiLine:bo!==$t})})}return yo};function Es(){window.sessionStorage.removeItem(wi),Bo(!1),Co(0)}function Zo(){Bo(!1),Co(0),gi.setValue(window.sessionStorage.getItem(wi))}(0,Mt.useEffect)(()=>{_r[qr]&&qr!==Mr&&qr!==mr&&setTimeout(()=>{const Ao=document.getElementsByClassName("markdown-popup-form")[0],yo=window.innerWidth/2-Ao.offsetWidth/2,Zi=window.innerHeight/2-Ao.offsetHeight/2;Yo(yo),vs(Zi)},0)},[qr]);const Vs=Ao=>{Ao.preventDefault();const yo=Ao.clientX-xi,Zi=Ao.clientY-ha;document.body.onmousemove=bo=>{let xs=bo.clientX-yo,ca=bo.clientY-Zi;const aa=document.getElementsByClassName("markdown-popup-form")[0],Ho=window.innerWidth-aa.offsetWidth,Zs=window.innerHeight-aa.offsetHeight;xs=Math.max(0,Math.min(xs,Ho)),ca=Math.max(0,Math.min(ca,Zs)),yl(bo.clientX,bo.clientY,yo,Zi)&&(Yo(xs),vs(ca))},document.body.onmouseup=function(){document.body.onmousemove=null}},yl=(Ao,yo,Zi,bo)=>{const xs=document.body.clientHeight,ca=document.body.clientWidth;return Ao<20&&Zi>Ao||Ao>ca-20&&Zi<Ao||yo<20&&bo>yo||yo>xs-20&&bo<yo?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return Mt.createElement(Mt.Fragment,null,Mt.createElement("div",{className:"markdown-editor-wrapper",ref:ta},Mt.createElement("div",{className:`markdown-editor-container ${zr} ${pi?"on-preview":""} ${yi?"mini":""} ${Ur?"full-screen":""}`,style:bl},Mt.createElement(oe,{insertTemp:yn,watch:pi,fullScreen:Ur,showNullButton:oi,showNullProgramButton:Pi,onActionCallback:xr,hidetoolBar:er,extraUse:Uo}),Mt.createElement("div",{className:"markdown-editor-body"},Mt.createElement("div",{className:"codemirror-container"},Mt.createElement("textarea",{ref:da,placeholder:Pr})),pi?Mt.createElement("div",{ref:Ro,className:"preview-container"},Qn==="stex"&&Mt.createElement(Kt,{value:ps}),Qn!=="stex"&&Mt.createElement(re.Z,{disabledFill:nr,showProgramFill:Pi,value:ps})):null))),Oi?Mt.createElement("a",{ref:To,className:"editor-resize"}):null,qr===Mr&&Mt.createElement(Si,{callback:Ne,onCancel:ra}),qr===mr&&Mt.createElement(ae,{callback:Ne,onCancel:ra}),Mt.createElement(ue.Z,null,_r[qr]&&qr!==Mr&&qr!==mr?Mt.createElement(Nn.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:xi,top:ha},title:Mt.createElement("div",{style:{cursor:"move"},onMouseDown:Vs},_r[qr]),open:!0,onCancel:ra,footer:null,destroyOnClose:!0,width:qr===mr?"1200px":null,height:qr===mr?"80vh":null,className:"markdown-popup-form"},ls):null))}},28451:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return _t},I:function(){return oe}});var Mt=bt(78241),ce=bt(8591),ie=bt(92832),Ie=bt(81327),ee=bt(5871),Zt=bt(5112),Nt=bt(3113),jt=bt(77903),qt=bt(59301),Pt=bt(59301),re=Object.defineProperty,Kt=Object.defineProperties,Yt=Object.getOwnPropertyDescriptors,Ct=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,lt=(ue,de,be)=>de in ue?re(ue,de,{enumerable:!0,configurable:!0,writable:!0,value:be}):ue[de]=be,rt=(ue,de)=>{for(var be in de||(de={}))et.call(de,be)&<(ue,be,de[be]);if(Ct)for(var be of Ct(de))tt.call(de,be)&<(ue,be,de[be]);return ue},ht=(ue,de)=>Kt(ue,Yt(de));const{useForm:dt}=Mt.default,St={width:280,marginRight:10},It={labelCol:{span:5},wrapperCol:{span:19}};var _t=({callback:ue,onCancel:de})=>{const[be]=dt();let Jt=(0,qt.useRef)();function Ke(He){Jt.current.width=be.getFieldValue("width"),Jt.current.align=be.getFieldValue("align"),ue(He,Jt.current)}function Wt(He,Me){if(He.status===-1){ce.ZP.error(He.message);return}be.setFieldsValue({src:`/api/attachments/${He.id}`,type:Me.type})}function Ge(He){let Me=He.target.files[0];Jt.current=Me,oe(Me,Wt)}return Pt.createElement(Mt.default,ht(rt({form:be},It),{className:"upload-image-panel",onFinish:Ke,style:{width:470,overflow:"hidden"}}),Pt.createElement(Mt.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Pt.createElement("div",{className:"flex-container"},Pt.createElement(Mt.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Pt.createElement(ie.default,{style:St})),Pt.createElement(Gt,{onFileChange:Ge}))),Pt.createElement(Mt.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Pt.createElement(ie.default,{style:{width:264}})),Pt.createElement(Mt.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Pt.createElement(Ie.Z,null,Pt.createElement(Mt.default.Item,{name:"width",style:{margin:0}},Pt.createElement(ee.Z,{style:{width:264}})),Pt.createElement("span",{className:"ml8"},"%"))),Pt.createElement(Mt.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Pt.createElement(Zt.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"}]})),Pt.createElement("aside",null,Pt.createElement(Mt.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Pt.createElement(Nt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Pt.createElement(Nt.ZP,{type:"default",onClick:de},"\u53D6\u6D88"))))};function Gt({onFileChange:ue}){return Pt.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Pt.createElement("input",{type:"file",onChange:ue}))}function oe(ue,de){if(!ue)throw new String("\u6CA1\u6709\u6587\u4EF6");let be=new FormData;be.append("editormd-image-file",ue),be.append("file_param_name","editormd-image-file"),be.append("byxhr","true");var Jt=new window.XMLHttpRequest;Jt.withCredentials=!0,Jt.addEventListener("load",function(Ke){de(JSON.parse(Ke.target.responseText),ue)},!1),Jt.addEventListener("error",function(Ke){console.error(Ke)},!1),Jt.open("POST",`${jt.KI}/api/attachments.json`),Jt.send(be)}},79346:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return ie}});var Mt=bt(59301),ce=bt(4676);class ie extends Mt.Component{constructor(ee){super(ee);const Zt=window.document;this.node=Zt.createElement("div"),Zt.body.appendChild(this.node)}render(){const{children:ee}=this.props;return(0,ce.createPortal)(ee,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23954:function(hi,Cn,bt){"use strict";bt.d(Cn,{SV:function(){return le},ZP:function(){return At}});var Mt=bt(59301),ce=bt(76374);const ie={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},Ie={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"]},ee={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(`
|
|
|
`)}]},Zt={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(`
|
|
|
`)}]},Nt={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 jt=bt(53184),qt=bt.n(jt),Pt=Object.defineProperty,re=Object.defineProperties,Kt=Object.getOwnPropertyDescriptors,Yt=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,tt=(we,ae,me)=>ae in we?Pt(we,ae,{enumerable:!0,configurable:!0,writable:!0,value:me}):we[ae]=me,lt=(we,ae)=>{for(var me in ae||(ae={}))Ct.call(ae,me)&&tt(we,me,ae[me]);if(Yt)for(var me of Yt(ae))et.call(ae,me)&&tt(we,me,ae[me]);return we},rt=(we,ae)=>re(we,Kt(ae)),ht=(we,ae,me)=>new Promise((Re,Oe)=>{var ke=sn=>{try{Vn(me.next(sn))}catch(An){Oe(An)}},rn=sn=>{try{Vn(me.throw(sn))}catch(An){Oe(An)}},Vn=sn=>sn.done?Re(sn.value):Promise.resolve(sn.value).then(ke,rn);Vn((me=me.apply(we,ae)).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"]}},St=(we,ae)=>ae.map(me=>({label:me,kind:we.languages.CompletionItemKind.Keyword,insertText:me})),It=we=>Object.keys(dt.tables).map(ae=>({label:ae,kind:we.languages.CompletionItemKind.Variable,insertText:ae})),_t=(we,ae)=>{const me=dt.tables[we];return me?me.map(Re=>({label:Re,kind:ae.languages.CompletionItemKind.Field,insertText:Re})):[]};function Gt(we,ae,me,Re,Oe){let ke=ae.getWordUntilPosition(me),rn={startLineNumber:me.lineNumber,endLineNumber:me.lineNumber,startColumn:ke.startColumn,endColumn:ke.endColumn},Vn=Re.map(sn=>({label:sn,kind:we.languages.CompletionItemKind.Keyword,insertText:sn,insertTextRules:we.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:rn}));return Oe.map(sn=>{Vn.push(rt(lt({},sn),{range:rn}))}),Vn}var oe=we=>{dt.languages.map(Oe=>(we.languages.registerDocumentFormattingEditProvider(Oe,{provideDocumentFormattingEdits(ke,rn,Vn){return ht(this,null,function*(){const sn=qt()(ke.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:ke.getFullModelRange(),text:sn}]})}}),Oe));const ae=ee.quickKey.map(Oe=>({label:Oe.label,kind:we.languages.CompletionItemKind.Method,insertText:Oe.content,insertTextRules:we.languages.CompletionItemInsertTextRule.InsertAsSnippet})),me=Zt.quickKey.map(Oe=>({label:Oe.label,kind:we.languages.CompletionItemKind.Method,insertText:Oe.content,insertTextRules:we.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Re=Ie.quickKey.map(Oe=>({label:Oe.label,kind:we.languages.CompletionItemKind.Method,insertText:Oe.content,insertTextRules:we.languages.CompletionItemInsertTextRule.InsertAsSnippet}));we.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Oe,ke){var rn=Oe.getWordUntilPosition(ke),Vn={startLineNumber:ke.lineNumber,endLineNumber:ke.lineNumber,startColumn:rn.startColumn,endColumn:rn.endColumn},sn=Oe.getLineContent(ke.lineNumber).substring(rn.startColumn-2,rn.endColumn);return{suggestions:[...ee.keywords.map(An=>({label:An,kind:we.languages.CompletionItemKind.Function,documentation:An,insertText:An,insertTextRules:we.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Vn})),...ee.quickKey.map(An=>({label:An.label,kind:we.languages.CompletionItemKind.Function,documentation:An.content,insertText:sn.startsWith("#")?An.content.replace(/#/,""):An.content,insertTextRules:we.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Vn}))]}}}),we.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Oe,ke){var rn=Oe.getWordUntilPosition(ke),Vn={startLineNumber:ke.lineNumber,endLineNumber:ke.lineNumber,startColumn:rn.startColumn,endColumn:rn.endColumn};return{suggestions:[...ie.keywords.map(sn=>({label:sn,kind:we.languages.CompletionItemKind.Function,documentation:sn,insertText:sn,insertTextRules:we.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Vn}))]}}}),we.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Oe,ke){var rn=Oe.getWordUntilPosition(ke),Vn={startLineNumber:ke.lineNumber,endLineNumber:ke.lineNumber,startColumn:rn.startColumn,endColumn:rn.endColumn},sn=Oe.getLineContent(ke.lineNumber).substring(rn.startColumn-2,rn.endColumn);return{suggestions:[...Ie.keywords.map(An=>({label:An,kind:we.languages.CompletionItemKind.Function,documentation:An,insertText:An,insertTextRules:we.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Vn})),...Ie.quickKey.map(An=>({label:An.label,kind:we.languages.CompletionItemKind.Function,documentation:An.content,insertText:sn.startsWith("#")?An.content.replace(/#/,""):An.content,insertTextRules:we.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Vn}))]}}}),we.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Oe,ke){var rn=Oe.getWordUntilPosition(ke),Vn={startLineNumber:ke.lineNumber,endLineNumber:ke.lineNumber,startColumn:rn.startColumn,endColumn:rn.endColumn},sn=Oe.getLineContent(ke.lineNumber).substring(rn.startColumn-2,rn.endColumn);return{suggestions:[...Nt.keywords.map(An=>({label:An,kind:we.languages.CompletionItemKind.Function,documentation:An,insertText:An,insertTextRules:we.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Vn})),...Nt.quickKey.map(An=>({label:An.label,kind:we.languages.CompletionItemKind.Function,documentation:An.content,insertText:sn.startsWith("#")?An.content.replace(/#/,""):An.content,insertTextRules:we.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Vn}))]}}}),we.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Oe,ke){var rn=Oe.getWordUntilPosition(ke),Vn={startLineNumber:ke.lineNumber,endLineNumber:ke.lineNumber,startColumn:rn.startColumn,endColumn:rn.endColumn},sn=Oe.getLineContent(ke.lineNumber).substring(rn.startColumn-2,rn.endColumn);return{suggestions:[...Zt.keywords.map(An=>({label:An,kind:we.languages.CompletionItemKind.Function,documentation:An,insertText:An,insertTextRules:we.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Vn})),...Zt.quickKey.map(An=>({label:An.label,kind:we.languages.CompletionItemKind.Function,documentation:An.content,insertText:sn.startsWith("#")?An.content.replace(/#/,""):An.content,insertTextRules:we.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Vn}))]}}})};const ue="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var de=Object.defineProperty,be=(we,ae,me)=>ae in we?de(we,ae,{enumerable:!0,configurable:!0,writable:!0,value:me}):we[ae]=me,Jt=(we,ae,me)=>be(we,typeof ae!="symbol"?ae+"":ae,me);const Ke=class bw{constructor(ae,me,Re){this.placeholder=ae,this.editor=me,this.monaco=Re,me.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)}};Jt(Ke,"ID","editor.widget.placeholderHint");var Ge=Ke,He=bt(96236),Me=bt(8591),We=bt(6848),_e=bt(89392),ve=bt(34604),ne=bt(56102),Se=Object.defineProperty,Pn=Object.defineProperties,Mn=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertySymbols,Nn=Object.prototype.hasOwnProperty,Zn=Object.prototype.propertyIsEnumerable,fi=(we,ae,me)=>ae in we?Se(we,ae,{enumerable:!0,configurable:!0,writable:!0,value:me}):we[ae]=me,zn=(we,ae)=>{for(var me in ae||(ae={}))Nn.call(ae,me)&&fi(we,me,ae[me]);if(Xe)for(var me of Xe(ae))Zn.call(ae,me)&&fi(we,me,ae[me]);return we},Si=(we,ae)=>Pn(we,Mn(ae)),nn=(we,ae)=>{var me={};for(var Re in we)Nn.call(we,Re)&&ae.indexOf(Re)<0&&(me[Re]=we[Re]);if(we!=null&&Xe)for(var Re of Xe(we))ae.indexOf(Re)<0&&Zn.call(we,Re)&&(me[Re]=we[Re]);return me},Fi=(we,ae,me)=>new Promise((Re,Oe)=>{var ke=sn=>{try{Vn(me.next(sn))}catch(An){Oe(An)}},rn=sn=>{try{Vn(me.throw(sn))}catch(An){Oe(An)}},Vn=sn=>sn.done?Re(sn.value):Promise.resolve(sn.value).then(ke,rn);Vn((me=me.apply(we,ae)).next())});function Ti(we){return/^\d+$/.test(we)?`${we}px`:we}function Lt(){}let Ot=!1;const mt={"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 ft(we=[]){let ae=we;if(Array.isArray(we)){for(let me=0;me<we.length;me++){let Re=mt[we[me]];if(Re)return Re}return ae[0]}return mt[ae]||ae}let pt=null;var At=we=>{var ae=we,{width:me="100%",height:Re="100%",value:Oe,language:ke="javascript",style:rn={},options:Vn={},overrideServices:sn={},theme:An="vs-dark",onEditBlur:Bn,isCopy:ii=!1,onSave:_n,autoHeight:ji=!1,forbidCopy:cr=!1,onChange:Ji=Lt,editorDidMount:mr=Lt,onFocus:Mr=Lt,onBreakPoint:ao=Lt,breakPointValue:Yr=[],filename:Zr="educoder.txt",errorLine:kr,errorContent:Gr="",highlightLine:lo,openBreakPoint:_o=!1,placeholder:ns=""}=ae,co=nn(ae,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder"]);const ys=(0,Mt.useRef)(),jo=(0,Mt.useRef)({}),$t=(0,Mt.useRef)(),ri=(0,Mt.useRef)(),ws=(0,Mt.useRef)([]),Is=(0,Mt.useRef)(!1),ma=(0,Mt.useRef)(),va=(0,Mt.useRef)(),qs=(0,Mt.useRef)(!1),[_r,Dr]=(0,Mt.useState)(!1);function kn(){let On;return ys.current&&(On=new ce.Z(ui=>{for(let Cr of ui)(Cr.target.offsetHeight>0||Cr.target.offsetWidth>0)&&jo.current.instance.layout()}),On.observe(ys.current)),On}function Tn(){Me.ZP.warning({content:decodeURIComponent(ue),key:"monaco-editor-tip"})}const De=()=>{let On=jo.current.instance;if(Oe!=null&&On&&_r){const ui=On.getModel();ui&&Oe!==ui.getValue()&&(Ot=!0,ui.setValue(Oe),On.layout(),Ot=!1)}};(0,Mt.useEffect)(()=>{const On=ve.Z.subscribe("formatDocument",ui=>{var Cr;let or=jo.current.instance;(Cr=or==null?void 0:or.getAction)==null||Cr.call(or,"editor.action.formatDocument").run()});return window.updateMonacoValue=ui=>{Ji(ui)},On},[]),(0,Mt.useEffect)(()=>{var On;let ui=jo.current.instance;ri.current&&clearTimeout(ri.current),ri.current=setTimeout(()=>{De()},500),Oe&&(Oe!=null&&Oe.length)&&((On=ui==null?void 0:ui.updateOptions)==null||On.call(ui,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Oe.split(/\r\n|\r|\n/g).length))+3,5)}))},[Oe,_r,jo.current]),(0,Mt.useEffect)(()=>{if(kr&&jo.current&&jo.current.instance){let ui=jo.current.instance;ui.changeViewZones(function(Cr){var or=document.createElement("div");or.style.padding="10px 20px",or.style.width="calc(100% - 20px)",or.className="my-error-line-wrp",or.innerHTML=Gr,Cr.addZone({afterLineNumber:kr||11,heightInLines:3,domNode:or})});var On={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}};ui.addOverlayWidget(On),ui.revealPositionInCenter({lineNumber:20,column:1})}},[kr,jo.current,_r]);const ti=(On="",ui)=>{if(!On||On.trim()==="")return!0;const or=jo.current.instance.getModel().getLineTokens(ui);let zr=!1;for(let ar=0;ar<2;ar++)or.getStandardTokenType(ar)===1&&(zr=!0);return zr};(0,Mt.useEffect)(()=>{var On;const ui=(On=jo.current)==null?void 0:On.instance;if(ui&&_r&&cr){const Cr=ui.onDidBlurEditorWidget(()=>{qs.current=!1}),or=ui.onDidFocusEditorText(()=>{qs.current=!0});return()=>{Cr.dispose(),or.dispose()}}},[jo.current,_r,cr]),(0,Mt.useEffect)(()=>{var On;if((On=jo.current)!=null&&On.instance&&_r&&_o){let ui=jo.current.instance,Cr=ui.getModel();if(!Cr)return;(()=>{var $o;let pi=[],ur=[];const Ur=Cr.getAllDecorations();for(let qr of Ur)qr.options.className==="highlighted-line"&&(pi.push(($o=qr==null?void 0:qr.range)==null?void 0:$o.startLineNumber),ur.push(qr==null?void 0:qr.id));if(lo===pi[0])return;Cr.deltaDecorations(ur,[]);const uo=Cr.getLineCount();lo&&lo<=uo&&(ui.deltaDecorations([],[{range:new pt.Range(lo,1,lo,Cr.getLineMaxColumn(lo)),options:{isWholeLine:!0,className:"highlighted-line"}}]),ui.revealLineInCenter(lo))})();const zr=($o=!1)=>{var pi;let ur=[],Ur=[];const uo=Cr.getAllDecorations();for(let qr of uo)qr.options.linesDecorationsClassName==="breakpoints-select"&&(ur.push((pi=qr==null?void 0:qr.range)==null?void 0:pi.startLineNumber),Ur.push(qr==null?void 0:qr.id));if($o)return{lines:ur,ids:Ur};ao(ur)},ar=$o=>Fi(void 0,null,function*(){let pi={range:new pt.Range($o,1,$o,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Cr.deltaDecorations([],[pi]),zr()}),Lr=$o=>Fi(void 0,null,function*(){let pi=[];const ur=ui.getLineDecorations($o);for(let Ur of ur)Ur.options.linesDecorationsClassName==="breakpoints-select"&&pi.push(Ur.id);yield Cr.deltaDecorations(pi,[]),zr()}),nr=$o=>{let pi=ui.getLineDecorations($o);for(let ur of pi)if(ur.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,_e.isEqual)(Yr,zr(!0).lines)){Cr.deltaDecorations(zr(!0).ids,[]);const $o=Yr.map(pi=>({range:new pt.Range(pi,1,pi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Cr.deltaDecorations([],$o)}const Pr=ui.onDidChangeModelContent($o=>{let pi=ui.getPosition();if(pi){let ur=pi.lineNumber;clearTimeout(va.current),va.current=setTimeout(()=>{ti(Cr.getLineContent(ur),ur)?Lr(ur):nr(ur)?(Lr(ur),ar(ur)):zr()},100)}}),io=ui.onMouseDown($o=>{var pi,ur,Ur;if($o.target.detail&&((Ur=(ur=(pi=$o.target)==null?void 0:pi.element)==null?void 0:ur.className)!=null&&Ur.includes("line-numbers"))){let uo=$o.target.position.lineNumber;if(ti(Cr.getLineContent(uo),uo))return;nr(uo)?Lr(uo):ar(uo)}}),Uo=$o=>{let pi={range:new pt.Range($o,1,$o,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};ws.current=ui.deltaDecorations(ws.current,[pi])},gi=()=>{ws.current=ui.deltaDecorations(ws.current,[])},Qo=ui.onMouseMove($o=>{var pi,ur,Ur;if(gi(),$o.target.detail&&((Ur=(ur=(pi=$o.target)==null?void 0:pi.element)==null?void 0:ur.className)!=null&&Ur.includes("line-numbers"))){let uo=$o.target.position.lineNumber;if(ti(Cr.getLineContent(uo),uo))return;Uo(uo)}}),ps=ui.onMouseLeave(()=>{gi()});return()=>{Pr.dispose(),io.dispose(),Qo.dispose(),ps.dispose()}}},[jo.current,_r,Yr,lo,_o,ke]),(0,Mt.useEffect)(()=>{var On;(On=jo.current)!=null&&On.instance&&_o&&jo.current.instance.setPosition({lineNumber:0,column:0})},[lo]);function yi(){let On=jo.current.instance;if(On){const ui=On.getSelection(),Cr=jo.current.pastePos||{},or=new pt.Range(Cr.startLineNumber||ui.endLineNumber,Cr.startColumn||ui.endColumn,Cr.endLineNumber||ui.endLineNumber,Cr.endColumn||ui.endColumn);setTimeout(()=>{On.executeEdits("",[{range:or,text:""}])},300)}}function dn(On){(window.navigator.platform.match("Mac")?On.metaKey:On.ctrlKey)&&On.keyCode==83&&(On.preventDefault(),_n())}const Le=()=>{if(ji&&jo.current.instance){const On=jo.current.instance.getContentHeight();Pi(On<Re?Re:On)}else Pi(Re)};function yn(On){var ui=document.createEvent("MouseEvents");ui.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),On.dispatchEvent(ui)}const Qn=On=>{if(!qs.current)return;const{keyCode:ui,ctrlKey:Cr,metaKey:or,target:zr,type:ar}=On;return(ar==="paste"||(ui===67||ui===86)&&(or||Cr))&&zr.nodeName==="TEXTAREA"&&(Tn(),On.preventDefault()),!1};function wi(On,ui){var Cr=window.URL||window.webkitURL||window,or=new Blob([ui]),zr=document.createElementNS("http://www.w3.org/1999/xhtml","a");zr.href=Cr.createObjectURL(or),zr.download=On,yn(zr)}(0,Mt.useEffect)(()=>{Le()},[Le]),(0,Mt.useEffect)(()=>{ys.current&&!_r&&Promise.all([bt.e(8909),bt.e(3267)]).then(bt.bind(bt,71448)).then(On=>{try{pt=On,jo.current.instance=pt.editor.create(ys.current,{value:Oe,language:ft(ke),theme:An,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},sn);const ui=jo.current.instance;let zr=[...He.BH._menuItems].find(Pr=>Pr[0]._debugName=="EditorContext")[1],ar=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Lr=(Pr,io)=>{var Uo,gi;let Qo=Pr._first;do io.includes((gi=(Uo=Qo.element)==null?void 0:Uo.command)==null?void 0:gi.id)&&Pr._remove(Qo);while(Qo=Qo.next)};if(mr(ui,pt),setTimeout(()=>{Le(),jo.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{wi(Zr||"educoder.txt",ui.getValue())}})},500),jo.current.subscription=ui.onDidChangeModelContent(Pr=>{Is.current?clearTimeout(ma.current):(Le(),Ji(ui.getValue(),Pr)),ma.current=setTimeout(()=>{Is.current=!1},500)}),window.Monaco||oe(pt,ft(ke)),cr&&(Lr(zr,ar),ys.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Qn),window.removeEventListener("paste",Qn),window.addEventListener("keydown",Qn),window.addEventListener("paste",Qn)),window.Monaco=pt,Bn&&ui.onDidBlurEditorWidget(()=>{Bn(ui.getValue())}),Mr&&ui.onDidFocusEditorText(()=>{Mr(ui.getValue())}),cr)try{ui.onDidPaste(Pr=>{const io=ui.getSelection(),Uo=jo.current.pastePos||{},gi=new pt.Range(Uo.startLineNumber||io.endLineNumber,Uo.startColumn||io.endColumn,Uo.endLineNumber||io.endLineNumber,Uo.endColumn||io.endColumn);ui.executeEdits("",[{range:Pr.range,text:""}])})}catch(Pr){}let nr=kn();return ns&&typeof ns=="string"&&new Ge(ns,ui,pt),Dr(!0),()=>{const Pr=jo.current.instance;Pr.dispose();const io=Pr.getModel();io&&io.dispose(),jo.current.subscription&&jo.current.subscription.dispose(),nr.unobserve(ys.current)}}catch(ui){}})},[]),(0,Mt.useEffect)(()=>{if(jo.current.instance&&_r)return document.addEventListener("keydown",dn,!1),()=>{document.removeEventListener("keydown",dn)}},[_n,_r]),(0,Mt.useEffect)(()=>{let On=jo.current.instance;if(On&&_r){let ui=ft(ke);pt.editor.setModelLanguage(On.getModel(),ui)}},[ke,_r]),(0,Mt.useEffect)(()=>{jo.current.instance&&_r&&pt.editor.setTheme(An)},[An,_r]),(0,Mt.useEffect)(()=>{let On=jo.current.instance;$t.current=Vn,On&&_r&&(On.updateOptions(zn({},Vn)),setTimeout(()=>{On.getModel().updateOptions(zn({},Vn))},200))},[JSON.stringify(Vn),_r]),(0,Mt.useEffect)(()=>{let On=jo.current.instance;On&&_r&&On.layout()},[me,Re,_r]);const[Oi,qe]=(0,Mt.useState)(Ti(me)),[oi,Pi]=(0,Mt.useState)(Ti(Re)),er=Si(zn({},rn),{width:Oi,height:oi,position:"relative"});return Mt.createElement("div",{className:"my-monaco-editor",ref:ys,style:er},ii&&Mt.createElement(ne.CopyToClipboard,{text:Oe,onCopy:()=>Me.ZP.success("\u590D\u5236\u6210\u529F")},Mt.createElement(We.Z,{title:"\u590D\u5236\u4EE3\u7801"},Mt.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},Mt.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function le({width:we="100%",height:ae="100%",original:me,modified:Re,language:Oe,options:ke={}}){const rn=(0,Mt.useRef)(),[Vn,sn]=(0,Mt.useState)(null);function An(ji){let cr;return rn.current&&(cr=new ce.Z(Ji=>{for(let mr of Ji)(mr.target.offsetHeight>0||mr.target.offsetWidth>0)&&ji.layout()}),cr.observe(rn.current)),cr}(0,Mt.useEffect)(()=>(rn.current&&Promise.all([bt.e(8909),bt.e(9404)]).then(bt.bind(bt,2550)).then(ji=>{pt=ji;const cr=pt.editor.createDiffEditor(rn.current,Si(zn({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},ke),{wordWrap:!0}));sn(cr);let Ji=An(cr);return()=>{cr.dispose();const mr=cr.getModel();mr&&mr.dispose(),Ji.unobserve(rn.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,Mt.useEffect)(()=>{Vn&&Vn.setModel({original:pt.editor.createModel(me,Oe),modified:pt.editor.createModel(Re,Oe)})},[me,Re,Oe,Vn]);const Bn=Ti(we),ii=Ti(ae),_n={width:Bn,height:ii};return Mt.createElement("div",{className:"my-diff-editor",ref:rn,style:_n})}},85057:function(hi,Cn,bt){"use strict";bt.d(Cn,{jL:function(){return ee},w9:function(){return Nn},QD:function(){return Ji},cQ:function(){return ne},op:function(){return An},O5:function(){return qs},_b:function(){return kr},t7:function(){return rt},Gi:function(){return Fi},YG:function(){return Si},qp:function(){return re},vr:function(){return ao},qE:function(){return _n},Je:function(){return St},wb:function(){return He},cq:function(){return pt},tp:function(){return Ct}});var Mt=bt(59301),ce={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"},ie="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==",ee=({dataSource:_r=[],img:Dr,imgWidth:kn=346,title:Tn,sunTitle:De,bannerExtraContent:ti})=>Mt.createElement("div",{className:ce.banner},Mt.createElement("div",{className:ce.content},Mt.createElement("aside",null,Mt.createElement("p",null,Mt.createElement("b",null,Tn),Mt.createElement("span",null,De)),_r.length>0&&Mt.createElement("div",{className:ce.btns},_r.map((yi,dn)=>Mt.createElement("div",{key:dn,onClick:yi.click},yi.name,yi.sign?Mt.createElement("img",{src:ie,width:39}):null))),ti),Dr&&Mt.createElement("img",{style:{marginTop:33,marginRight:38},src:Dr,width:kn}))),Zt={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"},Nt=bt(92310),jt=bt.n(Nt),qt=bt(89392),re=({dataSource:_r=[],value:Dr,onChange:kn,onTitleChange:Tn,className:De,title:ti,titleWidth:yi=41,style:dn={},fontColor:Le="#6A7283",showCount:yn})=>{const[Qn,wi]=(0,Mt.useState)(0),[Oi,qe]=(0,Mt.useState)(!1),oi=(0,Mt.useRef)(null),Pi=(0,Mt.useRef)(null);return(0,Mt.useEffect)(()=>{var er;_r.length!==0&&(((er=oi==null?void 0:oi.current)==null?void 0:er.clientHeight)>97?wi(1):wi(0)),_r.length===0&&wi(0),qe(!1)},[_r]),Mt.createElement("div",{className:jt()(Zt.row,De),style:dn},Mt.createElement("div",{onClick:(0,qt.throttle)(()=>Tn==null?void 0:Tn(),2e3),style:{width:yi,marginTop:Oi?12:4},className:`${Zt.title} ${Tn?"current":""}`},ti),Mt.createElement("div",{className:Oi?`${Zt.tagsWrap} ${Zt.tagsBorderWrap}`:Zt.tagsWrap},Mt.createElement("div",{className:Zt.bar,ref:Pi,style:Qn>0?{height:Qn===1?97:"auto",overflow:Qn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},Mt.createElement("div",{className:Zt.tag,ref:oi},_r==null?void 0:_r.map(er=>Mt.createElement("span",{onClick:()=>kn(er.id),key:er.id,style:{color:Le},className:Dr===er.id?Zt.active:""},Mt.createElement("span",{title:er.name,className:Zt.name},er.name),!!yn&&Mt.createElement("span",{className:Zt.num},er.count))))),!!Qn&&Mt.createElement(Mt.Fragment,null,Qn===1?Mt.createElement("div",{onClick:()=>{var er;wi(2),((er=oi==null?void 0:oi.current)==null?void 0:er.clientHeight)>245?qe(!0):qe(!1)},className:Zt.action},"\u5C55\u5F00",Mt.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):Mt.createElement("div",{onClick:()=>{Pi.current.scrollTop=0,wi(1),qe(!1)},className:Zt.action},"\u6536\u8D77",Mt.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Kt={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"},Ct=({dataSource:_r=[],value:Dr,onChange:kn,className:Tn,style:De={}})=>Mt.createElement("div",{style:De,className:jt()(Kt.tabs,Tn)},_r.map(ti=>Mt.createElement("span",{onClick:()=>kn(ti.id),className:Dr===ti.id?Kt.active:"",key:ti.id},ti.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:_r=[],value:Dr="",onChange:kn,onInputChange:Tn=()=>{},className:De,style:ti={},placeholder:yi,allowClear:dn=!1})=>{var Le;const[yn,Qn]=(0,Mt.useState)(""),[wi,Oi]=(0,Mt.useState)("");(0,Mt.useEffect)(()=>{var Pi;let er=Dr;(Pi=JSON.stringify(Dr))!=null&&Pi.includes("{")&&(Qn(Dr.id),er=Dr.value||"");try{Oi(decodeURIComponent(er||""))}catch(On){Oi(decodeURIComponent(er||""))}},[Dr]);const qe=()=>{kn(encodeURIComponent(wi),yn||null)},oi=Pi=>{Pi!==yn&&(Qn(Pi),kn(encodeURIComponent(wi),Pi))};return Mt.createElement("div",{className:jt()(et.input,De),style:ti},!!_r.length&&Mt.createElement("div",{className:et.dropdown},Mt.createElement("div",{className:et.text},(Le=_r.find(Pi=>Pi.id===yn))==null?void 0:Le.name,Mt.createElement("i",{className:"iconfont icon-zhankai4"}),Mt.createElement("b",{className:et.b1}),Mt.createElement("b",{className:et.b2})),Mt.createElement("div",{className:et.menu},_r.map((Pi,er)=>Mt.createElement("div",{key:er,onClick:()=>oi(Pi.id)},Pi.name)))),Mt.createElement(tt.default,{onPressEnter:qe,value:wi,onChange:Pi=>{Oi(Pi.target.value),Tn(encodeURIComponent(Pi.target.value),yn||null)},bordered:!1,placeholder:yi}),Mt.createElement("i",{onClick:qe,className:"iconfont icon-sousuo9 font14 pl10 current"}))},ht={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"},St=({value:_r,onChange:Dr,className:kn,total:Tn,pageSize:De,style:ti={}})=>{const yi=_r<2,dn=_r>=Math.ceil(Tn/De);return Tn<=De?Mt.createElement(Mt.Fragment,null):Mt.createElement("div",{className:jt()(ht.quickPager,kn),style:ti},Mt.createElement("div",{onClick:()=>{yi||Dr(_r-1,"prev")},className:yi?ht.disabled:""},"\u4E0A\u4E00\u9875"),Mt.createElement("div",{onClick:()=>{dn||Dr(_r+1,"next")},className:dn?ht.disabled:""},"\u4E0B\u4E00\u9875"))},It={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"},_t=bt(71418),Gt=bt(6848),oe=bt(13570),ue=bt(3294),de=bt(955),be=bt(96908),Jt=bt(57177),Ke=bt(81378),Wt=bt(8797),He=({className:_r,dataSource:Dr=[],col:kn=4,right:Tn,bottom:De=23,precision:ti=0,wrapWidth:yi=1200,trackEventItems:dn,loading:Le})=>{const yn=Math.floor((yi-(kn-1)*Tn)/kn);return Mt.createElement(_t.Z,{spinning:Le},Mt.createElement("div",{className:jt()(It.list,_r)},!!Dr.length&&Dr.map((Qn,wi)=>{const{name:Oi,id:qe,identifier:oi,power:Pi,cover_image_id:er,pic:On}=Qn;return Mt.createElement("div",{className:It.wrap,key:qe,style:{width:yn,marginRight:(1+wi)%kn===0?0:Tn+ti,marginBottom:De}},Mt.createElement("a",{target:"_blank",href:`/shixuns/${oi}/challenges`,className:It.li,onClick:ui=>{ui.preventDefault(),dn&&(0,de.L9)([dn]),Pi&&(0,de.xg)(`/shixuns/${oi}/challenges`)}},Mt.createElement("div",{className:It.img},Mt.createElement("img",{className:It.cover,src:`${On}`}),Qn.is_jupyter&&Mt.createElement("img",{className:It.sign,src:be}),Qn.is_jupyter_lab&&Mt.createElement("img",{className:It.sign,src:Jt}),Qn.is_unity_3d&&Mt.createElement("img",{className:It.sign,src:Ke})),Mt.createElement("div",{className:It.name},Mt.createElement(Gt.Z,{title:Oi||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},Mt.createElement("span",{className:It.e},Oi||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),Mt.createElement("div",{className:It.tags},Mt.createElement(Gt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},Mt.createElement("span",null,Mt.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),Mt.createElement("span",null,Qn.challenges_count))),!!Qn.myshixuns_count&&Mt.createElement(Gt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Mt.createElement("span",null,Mt.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),Mt.createElement("span",null,Qn.myshixuns_count))),Mt.createElement(Gt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},Mt.createElement("span",null,Mt.createElement("span",null,Qn.level))),Mt.createElement("div",{className:It.rate},Mt.createElement(oe.Z,{allowHalf:!0,disabled:!0,defaultValue:Qn.score_info}),Mt.createElement("span",null,"\xA0",Qn.score_info?`${Qn.score_info}\u5206`:"5\u5206")))),!Pi&&Mt.createElement("div",{className:It.lockWrap},Mt.createElement("img",{src:`${ue.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Mt.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Dr.length&&Mt.createElement(Wt.Z,null)))},Me={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"},We=bt(24065),_e=bt(59301),ne=({className:_r,dataSource:Dr=[],col:kn=4,right:Tn,bottom:De=23,precision:ti=0,wrapWidth:yi=1200,trackEventItems:dn,loading:Le,onRemove:yn=()=>{},isCurrent:Qn=!0,showAlias:wi=!1})=>{const Oi=Math.floor((yi-(kn-1)*Tn)/kn),qe=[{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 _e.createElement(_t.Z,{spinning:Le},_e.createElement("div",{className:jt()(Me.list,_r)},!!(Dr!=null&&Dr.length)&&(Dr==null?void 0:Dr.map((oi,Pi)=>{var er;const{name:On,id:ui,identifier:Cr,featured:or,school_name:zr,image_url:ar,excellent:Lr,is_plan:nr}=oi;return _e.createElement("div",{key:ui,className:Me.wrap,style:{width:Oi,marginRight:(1+Pi)%kn===0?0:Tn+ti,marginBottom:De}},_e.createElement("a",{className:Me.li,onClick:Pr=>{Pr.preventDefault(),Pr.stopPropagation(),dn&&(0,de.L9)([dn]),(0,de.xg)(`/paths/${Cr}`)}},_e.createElement("div",{className:Me.img},_e.createElement("img",{className:Me.cover,src:`${ar}`}),Qn&&(0,We.bg)()&&(oi==null?void 0:oi.studying)&&_e.createElement("div",{className:`${Me.movebq} user-path-items`,onClick:Pr=>{Pr.stopPropagation(),yn(oi)}},_e.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),_e.createElement("span",{className:"c-red"},"\u79FB\u9664")),(er=oi==null?void 0:oi.subject_tags)==null?void 0:er.map((Pr,io)=>{var Uo,gi;if(io===0){const ps=(Uo=qe.find($o=>$o.name==Pr))==null?void 0:Uo.swimg;return _e.createElement("img",{className:Me.sign,src:ps,style:{left:"-4px"}})}const Qo=(gi=qe.find(ps=>ps.name==Pr))==null?void 0:gi.ptimg;return _e.createElement("img",{className:Me.sign,src:Qo,style:{left:`${48+52*(io-1)+2*io}px`}})}),_e.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(oi==null?void 0:oi.excellent)&&_e.createElement("div",{className:Me.bq},"\u5F00\u653E\u8BFE\u7A0B"))),_e.createElement("div",{className:Me.name},_e.createElement(Gt.Z,{title:wi&&(oi!=null&&oi.excellent_alias_name)?_e.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${On}`,_e.createElement("br",null),_e.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${oi==null?void 0:oi.excellent_alias_name}`)):On},_e.createElement("span",{className:Me.e},wi&&(oi==null?void 0:oi.excellent_alias_name)||On))),_e.createElement(Gt.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${zr}`},_e.createElement("div",{className:Me.unit},_e.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),zr)),_e.createElement("div",{className:Me.tags},_e.createElement("div",null,_e.createElement(Gt.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},_e.createElement("span",null,_e.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),_e.createElement("span",null,oi.stages_count))),_e.createElement(Gt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},_e.createElement("span",null,_e.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),_e.createElement("span",null,oi.members_count)))))))})),!Dr.length&&_e.createElement(Wt.Z,null)))},Se={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"},Pn="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",Mn=bt(59301),Nn=({className:_r,dataSource:Dr=[],col:kn=4,right:Tn,bottom:De=23,precision:ti=0,wrapWidth:yi=1200,trackEventItems:dn,loading:Le,handleVery:yn=()=>!0})=>{const Qn=Math.floor((yi-(kn-1)*Tn)/kn);return Mn.createElement(_t.Z,{spinning:Le},Mn.createElement("div",{className:jt()(Se.list,_r)},!!Dr.length&&Dr.map((wi,Oi)=>{const{subject_identifier:qe,id:oi,identifier:Pi,power:er}=wi,On=wi.is_public!=0&&wi.is_public;return Mn.createElement("div",{className:Se.wrap,key:oi,style:{width:Qn,marginRight:(1+Oi)%kn===0?0:Tn+ti,marginBottom:De}},Mn.createElement("a",{className:Se.li,onClick:ui=>{ui.preventDefault(),yn(wi==null?void 0:wi.first_category_url)&&(dn&&(0,de.L9)([dn]),(0,de.xg)(wi.first_category_url))}},Mn.createElement("div",{className:Se.top},Mn.createElement(Gt.Z,{title:wi.name},Mn.createElement("div",{className:Se.name},wi.name)),Mn.createElement("img",{className:Se.img,src:ue.Z.IMG_SERVER+"/images/"+wi.avatar_url}),Mn.createElement("div",{className:Se.text,title:wi.creator},wi.creator),qe&&Mn.createElement("div",{className:Se.btns},Mn.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Mn.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),On&&Mn.createElement("div",{className:Se.sign},"\u516C\u5F00")),Mn.createElement("div",{className:Se.bottom},wi.visits>0&&Mn.createElement(Gt.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Mn.createElement("span",null,Mn.createElement("i",{className:"iconfont icon-liulanyan"}),Mn.createElement("span",null,wi.visits))),wi.course_members_count>0&&Mn.createElement(Gt.Z,{title:"\u6210\u5458",placement:"bottom"},Mn.createElement("span",null,Mn.createElement("i",{className:"iconfont icon-chengyuan"}),wi.course_members_count)),wi.tasks_count>0&&Mn.createElement(Gt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Mn.createElement("span",null,Mn.createElement("i",{className:"iconfont icon-zuoye"}),wi.tasks_count)),wi.is_end?Mn.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Mn.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!wi.is_accessible&&Mn.createElement("div",{className:Se.lockWrap},Mn.createElement("img",{src:`${ue.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Mn.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Dr.length&&Mn.createElement(Wt.Z,null)))},Zn={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"},fi=bt(89070),Si=({dataSource:_r=[],value:Dr,onChange:kn,className:Tn,style:De={},tabBarExtraContent:ti})=>Mt.createElement("div",{className:jt()(Zn.tabs,Tn),style:De},Mt.createElement("div",{className:Zn.tabsWrap},_r.map((yi,dn)=>!(yi!=null&&yi.hide)&&Mt.createElement("aside",{className:Zn.tab,onClick:()=>{kn(yi.id),yi.link&&fi.history.push(yi.link)},key:dn},Mt.createElement("div",{className:Dr===yi.id?Zn.active:""},yi.name),(yi==null?void 0:yi.resetCount)==null&&(yi==null?void 0:yi.total)!==void 0&&Mt.createElement("span",null,"\uFF08",yi==null?void 0:yi.total,"\uFF09"),(yi==null?void 0:yi.resetCount)!==void 0&&(yi==null?void 0:yi.total)!==void 0&&Mt.createElement(Gt.Z,{title:(yi==null?void 0:yi.tip)!=null?yi==null?void 0:yi.tip:""},Mt.createElement("span",{style:{color:"#9096A3"}},"\uFF08",Mt.createElement("span",{style:{color:"#000"}},yi==null?void 0:yi.resetCount),"/",Mt.createElement("span",null,yi==null?void 0:yi.total),"\uFF09"))))),Mt.createElement("div",{className:Zn.tabBar},ti)),Fi=({className:_r,style:Dr={},children:kn})=>Mt.createElement("div",{className:jt()(_r),style:Dr},kn),Ti={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"},Lt=bt(38854),Ot=bt(20834);const mt=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var pt=({sortValue:_r,dropValue:Dr,className:kn,onSort:Tn,onDrop:De,dataSource:ti=mt})=>{var yi;return Mt.createElement("div",{className:jt()(Ti.orderWrap,kn)},Mt.createElement(Lt.Z,{dropdownRender:()=>Mt.createElement(Ot.default,null,ti.map((dn,Le)=>Mt.createElement(Ot.default.Item,{key:Le,onClick:()=>De(dn.id)},dn.name)))},Mt.createElement("span",{className:Ti.orderTextWrap},(yi=ti.find(dn=>Dr===dn.id))==null?void 0:yi.name)),Mt.createElement("span",{className:Ti.orderIconWrap},Mt.createElement("span",{className:Ti.orderAsc},Mt.createElement("i",{className:_r==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Ti.cursorPointer} ${Ti.active}`:`iconfont icon-sanjiaoxing-up font12 ${Ti.cursorPointer}`,onClick:()=>Tn(_r==="asc"?"desc":"asc")})),Mt.createElement("span",{className:Ti.orderDesc},Mt.createElement("i",{className:_r==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Ti.cursorPointer} ${Ti.active}`:`iconfont icon-sanjiaoxing-down font12 ${Ti.cursorPointer}`,onClick:()=>Tn(_r==="asc"?"desc":"asc")}))))},At={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"},le=bt(3113),we=Object.defineProperty,ae=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,Oe=(_r,Dr,kn)=>Dr in _r?we(_r,Dr,{enumerable:!0,configurable:!0,writable:!0,value:kn}):_r[Dr]=kn,ke=(_r,Dr)=>{for(var kn in Dr||(Dr={}))me.call(Dr,kn)&&Oe(_r,kn,Dr[kn]);if(ae)for(var kn of ae(Dr))Re.call(Dr,kn)&&Oe(_r,kn,Dr[kn]);return _r},rn=(_r,Dr)=>{var kn={};for(var Tn in _r)me.call(_r,Tn)&&Dr.indexOf(Tn)<0&&(kn[Tn]=_r[Tn]);if(_r!=null&&ae)for(var Tn of ae(_r))Dr.indexOf(Tn)<0&&Re.call(_r,Tn)&&(kn[Tn]=_r[Tn]);return kn},Vn=(_r,Dr,kn)=>new Promise((Tn,De)=>{var ti=Le=>{try{dn(kn.next(Le))}catch(yn){De(yn)}},yi=Le=>{try{dn(kn.throw(Le))}catch(yn){De(yn)}},dn=Le=>Le.done?Tn(Le.value):Promise.resolve(Le.value).then(ti,yi);dn((kn=kn.apply(_r,Dr)).next())}),An=_r=>{var Dr=_r,{className:kn,style:Tn,children:De,loading:ti=!1,openLoading:yi,onClick:dn=()=>{},size:Le="middle",shape:yn="round"}=Dr,Qn=rn(Dr,["className","style","children","loading","openLoading","onClick","size","shape"]);const[wi,Oi]=(0,Mt.useState)(!1);return Mt.createElement(le.ZP,ke({onClick:(0,qt.throttle)(qe=>Vn(void 0,null,function*(){yi&&Oi(!0);try{yield dn(qe)}catch(oi){console.log("error",oi)}yi&&Oi(!1)}),2e3,{leading:!0,trailing:!1}),className:jt()(At.btn,At[`${Le}-${yn}`],kn),style:Tn,size:Le,shape:yn,loading:wi||ti},Qn),De)},Bn={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"},_n=({className:_r,style:Dr,children:kn=null,onClick:Tn,title:De})=>Mt.createElement("div",{className:jt()(Bn.head,_r),style:Dr},Mt.createElement("span",{className:"primary-hover",onClick:Tn},Mt.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),Mt.createElement("b",{title:De},De),Mt.createElement("div",{className:Bn.node},kn)),ji={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"},Ji=({confirmShow:_r=!0,confirmTitle:Dr,confirmClick:kn,cancelShow:Tn=!0,cancelTitle:De,cancelClick:ti,className:yi,style:dn,confirmLoading:Le=!1})=>Mt.createElement("div",{className:jt()(ji.btns,yi),style:dn},_r&&Mt.createElement(le.ZP,{loading:Le,onClick:kn,type:"primary",className:ji.confirm},Dr),Tn&&Mt.createElement(le.ZP,{onClick:ti,className:ji.cancel},De)),mr={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"},ao=({className:_r,style:Dr={},LeftContent:kn,children:Tn,RightContent:De})=>Mt.createElement("div",{className:jt()(mr.fixedBottom,_r),style:Dr},Mt.createElement("div",{className:mr.wrap},Mt.createElement("div",{className:mr.left},kn),Mt.createElement("div",{className:mr.center},Tn),Mt.createElement("div",{className:mr.right},De))),Yr={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"},kr=({className:_r,style:Dr={},dataSource:kn=[]})=>Mt.createElement("div",{className:jt()(Yr.crumbs,_r),style:Dr},kn.map((Tn,De)=>De<kn.length-1?Mt.createElement(Mt.Fragment,{key:De},Tn.path||Tn.onClick?Mt.createElement("span",{className:Yr.hover,onClick:Tn!=null&&Tn.onClick?Tn.onClick:()=>fi.history.push(Tn.path)},Tn.name):Mt.createElement("span",null,Tn.name),Mt.createElement("span",null,"\xA0",">","\xA0")):Mt.createElement("span",{key:De,style:{color:"#5F6368"}},Tn.name))),Gr=bt(31797),lo=Object.defineProperty,_o=Object.defineProperties,ns=Object.getOwnPropertyDescriptors,co=Object.getOwnPropertySymbols,ys=Object.prototype.hasOwnProperty,jo=Object.prototype.propertyIsEnumerable,$t=(_r,Dr,kn)=>Dr in _r?lo(_r,Dr,{enumerable:!0,configurable:!0,writable:!0,value:kn}):_r[Dr]=kn,ri=(_r,Dr)=>{for(var kn in Dr||(Dr={}))ys.call(Dr,kn)&&$t(_r,kn,Dr[kn]);if(co)for(var kn of co(Dr))jo.call(Dr,kn)&&$t(_r,kn,Dr[kn]);return _r},ws=(_r,Dr)=>_o(_r,ns(Dr)),Is=(_r,Dr)=>{var kn={};for(var Tn in _r)ys.call(_r,Tn)&&Dr.indexOf(Tn)<0&&(kn[Tn]=_r[Tn]);if(_r!=null&&co)for(var Tn of co(_r))Dr.indexOf(Tn)<0&&jo.call(_r,Tn)&&(kn[Tn]=_r[Tn]);return kn};const{Countdown:ma}=Gr.default;var qs=_r=>{var Dr=_r,{onChange:kn}=Dr,Tn=Is(Dr,["onChange"]);const[De,ti]=(0,Mt.useState)(null);(0,Mt.useEffect)(()=>{typeof De=="number"&&De>=0&&kn(De)},[De]);const yi=dn=>{const Le=Math.floor(dn/1e3);ti(Le)};return Mt.createElement(ma,ws(ri({},Tn),{onChange:yi}))}},58856:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return ce}});var Mt=bt(59301);function ce(ie,Ie){const ee=(0,Mt.useRef)();(0,Mt.useEffect)(()=>{ee.current=ie}),(0,Mt.useEffect)(()=>{function Zt(){ee.current()}if(Ie!==null){let Nt=setInterval(Zt,Ie);return()=>clearInterval(Nt)}},[Ie])}},56575:function(hi,Cn,bt){"use strict";bt.r(Cn),bt.d(Cn,{default:function(){return dn}});var Mt=bt(59301),ce=bt(61186),ie=bt.n(ce),Ie=bt(86129),ee=bt.n(Ie),Zt=bt(99064),Nt=bt(89070),jt=bt(43418),qt=bt(8591),Pt=bt(61621),re=bt(66104),Kt=bt(95237),Yt=bt(43604),Ct=bt(3113),et=bt(6848),tt=bt(28103),lt=bt(92832),rt=bt(1710),ht=bt(57809),dt=bt(58421),St=bt(27812),It=bt(95869),_t=bt(87169),Gt=bt(26227),oe=bt(3294),ue=bt(24065),de=bt(955),be=bt(42441),Jt={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"},Ke={normal:{opacity:.8,shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",color:"#2e65ad"}};const Wt=({shixunHomeworks:Le,data:yn,globalSetting:Qn,loading:wi,dispatch:Oi})=>{var qe;const{shixunWorkReport:oi}=Le;let Pi=((qe=yn==null?void 0:yn.efficiency_list)==null?void 0:qe.length)-parseInt(yn==null?void 0:yn.myself_eff[0]);const er=()=>({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(ui){return ui.name===oi.username?"\u59D3\u540D\uFF1A"+oi.username+"<br/>\u5B66\u53F7\uFF1A "+oi.user_id+"<br/>\u6548\u7387\uFF1A"+(yn==null?void 0:yn.myself_eff[1]):ui.name+":"+ui.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:yn==null?void 0:yn.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:oi.username,xAxis:Pi,yAxis:yn==null?void 0:yn.myself_eff[1],value:yn==null?void 0:yn.myself_eff[1]}],itemStyle:{normal:{color:"#c23531"}}},markLine:{lineStyle:{normal:{type:"solid",color:"#ff6800"}},data:[{type:"average",name:"\u4E2D\u4F4D\u503C"}]}}]}),On=()=>({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(ui){var Cr=ui.value;if(ui.name===oi.username)return"\u59D3\u540D\uFF1A"+oi.username+"<br/>\u5B66\u53F7\uFF1A "+oi.user_id+"<br/>\u5F97\u5206\uFF1A"+(yn==null?void 0:yn.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:Ke,data:yn==null?void 0:yn.consume_list,symbolSize:function(ui){return Math.round(ui[2])},markPoint:{data:[{name:oi.username,xAxis:yn==null?void 0:yn.myself_object[0],yAxis:yn==null?void 0:yn.myself_object[1],value:yn==null?void 0:yn.myself_object[1]}],itemStyle:{normal:{color:"#c23531"}}}}]});return Mt.createElement(Mt.Fragment,null,Mt.createElement("aside",{className:"ml60 pr30"},Mt.createElement(Kt.Z,null,Mt.createElement(Yt.Z,{flex:"800px"},Mt.createElement(be.Z,{style:{width:750,height:580},option:er()})),Mt.createElement(Yt.Z,{flex:"1"},Mt.createElement("aside",{className:Jt.rightInfo},Mt.createElement("ul",null,Mt.createElement("li",null,Mt.createElement("span",null,"\u59D3\u540D")," ",Mt.createElement("span",{className:"ml30"},oi.username)),Mt.createElement("li",null,Mt.createElement("span",null,"\u5B66\u53F7")," ",Mt.createElement("span",{className:"ml30"},oi.student_id||"--")),Mt.createElement("li",null,Mt.createElement("span",null,"\u5B66\u4E60\u6548\u7387")," ",Mt.createElement("span",{className:"ml30 c-orange"},yn==null?void 0:yn.myself_eff[1])),Mt.createElement("li",null,Mt.createElement("span",null,"\u5F53\u524D\u6392\u540D")," ",Mt.createElement("span",{className:"ml30 c-orange"},yn==null?void 0:yn.myself_eff[0]))),Mt.createElement("p",null,"1\u4E2A\u5C0F\u5706\u70B9\u4EE3\u88681\u4E2A\u5B66\u751F\u7684\u5B66\u4E60\u6548\u7387",Mt.createElement("br",null),"\u7EA2\u8272\u6C34\u6EF4\u8868\u793A\u5F53\u524D\u5B66\u751F\u7684\u5B66\u4E60\u6548\u7387\u503C",Mt.createElement("br",null),"\u5C0F\u5706\u70B9\u8D8A\u9AD8\uFF0C\u5B66\u4E60\u6548\u7387\u8D8A\u9AD8",Mt.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"))))),Mt.createElement("aside",{className:"ml60 pr30"},Mt.createElement(Kt.Z,null,Mt.createElement(Yt.Z,{flex:"800px"},Mt.createElement(be.Z,{style:{width:750,height:580},option:On()})),Mt.createElement(Yt.Z,{flex:"1"},Mt.createElement("aside",{className:Jt.rightInfo},Mt.createElement("ul",null,Mt.createElement("li",null,Mt.createElement("span",null,"\u59D3\u540D")," ",Mt.createElement("span",{className:"ml30"},oi.username)),Mt.createElement("li",null,Mt.createElement("span",null,"\u5B66\u53F7")," ",Mt.createElement("span",{className:"ml30"},oi.student_id||"--")),Mt.createElement("li",null,Mt.createElement("span",null,"\u80FD\u529B")," ",Mt.createElement("span",{className:"ml30 c-orange"},yn==null?void 0:yn.myself_object[1]))),Mt.createElement("p",null,"1\u4E2A\u5C0F\u5706\u70B9\u4EE3\u88681\u4E2A\u5B66\u751F\u7684\u80FD\u529B\u503C",Mt.createElement("br",null),"\u7EA2\u8272\u6C34\u6EF4\u8868\u793A\u5F53\u524D\u5B66\u751F\u7684\u80FD\u529B\u503C",Mt.createElement("br",null),"\u5C0F\u5706\u5708\u8D8A\u5927\uFF0C\u8BC4\u6D4B\u6B21\u6570\u8D8A\u5C11",Mt.createElement("br",null)))))))};var Ge=(0,Nt.connect)(({shixunHomeworks:Le,loading:yn,globalSetting:Qn})=>({shixunHomeworks:Le,globalSetting:Qn,loading:yn.effects}))(Wt),He=bt(23954),Me=bt(5871),We=({defaultValue:Le,onBlur:yn,max:Qn,className:wi="game-score"})=>{const[Oi,qe]=(0,Mt.useState)(Le);(0,Mt.useEffect)(()=>{qe(Le)},[Le]);function oi(er){qe(er)}function Pi(){Oi!==Le&&yn(Oi>Qn?Qn:Oi)}return Mt.createElement(Me.Z,{max:Qn,min:0,className:wi,value:Oi,onChange:oi,onBlur:Pi})},_e=bt(12290),ve={md:"md___TEmcT"},ne=bt(59301),Se=Object.defineProperty,Pn=Object.defineProperties,Mn=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertySymbols,Nn=Object.prototype.hasOwnProperty,Zn=Object.prototype.propertyIsEnumerable,fi=(Le,yn,Qn)=>yn in Le?Se(Le,yn,{enumerable:!0,configurable:!0,writable:!0,value:Qn}):Le[yn]=Qn,zn=(Le,yn)=>{for(var Qn in yn||(yn={}))Nn.call(yn,Qn)&&fi(Le,Qn,yn[Qn]);if(Xe)for(var Qn of Xe(yn))Zn.call(yn,Qn)&&fi(Le,Qn,yn[Qn]);return Le},Si=(Le,yn)=>Pn(Le,Mn(yn));const nn=ht.default.Option,Fi={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,enableSplitViewResizing:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1};var Ti=(Le=>(Le[Le.SET_PATH=0]="SET_PATH",Le[Le.GET_PASSED_CONTENT=1]="GET_PASSED_CONTENT",Le))(Ti||{});function Lt(Le,yn){switch(yn.type){case 0:return Si(zn({},Le),{selectedPath:yn.payload});case 1:return Si(zn({},Le),{passedContent:yn.payload});default:throw new Error}}var Ot=({path:Le,game_id:yn,onPathChange:Qn,autoHeight:wi,diff_code_count:Oi,data:qe,game_codes_cn:oi})=>{var Pi,er,On,ui;const Cr=Le.split("\uFF1B").filter(io=>!!io),[or,zr]=(0,Mt.useReducer)(Lt,{selectedPath:Cr[0],passedContent:{language:"python",content:""}}),{selectedPath:ar,passedContent:Lr}=or;function nr(io){zr({type:0,payload:io})}const Pr={\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 ne.createElement(ne.Fragment,null,ne.createElement("h2",null," ",ne.createElement("span",null,oi,ne.createElement(et.Z,{title:ne.createElement("div",null,ne.createElement("div",null,"\u4EE3\u7801\u5C55\u793A\u89C4\u5219\uFF1A"),ne.createElement("div",null,"1.\u5C55\u793A\u5B66\u5458\u5728\u4F5C\u4E1A\u622A\u6B62\u524D\u5F97\u5206\u6700\u9AD8\u7684\u4EE3\u7801\u7248\u672C\u3002"),ne.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"),ne.createElement("div",null," 3.\u4F5C\u4E1A\u622A\u6B62\u540E\u63D0\u4EA4\u7684\u4EE3\u7801\u5C06\u4E0D\u4E88\u5C55\u793A\u3002"))},ne.createElement("i",{style:{marginLeft:10,color:"#3061D0",fontSize:16},className:"iconfont icon-tishixiaowenhao"}))),Oi&&ne.createElement("span",{style:{marginLeft:"50px"}},"\u4EE3\u7801\u4FEE\u6539\u884C\u6570 ",Oi),ne.createElement("span",null,ne.createElement(ht.default,{style:{width:200},value:ar,onChange:nr}," ",Cr.map(io=>ne.createElement(nn,{key:io,value:io},io))," "))," "),(ar==null?void 0:ar.split(".")[1])==="md"&&ne.createElement(_e.Z,{height:300,autoHeight:wi,defaultValue:((er=(Pi=qe==null?void 0:qe.filter(io=>io.path===ar))==null?void 0:Pi[0])==null?void 0:er.content)||"",className:ve.md}),(ar==null?void 0:ar.split(".")[1])!=="md"&&ne.createElement(He.ZP,{height:300,language:Lr.language,value:((ui=(On=qe==null?void 0:qe.filter(io=>io.path===ar))==null?void 0:On[0])==null?void 0:ui.content)||"",autoHeight:wi,theme:"default",isCopy:!0,options:Fi}))},mt=bt(92365),ft=bt(12911),pt=bt.n(ft),At=Object.defineProperty,le=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,me=(Le,yn,Qn)=>yn in Le?At(Le,yn,{enumerable:!0,configurable:!0,writable:!0,value:Qn}):Le[yn]=Qn,Re=(Le,yn)=>{for(var Qn in yn||(yn={}))we.call(yn,Qn)&&me(Le,Qn,yn[Qn]);if(le)for(var Qn of le(yn))ae.call(yn,Qn)&&me(Le,Qn,yn[Qn]);return Le},Oe=(Le,yn,Qn)=>new Promise((wi,Oi)=>{var qe=er=>{try{Pi(Qn.next(er))}catch(On){Oi(On)}},oi=er=>{try{Pi(Qn.throw(er))}catch(On){Oi(On)}},Pi=er=>er.done?wi(er.value):Promise.resolve(er.value).then(qe,oi);Pi((Qn=Qn.apply(Le,yn)).next())});const ke=({shixunHomeworks:Le,autoHeight:yn,classroomList:Qn,dispatch:wi})=>{var Oi,qe,oi,Pi,er,On,ui;const{shixunWorkReport:Cr}=Le,{stage_list:or,work_id:zr}=Cr,[ar,Lr]=(0,Mt.useState)(!1),[nr,Pr]=(0,Mt.useState)(!0),[io,Uo]=(0,Mt.useState)({left:0,top:0,bottom:0,right:0}),gi=(0,Mt.useRef)(null),[Qo,ps]=(0,Mt.useState)(!1),$o=(jr,Sr)=>{var Ci;const{clientWidth:Bo,clientHeight:xi}=window.document.documentElement,Yo=(Ci=gi.current)==null?void 0:Ci.getBoundingClientRect();Yo&&Uo({left:-Yo.left+Sr.x,right:Bo-(Yo.right-Sr.x),top:-Yo.top+Sr.y,bottom:xi-(Yo.bottom-Sr.y)})},pi=(0,Nt.useParams)(),ur=(0,ue.GJ)(),Ur={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};(0,Mt.useEffect)(()=>{console.log(pi)},[]);const uo=[{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"position",width:"100px"},{title:"\u8BE6\u7EC6\u4FE1\u606F",dataIndex:"output_detail",render:(jr,Sr,Ci)=>Mt.createElement("div",null,jr,Sr.is_work_end_evaluate&&Mt.createElement(de.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:jr=>ie()(jr).format("YYYY-MM-DD HH:mm")},{title:"\u64CD\u4F5C",width:"80px",dataIndex:"query_index",render:(jr,Sr)=>Mt.createElement("span",{className:"c-blue current",onClick:()=>Oe(void 0,null,function*(){var Ci,Bo;const xi=yield(0,mt.Lk)(Sr.game_identifier,{path:(Bo=(Ci=Sr.path)==null?void 0:Ci.replace(/\;/g,";"))==null?void 0:Bo.split(";")[0],query_index:Sr.query_index,homework_common_id:pi.categoryId});(xi==null?void 0:xi.status)===0&&(ps(xi),Lr(!0))})},Sr.query_index?"\u67E5\u770B\u4EE3\u7801":"")}],qr=[{title:"\u8C03\u5206\u7528\u6237",dataIndex:["user","name"],width:350,render:(jr,Sr)=>{var Ci;return Mt.createElement("span",null,Mt.createElement("img",{width:30,height:30,style:{borderRadius:"50%",marginRight:"10px"},src:oe.Z.IMG_SERVER+"/images/"+((Ci=Sr==null?void 0:Sr.user)==null?void 0:Ci.image_url)}),jr)}},{title:"\u8C03\u5206\u524D",dataIndex:"old_score",width:270,render:jr=>Mt.createElement("span",null,"\u4FEE\u6B63\u524D\u5206\u6570\uFF1A",jr,"\u5206")},{title:"\u8C03\u5206\u540E",dataIndex:"score",width:270,render:jr=>Mt.createElement("span",null,"\u4FEE\u6B63\u540E\u5206\u6570\uFF1A",jr,"\u5206")},{title:"\u8C03\u5206\u65F6\u95F4",dataIndex:"created_at",align:"right",render:jr=>Mt.createElement("span",null,"\u4FEE\u6B63\u65F6\u95F4\uFF1A",jr?ie()(jr).format("YYYY-MM-DD HH:mm"):"--")}];function ko(jr,Sr){return Oe(this,null,function*(){const{challenge_id:Ci}=or[jr],Bo=yield wi({type:"shixunHomeworks/changeScore",payload:{categoryId:pi.homeworkId,type:"report",score:Sr,challenge_id:Ci}});yield wi({type:"shixunHomeworks/getShixunWorkReport",payload:Re({},pi)}),Bo.status===0&&qt.ZP.success("\u64CD\u4F5C\u6210\u529F")})}function di(jr,Sr){return(0,Zt.U2)(`student_works/${zr}/rep_passed_content.json`,{path:Sr,game_id:jr})}const Co=Cr.shixun_detail;return Mt.createElement(Mt.Fragment,null,Co==null?void 0:Co.map(function(jr,Sr){var Ci,Bo;return Mt.createElement("div",{key:Sr},Mt.createElement("aside",{className:"pl30 pr30",key:Sr},Mt.createElement("div",{className:`${Jt.shixunTitle} mt10`},Mt.createElement("div",null,Mt.createElement("span",{className:"fa fa-code "}),Mt.createElement("strong",{className:"c-black"},"\u7B2C",Sr+1,"\u5173 ",Mt.createElement(Nt.Link,{className:"c-black",target:"_blank",to:`/tasks/${pi.coursesId}/${pi.categoryId}/${jr.game_identifier}`},jr.subject))),ur?Mt.createElement("span",null,"\u8C03\u5206\uFF1A",Mt.createElement(We,{className:"game-score",max:or[Sr].game_score_full,defaultValue:or[Sr].game_score,onBlur:xi=>{var Yo;if((0,ue.Rm)()&&!((Yo=Qn.AssistantObject.practice)!=null&&Yo.can_appraise)){qt.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}ko(Sr,xi)}})):null),Mt.createElement("div",{className:"font16 mt10"},jr.st===0&&(jr.path?typeof(jr==null?void 0:jr.game_codes_cn)=="string"?Mt.createElement("aside",{className:Jt.shixunWrp},Mt.createElement(Ot,{game_codes_cn:jr==null?void 0:jr.game_codes_cn,autoHeight:yn,path:jr.path,game_id:jr.id,data:jr.game_codes,diff_code_count:jr.diff_code_count,onPathChange:di})):Mt.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\u9009\u62E9\u9898\u6A21\u5F0F\u7684\u5B9E\u9A8C\uFF0C\u6682\u65F6\u65E0\u6CD5\u4F7F\u7528\u6B64\u529F\u80FD"),jr.st===1&&(jr.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\u9009\u62E9\u9898\u6A21\u5F0F\u7684\u5B9E\u9A8C\uFF0C\u6682\u65F6\u65E0\u6CD5\u4F7F\u7528\u6B64\u529F\u80FD")),Mt.createElement("aside",{className:"mt10 font16"},(Ci=jr.outputs)!=null&&Ci.length?Mt.createElement(rt.default,{columns:uo,pagination:{hideOnSinglePage:!0},dataSource:jr.outputs.map(xi=>Re(Re({},jr),xi))}):"\u672C\u5173\u65E0\u8BC4\u6D4B\u8BB0\u5F55"),Mt.createElement("aside",{className:"mt10 font16"},((Bo=jr==null?void 0:jr.adjust_review_score_list)==null?void 0:Bo.length)>0&&(0,ue.GJ)()&&Mt.createElement("div",null,Mt.createElement("strong",{className:"c-black font14"},"\u8C03\u5206\u8BB0\u5F55"),Mt.createElement(rt.default,{columns:qr,pagination:{hideOnSinglePage:!0},dataSource:jr.adjust_review_score_list,showHeader:!1})))))}),Mt.createElement(jt.default,{open:ar,width:900,okText:"\u5173\u95ED",cancelButtonProps:{style:{display:"none"}},onOk:()=>{ps({}),Lr(!1)},onCancel:()=>{ps({}),Lr(!1)},title:Mt.createElement("div",{style:{width:"100%",cursor:"move"},onMouseOver:()=>{nr&&Pr(!1)},onMouseOut:()=>{Pr(!0)},onFocus:()=>{},onBlur:()=>{}},"\u4EE3\u7801\u5185\u5BB9"),modalRender:jr=>Mt.createElement(pt(),{disabled:nr,bounds:io,nodeRef:gi,onStart:(Sr,Ci)=>$o(Sr,Ci)},Mt.createElement("div",{ref:gi},jr))},Mt.createElement("div",{style:{background:"#F6F7F9",padding:"30px 20px",marginBottom:20}},Mt.createElement("div",{style:{display:"flex",alignItems:"center"}},((Oi=Qo==null?void 0:Qo.data)==null?void 0:Oi.output_detail)==="\u8BC4\u6D4B\u901A\u8FC7"?Mt.createElement("i",{style:{color:"#0B9953",fontSize:18,marginRight:10},className:"iconfont icon-duigou1"}):Mt.createElement("i",{style:{color:"#E21010",fontSize:18,marginRight:10},className:"iconfont icon-jinggao1"}),Mt.createElement("div",{style:{color:((qe=Qo==null?void 0:Qo.data)==null?void 0:qe.output_detail)==="\u8BC4\u6D4B\u901A\u8FC7"?"#0B9953":"#E21010",fontSize:16,fontWeight:600}},(oi=Qo==null?void 0:Qo.data)==null?void 0:oi.output_detail)),Mt.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginTop:20}},Mt.createElement("div",null,Mt.createElement("span",{style:{color:"#6A7283"}},"\u8BC4\u6D4B\u65F6\u95F4"),Mt.createElement("span",{style:{marginLeft:8,color:"#232B40"}},ie()((Pi=Qo==null?void 0:Qo.data)==null?void 0:Pi.created_at).format("YYYY-MM-DD HH:mm:ss"))),Mt.createElement("div",null,Mt.createElement("span",{style:{color:"#6A7283"}},"\u7528\u65F6"),Mt.createElement("span",{style:{marginLeft:8,color:"#232B40"}},(er=Qo==null?void 0:Qo.data)==null?void 0:er.ts_time,"s")),Mt.createElement("div",null,Mt.createElement("span",{style:{color:"#6A7283"}},"\u5185\u5B58"),Mt.createElement("span",{style:{marginLeft:8,color:"#232B40"}},(On=Qo==null?void 0:Qo.data)==null?void 0:On.ts_mem,"mb")),Mt.createElement("div",null,Mt.createElement("span",{style:{color:"#6A7283"}},"\u7528\u4F8B\u901A\u8FC7\u7387"),Mt.createElement("span",{style:{marginLeft:8,color:"#232B40"}},((ui=Qo==null?void 0:Qo.data)==null?void 0:ui.test_set_passed_rate)*100,"%")))),Mt.createElement(He.ZP,{height:500,autoHeight:yn,language:"python",theme:"default",isCopy:!0,value:decodeURIComponent(escape(window.atob((Qo==null?void 0:Qo.content)||""))),options:Ur})))};var rn=(0,Nt.connect)(({shixunHomeworks:Le,loading:yn,globalSetting:Qn,classroomList:wi})=>({shixunHomeworks:Le,globalSetting:Qn,loading:yn.effects,classroomList:wi}))(ke),Vn=bt(78241),sn={greyText:"greyText___nOpNq",info:"info___nBB3c",label:"label___P6my8",blackContent:"blackContent___O4HnS",orangeContent:"orangeContent___JBF44",inputLabel:"inputLabel___B2GAs",tableTitle:"tableTitle___IqAxM",scoreTable:"scoreTable___RJvpU"},An=bt(30917),Bn=bt(59301),ii=Object.defineProperty,_n=Object.getOwnPropertySymbols,ji=Object.prototype.hasOwnProperty,cr=Object.prototype.propertyIsEnumerable,Ji=(Le,yn,Qn)=>yn in Le?ii(Le,yn,{enumerable:!0,configurable:!0,writable:!0,value:Qn}):Le[yn]=Qn,mr=(Le,yn)=>{for(var Qn in yn||(yn={}))ji.call(yn,Qn)&&Ji(Le,Qn,yn[Qn]);if(_n)for(var Qn of _n(yn))cr.call(yn,Qn)&&Ji(Le,Qn,yn[Qn]);return Le},Mr=(Le,yn,Qn)=>new Promise((wi,Oi)=>{var qe=er=>{try{Pi(Qn.next(er))}catch(On){Oi(On)}},oi=er=>{try{Pi(Qn.throw(er))}catch(On){Oi(On)}},Pi=er=>er.done?wi(er.value):Promise.resolve(er.value).then(qe,oi);Pi((Qn=Qn.apply(Le,yn)).next())});const ao=({shixunHomeworks:Le,dispatch:yn,classroomList:Qn})=>{const{shixunWorkReport:wi}=Le,Oi=(0,Nt.useParams)(),[qe,oi]=(0,Mt.useState)(!1),[Pi]=Vn.default.useForm(),[er,On]=jt.default.useModal(),[ui,Cr]=(0,Mt.useState)(!1),[or,zr]=(0,Mt.useState)(!1);(0,Mt.useEffect)(()=>{var nr,Pr,io,Uo;Le.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4"&&Pi.setFieldsValue({comment:(Pr=(nr=Le.actionTabs.selectArrs)==null?void 0:nr.data)==null?void 0:Pr.work_comment,hidden_comment:(Uo=(io=Le.actionTabs.selectArrs)==null?void 0:io.data)==null?void 0:Uo.work_comment_hidden})},[Le.actionTabs.key]);const ar=()=>Mr(void 0,null,function*(){const nr=Pi.getFieldsValue();(yield(0,Zt.ZP)(`/api/student_works/${Oi.homeworkId}/shixun_work_comment.json`,{method:"post",body:{hidden_comment:nr.hidden_comment,comment:nr.comment}})).status===0&&(qt.ZP.success("\u8BC4\u9605\u6210\u529F"),Pi.resetFields(),yn({type:"shixunHomeworks/setActionTabs",payload:{}}),yn({type:"shixunHomeworks/getShixunWorkReport",payload:mr({},Oi)}))}),Lr=[{title:"\u5173\u5361",dataIndex:"name",render:(nr,Pr,io)=>io+1},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",render:(nr,Pr,io)=>Bn.createElement("div",null,nr,Pr.complete_status===4&&Bn.createElement(de.vA,{status:Pr.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:nr=>nr?"\u662F":"\u5426"},{title:"\u5173\u5361\u5F97\u5206",dataIndex:"game_score",align:"center",render:(nr,Pr)=>Bn.createElement("div",null,Bn.createElement("span",{style:{color:parseFloat(Pr.game_score_full)!==parseFloat(nr)?"#E30000":"#53C41B"}},nr),"/",Pr.game_score_full)},{title:"\u8C03\u5206",dataIndex:"game_score",align:"center",fixed:"right",render:(nr,Pr)=>(0,ue.GJ)()?Bn.createElement(We,{max:Pr.game_score_full,defaultValue:parseFloat(nr),onBlur:io=>Mr(void 0,null,function*(){var Uo,gi;if((0,ue.Rm)()&&!((Uo=Qn.AssistantObject.practice)!=null&&Uo.can_appraise)){qt.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 Qo=yield yn({type:"shixunHomeworks/changeScore",payload:{categoryId:Oi.homeworkId,type:"report",score:io,challenge_id:Pr.challenge_id}});(gi=Le==null?void 0:Le.actionTabs)==null||gi.fn(),yield yn({type:"shixunHomeworks/getShixunWorkReport",payload:mr({},Oi)}),Qo.status===0&&qt.ZP.success("\u64CD\u4F5C\u6210\u529F")})}):nr}];return Bn.createElement(Bn.Fragment,null,On,Bn.createElement(jt.default,{centered:!0,width:1080,title:"\u70B9\u8BC4\u4F5C\u4E1A",open:Le.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Mr(void 0,null,function*(){var nr;if((0,ue.Rm)()&&!((nr=Qn.AssistantObject.practice)!=null&&nr.can_appraise)){qt.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 Pr=Pi.getFieldsValue();JSON.stringify(Pr)==="{}"||Pr.hidden_comment===""&&Pr.comment===""?oi(!0):ar()}),onCancel:()=>{yn({type:"shixunHomeworks/setActionTabs",payload:{}})}},Bn.createElement(Kt.Z,{justify:"space-between",className:sn.info},Bn.createElement(Yt.Z,null,Bn.createElement("span",{className:`${sn.label} ${sn.greyText}`},"\u59D3\u540D"),Bn.createElement("span",{className:sn.blackContent},wi==null?void 0:wi.username)),Bn.createElement(Yt.Z,null,Bn.createElement("span",{className:`${sn.label} ${sn.greyText}`},"\u5B66\u53F7"),Bn.createElement("span",{className:sn.blackContent},(wi==null?void 0:wi.student_id)||"--")),Bn.createElement(Yt.Z,null,Bn.createElement("span",{className:`${sn.label} ${sn.greyText}`},"\u73ED\u7EA7"),Bn.createElement("span",{className:sn.blackContent},(wi==null?void 0:wi.group_name)||"--")),Bn.createElement(Yt.Z,null,Bn.createElement("span",{className:`${sn.label} ${sn.greyText}`},"\u5173\u5361\u5F97\u5206"),Bn.createElement("span",{className:sn.orangeContent},(wi==null?void 0:wi.challenge_score)||"--")),Bn.createElement(Yt.Z,null,Bn.createElement("span",{className:`${sn.label} ${sn.greyText}`},"\u6548\u7387\u5206"),Bn.createElement("span",{className:sn.orangeContent},(wi==null?void 0:wi.eff_score)||"--")),Bn.createElement(Yt.Z,null,Bn.createElement("span",{className:`${sn.label} ${sn.greyText}`},"\u8865\u4EA4\u6263\u5206"),Bn.createElement("span",{className:sn.orangeContent},(wi==null?void 0:wi.late_penalty)||"--")),Bn.createElement(Yt.Z,null,Bn.createElement("span",{className:`${sn.label} ${sn.greyText}`},"\u6700\u7EC8\u6210\u7EE9"),Bn.createElement("span",{className:sn.orangeContent},(wi==null?void 0:wi.work_score)||"--"))),Bn.createElement(Vn.default,{form:Pi,onChange:()=>{qe&&oi(!1)}},Bn.createElement(Kt.Z,{wrap:!1,align:"middle",justify:"space-between"},Bn.createElement(Yt.Z,null,Bn.createElement("div",{className:`${sn.inputLabel} ${sn.greyText}`},"\u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1")),Bn.createElement(Yt.Z,null,Bn.createElement(An.Z,{isShowComponent:(0,ue.G5)(),ModalProps:{open:ui,onCancel:()=>{Cr(!1)}},onDataSelect:(nr,Pr)=>Mr(void 0,[nr,Pr],function*(io,{node:Uo}){const gi=()=>{Pi.setFieldsValue({comment:Uo==null?void 0:Uo.value}),Cr(!1)};if(Pi.getFieldValue("comment")){er.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:gi});return}gi()})},Bn.createElement(Ct.ZP,{style:{padding:0,height:"auto"},icon:Bn.createElement("i",{className:"iconfont icon-changyongpingyu"}),type:"link",onClick:nr=>{Cr(!0)}},"\u5E38\u7528\u8BC4\u8BED")))),Bn.createElement(Vn.default.Item,{name:"comment"},Bn.createElement(lt.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3})),Bn.createElement(Kt.Z,{wrap:!1,align:"middle",justify:"space-between"},Bn.createElement(Yt.Z,null,Bn.createElement("div",{className:`${sn.inputLabel} ${sn.greyText}`},"\u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1")),Bn.createElement(Yt.Z,null,Bn.createElement(An.Z,{isShowComponent:(0,ue.G5)(),ModalProps:{open:or,onCancel:()=>{zr(!1)}},onDataSelect:(nr,Pr)=>Mr(void 0,[nr,Pr],function*(io,{node:Uo}){const gi=()=>{Pi.setFieldsValue({hidden_comment:Uo==null?void 0:Uo.value}),zr(!1)};if(Pi.getFieldValue("hidden_comment")){er.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:gi});return}gi()})},Bn.createElement(Ct.ZP,{style:{padding:0,height:"auto"},icon:Bn.createElement("i",{className:"iconfont icon-changyongpingyu"}),type:"link",onClick:nr=>{zr(!0)}},"\u5E38\u7528\u8BC4\u8BED")))),Bn.createElement(Vn.default.Item,{name:"hidden_comment"},Bn.createElement(lt.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3}))),qe&&Bn.createElement("p",{className:"c-red"},"\u8BC4\u9605\u5185\u5BB9\u81F3\u5C11\u6709\u4E00\u4E2A\u4E0D\u4E3A\u7A7A"),Bn.createElement("div",{className:sn.tableTitle},"\u5173\u5361\u6210\u7EE9"),Bn.createElement(rt.default,{className:sn.scoreTable,dataSource:wi.stage_list,rowKey:"challenge_id",pagination:!1,columns:Lr,scroll:{x:"max-content"}})))};var Yr=(0,Nt.connect)(({shixunHomeworks:Le,classroomList:yn})=>({shixunHomeworks:Le,classroomList:yn}))(ao),Zr=bt(68971),kr=bt(85149),Gr=bt(36708),lo=bt(44164),_o=bt.n(lo),ns={wrap:"wrap___LZOi9",line:"line___oju0L"},co=bt(41069),jo=({detailData:Le})=>{var yn;return Mt.createElement("div",{className:ns.wrap},Mt.createElement(co.ij,{hideBar:!0,actionAnalysis:!0,loading:!1,emptyData:[(0,co.Uf)(Le),(Le==null?void 0:Le.photos)||[]],title:"\u5B9E\u8BAD\u5B66\u4E60\u5206\u6790",noDataText:"\u8BE5\u5B66\u751F\u65E0\u5B66\u4E60\u884C\u4E3A\u5206\u6790\u6570\u636E"},Mt.createElement(co.ZP,{hideBar:!0,title:"\u5B9E\u8BAD\u5B66\u4E60\u5206\u6790",data:(0,co.Uf)(Le)}),!!((yn=Le==null?void 0:Le.photos)!=null&&yn.length)&&Mt.createElement(Mt.Fragment,null,Mt.createElement("div",{className:ns.line}),Mt.createElement(co._s,{dataSource:Le==null?void 0:Le.photos,right:21,col:4,wrapWidth:1140}))))},$t=bt(78297),ri=bt(59301),ws=Object.defineProperty,Is=Object.defineProperties,ma=Object.getOwnPropertyDescriptors,va=Object.getOwnPropertySymbols,qs=Object.prototype.hasOwnProperty,_r=Object.prototype.propertyIsEnumerable,Dr=(Le,yn,Qn)=>yn in Le?ws(Le,yn,{enumerable:!0,configurable:!0,writable:!0,value:Qn}):Le[yn]=Qn,kn=(Le,yn)=>{for(var Qn in yn||(yn={}))qs.call(yn,Qn)&&Dr(Le,Qn,yn[Qn]);if(va)for(var Qn of va(yn))_r.call(yn,Qn)&&Dr(Le,Qn,yn[Qn]);return Le},Tn=(Le,yn)=>Is(Le,ma(yn)),De=(Le,yn)=>{var Qn={};for(var wi in Le)qs.call(Le,wi)&&yn.indexOf(wi)<0&&(Qn[wi]=Le[wi]);if(Le!=null&&va)for(var wi of va(Le))yn.indexOf(wi)<0&&_r.call(Le,wi)&&(Qn[wi]=Le[wi]);return Qn},ti=(Le,yn,Qn)=>new Promise((wi,Oi)=>{var qe=er=>{try{Pi(Qn.next(er))}catch(On){Oi(On)}},oi=er=>{try{Pi(Qn.throw(er))}catch(On){Oi(On)}},Pi=er=>er.done?wi(er.value):Promise.resolve(er.value).then(qe,oi);Pi((Qn=Qn.apply(Le,yn)).next())});const yi=Le=>{var yn=Le,{shixunHomeworks:Qn,classroomList:wi,globalSetting:Oi,loading:qe,user:oi,dispatch:Pi}=yn,er=De(yn,["shixunHomeworks","classroomList","globalSetting","loading","user","dispatch"]),On,ui,Cr;const[or,zr]=(0,Mt.useState)(kn({},(0,Nt.useParams)())),ar=(0,Nt.useParams)(),[Lr,nr]=(0,Mt.useState)({page:1,page_size:10}),Pr=(0,Nt.useLocation)(),[]=(0,Mt.useState)([]),[io,Uo]=(0,Mt.useState)(),gi=(0,Mt.useRef)(),Qo=(0,Mt.useRef)(),[ps,$o]=(0,Mt.useState)(!1),[pi,ur]=(0,Mt.useState)(!0),[Ur,uo]=(0,Mt.useState)(!1),[qr,ko]=(0,Mt.useState)(!1),{shixunWorkReport:di}=Qn,[Co,jr]=(0,Mt.useState)(),[Sr,Ci]=(0,Mt.useState)([]),[Bo,xi]=(0,Mt.useState)(),[Yo,ha]=(0,Mt.useState)("all"),vs=(0,ue.GJ)(),[da,ta]=(0,Mt.useState)(new(ee())),[To,Ro]=(0,Mt.useState)(0),[us,os]=(0,Mt.useState)(!1),[xr,Ne]=(0,Mt.useState)(!1),[ls,ra]=(0,Mt.useState)(!1),[al,ll]=(0,Mt.useState)(""),[bl,is]=(0,Mt.useState)(!1),[Vo,Es]=(0,Mt.useState)(!0),[Zo,Vs]=(0,Mt.useState)(0),yl=(0,Mt.useRef)(JSON.parse(sessionStorage.all_student_works_params||"{}")),Ao=(0,Mt.useRef)(),yo=()=>ti(void 0,null,function*(){(oi.userInfo.is_teacher||oi.userInfo.admin)&&(is(!0),Es(!1))});(0,Mt.useEffect)(()=>{var Wr;(0,ue.Rm)()&&wi.AssistantObject.practice&&!((Wr=wi.AssistantObject.practice)!=null&&Wr.can_view)&&Nt.history.replace("/403")},[(On=wi.AssistantObject.practice)==null?void 0:On.can_view]),(0,Mt.useEffect)(()=>{yo(),console.log("\u6253\u5370\u7684------",di),Ao.current=di==null?void 0:di.next_student_work_id,ll(di.repeat_minus_score)},[di,oi]),(0,Mt.useEffect)(()=>{console.log("\u89E6\u53D1\u8FD9",di.work_score),Vs(di.work_score)},[di.work_score,al]),(0,Mt.useEffect)(()=>(Pi({type:"globalSetting/footerToggle",payload:!1}),()=>{Pi({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,Mt.useEffect)(()=>{var Wr;if(di){let zs=[];(Wr=di==null?void 0:di.target_test_sets)==null||Wr.map((Ms,Cs)=>{var Gs;(Gs=Ms==null?void 0:Ms.targets)==null||Gs.map((cu,qo)=>{var _s;cu.name=Ms==null?void 0:Ms.name,cu.total_target_score=Ms==null?void 0:Ms.total_target_score,cu.actual_target_score=Ms==null?void 0:Ms.actual_target_score,cu.rowSpan=qo===0?(_s=Ms==null?void 0:Ms.targets)==null?void 0:_s.length:0,cu.order=Cs+1,zs.push(cu)})}),jr(zs),(0,ue.Rm)()&&Pi({type:"classroomList/getAssistantPermissions",payload:{course_id:or.coursesId}})}},[di]),(0,Mt.useEffect)(()=>{Qn.actionTabs.key==="\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"&&(di==null?void 0:di.students_count)>0&&!pi&&setTimeout(()=>{ka("all")},800)},[di==null?void 0:di.homework_common_id,pi]),(0,Mt.useEffect)(()=>{zr(kn({},ar))},[Pr.pathname]);const Zi=()=>{document.body.scrollIntoView()},bo=Wr=>{Lr.page=Wr,nr(kn({},Lr)),xs(Lr,Yo)},xs=(Wr,zs)=>ti(void 0,null,function*(){uo(!0);const Ms=yield(0,Zt.ZP)(`/api/student_works/${or==null?void 0:or.homeworkId}/adjust_review_score_histories.json`,{method:"get",params:Tn(kn({},Wr),{challenge_id:zs=="all"?null:zs})});(Ms==null?void 0:Ms.status)===0&&(Ci(Ms==null?void 0:Ms.list),xi(Ms==null?void 0:Ms.count)),uo(!1)});function ca(){return ti(this,null,function*(){yl.current=JSON.parse(sessionStorage.all_student_works_params||"{}")})}const aa=()=>{document.querySelectorAll("canvas").forEach(Wr=>{(!Wr.clientWidth||!Wr.clientHeight)&&Wr.remove()})},Ho=()=>{gi.current.offsetHeight>62e3?ko(!1):ko(!0)},Zs=Wr=>ti(void 0,null,function*(){const zs=yield(0,Gr.t1)({homeworkId:Wr||or.homeworkId});Uo(zs==null?void 0:zs.data)}),ka=Wr=>ti(void 0,null,function*(){var zs,Ms,Cs,Gs;let cu=0,qo;qo=jt.default.info({width:460,title:ri.createElement("div",null,"\u6B63\u5728\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A,",ri.createElement("span",{className:"c-red"},"\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3")),content:ri.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",ri.createElement("span",{className:"c-blue"},cu+1),"/",Wr!=="all"?1:di==null?void 0:di.students_count,ri.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3"),maskClosable:!1,className:Jt.modal,onOk:()=>{}});const _s={margin:[0,0],filename:`${di!=null&&di.student_id&&(di==null?void 0:di.student_id)!="--"?di==null?void 0:di.student_id:""}${di.username}.pdf`,html2canvas:{useCORS:!0,letterRendering:!0},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}},ms=da.folder(di==null?void 0:di.shixun_name);function Rr(ul){return ti(this,null,function*(){yield Zs(ul||Ao.current);const Os=yield Pi({type:"shixunHomeworks/getShixunWorkReport",payload:kn({homeworkId:ul||Ao.current},yl.current||{})});Ao.current=Os==null?void 0:Os.next_student_work_id,Zi(),cu++,setTimeout(()=>ti(this,null,function*(){var yu,Uu,Vl,fr;aa();const nl=ms.folder(`${Os==null?void 0:Os.group_name}`).folder(`${Os!=null&&Os.student_id&&(Os==null?void 0:Os.student_id)!="--"?Os.student_id+"+":""}${Os==null?void 0:Os.username}`),Cl=document.querySelector("#export-all").children;let ru=_o()();for(let $a=0;$a<Cl.length;$a++)yield ru.set(_s).from(Cl[$a]).toContainer().toCanvas().toPdf().get("pdf").then(Fo=>ti(this,null,function*(){$a<Cl.length-1&&(yield Fo.addPage())}));if(nl.file(`${Os!=null&&Os.student_id&&(Os==null?void 0:Os.student_id)!="--"?Os.student_id+"+":""}${Os==null?void 0:Os.username}.pdf`,ru.output("blob")),((yu=Os==null?void 0:Os.shixun_detail)==null?void 0:yu.length)>0&&((Vl=(Uu=Os==null?void 0:Os.shixun_detail)==null?void 0:Uu.filter($a=>{var Fo;return((Fo=$a==null?void 0:$a.game_codes)==null?void 0:Fo.length)>0}))==null?void 0:Vl.length)>0){const $a=nl.folder("\u4EE3\u7801\u6587\u4EF6");(fr=Os==null?void 0:Os.shixun_detail)==null||fr.map((Fo,Ua)=>{var Ya,ou;if(((Ya=Fo==null?void 0:Fo.game_codes)==null?void 0:Ya.length)>0){const Zl=$a.folder(`\u7B2C${Ua+1}\u5173-${Fo.subject}-${Fo.id}`);(ou=Fo==null?void 0:Fo.game_codes)==null||ou.map(Pu=>{Zl.file(`${Pu.filename}.txt`,Pu==null?void 0:Pu.content)})}})}qo.update({content:ri.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",ri.createElement("span",{className:"c-blue"},cu),"/",Os==null?void 0:Os.students_count,ri.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3")}),cu==(Os==null?void 0:Os.students_count)?(qo.destroy(),Ml()):Rr()}),2200)})}if(Wr!=="all"||(di==null?void 0:di.students_count)<2){aa(),Zi();const ul=Qo.current.children;let Os=_o()();const Uu=ms.folder(`${di==null?void 0:di.group_name}`).folder(`${di!=null&&di.student_id&&(di==null?void 0:di.student_id)!="--"?(di==null?void 0:di.student_id)+"+":""}${di==null?void 0:di.username}`);for(let Vl=0;Vl<ul.length;Vl++)yield Os.set(_s).from(ul[Vl]).toContainer().toCanvas().toPdf().get("pdf").then(fr=>ti(void 0,null,function*(){Vl<ul.length-1&&(yield fr.addPage())}));if($o(!1),Uu.file(`${di!=null&&di.student_id&&(di==null?void 0:di.student_id)!="--"?(di==null?void 0:di.student_id)+"+":""}${di.username}.pdf`,Os.output("blob"),{base64:!1}),((zs=di==null?void 0:di.shixun_detail)==null?void 0:zs.length)>0&&((Cs=(Ms=di==null?void 0:di.shixun_detail)==null?void 0:Ms.filter(Vl=>{var fr;return((fr=Vl==null?void 0:Vl.game_codes)==null?void 0:fr.length)>0}))==null?void 0:Cs.length)>0){const Vl=Uu.folder("\u4EE3\u7801\u6587\u4EF6");(Gs=di==null?void 0:di.shixun_detail)==null||Gs.map((fr,Wa)=>{var nl,Cl;if(((nl=fr==null?void 0:fr.game_codes)==null?void 0:nl.length)>0){const ru=Vl.folder(`\u7B2C${Wa+1}\u5173-${fr.subject}-${fr.id}`);(Cl=fr==null?void 0:fr.game_codes)==null||Cl.map($a=>{ru.file(`${$a.filename}.txt`,$a==null?void 0:$a.content)})}})}qo.destroy(),Ml();return}else Rr(di==null?void 0:di.first_student_work_id)}),Ml=()=>{da.generateAsync({type:"blob"}).then(function(Wr){console.log(di,"shixunWorkReport");const zs=document.createElement("a");zs.href=window.URL.createObjectURL(Wr),zs.download=(di==null?void 0:di.shixun_name)+".zip",document.body.appendChild(zs);const Ms=document.createEvent("MouseEvents");Ms.initEvent("click",!1,!1),zs.dispatchEvent(Ms),document.body.removeChild(zs),ta(new(ee()))}),ko(!1)};(0,Mt.useEffect)(()=>{Ga()},[or.homeworkId]);const Ga=()=>ti(void 0,null,function*(){ur(!0),yield Pi({type:"shixunHomeworks/getShixunWorkReport",payload:kn(kn({},or),yl.current||{})}),Zs(),(0,ue.GJ)()&&ca(),ur(!1)}),Ss=[{title:"\u5173\u5361",dataIndex:"name",render:(Wr,zs,Ms)=>Ms+1},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",render:(Wr,zs,Ms)=>ri.createElement("div",null,Wr,zs.complete_status===4&&ri.createElement(de.vA,{status:zs.complete_status}))},{title:"\u5F00\u542F\u65F6\u95F4",dataIndex:"open_time"},{title:"\u4EE3\u7801\u4FEE\u6539\u884C\u6570",dataIndex:"diff_code_count",render:(Wr,zs,Ms)=>Wr||"- -"},{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:Wr=>Wr?"\u662F":"\u5426"},{title:"\u7ECF\u9A8C\u503C",dataIndex:"experience",render:(Wr,zs)=>ri.createElement("div",null,ri.createElement("span",{style:{color:parseFloat(zs.myself_experience)!==parseFloat(Wr)?"red":"green"}},zs.myself_experience),"/",Wr)},{title:"\u5173\u5361\u5F97\u5206",dataIndex:"game_score",render:(Wr,zs)=>ri.createElement("div",null,ri.createElement("span",{style:{color:parseFloat(zs.game_score_full)!==parseFloat(Wr)?"red":"green"}},Wr),"/",zs.game_score_full)},{title:"\u8C03\u5206",dataIndex:"game_score",render:(Wr,zs)=>vs?ri.createElement(We,{max:zs.game_score_full,defaultValue:parseFloat(Wr),onBlur:Ms=>ti(void 0,null,function*(){var Cs;if((0,ue.Rm)()&&!((Cs=wi.AssistantObject.practice)!=null&&Cs.can_appraise)){qt.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 Gs=yield Pi({type:"shixunHomeworks/changeScore",payload:{categoryId:or.homeworkId,type:"report",score:Ms,challenge_id:zs.challenge_id}});xs({page:1,page_size:10},"all"),yield Pi({type:"shixunHomeworks/getShixunWorkReport",payload:kn(kn({},or),yl.current||{})}),Gs.status===0&&qt.ZP.success("\u64CD\u4F5C\u6210\u529F")})}):Wr}];let ai=[{title:"\u5173\u5361",dataIndex:"order",key:"order",render:(Wr,zs,Ms)=>({children:Wr,props:{rowSpan:zs.rowSpan}})},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",key:"name",render:(Wr,zs,Ms)=>({children:Wr,props:{rowSpan:zs.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:(Wr,zs,Ms)=>ri.createElement("div",null,ri.createElement("span",{style:{color:parseFloat(zs.actual_test_score)!==parseFloat(Wr)?"red":"green"}},zs.actual_test_score),"/",Wr)},{title:"\u6307\u6807\u603B\u5206",render:(Wr,zs,Ms)=>({children:ri.createElement("div",null,ri.createElement("span",{style:{color:parseFloat(zs.actual_target_score)!==parseFloat(Wr)?"red":"green"}},zs.actual_target_score),"/",Wr),props:{rowSpan:zs.rowSpan}}),dataIndex:"total_target_score",key:"total_target_score"}];const Ta=[{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:Wr=>ri.createElement("span",null,Wr?ie()(Wr).format("YYYY-MM-DD HH:mm"):"--")}],dc=Wr=>{Pi({type:"shixunHomeworks/setActionTabs",payload:{key:"",type:2}}),setTimeout(()=>{Wr==="next"?Nt.history.push(`/classrooms/${or.coursesId}/shixun_homework/${or.categoryId}/${di==null?void 0:di.next_student_work_id}/comment`):Nt.history.push(`/classrooms/${or.coursesId}/shixun_homework/${or.categoryId}/${di==null?void 0:di.pre_student_work_id}/comment`)},200)},hu=Wr=>{ll(""),Wr.target.value&&(console.log("\u8FDB\u6765",di),Wr.target.value=Wr.target.value>di.repeat_setting_score?di.repeat_setting_score:Wr.target.value,ll(Wr.target.value))},kh=()=>ti(void 0,null,function*(){const Wr=yield(0,Zt.ZP)(`/api/student_works/${di==null?void 0:di.work_id}/update_repeat_score`,{method:"put",body:{score:al}});yield Pi({type:"shixunHomeworks/getShixunWorkReport",payload:kn(kn({},or),yl.current||{})}),Wr.status===0&&qt.ZP.info("\u64CD\u4F5C\u6210\u529F")});return ri.createElement("section",{className:"bg-fafafa",style:{position:"sticky",top:0}},ri.createElement("div",{className:"edu-container mt10",style:{paddingBottom:100}},ri.createElement(Pt.Z,{loading:qe["shixunHomeworks/getShixunWorkReport"],active:!0,avatar:{size:40},paragraph:{rows:5}},ri.createElement("div",{className:"edu-container"},di.course_id&&ri.createElement("section",{className:"animated fadeIn"},ri.createElement("aside",{className:""},di.category&&ri.createElement(re.Z,{separator:">"},ri.createElement(re.Z.Item,null,ri.createElement(Nt.Link,{to:`/classrooms/${di.course_id}/shixun_homework`},di.course_name)),ri.createElement(re.Z.Item,null,ri.createElement(Nt.Link,{to:`/classrooms/${di.course_id}/shixun_homework/${di.category.main?"":di.category.category_id}`},di.category.category_name)),ri.createElement(re.Z.Item,null,ri.createElement(Nt.Link,{to:`/classrooms/${di.course_id}/shixun_homework/${di.homework_common_id}/detail`},"\u4F5C\u4E1A\u8BE6\u60C5")),ri.createElement(re.Z.Item,null,di.username))),ri.createElement("aside",{className:[Jt.title1,"mt20"].join(" ")},ri.createElement(Kt.Z,{align:"middle"},ri.createElement(Yt.Z,{flex:1},ri.createElement(Nt.Link,{to:`/classrooms/${di.course_id}/shixun_homework/${di.homework_common_id}/detail`},ri.createElement(St.Z,{className:"font16 c-black"})),ri.createElement("strong",{className:"font20 ml5"},di==null?void 0:di.homework_name),ri.createElement(de.VV,{temporary:!0,status:di.homework_status})),ri.createElement(Yt.Z,{className:Jt.title1_right},di.view_tpi&&ri.createElement(Ct.ZP,{onClick:()=>{var Wr,zs;(0,de.xg)(`/tasks/${di==null?void 0:di.course_id}/${di==null?void 0:di.homework_common_id}/${(zs=(Wr=di==null?void 0:di.shixun_detail)==null?void 0:Wr[0])==null?void 0:zs.game_identifier}`)}},ri.createElement("span",{className:"iconfont icon-yijiandianping mr5"}),"\u67E5\u770B\u5B66\u5458\u5B9E\u8BAD"),(0,ue.GJ)()&&di.homework_end===!1&&!!di.myshixun_id&&ri.createElement(Ct.ZP,{className:"ml10",onClick:()=>ti(void 0,null,function*(){yield Pi({type:"shixunHomeworks/setActionTabs",payload:{key:"\u6253\u56DE\u91CD\u505A",selectArrs:{myshixun_identifier:di.myshixun_identifier},homework_common_id:ar.categoryId}})})},ri.createElement("span",{className:"iconfont icon-dahuizhongzuo3x mr5"}),"\u6253\u56DE\u91CD\u505A"),ri.createElement(Ct.ZP,{className:"ml10",onClick:()=>{var Wr;if((0,ue.Rm)()&&!((Wr=wi.AssistantObject.practice)!=null&&Wr.can_download)){qt.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}ka("")},loading:ps},ri.createElement("span",{className:"iconfont icon-daochu mr5"}),"\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"),(0,ue.GJ)()&&(di==null?void 0:di.students_count)>1&&ri.createElement(Ct.ZP,{className:"ml10",onClick:()=>{var Wr;if((0,ue.Rm)()&&!((Wr=wi.AssistantObject.practice)!=null&&Wr.can_download)){qt.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}jt.default.confirm({title:"\u9009\u62E9\u5BFC\u51FA\u65B9\u5F0F",closable:!0,icon:null,centered:!0,okText:ri.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:ri.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:()=>{ka("all")},onCancel:()=>{},cancelButtonProps:{onClick:()=>{(0,$t.jj)({categoryId:or.categoryId,coursesId:or.coursesId},"shixun_report")}}})}},ri.createElement("span",{className:"iconfont icon-daochu mr5"}),"\u5BFC\u51FA\u5168\u90E8\u5B66\u751F\u5B9E\u8BAD\u62A5\u544A"))))),ri.createElement("aside",{className:"mt30 relative"})),ri.createElement("aside",{className:"edu-container bg-white",ref:gi},ri.createElement("div",{id:"export-all",ref:Qo},ri.createElement("div",{id:"export-all-1"},ri.createElement("div",{className:Jt.title},ri.createElement("h1",null,"\u603B\u4F53\u8BC4\u4EF7"),ri.createElement("div",null,(0,ue.GJ)()&&ri.createElement(Ct.ZP,{className:"mr20",type:"primary",onClick:()=>{Pi({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:di.user_id,data:kn({},di)},fn:()=>xs({page:1,page_size:10},"all")}})}},ri.createElement(It.Z,null),di.has_shixun_work_comment?"\u66F4\u6539\u70B9\u8BC4":"\u70B9\u8BC4\u4F5C\u4E1A"))),ri.createElement(tt.Z,{style:{marginTop:0}}),ri.createElement(Kt.Z,{className:"pl30 pr30"},ri.createElement(Yt.Z,null,ri.createElement("img",{className:Jt.userPic,src:`${oe.Z.IMG_SERVER}/images/${di.image_url}`,alt:di.username})),ri.createElement(Yt.Z,null,ri.createElement("span",{className:"font16 ml40"},di.username),ri.createElement(de.vA,{status:di.compelete_status}),ri.createElement("ul",{className:Jt.userInfo},ri.createElement("li",null,"\u5B66\u53F7\uFF1A",di.student_id||"--"),ri.createElement("li",null,"\u5206\u73ED\uFF1A",di.group_name||"--"),ri.createElement("br",null),ri.createElement("li",null,"\u622A\u6B62\u524D\u5B8C\u6210\u5173\u5361\uFF1A",ri.createElement("span",{className:"c-red"},di.complete_count),"/",ri.createElement("span",{className:"c-red"},di.challenges_count)),ri.createElement("li",null,"\u6700\u65B0\u5B8C\u6210\u5173\u5361\uFF1A",ri.createElement("span",{className:"c-red"},di.current_complete_count||"-"),"/",ri.createElement("span",{className:"c-red"},di.challenges_count)),ri.createElement("li",null,"\u5B8C\u6210\u6548\u7387\uFF1A",di&&di.efficiency===null?"--":di&&di.efficiency),ri.createElement("li",null,"\u8BFE\u5802\u6700\u9AD8\u5B8C\u6210\u6548\u7387\uFF1A",di&&di.max_efficiency===null?"--":di&&di.max_efficiency))),ri.createElement("ul",{className:[Jt.listItem,"mt10"].join(" ")},ri.createElement("li",null,ri.createElement("strong",null,"\u901A\u5173\u65F6\u95F4"),ri.createElement("div",{className:"c-light-black mt20"},di&&di.passed_time===null||di&&di.passed_time==="--"?"--":ie()(di&&di.passed_time).format("YYYY-MM-DD HH:mm"))),ri.createElement("li",null,ri.createElement("strong",null,"\u8BA1\u65F6\u89C4\u5219",ri.createElement("i",{onClick:Wr=>{Wr.stopPropagation(),Wr.preventDefault(),os(!0)},style:{marginLeft:4,color:"#145DFF",fontSize:16,cursor:"pointer"},className:"iconfont icon-tishixiaowenhao"})),ri.createElement("div",{className:"c-light-black mt20"},di==null?void 0:di.human_training_time_rules)),ri.createElement("li",null,ri.createElement("strong",null,"\u5B9E\u8BAD\u603B\u8017\u65F6",ri.createElement("i",{onClick:Wr=>{Wr.stopPropagation(),Wr.preventDefault(),Ne(!0)},style:{marginLeft:4,color:"#145DFF",fontSize:16,cursor:"pointer"},className:"iconfont icon-tishixiaowenhao"})),ri.createElement("div",{className:"c-light-black mt20"},di.time_consuming)),ri.createElement("li",null,ri.createElement("strong",null,"\u8BC4\u6D4B\u6B21\u6570"),ri.createElement("div",{className:"mt20"},di.evaluate_count)),(di==null?void 0:di.eff_score_full)&&ri.createElement(ri.Fragment,null,ri.createElement("li",null,ri.createElement("strong",null,"\u5173\u5361\u5F97\u5206"),ri.createElement("div",{className:"mt20"},ri.createElement("span",{className:"c-orange"},di.challenge_score),"/",ri.createElement("span",{className:"c-light-black"},di.challenge_score_full))),ri.createElement("li",null,ri.createElement("strong",null,"\u6548\u7387\u5206"),ri.createElement("div",{className:"mt20"},ri.createElement("span",{className:"c-orange"},di.eff_score),"/",ri.createElement("span",{className:"c-light-black"},di.eff_score_full)))),(di==null?void 0:di.have_repeat)&&(di==null?void 0:di.repeat_minus_score)!==0&&ri.createElement("li",{style:{position:"relative"}},ri.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},ri.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),ri.createElement("div",{style:{position:"absolute",fontSize:"10px",color:"white",left:"57px",width:"46px",bottom:"72px"}},di!=null&&di.review_rate?ri.createElement("span",{style:{background:"#0152d9",borderRadius:"6px 6px 6px 0",cursor:"pointer"},onClick:()=>{if(di!=null&&di.review_id&&bl)localStorage.setItem("studentDetial",window.location.pathname),Nt.history.push({pathname:`/classrooms/:coursesId/shixun_homework/${or.categoryId}/review_detail/${di==null?void 0:di.review_id}`});else return}},di.review_rate.toFixed(1),"%"):ri.createElement("span",{style:{background:"#0152d9",borderRadius:"6px 6px 6px 0"}},"- -"))),bl?ri.createElement("div",{className:"mt20"},ri.createElement(lt.default,{style:{width:"45px",height:"22px"},value:al,onChange:Wr=>{hu(Wr)},onBlur:kh,disabled:Vo})," / ",di==null?void 0:di.repeat_setting_score):ri.createElement("div",{className:"mt20"},di==null?void 0:di.repeat_minus_score," / ",di==null?void 0:di.repeat_setting_score)),console.log("sssssssssssssssssssssss",di==null?void 0:di.have_repeat,di==null?void 0:di.repeat_minus_score),(di==null?void 0:di.have_repeat)&&(di==null?void 0:di.repeat_minus_score)===0&&ri.createElement("li",null,ri.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),ri.createElement("div",{className:"mt20"}," - -")),!(di!=null&&di.have_repeat)&&ri.createElement("li",null,ri.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),ri.createElement("div",{className:"mt20"}," - -")),ri.createElement("li",null,ri.createElement("strong",null,"\u8865\u4EA4\u6263\u5206"),ri.createElement("div",{className:"mt20"},ri.createElement("span",null,di.late_penalty||"- -"))),ri.createElement("li",null,ri.createElement("strong",null,"\u6700\u7EC8\u6210\u7EE9"),ri.createElement("div",{className:"mt20"},ri.createElement("span",{className:"c-orange"},Zo),"/",ri.createElement("span",{className:"c-light-black"},di.all_work_score))),ri.createElement("li",null,ri.createElement("strong",null,"\u603B\u8BC4"),ri.createElement("div",{className:"mt20"},ri.createElement("span",{className:"c-orange"},di.overall_appraisal))))),ri.createElement(tt.Z,{style:{margin:0}}),(di.work_comment_hidden||di.work_comment)&&ri.createElement("div",null,ri.createElement(Kt.Z,{align:"middle"},ri.createElement(Yt.Z,{flex:1},ri.createElement("h1",{className:Jt.title},"\u70B9\u8BC4\u5185\u5BB9")),ri.createElement(Yt.Z,{className:"pr30"},(0,ue.GJ)()&&ri.createElement(Ct.ZP,{onClick:()=>ti(void 0,null,function*(){jt.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:ri.createElement(_t.Z,null),content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F",onOk(){return ti(this,null,function*(){(yield(0,Gr.gZ)({comment_id:di.comment_id,homeworkId:or.homeworkId})).status===0&&(qt.ZP.success("\u5220\u9664\u6210\u529F"),Pi({type:"shixunHomeworks/getShixunWorkReport",payload:kn(kn({},or),yl.current||{})}))})}})})},ri.createElement(Gt.Z,null),"\u5220\u9664"))),ri.createElement(tt.Z,{style:{margin:0}}),di.work_comment&&ri.createElement("aside",{className:"pl30 pr30 mt20"},ri.createElement("span",{className:"c-light-black font12"},"# \u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),ri.createElement("br",null),ri.createElement(kr.Z,{value:di.work_comment})),di.work_comment_hidden&&ri.createElement("aside",{className:"pl30 pr30 mt20"},ri.createElement("span",{className:"c-light-black font12"},"# \u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),ri.createElement("br",null),ri.createElement(kr.Z,{value:di.work_comment_hidden}))),(di==null?void 0:di.action_analysis)&&ri.createElement(jo,{detailData:di}),ri.createElement("div",{className:Jt.score},ri.createElement("h1",{className:Jt.title},"\u9636\u6BB5\u6210\u7EE9"),(di==null?void 0:di.adjust_review_score_count)>0&&(0,ue.GJ)()&&ri.createElement("div",{style:{color:"#0152d9",cursor:"pointer"},onClick:()=>{ra(!0),xs({page:1,page_size:10},"all")}},"\u6210\u7EE9\u8C03\u5206\u8BB0\u5F55\uFF08",di==null?void 0:di.adjust_review_score_count,"\u6B21\uFF09")),ri.createElement("aside",{className:"pl30 pr30"},ri.createElement(rt.default,{dataSource:di.stage_list,rowKey:Wr=>Wr==null?void 0:Wr.challenge_id,pagination:!1,columns:Ss})),((ui=di==null?void 0:di.target_test_sets)==null?void 0:ui.length)>0&&ri.createElement("div",null,ri.createElement("h1",{className:Jt.title},"\u6307\u6807\u6210\u7EE9"),ri.createElement("aside",{className:"pl30 pr30"},ri.createElement(rt.default,{dataSource:Co,rowKey:Wr=>Wr==null?void 0:Wr.challenge_id,pagination:!1,bordered:!0,columns:ai}))),(di==null?void 0:di.work_description)&&ri.createElement(ri.Fragment,null,ri.createElement("h1",{className:Jt.title},"\u4E2A\u4EBA\u603B\u7ED3"),ri.createElement("aside",{className:"pl30 pr30"},ri.createElement(kr.Z,{value:di==null?void 0:di.work_description}))),ri.createElement("h1",{className:Jt.title},"\u56FE\u5F62\u7EDF\u8BA1"),ri.createElement(Ge,{data:io}),ri.createElement("h1",{className:Jt.title},"\u5B9E\u8BAD\u8BE6\u60C5")),ri.createElement(rn,{autoHeight:qr}))),(0,ue.GJ)()&&ri.createElement("aside",{className:`${Jt.footerBar} ${ps?Jt.footerBarStatic:""}`},ri.createElement("aside",{className:"edu-container"},ri.createElement(Kt.Z,{align:"middle"},ri.createElement(Yt.Z,{flex:"1"},ri.createElement(Nt.Link,{className:Jt.exitComment,to:`/classrooms/${or.coursesId}/shixun_homework/${or.categoryId}/detail`},"\u8FD4\u56DE\u5217\u8868")),ri.createElement(Yt.Z,{flex:"1",className:"tr"},ri.createElement(Ct.ZP,{type:"default",disabled:!(di!=null&&di.pre_student_work_id),onClick:()=>dc()},"\u4E0A\u4E00\u4E2A"),ri.createElement(Ct.ZP,{type:"default",style:{marginLeft:"20px",marginRight:"20px"},disabled:!(di!=null&&di.next_student_work_id),onClick:()=>dc("next")},"\u4E0B\u4E00\u4E2A"),(0,ue.GJ)()&&ri.createElement(Ct.ZP,{type:"primary",onClick:()=>ti(void 0,null,function*(){Pi({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:di.user_id,data:kn({},di)},fn:()=>xs({page:1,page_size:10},"all")}})})},"\u70B9\u8BC4\u4F5C\u4E1A"))))))),ri.createElement(Yr,null),ri.createElement(Zr.Z,null),ri.createElement(jt.default,{open:us,width:860,centered:!0,onCancel:()=>{os(!1)},title:"\u8BA1\u65F6\u89C4\u5219\u8BF4\u660E",footer:null},ri.createElement("div",{style:{color:"#333333",fontWeight:400}},ri.createElement("span",{style:{fontWeight:500}},"1\u3001\u9875\u9762\u505C\u7559\u65F6\u957F"),ri.createElement("br",null),ri.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"),ri.createElement("br",null),ri.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"),ri.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 "),ri.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")),ri.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},ri.createElement("span",{style:{fontWeight:500}},"2\u3001\u5173\u5361\u603B\u8017\u65F6"),ri.createElement("br",null),ri.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 "),ri.createElement("br",null),ri.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"),ri.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 "),ri.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"),ri.createElement("br",null),ri.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")),ri.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},ri.createElement("span",{style:{fontWeight:500}},"3\u3001\u4F5C\u4E1A\u901A\u5173\u65F6\u957F"),ri.createElement("br",null),ri.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")),ri.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},ri.createElement("span",{style:{fontWeight:500}},"\u89C4\u5219\u76EE\u7684"),ri.createElement("br",null),ri.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"))),ri.createElement(jt.default,{open:xr,title:"\u5B9E\u8BAD\u603B\u8017\u65F6\u8BF4\u660E",centered:!0,footer:null,onCancel:()=>{Ne(!1)},width:600},ri.createElement("div",{style:{fontWeight:400,color:"#333333"}},ri.createElement("div",null,"1\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",ri.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"),ri.createElement("div",{style:{margin:"20px 0px"}},"2\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",ri.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"),ri.createElement("div",null,"3\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",ri.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"))),ri.createElement(jt.default,{open:ls,title:"\u6210\u7EE9\u8C03\u5206\u8BB0\u5F55",centered:!0,footer:null,onCancel:()=>{ha("all"),ra(!1)},destroyOnClose:!0,width:900},ri.createElement("div",{style:{fontWeight:400,color:"#333333"}},ri.createElement("div",null,ri.createElement("span",null,"\u5173\u5361\uFF1A"),ri.createElement(ht.default,{style:{width:300},value:Yo,placeholder:"\u8BF7\u9009\u62E9\u5173\u5361",defaultValue:"all",onChange:Wr=>ti(void 0,null,function*(){ha(Wr),xs({page:1,page_size:10},Wr)})},ri.createElement(ht.default.Option,{value:"all"}," \u5168\u90E8 "),(Cr=di==null?void 0:di.stage_list)==null?void 0:Cr.map((Wr,zs)=>ri.createElement(ht.default.Option,{key:zs,value:Wr==null?void 0:Wr.challenge_id},"\u7B2C",(0,de.EM)(zs+1),"\u5173")))),ri.createElement("div",{className:"mt20"},ri.createElement(rt.default,{dataSource:Sr,rowKey:Wr=>Wr==null?void 0:Wr.id,pagination:!1,columns:Ta,loading:Ur})),ri.createElement("div",{className:Jt.footer},ri.createElement("div",null,ri.createElement("span",{style:{color:"#656F87"}},"\u5171",ri.createElement("span",{className:"c-light-primary"},Bo),"\u6761\u6570\u636E")),ri.createElement(dt.Z,{defaultCurrent:1,defaultPageSize:10,current:(Lr==null?void 0:Lr.page)||1,showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,total:Bo,onChange:bo})))))};var dn=(0,Nt.connect)(({shixunHomeworks:Le,classroomList:yn,loading:Qn,globalSetting:wi,user:Oi})=>({shixunHomeworks:Le,classroomList:yn,globalSetting:wi,loading:Qn.effects,user:Oi}))(yi)},68971:function(hi,Cn,bt){"use strict";var Mt=bt(43418),ce=bt(8591),ie=bt(99064),Ie=bt(89070),ee=bt(24065),Zt=bt(59301),Nt=(qt,Pt,re)=>new Promise((Kt,Yt)=>{var Ct=lt=>{try{tt(re.next(lt))}catch(rt){Yt(rt)}},et=lt=>{try{tt(re.throw(lt))}catch(rt){Yt(rt)}},tt=lt=>lt.done?Kt(lt.value):Promise.resolve(lt.value).then(Ct,et);tt((re=re.apply(qt,Pt)).next())});const jt=({shixunHomeworks:qt,classroomList:Pt,dispatch:re})=>{const Kt=(0,Ie.useParams)();return Zt.createElement(Mt.default,{centered:!0,title:"\u63D0\u793A",open:qt.actionTabs.key==="\u6253\u56DE\u91CD\u505A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Nt(void 0,null,function*(){var Yt,Ct,et,tt;if((0,ee.Rm)()&&!((Yt=Pt.AssistantObject.practice)!=null&&Yt.can_redo)){ce.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,ie.ZP)(`/api/myshixuns/${qt.actionTabs.selectArrs.myshixun_identifier}/reset_my_game.json`,{method:"GET",params:{course_id:Kt.coursesId,homework_common_id:qt.actionTabs.homework_common_id}});if(lt.shixun_identifier){ce.ZP.success("\u64CD\u4F5C\u6210\u529F"),re({type:"shixunHomeworks/setActionTabs",payload:{}});const rt=(et=(Ct=lt==null?void 0:lt.new_works)==null?void 0:Ct.find(ht=>`${ht.homework_common_id}`===Kt.categoryId))==null?void 0:et.id;if((0,ee.Rm)()&&!((tt=Pt.AssistantObject.practice)!=null&&tt.can_view))return;Ie.history.replace(`/classrooms/${Kt.coursesId}/shixun_homework/${Kt.categoryId}/${rt}/comment`)}}),onCancel:()=>{re({type:"shixunHomeworks/setActionTabs",payload:{}})}},Zt.createElement("p",null,"\u8BE5\u4F5C\u4E1A\u5C06\u88AB\u6253\u56DE\u91CD\u505A\uFF0C\u5B66\u751F\u5B9E\u8BAD\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A!"),Zt.createElement("p",null,"\u786E\u5B9A\u6253\u56DE?"))};Cn.Z=(0,Ie.connect)(({shixunHomeworks:qt,classroomList:Pt})=>({shixunHomeworks:qt,classroomList:Pt}))(jt)},78297:function(hi,Cn,bt){"use strict";bt.d(Cn,{AD:function(){return Ge},D9:function(){return ne},Hp:function(){return _t},IM:function(){return Pn},Iy:function(){return oe},KM:function(){return Ti},MJ:function(){return Gt},Ne:function(){return Se},ON:function(){return fi},Uj:function(){return nn},VY:function(){return Nn},YO:function(){return Si},YX:function(){return zn},Zn:function(){return et},_g:function(){return dt},_k:function(){return _e},c6:function(){return Ke},cr:function(){return tt},eV:function(){return Wt},fi:function(){return lt},gh:function(){return be},hS:function(){return Mn},iA:function(){return rt},j6:function(){return St},je:function(){return We},jj:function(){return It},kS:function(){return Zn},o6:function(){return Jt},pO:function(){return Fi},rQ:function(){return He},sA:function(){return de},xm:function(){return ve},xo:function(){return Xe},y8:function(){return Me},yd:function(){return ht}});var Mt=bt(92365),ce=bt(89070),ie=bt(955),Ie=bt(8591),ee=bt(3294),Zt=Object.defineProperty,Nt=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable,Pt=(Lt,Ot,mt)=>Ot in Lt?Zt(Lt,Ot,{enumerable:!0,configurable:!0,writable:!0,value:mt}):Lt[Ot]=mt,re=(Lt,Ot)=>{for(var mt in Ot||(Ot={}))jt.call(Ot,mt)&&Pt(Lt,mt,Ot[mt]);if(Nt)for(var mt of Nt(Ot))qt.call(Ot,mt)&&Pt(Lt,mt,Ot[mt]);return Lt},Kt=(Lt,Ot,mt)=>new Promise((ft,pt)=>{var At=ae=>{try{we(mt.next(ae))}catch(me){pt(me)}},le=ae=>{try{we(mt.throw(ae))}catch(me){pt(me)}},we=ae=>ae.done?ft(ae.value):Promise.resolve(ae.value).then(At,le);we((mt=mt.apply(Lt,Ot)).next())});const Yt=()=>{(0,ce.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},Ct=()=>{(0,ce.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},et=Lt=>Kt(void 0,null,function*(){Yt(),(yield(0,Mt.YR)(re({},Lt))).status===0&&(yield(0,ie.QH)("",(0,ie.NY)({url:ee.Z.API_SERVER+`/api/courses/${Lt.coursesId}/export_couser_info.json`,query:Lt}))),Ct()}),tt=Lt=>Kt(void 0,null,function*(){const Ot=yield(0,Mt.yS)(re({},Lt));if(Ot.status===0)Ie.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/course_member_act_score`);else{if(Ot.status===-2)return Ot;Ot.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/course_member_act_score`))}}),lt=Lt=>Kt(void 0,null,function*(){const Ot=yield(0,Mt.W0)(re({},Lt));if(Ot.status===0)Ie.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/course_total_score`);else{if(Ot.status===-4)return Ot;Ot.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/course_total_score`))}}),rt=Lt=>Kt(void 0,null,function*(){const Ot=yield(0,Mt.Nl)(re({},Lt));if(Ot.status===0)Ie.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/course_total_exercise_and_other`);else{if(Ot.status===-4)return Ot;Ot.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/course_total_exercise_and_other`))}}),ht=Lt=>Kt(void 0,null,function*(){const Ot=yield(0,Mt.IU)(re({},Lt));if(Ot.status===0)Ie.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/export_star_user`);else{if(Ot.status===-4)return Ot;Ot.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/export_star_user`))}}),dt=Lt=>Kt(void 0,null,function*(){const Ot=yield(0,Mt.td)(re({},Lt));if(Ot.status===0)Ie.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/course_total_exercise_and_other`);else{if(Ot.status===-2)return Ot;if(Ot.status===-3)(0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/course_total_exercise_and_other`);else if(Ot.status===-4)return Ot}}),St=Lt=>Kt(void 0,null,function*(){const Ot=yield(0,Mt.QX)(re({},Lt));if(Ot.status===0)Ie.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/course_total_homework`);else{if(Ot.status===-4)return Ot;Ot.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/course_total_homework`))}}),It=(Lt,Ot)=>Kt(void 0,null,function*(){const mt=yield(0,Mt.o_)(re({},Lt));mt.status===0?(Ie.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"),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/${Ot}`)):mt.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/${Ot}`))}),_t=(Lt,Ot)=>Kt(void 0,null,function*(){const mt=yield(0,Mt.ZL)(re({},Lt));mt.status===0?(Ie.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"),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/${Ot}`)):mt.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/${Ot}`))}),Gt=(Lt,Ot)=>Kt(void 0,null,function*(){const mt=yield(0,Mt.vV)(re({},Lt));mt.status===0?(Ie.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"),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/${Ot}`)):mt.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/${Ot}`))}),oe=(Lt,Ot)=>Kt(void 0,null,function*(){const mt=yield(0,Mt.aP)(re({},Lt));mt.status===0?(Ie.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/${Ot}`)):mt.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/${Ot}`))}),ue=Lt=>Kt(void 0,null,function*(){Yt(),(yield exportCourseWorkListAppendix(re({},Lt))).status===0&&(yield downLoadFileIframe("",setUrlQuery({url:ENV.API_SERVER+`/api/homework_commons/${Lt.categoryId}/works_list.zip`,query:Lt}))),Ct()}),de=Lt=>Kt(void 0,null,function*(){Yt(),yield(0,ie.QH)("",ee.Z.API_SERVER+`/api/polls/${Lt.categoryId}/commit_result.xlsx`),Ct()}),be=Lt=>Kt(void 0,null,function*(){yield(0,ie.FH)("",(0,ie.NY)({url:ee.Z.API_SERVER+`/api/courses/${Lt.coursesId}/attendances/export_xlsx_data.xlsx`,query:Lt}))}),Jt=Lt=>Kt(void 0,null,function*(){yield(0,ie.FH)("",(0,ie.NY)({url:ee.Z.API_SERVER+`/api/courses/${Lt.coursesId}/video_study_statics.xlsx`,query:Lt}))}),Ke=Lt=>Kt(void 0,null,function*(){yield(0,ie.FH)("",(0,ie.NY)({url:ee.Z.API_SERVER+`/api/courses/${Lt.coursesId}/export_video_study.xlsx`,query:Lt}))}),Wt=Lt=>Kt(void 0,null,function*(){yield(0,ie.FH)("",(0,ie.NY)({url:ee.Z.API_SERVER+`/api/courses/${Lt.coursesId}/export_course_students_info.xlsx`,query:Lt}))}),Ge=Lt=>Kt(void 0,null,function*(){yield(0,ie.FH)("",(0,ie.NY)({url:ee.Z.API_SERVER+"/api/school_manages/students.xlsx",query:Lt}))}),He=Lt=>Kt(void 0,null,function*(){yield(0,ie.FH)("",(0,ie.NY)({url:ee.Z.API_SERVER+"/api/item_banks/export.xlsx",query:Lt}))}),Me=Lt=>Kt(void 0,null,function*(){yield(0,ie.FH)("",(0,ie.NY)({url:ee.Z.API_SERVER+"/api/competitions/region_reports.xlsx",query:Lt}))}),We=Lt=>Kt(void 0,null,function*(){const Ot=yield(0,Mt.Uy)(re({},Lt));Ot.status===0?(Ie.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/exercise_score,export_exercise_users`)):Ot.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/exercise_score,export_exercise_users`))}),_e=Lt=>Kt(void 0,null,function*(){console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),yield(0,ie.FH)("",(0,ie.NY)({url:ee.Z.API_SERVER+`/api/export_records/${Lt.id}.xlsx`,query:Lt}))}),ve=Lt=>Kt(void 0,null,function*(){yield(0,ie.FH)("",(0,ie.NY)({url:ee.Z.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:Lt}))}),ne=Lt=>Kt(void 0,null,function*(){yield(0,ie.FH)("",(0,ie.NY)({url:ee.Z.API_SERVER+`/api/courses/${Lt==null?void 0:Lt.coursesId}/${Lt.menuKey}_statistic.xlsx?${Lt.checkedList.map(Ot=>`course_group_id[]=${Ot}`).join("&")}`,query:Lt}))}),Se=Lt=>Kt(void 0,null,function*(){yield(0,ie.FH)("",(0,ie.NY)({url:ee.Z.API_SERVER+`/api/ec_years/${Lt==null?void 0:Lt.ec_year_id}/ec_training_objectives.xlsx`,query:Lt}))}),Pn=Lt=>Kt(void 0,null,function*(){yield(0,ie.FH)(Lt==null?void 0:Lt.name,(0,ie.NY)({url:ee.Z.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:Lt}))}),Mn=Lt=>Kt(void 0,null,function*(){yield(0,ie.FH)("",(0,ie.NY)({url:ee.Z.API_SERVER+`/api/ec_years/${Lt==null?void 0:Lt.ec_year_id}/ec_courses.xlsx`,query:Lt}))}),Xe=Lt=>Kt(void 0,null,function*(){yield(0,ie.FH)("",(0,ie.NY)({url:ee.Z.API_SERVER+`/api/ec_years/${Lt==null?void 0:Lt.ec_year_id}/ec_graduation_requirements.xlsx`,query:Lt}))}),Nn=Lt=>Kt(void 0,null,function*(){yield(0,ie.FH)("",(0,ie.NY)({url:ee.Z.API_SERVER+"/api/courses/rank_list.xlsx",query:Lt}))}),Zn=Lt=>Kt(void 0,null,function*(){yield(0,ie.FH)("",(0,ie.NY)({url:ee.Z.API_SERVER+"/api/courses/question_rank_list.xlsx",query:Lt}))}),fi=Lt=>Kt(void 0,null,function*(){yield(0,ie.FH)("",(0,ie.NY)({url:ee.Z.API_SERVER+`/api/examination_banks/${Lt.id}.json`,query:Lt}))}),zn=Lt=>Kt(void 0,null,function*(){yield(0,ie.FH)("",(0,ie.NY)({url:ee.Z.API_SERVER+`/api/exercises/${Lt.categoryId}.json`,query:Lt}))}),Si=Lt=>Kt(void 0,null,function*(){yield(0,ie.FH)("",(0,ie.NY)({url:ee.Z.API_SERVER+`/api/polls/${Lt==null?void 0:Lt.id}/commit_result.json`,query:Lt}))}),nn=Lt=>Kt(void 0,null,function*(){yield(0,ie.FH)("",(0,ie.NY)({url:ee.Z.API_SERVER+"/api/paths/get_task_pass.json",query:Lt}))}),Fi=(Lt,Ot)=>Kt(void 0,null,function*(){yield(0,ie.FH)(Ot||"",(0,ie.NY)({url:ee.Z.API_SERVER+`/api/exercises/${Lt==null?void 0:Lt.exercise_id}/consult_exercise.json`,query:Lt}))}),Ti=Lt=>Kt(void 0,null,function*(){yield(0,ie.FH)("",(0,ie.NY)({url:ee.Z.API_SERVER+`/api/competitions/${Lt==null?void 0:Lt.identifier}/competition_commit_records/member_works.xlsx`,query:Lt}))})},83312:function(hi,Cn,bt){"use strict";bt.d(Cn,{U:function(){return qt}});var Mt=bt(59301),ce=Object.defineProperty,ie=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,Zt=(Pt,re,Kt)=>re in Pt?ce(Pt,re,{enumerable:!0,configurable:!0,writable:!0,value:Kt}):Pt[re]=Kt,Nt=(Pt,re)=>{for(var Kt in re||(re={}))Ie.call(re,Kt)&&Zt(Pt,Kt,re[Kt]);if(ie)for(var Kt of ie(re))ee.call(re,Kt)&&Zt(Pt,Kt,re[Kt]);return Pt},jt=(Pt,re,Kt)=>new Promise((Yt,Ct)=>{var et=rt=>{try{lt(Kt.next(rt))}catch(ht){Ct(ht)}},tt=rt=>{try{lt(Kt.throw(rt))}catch(ht){Ct(ht)}},lt=rt=>rt.done?Yt(rt.value):Promise.resolve(rt.value).then(et,tt);lt((Kt=Kt.apply(Pt,re)).next())});function qt(Pt,re){const[Kt,Yt]=(0,Mt.useState)(re),[Ct,et]=(0,Mt.useState)(!1),[tt,lt]=(0,Mt.useState)();return[Kt,Ct,(ht,dt=!1)=>jt(this,null,function*(){const St=dt?re:Nt(Nt({},Kt),ht);et(!0),Yt(St);const It=yield Pt(St);return et(!1),lt(It),It}),tt,lt]}},24768:function(hi,Cn,bt){"use strict";bt.d(Cn,{AL:function(){return St},Iy:function(){return re},Qv:function(){return Ct},ez:function(){return dt},jb:function(){return Kt}});var Mt=bt(32834),ce=bt.n(Mt),ie=bt(11690),Ie=bt.n(ie);let ee=1;function Zt(ue,de){const be=ue.match(/^(\s+)(?:```)/);if(be===null)return de;const Jt=be[1];return de.split(`
|
|
|
`).map(Ke=>{const Wt=Ke.match(/^\s+/);if(Wt===null)return Ke;const[Ge]=Wt;return Ge.length>=Jt.length?Ke.slice(Jt.length):Ke}).join(`
|
|
|
`)}let Nt=[],jt=["<ul>"];const qt=new(ce()).Renderer,Pt=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function re(){Nt.length=0,jt=["<ul>"]}const Kt={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Yt(ue,de,be,Jt){if(de>=ue.length||ue[de].level<=be)return de;var Ke=ue[de];Jt.push("<li><a href='#"+ee+Ke.anchor+"'>"+Ke.text+"</a>"),de++;var Wt=[];return de=Yt(ue,de,Ke.level,Wt),Wt.length>0&&(Jt.push("<ul>"),Wt.forEach(function(Ge){Jt.push(Ge)}),Jt.push("</ul>")),Jt.push("</li>"),de=Yt(ue,de,be,Jt),de}function Ct(){return Yt(Nt,0,0,jt),jt.push("</ul>"),jt.join("")}const et={heading(ue){const de=Pt.exec(ue);if(ee+=1,de)return{type:"heading",raw:de[0],depth:de[1].length,text:de[2]}},fences(ue){const de=this.rules.block.fences.exec(ue);if(de){const be=de[0];let Jt=Zt(be,de[3]||"");const Ke=de[2]?de[2].trim():de[2];if(["latex","katex","math"].indexOf(Ke)>=0){const Wt=rt(),Ge=Jt;Jt=Wt,ht[Wt]={type:"block",expression:Ge}}return{type:"code",raw:be,lang:Ke,text:Jt}}}},tt=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let lt=0;const rt=()=>`__special_katext_id_${lt++}__`;let ht={};function dt(){return ht}function St(){lt=0,ht={}}function It(ue){return ue=ue.replace(tt,(de,be)=>{const Jt=rt();return ht[Jt]={type:"inline",expression:be},Jt}),ue}const _t=qt.listitem;qt.listitem=function(ue){return _t(It(ue))};const Gt=qt.paragraph;qt.paragraph=function(ue){return Gt(It(ue))};const oe=qt.tablecell;qt.tablecell=function(ue,de){return oe(It(ue),de)},qt.code=function(ue,de,be){const Jt=(de||"").match(/\S*/)[0];return Jt?["latex","katex","math"].indexOf(Jt)>=0?`<p class='editormd-tex'>${ue}</p>`:`<pre class="prettyprint linenums"><code class="language-${de}">${be?ue:(0,ie.escape)(ue,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(be?ue:(0,ie.escape)(ue,!0))+"</code></pre>"},qt.heading=function(ue,de,be){let Jt=this.options.headerPrefix+be.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Nt.push({anchor:Jt,level:de,text:ue}),"<h"+de+' id="'+ee+Jt+'">'+ue+"</h"+de+">"},ce().setOptions({silent:!0,gfm:!0,pedantic:!1}),ce().use({tokenizer:et,renderer:qt}),Cn.ZP=ce()},50371:function(hi,Cn){"use strict";function bt(){const Mt=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let ce=1;ce<arguments.length;ce++){const ie=ce<0||arguments.length<=ce?void 0:arguments[ce];ie&&Object.keys(ie).forEach(Ie=>{const ee=ie[Ie];ee!==void 0&&(Mt[Ie]=ee)})}return Mt}Cn.Z=bt},13845:function(hi,Cn,bt){"use strict";bt.d(Cn,{F:function(){return Mt},Z:function(){return ce}});function Mt(ie){return ie!=null&&ie===ie.window}function ce(ie,Ie){var ee,Zt;if(typeof window=="undefined")return 0;const Nt=Ie?"scrollTop":"scrollLeft";let jt=0;return Mt(ie)?jt=ie[Ie?"pageYOffset":"pageXOffset"]:ie instanceof Document?jt=ie.documentElement[Nt]:(ie instanceof HTMLElement||ie)&&(jt=ie[Nt]),ie&&!Mt(ie)&&typeof jt!="number"&&(jt=(Zt=((ee=ie.ownerDocument)!==null&&ee!==void 0?ee:ie).documentElement)===null||Zt===void 0?void 0:Zt[Nt]),jt}},56762:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return ce}});var Mt=bt(59301);function ce(){const[,ie]=Mt.useReducer(Ie=>Ie+1,0);return ie}},68031:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return Ie}});var Mt=bt(16089);function ce(ee,Zt,Nt,jt){const qt=Nt-Zt;return ee/=jt/2,ee<1?qt/2*ee*ee*ee+Zt:qt/2*((ee-=2)*ee*ee+2)+Zt}var ie=bt(13845);function Ie(ee){let Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:Nt=()=>window,callback:jt,duration:qt=450}=Zt,Pt=Nt(),re=(0,ie.Z)(Pt,!0),Kt=Date.now(),Yt=()=>{const et=Date.now()-Kt,tt=ce(et>qt?qt:et,re,ee,qt);(0,ie.F)(Pt)?Pt.scrollTo(window.pageXOffset,tt):Pt instanceof Document||Pt.constructor.name==="HTMLDocument"?Pt.documentElement.scrollTop=tt:Pt.scrollTop=tt,et<qt?(0,Mt.Z)(Yt):typeof jt=="function"&&jt()};(0,Mt.Z)(Yt)}},66104:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return Ge}});var Mt=bt(92310),ce=bt.n(Mt),ie=bt(11592),Ie=bt(26112),ee=bt(59301),Zt=bt(92343),Nt=bt(36355),jt=bt(84105),qt=bt(91857);const Pt=He=>{let{children:Me}=He;const{getPrefixCls:We}=ee.useContext(Nt.E_),_e=We("breadcrumb");return ee.createElement("li",{className:`${_e}-separator`,"aria-hidden":"true"},Me===""?Me:Me||"/")};Pt.__ANT_BREADCRUMB_SEPARATOR=!0;var re=Pt,Kt=function(He,Me){var We={};for(var _e in He)Object.prototype.hasOwnProperty.call(He,_e)&&Me.indexOf(_e)<0&&(We[_e]=He[_e]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,_e=Object.getOwnPropertySymbols(He);ve<_e.length;ve++)Me.indexOf(_e[ve])<0&&Object.prototype.propertyIsEnumerable.call(He,_e[ve])&&(We[_e[ve]]=He[_e[ve]]);return We};function Yt(He,Me){if(He.title===void 0||He.title===null)return null;const We=Object.keys(Me).join("|");return typeof He.title=="object"?He.title:String(He.title).replace(new RegExp(`:(${We})`,"g"),(_e,ve)=>Me[ve]||_e)}function Ct(He,Me,We,_e){if(We==null)return null;const{className:ve,onClick:ne}=Me,Se=Kt(Me,["className","onClick"]),Pn=Object.assign(Object.assign({},(0,Ie.Z)(Se,{data:!0,aria:!0})),{onClick:ne});return _e!==void 0?ee.createElement("a",Object.assign({},Pn,{className:ce()(`${He}-link`,ve),href:_e}),We):ee.createElement("span",Object.assign({},Pn,{className:ce()(`${He}-link`,ve)}),We)}function et(He,Me){return(_e,ve,ne,Se,Pn)=>{if(Me)return Me(_e,ve,ne,Se);const Mn=Yt(_e,ve);return Ct(He,_e,Mn,Pn)}}var tt=function(He,Me){var We={};for(var _e in He)Object.prototype.hasOwnProperty.call(He,_e)&&Me.indexOf(_e)<0&&(We[_e]=He[_e]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,_e=Object.getOwnPropertySymbols(He);ve<_e.length;ve++)Me.indexOf(_e[ve])<0&&Object.prototype.propertyIsEnumerable.call(He,_e[ve])&&(We[_e[ve]]=He[_e[ve]]);return We};const lt=He=>{const{prefixCls:Me,separator:We="/",children:_e,menu:ve,overlay:ne,dropdownProps:Se,href:Pn}=He,Xe=(Nn=>{if(ve||ne){const Zn=Object.assign({},Se);if(ve){const fi=ve||{},{items:zn}=fi,Si=tt(fi,["items"]);Zn.menu=Object.assign(Object.assign({},Si),{items:zn==null?void 0:zn.map((nn,Fi)=>{var{key:Ti,title:Lt,label:Ot,path:mt}=nn,ft=tt(nn,["key","title","label","path"]);let pt=Ot!=null?Ot:Lt;return mt&&(pt=ee.createElement("a",{href:`${Pn}${mt}`},pt)),Object.assign(Object.assign({},ft),{key:Ti!=null?Ti:Fi,label:pt})})})}else ne&&(Zn.overlay=ne);return ee.createElement(qt.Z,Object.assign({placement:"bottom"},Zn),ee.createElement("span",{className:`${Me}-overlay-link`},Nn,ee.createElement(jt.Z,null)))}return Nn})(_e);return Xe!=null?ee.createElement(ee.Fragment,null,ee.createElement("li",null,Xe),We&&ee.createElement(re,null,We)):null},rt=He=>{const{prefixCls:Me,children:We,href:_e}=He,ve=tt(He,["prefixCls","children","href"]),{getPrefixCls:ne}=ee.useContext(Nt.E_),Se=ne("breadcrumb",Me);return ee.createElement(lt,Object.assign({},ve,{prefixCls:Se}),Ct(Se,ve,We,_e))};rt.__ANT_BREADCRUMB_ITEM=!0;var ht=rt,dt=bt(17313),St=bt(83116),It=bt(37613);const _t=He=>{const{componentCls:Me,iconCls:We}=He;return{[Me]:Object.assign(Object.assign({},(0,dt.Wf)(He)),{color:He.itemColor,fontSize:He.fontSize,[We]:{fontSize:He.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:He.linkColor,transition:`color ${He.motionDurationMid}`,padding:`0 ${He.paddingXXS}px`,borderRadius:He.borderRadiusSM,height:He.lineHeight*He.fontSize,display:"inline-block",marginInline:-He.marginXXS,"&:hover":{color:He.linkHoverColor,backgroundColor:He.colorBgTextHover}},(0,dt.Qy)(He)),"li:last-child":{color:He.lastItemColor},[`${Me}-separator`]:{marginInline:He.separatorMargin,color:He.separatorColor},[`${Me}-link`]:{[`
|
|
|
> ${We} + span,
|
|
|
> ${We} + a
|
|
|
`]:{marginInlineStart:He.marginXXS}},[`${Me}-overlay-link`]:{borderRadius:He.borderRadiusSM,height:He.lineHeight*He.fontSize,display:"inline-block",padding:`0 ${He.paddingXXS}px`,marginInline:-He.marginXXS,[`> ${We}`]:{marginInlineStart:He.marginXXS,fontSize:He.fontSizeIcon},"&:hover":{color:He.linkHoverColor,backgroundColor:He.colorBgTextHover,a:{color:He.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${He.componentCls}-rtl`]:{direction:"rtl"}})}};var Gt=(0,St.Z)("Breadcrumb",He=>{const Me=(0,It.TS)(He,{});return[_t(Me)]},He=>({itemColor:He.colorTextDescription,lastItemColor:He.colorText,iconFontSize:He.fontSize,linkColor:He.colorTextDescription,linkHoverColor:He.colorText,separatorColor:He.colorTextDescription,separatorMargin:He.marginXS})),oe=function(He,Me){var We={};for(var _e in He)Object.prototype.hasOwnProperty.call(He,_e)&&Me.indexOf(_e)<0&&(We[_e]=He[_e]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,_e=Object.getOwnPropertySymbols(He);ve<_e.length;ve++)Me.indexOf(_e[ve])<0&&Object.prototype.propertyIsEnumerable.call(He,_e[ve])&&(We[_e[ve]]=He[_e[ve]]);return We};function ue(He){const{breadcrumbName:Me,children:We}=He,_e=oe(He,["breadcrumbName","children"]),ve=Object.assign({title:Me},_e);return We&&(ve.menu={items:We.map(ne=>{var{breadcrumbName:Se}=ne,Pn=oe(ne,["breadcrumbName"]);return Object.assign(Object.assign({},Pn),{title:Se})})}),ve}function de(He,Me){return(0,ee.useMemo)(()=>He||(Me?Me.map(ue):null),[He,Me])}var be=function(He,Me){var We={};for(var _e in He)Object.prototype.hasOwnProperty.call(He,_e)&&Me.indexOf(_e)<0&&(We[_e]=He[_e]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,_e=Object.getOwnPropertySymbols(He);ve<_e.length;ve++)Me.indexOf(_e[ve])<0&&Object.prototype.propertyIsEnumerable.call(He,_e[ve])&&(We[_e[ve]]=He[_e[ve]]);return We};const Jt=(He,Me)=>{if(Me===void 0)return Me;let We=(Me||"").replace(/^\//,"");return Object.keys(He).forEach(_e=>{We=We.replace(`:${_e}`,He[_e])}),We},Ke=He=>{const{prefixCls:Me,separator:We="/",style:_e,className:ve,rootClassName:ne,routes:Se,items:Pn,children:Mn,itemRender:Xe,params:Nn={}}=He,Zn=be(He,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:fi,direction:zn,breadcrumb:Si}=ee.useContext(Nt.E_);let nn;const Fi=fi("breadcrumb",Me),[Ti,Lt]=Gt(Fi),Ot=de(Pn,Se),mt=et(Fi,Xe);if(Ot&&Ot.length>0){const At=[],le=Pn||Se;nn=Ot.map((we,ae)=>{const{path:me,key:Re,type:Oe,menu:ke,overlay:rn,onClick:Vn,className:sn,separator:An,dropdownProps:Bn}=we,ii=Jt(Nn,me);ii!==void 0&&At.push(ii);const _n=Re!=null?Re:ae;if(Oe==="separator")return ee.createElement(re,{key:_n},An);const ji={},cr=ae===Ot.length-1;ke?ji.menu=ke:rn&&(ji.overlay=rn);let{href:Ji}=we;return At.length&&ii!==void 0&&(Ji=`#/${At.join("/")}`),ee.createElement(lt,Object.assign({key:_n},ji,(0,Ie.Z)(we,{data:!0,aria:!0}),{className:sn,dropdownProps:Bn,href:Ji,separator:cr?"":We,onClick:Vn,prefixCls:Fi}),mt(we,Nn,le,At,Ji))})}else if(Mn){const At=(0,ie.Z)(Mn).length;nn=(0,ie.Z)(Mn).map((le,we)=>{if(!le)return le;const ae=we===At-1;return(0,Zt.Tm)(le,{separator:ae?"":We,key:we})})}const ft=ce()(Fi,Si==null?void 0:Si.className,{[`${Fi}-rtl`]:zn==="rtl"},ve,ne,Lt),pt=Object.assign(Object.assign({},Si==null?void 0:Si.style),_e);return Ti(ee.createElement("nav",Object.assign({className:ft,style:pt},Zn),ee.createElement("ol",null,nn)))};Ke.Item=ht,Ke.Separator=re;var Wt=Ke,Ge=Wt},24905:function(hi,Cn,bt){"use strict";bt.d(Cn,{default:function(){return Gt}});var Mt=bt(92310),ce=bt.n(Mt),ie=bt(5630),Ie=bt(59301),ee=bt(36355),Zt=bt(1684),Nt=bt(32441),qt=Ie.createContext(null),Pt=bt(98447),re=bt(14088),Kt=bt(4572),Yt=function(oe,ue){var de={};for(var be in oe)Object.prototype.hasOwnProperty.call(oe,be)&&ue.indexOf(be)<0&&(de[be]=oe[be]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jt=0,be=Object.getOwnPropertySymbols(oe);Jt<be.length;Jt++)ue.indexOf(be[Jt])<0&&Object.prototype.propertyIsEnumerable.call(oe,be[Jt])&&(de[be[Jt]]=oe[be[Jt]]);return de};const Ct=(oe,ue)=>{var de;const{prefixCls:be,className:Jt,rootClassName:Ke,children:Wt,indeterminate:Ge=!1,style:He,onMouseEnter:Me,onMouseLeave:We,skipGroup:_e=!1,disabled:ve}=oe,ne=Yt(oe,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Se,direction:Pn,checkbox:Mn}=Ie.useContext(ee.E_),Xe=Ie.useContext(qt),{isFormItemInput:Nn}=Ie.useContext(Nt.aM),Zn=Ie.useContext(Zt.Z),fi=(de=(Xe==null?void 0:Xe.disabled)||ve)!==null&&de!==void 0?de:Zn,zn=Ie.useRef(ne.value);Ie.useEffect(()=>{Xe==null||Xe.registerValue(ne.value)},[]),Ie.useEffect(()=>{if(!_e)return ne.value!==zn.current&&(Xe==null||Xe.cancelValue(zn.current),Xe==null||Xe.registerValue(ne.value),zn.current=ne.value),()=>Xe==null?void 0:Xe.cancelValue(ne.value)},[ne.value]);const Si=Se("checkbox",be),[nn,Fi]=(0,Pt.ZP)(Si),Ti=Object.assign({},ne);Xe&&!_e&&(Ti.onChange=function(){ne.onChange&&ne.onChange.apply(ne,arguments),Xe.toggleOption&&Xe.toggleOption({label:Wt,value:ne.value})},Ti.name=Xe.name,Ti.checked=Xe.value.includes(ne.value));const Lt=ce()(`${Si}-wrapper`,{[`${Si}-rtl`]:Pn==="rtl",[`${Si}-wrapper-checked`]:Ti.checked,[`${Si}-wrapper-disabled`]:fi,[`${Si}-wrapper-in-form-item`]:Nn},Mn==null?void 0:Mn.className,Jt,Ke,Fi),Ot=ce()({[`${Si}-indeterminate`]:Ge},Kt.A,Fi),mt=Ge?"mixed":void 0;return nn(Ie.createElement(re.Z,{component:"Checkbox",disabled:fi},Ie.createElement("label",{className:Lt,style:Object.assign(Object.assign({},Mn==null?void 0:Mn.style),He),onMouseEnter:Me,onMouseLeave:We},Ie.createElement(ie.Z,Object.assign({"aria-checked":mt},Ti,{prefixCls:Si,className:Ot,disabled:fi,ref:ue})),Wt!==void 0&&Ie.createElement("span",null,Wt))))};var tt=Ie.forwardRef(Ct),lt=bt(19127),rt=bt(2738),ht=function(oe,ue){var de={};for(var be in oe)Object.prototype.hasOwnProperty.call(oe,be)&&ue.indexOf(be)<0&&(de[be]=oe[be]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jt=0,be=Object.getOwnPropertySymbols(oe);Jt<be.length;Jt++)ue.indexOf(be[Jt])<0&&Object.prototype.propertyIsEnumerable.call(oe,be[Jt])&&(de[be[Jt]]=oe[be[Jt]]);return de};const dt=(oe,ue)=>{const{defaultValue:de,children:be,options:Jt=[],prefixCls:Ke,className:Wt,rootClassName:Ge,style:He,onChange:Me}=oe,We=ht(oe,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:_e,direction:ve}=Ie.useContext(ee.E_),[ne,Se]=Ie.useState(We.value||de||[]),[Pn,Mn]=Ie.useState([]);Ie.useEffect(()=>{"value"in We&&Se(We.value||[])},[We.value]);const Xe=Ie.useMemo(()=>Jt.map(ft=>typeof ft=="string"||typeof ft=="number"?{label:ft,value:ft}:ft),[Jt]),Nn=ft=>{Mn(pt=>pt.filter(At=>At!==ft))},Zn=ft=>{Mn(pt=>[].concat((0,lt.Z)(pt),[ft]))},fi=ft=>{const pt=ne.indexOf(ft.value),At=(0,lt.Z)(ne);pt===-1?At.push(ft.value):At.splice(pt,1),"value"in We||Se(At),Me==null||Me(At.filter(le=>Pn.includes(le)).sort((le,we)=>{const ae=Xe.findIndex(Re=>Re.value===le),me=Xe.findIndex(Re=>Re.value===we);return ae-me}))},zn=_e("checkbox",Ke),Si=`${zn}-group`,[nn,Fi]=(0,Pt.ZP)(zn),Ti=(0,rt.Z)(We,["value","disabled"]),Lt=Jt.length?Xe.map(ft=>Ie.createElement(tt,{prefixCls:zn,key:ft.value.toString(),disabled:"disabled"in ft?ft.disabled:We.disabled,value:ft.value,checked:ne.includes(ft.value),onChange:ft.onChange,className:`${Si}-item`,style:ft.style,title:ft.title},ft.label)):be,Ot={toggleOption:fi,value:ne,disabled:We.disabled,name:We.name,registerValue:Zn,cancelValue:Nn},mt=ce()(Si,{[`${Si}-rtl`]:ve==="rtl"},Wt,Ge,Fi);return nn(Ie.createElement("div",Object.assign({className:mt,style:He},Ti,{ref:ue}),Ie.createElement(qt.Provider,{value:Ot},Lt)))},St=Ie.forwardRef(dt);var It=Ie.memo(St);const _t=tt;_t.Group=It,_t.__ANT_CHECKBOX=!0;var Gt=_t},98447:function(hi,Cn,bt){"use strict";bt.d(Cn,{C2:function(){return ee}});var Mt=bt(17313),ce=bt(37613),ie=bt(83116);const Ie=Zt=>{const{checkboxCls:Nt}=Zt,jt=`${Nt}-wrapper`;return[{[`${Nt}-group`]:Object.assign(Object.assign({},(0,Mt.Wf)(Zt)),{display:"inline-flex",flexWrap:"wrap",columnGap:Zt.marginXS,[`> ${Zt.antCls}-row`]:{flex:1}}),[jt]:Object.assign(Object.assign({},(0,Mt.Wf)(Zt)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${jt}`]:{marginInlineStart:0},[`&${jt}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[Nt]:Object.assign(Object.assign({},(0,Mt.Wf)(Zt)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Zt.borderRadiusSM,alignSelf:"center",[`${Nt}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Nt}-inner`]:Object.assign({},(0,Mt.oN)(Zt))},[`${Nt}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Zt.checkboxSize,height:Zt.checkboxSize,direction:"ltr",backgroundColor:Zt.colorBgContainer,border:`${Zt.lineWidth}px ${Zt.lineType} ${Zt.colorBorder}`,borderRadius:Zt.borderRadiusSM,borderCollapse:"separate",transition:`all ${Zt.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Zt.checkboxSize/14*5,height:Zt.checkboxSize/14*8,border:`${Zt.lineWidthBold}px solid ${Zt.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Zt.motionDurationFast} ${Zt.motionEaseInBack}, opacity ${Zt.motionDurationFast}`}},"& + span":{paddingInlineStart:Zt.paddingXS,paddingInlineEnd:Zt.paddingXS}})},{[`
|
|
|
${jt}:not(${jt}-disabled),
|
|
|
${Nt}:not(${Nt}-disabled)
|
|
|
`]:{[`&:hover ${Nt}-inner`]:{borderColor:Zt.colorPrimary}},[`${jt}:not(${jt}-disabled)`]:{[`&:hover ${Nt}-checked:not(${Nt}-disabled) ${Nt}-inner`]:{backgroundColor:Zt.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Nt}-checked:not(${Nt}-disabled):after`]:{borderColor:Zt.colorPrimaryHover}}},{[`${Nt}-checked`]:{[`${Nt}-inner`]:{backgroundColor:Zt.colorPrimary,borderColor:Zt.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Zt.motionDurationMid} ${Zt.motionEaseOutBack} ${Zt.motionDurationFast}`}}},[`
|
|
|
${jt}-checked:not(${jt}-disabled),
|
|
|
${Nt}-checked:not(${Nt}-disabled)
|
|
|
`]:{[`&:hover ${Nt}-inner`]:{backgroundColor:Zt.colorPrimaryHover,borderColor:"transparent"}}},{[Nt]:{"&-indeterminate":{[`${Nt}-inner`]:{backgroundColor:Zt.colorBgContainer,borderColor:Zt.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Zt.fontSizeLG/2,height:Zt.fontSizeLG/2,backgroundColor:Zt.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${jt}-disabled`]:{cursor:"not-allowed"},[`${Nt}-disabled`]:{[`&, ${Nt}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Nt}-inner`]:{background:Zt.colorBgContainerDisabled,borderColor:Zt.colorBorder,"&:after":{borderColor:Zt.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Zt.colorTextDisabled},[`&${Nt}-indeterminate ${Nt}-inner::after`]:{background:Zt.colorTextDisabled}}}]};function ee(Zt,Nt){const jt=(0,ce.TS)(Nt,{checkboxCls:`.${Zt}`,checkboxSize:Nt.controlInteractiveSize});return[Ie(jt)]}Cn.ZP=(0,ie.Z)("Checkbox",(Zt,Nt)=>{let{prefixCls:jt}=Nt;return[ee(jt,Zt)]})},93891:function(hi,Cn,bt){"use strict";var Mt=bt(59301),ce=bt(36355),ie=bt(64165);const Ie=ee=>{const{componentName:Zt}=ee,{getPrefixCls:Nt}=(0,Mt.useContext)(ce.E_),jt=Nt("empty");switch(Zt){case"Table":case"List":return Mt.createElement(ie.Z,{image:ie.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Mt.createElement(ie.Z,{image:ie.Z.PRESENTED_IMAGE_SIMPLE,className:`${jt}-small`});default:return Mt.createElement(ie.Z,null)}};Cn.Z=Ie},28103:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return Kt}});var Mt=bt(92310),ce=bt.n(Mt),ie=bt(59301),Ie=bt(36355),ee=bt(17313),Zt=bt(83116),Nt=bt(37613);const jt=Yt=>{const{componentCls:Ct,sizePaddingEdgeHorizontal:et,colorSplit:tt,lineWidth:lt,textPaddingInline:rt,orientationMargin:ht,verticalMarginInline:dt}=Yt;return{[Ct]:Object.assign(Object.assign({},(0,ee.Wf)(Yt)),{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:`${Yt.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${Ct}-with-text`]:{display:"flex",alignItems:"center",margin:`${Yt.dividerHorizontalWithTextGutterMargin}px 0`,color:Yt.colorTextHeading,fontWeight:500,fontSize:Yt.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${Ct}-with-text-left`]:{"&::before":{width:`${ht*100}%`},"&::after":{width:`${100-ht*100}%`}},[`&-horizontal${Ct}-with-text-right`]:{"&::before":{width:`${100-ht*100}%`},"&::after":{width:`${ht*100}%`}},[`${Ct}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:rt},"&-dashed":{background:"none",borderColor:tt,borderStyle:"dashed",borderWidth:`${lt}px 0 0`},[`&-horizontal${Ct}-with-text${Ct}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Ct}-dashed`]:{borderInlineStartWidth:lt,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Ct}-with-text`]:{color:Yt.colorText,fontWeight:"normal",fontSize:Yt.fontSize},[`&-horizontal${Ct}-with-text-left${Ct}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Ct}-inner-text`]:{paddingInlineStart:et}},[`&-horizontal${Ct}-with-text-right${Ct}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Ct}-inner-text`]:{paddingInlineEnd:et}}})}};var qt=(0,Zt.Z)("Divider",Yt=>{const Ct=(0,Nt.TS)(Yt,{dividerHorizontalWithTextGutterMargin:Yt.margin,dividerHorizontalGutterMargin:Yt.marginLG,sizePaddingEdgeHorizontal:0});return[jt(Ct)]},Yt=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Yt.marginXS})),Pt=function(Yt,Ct){var et={};for(var tt in Yt)Object.prototype.hasOwnProperty.call(Yt,tt)&&Ct.indexOf(tt)<0&&(et[tt]=Yt[tt]);if(Yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,tt=Object.getOwnPropertySymbols(Yt);lt<tt.length;lt++)Ct.indexOf(tt[lt])<0&&Object.prototype.propertyIsEnumerable.call(Yt,tt[lt])&&(et[tt[lt]]=Yt[tt[lt]]);return et},Kt=Yt=>{const{getPrefixCls:Ct,direction:et,divider:tt}=ie.useContext(Ie.E_),{prefixCls:lt,type:rt="horizontal",orientation:ht="center",orientationMargin:dt,className:St,rootClassName:It,children:_t,dashed:Gt,plain:oe,style:ue}=Yt,de=Pt(Yt,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),be=Ct("divider",lt),[Jt,Ke]=qt(be),Wt=ht.length>0?`-${ht}`:ht,Ge=!!_t,He=ht==="left"&&dt!=null,Me=ht==="right"&&dt!=null,We=ce()(be,tt==null?void 0:tt.className,Ke,`${be}-${rt}`,{[`${be}-with-text`]:Ge,[`${be}-with-text${Wt}`]:Ge,[`${be}-dashed`]:!!Gt,[`${be}-plain`]:!!oe,[`${be}-rtl`]:et==="rtl",[`${be}-no-default-orientation-margin-left`]:He,[`${be}-no-default-orientation-margin-right`]:Me},St,It),_e=ie.useMemo(()=>typeof dt=="number"?dt:/^\d+$/.test(dt)?Number(dt):dt,[dt]),ve=Object.assign(Object.assign({},He&&{marginLeft:_e}),Me&&{marginRight:_e});return Jt(ie.createElement("div",Object.assign({className:We,style:Object.assign(Object.assign({},tt==null?void 0:tt.style),ue)},de,{role:"separator"}),_t&&rt!=="vertical"&&ie.createElement("span",{className:`${be}-inner-text`,style:ve},_t)))}},91857:function(hi,Cn,bt){"use strict";var Mt=bt(59301),ce=bt(38819),ie=bt(92310),Ie=bt.n(ie),ee=bt(31561),Zt=bt(70425),Nt=bt(18929),jt=bt(2738),qt=bt(79676),Pt=bt(53487),re=bt(92343),Kt=bt(36355),Yt=bt(20834),Ct=bt(40875),et=bt(88088),tt=bt(47211);const lt=null,rt=It=>{const{menu:_t,arrow:Gt,prefixCls:oe,children:ue,trigger:de,disabled:be,dropdownRender:Jt,getPopupContainer:Ke,overlayClassName:Wt,rootClassName:Ge,open:He,onOpenChange:Me,visible:We,onVisibleChange:_e,mouseEnterDelay:ve=.15,mouseLeaveDelay:ne=.1,autoAdjustOverflow:Se=!0,placement:Pn="",overlay:Mn,transitionName:Xe}=It,{getPopupContainer:Nn,getPrefixCls:Zn,direction:fi}=Mt.useContext(Kt.E_),zn=Mt.useMemo(()=>{const ke=Zn();return Xe!==void 0?Xe:Pn.includes("top")?`${ke}-slide-down`:`${ke}-slide-up`},[Zn,Pn,Xe]),Si=Mt.useMemo(()=>Pn?Pn.includes("Center")?Pn.slice(0,Pn.indexOf("Center")):Pn:fi==="rtl"?"bottomRight":"bottomLeft",[Pn,fi]),nn=Zn("dropdown",oe),[Fi,Ti]=(0,tt.Z)(nn),[,Lt]=(0,et.Z)(),Ot=Mt.Children.only(ue),mt=(0,re.Tm)(Ot,{className:Ie()(`${nn}-trigger`,{[`${nn}-rtl`]:fi==="rtl"},Ot.props.className),disabled:be}),ft=be?[]:de;let pt;ft&&ft.includes("contextMenu")&&(pt=!0);const[At,le]=(0,Nt.Z)(!1,{value:He!=null?He:We}),we=(0,Zt.useEvent)(ke=>{Me==null||Me(ke),_e==null||_e(ke),le(ke)}),ae=Ie()(Wt,Ge,Ti,{[`${nn}-rtl`]:fi==="rtl"}),me=(0,qt.Z)({arrowPointAtCenter:typeof Gt=="object"&&Gt.pointAtCenter,autoAdjustOverflow:Se,offset:Lt.marginXXS,arrowWidth:Gt?Lt.sizePopupArrow:0,borderRadius:Lt.borderRadius}),Re=Mt.useCallback(()=>{le(!1)},[]),Oe=()=>{let ke;return _t!=null&&_t.items?ke=Mt.createElement(Yt.default,Object.assign({},_t)):typeof Mn=="function"?ke=Mn():ke=Mn,Jt&&(ke=Jt(ke)),ke=Mt.Children.only(typeof ke=="string"?Mt.createElement("span",null,ke):ke),Mt.createElement(Ct.J,{prefixCls:`${nn}-menu`,expandIcon:Mt.createElement("span",{className:`${nn}-menu-submenu-arrow`},Mt.createElement(ce.Z,{className:`${nn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Re,validator:rn=>{let{mode:Vn}=rn}},ke)};return Fi(Mt.createElement(ee.Z,Object.assign({alignPoint:pt},(0,jt.Z)(It,["rootClassName"]),{mouseEnterDelay:ve,mouseLeaveDelay:ne,visible:At,builtinPlacements:me,arrow:!!Gt,overlayClassName:ae,prefixCls:nn,getPopupContainer:Ke||Nn,transitionName:zn,trigger:ft,overlay:Oe,placement:Si,onVisibleChange:we}),mt))};function ht(It){return Object.assign(Object.assign({},It),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const dt=(0,Pt.Z)(rt,"dropdown",It=>It,ht),St=It=>Mt.createElement(dt,Object.assign({},It),Mt.createElement("span",null));rt._InternalPanelDoNotUseOrYouWillBeFired=St,Cn.Z=rt},38854:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return et}});var Mt=bt(91857),ce=bt(92310),ie=bt.n(ce),Ie=bt(59301),ee=bt(18785),Zt=bt(3113),Nt=bt(36355),jt=bt(81327),qt=bt(33234),Pt=bt(47211),re=function(tt,lt){var rt={};for(var ht in tt)Object.prototype.hasOwnProperty.call(tt,ht)&<.indexOf(ht)<0&&(rt[ht]=tt[ht]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,ht=Object.getOwnPropertySymbols(tt);dt<ht.length;dt++)lt.indexOf(ht[dt])<0&&Object.prototype.propertyIsEnumerable.call(tt,ht[dt])&&(rt[ht[dt]]=tt[ht[dt]]);return rt};const Kt=tt=>{const{getPopupContainer:lt,getPrefixCls:rt,direction:ht}=Ie.useContext(Nt.E_),{prefixCls:dt,type:St="default",danger:It,disabled:_t,loading:Gt,onClick:oe,htmlType:ue,children:de,className:be,menu:Jt,arrow:Ke,autoFocus:Wt,overlay:Ge,trigger:He,align:Me,open:We,onOpenChange:_e,placement:ve,getPopupContainer:ne,href:Se,icon:Pn=Ie.createElement(ee.Z,null),title:Mn,buttonsRender:Xe=Oe=>Oe,mouseEnterDelay:Nn,mouseLeaveDelay:Zn,overlayClassName:fi,overlayStyle:zn,destroyPopupOnHide:Si,dropdownRender:nn}=tt,Fi=re(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"]),Ti=rt("dropdown",dt),Lt=`${Ti}-button`,[Ot,mt]=(0,Pt.Z)(Ti),ft={menu:Jt,arrow:Ke,autoFocus:Wt,align:Me,disabled:_t,trigger:_t?[]:He,onOpenChange:_e,getPopupContainer:ne||lt,mouseEnterDelay:Nn,mouseLeaveDelay:Zn,overlayClassName:fi,overlayStyle:zn,destroyPopupOnHide:Si,dropdownRender:nn},{compactSize:pt,compactItemClassnames:At}=(0,qt.ri)(Ti,ht),le=ie()(Lt,At,be,mt);"overlay"in tt&&(ft.overlay=Ge),"open"in tt&&(ft.open=We),"placement"in tt?ft.placement=ve:ft.placement=ht==="rtl"?"bottomLeft":"bottomRight";const we=Ie.createElement(Zt.ZP,{type:St,danger:It,disabled:_t,loading:Gt,onClick:oe,htmlType:ue,href:Se,title:Mn},de),ae=Ie.createElement(Zt.ZP,{type:St,danger:It,icon:Pn}),[me,Re]=Xe([we,ae]);return Ot(Ie.createElement(jt.Z.Compact,Object.assign({className:le,size:pt,block:!0},Fi),me,Ie.createElement(Mt.Z,Object.assign({},ft),Re)))};Kt.__ANT_BUTTON=!0;var Yt=Kt;const Ct=Mt.Z;Ct.Button=Yt;var et=Ct},47211:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return re}});var Mt=bt(17313),ce=bt(13826),ie=bt(92899),Ie=bt(29878),ee=bt(19447),Zt=bt(83116),Nt=bt(37613),qt=Kt=>{const{componentCls:Yt,menuCls:Ct,colorError:et,colorTextLightSolid:tt}=Kt,lt=`${Ct}-item`;return{[`${Yt}, ${Yt}-menu-submenu`]:{[`${Ct} ${lt}`]:{[`&${lt}-danger:not(${lt}-disabled)`]:{color:et,"&:hover":{color:tt,backgroundColor:et}}}}}};const Pt=Kt=>{const{componentCls:Yt,menuCls:Ct,zIndexPopup:et,dropdownArrowDistance:tt,sizePopupArrow:lt,antCls:rt,iconCls:ht,motionDurationMid:dt,dropdownPaddingVertical:St,fontSize:It,dropdownEdgeChildPadding:_t,colorTextDisabled:Gt,fontSizeIcon:oe,controlPaddingHorizontal:ue,colorBgElevated:de}=Kt;return[{[Yt]:Object.assign(Object.assign({},(0,Mt.Wf)(Kt)),{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`]:{[`& > ${ht}-down, & > ${rt}-btn-icon > ${ht}-down`]:{fontSize:oe}},[`${Yt}-wrap`]:{position:"relative",[`${rt}-btn > ${ht}-down`]:{fontSize:oe},[`${ht}-down::before`]:{transition:`transform ${dt}`}},[`${Yt}-wrap-open`]:{[`${ht}-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${Yt}-placement-bottomLeft,
|
|
|
&${rt}-slide-down-appear${rt}-slide-down-appear-active${Yt}-placement-bottomLeft,
|
|
|
&${rt}-slide-down-enter${rt}-slide-down-enter-active${Yt}-placement-bottom,
|
|
|
&${rt}-slide-down-appear${rt}-slide-down-appear-active${Yt}-placement-bottom,
|
|
|
&${rt}-slide-down-enter${rt}-slide-down-enter-active${Yt}-placement-bottomRight,
|
|
|
&${rt}-slide-down-appear${rt}-slide-down-appear-active${Yt}-placement-bottomRight`]:{animationName:ce.fJ},[`&${rt}-slide-up-enter${rt}-slide-up-enter-active${Yt}-placement-topLeft,
|
|
|
&${rt}-slide-up-appear${rt}-slide-up-appear-active${Yt}-placement-topLeft,
|
|
|
&${rt}-slide-up-enter${rt}-slide-up-enter-active${Yt}-placement-top,
|
|
|
&${rt}-slide-up-appear${rt}-slide-up-appear-active${Yt}-placement-top,
|
|
|
&${rt}-slide-up-enter${rt}-slide-up-enter-active${Yt}-placement-topRight,
|
|
|
&${rt}-slide-up-appear${rt}-slide-up-appear-active${Yt}-placement-topRight`]:{animationName:ce.Qt},[`&${rt}-slide-down-leave${rt}-slide-down-leave-active${Yt}-placement-bottomLeft,
|
|
|
&${rt}-slide-down-leave${rt}-slide-down-leave-active${Yt}-placement-bottom,
|
|
|
&${rt}-slide-down-leave${rt}-slide-down-leave-active${Yt}-placement-bottomRight`]:{animationName:ce.Uw},[`&${rt}-slide-up-leave${rt}-slide-up-leave-active${Yt}-placement-topLeft,
|
|
|
&${rt}-slide-up-leave${rt}-slide-up-leave-active${Yt}-placement-top,
|
|
|
&${rt}-slide-up-leave${rt}-slide-up-leave-active${Yt}-placement-topRight`]:{animationName:ce.ly}})},(0,ee.ZP)(Kt,{colorBg:de,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Yt} ${Ct}`]:{position:"relative",margin:0},[`${Ct}-submenu-popup`]:{position:"absolute",zIndex:et,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Yt}, ${Yt}-menu-submenu`]:{[Ct]:Object.assign(Object.assign({padding:_t,listStyleType:"none",backgroundColor:de,backgroundClip:"padding-box",borderRadius:Kt.borderRadiusLG,outline:"none",boxShadow:Kt.boxShadowSecondary},(0,Mt.Qy)(Kt)),{[`${Ct}-item-group-title`]:{padding:`${St}px ${ue}px`,color:Kt.colorTextDescription,transition:`all ${dt}`},[`${Ct}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Ct}-item-icon`]:{minWidth:It,marginInlineEnd:Kt.marginXS,fontSize:Kt.fontSizeSM},[`${Ct}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${dt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${Ct}-item, ${Ct}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${St}px ${ue}px`,color:Kt.colorText,fontWeight:"normal",fontSize:It,lineHeight:Kt.lineHeight,cursor:"pointer",transition:`all ${dt}`,borderRadius:Kt.borderRadiusSM,"&:hover, &-active":{backgroundColor:Kt.controlItemBgHover}},(0,Mt.Qy)(Kt)),{"&-selected":{color:Kt.colorPrimary,backgroundColor:Kt.controlItemBgActive,"&:hover, &-active":{backgroundColor:Kt.controlItemBgActiveHover}},"&-disabled":{color:Gt,cursor:"not-allowed","&:hover":{color:Gt,backgroundColor:de,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Kt.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Kt.colorSplit},[`${Yt}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Kt.paddingXS,[`${Yt}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Kt.colorTextDescription,fontSize:oe,fontStyle:"normal"}}}),[`${Ct}-item-group-list`]:{margin:`0 ${Kt.marginXS}px`,padding:0,listStyle:"none"},[`${Ct}-submenu-title`]:{paddingInlineEnd:ue+Kt.fontSizeSM},[`${Ct}-submenu-vertical`]:{position:"relative"},[`${Ct}-submenu${Ct}-submenu-disabled ${Yt}-menu-submenu-title`]:{[`&, ${Yt}-menu-submenu-arrow-icon`]:{color:Gt,backgroundColor:de,cursor:"not-allowed"}},[`${Ct}-submenu-selected ${Yt}-menu-submenu-title`]:{color:Kt.colorPrimary}})}},[(0,ce.oN)(Kt,"slide-up"),(0,ce.oN)(Kt,"slide-down"),(0,ie.Fm)(Kt,"move-up"),(0,ie.Fm)(Kt,"move-down"),(0,Ie._y)(Kt,"zoom-big")]]};var re=(0,Zt.Z)("Dropdown",(Kt,Yt)=>{let{rootPrefixCls:Ct}=Yt;const{marginXXS:et,sizePopupArrow:tt,controlHeight:lt,fontSize:rt,lineHeight:ht,paddingXXS:dt,componentCls:St,borderRadiusLG:It}=Kt,_t=(lt-rt*ht)/2,{dropdownArrowOffset:Gt}=(0,ee.fS)({contentRadius:It}),oe=(0,Nt.TS)(Kt,{menuCls:`${St}-menu`,rootPrefixCls:Ct,dropdownArrowDistance:tt/2+et,dropdownArrowOffset:Gt,dropdownPaddingVertical:_t,dropdownEdgeChildPadding:dt});return[Pt(oe),qt(oe)]},Kt=>({zIndexPopup:Kt.zIndexPopupBase+50}))},64165:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return dt}});var Mt=bt(92310),ce=bt.n(Mt),ie=bt(59301),Ie=bt(36355),ee=bt(9763),Zt=bt(64993),Nt=bt(88088),qt=()=>{const[,St]=(0,Nt.Z)(),_t=new Zt.C(St.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return ie.createElement("svg",{style:_t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},ie.createElement("g",{fill:"none",fillRule:"evenodd"},ie.createElement("g",{transform:"translate(24 31.67)"},ie.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),ie.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),ie.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),ie.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),ie.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),ie.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),ie.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},ie.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),ie.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},re=()=>{const[,St]=(0,Nt.Z)(),{colorFill:It,colorFillTertiary:_t,colorFillQuaternary:Gt,colorBgContainer:oe}=St,{borderColor:ue,shadowColor:de,contentColor:be}=(0,ie.useMemo)(()=>({borderColor:new Zt.C(It).onBackground(oe).toHexShortString(),shadowColor:new Zt.C(_t).onBackground(oe).toHexShortString(),contentColor:new Zt.C(Gt).onBackground(oe).toHexShortString()}),[It,_t,Gt,oe]);return ie.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},ie.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},ie.createElement("ellipse",{fill:de,cx:"32",cy:"33",rx:"32",ry:"7"}),ie.createElement("g",{fillRule:"nonzero",stroke:ue},ie.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),ie.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:be}))))},Kt=bt(83116),Yt=bt(37613);const Ct=St=>{const{componentCls:It,margin:_t,marginXS:Gt,marginXL:oe,fontSize:ue,lineHeight:de}=St;return{[It]:{marginInline:Gt,fontSize:ue,lineHeight:de,textAlign:"center",[`${It}-image`]:{height:St.emptyImgHeight,marginBottom:Gt,opacity:St.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${It}-description`]:{color:St.colorText},[`${It}-footer`]:{marginTop:_t},"&-normal":{marginBlock:oe,color:St.colorTextDisabled,[`${It}-description`]:{color:St.colorTextDisabled},[`${It}-image`]:{height:St.emptyImgHeightMD}},"&-small":{marginBlock:Gt,color:St.colorTextDisabled,[`${It}-image`]:{height:St.emptyImgHeightSM}}}}};var et=(0,Kt.Z)("Empty",St=>{const{componentCls:It,controlHeightLG:_t}=St,Gt=(0,Yt.TS)(St,{emptyImgCls:`${It}-img`,emptyImgHeight:_t*2.5,emptyImgHeightMD:_t,emptyImgHeightSM:_t*.875});return[Ct(Gt)]}),tt=function(St,It){var _t={};for(var Gt in St)Object.prototype.hasOwnProperty.call(St,Gt)&&It.indexOf(Gt)<0&&(_t[Gt]=St[Gt]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,Gt=Object.getOwnPropertySymbols(St);oe<Gt.length;oe++)It.indexOf(Gt[oe])<0&&Object.prototype.propertyIsEnumerable.call(St,Gt[oe])&&(_t[Gt[oe]]=St[Gt[oe]]);return _t};const lt=ie.createElement(qt,null),rt=ie.createElement(re,null),ht=St=>{var{className:It,rootClassName:_t,prefixCls:Gt,image:oe=lt,description:ue,children:de,imageStyle:be,style:Jt}=St,Ke=tt(St,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Wt,direction:Ge,empty:He}=ie.useContext(Ie.E_),Me=Wt("empty",Gt),[We,_e]=et(Me),[ve]=(0,ee.Z)("Empty"),ne=typeof ue!="undefined"?ue:ve==null?void 0:ve.description,Se=typeof ne=="string"?ne:"empty";let Pn=null;return typeof oe=="string"?Pn=ie.createElement("img",{alt:Se,src:oe}):Pn=oe,We(ie.createElement("div",Object.assign({className:ce()(_e,Me,He==null?void 0:He.className,{[`${Me}-normal`]:oe===rt,[`${Me}-rtl`]:Ge==="rtl"},It,_t),style:Object.assign(Object.assign({},He==null?void 0:He.style),Jt)},Ke),ie.createElement("div",{className:`${Me}-image`,style:be},Pn),ne&&ie.createElement("div",{className:`${Me}-description`},ne),de&&ie.createElement("div",{className:`${Me}-footer`},de)))};ht.PRESENTED_IMAGE_DEFAULT=lt,ht.PRESENTED_IMAGE_SIMPLE=rt;var dt=ht},78241:function(hi,Cn,bt){"use strict";bt.d(Cn,{default:function(){return Tn}});var Mt=bt(19127),ce=bt(92310),ie=bt.n(ce),Ie=bt(77900),ee=bt(59301),Zt=bt(62892),Nt=bt(32441);function jt(De){const[ti,yi]=ee.useState(De);return ee.useEffect(()=>{const dn=setTimeout(()=>{yi(De)},De.length?0:10);return()=>{clearTimeout(dn)}},[De]),ti}var qt=bt(17313),Pt=bt(29878),re=bt(8378),Kt=bt(37613),Yt=bt(83116),et=De=>{const{componentCls:ti}=De,yi=`${ti}-show-help`,dn=`${ti}-show-help-item`;return{[yi]:{transition:`opacity ${De.motionDurationSlow} ${De.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[dn]:{overflow:"hidden",transition:`height ${De.motionDurationSlow} ${De.motionEaseInOut},
|
|
|
opacity ${De.motionDurationSlow} ${De.motionEaseInOut},
|
|
|
transform ${De.motionDurationSlow} ${De.motionEaseInOut} !important`,[`&${dn}-appear, &${dn}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${dn}-leave-active`]:{transform:"translateY(-5px)"}}}}};const tt=De=>({legend:{display:"block",width:"100%",marginBottom:De.marginLG,padding:0,color:De.colorTextDescription,fontSize:De.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${De.lineWidth}px ${De.lineType} ${De.colorBorder}`},label:{fontSize:De.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 ${De.controlOutlineWidth}px ${De.controlOutline}`},output:{display:"block",paddingTop:15,color:De.colorText,fontSize:De.fontSize,lineHeight:De.lineHeight}}),lt=(De,ti)=>{const{formItemCls:yi}=De;return{[yi]:{[`${yi}-label > label`]:{height:ti},[`${yi}-control-input`]:{minHeight:ti}}}},rt=De=>{const{componentCls:ti}=De;return{[De.componentCls]:Object.assign(Object.assign(Object.assign({},(0,qt.Wf)(De)),tt(De)),{[`${ti}-text`]:{display:"inline-block",paddingInlineEnd:De.paddingSM},"&-small":Object.assign({},lt(De,De.controlHeightSM)),"&-large":Object.assign({},lt(De,De.controlHeightLG))})}},ht=De=>{const{formItemCls:ti,iconCls:yi,componentCls:dn,rootPrefixCls:Le,labelRequiredMarkColor:yn,labelColor:Qn,labelFontSize:wi,labelHeight:Oi,labelColonMarginInlineStart:qe,labelColonMarginInlineEnd:oi,itemMarginBottom:Pi}=De;return{[ti]:Object.assign(Object.assign({},(0,qt.Wf)(De)),{marginBottom:Pi,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${Le}-row`]:{display:"none"},"&-has-warning":{[`${ti}-split`]:{color:De.colorError}},"&-has-error":{[`${ti}-split`]:{color:De.colorWarning}},[`${ti}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${De.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Oi,color:Qn,fontSize:wi,[`> ${yi}`]:{fontSize:De.fontSize,verticalAlign:"top"},[`&${ti}-required:not(${ti}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:De.marginXXS,color:yn,fontSize:De.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${dn}-hide-required-mark &`]:{display:"none"}},[`${ti}-optional`]:{display:"inline-block",marginInlineStart:De.marginXXS,color:De.colorTextDescription,[`${dn}-hide-required-mark &`]:{display:"none"}},[`${ti}-tooltip`]:{color:De.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:De.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:qe,marginInlineEnd:oi},[`&${ti}-no-colon::after`]:{content:'"\\a0"'}}},[`${ti}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Le}-col-'"]):not([class*="' ${Le}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:De.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[ti]:{"&-explain, &-extra":{clear:"both",color:De.colorTextDescription,fontSize:De.fontSize,lineHeight:De.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:De.controlHeightSM,transition:`color ${De.motionDurationMid} ${De.motionEaseOut}`},"&-explain":{"&-error":{color:De.colorError},"&-warning":{color:De.colorWarning}}},[`&-with-help ${ti}-explain`]:{height:"auto",opacity:1},[`${ti}-feedback-icon`]:{fontSize:De.fontSize,textAlign:"center",visibility:"visible",animationName:Pt.kr,animationDuration:De.motionDurationMid,animationTimingFunction:De.motionEaseOutBack,pointerEvents:"none","&-success":{color:De.colorSuccess},"&-error":{color:De.colorError},"&-warning":{color:De.colorWarning},"&-validating":{color:De.colorPrimary}}})}},dt=De=>{const{componentCls:ti,formItemCls:yi}=De;return{[`${ti}-horizontal`]:{[`${yi}-label`]:{flexGrow:0},[`${yi}-control`]:{flex:"1 1 0",minWidth:0},[`${yi}-label[class$='-24'], ${yi}-label[class*='-24 ']`]:{[`& + ${yi}-control`]:{minWidth:"unset"}}}}},St=De=>{const{componentCls:ti,formItemCls:yi}=De;return{[`${ti}-inline`]:{display:"flex",flexWrap:"wrap",[yi]:{flex:"none",marginInlineEnd:De.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${yi}-label,
|
|
|
> ${yi}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${yi}-label`]:{flex:"none"},[`${ti}-text`]:{display:"inline-block"},[`${yi}-has-feedback`]:{display:"inline-block"}}}}},It=De=>({padding:De.verticalLabelPadding,margin:De.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),_t=De=>{const{componentCls:ti,formItemCls:yi,rootPrefixCls:dn}=De;return{[`${yi} ${yi}-label`]:It(De),[ti]:{[yi]:{flexWrap:"wrap",[`${yi}-label, ${yi}-control`]:{[`&:not([class*=" ${dn}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Gt=De=>{const{componentCls:ti,formItemCls:yi,rootPrefixCls:dn}=De;return{[`${ti}-vertical`]:{[yi]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${ti}-item-control`]:{width:"100%"}}},[`${ti}-vertical ${yi}-label,
|
|
|
.${dn}-col-24${yi}-label,
|
|
|
.${dn}-col-xl-24${yi}-label`]:It(De),[`@media (max-width: ${De.screenXSMax}px)`]:[_t(De),{[ti]:{[`.${dn}-col-xs-24${yi}-label`]:It(De)}}],[`@media (max-width: ${De.screenSMMax}px)`]:{[ti]:{[`.${dn}-col-sm-24${yi}-label`]:It(De)}},[`@media (max-width: ${De.screenMDMax}px)`]:{[ti]:{[`.${dn}-col-md-24${yi}-label`]:It(De)}},[`@media (max-width: ${De.screenLGMax}px)`]:{[ti]:{[`.${dn}-col-lg-24${yi}-label`]:It(De)}}}},oe=(De,ti)=>(0,Kt.TS)(De,{formItemCls:`${De.componentCls}-item`,rootPrefixCls:ti});var ue=(0,Yt.Z)("Form",(De,ti)=>{let{rootPrefixCls:yi}=ti;const dn=oe(De,yi);return[rt(dn),ht(dn),et(dn),dt(dn),St(dn),Gt(dn),(0,re.Z)(dn),Pt.kr]},De=>({labelRequiredMarkColor:De.colorError,labelColor:De.colorTextHeading,labelFontSize:De.fontSize,labelHeight:De.controlHeight,labelColonMarginInlineStart:De.marginXXS/2,labelColonMarginInlineEnd:De.marginXS,itemMarginBottom:De.marginLG,verticalLabelPadding:`0 0 ${De.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const de=[];function be(De,ti,yi){let dn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof De=="string"?De:`${ti}-${dn}`,error:De,errorStatus:yi}}var Ke=De=>{let{help:ti,helpStatus:yi,errors:dn=de,warnings:Le=de,className:yn,fieldId:Qn,onVisibleChanged:wi}=De;const{prefixCls:Oi}=ee.useContext(Nt.Rk),qe=`${Oi}-item-explain`,[,oi]=ue(Oi),Pi=(0,ee.useMemo)(()=>(0,Zt.Z)(Oi),[Oi]),er=jt(dn),On=jt(Le),ui=ee.useMemo(()=>ti!=null?[be(ti,"help",yi)]:[].concat((0,Mt.Z)(er.map((or,zr)=>be(or,"error","error",zr))),(0,Mt.Z)(On.map((or,zr)=>be(or,"warning","warning",zr)))),[ti,yi,er,On]),Cr={};return Qn&&(Cr.id=`${Qn}_help`),ee.createElement(Ie.default,{motionDeadline:Pi.motionDeadline,motionName:`${Oi}-show-help`,visible:!!ui.length,onVisibleChanged:wi},or=>{const{className:zr,style:ar}=or;return ee.createElement("div",Object.assign({},Cr,{className:ie()(qe,zr,yn,oi),style:ar,role:"alert"}),ee.createElement(Ie.CSSMotionList,Object.assign({keys:ui},(0,Zt.Z)(Oi),{motionName:`${Oi}-show-help-item`,component:!1}),Lr=>{const{key:nr,error:Pr,errorStatus:io,className:Uo,style:gi}=Lr;return ee.createElement("div",{key:nr,className:ie()(Uo,{[`${qe}-${io}`]:io}),style:gi},Pr)}))})},Wt=bt(95013),Ge=bt(36355),He=bt(1684),Me=bt(52946),We=bt(19716),_e=bt(16722);const ve=["parentNode"],ne="form_item";function Se(De){return De===void 0||De===!1?[]:Array.isArray(De)?De:[De]}function Pn(De,ti){if(!De.length)return;const yi=De.join("_");return ti?`${ti}_${yi}`:ve.includes(yi)?`${ne}_${yi}`:yi}function Mn(De,ti,yi,dn,Le,yn){let Qn=dn;return yn!==void 0?Qn=yn:yi.validating?Qn="validating":De.length?Qn="error":ti.length?Qn="warning":(yi.touched||Le&&yi.validated)&&(Qn="success"),Qn}function Xe(De){return Se(De).join("_")}function Nn(De){const[ti]=(0,Wt.useForm)(),yi=ee.useRef({}),dn=ee.useMemo(()=>De!=null?De:Object.assign(Object.assign({},ti),{__INTERNAL__:{itemRef:Le=>yn=>{const Qn=Xe(Le);yn?yi.current[Qn]=yn:delete yi.current[Qn]}},scrollToField:function(Le){let yn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Qn=Se(Le),wi=Pn(Qn,dn.__INTERNAL__.name),Oi=wi?document.getElementById(wi):null;Oi&&(0,_e.Z)(Oi,Object.assign({scrollMode:"if-needed",block:"nearest"},yn))},getFieldInstance:Le=>{const yn=Xe(Le);return yi.current[yn]}}),[De,ti]);return[dn]}var Zn=bt(28726),fi=function(De,ti){var yi={};for(var dn in De)Object.prototype.hasOwnProperty.call(De,dn)&&ti.indexOf(dn)<0&&(yi[dn]=De[dn]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,dn=Object.getOwnPropertySymbols(De);Le<dn.length;Le++)ti.indexOf(dn[Le])<0&&Object.prototype.propertyIsEnumerable.call(De,dn[Le])&&(yi[dn[Le]]=De[dn[Le]]);return yi};const zn=(De,ti)=>{const yi=ee.useContext(He.Z),{getPrefixCls:dn,direction:Le,form:yn}=ee.useContext(Ge.E_),{prefixCls:Qn,className:wi,rootClassName:Oi,size:qe,disabled:oi=yi,form:Pi,colon:er,labelAlign:On,labelWrap:ui,labelCol:Cr,wrapperCol:or,hideRequiredMark:zr,layout:ar="horizontal",scrollToFirstError:Lr,requiredMark:nr,onFinishFailed:Pr,name:io,style:Uo,feedbackIcons:gi}=De,Qo=fi(De,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),ps=(0,We.Z)(qe),$o=ee.useContext(Zn.Z),pi=(0,ee.useMemo)(()=>nr!==void 0?nr:yn&&yn.requiredMark!==void 0?yn.requiredMark:!zr,[zr,nr,yn]),ur=er!=null?er:yn==null?void 0:yn.colon,Ur=dn("form",Qn),[uo,qr]=ue(Ur),ko=ie()(Ur,`${Ur}-${ar}`,{[`${Ur}-hide-required-mark`]:pi===!1,[`${Ur}-rtl`]:Le==="rtl",[`${Ur}-${ps}`]:ps},qr,yn==null?void 0:yn.className,wi,Oi),[di]=Nn(Pi),{__INTERNAL__:Co}=di;Co.name=io;const jr=(0,ee.useMemo)(()=>({name:io,labelAlign:On,labelCol:Cr,labelWrap:ui,wrapperCol:or,vertical:ar==="vertical",colon:ur,requiredMark:pi,itemRef:Co.itemRef,form:di,feedbackIcons:gi}),[io,On,Cr,or,ar,ur,pi,di,gi]);ee.useImperativeHandle(ti,()=>di);const Sr=(Bo,xi)=>{if(Bo){let Yo={block:"nearest"};typeof Bo=="object"&&(Yo=Bo),di.scrollToField(xi,Yo)}},Ci=Bo=>{if(Pr==null||Pr(Bo),Bo.errorFields.length){const xi=Bo.errorFields[0].name;if(Lr!==void 0){Sr(Lr,xi);return}yn&&yn.scrollToFirstError!==void 0&&Sr(yn.scrollToFirstError,xi)}};return uo(ee.createElement(He.n,{disabled:oi},ee.createElement(Me.q,{size:ps},ee.createElement(Nt.RV,Object.assign({},{validateMessages:$o}),ee.createElement(Nt.q3.Provider,{value:jr},ee.createElement(Wt.default,Object.assign({id:io},Qo,{name:io,onFinishFailed:Ci,form:di,style:Object.assign(Object.assign({},yn==null?void 0:yn.style),Uo),className:ko})))))))};var nn=ee.forwardRef(zn),Fi=bt(41799),Ti=bt(8654),Lt=bt(92343),Ot=bt(11592);function mt(De){if(typeof De=="function")return De;const ti=(0,Ot.Z)(De);return ti.length<=1?ti[0]:ti}const ft=()=>{const{status:De,errors:ti=[],warnings:yi=[]}=(0,ee.useContext)(Nt.aM);return{status:De,errors:ti,warnings:yi}};ft.Context=Nt.aM;var pt=ft,At=bt(16089);function le(De){const[ti,yi]=ee.useState(De),dn=(0,ee.useRef)(null),Le=(0,ee.useRef)([]),yn=(0,ee.useRef)(!1);ee.useEffect(()=>(yn.current=!1,()=>{yn.current=!0,At.Z.cancel(dn.current),dn.current=null}),[]);function Qn(wi){yn.current||(dn.current===null&&(Le.current=[],dn.current=(0,At.Z)(()=>{dn.current=null,yi(Oi=>{let qe=Oi;return Le.current.forEach(oi=>{qe=oi(qe)}),qe})})),Le.current.push(wi))}return[ti,Qn]}function we(){const{itemRef:De}=ee.useContext(Nt.q3),ti=ee.useRef({});function yi(dn,Le){const yn=Le&&typeof Le=="object"&&Le.ref,Qn=dn.join("_");return(ti.current.name!==Qn||ti.current.originRef!==yn)&&(ti.current.name=Qn,ti.current.originRef=yn,ti.current.ref=(0,Ti.sQ)(De(dn),yn)),ti.current.ref}return yi}var ae=bt(29194),me=bt(34280),Re=bt(2738),Oe=bt(27382),ke=bt(37028);const rn=De=>{const{formItemCls:ti}=De;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${ti}-control`]:{display:"flex"}}}};var Vn=(0,Yt.b)(["Form","item-item"],(De,ti)=>{let{rootPrefixCls:yi}=ti;const dn=oe(De,yi);return[rn(dn)]}),An=De=>{const{prefixCls:ti,status:yi,wrapperCol:dn,children:Le,errors:yn,warnings:Qn,_internalItemRender:wi,extra:Oi,help:qe,fieldId:oi,marginBottom:Pi,onErrorVisibleChanged:er}=De,On=`${ti}-item`,ui=ee.useContext(Nt.q3),Cr=dn||ui.wrapperCol||{},or=ie()(`${On}-control`,Cr.className),zr=ee.useMemo(()=>Object.assign({},ui),[ui]);delete zr.labelCol,delete zr.wrapperCol;const ar=ee.createElement("div",{className:`${On}-control-input`},ee.createElement("div",{className:`${On}-control-input-content`},Le)),Lr=ee.useMemo(()=>({prefixCls:ti,status:yi}),[ti,yi]),nr=Pi!==null||yn.length||Qn.length?ee.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},ee.createElement(Nt.Rk.Provider,{value:Lr},ee.createElement(Ke,{fieldId:oi,errors:yn,warnings:Qn,help:qe,helpStatus:yi,className:`${On}-explain-connected`,onVisibleChanged:er})),!!Pi&&ee.createElement("div",{style:{width:0,height:Pi}})):null,Pr={};oi&&(Pr.id=`${oi}_extra`);const io=Oi?ee.createElement("div",Object.assign({},Pr,{className:`${On}-extra`}),Oi):null,Uo=wi&&wi.mark==="pro_table_render"&&wi.render?wi.render(De,{input:ar,errorList:nr,extra:io}):ee.createElement(ee.Fragment,null,ar,nr,io);return ee.createElement(Nt.q3.Provider,{value:zr},ee.createElement(ke.Z,Object.assign({},Cr,{className:or}),Uo),ee.createElement(Vn,{prefixCls:ti}))},Bn=bt(61485),ii=bt(31724),_n=bt(9763),ji=bt(6848),cr=function(De,ti){var yi={};for(var dn in De)Object.prototype.hasOwnProperty.call(De,dn)&&ti.indexOf(dn)<0&&(yi[dn]=De[dn]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,dn=Object.getOwnPropertySymbols(De);Le<dn.length;Le++)ti.indexOf(dn[Le])<0&&Object.prototype.propertyIsEnumerable.call(De,dn[Le])&&(yi[dn[Le]]=De[dn[Le]]);return yi};function Ji(De){return De?typeof De=="object"&&!ee.isValidElement(De)?De:{title:De}:null}var Mr=De=>{let{prefixCls:ti,label:yi,htmlFor:dn,labelCol:Le,labelAlign:yn,colon:Qn,required:wi,requiredMark:Oi,tooltip:qe}=De;var oi;const[Pi]=(0,_n.Z)("Form"),{vertical:er,labelAlign:On,labelCol:ui,labelWrap:Cr,colon:or}=ee.useContext(Nt.q3);if(!yi)return null;const zr=Le||ui||{},ar=yn||On,Lr=`${ti}-item-label`,nr=ie()(Lr,ar==="left"&&`${Lr}-left`,zr.className,{[`${Lr}-wrap`]:!!Cr});let Pr=yi;const io=Qn===!0||or!==!1&&Qn!==!1;io&&!er&&typeof yi=="string"&&yi.trim()!==""&&(Pr=yi.replace(/[:|:]\s*$/,""));const gi=Ji(qe);if(gi){const{icon:pi=ee.createElement(Bn.Z,null)}=gi,ur=cr(gi,["icon"]),Ur=ee.createElement(ji.Z,Object.assign({},ur),ee.cloneElement(pi,{className:`${ti}-item-tooltip`,title:""}));Pr=ee.createElement(ee.Fragment,null,Pr,Ur)}const Qo=Oi==="optional",ps=typeof Oi=="function";ps?Pr=Oi(Pr,{required:!!wi}):Qo&&!wi&&(Pr=ee.createElement(ee.Fragment,null,Pr,ee.createElement("span",{className:`${ti}-item-optional`,title:""},(Pi==null?void 0:Pi.optional)||((oi=ii.Z.Form)===null||oi===void 0?void 0:oi.optional))));const $o=ie()({[`${ti}-item-required`]:wi,[`${ti}-item-required-mark-optional`]:Qo||ps,[`${ti}-item-no-colon`]:!io});return ee.createElement(ke.Z,Object.assign({},zr,{className:nr}),ee.createElement("label",{htmlFor:dn,className:$o,title:typeof yi=="string"?yi:""},Pr))},ao=bt(29679),Yr=bt(19248),Zr=bt(96512),kr=bt(58617);const Gr={success:ao.Z,warning:Zr.Z,error:Yr.Z,validating:kr.Z};function lo(De){let{children:ti,errors:yi,warnings:dn,hasFeedback:Le,validateStatus:yn,prefixCls:Qn,meta:wi,noStyle:Oi}=De;const qe=`${Qn}-item`,{feedbackIcons:oi}=ee.useContext(Nt.q3),Pi=Mn(yi,dn,wi,null,!!Le,yn),{isFormItemInput:er,status:On}=ee.useContext(Nt.aM),ui=ee.useMemo(()=>{var Cr;let or;if(Le){const Lr=Le!==!0&&Le.icons||oi,nr=Pi&&((Cr=Lr==null?void 0:Lr({status:Pi,errors:yi,warnings:dn}))===null||Cr===void 0?void 0:Cr[Pi]),Pr=Pi&&Gr[Pi];or=nr!==!1&&Pr?ee.createElement("span",{className:ie()(`${qe}-feedback-icon`,`${qe}-feedback-icon-${Pi}`)},nr||ee.createElement(Pr,null)):null}let zr=!0,ar=Pi||"";return Oi&&(zr=er,ar=(Pi!=null?Pi:On)||""),{status:ar,errors:yi,warnings:dn,hasFeedback:!!Le,feedbackIcon:or,isFormItemInput:zr}},[Pi,Le,Oi,er,On]);return ee.createElement(Nt.aM.Provider,{value:ui},ti)}var _o=function(De,ti){var yi={};for(var dn in De)Object.prototype.hasOwnProperty.call(De,dn)&&ti.indexOf(dn)<0&&(yi[dn]=De[dn]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,dn=Object.getOwnPropertySymbols(De);Le<dn.length;Le++)ti.indexOf(dn[Le])<0&&Object.prototype.propertyIsEnumerable.call(De,dn[Le])&&(yi[dn[Le]]=De[dn[Le]]);return yi};function ns(De){const{prefixCls:ti,className:yi,rootClassName:dn,style:Le,help:yn,errors:Qn,warnings:wi,validateStatus:Oi,meta:qe,hasFeedback:oi,hidden:Pi,children:er,fieldId:On,required:ui,isRequired:Cr,onSubItemMetaChange:or}=De,zr=_o(De,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),ar=`${ti}-item`,{requiredMark:Lr}=ee.useContext(Nt.q3),nr=ee.useRef(null),Pr=jt(Qn),io=jt(wi),Uo=yn!=null,gi=!!(Uo||Qn.length||wi.length),Qo=!!nr.current&&(0,ae.Z)(nr.current),[ps,$o]=ee.useState(null);(0,me.Z)(()=>{if(gi&&nr.current){const qr=getComputedStyle(nr.current);$o(parseInt(qr.marginBottom,10))}},[gi,Qo]);const pi=qr=>{qr||$o(null)},Ur=function(){let qr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const ko=qr?Pr:qe.errors,di=qr?io:qe.warnings;return Mn(ko,di,qe,"",!!oi,Oi)}(),uo=ie()(ar,yi,dn,{[`${ar}-with-help`]:Uo||Pr.length||io.length,[`${ar}-has-feedback`]:Ur&&oi,[`${ar}-has-success`]:Ur==="success",[`${ar}-has-warning`]:Ur==="warning",[`${ar}-has-error`]:Ur==="error",[`${ar}-is-validating`]:Ur==="validating",[`${ar}-hidden`]:Pi});return ee.createElement("div",{className:uo,style:Le,ref:nr},ee.createElement(Oe.Z,Object.assign({className:`${ar}-row`},(0,Re.Z)(zr,["_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"])),ee.createElement(Mr,Object.assign({htmlFor:On},De,{requiredMark:Lr,required:ui!=null?ui:Cr,prefixCls:ti})),ee.createElement(An,Object.assign({},De,qe,{errors:Pr,warnings:io,prefixCls:ti,status:Ur,help:yn,marginBottom:ps,onErrorVisibleChanged:pi}),ee.createElement(Nt.qI.Provider,{value:or},ee.createElement(lo,{prefixCls:ti,meta:qe,errors:qe.errors,warnings:qe.warnings,hasFeedback:oi,validateStatus:Ur},er)))),!!ps&&ee.createElement("div",{className:`${ar}-margin-offset`,style:{marginBottom:-ps}}))}const co="__SPLIT__",ys=null,jo=ee.memo(De=>{let{children:ti}=De;return ti},(De,ti)=>De.value===ti.value&&De.update===ti.update&&De.childProps.length===ti.childProps.length&&De.childProps.every((yi,dn)=>yi===ti.childProps[dn]));function $t(De){return De!=null}function ri(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function ws(De){const{name:ti,noStyle:yi,className:dn,dependencies:Le,prefixCls:yn,shouldUpdate:Qn,rules:wi,children:Oi,required:qe,label:oi,messageVariables:Pi,trigger:er="onChange",validateTrigger:On,hidden:ui,help:Cr}=De,{getPrefixCls:or}=ee.useContext(Ge.E_),{name:zr}=ee.useContext(Nt.q3),ar=mt(Oi),Lr=typeof ar=="function",nr=ee.useContext(Nt.qI),{validateTrigger:Pr}=ee.useContext(Wt.FieldContext),io=On!==void 0?On:Pr,Uo=$t(ti),gi=or("form",yn),[Qo,ps]=ue(gi),$o=ee.useContext(Wt.ListContext),pi=ee.useRef(),[ur,Ur]=le({}),[uo,qr]=(0,Fi.Z)(()=>ri()),ko=xi=>{const Yo=$o==null?void 0:$o.getKey(xi.name);if(qr(xi.destroy?ri():xi,!0),yi&&Cr!==!1&&nr){let ha=xi.name;if(xi.destroy)ha=pi.current||ha;else if(Yo!==void 0){const[vs,da]=Yo;ha=[vs].concat((0,Mt.Z)(da)),pi.current=ha}nr(xi,ha)}},di=(xi,Yo)=>{Ur(ha=>{const vs=Object.assign({},ha),ta=[].concat((0,Mt.Z)(xi.name.slice(0,-1)),(0,Mt.Z)(Yo)).join(co);return xi.destroy?delete vs[ta]:vs[ta]=xi,vs})},[Co,jr]=ee.useMemo(()=>{const xi=(0,Mt.Z)(uo.errors),Yo=(0,Mt.Z)(uo.warnings);return Object.values(ur).forEach(ha=>{xi.push.apply(xi,(0,Mt.Z)(ha.errors||[])),Yo.push.apply(Yo,(0,Mt.Z)(ha.warnings||[]))}),[xi,Yo]},[ur,uo.errors,uo.warnings]),Sr=we();function Ci(xi,Yo,ha){return yi&&!ui?ee.createElement(lo,{prefixCls:gi,hasFeedback:De.hasFeedback,validateStatus:De.validateStatus,meta:uo,errors:Co,warnings:jr,noStyle:!0},xi):ee.createElement(ns,Object.assign({key:"row"},De,{className:ie()(dn,ps),prefixCls:gi,fieldId:Yo,isRequired:ha,errors:Co,warnings:jr,meta:uo,onSubItemMetaChange:di}),xi)}if(!Uo&&!Lr&&!Le)return Qo(Ci(ar));let Bo={};return typeof oi=="string"?Bo.label=oi:ti&&(Bo.label=String(ti)),Pi&&(Bo=Object.assign(Object.assign({},Bo),Pi)),Qo(ee.createElement(Wt.Field,Object.assign({},De,{messageVariables:Bo,trigger:er,validateTrigger:io,onMetaChange:ko}),(xi,Yo,ha)=>{const vs=Se(ti).length&&Yo?Yo.name:[],da=Pn(vs,zr),ta=qe!==void 0?qe:!!(wi&&wi.some(us=>{if(us&&typeof us=="object"&&us.required&&!us.warningOnly)return!0;if(typeof us=="function"){const os=us(ha);return os&&os.required&&!os.warningOnly}return!1})),To=Object.assign({},xi);let Ro=null;if(Array.isArray(ar)&&Uo)Ro=ar;else if(!(Lr&&(!(Qn||Le)||Uo))){if(!(Le&&!Lr&&!Uo))if((0,Lt.l$)(ar)){const us=Object.assign(Object.assign({},ar.props),To);if(us.id||(us.id=da),Cr||Co.length>0||jr.length>0||De.extra){const Ne=[];(Cr||Co.length>0)&&Ne.push(`${da}_help`),De.extra&&Ne.push(`${da}_extra`),us["aria-describedby"]=Ne.join(" ")}Co.length>0&&(us["aria-invalid"]="true"),ta&&(us["aria-required"]="true"),(0,Ti.Yr)(ar)&&(us.ref=Sr(vs,ar)),new Set([].concat((0,Mt.Z)(Se(er)),(0,Mt.Z)(Se(io)))).forEach(Ne=>{us[Ne]=function(){for(var ls,ra,al,ll,bl,is=arguments.length,Vo=new Array(is),Es=0;Es<is;Es++)Vo[Es]=arguments[Es];(al=To[Ne])===null||al===void 0||(ls=al).call.apply(ls,[To].concat(Vo)),(bl=(ll=ar.props)[Ne])===null||bl===void 0||(ra=bl).call.apply(ra,[ll].concat(Vo))}});const xr=[us["aria-required"],us["aria-invalid"],us["aria-describedby"]];Ro=ee.createElement(jo,{value:To[De.valuePropName||"value"],update:ar,childProps:xr},(0,Lt.Tm)(ar,us))}else Lr&&(Qn||Le)&&!Uo?Ro=ar(ha):Ro=ar}return Ci(Ro,da,ta)}))}const Is=ws;Is.useStatus=pt;var ma=Is,va=function(De,ti){var yi={};for(var dn in De)Object.prototype.hasOwnProperty.call(De,dn)&&ti.indexOf(dn)<0&&(yi[dn]=De[dn]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,dn=Object.getOwnPropertySymbols(De);Le<dn.length;Le++)ti.indexOf(dn[Le])<0&&Object.prototype.propertyIsEnumerable.call(De,dn[Le])&&(yi[dn[Le]]=De[dn[Le]]);return yi},_r=De=>{var{prefixCls:ti,children:yi}=De,dn=va(De,["prefixCls","children"]);const{getPrefixCls:Le}=ee.useContext(Ge.E_),yn=Le("form",ti),Qn=ee.useMemo(()=>({prefixCls:yn,status:"error"}),[yn]);return ee.createElement(Wt.List,Object.assign({},dn),(wi,Oi,qe)=>ee.createElement(Nt.Rk.Provider,{value:Qn},yi(wi.map(oi=>Object.assign(Object.assign({},oi),{fieldKey:oi.key})),Oi,{errors:qe.errors,warnings:qe.warnings})))};function Dr(){const{form:De}=(0,ee.useContext)(Nt.q3);return De}const kn=nn;kn.Item=ma,kn.List=_r,kn.ErrorList=Ke,kn.useForm=Nn,kn.useFormInstance=Dr,kn.useWatch=Wt.useWatch,kn.Provider=Nt.RV,kn.create=()=>{};var Tn=kn},8628:function(hi,Cn,bt){"use strict";var Mt=bt(59301),ce=bt(34280),ie=bt(56762),Ie=bt(69507);function ee(){let Zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const Nt=(0,Mt.useRef)({}),jt=(0,ie.Z)(),qt=(0,Ie.ZP)();return(0,ce.Z)(()=>{const Pt=qt.subscribe(re=>{Nt.current=re,Zt&&jt()});return()=>qt.unsubscribe(Pt)},[]),Nt.current}Cn.Z=ee},9432:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return ht},n:function(){return lt}});var Mt=bt(19248),ce=bt(92310),ie=bt.n(ce),Ie=bt(93681),ee=bt(8654),Zt=bt(59301),Nt=bt(19080),jt=bt(36355),qt=bt(1684),Pt=bt(19716),re=bt(32441),Kt=bt(33234),Yt=bt(59412),Ct=bt(9937);function et(dt){return!!(dt.prefix||dt.suffix||dt.allowClear)}var tt=function(dt,St){var It={};for(var _t in dt)Object.prototype.hasOwnProperty.call(dt,_t)&&St.indexOf(_t)<0&&(It[_t]=dt[_t]);if(dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gt=0,_t=Object.getOwnPropertySymbols(dt);Gt<_t.length;Gt++)St.indexOf(_t[Gt])<0&&Object.prototype.propertyIsEnumerable.call(dt,_t[Gt])&&(It[_t[Gt]]=dt[_t[Gt]]);return It};function lt(dt,St){if(!dt)return;dt.focus(St);const{cursor:It}=St||{};if(It){const _t=dt.value.length;switch(It){case"start":dt.setSelectionRange(0,0);break;case"end":dt.setSelectionRange(_t,_t);break;default:dt.setSelectionRange(0,_t);break}}}var ht=(0,Zt.forwardRef)((dt,St)=>{var It;const{prefixCls:_t,bordered:Gt=!0,status:oe,size:ue,disabled:de,onBlur:be,onFocus:Jt,suffix:Ke,allowClear:Wt,addonAfter:Ge,addonBefore:He,className:Me,style:We,styles:_e,rootClassName:ve,onChange:ne,classNames:Se}=dt,Pn=tt(dt,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Mn,direction:Xe,input:Nn}=Zt.useContext(jt.E_),Zn=Mn("input",_t),fi=(0,Zt.useRef)(null),[zn,Si]=(0,Ct.ZP)(Zn),{compactSize:nn,compactItemClassnames:Fi}=(0,Kt.ri)(Zn,Xe),Ti=(0,Pt.Z)(Vn=>{var sn;return(sn=ue!=null?ue:nn)!==null&&sn!==void 0?sn:Vn}),Lt=Zt.useContext(qt.Z),Ot=de!=null?de:Lt,{status:mt,hasFeedback:ft,feedbackIcon:pt}=(0,Zt.useContext)(re.aM),At=(0,Nt.F)(mt,oe),le=et(dt)||!!ft,we=(0,Zt.useRef)(le);(0,Zt.useEffect)(()=>{var Vn;le&&we.current,we.current=le},[le]);const ae=(0,Yt.Z)(fi,!0),me=Vn=>{ae(),be==null||be(Vn)},Re=Vn=>{ae(),Jt==null||Jt(Vn)},Oe=Vn=>{ae(),ne==null||ne(Vn)},ke=(ft||Ke)&&Zt.createElement(Zt.Fragment,null,Ke,ft&&pt);let rn;return typeof Wt=="object"&&(Wt!=null&&Wt.clearIcon)?rn=Wt:Wt&&(rn={clearIcon:Zt.createElement(Mt.Z,null)}),zn(Zt.createElement(Ie.default,Object.assign({ref:(0,ee.sQ)(St,fi),prefixCls:Zn,autoComplete:Nn==null?void 0:Nn.autoComplete},Pn,{disabled:Ot,onBlur:me,onFocus:Re,style:Object.assign(Object.assign({},Nn==null?void 0:Nn.style),We),styles:Object.assign(Object.assign({},Nn==null?void 0:Nn.styles),_e),suffix:ke,allowClear:rn,className:ie()(Me,ve,Fi,Nn==null?void 0:Nn.className),onChange:Oe,addonAfter:Ge&&Zt.createElement(Kt.BR,null,Zt.createElement(re.Ux,{override:!0,status:!0},Ge)),addonBefore:He&&Zt.createElement(Kt.BR,null,Zt.createElement(re.Ux,{override:!0,status:!0},He)),classNames:Object.assign(Object.assign(Object.assign({},Se),Nn==null?void 0:Nn.classNames),{input:ie()({[`${Zn}-sm`]:Ti==="small",[`${Zn}-lg`]:Ti==="large",[`${Zn}-rtl`]:Xe==="rtl",[`${Zn}-borderless`]:!Gt},!le&&(0,Nt.Z)(Zn,At),Se==null?void 0:Se.input,(It=Nn==null?void 0:Nn.classNames)===null||It===void 0?void 0:It.input,Si)}),classes:{affixWrapper:ie()({[`${Zn}-affix-wrapper-sm`]:Ti==="small",[`${Zn}-affix-wrapper-lg`]:Ti==="large",[`${Zn}-affix-wrapper-rtl`]:Xe==="rtl",[`${Zn}-affix-wrapper-borderless`]:!Gt},(0,Nt.Z)(`${Zn}-affix-wrapper`,At,ft),Si),wrapper:ie()({[`${Zn}-group-rtl`]:Xe==="rtl"},Si),group:ie()({[`${Zn}-group-wrapper-sm`]:Ti==="small",[`${Zn}-group-wrapper-lg`]:Ti==="large",[`${Zn}-group-wrapper-rtl`]:Xe==="rtl",[`${Zn}-group-wrapper-disabled`]:Ot},(0,Nt.Z)(`${Zn}-group-wrapper`,At,ft),Si)}})))})},1643:function(hi,Cn,bt){"use strict";var Mt=bt(19248),ce=bt(92310),ie=bt.n(ce),Ie=bt(9296),ee=bt(59301),Zt=bt(19080),Nt=bt(36355),jt=bt(1684),qt=bt(19716),Pt=bt(32441),re=bt(9432),Kt=bt(9937),Yt=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 ht=0,rt=Object.getOwnPropertySymbols(et);ht<rt.length;ht++)tt.indexOf(rt[ht])<0&&Object.prototype.propertyIsEnumerable.call(et,rt[ht])&&(lt[rt[ht]]=et[rt[ht]]);return lt};const Ct=(0,ee.forwardRef)((et,tt)=>{const{prefixCls:lt,bordered:rt=!0,size:ht,disabled:dt,status:St,allowClear:It,showCount:_t,classNames:Gt,rootClassName:oe,className:ue}=et,de=Yt(et,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:be,direction:Jt}=ee.useContext(Nt.E_),Ke=(0,qt.Z)(ht),Wt=ee.useContext(jt.Z),Ge=dt!=null?dt:Wt,{status:He,hasFeedback:Me,feedbackIcon:We}=ee.useContext(Pt.aM),_e=(0,Zt.F)(He,St),ve=ee.useRef(null);ee.useImperativeHandle(tt,()=>{var Xe;return{resizableTextArea:(Xe=ve.current)===null||Xe===void 0?void 0:Xe.resizableTextArea,focus:Nn=>{var Zn,fi;(0,re.n)((fi=(Zn=ve.current)===null||Zn===void 0?void 0:Zn.resizableTextArea)===null||fi===void 0?void 0:fi.textArea,Nn)},blur:()=>{var Nn;return(Nn=ve.current)===null||Nn===void 0?void 0:Nn.blur()}}});const ne=be("input",lt);let Se;typeof It=="object"&&(It!=null&&It.clearIcon)?Se=It:It&&(Se={clearIcon:ee.createElement(Mt.Z,null)});const[Pn,Mn]=(0,Kt.ZP)(ne);return Pn(ee.createElement(Ie.default,Object.assign({},de,{disabled:Ge,allowClear:Se,className:ie()(ue,oe),classes:{affixWrapper:ie()(`${ne}-textarea-affix-wrapper`,{[`${ne}-affix-wrapper-rtl`]:Jt==="rtl",[`${ne}-affix-wrapper-borderless`]:!rt,[`${ne}-affix-wrapper-sm`]:Ke==="small",[`${ne}-affix-wrapper-lg`]:Ke==="large",[`${ne}-textarea-show-count`]:_t},(0,Zt.Z)(`${ne}-affix-wrapper`,_e),Mn)},classNames:Object.assign(Object.assign({},Gt),{textarea:ie()({[`${ne}-borderless`]:!rt,[`${ne}-sm`]:Ke==="small",[`${ne}-lg`]:Ke==="large"},(0,Zt.Z)(ne,_e),Mn,Gt==null?void 0:Gt.textarea)}),prefixCls:ne,suffix:Me&&ee.createElement("span",{className:`${ne}-textarea-suffix`},We),showCount:_t,ref:ve})))});Cn.Z=Ct},59412:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return ce}});var Mt=bt(59301);function ce(ie,Ie){const ee=(0,Mt.useRef)([]),Zt=()=>{ee.current.push(setTimeout(()=>{var Nt,jt,qt,Pt;!((Nt=ie.current)===null||Nt===void 0)&&Nt.input&&((jt=ie.current)===null||jt===void 0?void 0:jt.input.getAttribute("type"))==="password"&&(!((qt=ie.current)===null||qt===void 0)&&qt.input.hasAttribute("value"))&&((Pt=ie.current)===null||Pt===void 0||Pt.input.removeAttribute("value"))}))};return(0,Mt.useEffect)(()=>(Ie&&Zt(),()=>ee.current.forEach(Nt=>{Nt&&clearTimeout(Nt)})),[]),Zt}},92832:function(hi,Cn,bt){"use strict";bt.d(Cn,{default:function(){return Ke}});var Mt=bt(92310),ce=bt.n(Mt),ie=bt(59301),Ie=bt(36355),ee=bt(32441),Zt=bt(9937),jt=Wt=>{const{getPrefixCls:Ge,direction:He}=(0,ie.useContext)(Ie.E_),{prefixCls:Me,className:We}=Wt,_e=Ge("input-group",Me),ve=Ge("input"),[ne,Se]=(0,Zt.ZP)(ve),Pn=ce()(_e,{[`${_e}-lg`]:Wt.size==="large",[`${_e}-sm`]:Wt.size==="small",[`${_e}-compact`]:Wt.compact,[`${_e}-rtl`]:He==="rtl"},Se,We),Mn=(0,ie.useContext)(ee.aM),Xe=(0,ie.useMemo)(()=>Object.assign(Object.assign({},Mn),{isFormItemInput:!1}),[Mn]);return ne(ie.createElement("span",{className:Pn,style:Wt.style,onMouseEnter:Wt.onMouseEnter,onMouseLeave:Wt.onMouseLeave,onFocus:Wt.onFocus,onBlur:Wt.onBlur},ie.createElement(ee.aM.Provider,{value:Xe},Wt.children)))},qt=bt(9432),Pt=bt(73331),re=bt(15277),Kt=bt(2738),Yt=bt(8654),Ct=bt(59412),et=function(Wt,Ge){var He={};for(var Me in Wt)Object.prototype.hasOwnProperty.call(Wt,Me)&&Ge.indexOf(Me)<0&&(He[Me]=Wt[Me]);if(Wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Me=Object.getOwnPropertySymbols(Wt);We<Me.length;We++)Ge.indexOf(Me[We])<0&&Object.prototype.propertyIsEnumerable.call(Wt,Me[We])&&(He[Me[We]]=Wt[Me[We]]);return He};const tt=Wt=>Wt?ie.createElement(re.Z,null):ie.createElement(Pt.Z,null),lt={click:"onClick",hover:"onMouseOver"};var ht=ie.forwardRef((Wt,Ge)=>{const{visibilityToggle:He=!0}=Wt,Me=typeof He=="object"&&He.visible!==void 0,[We,_e]=(0,ie.useState)(()=>Me?He.visible:!1),ve=(0,ie.useRef)(null);ie.useEffect(()=>{Me&&_e(He.visible)},[Me,He]);const ne=(0,Ct.Z)(ve),Se=()=>{const{disabled:Ot}=Wt;Ot||(We&&ne(),_e(mt=>{var ft;const pt=!mt;return typeof He=="object"&&((ft=He.onVisibleChange)===null||ft===void 0||ft.call(He,pt)),pt}))},Pn=Ot=>{const{action:mt="click",iconRender:ft=tt}=Wt,pt=lt[mt]||"",At=ft(We),le={[pt]:Se,className:`${Ot}-icon`,key:"passwordIcon",onMouseDown:we=>{we.preventDefault()},onMouseUp:we=>{we.preventDefault()}};return ie.cloneElement(ie.isValidElement(At)?At:ie.createElement("span",null,At),le)},{className:Mn,prefixCls:Xe,inputPrefixCls:Nn,size:Zn}=Wt,fi=et(Wt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:zn}=ie.useContext(Ie.E_),Si=zn("input",Nn),nn=zn("input-password",Xe),Fi=He&&Pn(nn),Ti=ce()(nn,Mn,{[`${nn}-${Zn}`]:!!Zn}),Lt=Object.assign(Object.assign({},(0,Kt.Z)(fi,["suffix","iconRender","visibilityToggle"])),{type:We?"text":"password",className:Ti,prefixCls:Si,suffix:Fi});return Zn&&(Lt.size=Zn),ie.createElement(qt.Z,Object.assign({ref:(0,Yt.sQ)(Ge,ve)},Lt))}),dt=bt(47472),St=bt(92343),It=bt(3113),_t=bt(19716),Gt=bt(33234),oe=function(Wt,Ge){var He={};for(var Me in Wt)Object.prototype.hasOwnProperty.call(Wt,Me)&&Ge.indexOf(Me)<0&&(He[Me]=Wt[Me]);if(Wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Me=Object.getOwnPropertySymbols(Wt);We<Me.length;We++)Ge.indexOf(Me[We])<0&&Object.prototype.propertyIsEnumerable.call(Wt,Me[We])&&(He[Me[We]]=Wt[Me[We]]);return He},de=ie.forwardRef((Wt,Ge)=>{const{prefixCls:He,inputPrefixCls:Me,className:We,size:_e,suffix:ve,enterButton:ne=!1,addonAfter:Se,loading:Pn,disabled:Mn,onSearch:Xe,onChange:Nn,onCompositionStart:Zn,onCompositionEnd:fi}=Wt,zn=oe(Wt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Si,direction:nn}=ie.useContext(Ie.E_),Fi=ie.useRef(!1),Ti=Si("input-search",He),Lt=Si("input",Me),{compactSize:Ot}=(0,Gt.ri)(Ti,nn),mt=(0,_t.Z)(An=>{var Bn;return(Bn=_e!=null?_e:Ot)!==null&&Bn!==void 0?Bn:An}),ft=ie.useRef(null),pt=An=>{An&&An.target&&An.type==="click"&&Xe&&Xe(An.target.value,An,{source:"clear"}),Nn&&Nn(An)},At=An=>{var Bn;document.activeElement===((Bn=ft.current)===null||Bn===void 0?void 0:Bn.input)&&An.preventDefault()},le=An=>{var Bn,ii;Xe&&Xe((ii=(Bn=ft.current)===null||Bn===void 0?void 0:Bn.input)===null||ii===void 0?void 0:ii.value,An,{source:"input"})},we=An=>{Fi.current||Pn||le(An)},ae=typeof ne=="boolean"?ie.createElement(dt.Z,null):null,me=`${Ti}-button`;let Re;const Oe=ne||{},ke=Oe.type&&Oe.type.__ANT_BUTTON===!0;ke||Oe.type==="button"?Re=(0,St.Tm)(Oe,Object.assign({onMouseDown:At,onClick:An=>{var Bn,ii;(ii=(Bn=Oe==null?void 0:Oe.props)===null||Bn===void 0?void 0:Bn.onClick)===null||ii===void 0||ii.call(Bn,An),le(An)},key:"enterButton"},ke?{className:me,size:mt}:{})):Re=ie.createElement(It.ZP,{className:me,type:ne?"primary":void 0,size:mt,disabled:Mn,key:"enterButton",onMouseDown:At,onClick:le,loading:Pn,icon:ae},ne),Se&&(Re=[Re,(0,St.Tm)(Se,{key:"addonAfter"})]);const rn=ce()(Ti,{[`${Ti}-rtl`]:nn==="rtl",[`${Ti}-${mt}`]:!!mt,[`${Ti}-with-button`]:!!ne},We),Vn=An=>{Fi.current=!0,Zn==null||Zn(An)},sn=An=>{Fi.current=!1,fi==null||fi(An)};return ie.createElement(qt.Z,Object.assign({ref:(0,Yt.sQ)(ft,Ge),onPressEnter:we},zn,{size:mt,onCompositionStart:Vn,onCompositionEnd:sn,prefixCls:Lt,addonAfter:Re,suffix:ve,onChange:pt,className:rn,disabled:Mn}))}),be=bt(1643);const Jt=qt.Z;Jt.Group=jt,Jt.Search=de,Jt.TextArea=be.Z,Jt.Password=ht;var Ke=Jt},45818:function(hi,Cn,bt){"use strict";bt.d(Cn,{D:function(){return dt},Z:function(){return _t}});var Mt=bt(96663),ce=bt(59301),ie={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Ie=ie,ee=bt(7657),Zt=function(oe,ue){return ce.createElement(ee.Z,(0,Mt.Z)({},oe,{ref:ue,icon:Ie}))},Nt=ce.forwardRef(Zt),jt=Nt,qt=bt(33853),Pt=bt(38819),re=bt(92310),Kt=bt.n(re),Yt=bt(2738),et=Gt=>!isNaN(parseFloat(Gt))&&isFinite(Gt),tt=bt(36355),lt=bt(84966),rt=function(Gt,oe){var ue={};for(var de in Gt)Object.prototype.hasOwnProperty.call(Gt,de)&&oe.indexOf(de)<0&&(ue[de]=Gt[de]);if(Gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,de=Object.getOwnPropertySymbols(Gt);be<de.length;be++)oe.indexOf(de[be])<0&&Object.prototype.propertyIsEnumerable.call(Gt,de[be])&&(ue[de[be]]=Gt[de[be]]);return ue};const ht={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},dt=ce.createContext({}),St=(()=>{let Gt=0;return function(){let oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Gt+=1,`${oe}${Gt}`}})();var _t=ce.forwardRef((Gt,oe)=>{const{prefixCls:ue,className:de,trigger:be,children:Jt,defaultCollapsed:Ke=!1,theme:Wt="dark",style:Ge={},collapsible:He=!1,reverseArrow:Me=!1,width:We=200,collapsedWidth:_e=80,zeroWidthTriggerStyle:ve,breakpoint:ne,onCollapse:Se,onBreakpoint:Pn}=Gt,Mn=rt(Gt,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Xe}=(0,ce.useContext)(lt.Gs),[Nn,Zn]=(0,ce.useState)("collapsed"in Gt?Gt.collapsed:Ke),[fi,zn]=(0,ce.useState)(!1);(0,ce.useEffect)(()=>{"collapsed"in Gt&&Zn(Gt.collapsed)},[Gt.collapsed]);const Si=(mt,ft)=>{"collapsed"in Gt||Zn(mt),Se==null||Se(mt,ft)},nn=(0,ce.useRef)();nn.current=mt=>{zn(mt.matches),Pn==null||Pn(mt.matches),Nn!==mt.matches&&Si(mt.matches,"responsive")},(0,ce.useEffect)(()=>{function mt(pt){return nn.current(pt)}let ft;if(typeof window!="undefined"){const{matchMedia:pt}=window;if(pt&&ne&&ne in ht){ft=pt(`(max-width: ${ht[ne]})`);try{ft.addEventListener("change",mt)}catch(At){ft.addListener(mt)}mt(ft)}}return()=>{try{ft==null||ft.removeEventListener("change",mt)}catch(pt){ft==null||ft.removeListener(mt)}}},[ne]),(0,ce.useEffect)(()=>{const mt=St("ant-sider-");return Xe.addSider(mt),()=>Xe.removeSider(mt)},[]);const Fi=()=>{Si(!Nn,"clickTrigger")},{getPrefixCls:Ti}=(0,ce.useContext)(tt.E_),Lt=()=>{const mt=Ti("layout-sider",ue),ft=(0,Yt.Z)(Mn,["collapsed"]),pt=Nn?_e:We,At=et(pt)?`${pt}px`:String(pt),le=parseFloat(String(_e||0))===0?ce.createElement("span",{onClick:Fi,className:Kt()(`${mt}-zero-width-trigger`,`${mt}-zero-width-trigger-${Me?"right":"left"}`),style:ve},be||ce.createElement(jt,null)):null,me={expanded:Me?ce.createElement(Pt.Z,null):ce.createElement(qt.Z,null),collapsed:Me?ce.createElement(qt.Z,null):ce.createElement(Pt.Z,null)}[Nn?"collapsed":"expanded"],Re=be!==null?le||ce.createElement("div",{className:`${mt}-trigger`,onClick:Fi,style:{width:At}},be||me):null,Oe=Object.assign(Object.assign({},Ge),{flex:`0 0 ${At}`,maxWidth:At,minWidth:At,width:At}),ke=Kt()(mt,`${mt}-${Wt}`,{[`${mt}-collapsed`]:!!Nn,[`${mt}-has-trigger`]:He&&be!==null&&!le,[`${mt}-below`]:!!fi,[`${mt}-zero-width`]:parseFloat(At)===0},de);return ce.createElement("aside",Object.assign({className:ke},ft,{style:Oe,ref:oe}),ce.createElement("div",{className:`${mt}-children`},Jt),He||fi&&le?Re:null)},Ot=ce.useMemo(()=>({siderCollapsed:Nn}),[Nn]);return ce.createElement(dt.Provider,{value:Ot},Lt())})},84966:function(hi,Cn,bt){"use strict";bt.d(Cn,{VY:function(){return dt},$_:function(){return ht},h4:function(){return rt},Gs:function(){return Yt},ZP:function(){return St}});var Mt=bt(19127),ce=bt(92310),ie=bt.n(ce),Ie=bt(2738),ee=bt(59301),Zt=bt(36355),Nt=bt(83116),qt=It=>{const{componentCls:_t,bodyBg:Gt,lightSiderBg:oe,lightTriggerBg:ue,lightTriggerColor:de}=It;return{[`${_t}-sider-light`]:{background:oe,[`${_t}-sider-trigger`]:{color:de,background:ue},[`${_t}-sider-zero-width-trigger`]:{color:de,background:ue,border:`1px solid ${Gt}`,borderInlineStart:0}}}};const Pt=It=>{const{antCls:_t,componentCls:Gt,colorText:oe,triggerColor:ue,footerBg:de,triggerBg:be,headerHeight:Jt,headerPadding:Ke,headerColor:Wt,footerPadding:Ge,triggerHeight:He,zeroTriggerHeight:Me,zeroTriggerWidth:We,motionDurationMid:_e,motionDurationSlow:ve,fontSize:ne,borderRadius:Se,bodyBg:Pn,headerBg:Mn,siderBg:Xe}=It;return{[Gt]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Pn,"&, *":{boxSizing:"border-box"},[`&${Gt}-has-sider`]:{flexDirection:"row",[`> ${Gt}, > ${Gt}-content`]:{width:0}},[`${Gt}-header, &${Gt}-footer`]:{flex:"0 0 auto"},[`${Gt}-sider`]:{position:"relative",minWidth:0,background:Xe,transition:`all ${_e}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${_t}-menu${_t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:He},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:He,color:ue,lineHeight:`${He}px`,textAlign:"center",background:be,cursor:"pointer",transition:`all ${_e}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Jt,insetInlineEnd:-We,zIndex:1,width:We,height:Me,color:ue,fontSize:It.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Xe,borderStartStartRadius:0,borderStartEndRadius:Se,borderEndEndRadius:Se,borderEndStartRadius:0,cursor:"pointer",transition:`background ${ve} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ve}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-We,borderStartStartRadius:Se,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Se}}}}},qt(It)),{"&-rtl":{direction:"rtl"}}),[`${Gt}-header`]:{height:Jt,padding:Ke,color:Wt,lineHeight:`${Jt}px`,background:Mn,[`${_t}-menu`]:{lineHeight:"inherit"}},[`${Gt}-footer`]:{padding:Ge,color:oe,fontSize:ne,background:de},[`${Gt}-content`]:{flex:"auto",minHeight:0}}};var re=(0,Nt.Z)("Layout",It=>[Pt(It)],It=>{const{colorBgLayout:_t,controlHeight:Gt,controlHeightLG:oe,colorText:ue,controlHeightSM:de,marginXXS:be,colorTextLightSolid:Jt,colorBgContainer:Ke}=It,Wt=oe*1.25;return{colorBgHeader:"#001529",colorBgBody:_t,colorBgTrigger:"#002140",bodyBg:_t,headerBg:"#001529",headerHeight:Gt*2,headerPadding:`0 ${Wt}px`,headerColor:ue,footerPadding:`${de}px ${Wt}px`,footerBg:_t,siderBg:"#001529",triggerHeight:oe+be*2,triggerBg:"#002140",triggerColor:Jt,zeroTriggerWidth:oe,zeroTriggerHeight:oe,lightSiderBg:Ke,lightTriggerBg:Ke,lightTriggerColor:ue}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Kt=function(It,_t){var Gt={};for(var oe in It)Object.prototype.hasOwnProperty.call(It,oe)&&_t.indexOf(oe)<0&&(Gt[oe]=It[oe]);if(It!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,oe=Object.getOwnPropertySymbols(It);ue<oe.length;ue++)_t.indexOf(oe[ue])<0&&Object.prototype.propertyIsEnumerable.call(It,oe[ue])&&(Gt[oe[ue]]=It[oe[ue]]);return Gt};const Yt=ee.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function Ct(It){let{suffixCls:_t,tagName:Gt,displayName:oe}=It;return ue=>ee.forwardRef((be,Jt)=>ee.createElement(ue,Object.assign({ref:Jt,suffixCls:_t,tagName:Gt},be)))}const et=ee.forwardRef((It,_t)=>{const{prefixCls:Gt,suffixCls:oe,className:ue,tagName:de}=It,be=Kt(It,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Jt}=ee.useContext(Zt.E_),Ke=Jt("layout",Gt),[Wt,Ge]=re(Ke),He=oe?`${Ke}-${oe}`:Ke;return Wt(ee.createElement(de,Object.assign({className:ie()(Gt||He,ue,Ge),ref:_t},be)))}),tt=ee.forwardRef((It,_t)=>{const{direction:Gt}=ee.useContext(Zt.E_),[oe,ue]=ee.useState([]),{prefixCls:de,className:be,rootClassName:Jt,children:Ke,hasSider:Wt,tagName:Ge,style:He}=It,Me=Kt(It,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),We=(0,Ie.Z)(Me,["suffixCls"]),{getPrefixCls:_e,layout:ve}=ee.useContext(Zt.E_),ne=_e("layout",de),[Se,Pn]=re(ne),Mn=ie()(ne,{[`${ne}-has-sider`]:typeof Wt=="boolean"?Wt:oe.length>0,[`${ne}-rtl`]:Gt==="rtl"},ve==null?void 0:ve.className,be,Jt,Pn),Xe=ee.useMemo(()=>({siderHook:{addSider:Nn=>{ue(Zn=>[].concat((0,Mt.Z)(Zn),[Nn]))},removeSider:Nn=>{ue(Zn=>Zn.filter(fi=>fi!==Nn))}}}),[]);return Se(ee.createElement(Yt.Provider,{value:Xe},ee.createElement(Ge,Object.assign({ref:_t,className:Mn,style:Object.assign(Object.assign({},ve==null?void 0:ve.style),He)},We),Ke)))}),lt=Ct({tagName:"div",displayName:"Layout"})(tt),rt=Ct({suffixCls:"header",tagName:"header",displayName:"Header"})(et),ht=Ct({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(et),dt=Ct({suffixCls:"content",tagName:"main",displayName:"Content"})(et);var St=lt},40875:function(hi,Cn,bt){"use strict";bt.d(Cn,{J:function(){return Zt}});var Mt=bt(59301),ce=bt(33234),ie=bt(70425),Ie=function(Nt,jt){var qt={};for(var Pt in Nt)Object.prototype.hasOwnProperty.call(Nt,Pt)&&jt.indexOf(Pt)<0&&(qt[Pt]=Nt[Pt]);if(Nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var re=0,Pt=Object.getOwnPropertySymbols(Nt);re<Pt.length;re++)jt.indexOf(Pt[re])<0&&Object.prototype.propertyIsEnumerable.call(Nt,Pt[re])&&(qt[Pt[re]]=Nt[Pt[re]]);return qt};const ee=Mt.createContext(null),Zt=Mt.forwardRef((Nt,jt)=>{const{children:qt}=Nt,Pt=Ie(Nt,["children"]),re=Mt.useContext(ee),Kt=Mt.useMemo(()=>Object.assign(Object.assign({},re),Pt),[re,Pt.prefixCls,Pt.mode,Pt.selectable]);return Mt.createElement(ee.Provider,{value:Kt},Mt.createElement(ce.BR,null,(0,ie.supportNodeRef)(qt)?Mt.cloneElement(qt,{ref:jt}):qt))});Cn.Z=ee},20834:function(hi,Cn,bt){"use strict";bt.d(Cn,{default:function(){return Ot}});var Mt=bt(15285),ce=bt(59301),ie=bt(45818),Ie=bt(92310),ee=bt.n(Ie),Zt=bt(36355),Nt=function(mt,ft){var pt={};for(var At in mt)Object.prototype.hasOwnProperty.call(mt,At)&&ft.indexOf(At)<0&&(pt[At]=mt[At]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,At=Object.getOwnPropertySymbols(mt);le<At.length;le++)ft.indexOf(At[le])<0&&Object.prototype.propertyIsEnumerable.call(mt,At[le])&&(pt[At[le]]=mt[At[le]]);return pt},qt=mt=>{const{prefixCls:ft,className:pt,dashed:At}=mt,le=Nt(mt,["prefixCls","className","dashed"]),{getPrefixCls:we}=ce.useContext(Zt.E_),ae=we("menu",ft),me=ee()({[`${ae}-item-divider-dashed`]:!!At},pt);return ce.createElement(Mt.iz,Object.assign({className:me},le))},Pt=bt(11592),re=bt(2738),Kt=bt(6848),Yt=bt(92343),et=(0,ce.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),lt=mt=>{var ft;const{className:pt,children:At,icon:le,title:we,danger:ae}=mt,{prefixCls:me,firstLevel:Re,direction:Oe,disableMenuItemTitleTooltip:ke,inlineCollapsed:rn}=ce.useContext(et),Vn=ji=>{const cr=ce.createElement("span",{className:`${me}-title-content`},At);return(!le||(0,Yt.l$)(At)&&At.type==="span")&&At&&ji&&Re&&typeof At=="string"?ce.createElement("div",{className:`${me}-inline-collapsed-noicon`},At.charAt(0)):cr},{siderCollapsed:sn}=ce.useContext(ie.D);let An=we;typeof we=="undefined"?An=Re?At:"":we===!1&&(An="");const Bn={title:An};!sn&&!rn&&(Bn.title=null,Bn.open=!1);const ii=(0,Pt.Z)(At).length;let _n=ce.createElement(Mt.ck,Object.assign({},(0,re.Z)(mt,["title","icon","danger"]),{className:ee()({[`${me}-item-danger`]:ae,[`${me}-item-only-child`]:(le?ii+1:ii)===1},pt),title:typeof we=="string"?we:void 0}),(0,Yt.Tm)(le,{className:ee()((0,Yt.l$)(le)?(ft=le.props)===null||ft===void 0?void 0:ft.className:"",`${me}-item-icon`)}),Vn(rn));return ke||(_n=ce.createElement(Kt.Z,Object.assign({},Bn,{placement:Oe==="rtl"?"left":"right",overlayClassName:`${me}-inline-collapsed-tooltip`}),_n)),_n},ht=mt=>{var ft;const{popupClassName:pt,icon:At,title:le,theme:we}=mt,ae=ce.useContext(et),{prefixCls:me,inlineCollapsed:Re,theme:Oe}=ae,ke=(0,Mt.Xl)();let rn;if(!At)rn=Re&&!ke.length&&le&&typeof le=="string"?ce.createElement("div",{className:`${me}-inline-collapsed-noicon`},le.charAt(0)):ce.createElement("span",{className:`${me}-title-content`},le);else{const sn=(0,Yt.l$)(le)&&le.type==="span";rn=ce.createElement(ce.Fragment,null,(0,Yt.Tm)(At,{className:ee()((0,Yt.l$)(At)?(ft=At.props)===null||ft===void 0?void 0:ft.className:"",`${me}-item-icon`)}),sn?le:ce.createElement("span",{className:`${me}-title-content`},le))}const Vn=ce.useMemo(()=>Object.assign(Object.assign({},ae),{firstLevel:!1}),[ae]);return ce.createElement(et.Provider,{value:Vn},ce.createElement(Mt.Wd,Object.assign({},(0,re.Z)(mt,["icon"]),{title:rn,popupClassName:ee()(me,pt,`${me}-${we||Oe}`)})))},dt=bt(18785),St=bt(70425),It=bt(62892),_t=bt(40875),Gt=function(mt,ft){var pt={};for(var At in mt)Object.prototype.hasOwnProperty.call(mt,At)&&ft.indexOf(At)<0&&(pt[At]=mt[At]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,At=Object.getOwnPropertySymbols(mt);le<At.length;le++)ft.indexOf(At[le])<0&&Object.prototype.propertyIsEnumerable.call(mt,At[le])&&(pt[At[le]]=mt[At[le]]);return pt};function oe(mt){return(mt||[]).map((ft,pt)=>{if(ft&&typeof ft=="object"){const At=ft,{label:le,children:we,key:ae,type:me}=At,Re=Gt(At,["label","children","key","type"]),Oe=ae!=null?ae:`tmp-${pt}`;return we||me==="group"?me==="group"?ce.createElement(Mt.BW,Object.assign({key:Oe},Re,{title:le}),oe(we)):ce.createElement(ht,Object.assign({key:Oe},Re,{title:le}),oe(we)):me==="divider"?ce.createElement(qt,Object.assign({key:Oe},Re)):ce.createElement(lt,Object.assign({key:Oe},Re),le)}return null}).filter(ft=>ft)}function ue(mt){return ce.useMemo(()=>mt&&oe(mt),[mt])}var de=bt(64993),be=bt(17313),Jt=bt(8378),Ke=bt(13826),Wt=bt(29878),Ge=bt(83116),He=bt(37613),We=mt=>{const{componentCls:ft,motionDurationSlow:pt,horizontalLineHeight:At,colorSplit:le,lineWidth:we,lineType:ae,itemPaddingInline:me}=mt;return{[`${ft}-horizontal`]:{lineHeight:At,border:0,borderBottom:`${we}px ${ae} ${le}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ft}-item, ${ft}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:me},[`> ${ft}-item:hover,
|
|
|
> ${ft}-item-active,
|
|
|
> ${ft}-submenu ${ft}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ft}-item, ${ft}-submenu-title`]:{transition:[`border-color ${pt}`,`background ${pt}`].join(",")},[`${ft}-submenu-arrow`]:{display:"none"}}}},ve=mt=>{let{componentCls:ft,menuArrowOffset:pt}=mt;return{[`${ft}-rtl`]:{direction:"rtl"},[`${ft}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ft}-rtl${ft}-vertical,
|
|
|
${ft}-submenu-rtl ${ft}-vertical`]:{[`${ft}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${pt})`},"&::after":{transform:`rotate(45deg) translateY(${pt})`}}}}};const ne=mt=>Object.assign({},(0,be.oN)(mt));var Pn=(mt,ft)=>{const{componentCls:pt,itemColor:At,itemSelectedColor:le,groupTitleColor:we,itemBg:ae,subMenuItemBg:me,itemSelectedBg:Re,activeBarHeight:Oe,activeBarWidth:ke,activeBarBorderWidth:rn,motionDurationSlow:Vn,motionEaseInOut:sn,motionEaseOut:An,itemPaddingInline:Bn,motionDurationMid:ii,itemHoverColor:_n,lineType:ji,colorSplit:cr,itemDisabledColor:Ji,dangerItemColor:mr,dangerItemHoverColor:Mr,dangerItemSelectedColor:ao,dangerItemActiveBg:Yr,dangerItemSelectedBg:Zr,itemHoverBg:kr,itemActiveBg:Gr,menuSubMenuBg:lo,horizontalItemSelectedColor:_o,horizontalItemSelectedBg:ns,horizontalItemBorderRadius:co,horizontalItemHoverBg:ys,popupBg:jo}=mt;return{[`${pt}-${ft}, ${pt}-${ft} > ${pt}`]:{color:At,background:ae,[`&${pt}-root:focus-visible`]:Object.assign({},ne(mt)),[`${pt}-item-group-title`]:{color:we},[`${pt}-submenu-selected`]:{[`> ${pt}-submenu-title`]:{color:le}},[`${pt}-item-disabled, ${pt}-submenu-disabled`]:{color:`${Ji} !important`},[`${pt}-item:not(${pt}-item-selected):not(${pt}-submenu-selected)`]:{[`&:hover, > ${pt}-submenu-title:hover`]:{color:_n}},[`&:not(${pt}-horizontal)`]:{[`${pt}-item:not(${pt}-item-selected)`]:{"&:hover":{backgroundColor:kr},"&:active":{backgroundColor:Gr}},[`${pt}-submenu-title`]:{"&:hover":{backgroundColor:kr},"&:active":{backgroundColor:Gr}}},[`${pt}-item-danger`]:{color:mr,[`&${pt}-item:hover`]:{[`&:not(${pt}-item-selected):not(${pt}-submenu-selected)`]:{color:Mr}},[`&${pt}-item:active`]:{background:Yr}},[`${pt}-item a`]:{"&, &:hover":{color:"inherit"}},[`${pt}-item-selected`]:{color:le,[`&${pt}-item-danger`]:{color:ao},"a, a:hover":{color:"inherit"}},[`& ${pt}-item-selected`]:{backgroundColor:Re,[`&${pt}-item-danger`]:{backgroundColor:Zr}},[`${pt}-item, ${pt}-submenu-title`]:{[`&:not(${pt}-item-disabled):focus-visible`]:Object.assign({},ne(mt))},[`&${pt}-submenu > ${pt}`]:{backgroundColor:lo},[`&${pt}-popup > ${pt}`]:{backgroundColor:jo},[`&${pt}-horizontal`]:Object.assign(Object.assign({},ft==="dark"?{borderBottom:0}:{}),{[`> ${pt}-item, > ${pt}-submenu`]:{top:rn,marginTop:-rn,marginBottom:0,borderRadius:co,"&::after":{position:"absolute",insetInline:Bn,bottom:0,borderBottom:`${Oe}px solid transparent`,transition:`border-color ${Vn} ${sn}`,content:'""'},"&:hover, &-active, &-open":{background:ys,"&::after":{borderBottomWidth:Oe,borderBottomColor:_o}},"&-selected":{color:_o,backgroundColor:ns,"&:hover":{backgroundColor:ns},"&::after":{borderBottomWidth:Oe,borderBottomColor:_o}}}}),[`&${pt}-root`]:{[`&${pt}-inline, &${pt}-vertical`]:{borderInlineEnd:`${rn}px ${ji} ${cr}`}},[`&${pt}-inline`]:{[`${pt}-sub${pt}-inline`]:{background:me},[`${pt}-item, ${pt}-submenu-title`]:rn&&ke?{width:`calc(100% + ${rn}px)`}:{},[`${pt}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ke}px solid ${le}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${ii} ${An}`,`opacity ${ii} ${An}`].join(","),content:'""'},[`&${pt}-item-danger`]:{"&::after":{borderInlineEndColor:ao}}},[`${pt}-selected, ${pt}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${ii} ${sn}`,`opacity ${ii} ${sn}`].join(",")}}}}}};const Mn=mt=>{const{componentCls:ft,itemHeight:pt,itemMarginInline:At,padding:le,menuArrowSize:we,marginXS:ae,itemMarginBlock:me}=mt,Re=le+we+ae;return{[`${ft}-item`]:{position:"relative",overflow:"hidden"},[`${ft}-item, ${ft}-submenu-title`]:{height:pt,lineHeight:`${pt}px`,paddingInline:le,overflow:"hidden",textOverflow:"ellipsis",marginInline:At,marginBlock:me,width:`calc(100% - ${At*2}px)`},[`> ${ft}-item,
|
|
|
> ${ft}-submenu > ${ft}-submenu-title`]:{height:pt,lineHeight:`${pt}px`},[`${ft}-item-group-list ${ft}-submenu-title,
|
|
|
${ft}-submenu-title`]:{paddingInlineEnd:Re}}};var Nn=mt=>{const{componentCls:ft,iconCls:pt,itemHeight:At,colorTextLightSolid:le,dropdownWidth:we,controlHeightLG:ae,motionDurationMid:me,motionEaseOut:Re,paddingXL:Oe,itemMarginInline:ke,fontSizeLG:rn,motionDurationSlow:Vn,paddingXS:sn,boxShadowSecondary:An,collapsedWidth:Bn,collapsedIconSize:ii}=mt,_n={height:At,lineHeight:`${At}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[ft]:{"&-inline, &-vertical":Object.assign({[`&${ft}-root`]:{boxShadow:"none"}},Mn(mt))},[`${ft}-submenu-popup`]:{[`${ft}-vertical`]:Object.assign(Object.assign({},Mn(mt)),{boxShadow:An})}},{[`${ft}-submenu-popup ${ft}-vertical${ft}-sub`]:{minWidth:we,maxHeight:`calc(100vh - ${ae*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ft}-inline`]:{width:"100%",[`&${ft}-root`]:{[`${ft}-item, ${ft}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Vn}`,`background ${Vn}`,`padding ${me} ${Re}`].join(","),[`> ${ft}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ft}-sub${ft}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ft}-submenu > ${ft}-submenu-title`]:_n,[`& ${ft}-item-group-title`]:{paddingInlineStart:Oe}},[`${ft}-item`]:_n}},{[`${ft}-inline-collapsed`]:{width:Bn,[`&${ft}-root`]:{[`${ft}-item, ${ft}-submenu ${ft}-submenu-title`]:{[`> ${ft}-inline-collapsed-noicon`]:{fontSize:rn,textAlign:"center"}}},[`> ${ft}-item,
|
|
|
> ${ft}-item-group > ${ft}-item-group-list > ${ft}-item,
|
|
|
> ${ft}-item-group > ${ft}-item-group-list > ${ft}-submenu > ${ft}-submenu-title,
|
|
|
> ${ft}-submenu > ${ft}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${rn/2}px - ${ke}px)`,textOverflow:"clip",[`
|
|
|
${ft}-submenu-arrow,
|
|
|
${ft}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${ft}-item-icon, ${pt}`]:{margin:0,fontSize:ii,lineHeight:`${At}px`,"+ span":{display:"inline-block",opacity:0}}},[`${ft}-item-icon, ${pt}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ft}-item-icon, ${pt}`]:{display:"none"},"a, a:hover":{color:le}},[`${ft}-item-group-title`]:Object.assign(Object.assign({},be.vS),{paddingInline:sn})}}]};const Zn=mt=>{const{componentCls:ft,motionDurationSlow:pt,motionDurationMid:At,motionEaseInOut:le,motionEaseOut:we,iconCls:ae,iconSize:me,iconMarginInlineEnd:Re}=mt;return{[`${ft}-item, ${ft}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${pt}`,`background ${pt}`,`padding ${pt} ${le}`].join(","),[`${ft}-item-icon, ${ae}`]:{minWidth:me,fontSize:me,transition:[`font-size ${At} ${we}`,`margin ${pt} ${le}`,`color ${pt}`].join(","),"+ span":{marginInlineStart:Re,opacity:1,transition:[`opacity ${pt} ${le}`,`margin ${pt}`,`color ${pt}`].join(",")}},[`${ft}-item-icon`]:Object.assign({},(0,be.Ro)()),[`&${ft}-item-only-child`]:{[`> ${ae}, > ${ft}-item-icon`]:{marginInlineEnd:0}}},[`${ft}-item-disabled, ${ft}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${ft}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},fi=mt=>{const{componentCls:ft,motionDurationSlow:pt,motionEaseInOut:At,borderRadius:le,menuArrowSize:we,menuArrowOffset:ae}=mt;return{[`${ft}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:mt.margin,width:we,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${pt} ${At}, opacity ${pt}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:we*.6,height:we*.15,backgroundColor:"currentcolor",borderRadius:le,transition:[`background ${pt} ${At}`,`transform ${pt} ${At}`,`top ${pt} ${At}`,`color ${pt} ${At}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${ae})`},"&::after":{transform:`rotate(-45deg) translateY(${ae})`}}}}},zn=mt=>{const{antCls:ft,componentCls:pt,fontSize:At,motionDurationSlow:le,motionDurationMid:we,motionEaseInOut:ae,paddingXS:me,padding:Re,colorSplit:Oe,lineWidth:ke,zIndexPopup:rn,borderRadiusLG:Vn,subMenuItemBorderRadius:sn,menuArrowSize:An,menuArrowOffset:Bn,lineType:ii,menuPanelMaskInset:_n,groupTitleLineHeight:ji,groupTitleFontSize:cr}=mt;return[{"":{[`${pt}`]:Object.assign(Object.assign({},(0,be.dF)()),{"&-hidden":{display:"none"}})},[`${pt}-submenu-hidden`]:{display:"none"}},{[pt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,be.Wf)(mt)),(0,be.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:At,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${le} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${pt}-item`]:{flex:"none"}},[`${pt}-item, ${pt}-submenu, ${pt}-submenu-title`]:{borderRadius:mt.itemBorderRadius},[`${pt}-item-group-title`]:{padding:`${me}px ${Re}px`,fontSize:cr,lineHeight:ji,transition:`all ${le}`},[`&-horizontal ${pt}-submenu`]:{transition:[`border-color ${le} ${ae}`,`background ${le} ${ae}`].join(",")},[`${pt}-submenu, ${pt}-submenu-inline`]:{transition:[`border-color ${le} ${ae}`,`background ${le} ${ae}`,`padding ${we} ${ae}`].join(",")},[`${pt}-submenu ${pt}-sub`]:{cursor:"initial",transition:[`background ${le} ${ae}`,`padding ${le} ${ae}`].join(",")},[`${pt}-title-content`]:{transition:`color ${le}`},[`${pt}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${pt}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Oe,borderStyle:ii,borderWidth:0,borderTopWidth:ke,marginBlock:ke,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Zn(mt)),{[`${pt}-item-group`]:{[`${pt}-item-group-list`]:{margin:0,padding:0,[`${pt}-item, ${pt}-submenu-title`]:{paddingInline:`${At*2}px ${Re}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:rn,borderRadius:Vn,boxShadow:"none",transformOrigin:"0 0",[`&${pt}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${_n}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:_n},"\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:mt.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:mt.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:mt.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:mt.paddingXS},[`> ${pt}`]:Object.assign(Object.assign(Object.assign({borderRadius:Vn},Zn(mt)),fi(mt)),{[`${pt}-item, ${pt}-submenu > ${pt}-submenu-title`]:{borderRadius:sn},[`${pt}-submenu-title::after`]:{transition:`transform ${le} ${ae}`}})}}),fi(mt)),{[`&-inline-collapsed ${pt}-submenu-arrow,
|
|
|
&-inline ${pt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Bn})`},"&::after":{transform:`rotate(45deg) translateX(-${Bn})`}},[`${pt}-submenu-open${pt}-submenu-inline > ${pt}-submenu-title > ${pt}-submenu-arrow`]:{transform:`translateY(-${An*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Bn})`},"&::before":{transform:`rotate(45deg) translateX(${Bn})`}}})},{[`${ft}-layout-header`]:{[pt]:{lineHeight:"inherit"}}}]};var Si=(mt,ft)=>(0,Ge.Z)("Menu",At=>{if(ft===!1)return[];const{colorBgElevated:le,colorPrimary:we,colorTextLightSolid:ae,controlHeightLG:me,fontSize:Re,darkItemColor:Oe,darkDangerItemColor:ke,darkItemBg:rn,darkSubMenuItemBg:Vn,darkItemSelectedColor:sn,darkItemSelectedBg:An,darkDangerItemSelectedBg:Bn,darkItemHoverBg:ii,darkGroupTitleColor:_n,darkItemHoverColor:ji,darkItemDisabledColor:cr,darkDangerItemHoverColor:Ji,darkDangerItemSelectedColor:mr,darkDangerItemActiveBg:Mr}=At,ao=Re/7*5,Yr=(0,He.TS)(At,{menuArrowSize:ao,menuHorizontalHeight:me*1.15,menuArrowOffset:`${ao*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:le}),Zr=(0,He.TS)(Yr,{itemColor:Oe,itemHoverColor:ji,groupTitleColor:_n,itemSelectedColor:sn,itemBg:rn,popupBg:rn,subMenuItemBg:Vn,itemActiveBg:"transparent",itemSelectedBg:An,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:ii,itemDisabledColor:cr,dangerItemColor:ke,dangerItemHoverColor:Ji,dangerItemSelectedColor:mr,dangerItemActiveBg:Mr,dangerItemSelectedBg:Bn,menuSubMenuBg:Vn,horizontalItemSelectedColor:ae,horizontalItemSelectedBg:we});return[zn(Yr),We(Yr),Nn(Yr),Pn(Yr,"light"),Pn(Zr,"dark"),ve(Yr),(0,Jt.Z)(Yr),(0,Ke.oN)(Yr,"slide-up"),(0,Ke.oN)(Yr,"slide-down"),(0,Wt._y)(Yr,"zoom-big")]},At=>{const{colorPrimary:le,colorError:we,colorTextDisabled:ae,colorErrorBg:me,colorText:Re,colorTextDescription:Oe,colorBgContainer:ke,colorFillAlter:rn,colorFillContent:Vn,lineWidth:sn,lineWidthBold:An,controlItemBgActive:Bn,colorBgTextHover:ii,controlHeightLG:_n,lineHeight:ji,colorBgElevated:cr,marginXXS:Ji,padding:mr,fontSize:Mr,controlHeightSM:ao,fontSizeLG:Yr,colorTextLightSolid:Zr,colorErrorHover:kr}=At,Gr=new de.C(Zr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:At.zIndexPopupBase+50,radiusItem:At.borderRadiusLG,itemBorderRadius:At.borderRadiusLG,radiusSubMenuItem:At.borderRadiusSM,subMenuItemBorderRadius:At.borderRadiusSM,colorItemText:Re,itemColor:Re,colorItemTextHover:Re,itemHoverColor:Re,colorItemTextHoverHorizontal:le,horizontalItemHoverColor:le,colorGroupTitle:Oe,groupTitleColor:Oe,colorItemTextSelected:le,itemSelectedColor:le,colorItemTextSelectedHorizontal:le,horizontalItemSelectedColor:le,colorItemBg:ke,itemBg:ke,colorItemBgHover:ii,itemHoverBg:ii,colorItemBgActive:Vn,itemActiveBg:Bn,colorSubItemBg:rn,subMenuItemBg:rn,colorItemBgSelected:Bn,itemSelectedBg:Bn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:An,activeBarHeight:An,colorActiveBarBorderSize:sn,activeBarBorderWidth:sn,colorItemTextDisabled:ae,itemDisabledColor:ae,colorDangerItemText:we,dangerItemColor:we,colorDangerItemTextHover:we,dangerItemHoverColor:we,colorDangerItemTextSelected:we,dangerItemSelectedColor:we,colorDangerItemBgActive:me,dangerItemActiveBg:me,colorDangerItemBgSelected:me,dangerItemSelectedBg:me,itemMarginInline:At.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:_n,groupTitleLineHeight:ji,collapsedWidth:_n*2,popupBg:cr,itemMarginBlock:Ji,itemPaddingInline:mr,horizontalLineHeight:`${_n*1.15}px`,iconSize:Mr,iconMarginInlineEnd:ao-Mr,collapsedIconSize:Yr,groupTitleFontSize:Mr,darkItemDisabledColor:new de.C(Zr).setAlpha(.25).toRgbString(),darkItemColor:Gr,darkDangerItemColor:we,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Zr,darkItemSelectedBg:le,darkDangerItemSelectedBg:we,darkItemHoverBg:"transparent",darkGroupTitleColor:Gr,darkItemHoverColor:Zr,darkDangerItemHoverColor:kr,darkDangerItemSelectedColor:Zr,darkDangerItemActiveBg:we}},{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"]]})(mt),nn=function(mt,ft){var pt={};for(var At in mt)Object.prototype.hasOwnProperty.call(mt,At)&&ft.indexOf(At)<0&&(pt[At]=mt[At]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,At=Object.getOwnPropertySymbols(mt);le<At.length;le++)ft.indexOf(At[le])<0&&Object.prototype.propertyIsEnumerable.call(mt,At[le])&&(pt[At[le]]=mt[At[le]]);return pt},Ti=(0,ce.forwardRef)((mt,ft)=>{var pt,At;const le=ce.useContext(_t.Z),we=le||{},{getPrefixCls:ae,getPopupContainer:me,direction:Re,menu:Oe}=ce.useContext(Zt.E_),ke=ae(),{prefixCls:rn,className:Vn,style:sn,theme:An="light",expandIcon:Bn,_internalDisableMenuItemTitleTooltip:ii,inlineCollapsed:_n,siderCollapsed:ji,items:cr,children:Ji,rootClassName:mr,mode:Mr,selectable:ao,onClick:Yr,overflowedIndicatorPopupClassName:Zr}=mt,kr=nn(mt,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Gr=(0,re.Z)(kr,["collapsedWidth"]),lo=ue(cr)||Ji;(pt=we.validator)===null||pt===void 0||pt.call(we,{mode:Mr});const _o=(0,St.useEvent)(function(){var qs;Yr==null||Yr.apply(void 0,arguments),(qs=we.onClick)===null||qs===void 0||qs.call(we)}),ns=we.mode||Mr,co=ao!=null?ao:we.selectable,ys=ce.useMemo(()=>ji!==void 0?ji:_n,[_n,ji]),jo={horizontal:{motionName:`${ke}-slide-up`},inline:(0,It.Z)(ke),other:{motionName:`${ke}-zoom-big`}},$t=ae("menu",rn||we.prefixCls),[ri,ws]=Si($t,!le),Is=ee()(`${$t}-${An}`,Oe==null?void 0:Oe.className,Vn);let ma;if(typeof Bn=="function")ma=Bn;else if(Bn===null||Bn===!1)ma=null;else if(we.expandIcon===null||we.expandIcon===!1)ma=null;else{const qs=Bn!=null?Bn:we.expandIcon;ma=(0,Yt.Tm)(qs,{className:ee()(`${$t}-submenu-expand-icon`,(0,Yt.l$)(qs)?(At=qs.props)===null||At===void 0?void 0:At.className:"")})}const va=ce.useMemo(()=>({prefixCls:$t,inlineCollapsed:ys||!1,direction:Re,firstLevel:!0,theme:An,mode:ns,disableMenuItemTitleTooltip:ii}),[$t,ys,Re,ii,An]);return ri(ce.createElement(_t.Z.Provider,{value:null},ce.createElement(et.Provider,{value:va},ce.createElement(Mt.ZP,Object.assign({getPopupContainer:me,overflowedIndicator:ce.createElement(dt.Z,null),overflowedIndicatorPopupClassName:ee()($t,`${$t}-${An}`,Zr),mode:ns,selectable:co,onClick:_o},Gr,{inlineCollapsed:ys,style:Object.assign(Object.assign({},Oe==null?void 0:Oe.style),sn),className:Is,prefixCls:$t,direction:Re,defaultMotions:jo,expandIcon:ma,ref:ft,rootClassName:ee()(mr,ws)}),lo))))});const Lt=(0,ce.forwardRef)((mt,ft)=>{const pt=(0,ce.useRef)(null),At=ce.useContext(ie.D);return(0,ce.useImperativeHandle)(ft,()=>({menu:pt.current,focus:le=>{var we;(we=pt.current)===null||we===void 0||we.focus(le)}})),ce.createElement(Ti,Object.assign({ref:pt},mt,At))});Lt.Item=lt,Lt.SubMenu=ht,Lt.Divider=qt,Lt.ItemGroup=Mt.BW;var Ot=Lt},58421:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return we}});var Mt=bt(96663),ce=bt(59301),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Ie=ie,ee=bt(7657),Zt=function(me,Re){return ce.createElement(ee.Z,(0,Mt.Z)({},me,{ref:Re,icon:Ie}))},Nt=ce.forwardRef(Zt),jt=Nt,qt=bt(49198),Pt=bt(33853),re=bt(38819),Kt=bt(92310),Yt=bt.n(Kt),Ct=bt(90493),et=bt(44127),tt=bt(52884),lt=bt(95727),rt=bt(65711),ht=bt(85745),dt=bt(26112),St={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},It=St,_t=bt(91735),Gt=function(ae){(0,rt.Z)(Re,ae);var me=(0,ht.Z)(Re);function Re(){var Oe;(0,tt.Z)(this,Re);for(var ke=arguments.length,rn=new Array(ke),Vn=0;Vn<ke;Vn++)rn[Vn]=arguments[Vn];return Oe=me.call.apply(me,[this].concat(rn)),Oe.state={goInputText:""},Oe.getValidValue=function(){var sn=Oe.state.goInputText;return!sn||Number.isNaN(sn)?void 0:Number(sn)},Oe.buildOptionText=function(sn){return"".concat(sn," ").concat(Oe.props.locale.items_per_page)},Oe.changeSize=function(sn){Oe.props.changeSize(Number(sn))},Oe.handleChange=function(sn){Oe.setState({goInputText:sn.target.value})},Oe.handleBlur=function(sn){var An=Oe.props,Bn=An.goButton,ii=An.quickGo,_n=An.rootPrefixCls,ji=Oe.state.goInputText;Bn||ji===""||(Oe.setState({goInputText:""}),!(sn.relatedTarget&&(sn.relatedTarget.className.indexOf("".concat(_n,"-item-link"))>=0||sn.relatedTarget.className.indexOf("".concat(_n,"-item"))>=0))&&ii(Oe.getValidValue()))},Oe.go=function(sn){var An=Oe.state.goInputText;An!==""&&(sn.keyCode===It.ENTER||sn.type==="click")&&(Oe.setState({goInputText:""}),Oe.props.quickGo(Oe.getValidValue()))},Oe}return(0,lt.Z)(Re,[{key:"getPageSizeOptions",value:function(){var ke=this.props,rn=ke.pageSize,Vn=ke.pageSizeOptions;return Vn.some(function(sn){return sn.toString()===rn.toString()})?Vn:Vn.concat([rn.toString()]).sort(function(sn,An){var Bn=Number.isNaN(Number(sn))?0:Number(sn),ii=Number.isNaN(Number(An))?0:Number(An);return Bn-ii})}},{key:"render",value:function(){var ke=this,rn=this.props,Vn=rn.pageSize,sn=rn.locale,An=rn.rootPrefixCls,Bn=rn.changeSize,ii=rn.quickGo,_n=rn.goButton,ji=rn.selectComponentClass,cr=rn.buildOptionText,Ji=rn.selectPrefixCls,mr=rn.disabled,Mr=this.state.goInputText,ao="".concat(An,"-options"),Yr=ji,Zr=null,kr=null,Gr=null;if(!Bn&&!ii)return null;var lo=this.getPageSizeOptions();if(Bn&&Yr){var _o=lo.map(function(ns,co){return ce.createElement(Yr.Option,{key:co,value:ns.toString()},(cr||ke.buildOptionText)(ns))});Zr=ce.createElement(Yr,{disabled:mr,prefixCls:Ji,showSearch:!1,className:"".concat(ao,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Vn||lo[0]).toString(),onChange:this.changeSize,getPopupContainer:function(co){return co.parentNode},"aria-label":sn.page_size,defaultOpen:!1},_o)}return ii&&(_n&&(Gr=typeof _n=="boolean"?ce.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:mr,className:"".concat(ao,"-quick-jumper-button")},sn.jump_to_confirm):ce.createElement("span",{onClick:this.go,onKeyUp:this.go},_n)),kr=ce.createElement("div",{className:"".concat(ao,"-quick-jumper")},sn.jump_to,ce.createElement("input",{disabled:mr,type:"text",value:Mr,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":sn.page}),sn.page,Gr)),ce.createElement("li",{className:"".concat(ao)},Zr,kr)}}]),Re}(ce.Component);Gt.defaultProps={pageSizeOptions:["10","20","50","100"]};var oe=Gt,ue=function(me){var Re,Oe=me.rootPrefixCls,ke=me.page,rn=me.active,Vn=me.className,sn=me.showTitle,An=me.onClick,Bn=me.onKeyPress,ii=me.itemRender,_n="".concat(Oe,"-item"),ji=Yt()(_n,"".concat(_n,"-").concat(ke),(Re={},(0,Ct.Z)(Re,"".concat(_n,"-active"),rn),(0,Ct.Z)(Re,"".concat(_n,"-disabled"),!ke),(0,Ct.Z)(Re,me.className,Vn),Re)),cr=function(){An(ke)},Ji=function(ao){Bn(ao,An,ke)},mr=ii(ke,"page",ce.createElement("a",{rel:"nofollow"},ke));return mr?ce.createElement("li",{title:sn?ke.toString():null,className:ji,onClick:cr,onKeyPress:Ji,tabIndex:0},mr):null},de=ue;function be(){}function Jt(ae){var me=Number(ae);return typeof me=="number"&&!Number.isNaN(me)&&isFinite(me)&&Math.floor(me)===me}var Ke=function(me,Re,Oe){return Oe};function Wt(ae,me,Re){var Oe=typeof ae=="undefined"?me.pageSize:ae;return Math.floor((Re.total-1)/Oe)+1}var Ge=function(ae){(0,rt.Z)(Re,ae);var me=(0,ht.Z)(Re);function Re(Oe){var ke;(0,tt.Z)(this,Re),ke=me.call(this,Oe),ke.paginationNode=ce.createRef(),ke.getJumpPrevPage=function(){return Math.max(1,ke.state.current-(ke.props.showLessItems?3:5))},ke.getJumpNextPage=function(){return Math.min(Wt(void 0,ke.state,ke.props),ke.state.current+(ke.props.showLessItems?3:5))},ke.getItemIcon=function(Bn,ii){var _n=ke.props.prefixCls,ji=Bn||ce.createElement("button",{type:"button","aria-label":ii,className:"".concat(_n,"-item-link")});return typeof Bn=="function"&&(ji=ce.createElement(Bn,(0,et.Z)({},ke.props))),ji},ke.isValid=function(Bn){var ii=ke.props.total;return Jt(Bn)&&Bn!==ke.state.current&&Jt(ii)&&ii>0},ke.shouldDisplayQuickJumper=function(){var Bn=ke.props,ii=Bn.showQuickJumper,_n=Bn.total,ji=ke.state.pageSize;return _n<=ji?!1:ii},ke.handleKeyDown=function(Bn){(Bn.keyCode===It.ARROW_UP||Bn.keyCode===It.ARROW_DOWN)&&Bn.preventDefault()},ke.handleKeyUp=function(Bn){var ii=ke.getValidValue(Bn),_n=ke.state.currentInputValue;ii!==_n&&ke.setState({currentInputValue:ii}),Bn.keyCode===It.ENTER?ke.handleChange(ii):Bn.keyCode===It.ARROW_UP?ke.handleChange(ii-1):Bn.keyCode===It.ARROW_DOWN&&ke.handleChange(ii+1)},ke.handleBlur=function(Bn){var ii=ke.getValidValue(Bn);ke.handleChange(ii)},ke.changePageSize=function(Bn){var ii=ke.state.current,_n=Wt(Bn,ke.state,ke.props);ii=ii>_n?_n:ii,_n===0&&(ii=ke.state.current),typeof Bn=="number"&&("pageSize"in ke.props||ke.setState({pageSize:Bn}),"current"in ke.props||ke.setState({current:ii,currentInputValue:ii})),ke.props.onShowSizeChange(ii,Bn),"onChange"in ke.props&&ke.props.onChange&&ke.props.onChange(ii,Bn)},ke.handleChange=function(Bn){var ii=ke.props,_n=ii.disabled,ji=ii.onChange,cr=ke.state,Ji=cr.pageSize,mr=cr.current,Mr=cr.currentInputValue;if(ke.isValid(Bn)&&!_n){var ao=Wt(void 0,ke.state,ke.props),Yr=Bn;return Bn>ao?Yr=ao:Bn<1&&(Yr=1),"current"in ke.props||ke.setState({current:Yr}),Yr!==Mr&&ke.setState({currentInputValue:Yr}),ji(Yr,Ji),Yr}return mr},ke.prev=function(){ke.hasPrev()&&ke.handleChange(ke.state.current-1)},ke.next=function(){ke.hasNext()&&ke.handleChange(ke.state.current+1)},ke.jumpPrev=function(){ke.handleChange(ke.getJumpPrevPage())},ke.jumpNext=function(){ke.handleChange(ke.getJumpNextPage())},ke.hasPrev=function(){return ke.state.current>1},ke.hasNext=function(){return ke.state.current<Wt(void 0,ke.state,ke.props)},ke.runIfEnter=function(Bn,ii){if(Bn.key==="Enter"||Bn.charCode===13){for(var _n=arguments.length,ji=new Array(_n>2?_n-2:0),cr=2;cr<_n;cr++)ji[cr-2]=arguments[cr];ii.apply(void 0,ji)}},ke.runIfEnterPrev=function(Bn){ke.runIfEnter(Bn,ke.prev)},ke.runIfEnterNext=function(Bn){ke.runIfEnter(Bn,ke.next)},ke.runIfEnterJumpPrev=function(Bn){ke.runIfEnter(Bn,ke.jumpPrev)},ke.runIfEnterJumpNext=function(Bn){ke.runIfEnter(Bn,ke.jumpNext)},ke.handleGoTO=function(Bn){(Bn.keyCode===It.ENTER||Bn.type==="click")&&ke.handleChange(ke.state.currentInputValue)},ke.renderPrev=function(Bn){var ii=ke.props,_n=ii.prevIcon,ji=ii.itemRender,cr=ji(Bn,"prev",ke.getItemIcon(_n,"prev page")),Ji=!ke.hasPrev();return(0,ce.isValidElement)(cr)?(0,ce.cloneElement)(cr,{disabled:Ji}):cr},ke.renderNext=function(Bn){var ii=ke.props,_n=ii.nextIcon,ji=ii.itemRender,cr=ji(Bn,"next",ke.getItemIcon(_n,"next page")),Ji=!ke.hasNext();return(0,ce.isValidElement)(cr)?(0,ce.cloneElement)(cr,{disabled:Ji}):cr};var rn=Oe.onChange!==be,Vn="current"in Oe;Vn&&!rn&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var sn=Oe.defaultCurrent;"current"in Oe&&(sn=Oe.current);var An=Oe.defaultPageSize;return"pageSize"in Oe&&(An=Oe.pageSize),sn=Math.min(sn,Wt(An,void 0,Oe)),ke.state={current:sn,currentInputValue:sn,pageSize:An},ke}return(0,lt.Z)(Re,[{key:"componentDidUpdate",value:function(ke,rn){var Vn=this.props.prefixCls;if(rn.current!==this.state.current&&this.paginationNode.current){var sn=this.paginationNode.current.querySelector(".".concat(Vn,"-item-").concat(rn.current));if(sn&&document.activeElement===sn){var An;sn==null||(An=sn.blur)===null||An===void 0||An.call(sn)}}}},{key:"getValidValue",value:function(ke){var rn=ke.target.value,Vn=Wt(void 0,this.state,this.props),sn=this.state.currentInputValue,An;return rn===""?An=rn:Number.isNaN(Number(rn))?An=sn:rn>=Vn?An=Vn:An=Number(rn),An}},{key:"getShowSizeChanger",value:function(){var ke=this.props,rn=ke.showSizeChanger,Vn=ke.total,sn=ke.totalBoundaryShowSizeChanger;return typeof rn!="undefined"?rn:Vn>sn}},{key:"render",value:function(){var ke=this.props,rn=ke.prefixCls,Vn=ke.className,sn=ke.style,An=ke.disabled,Bn=ke.hideOnSinglePage,ii=ke.total,_n=ke.locale,ji=ke.showQuickJumper,cr=ke.showLessItems,Ji=ke.showTitle,mr=ke.showTotal,Mr=ke.simple,ao=ke.itemRender,Yr=ke.showPrevNextJumpers,Zr=ke.jumpPrevIcon,kr=ke.jumpNextIcon,Gr=ke.selectComponentClass,lo=ke.selectPrefixCls,_o=ke.pageSizeOptions,ns=this.state,co=ns.current,ys=ns.pageSize,jo=ns.currentInputValue;if(Bn===!0&&ii<=ys)return null;var $t=Wt(void 0,this.state,this.props),ri=[],ws=null,Is=null,ma=null,va=null,qs=null,_r=ji&&ji.goButton,Dr=cr?1:2,kn=co-1>0?co-1:0,Tn=co+1<$t?co+1:$t,De=(0,dt.Z)(this.props,{aria:!0,data:!0}),ti=mr&&ce.createElement("li",{className:"".concat(rn,"-total-text")},mr(ii,[ii===0?0:(co-1)*ys+1,co*ys>ii?ii:co*ys]));if(Mr){_r&&(typeof _r=="boolean"?qs=ce.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},_n.jump_to_confirm):qs=ce.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},_r),qs=ce.createElement("li",{title:Ji?"".concat(_n.jump_to).concat(co,"/").concat($t):null,className:"".concat(rn,"-simple-pager")},qs));var yi=this.renderPrev(kn);return ce.createElement("ul",(0,Mt.Z)({className:Yt()(rn,"".concat(rn,"-simple"),(0,Ct.Z)({},"".concat(rn,"-disabled"),An),Vn),style:sn,ref:this.paginationNode},De),ti,yi?ce.createElement("li",{title:Ji?_n.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Yt()("".concat(rn,"-prev"),(0,Ct.Z)({},"".concat(rn,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},yi):null,ce.createElement("li",{title:Ji?"".concat(co,"/").concat($t):null,className:"".concat(rn,"-simple-pager")},ce.createElement("input",{type:"text",value:jo,disabled:An,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),ce.createElement("span",{className:"".concat(rn,"-slash")},"/"),$t),ce.createElement("li",{title:Ji?_n.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Yt()("".concat(rn,"-next"),(0,Ct.Z)({},"".concat(rn,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Tn)),qs)}if($t<=3+Dr*2){var dn={locale:_n,rootPrefixCls:rn,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Ji,itemRender:ao};$t||ri.push(ce.createElement(de,(0,Mt.Z)({},dn,{key:"noPager",page:1,className:"".concat(rn,"-item-disabled")})));for(var Le=1;Le<=$t;Le+=1){var yn=co===Le;ri.push(ce.createElement(de,(0,Mt.Z)({},dn,{key:Le,page:Le,active:yn})))}}else{var Qn=cr?_n.prev_3:_n.prev_5,wi=cr?_n.next_3:_n.next_5,Oi=ao(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Zr,"prev page")),qe=ao(this.getJumpNextPage(),"jump-next",this.getItemIcon(kr,"next page"));Yr&&(ws=Oi?ce.createElement("li",{title:Ji?Qn:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Yt()("".concat(rn,"-jump-prev"),(0,Ct.Z)({},"".concat(rn,"-jump-prev-custom-icon"),!!Zr))},Oi):null,Is=qe?ce.createElement("li",{title:Ji?wi:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Yt()("".concat(rn,"-jump-next"),(0,Ct.Z)({},"".concat(rn,"-jump-next-custom-icon"),!!kr))},qe):null),va=ce.createElement(de,{locale:_n,last:!0,rootPrefixCls:rn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:$t,page:$t,active:!1,showTitle:Ji,itemRender:ao}),ma=ce.createElement(de,{locale:_n,rootPrefixCls:rn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Ji,itemRender:ao});var oi=Math.max(1,co-Dr),Pi=Math.min(co+Dr,$t);co-1<=Dr&&(Pi=1+Dr*2),$t-co<=Dr&&(oi=$t-Dr*2);for(var er=oi;er<=Pi;er+=1){var On=co===er;ri.push(ce.createElement(de,{locale:_n,rootPrefixCls:rn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:er,page:er,active:On,showTitle:Ji,itemRender:ao}))}co-1>=Dr*2&&co!==3&&(ri[0]=(0,ce.cloneElement)(ri[0],{className:"".concat(rn,"-item-after-jump-prev")}),ri.unshift(ws)),$t-co>=Dr*2&&co!==$t-2&&(ri[ri.length-1]=(0,ce.cloneElement)(ri[ri.length-1],{className:"".concat(rn,"-item-before-jump-next")}),ri.push(Is)),oi!==1&&ri.unshift(ma),Pi!==$t&&ri.push(va)}var ui=!this.hasPrev()||!$t,Cr=!this.hasNext()||!$t,or=this.renderPrev(kn),zr=this.renderNext(Tn);return ce.createElement("ul",(0,Mt.Z)({className:Yt()(rn,Vn,(0,Ct.Z)({},"".concat(rn,"-disabled"),An)),style:sn,ref:this.paginationNode},De),ti,or?ce.createElement("li",{title:Ji?_n.prev_page:null,onClick:this.prev,tabIndex:ui?null:0,onKeyPress:this.runIfEnterPrev,className:Yt()("".concat(rn,"-prev"),(0,Ct.Z)({},"".concat(rn,"-disabled"),ui)),"aria-disabled":ui},or):null,ri,zr?ce.createElement("li",{title:Ji?_n.next_page:null,onClick:this.next,tabIndex:Cr?null:0,onKeyPress:this.runIfEnterNext,className:Yt()("".concat(rn,"-next"),(0,Ct.Z)({},"".concat(rn,"-disabled"),Cr)),"aria-disabled":Cr},zr):null,ce.createElement(oe,{disabled:An,locale:_n,rootPrefixCls:rn,selectComponentClass:Gr,selectPrefixCls:lo,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:co,pageSize:ys,pageSizeOptions:_o,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:_r}))}}],[{key:"getDerivedStateFromProps",value:function(ke,rn){var Vn={};if("current"in ke&&(Vn.current=ke.current,ke.current!==rn.current&&(Vn.currentInputValue=Vn.current)),"pageSize"in ke&&ke.pageSize!==rn.pageSize){var sn=rn.current,An=Wt(ke.pageSize,rn,ke);sn=sn>An?An:sn,"current"in ke||(Vn.current=sn,Vn.currentInputValue=sn),Vn.pageSize=ke.pageSize}return Vn}}]),Re}(ce.Component);Ge.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:be,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:be,locale:_t.Z,style:{},itemRender:Ke,totalBoundaryShowSizeChanger:50};var He=Ge,Me=bt(22075),We=bt(36355),_e=bt(19716),ve=bt(8628),ne=bt(9763),Se=bt(57809);const Pn=ae=>ce.createElement(Se.default,Object.assign({},ae,{showSearch:!0,size:"small"})),Mn=ae=>ce.createElement(Se.default,Object.assign({},ae,{showSearch:!0,size:"middle"}));Pn.Option=Se.default.Option,Mn.Option=Se.default.Option;var Xe=bt(9937),Nn=bt(17313),Zn=bt(83116),fi=bt(37613);const zn=ae=>{const{componentCls:me}=ae;return{[`${me}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${me}-item-link`]:{color:ae.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${me}-item-link`]:{color:ae.colorTextDisabled,cursor:"not-allowed"}}},[`&${me}-disabled`]:{cursor:"not-allowed",[`${me}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:ae.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:ae.colorBorder,backgroundColor:ae.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:ae.itemActiveBgDisabled},a:{color:ae.itemActiveColorDisabled}}},[`${me}-item-link`]:{color:ae.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${me}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${me}-simple-pager`]:{color:ae.colorTextDisabled},[`${me}-jump-prev, ${me}-jump-next`]:{[`${me}-item-link-icon`]:{opacity:0},[`${me}-item-ellipsis`]:{opacity:1}}},[`&${me}-simple`]:{[`${me}-prev, ${me}-next`]:{[`&${me}-disabled ${me}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Si=ae=>{const{componentCls:me}=ae;return{[`&${me}-mini ${me}-total-text, &${me}-mini ${me}-simple-pager`]:{height:ae.itemSizeSM,lineHeight:`${ae.itemSizeSM}px`},[`&${me}-mini ${me}-item`]:{minWidth:ae.itemSizeSM,height:ae.itemSizeSM,margin:0,lineHeight:`${ae.itemSizeSM-2}px`},[`&${me}-mini:not(${me}-disabled) ${me}-item:not(${me}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:ae.colorBgTextHover},"&:active":{backgroundColor:ae.colorBgTextActive}},[`&${me}-mini ${me}-prev, &${me}-mini ${me}-next`]:{minWidth:ae.itemSizeSM,height:ae.itemSizeSM,margin:0,lineHeight:`${ae.itemSizeSM}px`},[`&${me}-mini:not(${me}-disabled)`]:{[`${me}-prev, ${me}-next`]:{[`&:hover ${me}-item-link`]:{backgroundColor:ae.colorBgTextHover},[`&:active ${me}-item-link`]:{backgroundColor:ae.colorBgTextActive},[`&${me}-disabled:hover ${me}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${me}-mini ${me}-prev ${me}-item-link,
|
|
|
&${me}-mini ${me}-next ${me}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:ae.itemSizeSM,lineHeight:`${ae.itemSizeSM}px`}},[`&${me}-mini ${me}-jump-prev, &${me}-mini ${me}-jump-next`]:{height:ae.itemSizeSM,marginInlineEnd:0,lineHeight:`${ae.itemSizeSM}px`},[`&${me}-mini ${me}-options`]:{marginInlineStart:ae.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:ae.miniOptionsSizeChangerTop},"&-quick-jumper":{height:ae.itemSizeSM,lineHeight:`${ae.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Xe.x0)(ae)),{width:ae.paginationMiniQuickJumperInputWidth,height:ae.controlHeightSM})}}}},nn=ae=>{const{componentCls:me}=ae;return{[`
|
|
|
&${me}-simple ${me}-prev,
|
|
|
&${me}-simple ${me}-next
|
|
|
`]:{height:ae.itemSizeSM,lineHeight:`${ae.itemSizeSM}px`,verticalAlign:"top",[`${me}-item-link`]:{height:ae.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:ae.colorBgTextHover},"&:active":{backgroundColor:ae.colorBgTextActive},"&::after":{height:ae.itemSizeSM,lineHeight:`${ae.itemSizeSM}px`}}},[`&${me}-simple ${me}-simple-pager`]:{display:"inline-block",height:ae.itemSizeSM,marginInlineEnd:ae.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:ae.marginXS,padding:`0 ${ae.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:ae.itemInputBg,border:`${ae.lineWidth}px ${ae.lineType} ${ae.colorBorder}`,borderRadius:ae.borderRadius,outline:"none",transition:`border-color ${ae.motionDurationMid}`,color:"inherit","&:hover":{borderColor:ae.colorPrimary},"&:focus":{borderColor:ae.colorPrimaryHover,boxShadow:`${ae.inputOutlineOffset}px 0 ${ae.controlOutlineWidth}px ${ae.controlOutline}`},"&[disabled]":{color:ae.colorTextDisabled,backgroundColor:ae.colorBgContainerDisabled,borderColor:ae.colorBorder,cursor:"not-allowed"}}}}},Fi=ae=>{const{componentCls:me}=ae;return{[`${me}-jump-prev, ${me}-jump-next`]:{outline:0,[`${me}-item-container`]:{position:"relative",[`${me}-item-link-icon`]:{color:ae.colorPrimary,fontSize:ae.fontSizeSM,opacity:0,transition:`all ${ae.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${me}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:ae.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:ae.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:ae.paginationEllipsisTextIndent,opacity:1,transition:`all ${ae.motionDurationMid}`}},"&:hover":{[`${me}-item-link-icon`]:{opacity:1},[`${me}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${me}-prev,
|
|
|
${me}-jump-prev,
|
|
|
${me}-jump-next
|
|
|
`]:{marginInlineEnd:ae.marginXS},[`
|
|
|
${me}-prev,
|
|
|
${me}-next,
|
|
|
${me}-jump-prev,
|
|
|
${me}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:ae.itemSize,height:ae.itemSize,color:ae.colorText,fontFamily:ae.fontFamily,lineHeight:`${ae.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:ae.borderRadius,cursor:"pointer",transition:`all ${ae.motionDurationMid}`},[`${me}-prev, ${me}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:ae.colorText,cursor:"pointer",userSelect:"none"},[`${me}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:ae.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${ae.lineWidth}px ${ae.lineType} transparent`,borderRadius:ae.borderRadius,outline:"none",transition:`all ${ae.motionDurationMid}`},[`&:hover ${me}-item-link`]:{backgroundColor:ae.colorBgTextHover},[`&:active ${me}-item-link`]:{backgroundColor:ae.colorBgTextActive},[`&${me}-disabled:hover`]:{[`${me}-item-link`]:{backgroundColor:"transparent"}}},[`${me}-slash`]:{marginInlineEnd:ae.paginationSlashMarginInlineEnd,marginInlineStart:ae.paginationSlashMarginInlineStart},[`${me}-options`]:{display:"inline-block",marginInlineStart:ae.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:ae.controlHeight,marginInlineStart:ae.marginXS,lineHeight:`${ae.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Xe.ik)(ae)),{width:ae.controlHeightLG*1.25,height:ae.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:ae.marginXS,marginInlineEnd:ae.marginXS})}}}},Ti=ae=>{const{componentCls:me}=ae;return{[`${me}-item`]:{display:"inline-block",minWidth:ae.itemSize,height:ae.itemSize,marginInlineEnd:ae.marginXS,fontFamily:ae.fontFamily,lineHeight:`${ae.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${ae.lineWidth}px ${ae.lineType} transparent`,borderRadius:ae.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${ae.paginationItemPaddingInline}px`,color:ae.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${me}-item-active)`]:{"&:hover":{transition:`all ${ae.motionDurationMid}`,backgroundColor:ae.colorBgTextHover},"&:active":{backgroundColor:ae.colorBgTextActive}},"&-active":{fontWeight:ae.fontWeightStrong,backgroundColor:ae.itemActiveBg,borderColor:ae.colorPrimary,a:{color:ae.colorPrimary},"&:hover":{borderColor:ae.colorPrimaryHover},"&:hover a":{color:ae.colorPrimaryHover}}}}},Lt=ae=>{const{componentCls:me}=ae;return{[me]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Nn.Wf)(ae)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${me}-total-text`]:{display:"inline-block",height:ae.itemSize,marginInlineEnd:ae.marginXS,lineHeight:`${ae.itemSize-2}px`,verticalAlign:"middle"}}),Ti(ae)),Fi(ae)),nn(ae)),Si(ae)),zn(ae)),{[`@media only screen and (max-width: ${ae.screenLG}px)`]:{[`${me}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${ae.screenSM}px)`]:{[`${me}-options`]:{display:"none"}}}),[`&${ae.componentCls}-rtl`]:{direction:"rtl"}}},Ot=ae=>{const{componentCls:me}=ae;return{[`${me}${me}-disabled:not(${me}-mini)`]:{"&, &:hover":{[`${me}-item-link`]:{borderColor:ae.colorBorder}},"&:focus-visible":{[`${me}-item-link`]:{borderColor:ae.colorBorder}},[`${me}-item, ${me}-item-link`]:{backgroundColor:ae.colorBgContainerDisabled,borderColor:ae.colorBorder,[`&:hover:not(${me}-item-active)`]:{backgroundColor:ae.colorBgContainerDisabled,borderColor:ae.colorBorder,a:{color:ae.colorTextDisabled}},[`&${me}-item-active`]:{backgroundColor:ae.itemActiveBgDisabled}},[`${me}-prev, ${me}-next`]:{"&:hover button":{backgroundColor:ae.colorBgContainerDisabled,borderColor:ae.colorBorder,color:ae.colorTextDisabled},[`${me}-item-link`]:{backgroundColor:ae.colorBgContainerDisabled,borderColor:ae.colorBorder}}},[`${me}:not(${me}-mini)`]:{[`${me}-prev, ${me}-next`]:{"&:hover button":{borderColor:ae.colorPrimaryHover,backgroundColor:ae.itemBg},[`${me}-item-link`]:{backgroundColor:ae.itemLinkBg,borderColor:ae.colorBorder},[`&:hover ${me}-item-link`]:{borderColor:ae.colorPrimary,backgroundColor:ae.itemBg,color:ae.colorPrimary},[`&${me}-disabled`]:{[`${me}-item-link`]:{borderColor:ae.colorBorder,color:ae.colorTextDisabled}}},[`${me}-item`]:{backgroundColor:ae.itemBg,border:`${ae.lineWidth}px ${ae.lineType} ${ae.colorBorder}`,[`&:hover:not(${me}-item-active)`]:{borderColor:ae.colorPrimary,backgroundColor:ae.itemBg,a:{color:ae.colorPrimary}},"&-active":{borderColor:ae.colorPrimary}}}}},mt=ae=>{const{componentCls:me}=ae;return{[`${me}:not(${me}-disabled)`]:{[`${me}-item`]:Object.assign({},(0,Nn.Qy)(ae)),[`${me}-jump-prev, ${me}-jump-next`]:{"&:focus-visible":Object.assign({[`${me}-item-link-icon`]:{opacity:1},[`${me}-item-ellipsis`]:{opacity:0}},(0,Nn.oN)(ae))},[`${me}-prev, ${me}-next`]:{[`&:focus-visible ${me}-item-link`]:Object.assign({},(0,Nn.oN)(ae))}}}};var ft=(0,Zn.Z)("Pagination",ae=>{const me=(0,fi.TS)(ae,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:ae.marginXXS/2,paginationMiniQuickJumperInputWidth:ae.controlHeightLG*1.1,paginationItemPaddingInline:ae.marginXXS*1.5,paginationEllipsisLetterSpacing:ae.marginXXS/2,paginationSlashMarginInlineStart:ae.marginXXS,paginationSlashMarginInlineEnd:ae.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Xe.e5)(ae),(0,Xe.TM)(ae));return[Lt(me),mt(me),ae.wireframe&&Ot(me)]},ae=>({itemBg:ae.colorBgContainer,itemSize:ae.controlHeight,itemSizeSM:ae.controlHeightSM,itemActiveBg:ae.colorBgContainer,itemLinkBg:ae.colorBgContainer,itemActiveColorDisabled:ae.colorTextDisabled,itemActiveBgDisabled:ae.controlItemBgActiveDisabled,itemInputBg:ae.colorBgContainer,miniOptionsSizeChangerTop:0})),pt=function(ae,me){var Re={};for(var Oe in ae)Object.prototype.hasOwnProperty.call(ae,Oe)&&me.indexOf(Oe)<0&&(Re[Oe]=ae[Oe]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Oe=Object.getOwnPropertySymbols(ae);ke<Oe.length;ke++)me.indexOf(Oe[ke])<0&&Object.prototype.propertyIsEnumerable.call(ae,Oe[ke])&&(Re[Oe[ke]]=ae[Oe[ke]]);return Re},le=ae=>{const{prefixCls:me,selectPrefixCls:Re,className:Oe,rootClassName:ke,style:rn,size:Vn,locale:sn,selectComponentClass:An,responsive:Bn,showSizeChanger:ii}=ae,_n=pt(ae,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:ji}=(0,ve.Z)(Bn),{getPrefixCls:cr,direction:Ji,pagination:mr={}}=ce.useContext(We.E_),Mr=cr("pagination",me),[ao,Yr]=ft(Mr),Zr=ii!=null?ii:mr.showSizeChanger,kr=ce.useMemo(()=>{const $t=ce.createElement("span",{className:`${Mr}-item-ellipsis`},"\u2022\u2022\u2022"),ri=ce.createElement("button",{className:`${Mr}-item-link`,type:"button",tabIndex:-1},Ji==="rtl"?ce.createElement(re.Z,null):ce.createElement(Pt.Z,null)),ws=ce.createElement("button",{className:`${Mr}-item-link`,type:"button",tabIndex:-1},Ji==="rtl"?ce.createElement(Pt.Z,null):ce.createElement(re.Z,null)),Is=ce.createElement("a",{className:`${Mr}-item-link`},ce.createElement("div",{className:`${Mr}-item-container`},Ji==="rtl"?ce.createElement(qt.Z,{className:`${Mr}-item-link-icon`}):ce.createElement(jt,{className:`${Mr}-item-link-icon`}),$t)),ma=ce.createElement("a",{className:`${Mr}-item-link`},ce.createElement("div",{className:`${Mr}-item-container`},Ji==="rtl"?ce.createElement(jt,{className:`${Mr}-item-link-icon`}):ce.createElement(qt.Z,{className:`${Mr}-item-link-icon`}),$t));return{prevIcon:ri,nextIcon:ws,jumpPrevIcon:Is,jumpNextIcon:ma}},[Ji,Mr]),[Gr]=(0,ne.Z)("Pagination",Me.Z),lo=Object.assign(Object.assign({},Gr),sn),_o=(0,_e.Z)(Vn),ns=_o==="small"||!!(ji&&!_o&&Bn),co=cr("select",Re),ys=Yt()({[`${Mr}-mini`]:ns,[`${Mr}-rtl`]:Ji==="rtl"},mr==null?void 0:mr.className,Oe,ke,Yr),jo=Object.assign(Object.assign({},mr==null?void 0:mr.style),rn);return ao(ce.createElement(He,Object.assign({},kr,_n,{style:jo,prefixCls:Mr,selectPrefixCls:co,className:ys,selectComponentClass:An||(ns?Pn:Mn),locale:lo,showSizeChanger:Zr})))},we=le},13570:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return ne}});var Mt=bt(96663),ce=bt(59301),ie={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"},Ie=ie,ee=bt(7657),Zt=function(Pn,Mn){return ce.createElement(ee.Z,(0,Mt.Z)({},Pn,{ref:Mn,icon:Ie}))},Nt=ce.forwardRef(Zt),jt=Nt,qt=bt(92310),Pt=bt.n(qt),re=bt(90493),Kt=bt(72071),Yt=bt(6620),Ct=bt(18929),et=bt(10228),tt=bt(26112);function lt(Se,Pn){var Mn=Se.disabled,Xe=Se.prefixCls,Nn=Se.character,Zn=Se.characterRender,fi=Se.index,zn=Se.count,Si=Se.value,nn=Se.allowHalf,Fi=Se.focused,Ti=Se.onHover,Lt=Se.onClick,Ot=function(me){Ti(me,fi)},mt=function(me){Lt(me,fi)},ft=function(me){me.keyCode===et.Z.ENTER&&Lt(me,fi)},pt=fi+1,At=new Set([Xe]);Si===0&&fi===0&&Fi?At.add("".concat(Xe,"-focused")):nn&&Si+.5>=pt&&Si<pt?(At.add("".concat(Xe,"-half")),At.add("".concat(Xe,"-active")),Fi&&At.add("".concat(Xe,"-focused"))):(pt<=Si?At.add("".concat(Xe,"-full")):At.add("".concat(Xe,"-zero")),pt===Si&&Fi&&At.add("".concat(Xe,"-focused")));var le=typeof Nn=="function"?Nn(Se):Nn,we=ce.createElement("li",{className:Pt()(Array.from(At)),ref:Pn},ce.createElement("div",{onClick:Mn?null:mt,onKeyDown:Mn?null:ft,onMouseMove:Mn?null:Ot,role:"radio","aria-checked":Si>fi?"true":"false","aria-posinset":fi+1,"aria-setsize":zn,tabIndex:Mn?-1:0},ce.createElement("div",{className:"".concat(Xe,"-first")},le),ce.createElement("div",{className:"".concat(Xe,"-second")},le)));return Zn&&(we=Zn(we,Se)),we}var rt=ce.forwardRef(lt);function ht(){var Se=ce.useRef({});function Pn(Xe){return Se.current[Xe]}function Mn(Xe){return function(Nn){Se.current[Xe]=Nn}}return[Pn,Mn]}function dt(Se){var Pn=Se.pageXOffset,Mn="scrollLeft";if(typeof Pn!="number"){var Xe=Se.document;Pn=Xe.documentElement[Mn],typeof Pn!="number"&&(Pn=Xe.body[Mn])}return Pn}function St(Se){var Pn,Mn,Xe=Se.ownerDocument,Nn=Xe.body,Zn=Xe&&Xe.documentElement,fi=Se.getBoundingClientRect();return Pn=fi.left,Mn=fi.top,Pn-=Zn.clientLeft||Nn.clientLeft||0,Mn-=Zn.clientTop||Nn.clientTop||0,{left:Pn,top:Mn}}function It(Se){var Pn=St(Se),Mn=Se.ownerDocument,Xe=Mn.defaultView||Mn.parentWindow;return Pn.left+=dt(Xe),Pn.left}var _t=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Gt(Se,Pn){var Mn,Xe=Se.prefixCls,Nn=Xe===void 0?"rc-rate":Xe,Zn=Se.className,fi=Se.defaultValue,zn=Se.value,Si=Se.count,nn=Si===void 0?5:Si,Fi=Se.allowHalf,Ti=Fi===void 0?!1:Fi,Lt=Se.allowClear,Ot=Lt===void 0?!0:Lt,mt=Se.character,ft=mt===void 0?"\u2605":mt,pt=Se.characterRender,At=Se.disabled,le=Se.direction,we=le===void 0?"ltr":le,ae=Se.tabIndex,me=ae===void 0?0:ae,Re=Se.autoFocus,Oe=Se.onHoverChange,ke=Se.onChange,rn=Se.onFocus,Vn=Se.onBlur,sn=Se.onKeyDown,An=Se.onMouseLeave,Bn=(0,Yt.Z)(Se,_t),ii=ht(),_n=(0,Kt.Z)(ii,2),ji=_n[0],cr=_n[1],Ji=ce.useRef(null),mr=function(){if(!At){var Le;(Le=Ji.current)===null||Le===void 0||Le.focus()}};ce.useImperativeHandle(Pn,function(){return{focus:mr,blur:function(){if(!At){var Le;(Le=Ji.current)===null||Le===void 0||Le.blur()}}}});var Mr=(0,Ct.Z)(fi||0,{value:zn}),ao=(0,Kt.Z)(Mr,2),Yr=ao[0],Zr=ao[1],kr=(0,Ct.Z)(null),Gr=(0,Kt.Z)(kr,2),lo=Gr[0],_o=Gr[1],ns=function(Le,yn){var Qn=we==="rtl",wi=Le+1;if(Ti){var Oi=ji(Le),qe=It(Oi),oi=Oi.clientWidth;(Qn&&yn-qe>oi/2||!Qn&&yn-qe<oi/2)&&(wi-=.5)}return wi},co=function(Le){Zr(Le),ke==null||ke(Le)},ys=ce.useState(!1),jo=(0,Kt.Z)(ys,2),$t=jo[0],ri=jo[1],ws=function(){ri(!0),rn==null||rn()},Is=function(){ri(!1),Vn==null||Vn()},ma=ce.useState(null),va=(0,Kt.Z)(ma,2),qs=va[0],_r=va[1],Dr=function(Le,yn){var Qn=ns(yn,Le.pageX);Qn!==lo&&(_r(Qn),_o(null)),Oe==null||Oe(Qn)},kn=function(Le){At||(_r(null),_o(null),Oe==null||Oe(void 0)),Le&&(An==null||An(Le))},Tn=function(Le,yn){var Qn=ns(yn,Le.pageX),wi=!1;Ot&&(wi=Qn===Yr),kn(),co(wi?0:Qn),_o(wi?Qn:null)},De=function(Le){var yn=Le.keyCode,Qn=we==="rtl",wi=Yr;yn===et.Z.RIGHT&&wi<nn&&!Qn?(Ti?wi+=.5:wi+=1,co(wi),Le.preventDefault()):yn===et.Z.LEFT&&wi>0&&!Qn||yn===et.Z.RIGHT&&wi>0&&Qn?(Ti?wi-=.5:wi-=1,co(wi),Le.preventDefault()):yn===et.Z.LEFT&&wi<nn&&Qn&&(Ti?wi+=.5:wi+=1,co(wi),Le.preventDefault()),sn==null||sn(Le)};ce.useEffect(function(){Re&&!At&&mr()},[]);var ti=new Array(nn).fill(0).map(function(dn,Le){return ce.createElement(rt,{ref:cr(Le),index:Le,count:nn,disabled:At,prefixCls:"".concat(Nn,"-star"),allowHalf:Ti,value:qs===null?Yr:qs,onClick:Tn,onHover:Dr,key:dn||Le,character:ft,characterRender:pt,focused:$t})}),yi=Pt()(Nn,Zn,(Mn={},(0,re.Z)(Mn,"".concat(Nn,"-disabled"),At),(0,re.Z)(Mn,"".concat(Nn,"-rtl"),we==="rtl"),Mn));return ce.createElement("ul",(0,Mt.Z)({className:yi,onMouseLeave:kn,tabIndex:At?-1:me,onFocus:At?null:ws,onBlur:At?null:Is,onKeyDown:At?null:De,ref:Ji,role:"radiogroup"},(0,tt.Z)(Bn,{aria:!0,data:!0,attr:!0})),ti)}var oe=ce.forwardRef(Gt),ue=oe,de=bt(36355),be=bt(6848),Jt=bt(17313),Ke=bt(83116),Wt=bt(37613);const Ge=Se=>{const{componentCls:Pn}=Se;return{[`${Pn}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Se.marginXS},"> div":{transition:`all ${Se.motionDurationMid}, outline 0s`,"&:hover":{transform:Se.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${Se.lineWidth}px dashed ${Se.starColor}`,transform:Se.starHoverScale}},"&-first, &-second":{color:Se.starBg,transition:`all ${Se.motionDurationMid}`,userSelect:"none",[Se.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Pn}-star-first, &-half ${Pn}-star-second`]:{opacity:1},[`&-half ${Pn}-star-first, &-full ${Pn}-star-second`]:{color:"inherit"}}}},He=Se=>({[`&-rtl${Se.componentCls}`]:{direction:"rtl"}}),Me=Se=>{const{componentCls:Pn}=Se;return{[Pn]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Jt.Wf)(Se)),{display:"inline-block",margin:0,padding:0,color:Se.starColor,fontSize:Se.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${Pn} ${Pn}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Ge(Se)),{[`+ ${Pn}-text`]:{display:"inline-block",marginInlineStart:Se.marginXS,fontSize:Se.fontSize}}),He(Se))}};var We=(0,Ke.Z)("Rate",Se=>{const Pn=(0,Wt.TS)(Se,{});return[Me(Pn)]},Se=>({starColor:Se.yellow6,starSize:Se.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Se.colorFillContent})),_e=function(Se,Pn){var Mn={};for(var Xe in Se)Object.prototype.hasOwnProperty.call(Se,Xe)&&Pn.indexOf(Xe)<0&&(Mn[Xe]=Se[Xe]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nn=0,Xe=Object.getOwnPropertySymbols(Se);Nn<Xe.length;Nn++)Pn.indexOf(Xe[Nn])<0&&Object.prototype.propertyIsEnumerable.call(Se,Xe[Nn])&&(Mn[Xe[Nn]]=Se[Xe[Nn]]);return Mn},ne=ce.forwardRef((Se,Pn)=>{const{prefixCls:Mn,className:Xe,rootClassName:Nn,style:Zn,tooltips:fi,character:zn=ce.createElement(jt,null)}=Se,Si=_e(Se,["prefixCls","className","rootClassName","style","tooltips","character"]),nn=(At,le)=>{let{index:we}=le;return fi?ce.createElement(be.Z,{title:fi[we]},At):At},{getPrefixCls:Fi,direction:Ti,rate:Lt}=ce.useContext(de.E_),Ot=Fi("rate",Mn),[mt,ft]=We(Ot),pt=Object.assign(Object.assign({},Lt==null?void 0:Lt.style),Zn);return mt(ce.createElement(ue,Object.assign({ref:Pn,character:zn,characterRender:nn},Si,{className:Pt()(Xe,Nn,ft,Lt==null?void 0:Lt.className),style:pt,prefixCls:Ot,direction:Ti})))})},57809:function(hi,Cn,bt){"use strict";var Mt=bt(92310),ce=bt.n(Mt),ie=bt(77861),Ie=bt(2738),ee=bt(59301),Zt=bt(53487),Nt=bt(62892),jt=bt(19080),qt=bt(36355),Pt=bt(1684),re=bt(93891),Kt=bt(19716),Yt=bt(32441),Ct=bt(33234),et=bt(14154),tt=bt(58582),lt=bt(84443),rt=bt(66339),ht=function(Gt,oe){var ue={};for(var de in Gt)Object.prototype.hasOwnProperty.call(Gt,de)&&oe.indexOf(de)<0&&(ue[de]=Gt[de]);if(Gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,de=Object.getOwnPropertySymbols(Gt);be<de.length;be++)oe.indexOf(de[be])<0&&Object.prototype.propertyIsEnumerable.call(Gt,de[be])&&(ue[de[be]]=Gt[de[be]]);return ue};const dt="SECRET_COMBOBOX_MODE_DO_NOT_USE",St=(Gt,oe)=>{var ue,{prefixCls:de,bordered:be=!0,className:Jt,rootClassName:Ke,getPopupContainer:Wt,popupClassName:Ge,dropdownClassName:He,listHeight:Me=256,placement:We,listItemHeight:_e=24,size:ve,disabled:ne,notFoundContent:Se,status:Pn,builtinPlacements:Mn,dropdownMatchSelectWidth:Xe,popupMatchSelectWidth:Nn,direction:Zn,style:fi,allowClear:zn}=Gt,Si=ht(Gt,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:nn,getPrefixCls:Fi,renderEmpty:Ti,direction:Lt,virtual:Ot,popupMatchSelectWidth:mt,popupOverflow:ft,select:pt}=ee.useContext(qt.E_),At=Fi("select",de),le=Fi(),we=Zn!=null?Zn:Lt,{compactSize:ae,compactItemClassnames:me}=(0,Ct.ri)(At,we),[Re,Oe]=(0,et.Z)(At),ke=ee.useMemo(()=>{const{mode:jo}=Si;if(jo!=="combobox")return jo===dt?"combobox":jo},[Si.mode]),rn=ke==="multiple"||ke==="tags",Vn=(0,lt.Z)(Si.suffixIcon,Si.showArrow),sn=(ue=Nn!=null?Nn:Xe)!==null&&ue!==void 0?ue:mt,{status:An,hasFeedback:Bn,isFormItemInput:ii,feedbackIcon:_n}=ee.useContext(Yt.aM),ji=(0,jt.F)(An,Pn);let cr;Se!==void 0?cr=Se:ke==="combobox"?cr=null:cr=(Ti==null?void 0:Ti("Select"))||ee.createElement(re.Z,{componentName:"Select"});const{suffixIcon:Ji,itemIcon:mr,removeIcon:Mr,clearIcon:ao}=(0,rt.Z)(Object.assign(Object.assign({},Si),{multiple:rn,hasFeedback:Bn,feedbackIcon:_n,showSuffixIcon:Vn,prefixCls:At,showArrow:Si.showArrow,componentName:"Select"})),Yr=zn===!0?{clearIcon:ao}:zn,Zr=(0,Ie.Z)(Si,["suffixIcon","itemIcon"]),kr=ce()(Ge||He,{[`${At}-dropdown-${we}`]:we==="rtl"},Ke,Oe),Gr=(0,Kt.Z)(jo=>{var $t;return($t=ve!=null?ve:ae)!==null&&$t!==void 0?$t:jo}),lo=ee.useContext(Pt.Z),_o=ne!=null?ne:lo,ns=ce()({[`${At}-lg`]:Gr==="large",[`${At}-sm`]:Gr==="small",[`${At}-rtl`]:we==="rtl",[`${At}-borderless`]:!be,[`${At}-in-form-item`]:ii},(0,jt.Z)(At,ji,Bn),me,pt==null?void 0:pt.className,Jt,Ke,Oe),co=ee.useMemo(()=>We!==void 0?We:we==="rtl"?"bottomRight":"bottomLeft",[We,we]),ys=(0,tt.Z)(Mn,ft);return Re(ee.createElement(ie.ZP,Object.assign({ref:oe,virtual:Ot,showSearch:pt==null?void 0:pt.showSearch},Zr,{style:Object.assign(Object.assign({},pt==null?void 0:pt.style),fi),dropdownMatchSelectWidth:sn,builtinPlacements:ys,transitionName:(0,Nt.m)(le,"slide-up",Si.transitionName),listHeight:Me,listItemHeight:_e,mode:ke,prefixCls:At,placement:co,direction:we,suffixIcon:Ji,menuItemSelectedIcon:mr,removeIcon:Mr,allowClear:Yr,notFoundContent:cr,className:ns,getPopupContainer:Wt||nn,dropdownClassName:kr,disabled:_o})))},It=ee.forwardRef(St),_t=(0,Zt.Z)(It);It.SECRET_COMBOBOX_MODE_DO_NOT_USE=dt,It.Option=ie.Wx,It.OptGroup=ie.Xo,It._InternalPanelDoNotUseOrYouWillBeFired=_t,Cn.default=It},14154:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return It}});var Mt=bt(17313),ce=bt(74207),ie=bt(37613),Ie=bt(83116),ee=bt(13826),Zt=bt(92899);const Nt=_t=>{const{optionHeight:Gt,optionFontSize:oe,optionLineHeight:ue,optionPadding:de}=_t;return{position:"relative",display:"block",minHeight:Gt,padding:de,color:_t.colorText,fontWeight:"normal",fontSize:oe,lineHeight:ue,boxSizing:"border-box"}};var qt=_t=>{const{antCls:Gt,componentCls:oe}=_t,ue=`${oe}-item`,de=`&${Gt}-slide-up-enter${Gt}-slide-up-enter-active`,be=`&${Gt}-slide-up-appear${Gt}-slide-up-appear-active`,Jt=`&${Gt}-slide-up-leave${Gt}-slide-up-leave-active`,Ke=`${oe}-dropdown-placement-`;return[{[`${oe}-dropdown`]:Object.assign(Object.assign({},(0,Mt.Wf)(_t)),{position:"absolute",top:-9999,zIndex:_t.zIndexPopup,boxSizing:"border-box",padding:_t.paddingXXS,overflow:"hidden",fontSize:_t.fontSize,fontVariant:"initial",backgroundColor:_t.colorBgElevated,borderRadius:_t.borderRadiusLG,outline:"none",boxShadow:_t.boxShadowSecondary,[`
|
|
|
${de}${Ke}bottomLeft,
|
|
|
${be}${Ke}bottomLeft
|
|
|
`]:{animationName:ee.fJ},[`
|
|
|
${de}${Ke}topLeft,
|
|
|
${be}${Ke}topLeft,
|
|
|
${de}${Ke}topRight,
|
|
|
${be}${Ke}topRight
|
|
|
`]:{animationName:ee.Qt},[`${Jt}${Ke}bottomLeft`]:{animationName:ee.Uw},[`
|
|
|
${Jt}${Ke}topLeft,
|
|
|
${Jt}${Ke}topRight
|
|
|
`]:{animationName:ee.ly},"&-hidden":{display:"none"},[`${ue}`]:Object.assign(Object.assign({},Nt(_t)),{cursor:"pointer",transition:`background ${_t.motionDurationSlow} ease`,borderRadius:_t.borderRadiusSM,"&-group":{color:_t.colorTextDescription,fontSize:_t.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Mt.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${ue}-option-disabled)`]:{backgroundColor:_t.optionActiveBg},[`&-selected:not(${ue}-option-disabled)`]:{color:_t.optionSelectedColor,fontWeight:_t.optionSelectedFontWeight,backgroundColor:_t.optionSelectedBg,[`${ue}-option-state`]:{color:_t.colorPrimary}},"&-disabled":{[`&${ue}-option-selected`]:{backgroundColor:_t.colorBgContainerDisabled},color:_t.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:_t.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,ee.oN)(_t,"slide-up"),(0,ee.oN)(_t,"slide-down"),(0,Zt.Fm)(_t,"move-up"),(0,Zt.Fm)(_t,"move-down")]};const Pt=2,re=_t=>{let{controlHeightSM:Gt,controlHeight:oe,lineWidth:ue}=_t;const de=(oe-Gt)/2-ue,be=Math.ceil(de/2);return[de,be]};function Kt(_t,Gt){const{componentCls:oe,iconCls:ue}=_t,de=`${oe}-selection-overflow`,be=_t.multipleSelectItemHeight,[Jt]=re(_t),Ke=Gt?`${oe}-${Gt}`:"";return{[`${oe}-multiple${Ke}`]:{fontSize:_t.fontSize,[de]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${oe}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${Jt-Pt}px ${Pt*2}px`,borderRadius:_t.borderRadius,[`${oe}-show-search&`]:{cursor:"text"},[`${oe}-disabled&`]:{background:_t.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Pt}px 0`,lineHeight:`${be}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${oe}-show-arrow ${oe}-selector,
|
|
|
&${oe}-allow-clear ${oe}-selector
|
|
|
`]:{paddingInlineEnd:_t.fontSizeIcon+_t.controlPaddingHorizontal},[`${oe}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:be,marginTop:Pt,marginBottom:Pt,lineHeight:`${be-_t.lineWidth*2}px`,background:_t.multipleItemBg,border:`${_t.lineWidth}px ${_t.lineType} ${_t.multipleItemBorderColor}`,borderRadius:_t.borderRadiusSM,cursor:"default",transition:`font-size ${_t.motionDurationSlow}, line-height ${_t.motionDurationSlow}, height ${_t.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Pt*2,paddingInlineStart:_t.paddingXS,paddingInlineEnd:_t.paddingXS/2,[`${oe}-disabled&`]:{color:_t.multipleItemColorDisabled,borderColor:_t.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:_t.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,Mt.Ro)()),{display:"inline-flex",alignItems:"center",color:_t.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${ue}`]:{verticalAlign:"-0.2em"},"&:hover":{color:_t.colorIconHover}})},[`${de}-item + ${de}-item`]:{[`${oe}-selection-search`]:{marginInlineStart:0}},[`${oe}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:_t.inputPaddingHorizontalBase-Jt,"\n &-input,\n &-mirror\n ":{height:be,fontFamily:_t.fontFamily,lineHeight:`${be}px`,transition:`all ${_t.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${oe}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:_t.inputPaddingHorizontalBase,insetInlineEnd:_t.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${_t.motionDurationSlow}`}}}}var Ct=_t=>{const{componentCls:Gt}=_t,oe=(0,ie.TS)(_t,{controlHeight:_t.controlHeightSM,multipleSelectItemHeight:_t.controlHeightXS,borderRadius:_t.borderRadiusSM,borderRadiusSM:_t.borderRadiusXS}),ue=(0,ie.TS)(_t,{fontSize:_t.fontSizeLG,controlHeight:_t.controlHeightLG,multipleSelectItemHeight:_t.multipleItemHeightLG,borderRadius:_t.borderRadiusLG,borderRadiusSM:_t.borderRadius}),[,de]=re(_t);return[Kt(_t),Kt(oe,"sm"),{[`${Gt}-multiple${Gt}-sm`]:{[`${Gt}-selection-placeholder`]:{insetInline:_t.controlPaddingHorizontalSM-_t.lineWidth},[`${Gt}-selection-search`]:{marginInlineStart:de}}},Kt(ue,"lg")]};function et(_t,Gt){const{componentCls:oe,inputPaddingHorizontalBase:ue,borderRadius:de}=_t,be=_t.controlHeight-_t.lineWidth*2,Jt=Math.ceil(_t.fontSize*1.25),Ke=Gt?`${oe}-${Gt}`:"";return{[`${oe}-single${Ke}`]:{fontSize:_t.fontSize,[`${oe}-selector`]:Object.assign(Object.assign({},(0,Mt.Wf)(_t)),{display:"flex",borderRadius:de,[`${oe}-selection-search`]:{position:"absolute",top:0,insetInlineStart:ue,insetInlineEnd:ue,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${oe}-selection-item,
|
|
|
${oe}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${be}px`,transition:`all ${_t.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${be}px`}},[`${oe}-selection-item`]:{position:"relative",userSelect:"none"},[`${oe}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${oe}-selection-item:after`,`${oe}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${oe}-show-arrow ${oe}-selection-item,
|
|
|
&${oe}-show-arrow ${oe}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Jt},[`&${oe}-open ${oe}-selection-item`]:{color:_t.colorTextPlaceholder},[`&:not(${oe}-customize-input)`]:{[`${oe}-selector`]:{width:"100%",height:_t.controlHeight,padding:`0 ${ue}px`,[`${oe}-selection-search-input`]:{height:be},"&:after":{lineHeight:`${be}px`}}},[`&${oe}-customize-input`]:{[`${oe}-selector`]:{"&:after":{display:"none"},[`${oe}-selection-search`]:{position:"static",width:"100%"},[`${oe}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${ue}px`,"&:after":{display:"none"}}}}}}}function tt(_t){const{componentCls:Gt}=_t,oe=_t.controlPaddingHorizontalSM-_t.lineWidth;return[et(_t),et((0,ie.TS)(_t,{controlHeight:_t.controlHeightSM,borderRadius:_t.borderRadiusSM}),"sm"),{[`${Gt}-single${Gt}-sm`]:{[`&:not(${Gt}-customize-input)`]:{[`${Gt}-selection-search`]:{insetInlineStart:oe,insetInlineEnd:oe},[`${Gt}-selector`]:{padding:`0 ${oe}px`},[`&${Gt}-show-arrow ${Gt}-selection-search`]:{insetInlineEnd:oe+_t.fontSize*1.5},[`
|
|
|
&${Gt}-show-arrow ${Gt}-selection-item,
|
|
|
&${Gt}-show-arrow ${Gt}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:_t.fontSize*1.5}}}},et((0,ie.TS)(_t,{controlHeight:_t.singleItemHeightLG,fontSize:_t.fontSizeLG,borderRadius:_t.borderRadiusLG}),"lg")]}const lt=_t=>{const{componentCls:Gt,selectorBg:oe}=_t;return{position:"relative",backgroundColor:oe,border:`${_t.lineWidth}px ${_t.lineType} ${_t.colorBorder}`,transition:`all ${_t.motionDurationMid} ${_t.motionEaseInOut}`,input:{cursor:"pointer"},[`${Gt}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Gt}-disabled&`]:{color:_t.colorTextDisabled,background:_t.colorBgContainerDisabled,cursor:"not-allowed",[`${Gt}-multiple&`]:{background:_t.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},rt=function(_t,Gt){let oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:ue,borderHoverColor:de,outlineColor:be,antCls:Jt}=Gt,Ke=oe?{[`${ue}-selector`]:{borderColor:de}}:{};return{[_t]:{[`&:not(${ue}-disabled):not(${ue}-customize-input):not(${Jt}-pagination-size-changer)`]:Object.assign(Object.assign({},Ke),{[`${ue}-focused& ${ue}-selector`]:{borderColor:de,boxShadow:`0 0 0 ${Gt.controlOutlineWidth}px ${be}`,outline:0},[`&:hover ${ue}-selector`]:{borderColor:de}})}}},ht=_t=>{const{componentCls:Gt}=_t;return{[`${Gt}-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=_t=>{const{componentCls:Gt,inputPaddingHorizontalBase:oe,iconCls:ue}=_t;return{[Gt]:Object.assign(Object.assign({},(0,Mt.Wf)(_t)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Gt}-customize-input) ${Gt}-selector`]:Object.assign(Object.assign({},lt(_t)),ht(_t)),[`${Gt}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},Mt.vS),[`${Gt}-selection-placeholder`]:Object.assign(Object.assign({},Mt.vS),{flex:1,color:_t.colorTextPlaceholder,pointerEvents:"none"}),[`${Gt}-arrow`]:Object.assign(Object.assign({},(0,Mt.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:oe,height:_t.fontSizeIcon,marginTop:-_t.fontSizeIcon/2,color:_t.colorTextQuaternary,fontSize:_t.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[ue]:{verticalAlign:"top",transition:`transform ${_t.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Gt}-suffix)`]:{pointerEvents:"auto"}},[`${Gt}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Gt}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:oe,zIndex:1,display:"inline-block",width:_t.fontSizeIcon,height:_t.fontSizeIcon,marginTop:-_t.fontSizeIcon/2,color:_t.colorTextQuaternary,fontSize:_t.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:_t.clearBg,cursor:"pointer",opacity:0,transition:`color ${_t.motionDurationMid} ease, opacity ${_t.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:_t.colorTextTertiary}},"&:hover":{[`${Gt}-clear`]:{opacity:1}}}),[`${Gt}-has-feedback`]:{[`${Gt}-clear`]:{insetInlineEnd:oe+_t.fontSize+_t.paddingXS}}}},St=_t=>{const{componentCls:Gt}=_t;return[{[Gt]:{[`&-borderless ${Gt}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Gt}-in-form-item`]:{width:"100%"}}},dt(_t),tt(_t),Ct(_t),qt(_t),{[`${Gt}-rtl`]:{direction:"rtl"}},rt(Gt,(0,ie.TS)(_t,{borderHoverColor:_t.colorPrimaryHover,outlineColor:_t.controlOutline})),rt(`${Gt}-status-error`,(0,ie.TS)(_t,{borderHoverColor:_t.colorErrorHover,outlineColor:_t.colorErrorOutline}),!0),rt(`${Gt}-status-warning`,(0,ie.TS)(_t,{borderHoverColor:_t.colorWarningHover,outlineColor:_t.colorWarningOutline}),!0),(0,ce.c)(_t,{borderElCls:`${Gt}-selector`,focusElCls:`${Gt}-focused`})]};var It=(0,Ie.Z)("Select",(_t,Gt)=>{let{rootPrefixCls:oe}=Gt;const ue=(0,ie.TS)(_t,{rootPrefixCls:oe,inputPaddingHorizontalBase:_t.paddingSM-1,multipleSelectItemHeight:_t.multipleItemHeight});return[St(ue)]},_t=>{const{fontSize:Gt,lineHeight:oe,controlHeight:ue,controlPaddingHorizontal:de,zIndexPopupBase:be,colorText:Jt,fontWeightStrong:Ke,controlItemBgActive:Wt,controlItemBgHover:Ge,colorBgContainer:He,colorFillSecondary:Me,controlHeightLG:We,controlHeightSM:_e,colorBgContainerDisabled:ve,colorTextDisabled:ne}=_t;return{zIndexPopup:be+50,optionSelectedColor:Jt,optionSelectedFontWeight:Ke,optionSelectedBg:Wt,optionActiveBg:Ge,optionPadding:`${(ue-Gt*oe)/2}px ${de}px`,optionFontSize:Gt,optionLineHeight:oe,optionHeight:ue,selectorBg:He,clearBg:He,singleItemHeightLG:We,multipleItemBg:Me,multipleItemBorderColor:"transparent",multipleItemHeight:_e,multipleItemHeightLG:ue,multipleSelectorBgDisabled:ve,multipleItemColorDisabled:ne,multipleItemBorderColorDisabled:"transparent"}})},58582:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return ce}});const Mt=ie=>{const ee={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:ie==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},ee),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},ee),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},ee),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},ee),{points:["br","tr"],offset:[0,-4]})}};function ce(ie,Ie){return ie||Mt(Ie)}},84443:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return Mt}});function Mt(ce,ie){return ie!==void 0?ie:ce!==null}},66339:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return jt}});var Mt=bt(40001),ce=bt(19248),ie=bt(99267),Ie=bt(84105),ee=bt(58617),Zt=bt(47472),Nt=bt(59301);function jt(qt){let{suffixIcon:Pt,clearIcon:re,menuItemSelectedIcon:Kt,removeIcon:Yt,loading:Ct,multiple:et,hasFeedback:tt,prefixCls:lt,showSuffixIcon:rt,feedbackIcon:ht,showArrow:dt,componentName:St}=qt;const It=re!=null?re:Nt.createElement(ce.Z,null),_t=de=>Pt===null&&!tt&&!dt?null:Nt.createElement(Nt.Fragment,null,rt!==!1&&de,tt&&ht);let Gt=null;if(Pt!==void 0)Gt=_t(Pt);else if(Ct)Gt=_t(Nt.createElement(ee.Z,{spin:!0}));else{const de=`${lt}-suffix`;Gt=be=>{let{open:Jt,showSearch:Ke}=be;return _t(Jt&&Ke?Nt.createElement(Zt.Z,{className:de}):Nt.createElement(Ie.Z,{className:de}))}}let oe=null;Kt!==void 0?oe=Kt:et?oe=Nt.createElement(Mt.Z,null):oe=null;let ue=null;return Yt!==void 0?ue=Yt:ue=Nt.createElement(ie.Z,null),{clearIcon:It,suffixIcon:Gt,itemIcon:oe,removeIcon:ue}}},61621:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return ft}});var Mt=bt(92310),ce=bt.n(Mt),ie=bt(59301),Ie=bt(36355),ee=bt(2738),Nt=pt=>{const{prefixCls:At,className:le,style:we,size:ae,shape:me}=pt,Re=ce()({[`${At}-lg`]:ae==="large",[`${At}-sm`]:ae==="small"}),Oe=ce()({[`${At}-circle`]:me==="circle",[`${At}-square`]:me==="square",[`${At}-round`]:me==="round"}),ke=ie.useMemo(()=>typeof ae=="number"?{width:ae,height:ae,lineHeight:`${ae}px`}:{},[ae]);return ie.createElement("span",{className:ce()(At,Re,Oe,le),style:Object.assign(Object.assign({},ke),we)})},jt=bt(93083),qt=bt(83116),Pt=bt(37613);const re=new jt.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Kt=pt=>({height:pt,lineHeight:`${pt}px`}),Yt=pt=>Object.assign({width:pt},Kt(pt)),Ct=pt=>({background:pt.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:re,animationDuration:pt.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),et=pt=>Object.assign({width:pt*5,minWidth:pt*5},Kt(pt)),tt=pt=>{const{skeletonAvatarCls:At,gradientFromColor:le,controlHeight:we,controlHeightLG:ae,controlHeightSM:me}=pt;return{[`${At}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:le},Yt(we)),[`${At}${At}-circle`]:{borderRadius:"50%"},[`${At}${At}-lg`]:Object.assign({},Yt(ae)),[`${At}${At}-sm`]:Object.assign({},Yt(me))}},lt=pt=>{const{controlHeight:At,borderRadiusSM:le,skeletonInputCls:we,controlHeightLG:ae,controlHeightSM:me,gradientFromColor:Re}=pt;return{[`${we}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Re,borderRadius:le},et(At)),[`${we}-lg`]:Object.assign({},et(ae)),[`${we}-sm`]:Object.assign({},et(me))}},rt=pt=>Object.assign({width:pt},Kt(pt)),ht=pt=>{const{skeletonImageCls:At,imageSizeBase:le,gradientFromColor:we,borderRadiusSM:ae}=pt;return{[`${At}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:we,borderRadius:ae},rt(le*2)),{[`${At}-path`]:{fill:"#bfbfbf"},[`${At}-svg`]:Object.assign(Object.assign({},rt(le)),{maxWidth:le*4,maxHeight:le*4}),[`${At}-svg${At}-svg-circle`]:{borderRadius:"50%"}}),[`${At}${At}-circle`]:{borderRadius:"50%"}}},dt=(pt,At,le)=>{const{skeletonButtonCls:we}=pt;return{[`${le}${we}-circle`]:{width:At,minWidth:At,borderRadius:"50%"},[`${le}${we}-round`]:{borderRadius:At}}},St=pt=>Object.assign({width:pt*2,minWidth:pt*2},Kt(pt)),It=pt=>{const{borderRadiusSM:At,skeletonButtonCls:le,controlHeight:we,controlHeightLG:ae,controlHeightSM:me,gradientFromColor:Re}=pt;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${le}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Re,borderRadius:At,width:we*2,minWidth:we*2},St(we))},dt(pt,we,le)),{[`${le}-lg`]:Object.assign({},St(ae))}),dt(pt,ae,`${le}-lg`)),{[`${le}-sm`]:Object.assign({},St(me))}),dt(pt,me,`${le}-sm`))},_t=pt=>{const{componentCls:At,skeletonAvatarCls:le,skeletonTitleCls:we,skeletonParagraphCls:ae,skeletonButtonCls:me,skeletonInputCls:Re,skeletonImageCls:Oe,controlHeight:ke,controlHeightLG:rn,controlHeightSM:Vn,gradientFromColor:sn,padding:An,marginSM:Bn,borderRadius:ii,titleHeight:_n,blockRadius:ji,paragraphLiHeight:cr,controlHeightXS:Ji,paragraphMarginTop:mr}=pt;return{[`${At}`]:{display:"table",width:"100%",[`${At}-header`]:{display:"table-cell",paddingInlineEnd:An,verticalAlign:"top",[`${le}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:sn},Yt(ke)),[`${le}-circle`]:{borderRadius:"50%"},[`${le}-lg`]:Object.assign({},Yt(rn)),[`${le}-sm`]:Object.assign({},Yt(Vn))},[`${At}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${we}`]:{width:"100%",height:_n,background:sn,borderRadius:ji,[`+ ${ae}`]:{marginBlockStart:Vn}},[`${ae}`]:{padding:0,"> li":{width:"100%",height:cr,listStyle:"none",background:sn,borderRadius:ji,"+ li":{marginBlockStart:Ji}}},[`${ae}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${At}-content`]:{[`${we}, ${ae} > li`]:{borderRadius:ii}}},[`${At}-with-avatar ${At}-content`]:{[`${we}`]:{marginBlockStart:Bn,[`+ ${ae}`]:{marginBlockStart:mr}}},[`${At}${At}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},It(pt)),tt(pt)),lt(pt)),ht(pt)),[`${At}${At}-block`]:{width:"100%",[`${me}`]:{width:"100%"},[`${Re}`]:{width:"100%"}},[`${At}${At}-active`]:{[`
|
|
|
${we},
|
|
|
${ae} > li,
|
|
|
${le},
|
|
|
${me},
|
|
|
${Re},
|
|
|
${Oe}
|
|
|
`]:Object.assign({},Ct(pt))}}};var Gt=(0,qt.Z)("Skeleton",pt=>{const{componentCls:At}=pt,le=(0,Pt.TS)(pt,{skeletonAvatarCls:`${At}-avatar`,skeletonTitleCls:`${At}-title`,skeletonParagraphCls:`${At}-paragraph`,skeletonButtonCls:`${At}-button`,skeletonInputCls:`${At}-input`,skeletonImageCls:`${At}-image`,imageSizeBase:pt.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${pt.gradientFromColor} 25%, ${pt.gradientToColor} 37%, ${pt.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[_t(le)]},pt=>{const{colorFillContent:At,colorFill:le}=pt,we=At,ae=le;return{color:we,colorGradientEnd:ae,gradientFromColor:we,gradientToColor:ae,titleHeight:pt.controlHeight/2,blockRadius:pt.borderRadiusSM,paragraphMarginTop:pt.marginLG+pt.marginXXS,paragraphLiHeight:pt.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),ue=pt=>{const{prefixCls:At,className:le,rootClassName:we,active:ae,shape:me="circle",size:Re="default"}=pt,{getPrefixCls:Oe}=ie.useContext(Ie.E_),ke=Oe("skeleton",At),[rn,Vn]=Gt(ke),sn=(0,ee.Z)(pt,["prefixCls","className"]),An=ce()(ke,`${ke}-element`,{[`${ke}-active`]:ae},le,we,Vn);return rn(ie.createElement("div",{className:An},ie.createElement(Nt,Object.assign({prefixCls:`${ke}-avatar`,shape:me,size:Re},sn))))},be=pt=>{const{prefixCls:At,className:le,rootClassName:we,active:ae,block:me=!1,size:Re="default"}=pt,{getPrefixCls:Oe}=ie.useContext(Ie.E_),ke=Oe("skeleton",At),[rn,Vn]=Gt(ke),sn=(0,ee.Z)(pt,["prefixCls"]),An=ce()(ke,`${ke}-element`,{[`${ke}-active`]:ae,[`${ke}-block`]:me},le,we,Vn);return rn(ie.createElement("div",{className:An},ie.createElement(Nt,Object.assign({prefixCls:`${ke}-button`,size:Re},sn))))};const Jt="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 Wt=pt=>{const{prefixCls:At,className:le,rootClassName:we,style:ae,active:me}=pt,{getPrefixCls:Re}=ie.useContext(Ie.E_),Oe=Re("skeleton",At),[ke,rn]=Gt(Oe),Vn=ce()(Oe,`${Oe}-element`,{[`${Oe}-active`]:me},le,we,rn);return ke(ie.createElement("div",{className:Vn},ie.createElement("div",{className:ce()(`${Oe}-image`,le),style:ae},ie.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Oe}-image-svg`},ie.createElement("path",{d:Jt,className:`${Oe}-image-path`})))))},He=pt=>{const{prefixCls:At,className:le,rootClassName:we,active:ae,block:me,size:Re="default"}=pt,{getPrefixCls:Oe}=ie.useContext(Ie.E_),ke=Oe("skeleton",At),[rn,Vn]=Gt(ke),sn=(0,ee.Z)(pt,["prefixCls"]),An=ce()(ke,`${ke}-element`,{[`${ke}-active`]:ae,[`${ke}-block`]:me},le,we,Vn);return rn(ie.createElement("div",{className:An},ie.createElement(Nt,Object.assign({prefixCls:`${ke}-input`,size:Re},sn))))},Me=bt(96663),We={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"},_e=We,ve=bt(7657),ne=function(At,le){return ie.createElement(ve.Z,(0,Me.Z)({},At,{ref:le,icon:_e}))},Se=ie.forwardRef(ne),Pn=Se,Xe=pt=>{const{prefixCls:At,className:le,rootClassName:we,style:ae,active:me,children:Re}=pt,{getPrefixCls:Oe}=ie.useContext(Ie.E_),ke=Oe("skeleton",At),[rn,Vn]=Gt(ke),sn=ce()(ke,`${ke}-element`,{[`${ke}-active`]:me},Vn,le,we),An=Re!=null?Re:ie.createElement(Pn,null);return rn(ie.createElement("div",{className:sn},ie.createElement("div",{className:ce()(`${ke}-image`,le),style:ae},An)))},Nn=bt(19127),fi=pt=>{const At=Oe=>{const{width:ke,rows:rn=2}=pt;if(Array.isArray(ke))return ke[Oe];if(rn-1===Oe)return ke},{prefixCls:le,className:we,style:ae,rows:me}=pt,Re=(0,Nn.Z)(Array(me)).map((Oe,ke)=>ie.createElement("li",{key:ke,style:{width:At(ke)}}));return ie.createElement("ul",{className:ce()(le,we),style:ae},Re)},Si=pt=>{let{prefixCls:At,className:le,width:we,style:ae}=pt;return ie.createElement("h3",{className:ce()(At,le),style:Object.assign({width:we},ae)})};function nn(pt){return pt&&typeof pt=="object"?pt:{}}function Fi(pt,At){return pt&&!At?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Ti(pt,At){return!pt&&At?{width:"38%"}:pt&&At?{width:"50%"}:{}}function Lt(pt,At){const le={};return(!pt||!At)&&(le.width="61%"),!pt&&At?le.rows=3:le.rows=2,le}const Ot=pt=>{const{prefixCls:At,loading:le,className:we,rootClassName:ae,style:me,children:Re,avatar:Oe=!1,title:ke=!0,paragraph:rn=!0,active:Vn,round:sn}=pt,{getPrefixCls:An,direction:Bn,skeleton:ii}=ie.useContext(Ie.E_),_n=An("skeleton",At),[ji,cr]=Gt(_n);if(le||!("loading"in pt)){const Ji=!!Oe,mr=!!ke,Mr=!!rn;let ao;if(Ji){const kr=Object.assign(Object.assign({prefixCls:`${_n}-avatar`},Fi(mr,Mr)),nn(Oe));ao=ie.createElement("div",{className:`${_n}-header`},ie.createElement(Nt,Object.assign({},kr)))}let Yr;if(mr||Mr){let kr;if(mr){const lo=Object.assign(Object.assign({prefixCls:`${_n}-title`},Ti(Ji,Mr)),nn(ke));kr=ie.createElement(Si,Object.assign({},lo))}let Gr;if(Mr){const lo=Object.assign(Object.assign({prefixCls:`${_n}-paragraph`},Lt(Ji,mr)),nn(rn));Gr=ie.createElement(fi,Object.assign({},lo))}Yr=ie.createElement("div",{className:`${_n}-content`},kr,Gr)}const Zr=ce()(_n,{[`${_n}-with-avatar`]:Ji,[`${_n}-active`]:Vn,[`${_n}-rtl`]:Bn==="rtl",[`${_n}-round`]:sn},ii==null?void 0:ii.className,we,ae,cr);return ji(ie.createElement("div",{className:Zr,style:Object.assign(Object.assign({},ii==null?void 0:ii.style),me)},ao,Yr))}return typeof Re!="undefined"?Re:null};Ot.Button=be,Ot.Avatar=ue,Ot.Input=He,Ot.Image=Wt,Ot.Node=Xe;var mt=Ot,ft=mt},81327:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return lt}});var Mt=bt(59301),ce=bt(92310),ie=bt.n(ce),Ie=bt(11592),ee=bt(36355),Zt=bt(33234);const Nt=Mt.createContext({latestIndex:0}),jt=Nt.Provider;var Pt=rt=>{let{className:ht,index:dt,children:St,split:It,style:_t}=rt;const{latestIndex:Gt}=Mt.useContext(Nt);return St==null?null:Mt.createElement(Mt.Fragment,null,Mt.createElement("div",{className:ht,style:_t},St),dt<Gt&&It&&Mt.createElement("span",{className:`${ht}-split`},It))},re=bt(2856);function Kt(rt){return["small","middle","large"].includes(rt)}function Yt(rt){return rt?typeof rt=="number"&&!Number.isNaN(rt):!1}var Ct=function(rt,ht){var dt={};for(var St in rt)Object.prototype.hasOwnProperty.call(rt,St)&&ht.indexOf(St)<0&&(dt[St]=rt[St]);if(rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,St=Object.getOwnPropertySymbols(rt);It<St.length;It++)ht.indexOf(St[It])<0&&Object.prototype.propertyIsEnumerable.call(rt,St[It])&&(dt[St[It]]=rt[St[It]]);return dt};const tt=Mt.forwardRef((rt,ht)=>{var dt,St;const{getPrefixCls:It,space:_t,direction:Gt}=Mt.useContext(ee.E_),{size:oe=(_t==null?void 0:_t.size)||"small",align:ue,className:de,rootClassName:be,children:Jt,direction:Ke="horizontal",prefixCls:Wt,split:Ge,style:He,wrap:Me=!1,classNames:We,styles:_e}=rt,ve=Ct(rt,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[ne,Se]=Array.isArray(oe)?oe:[oe,oe],Pn=Kt(Se),Mn=Kt(ne),Xe=Yt(Se),Nn=Yt(ne),Zn=(0,Ie.Z)(Jt,{keepEmpty:!0}),fi=ue===void 0&&Ke==="horizontal"?"center":ue,zn=It("space",Wt),[Si,nn]=(0,re.Z)(zn),Fi=ie()(zn,_t==null?void 0:_t.className,nn,`${zn}-${Ke}`,{[`${zn}-rtl`]:Gt==="rtl",[`${zn}-align-${fi}`]:fi,[`${zn}-gap-row-${Se}`]:Pn,[`${zn}-gap-col-${ne}`]:Mn},de,be),Ti=ie()(`${zn}-item`,(dt=We==null?void 0:We.item)!==null&&dt!==void 0?dt:(St=_t==null?void 0:_t.classNames)===null||St===void 0?void 0:St.item);let Lt=0;const Ot=Zn.map((pt,At)=>{var le,we;pt!=null&&(Lt=At);const ae=pt&&pt.key||`${Ti}-${At}`;return Mt.createElement(Pt,{className:Ti,key:ae,index:At,split:Ge,style:(le=_e==null?void 0:_e.item)!==null&&le!==void 0?le:(we=_t==null?void 0:_t.styles)===null||we===void 0?void 0:we.item},pt)}),mt=Mt.useMemo(()=>({latestIndex:Lt}),[Lt]);if(Zn.length===0)return null;const ft={};return Me&&(ft.flexWrap="wrap"),!Mn&&Nn&&(ft.columnGap=ne),!Pn&&Xe&&(ft.rowGap=Se),Si(Mt.createElement("div",Object.assign({ref:ht,className:Fi,style:Object.assign(Object.assign(Object.assign({},ft),_t==null?void 0:_t.style),He)},ve),Mt.createElement(jt,{value:mt},Ot)))});tt.Compact=Zt.ZP;var lt=tt},31797:function(hi,Cn,bt){"use strict";bt.d(Cn,{default:function(){return Gt}});var Mt=bt(59301),ce=bt(56762),ie=bt(92343),Ie=bt(92310),ee=bt.n(Ie),Zt=bt(36355),Nt=bt(61621),qt=oe=>{const{value:ue,formatter:de,precision:be,decimalSeparator:Jt,groupSeparator:Ke="",prefixCls:Wt}=oe;let Ge;if(typeof de=="function")Ge=de(ue);else{const He=String(ue),Me=He.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Me||He==="-")Ge=He;else{const We=Me[1];let _e=Me[2]||"0",ve=Me[4]||"";_e=_e.replace(/\B(?=(\d{3})+(?!\d))/g,Ke),typeof be=="number"&&(ve=ve.padEnd(be,"0").slice(0,be>0?be:0)),ve&&(ve=`${Jt}${ve}`),Ge=[Mt.createElement("span",{key:"int",className:`${Wt}-content-value-int`},We,_e),ve&&Mt.createElement("span",{key:"decimal",className:`${Wt}-content-value-decimal`},ve)]}}return Mt.createElement("span",{className:`${Wt}-content-value`},Ge)},Pt=bt(17313),re=bt(83116),Kt=bt(37613);const Yt=oe=>{const{componentCls:ue,marginXXS:de,padding:be,colorTextDescription:Jt,titleFontSize:Ke,colorTextHeading:Wt,contentFontSize:Ge,fontFamily:He}=oe;return{[`${ue}`]:Object.assign(Object.assign({},(0,Pt.Wf)(oe)),{[`${ue}-title`]:{marginBottom:de,color:Jt,fontSize:Ke},[`${ue}-skeleton`]:{paddingTop:be},[`${ue}-content`]:{color:Wt,fontSize:Ge,fontFamily:He,[`${ue}-content-value`]:{display:"inline-block",direction:"ltr"},[`${ue}-content-prefix, ${ue}-content-suffix`]:{display:"inline-block"},[`${ue}-content-prefix`]:{marginInlineEnd:de},[`${ue}-content-suffix`]:{marginInlineStart:de}}})}};var Ct=(0,re.Z)("Statistic",oe=>{const ue=(0,Kt.TS)(oe,{});return[Yt(ue)]},oe=>{const{fontSizeHeading3:ue,fontSize:de}=oe;return{titleFontSize:de,contentFontSize:ue}}),tt=oe=>{const{prefixCls:ue,className:de,rootClassName:be,style:Jt,valueStyle:Ke,value:Wt=0,title:Ge,valueRender:He,prefix:Me,suffix:We,loading:_e=!1,onMouseEnter:ve,onMouseLeave:ne,decimalSeparator:Se=".",groupSeparator:Pn=","}=oe,{getPrefixCls:Mn,direction:Xe,statistic:Nn}=Mt.useContext(Zt.E_),Zn=Mn("statistic",ue),[fi,zn]=Ct(Zn),Si=Mt.createElement(qt,Object.assign({decimalSeparator:Se,groupSeparator:Pn,prefixCls:Zn},oe,{value:Wt})),nn=ee()(Zn,{[`${Zn}-rtl`]:Xe==="rtl"},Nn==null?void 0:Nn.className,de,be,zn);return fi(Mt.createElement("div",{className:nn,style:Object.assign(Object.assign({},Nn==null?void 0:Nn.style),Jt),onMouseEnter:ve,onMouseLeave:ne},Ge&&Mt.createElement("div",{className:`${Zn}-title`},Ge),Mt.createElement(Nt.Z,{paragraph:!1,loading:_e,className:`${Zn}-skeleton`},Mt.createElement("div",{style:Ke,className:`${Zn}-content`},Me&&Mt.createElement("span",{className:`${Zn}-content-prefix`},Me),He?He(Si):Si,We&&Mt.createElement("span",{className:`${Zn}-content-suffix`},We)))))};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(oe,ue){let de=oe;const be=/\[[^\]]*]/g,Jt=(ue.match(be)||[]).map(He=>He.slice(1,-1)),Ke=ue.replace(be,"[]"),Wt=lt.reduce((He,Me)=>{let[We,_e]=Me;if(He.includes(We)){const ve=Math.floor(de/_e);return de-=ve*_e,He.replace(new RegExp(`${We}+`,"g"),ne=>{const Se=ne.length;return ve.toString().padStart(Se,"0")})}return He},Ke);let Ge=0;return Wt.replace(be,()=>{const He=Jt[Ge];return Ge+=1,He})}function ht(oe,ue){const{format:de=""}=ue,be=new Date(oe).getTime(),Jt=Date.now(),Ke=Math.max(be-Jt,0);return rt(Ke,de)}const dt=1e3/30;function St(oe){return new Date(oe).getTime()}const It=oe=>{const{value:ue,format:de="HH:mm:ss",onChange:be,onFinish:Jt}=oe,Ke=(0,ce.Z)(),Wt=Mt.useRef(null),Ge=()=>{Jt==null||Jt(),Wt.current&&(clearInterval(Wt.current),Wt.current=null)},He=()=>{const _e=St(ue);_e>=Date.now()&&(Wt.current=setInterval(()=>{Ke(),be==null||be(_e-Date.now()),_e<Date.now()&&Ge()},dt))};Mt.useEffect(()=>(He(),()=>{Wt.current&&(clearInterval(Wt.current),Wt.current=null)}),[ue]);const Me=(_e,ve)=>ht(_e,Object.assign(Object.assign({},ve),{format:de})),We=_e=>(0,ie.Tm)(_e,{title:void 0});return Mt.createElement(tt,Object.assign({},oe,{valueRender:We,formatter:Me}))};var _t=Mt.memo(It);tt.Countdown=_t;var Gt=tt},15969:function(hi,Cn,bt){"use strict";bt.d(Cn,{N:function(){return Mt}});const Mt=ce=>({color:ce.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${ce.motionDurationSlow}`,"&:focus, &:hover":{color:ce.colorLinkHover},"&:active":{color:ce.colorLinkActive}})},78673:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return Ke}});var Mt=bt(58617),ce=bt(92310),ie=bt.n(ce),Ie=bt(96663),ee=bt(90493),Zt=bt(72071),Nt=bt(6620),jt=bt(59301),qt=bt(18929),Pt=bt(10228),re=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Kt=jt.forwardRef(function(Wt,Ge){var He,Me=Wt.prefixCls,We=Me===void 0?"rc-switch":Me,_e=Wt.className,ve=Wt.checked,ne=Wt.defaultChecked,Se=Wt.disabled,Pn=Wt.loadingIcon,Mn=Wt.checkedChildren,Xe=Wt.unCheckedChildren,Nn=Wt.onClick,Zn=Wt.onChange,fi=Wt.onKeyDown,zn=(0,Nt.Z)(Wt,re),Si=(0,qt.Z)(!1,{value:ve,defaultValue:ne}),nn=(0,Zt.Z)(Si,2),Fi=nn[0],Ti=nn[1];function Lt(pt,At){var le=Fi;return Se||(le=pt,Ti(le),Zn==null||Zn(le,At)),le}function Ot(pt){pt.which===Pt.Z.LEFT?Lt(!1,pt):pt.which===Pt.Z.RIGHT&&Lt(!0,pt),fi==null||fi(pt)}function mt(pt){var At=Lt(!Fi,pt);Nn==null||Nn(At,pt)}var ft=ie()(We,_e,(He={},(0,ee.Z)(He,"".concat(We,"-checked"),Fi),(0,ee.Z)(He,"".concat(We,"-disabled"),Se),He));return jt.createElement("button",(0,Ie.Z)({},zn,{type:"button",role:"switch","aria-checked":Fi,disabled:Se,className:ft,ref:Ge,onKeyDown:Ot,onClick:mt}),Pn,jt.createElement("span",{className:"".concat(We,"-inner")},jt.createElement("span",{className:"".concat(We,"-inner-checked")},Mn),jt.createElement("span",{className:"".concat(We,"-inner-unchecked")},Xe)))});Kt.displayName="Switch";var Yt=Kt,Ct=bt(14088),et=bt(36355),tt=bt(1684),lt=bt(19716),rt=bt(64993),ht=bt(17313),dt=bt(83116),St=bt(37613);const It=Wt=>{const{componentCls:Ge,trackHeightSM:He,trackPadding:Me,trackMinWidthSM:We,innerMinMarginSM:_e,innerMaxMarginSM:ve,handleSizeSM:ne}=Wt,Se=`${Ge}-inner`;return{[Ge]:{[`&${Ge}-small`]:{minWidth:We,height:He,lineHeight:`${He}px`,[`${Ge}-inner`]:{paddingInlineStart:ve,paddingInlineEnd:_e,[`${Se}-checked`]:{marginInlineStart:`calc(-100% + ${ne+Me*2}px - ${ve*2}px)`,marginInlineEnd:`calc(100% - ${ne+Me*2}px + ${ve*2}px)`},[`${Se}-unchecked`]:{marginTop:-He,marginInlineStart:0,marginInlineEnd:0}},[`${Ge}-handle`]:{width:ne,height:ne},[`${Ge}-loading-icon`]:{top:(ne-Wt.switchLoadingIconSize)/2,fontSize:Wt.switchLoadingIconSize},[`&${Ge}-checked`]:{[`${Ge}-inner`]:{paddingInlineStart:_e,paddingInlineEnd:ve,[`${Se}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Se}-unchecked`]:{marginInlineStart:`calc(100% - ${ne+Me*2}px + ${ve*2}px)`,marginInlineEnd:`calc(-100% + ${ne+Me*2}px - ${ve*2}px)`}},[`${Ge}-handle`]:{insetInlineStart:`calc(100% - ${ne+Me}px)`}},[`&:not(${Ge}-disabled):active`]:{[`&:not(${Ge}-checked) ${Se}`]:{[`${Se}-unchecked`]:{marginInlineStart:Wt.marginXXS/2,marginInlineEnd:-Wt.marginXXS/2}},[`&${Ge}-checked ${Se}`]:{[`${Se}-checked`]:{marginInlineStart:-Wt.marginXXS/2,marginInlineEnd:Wt.marginXXS/2}}}}}}},_t=Wt=>{const{componentCls:Ge,handleSize:He}=Wt;return{[Ge]:{[`${Ge}-loading-icon${Wt.iconCls}`]:{position:"relative",top:(He-Wt.fontSize)/2,color:Wt.switchLoadingIconColor,verticalAlign:"top"},[`&${Ge}-checked ${Ge}-loading-icon`]:{color:Wt.switchColor}}}},Gt=Wt=>{const{componentCls:Ge,motion:He,trackPadding:Me,handleBg:We,handleShadow:_e,handleSize:ve}=Wt,ne=`${Ge}-handle`;return{[Ge]:{[ne]:{position:"absolute",top:Me,insetInlineStart:Me,width:ve,height:ve,transition:`all ${Wt.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:We,borderRadius:ve/2,boxShadow:_e,transition:`all ${Wt.switchDuration} ease-in-out`,content:'""'}},[`&${Ge}-checked ${ne}`]:{insetInlineStart:`calc(100% - ${ve+Me}px)`},[`&:not(${Ge}-disabled):active`]:He?{[`${ne}::before`]:{insetInlineEnd:Wt.switchHandleActiveInset,insetInlineStart:0},[`&${Ge}-checked ${ne}::before`]:{insetInlineEnd:0,insetInlineStart:Wt.switchHandleActiveInset}}:{}}}},oe=Wt=>{const{componentCls:Ge,trackHeight:He,trackPadding:Me,innerMinMargin:We,innerMaxMargin:_e,handleSize:ve}=Wt,ne=`${Ge}-inner`;return{[Ge]:{[ne]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:_e,paddingInlineEnd:We,transition:`padding-inline-start ${Wt.switchDuration} ease-in-out, padding-inline-end ${Wt.switchDuration} ease-in-out`,[`${ne}-checked, ${ne}-unchecked`]:{display:"block",color:Wt.colorTextLightSolid,fontSize:Wt.fontSizeSM,transition:`margin-inline-start ${Wt.switchDuration} ease-in-out, margin-inline-end ${Wt.switchDuration} ease-in-out`,pointerEvents:"none"},[`${ne}-checked`]:{marginInlineStart:`calc(-100% + ${ve+Me*2}px - ${_e*2}px)`,marginInlineEnd:`calc(100% - ${ve+Me*2}px + ${_e*2}px)`},[`${ne}-unchecked`]:{marginTop:-He,marginInlineStart:0,marginInlineEnd:0}},[`&${Ge}-checked ${ne}`]:{paddingInlineStart:We,paddingInlineEnd:_e,[`${ne}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ne}-unchecked`]:{marginInlineStart:`calc(100% - ${ve+Me*2}px + ${_e*2}px)`,marginInlineEnd:`calc(-100% + ${ve+Me*2}px - ${_e*2}px)`}},[`&:not(${Ge}-disabled):active`]:{[`&:not(${Ge}-checked) ${ne}`]:{[`${ne}-unchecked`]:{marginInlineStart:Me*2,marginInlineEnd:-Me*2}},[`&${Ge}-checked ${ne}`]:{[`${ne}-checked`]:{marginInlineStart:-Me*2,marginInlineEnd:Me*2}}}}}},ue=Wt=>{const{componentCls:Ge,trackHeight:He,trackMinWidth:Me}=Wt;return{[Ge]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ht.Wf)(Wt)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Me,height:He,lineHeight:`${He}px`,verticalAlign:"middle",background:Wt.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Wt.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Ge}-disabled)`]:{background:Wt.colorTextTertiary}}),(0,ht.Qy)(Wt)),{[`&${Ge}-checked`]:{background:Wt.switchColor,[`&:hover:not(${Ge}-disabled)`]:{background:Wt.colorPrimaryHover}},[`&${Ge}-loading, &${Ge}-disabled`]:{cursor:"not-allowed",opacity:Wt.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Ge}-rtl`]:{direction:"rtl"}})}};var de=(0,dt.Z)("Switch",Wt=>{const Ge=(0,St.TS)(Wt,{switchDuration:Wt.motionDurationMid,switchColor:Wt.colorPrimary,switchDisabledOpacity:Wt.opacityLoading,switchLoadingIconSize:Wt.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${Wt.opacityLoading})`,switchHandleActiveInset:"-30%"});return[ue(Ge),oe(Ge),Gt(Ge),_t(Ge),It(Ge)]},Wt=>{const{fontSize:Ge,lineHeight:He,controlHeight:Me,colorWhite:We}=Wt,_e=Ge*He,ve=Me/2,ne=2,Se=_e-ne*2,Pn=ve-ne*2;return{trackHeight:_e,trackHeightSM:ve,trackMinWidth:Se*2+ne*4,trackMinWidthSM:Pn*2+ne*2,trackPadding:ne,handleBg:We,handleSize:Se,handleSizeSM:Pn,handleShadow:`0 2px 4px 0 ${new rt.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:Se/2,innerMaxMargin:Se+ne+ne*2,innerMinMarginSM:Pn/2,innerMaxMarginSM:Pn+ne+ne*2}}),be=function(Wt,Ge){var He={};for(var Me in Wt)Object.prototype.hasOwnProperty.call(Wt,Me)&&Ge.indexOf(Me)<0&&(He[Me]=Wt[Me]);if(Wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Me=Object.getOwnPropertySymbols(Wt);We<Me.length;We++)Ge.indexOf(Me[We])<0&&Object.prototype.propertyIsEnumerable.call(Wt,Me[We])&&(He[Me[We]]=Wt[Me[We]]);return He};const Jt=jt.forwardRef((Wt,Ge)=>{const{prefixCls:He,size:Me,disabled:We,loading:_e,className:ve,rootClassName:ne,style:Se}=Wt,Pn=be(Wt,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Mn,direction:Xe,switch:Nn}=jt.useContext(et.E_),Zn=jt.useContext(tt.Z),fi=(We!=null?We:Zn)||_e,zn=Mn("switch",He),Si=jt.createElement("div",{className:`${zn}-handle`},_e&&jt.createElement(Mt.Z,{className:`${zn}-loading-icon`})),[nn,Fi]=de(zn),Ti=(0,lt.Z)(Me),Lt=ie()(Nn==null?void 0:Nn.className,{[`${zn}-small`]:Ti==="small",[`${zn}-loading`]:_e,[`${zn}-rtl`]:Xe==="rtl"},ve,ne,Fi),Ot=Object.assign(Object.assign({},Nn==null?void 0:Nn.style),Se);return nn(jt.createElement(Ct.Z,{component:"Switch"},jt.createElement(Yt,Object.assign({},Pn,{prefixCls:zn,className:Lt,style:Ot,disabled:fi,ref:Ge,loadingIcon:Si}))))});Jt.__ANT_SWITCH=!0;var Ke=Jt},1710:function(hi,Cn,bt){"use strict";bt.d(Cn,{default:function(){return Wi}});var Mt={},ce="rc-table-internal-hook",ie=bt(72071),Ie=bt(6089),ee=bt(34280),Zt=bt(13697),Nt=bt(59301),jt=bt(4676);function qt(ge){var Ce=Nt.createContext(void 0),Ve=function(un){var hn=un.value,Dn=un.children,qn=Nt.useRef(hn);qn.current=hn;var Te=Nt.useState(function(){return{getValue:function(){return qn.current},listeners:new Set}}),ln=(0,ie.Z)(Te,1),mn=ln[0];return(0,ee.Z)(function(){(0,jt.unstable_batchedUpdates)(function(){mn.listeners.forEach(function(Fn){Fn(hn)})})},[hn]),Nt.createElement(Ce.Provider,{value:mn},Dn)};return{Context:Ce,Provider:Ve,defaultValue:ge}}function Pt(ge,Ce){var Ve=(0,Ie.Z)(typeof Ce=="function"?Ce:function(Fn){if(Ce===void 0)return Fn;if(!Array.isArray(Ce))return Fn[Ce];var Xn={};return Ce.forEach(function(li){Xn[li]=Fn[li]}),Xn}),en=Nt.useContext(ge==null?void 0:ge.Context),un=en||{},hn=un.listeners,Dn=un.getValue,qn=Nt.useRef();qn.current=Ve(en?Dn():ge==null?void 0:ge.defaultValue);var Te=Nt.useState({}),ln=(0,ie.Z)(Te,2),mn=ln[1];return(0,ee.Z)(function(){if(!en)return;function Fn(Xn){var li=Ve(Xn);(0,Zt.Z)(qn.current,li,!0)||mn({})}return hn.add(Fn),function(){hn.delete(Fn)}},[en]),qn.current}var re=bt(96663),Kt=bt(8654);function Yt(){var ge=Nt.createContext(null);function Ce(){return Nt.useContext(ge)}function Ve(un,hn){var Dn=(0,Kt.Yr)(un),qn=function(ln,mn){var Fn=Dn?{ref:mn}:{},Xn=Nt.useRef(0),li=Nt.useRef(ln),si=Ce();return si!==null?Nt.createElement(un,(0,re.Z)({},ln,Fn)):((!hn||hn(li.current,ln))&&(Xn.current+=1),li.current=ln,Nt.createElement(ge.Provider,{value:Xn.current},Nt.createElement(un,(0,re.Z)({},ln,Fn))))};return Dn?Nt.forwardRef(qn):qn}function en(un,hn){var Dn=(0,Kt.Yr)(un),qn=function(ln,mn){var Fn=Dn?{ref:mn}:{};return Ce(),Nt.createElement(un,(0,re.Z)({},ln,Fn))};return Dn?Nt.memo(Nt.forwardRef(qn),hn):Nt.memo(qn,hn)}return{makeImmutable:Ve,responseImmutable:en,useImmutableMark:Ce}}var Ct=Yt(),et=Ct.makeImmutable,tt=Ct.responseImmutable,lt=Ct.useImmutableMark,rt=Yt(),ht=rt.makeImmutable,dt=rt.responseImmutable,St=rt.useImmutableMark,It=qt(),_t=It;function Gt(ge,Ce){var Ve=Nt.useRef(0);Ve.current+=1;var en=Nt.useRef(ge),un=[];Object.keys(ge||{}).map(function(Dn){var qn;(ge==null?void 0:ge[Dn])!==((qn=en.current)===null||qn===void 0?void 0:qn[Dn])&&un.push(Dn)}),en.current=ge;var hn=Nt.useRef([]);return un.length&&(hn.current=un),Nt.useDebugValue(Ve.current),Nt.useDebugValue(hn.current.join(", ")),Ce&&console.log("".concat(Ce,":"),Ve.current,hn.current),Ve.current}var oe=null,ue=Nt.memo(function(){var ge=Gt();return Nt.createElement("h1",null,"Render Times: ",ge)});ue.displayName="RenderBlock";var de=bt(20135),be=bt(44127),Jt=bt(90493),Ke=bt(92310),Wt=bt.n(Ke),Ge=bt(80547),He=bt(97938),Me=bt(48736),We=Nt.createContext({renderWithProps:!1}),_e=We,ve="RC_TABLE_KEY";function ne(ge){return ge==null?[]:Array.isArray(ge)?ge:[ge]}function Se(ge){var Ce=[],Ve={};return ge.forEach(function(en){for(var un=en||{},hn=un.key,Dn=un.dataIndex,qn=hn||ne(Dn).join("-")||ve;Ve[qn];)qn="".concat(qn,"_next");Ve[qn]=!0,Ce.push(qn)}),Ce}function Pn(ge){return ge!=null}function Mn(ge){return ge&&(0,de.Z)(ge)==="object"&&!Array.isArray(ge)&&!Nt.isValidElement(ge)}function Xe(ge,Ce,Ve,en,un,hn){var Dn=Nt.useContext(_e),qn=St(),Te=(0,Ge.Z)(function(){if(Pn(en))return[en];var ln=Ce==null||Ce===""?[]:Array.isArray(Ce)?Ce:[Ce],mn=(0,He.Z)(ge,ln),Fn=mn,Xn=void 0;if(un){var li=un(mn,ge,Ve);Mn(li)?(Fn=li.children,Xn=li.props,Dn.renderWithProps=!0):Fn=li}return[Fn,Xn]},[qn,ge,en,Ce,un,Ve],function(ln,mn){if(hn){var Fn=(0,ie.Z)(ln,2),Xn=Fn[1],li=(0,ie.Z)(mn,2),si=li[1];return hn(si,Xn)}return Dn.renderWithProps?!0:!(0,Zt.Z)(ln,mn,!0)});return Te}function Nn(ge,Ce,Ve,en){var un=ge+Ce-1;return ge<=en&&un>=Ve}function Zn(ge,Ce){return Pt(_t,function(Ve){var en=Nn(ge,Ce||1,Ve.hoverStartRow,Ve.hoverEndRow);return[en,Ve.onHover]})}var fi=function(Ce){var Ve=Ce.ellipsis,en=Ce.rowType,un=Ce.children,hn,Dn=Ve===!0?{showTitle:!0}:Ve;return Dn&&(Dn.showTitle||en==="header")&&(typeof un=="string"||typeof un=="number"?hn=un.toString():Nt.isValidElement(un)&&typeof un.props.children=="string"&&(hn=un.props.children)),hn};function zn(ge){var Ce,Ve,en,un,hn,Dn,qn,Te,ln=ge.component,mn=ge.children,Fn=ge.ellipsis,Xn=ge.scope,li=ge.prefixCls,si=ge.className,Ei=ge.align,Ii=ge.record,Xi=ge.render,ir=ge.dataIndex,dr=ge.renderIndex,Xr=ge.shouldCellUpdate,$i=ge.index,Hn=ge.rowType,no=ge.colSpan,ro=ge.rowSpan,tr=ge.fixLeft,pr=ge.fixRight,Ar=ge.firstFixLeft,qi=ge.lastFixLeft,Nr=ge.firstFixRight,oo=ge.lastFixRight,po=ge.appendNode,So=ge.additionalProps,Qr=So===void 0?{}:So,Xo=ge.isSticky,Po="".concat(li,"-cell"),hs=Pt(_t,["supportSticky","allColumnsFixedLeft"]),so=hs.supportSticky,Pa=hs.allColumnsFixedLeft,ks=Xe(Ii,ir,dr,mn,Xi,Xr),Ps=(0,ie.Z)(ks,2),Eo=Ps[0],Fs=Ps[1],Va={},Ds=typeof tr=="number"&&so,Il=typeof pr=="number"&&so;Ds&&(Va.position="sticky",Va.left=tr),Il&&(Va.position="sticky",Va.right=pr);var wo=(Ce=(Ve=(en=Fs==null?void 0:Fs.colSpan)!==null&&en!==void 0?en:Qr.colSpan)!==null&&Ve!==void 0?Ve:no)!==null&&Ce!==void 0?Ce:1,ss=(un=(hn=(Dn=Fs==null?void 0:Fs.rowSpan)!==null&&Dn!==void 0?Dn:Qr.rowSpan)!==null&&hn!==void 0?hn:ro)!==null&&un!==void 0?un:1,cs=Zn($i,ss),Lo=(0,ie.Z)(cs,2),ts=Lo[0],xo=Lo[1],Ls=function(ho){var Oa;Ii&&xo($i,$i+ss-1),Qr==null||(Oa=Qr.onMouseEnter)===null||Oa===void 0||Oa.call(Qr,ho)},Rs=function(ho){var Oa;Ii&&xo(-1,-1),Qr==null||(Oa=Qr.onMouseLeave)===null||Oa===void 0||Oa.call(Qr,ho)};if(wo===0||ss===0)return null;var ea=(qn=Qr.title)!==null&&qn!==void 0?qn:fi({rowType:Hn,ellipsis:Fn,children:Eo}),Ql=Wt()(Po,si,(Te={},(0,Jt.Z)(Te,"".concat(Po,"-fix-left"),Ds&&so),(0,Jt.Z)(Te,"".concat(Po,"-fix-left-first"),Ar&&so),(0,Jt.Z)(Te,"".concat(Po,"-fix-left-last"),qi&&so),(0,Jt.Z)(Te,"".concat(Po,"-fix-left-all"),qi&&Pa&&so),(0,Jt.Z)(Te,"".concat(Po,"-fix-right"),Il&&so),(0,Jt.Z)(Te,"".concat(Po,"-fix-right-first"),Nr&&so),(0,Jt.Z)(Te,"".concat(Po,"-fix-right-last"),oo&&so),(0,Jt.Z)(Te,"".concat(Po,"-ellipsis"),Fn),(0,Jt.Z)(Te,"".concat(Po,"-with-append"),po),(0,Jt.Z)(Te,"".concat(Po,"-fix-sticky"),(Ds||Il)&&Xo&&so),(0,Jt.Z)(Te,"".concat(Po,"-row-hover"),!Fs&&ts),Te),Qr.className,Fs==null?void 0:Fs.className),ds={};Ei&&(ds.textAlign=Ei);var Xl=(0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)({},Va),Qr.style),ds),Fs==null?void 0:Fs.style),fa=Eo;return(0,de.Z)(fa)==="object"&&!Array.isArray(fa)&&!Nt.isValidElement(fa)&&(fa=null),Fn&&(qi||Nr)&&(fa=Nt.createElement("span",{className:"".concat(Po,"-content")},fa)),Nt.createElement(ln,(0,re.Z)({},Fs,Qr,{className:Ql,style:Xl,title:ea,scope:Xn,onMouseEnter:Ls,onMouseLeave:Rs,colSpan:wo!==1?wo:null,rowSpan:ss!==1?ss:null}),po,fa)}var Si=Nt.memo(zn);function nn(ge,Ce,Ve,en,un,hn){var Dn=Ve[ge]||{},qn=Ve[Ce]||{},Te,ln;Dn.fixed==="left"?Te=en.left[un==="rtl"?Ce:ge]:qn.fixed==="right"&&(ln=en.right[un==="rtl"?ge:Ce]);var mn=!1,Fn=!1,Xn=!1,li=!1,si=Ve[Ce+1],Ei=Ve[ge-1],Ii=!(hn!=null&&hn.children);if(un==="rtl"){if(Te!==void 0){var Xi=Ei&&Ei.fixed==="left";li=!Xi&&Ii}else if(ln!==void 0){var ir=si&&si.fixed==="right";Xn=!ir&&Ii}}else if(Te!==void 0){var dr=si&&si.fixed==="left";mn=!dr&&Ii}else if(ln!==void 0){var Xr=Ei&&Ei.fixed==="right";Fn=!Xr&&Ii}return{fixLeft:Te,fixRight:ln,lastFixLeft:mn,firstFixRight:Fn,lastFixRight:Xn,firstFixLeft:li,isSticky:en.isSticky}}var Fi=Nt.createContext({}),Ti=Fi;function Lt(ge){var Ce=ge.className,Ve=ge.index,en=ge.children,un=ge.colSpan,hn=un===void 0?1:un,Dn=ge.rowSpan,qn=ge.align,Te=Pt(_t,["prefixCls","direction"]),ln=Te.prefixCls,mn=Te.direction,Fn=Nt.useContext(Ti),Xn=Fn.scrollColumnIndex,li=Fn.stickyOffsets,si=Fn.flattenColumns,Ei=Fn.columns,Ii=Ve+hn-1,Xi=Ii+1===Xn?hn+1:hn,ir=nn(Ve,Ve+Xi-1,si,li,mn,Ei==null?void 0:Ei[Ve]);return Nt.createElement(Si,(0,re.Z)({className:Ce,index:Ve,component:"td",prefixCls:ln,record:null,dataIndex:null,align:qn,colSpan:Xi,rowSpan:Dn,render:function(){return en}},ir))}var Ot=bt(6620),mt=["children"];function ft(ge){var Ce=ge.children,Ve=(0,Ot.Z)(ge,mt);return Nt.createElement("tr",Ve,Ce)}function pt(ge){var Ce=ge.children;return Ce}pt.Row=ft,pt.Cell=Lt;var At=pt;function le(ge){var Ce=ge.children,Ve=ge.stickyOffsets,en=ge.flattenColumns,un=ge.columns,hn=Pt(_t,"prefixCls"),Dn=en.length-1,qn=en[Dn],Te=Nt.useMemo(function(){return{stickyOffsets:Ve,flattenColumns:en,scrollColumnIndex:qn!=null&&qn.scrollbar?Dn:null,columns:un}},[qn,en,Dn,Ve,un]);return Nt.createElement(Ti.Provider,{value:Te},Nt.createElement("tfoot",{className:"".concat(hn,"-summary")},Ce))}var we=dt(le),ae=At,me=bt(70425),Re=bt(29301),Oe=bt(29194),ke=bt(24514),rn=bt(75152),Vn=bt(26112);function sn(ge,Ce,Ve,en,un,hn,Dn){ge.push({record:Ce,indent:Ve,index:Dn});var qn=hn(Ce),Te=un==null?void 0:un.has(qn);if(Ce&&Array.isArray(Ce[en])&&Te)for(var ln=0;ln<Ce[en].length;ln+=1)sn(ge,Ce[en][ln],Ve+1,en,un,hn,ln)}function An(ge,Ce,Ve,en){var un=Nt.useMemo(function(){if(Ve!=null&&Ve.size){for(var hn=[],Dn=0;Dn<(ge==null?void 0:ge.length);Dn+=1){var qn=ge[Dn];sn(hn,qn,0,Ce,Ve,en,Dn)}return hn}return ge==null?void 0:ge.map(function(Te,ln){return{record:Te,indent:0,index:ln}})},[ge,Ce,Ve,en]);return un}function Bn(ge){var Ce=ge.prefixCls,Ve=ge.children,en=ge.component,un=ge.cellComponent,hn=ge.className,Dn=ge.expanded,qn=ge.colSpan,Te=ge.isEmpty,ln=Pt(_t,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),mn=ln.scrollbarSize,Fn=ln.fixHeader,Xn=ln.fixColumn,li=ln.componentWidth,si=ln.horizonScroll,Ei=Ve;return(Te?si&&li:Xn)&&(Ei=Nt.createElement("div",{style:{width:li-(Fn?mn:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Ce,"-expanded-row-fixed")},Ei)),Nt.createElement(en,{className:hn,style:{display:Dn?null:"none"}},Nt.createElement(Si,{component:un,prefixCls:Ce,colSpan:qn},Ei))}var ii=Bn;function _n(ge,Ce,Ve,en){var un=Pt(_t,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),hn=un.flattenColumns,Dn=un.expandableType,qn=un.expandedKeys,Te=un.childrenColumnName,ln=un.onTriggerExpand,mn=un.rowExpandable,Fn=un.onRow,Xn=un.expandRowByClick,li=un.rowClassName,si=Dn==="nest",Ei=Dn==="row"&&(!mn||mn(ge)),Ii=Ei||si,Xi=qn&&qn.has(Ce),ir=Te&&ge&&ge[Te],dr=(0,me.useEvent)(ln),Xr=Fn==null?void 0:Fn(ge,Ve),$i=Xr==null?void 0:Xr.onClick,Hn=function(pr){Xn&&Ii&&ln(ge,pr);for(var Ar=arguments.length,qi=new Array(Ar>1?Ar-1:0),Nr=1;Nr<Ar;Nr++)qi[Nr-1]=arguments[Nr];$i==null||$i.apply(void 0,[pr].concat(qi))},no;typeof li=="string"?no=li:typeof li=="function"&&(no=li(ge,Ve,en));var ro=Se(hn);return(0,be.Z)((0,be.Z)({},un),{},{columnsKey:ro,nestExpandable:si,expanded:Xi,hasNestChildren:ir,record:ge,onTriggerExpand:dr,rowSupportExpand:Ei,expandable:Ii,rowProps:(0,be.Z)((0,be.Z)({},Xr),{},{className:Wt()(no,Xr==null?void 0:Xr.className),onClick:Hn})})}function ji(ge,Ce,Ve,en,un){var hn=ge.record,Dn=ge.prefixCls,qn=ge.columnsKey,Te=ge.fixedInfoList,ln=ge.expandIconColumnIndex,mn=ge.nestExpandable,Fn=ge.indentSize,Xn=ge.expandIcon,li=ge.expanded,si=ge.hasNestChildren,Ei=ge.onTriggerExpand,Ii=qn[Ve],Xi=Te[Ve],ir;Ve===(ln||0)&&mn&&(ir=Nt.createElement(Nt.Fragment,null,Nt.createElement("span",{style:{paddingLeft:"".concat(Fn*en,"px")},className:"".concat(Dn,"-row-indent indent-level-").concat(en)}),Xn({prefixCls:Dn,expanded:li,expandable:si,record:hn,onExpand:Ei})));var dr;return Ce.onCell&&(dr=Ce.onCell(hn,un)),{key:Ii,fixedInfo:Xi,appendCellNode:ir,additionalCellProps:dr||{}}}function cr(ge){var Ce=ge.className,Ve=ge.style,en=ge.record,un=ge.index,hn=ge.renderIndex,Dn=ge.rowKey,qn=ge.indent,Te=qn===void 0?0:qn,ln=ge.rowComponent,mn=ge.cellComponent,Fn=ge.scopeCellComponent,Xn=_n(en,Dn,un,Te),li=Xn.prefixCls,si=Xn.flattenColumns,Ei=Xn.expandedRowClassName,Ii=Xn.expandedRowRender,Xi=Xn.rowProps,ir=Xn.expanded,dr=Xn.rowSupportExpand,Xr=Nt.useState(!1),$i=(0,ie.Z)(Xr,2),Hn=$i[0],no=$i[1];Nt.useEffect(function(){ir&&no(!0)},[ir]);var ro=Nt.createElement(ln,(0,re.Z)({},Xi,{"data-row-key":Dn,className:Wt()(Ce,"".concat(li,"-row"),"".concat(li,"-row-level-").concat(Te),Xi==null?void 0:Xi.className),style:(0,be.Z)((0,be.Z)({},Ve),Xi==null?void 0:Xi.style)}),si.map(function(qi,Nr){var oo=qi.render,po=qi.dataIndex,So=qi.className,Qr=ji(Xn,qi,Nr,Te,un),Xo=Qr.key,Po=Qr.fixedInfo,hs=Qr.appendCellNode,so=Qr.additionalCellProps;return Nt.createElement(Si,(0,re.Z)({className:So,ellipsis:qi.ellipsis,align:qi.align,scope:qi.rowScope,component:qi.rowScope?Fn:mn,prefixCls:li,key:Xo,record:en,index:un,renderIndex:hn,dataIndex:po,render:oo,shouldCellUpdate:qi.shouldCellUpdate},Po,{appendNode:hs,additionalProps:so}))})),tr;if(dr&&(Hn||ir)){var pr=Ii(en,un,Te+1,ir),Ar=Ei&&Ei(en,un,Te);tr=Nt.createElement(ii,{expanded:ir,className:Wt()("".concat(li,"-expanded-row"),"".concat(li,"-expanded-row-level-").concat(Te+1),Ar),prefixCls:li,component:ln,cellComponent:mn,colSpan:si.length,isEmpty:!1},pr)}return Nt.createElement(Nt.Fragment,null,ro,tr)}cr.displayName="BodyRow";var Ji=dt(cr);function mr(ge){var Ce=ge.columnKey,Ve=ge.onColumnResize,en=Nt.useRef();return Nt.useEffect(function(){en.current&&Ve(Ce,en.current.offsetWidth)},[]),Nt.createElement(Re.Z,{data:Ce},Nt.createElement("td",{ref:en,style:{padding:0,border:0,height:0}},Nt.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Mr(ge){var Ce=ge.prefixCls,Ve=ge.columnsKey,en=ge.onColumnResize;return Nt.createElement("tr",{"aria-hidden":"true",className:"".concat(Ce,"-measure-row"),style:{height:0,fontSize:0}},Nt.createElement(Re.Z.Collection,{onBatchResize:function(hn){hn.forEach(function(Dn){var qn=Dn.data,Te=Dn.size;en(qn,Te.offsetWidth)})}},Ve.map(function(un){return Nt.createElement(mr,{key:un,columnKey:un,onColumnResize:en})})))}function ao(ge){var Ce=ge.data,Ve=ge.measureColumnWidth,en=Pt(_t,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),un=en.prefixCls,hn=en.getComponent,Dn=en.onColumnResize,qn=en.flattenColumns,Te=en.getRowKey,ln=en.expandedKeys,mn=en.childrenColumnName,Fn=en.emptyNode,Xn=An(Ce,mn,ln,Te),li=Nt.useRef({renderWithProps:!1}),si=hn(["body","wrapper"],"tbody"),Ei=hn(["body","row"],"tr"),Ii=hn(["body","cell"],"td"),Xi=hn(["body","cell"],"th"),ir;Ce.length?ir=Xn.map(function(Xr,$i){var Hn=Xr.record,no=Xr.indent,ro=Xr.index,tr=Te(Hn,$i);return Nt.createElement(Ji,{key:tr,rowKey:tr,record:Hn,index:$i,renderIndex:ro,rowComponent:Ei,cellComponent:Ii,scopeCellComponent:Xi,getRowKey:Te,indent:no})}):ir=Nt.createElement(ii,{expanded:!0,className:"".concat(un,"-placeholder"),prefixCls:un,component:Ei,cellComponent:Ii,colSpan:qn.length,isEmpty:!0},Fn);var dr=Se(qn);return Nt.createElement(_e.Provider,{value:li.current},Nt.createElement(si,{className:"".concat(un,"-tbody")},Ve&&Nt.createElement(Mr,{prefixCls:un,columnsKey:dr,onColumnResize:Dn}),ir))}ao.displayName="Body";var Yr=dt(ao),Zr=["expandable"],kr="RC_TABLE_INTERNAL_COL_DEFINE";function Gr(ge){var Ce=ge.expandable,Ve=(0,Ot.Z)(ge,Zr),en;return"expandable"in ge?en=(0,be.Z)((0,be.Z)({},Ve),Ce):en=Ve,en.showExpandColumn===!1&&(en.expandIconColumnIndex=-1),en}var lo=["columnType"];function _o(ge){for(var Ce=ge.colWidths,Ve=ge.columns,en=ge.columCount,un=[],hn=en||Ve.length,Dn=!1,qn=hn-1;qn>=0;qn-=1){var Te=Ce[qn],ln=Ve&&Ve[qn],mn=ln&&ln[kr];if(Te||mn||Dn){var Fn=mn||{},Xn=Fn.columnType,li=(0,Ot.Z)(Fn,lo);un.unshift(Nt.createElement("col",(0,re.Z)({key:qn,style:{width:Te}},li))),Dn=!0}}return Nt.createElement("colgroup",null,un)}var ns=_o,co=bt(19127),ys=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function jo(ge,Ce){return(0,Nt.useMemo)(function(){for(var Ve=[],en=0;en<Ce;en+=1){var un=ge[en];if(un!==void 0)Ve[en]=un;else return null}return Ve},[ge.join("_"),Ce])}var $t=Nt.forwardRef(function(ge,Ce){var Ve=ge.className,en=ge.noData,un=ge.columns,hn=ge.flattenColumns,Dn=ge.colWidths,qn=ge.columCount,Te=ge.stickyOffsets,ln=ge.direction,mn=ge.fixHeader,Fn=ge.stickyTopOffset,Xn=ge.stickyBottomOffset,li=ge.stickyClassName,si=ge.onScroll,Ei=ge.maxContentScroll,Ii=ge.children,Xi=(0,Ot.Z)(ge,ys),ir=Pt(_t,["prefixCls","scrollbarSize","isSticky"]),dr=ir.prefixCls,Xr=ir.scrollbarSize,$i=ir.isSticky,Hn=$i&&!mn?0:Xr,no=Nt.useRef(null),ro=Nt.useCallback(function(So){(0,Kt.mH)(Ce,So),(0,Kt.mH)(no,So)},[]);Nt.useEffect(function(){var So;function Qr(Xo){var Po=Xo,hs=Po.currentTarget,so=Po.deltaX;so&&(si({currentTarget:hs,scrollLeft:hs.scrollLeft+so}),Xo.preventDefault())}return(So=no.current)===null||So===void 0||So.addEventListener("wheel",Qr),function(){var Xo;(Xo=no.current)===null||Xo===void 0||Xo.removeEventListener("wheel",Qr)}},[]);var tr=Nt.useMemo(function(){return hn.every(function(So){return So.width})},[hn]),pr=hn[hn.length-1],Ar={fixed:pr?pr.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(dr,"-cell-scrollbar")}}},qi=(0,Nt.useMemo)(function(){return Hn?[].concat((0,co.Z)(un),[Ar]):un},[Hn,un]),Nr=(0,Nt.useMemo)(function(){return Hn?[].concat((0,co.Z)(hn),[Ar]):hn},[Hn,hn]),oo=(0,Nt.useMemo)(function(){var So=Te.right,Qr=Te.left;return(0,be.Z)((0,be.Z)({},Te),{},{left:ln==="rtl"?[].concat((0,co.Z)(Qr.map(function(Xo){return Xo+Hn})),[0]):Qr,right:ln==="rtl"?So:[].concat((0,co.Z)(So.map(function(Xo){return Xo+Hn})),[0]),isSticky:$i})},[Hn,Te,$i]),po=jo(Dn,qn);return Nt.createElement("div",{style:(0,be.Z)({overflow:"hidden"},$i?{top:Fn,bottom:Xn}:{}),ref:ro,className:Wt()(Ve,(0,Jt.Z)({},li,!!li))},Nt.createElement("table",{style:{tableLayout:"fixed",visibility:en||po?null:"hidden"}},(!en||!Ei||tr)&&Nt.createElement(ns,{colWidths:po?[].concat((0,co.Z)(po),[Hn]):[],columCount:qn+1,columns:Nr}),Ii((0,be.Z)((0,be.Z)({},Xi),{},{stickyOffsets:oo,columns:qi,flattenColumns:Nr}))))});$t.displayName="FixedHolder";var ri=Nt.memo($t);function ws(ge){var Ce=ge.cells,Ve=ge.stickyOffsets,en=ge.flattenColumns,un=ge.rowComponent,hn=ge.cellComponent,Dn=ge.tdCellComponent,qn=ge.onHeaderRow,Te=ge.index,ln=Pt(_t,["prefixCls","direction"]),mn=ln.prefixCls,Fn=ln.direction,Xn;qn&&(Xn=qn(Ce.map(function(si){return si.column}),Te));var li=Se(Ce.map(function(si){return si.column}));return Nt.createElement(un,Xn,Ce.map(function(si,Ei){var Ii=si.column,Xi=nn(si.colStart,si.colEnd,en,Ve,Fn,Ii),ir;return Ii&&Ii.onHeaderCell&&(ir=si.column.onHeaderCell(Ii)),Nt.createElement(Si,(0,re.Z)({},si,{scope:Ii.title?si.colSpan>1?"colgroup":"col":null,ellipsis:Ii.ellipsis,align:Ii.align,component:Ii.title?hn:Dn,prefixCls:mn,key:li[Ei]},Xi,{additionalProps:ir,rowType:"header"}))}))}ws.displayName="HeaderRow";var Is=ws;function ma(ge){var Ce=[];function Ve(Dn,qn){var Te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ce[Te]=Ce[Te]||[];var ln=qn,mn=Dn.filter(Boolean).map(function(Fn){var Xn={key:Fn.key,className:Fn.className||"",children:Fn.title,column:Fn,colStart:ln},li=1,si=Fn.children;return si&&si.length>0&&(li=Ve(si,ln,Te+1).reduce(function(Ei,Ii){return Ei+Ii},0),Xn.hasSubColumns=!0),"colSpan"in Fn&&(li=Fn.colSpan),"rowSpan"in Fn&&(Xn.rowSpan=Fn.rowSpan),Xn.colSpan=li,Xn.colEnd=Xn.colStart+li-1,Ce[Te].push(Xn),ln+=li,li});return mn}Ve(ge,0);for(var en=Ce.length,un=function(qn){Ce[qn].forEach(function(Te){!("rowSpan"in Te)&&!Te.hasSubColumns&&(Te.rowSpan=en-qn)})},hn=0;hn<en;hn+=1)un(hn);return Ce}function va(ge){var Ce=ge.stickyOffsets,Ve=ge.columns,en=ge.flattenColumns,un=ge.onHeaderRow,hn=Pt(_t,["prefixCls","getComponent"]),Dn=hn.prefixCls,qn=hn.getComponent,Te=Nt.useMemo(function(){return ma(Ve)},[Ve]),ln=qn(["header","wrapper"],"thead"),mn=qn(["header","row"],"tr"),Fn=qn(["header","cell"],"th"),Xn=qn(["header","cell"],"td");return Nt.createElement(ln,{className:"".concat(Dn,"-thead")},Te.map(function(li,si){var Ei=Nt.createElement(Is,{key:si,flattenColumns:en,cells:li,stickyOffsets:Ce,rowComponent:mn,cellComponent:Fn,tdCellComponent:Xn,onHeaderRow:un,index:si});return Ei}))}var qs=dt(va),_r=bt(11592);function Dr(ge){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Ce=="number"?Ce:Ce.endsWith("%")?ge*parseFloat(Ce)/100:null}function kn(ge,Ce){return Nt.useMemo(function(){if(Ce&&Ce>0){var Ve=0,en=0;ge.forEach(function(ln){var mn=Dr(Ce,ln.width);mn?Ve+=mn:en+=1});var un=Ce-Ve,hn=en,Dn=un/en,qn=0,Te=ge.map(function(ln){var mn=(0,be.Z)({},ln),Fn=Dr(Ce,mn.width);if(Fn)mn.width=Fn;else{var Xn=Math.floor(Dn);mn.width=hn===1?un:Xn,un-=Xn,hn-=1}return qn+=mn.width,mn});return[Te,qn]}return[ge,Ce]},[ge,Ce])}var Tn=["children"],De=["fixed"];function ti(ge){return(0,_r.Z)(ge).filter(function(Ce){return Nt.isValidElement(Ce)}).map(function(Ce){var Ve=Ce.key,en=Ce.props,un=en.children,hn=(0,Ot.Z)(en,Tn),Dn=(0,be.Z)({key:Ve},hn);return un&&(Dn.children=ti(un)),Dn})}function yi(ge){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return ge.filter(function(Ve){return Ve&&(0,de.Z)(Ve)==="object"}).reduce(function(Ve,en,un){var hn=en.fixed,Dn=hn===!0?"left":hn,qn="".concat(Ce,"-").concat(un),Te=en.children;return Te&&Te.length>0?[].concat((0,co.Z)(Ve),(0,co.Z)(yi(Te,qn).map(function(ln){return(0,be.Z)({fixed:Dn},ln)}))):[].concat((0,co.Z)(Ve),[(0,be.Z)((0,be.Z)({key:qn},en),{},{fixed:Dn})])},[])}function dn(ge){for(var Ce=!0,Ve=0;Ve<ge.length;Ve+=1){var en=ge[Ve];if(Ce&&en.fixed!=="left")Ce=!1;else if(!Ce&&en.fixed==="left"){warning(!1,"Index ".concat(Ve-1," of `columns` missing `fixed='left'` prop."));break}}for(var un=!0,hn=ge.length-1;hn>=0;hn-=1){var Dn=ge[hn];if(un&&Dn.fixed!=="right")un=!1;else if(!un&&Dn.fixed==="right"){warning(!1,"Index ".concat(hn+1," of `columns` missing `fixed='right'` prop."));break}}}function Le(ge){return ge.map(function(Ce){var Ve=Ce.fixed,en=(0,Ot.Z)(Ce,De),un=Ve;return Ve==="left"?un="right":Ve==="right"&&(un="left"),(0,be.Z)({fixed:un},en)})}function yn(ge,Ce){var Ve=ge.prefixCls,en=ge.columns,un=ge.children,hn=ge.expandable,Dn=ge.expandedKeys,qn=ge.columnTitle,Te=ge.getRowKey,ln=ge.onTriggerExpand,mn=ge.expandIcon,Fn=ge.rowExpandable,Xn=ge.expandIconColumnIndex,li=ge.direction,si=ge.expandRowByClick,Ei=ge.columnWidth,Ii=ge.fixed,Xi=ge.scrollWidth,ir=Nt.useMemo(function(){return en||ti(un)},[en,un]),dr=Nt.useMemo(function(){if(hn){var pr,Ar=ir.slice();if(!Ar.includes(Mt)){var qi=Xn||0;qi>=0&&Ar.splice(qi,0,Mt)}var Nr=Ar.indexOf(Mt);Ar=Ar.filter(function(Qr,Xo){return Qr!==Mt||Xo===Nr});var oo=ir[Nr],po;(Ii==="left"||Ii)&&!Xn?po="left":(Ii==="right"||Ii)&&Xn===ir.length?po="right":po=oo?oo.fixed:null;var So=(pr={},(0,Jt.Z)(pr,kr,{className:"".concat(Ve,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Jt.Z)(pr,"title",qn),(0,Jt.Z)(pr,"fixed",po),(0,Jt.Z)(pr,"className","".concat(Ve,"-row-expand-icon-cell")),(0,Jt.Z)(pr,"width",Ei),(0,Jt.Z)(pr,"render",function(Xo,Po,hs){var so=Te(Po,hs),Pa=Dn.has(so),ks=Fn?Fn(Po):!0,Ps=mn({prefixCls:Ve,expanded:Pa,expandable:ks,record:Po,onExpand:ln});return si?Nt.createElement("span",{onClick:function(Fs){return Fs.stopPropagation()}},Ps):Ps}),pr);return Ar.map(function(Qr){return Qr===Mt?So:Qr})}return ir.filter(function(Qr){return Qr!==Mt})},[hn,ir,Te,Dn,mn,li]),Xr=Nt.useMemo(function(){var pr=dr;return Ce&&(pr=Ce(pr)),pr.length||(pr=[{render:function(){return null}}]),pr},[Ce,dr,li]),$i=Nt.useMemo(function(){return li==="rtl"?Le(yi(Xr)):yi(Xr)},[Xr,li,Xi]),Hn=kn($i,Xi),no=(0,ie.Z)(Hn,2),ro=no[0],tr=no[1];return[Xr,ro,tr]}var Qn=yn;function wi(ge){var Ce,Ve=ge.prefixCls,en=ge.record,un=ge.onExpand,hn=ge.expanded,Dn=ge.expandable,qn="".concat(Ve,"-row-expand-icon");if(!Dn)return Nt.createElement("span",{className:Wt()(qn,"".concat(Ve,"-row-spaced"))});var Te=function(mn){un(en,mn),mn.stopPropagation()};return Nt.createElement("span",{className:Wt()(qn,(Ce={},(0,Jt.Z)(Ce,"".concat(Ve,"-row-expanded"),hn),(0,Jt.Z)(Ce,"".concat(Ve,"-row-collapsed"),!hn),Ce)),onClick:Te})}function Oi(ge,Ce,Ve){var en=[];function un(hn){(hn||[]).forEach(function(Dn,qn){en.push(Ce(Dn,qn)),un(Dn[Ve])})}return un(ge),en}function qe(ge,Ce,Ve){var en=Gr(ge),un=en.expandIcon,hn=en.expandedRowKeys,Dn=en.defaultExpandedRowKeys,qn=en.defaultExpandAllRows,Te=en.expandedRowRender,ln=en.onExpand,mn=en.onExpandedRowsChange,Fn=en.childrenColumnName,Xn=un||wi,li=Fn||"children",si=Nt.useMemo(function(){return Te?"row":ge.expandable&&ge.internalHooks===ce&&ge.expandable.__PARENT_RENDER_ICON__||Ce.some(function($i){return $i&&(0,de.Z)($i)==="object"&&$i[li]})?"nest":!1},[!!Te,Ce]),Ei=Nt.useState(function(){return Dn||(qn?Oi(Ce,Ve,li):[])}),Ii=(0,ie.Z)(Ei,2),Xi=Ii[0],ir=Ii[1],dr=Nt.useMemo(function(){return new Set(hn||Xi||[])},[hn,Xi]),Xr=Nt.useCallback(function($i){var Hn=Ve($i,Ce.indexOf($i)),no,ro=dr.has(Hn);ro?(dr.delete(Hn),no=(0,co.Z)(dr)):no=[].concat((0,co.Z)(dr),[Hn]),ir(no),ln&&ln(!ro,$i),mn&&mn(no)},[Ve,dr,Ce,ln,mn]);return[en,si,dr,Xn,li,Xr]}function oi(ge,Ce,Ve,en){var un=ge.map(function(hn,Dn){return nn(Dn,Dn,ge,Ce,Ve,en==null?void 0:en[Dn])});return(0,Ge.Z)(function(){return un},[un],function(hn,Dn){return!(0,Zt.Z)(hn,Dn)})}function Pi(ge){var Ce=(0,Nt.useRef)(ge),Ve=(0,Nt.useState)({}),en=(0,ie.Z)(Ve,2),un=en[1],hn=(0,Nt.useRef)(null),Dn=(0,Nt.useRef)([]);function qn(Te){Dn.current.push(Te);var ln=Promise.resolve();hn.current=ln,ln.then(function(){if(hn.current===ln){var mn=Dn.current,Fn=Ce.current;Dn.current=[],mn.forEach(function(Xn){Ce.current=Xn(Ce.current)}),hn.current=null,Fn!==Ce.current&&un({})}})}return(0,Nt.useEffect)(function(){return function(){hn.current=null}},[]),[Ce.current,qn]}function er(ge){var Ce=(0,Nt.useRef)(ge||null),Ve=(0,Nt.useRef)();function en(){window.clearTimeout(Ve.current)}function un(Dn){Ce.current=Dn,en(),Ve.current=window.setTimeout(function(){Ce.current=null,Ve.current=void 0},100)}function hn(){return Ce.current}return(0,Nt.useEffect)(function(){return en},[]),[un,hn]}function On(){var ge=Nt.useState(-1),Ce=(0,ie.Z)(ge,2),Ve=Ce[0],en=Ce[1],un=Nt.useState(-1),hn=(0,ie.Z)(un,2),Dn=hn[0],qn=hn[1],Te=Nt.useCallback(function(ln,mn){en(ln),qn(mn)},[]);return[Ve,Dn,Te]}var ui=bt(47273),Cr=(0,ui.Z)()?window:null;function or(ge,Ce){var Ve=(0,de.Z)(ge)==="object"?ge:{},en=Ve.offsetHeader,un=en===void 0?0:en,hn=Ve.offsetSummary,Dn=hn===void 0?0:hn,qn=Ve.offsetScroll,Te=qn===void 0?0:qn,ln=Ve.getContainer,mn=ln===void 0?function(){return Cr}:ln,Fn=mn()||Cr;return Nt.useMemo(function(){var Xn=!!ge;return{isSticky:Xn,stickyClassName:Xn?"".concat(Ce,"-sticky-holder"):"",offsetHeader:un,offsetSummary:Dn,offsetScroll:Te,container:Fn}},[Te,un,Dn,Ce,Fn])}function zr(ge,Ce,Ve){var en=(0,Nt.useMemo)(function(){for(var un=[],hn=[],Dn=0,qn=0,Te=0;Te<Ce;Te+=1)if(Ve==="rtl"){hn[Te]=qn,qn+=ge[Te]||0;var ln=Ce-Te-1;un[ln]=Dn,Dn+=ge[ln]||0}else{un[Te]=Dn,Dn+=ge[Te]||0;var mn=Ce-Te-1;hn[mn]=qn,qn+=ge[mn]||0}return{left:un,right:hn}},[ge,Ce,Ve]);return en}var ar=zr;function Lr(ge){var Ce=ge.className,Ve=ge.children;return Nt.createElement("div",{className:Ce},Ve)}var nr=Lr,Pr=bt(8224),io=bt(55468),Uo=function(Ce,Ve){var en,un,hn=Ce.scrollBodyRef,Dn=Ce.onScroll,qn=Ce.offsetScroll,Te=Ce.container,ln=Pt(_t,"prefixCls"),mn=((en=hn.current)===null||en===void 0?void 0:en.scrollWidth)||0,Fn=((un=hn.current)===null||un===void 0?void 0:un.clientWidth)||0,Xn=mn&&Fn*(Fn/mn),li=Nt.useRef(),si=Pi({scrollLeft:0,isHiddenScrollBar:!1}),Ei=(0,ie.Z)(si,2),Ii=Ei[0],Xi=Ei[1],ir=Nt.useRef({delta:0,x:0}),dr=Nt.useState(!1),Xr=(0,ie.Z)(dr,2),$i=Xr[0],Hn=Xr[1],no=function(){Hn(!1)},ro=function(Nr){Nr.persist(),ir.current.delta=Nr.pageX-Ii.scrollLeft,ir.current.x=0,Hn(!0),Nr.preventDefault()},tr=function(Nr){var oo,po=Nr||((oo=window)===null||oo===void 0?void 0:oo.event),So=po.buttons;if(!$i||So===0){$i&&Hn(!1);return}var Qr=ir.current.x+Nr.pageX-ir.current.x-ir.current.delta;Qr<=0&&(Qr=0),Qr+Xn>=Fn&&(Qr=Fn-Xn),Dn({scrollLeft:Qr/Fn*(mn+2)}),ir.current.x=Nr.pageX},pr=function(){if(hn.current){var Nr=(0,io.os)(hn.current).top,oo=Nr+hn.current.offsetHeight,po=Te===window?document.documentElement.scrollTop+window.innerHeight:(0,io.os)(Te).top+Te.clientHeight;oo-(0,rn.Z)()<=po||Nr>=po-qn?Xi(function(So){return(0,be.Z)((0,be.Z)({},So),{},{isHiddenScrollBar:!0})}):Xi(function(So){return(0,be.Z)((0,be.Z)({},So),{},{isHiddenScrollBar:!1})})}},Ar=function(Nr){Xi(function(oo){return(0,be.Z)((0,be.Z)({},oo),{},{scrollLeft:Nr/mn*Fn||0})})};return Nt.useImperativeHandle(Ve,function(){return{setScrollLeft:Ar}}),Nt.useEffect(function(){var qi=(0,Pr.Z)(document.body,"mouseup",no,!1),Nr=(0,Pr.Z)(document.body,"mousemove",tr,!1);return pr(),function(){qi.remove(),Nr.remove()}},[Xn,$i]),Nt.useEffect(function(){var qi=(0,Pr.Z)(Te,"scroll",pr,!1),Nr=(0,Pr.Z)(window,"resize",pr,!1);return function(){qi.remove(),Nr.remove()}},[Te]),Nt.useEffect(function(){Ii.isHiddenScrollBar||Xi(function(qi){var Nr=hn.current;return Nr?(0,be.Z)((0,be.Z)({},qi),{},{scrollLeft:Nr.scrollLeft/Nr.scrollWidth*Nr.clientWidth}):qi})},[Ii.isHiddenScrollBar]),mn<=Fn||!Xn||Ii.isHiddenScrollBar?null:Nt.createElement("div",{style:{height:(0,rn.Z)(),width:Fn,bottom:qn},className:"".concat(ln,"-sticky-scroll")},Nt.createElement("div",{onMouseDown:ro,ref:li,className:Wt()("".concat(ln,"-sticky-scroll-bar"),(0,Jt.Z)({},"".concat(ln,"-sticky-scroll-bar-active"),$i)),style:{width:"".concat(Xn,"px"),transform:"translate3d(".concat(Ii.scrollLeft,"px, 0, 0)")}}))},gi=Nt.forwardRef(Uo);function Qo(ge){return null}var ps=Qo;function $o(ge){return null}var pi=$o,ur="rc-table",Ur=[],uo={};function qr(){return"No Data"}function ko(ge){var Ce,Ve=(0,be.Z)({rowKey:"key",prefixCls:ur,emptyText:qr},ge),en=Ve.prefixCls,un=Ve.className,hn=Ve.rowClassName,Dn=Ve.style,qn=Ve.data,Te=Ve.rowKey,ln=Ve.scroll,mn=Ve.tableLayout,Fn=Ve.direction,Xn=Ve.title,li=Ve.footer,si=Ve.summary,Ei=Ve.caption,Ii=Ve.id,Xi=Ve.showHeader,ir=Ve.components,dr=Ve.emptyText,Xr=Ve.onRow,$i=Ve.onHeaderRow,Hn=Ve.internalHooks,no=Ve.transformColumns,ro=Ve.internalRefs,tr=Ve.tailor,pr=Ve.sticky,Ar=qn||Ur,qi=!!Ar.length,Nr=Hn===ce,oo=Nt.useCallback(function(xa,sl){return(0,He.Z)(ir,xa)||sl},[ir]),po=Nt.useMemo(function(){return typeof Te=="function"?Te:function(xa){var sl=xa&&xa[Te];return sl}},[Te]),So=oo(["body"]),Qr=On(),Xo=(0,ie.Z)(Qr,3),Po=Xo[0],hs=Xo[1],so=Xo[2],Pa=qe(Ve,Ar,po),ks=(0,ie.Z)(Pa,6),Ps=ks[0],Eo=ks[1],Fs=ks[2],Va=ks[3],Ds=ks[4],Il=ks[5],wo=ln==null?void 0:ln.x,ss=Nt.useState(0),cs=(0,ie.Z)(ss,2),Lo=cs[0],ts=cs[1],xo=Qn((0,be.Z)((0,be.Z)((0,be.Z)({},Ve),Ps),{},{expandable:!!Ps.expandedRowRender,columnTitle:Ps.columnTitle,expandedKeys:Fs,getRowKey:po,onTriggerExpand:Il,expandIcon:Va,expandIconColumnIndex:Ps.expandIconColumnIndex,direction:Fn,scrollWidth:Nr&&tr&&typeof wo=="number"?wo:null}),Nr?no:null),Ls=(0,ie.Z)(xo,3),Rs=Ls[0],ea=Ls[1],Ql=Ls[2],ds=Ql!=null?Ql:wo,Xl=Nt.useMemo(function(){return{columns:Rs,flattenColumns:ea}},[Rs,ea]),fa=Nt.useRef(),ml=Nt.useRef(),ho=Nt.useRef(),Oa=Nt.useRef(),Iu=Nt.useRef(),wa=Nt.useState(!1),na=(0,ie.Z)(wa,2),Ea=na[0],Za=na[1],ol=Nt.useState(!1),Hs=(0,ie.Z)(ol,2),Fa=Hs[0],El=Hs[1],ku=Pi(new Map),fu=(0,ie.Z)(ku,2),Tu=fu[0],Wu=fu[1],oh=Se(ea),sh=oh.map(function(xa){return Tu.get(xa)}),Qa=Nt.useMemo(function(){return sh},[sh.join("_")]),xu=ar(Qa,ea.length,Fn),xl=ln&&Pn(ln.y),cl=ln&&Pn(ds)||!!Ps.fixed,gh=cl&&ea.some(function(xa){var sl=xa.fixed;return sl}),ec=Nt.useRef(),Ph=or(pr,en),Oh=Ph.isSticky,fc=Ph.offsetHeader,Vu=Ph.offsetSummary,La=Ph.offsetScroll,ia=Ph.stickyClassName,eu=Ph.container,vl=Nt.useMemo(function(){return si==null?void 0:si(Ar)},[si,Ar]),ga=(xl||Oh)&&Nt.isValidElement(vl)&&vl.type===At&&vl.props.fixed,nu,Hu,Ou;xl&&(Hu={overflowY:"scroll",maxHeight:ln.y}),cl&&(nu={overflowX:"auto"},xl||(Hu={overflowY:"hidden"}),Ou={width:ds===!0?"auto":ds,minWidth:"100%"});var Wc=Nt.useCallback(function(xa,sl){(0,Oe.Z)(fa.current)&&Wu(function(Su){if(Su.get(xa)!==sl){var mh=new Map(Su);return mh.set(xa,sl),mh}return Su})},[]),Un=er(null),nc=(0,ie.Z)(Un,2),Dh=nc[0],EA=nc[1];function Vc(xa,sl){sl&&(typeof sl=="function"?sl(xa):sl.scrollLeft!==xa&&(sl.scrollLeft=xa,sl.scrollLeft!==xa&&setTimeout(function(){sl.scrollLeft=xa},0)))}var bc=(0,Ie.Z)(function(xa){var sl=xa.currentTarget,Su=xa.scrollLeft,mh=Fn==="rtl",vh=typeof Su=="number"?Su:sl.scrollLeft,zd=sl||uo;if(!EA()||EA()===zd){var Lc;Dh(zd),Vc(vh,ml.current),Vc(vh,ho.current),Vc(vh,Iu.current),Vc(vh,(Lc=ec.current)===null||Lc===void 0?void 0:Lc.setScrollLeft)}var jh=sl||ml.current;if(jh){var Zu=jh.scrollWidth,Mc=jh.clientWidth;if(Zu===Mc){Za(!1),El(!1);return}mh?(Za(-vh<Zu-Mc),El(-vh>0)):(Za(vh>0),El(vh<Zu-Mc))}}),rd=function(){cl&&ho.current?bc({currentTarget:ho.current}):(Za(!1),El(!1))},HA=function(sl){var Su=sl.width;Su!==Lo&&(rd(),ts(fa.current?fa.current.offsetWidth:Su))},gu=Nt.useRef(!1);Nt.useEffect(function(){gu.current&&rd()},[cl,qn,Rs.length]),Nt.useEffect(function(){gu.current=!0},[]);var wd=Nt.useState(0),Rd=(0,ie.Z)(wd,2),od=Rd[0],Ec=Rd[1],_d=Nt.useState(!0),xd=(0,ie.Z)(_d,2),ah=xd[0],kl=xd[1];Nt.useEffect(function(){(!tr||!Nr)&&(ho.current instanceof Element?Ec((0,rn.o)(ho.current).width):Ec((0,rn.o)(Oa.current).width)),kl((0,ke.G)("position","sticky"))},[]),Nt.useEffect(function(){Nr&&ro&&(ro.body.current=ho.current)});var Sd=Nt.useCallback(function(xa){return Nt.createElement(Nt.Fragment,null,Nt.createElement(qs,xa),ga==="top"&&Nt.createElement(we,xa,vl))},[ga,vl]),lA=Nt.useCallback(function(xa){return Nt.createElement(we,xa,vl)},[vl]),Xs=oo(["table"],"table"),Zc=Nt.useMemo(function(){return mn||(gh?ds==="max-content"?"auto":"fixed":xl||Oh||ea.some(function(xa){var sl=xa.ellipsis;return sl})?"fixed":"auto")},[xl,gh,ea,mn,Oh]),Cd,ph={colWidths:Qa,columCount:ea.length,stickyOffsets:xu,onHeaderRow:$i,fixHeader:xl,scroll:ln},th=Nt.useMemo(function(){return qi?null:typeof dr=="function"?dr():dr},[qi,dr]),Hd=Nt.createElement(Yr,{data:Ar,measureColumnWidth:xl||cl||Oh}),sd=Nt.createElement(ns,{colWidths:ea.map(function(xa){var sl=xa.width;return sl}),columns:ea}),eh=Ei!=null?Nt.createElement("caption",{className:"".concat(en,"-caption")},Ei):void 0,Bd=(0,Vn.Z)(Ve,{data:!0}),Pd=(0,Vn.Z)(Ve,{aria:!0});if(xl||Oh){var Qd;typeof So=="function"?(Qd=So(Ar,{scrollbarSize:od,ref:ho,onScroll:bc}),ph.colWidths=ea.map(function(xa,sl){var Su=xa.width,mh=sl===ea.length-1?Su-od:Su;return typeof mh=="number"&&!Number.isNaN(mh)?mh:0})):Qd=Nt.createElement("div",{style:(0,be.Z)((0,be.Z)({},nu),Hu),onScroll:bc,ref:ho,className:Wt()("".concat(en,"-body"))},Nt.createElement(Xs,(0,re.Z)({style:(0,be.Z)((0,be.Z)({},Ou),{},{tableLayout:Zc})},Pd),eh,sd,Hd,!ga&&vl&&Nt.createElement(we,{stickyOffsets:xu,flattenColumns:ea,columns:Rs},vl)));var $l=(0,be.Z)((0,be.Z)((0,be.Z)({noData:!Ar.length,maxContentScroll:cl&&ds==="max-content"},ph),Xl),{},{direction:Fn,stickyClassName:ia,onScroll:bc});Cd=Nt.createElement(Nt.Fragment,null,Xi!==!1&&Nt.createElement(ri,(0,re.Z)({},$l,{stickyTopOffset:fc,className:"".concat(en,"-header"),ref:ml}),Sd),Qd,ga&&ga!=="top"&&Nt.createElement(ri,(0,re.Z)({},$l,{stickyBottomOffset:Vu,className:"".concat(en,"-summary"),ref:Iu}),lA),Oh&&Nt.createElement(gi,{ref:ec,offsetScroll:La,scrollBodyRef:ho,onScroll:bc,container:eu}))}else Cd=Nt.createElement("div",{style:(0,be.Z)((0,be.Z)({},nu),Hu),className:Wt()("".concat(en,"-content")),onScroll:bc,ref:ho},Nt.createElement(Xs,(0,re.Z)({style:(0,be.Z)((0,be.Z)({},Ou),{},{tableLayout:Zc})},Pd),eh,sd,Xi!==!1&&Nt.createElement(qs,(0,re.Z)({},ph,Xl)),Hd,vl&&Nt.createElement(we,{stickyOffsets:xu,flattenColumns:ea,columns:Rs},vl)));var iu=Nt.createElement("div",(0,re.Z)({className:Wt()(en,un,(Ce={},(0,Jt.Z)(Ce,"".concat(en,"-rtl"),Fn==="rtl"),(0,Jt.Z)(Ce,"".concat(en,"-ping-left"),Ea),(0,Jt.Z)(Ce,"".concat(en,"-ping-right"),Fa),(0,Jt.Z)(Ce,"".concat(en,"-layout-fixed"),mn==="fixed"),(0,Jt.Z)(Ce,"".concat(en,"-fixed-header"),xl),(0,Jt.Z)(Ce,"".concat(en,"-fixed-column"),gh),(0,Jt.Z)(Ce,"".concat(en,"-scroll-horizontal"),cl),(0,Jt.Z)(Ce,"".concat(en,"-has-fix-left"),ea[0]&&ea[0].fixed),(0,Jt.Z)(Ce,"".concat(en,"-has-fix-right"),ea[ea.length-1]&&ea[ea.length-1].fixed==="right"),Ce)),style:Dn,id:Ii,ref:fa},Bd),Xn&&Nt.createElement(nr,{className:"".concat(en,"-title")},Xn(Ar)),Nt.createElement("div",{ref:Oa,className:"".concat(en,"-container")},Cd),li&&Nt.createElement(nr,{className:"".concat(en,"-footer")},li(Ar)));cl&&(iu=Nt.createElement(Re.Z,{onResize:HA},iu));var Fc=oi(ea,xu,Fn,Rs),su=Nt.useMemo(function(){return{scrollX:ds,prefixCls:en,getComponent:oo,scrollbarSize:od,direction:Fn,fixedInfoList:Fc,isSticky:Oh,supportSticky:ah,componentWidth:Lo,fixHeader:xl,fixColumn:gh,horizonScroll:cl,tableLayout:Zc,rowClassName:hn,expandedRowClassName:Ps.expandedRowClassName,expandIcon:Va,expandableType:Eo,expandRowByClick:Ps.expandRowByClick,expandedRowRender:Ps.expandedRowRender,onTriggerExpand:Il,expandIconColumnIndex:Ps.expandIconColumnIndex,indentSize:Ps.indentSize,allColumnsFixedLeft:ea.every(function(xa){return xa.fixed==="left"}),emptyNode:th,columns:Rs,flattenColumns:ea,onColumnResize:Wc,hoverStartRow:Po,hoverEndRow:hs,onHover:so,rowExpandable:Ps.rowExpandable,onRow:Xr,getRowKey:po,expandedKeys:Fs,childrenColumnName:Ds}},[ds,en,oo,od,Fn,Fc,Oh,ah,Lo,xl,gh,cl,Zc,hn,Ps.expandedRowClassName,Va,Eo,Ps.expandRowByClick,Ps.expandedRowRender,Il,Ps.expandIconColumnIndex,Ps.indentSize,th,Rs,ea,Wc,Po,hs,so,Ps.rowExpandable,Xr,po,Fs,Ds]);return Nt.createElement(_t.Provider,{value:su},iu)}function di(ge){return ht(ko,ge)}var Co=di();Co.EXPAND_COLUMN=Mt,Co.INTERNAL_HOOKS=ce,Co.Column=ps,Co.ColumnGroup=pi,Co.Summary=ae;var jr=Co,Sr=bt(24916),Ci=qt(null),Bo=qt(null);function xi(ge,Ce,Ve){var en=Ce||1;return Ve[ge+en]-(Ve[ge]||0)}function Yo(ge){var Ce=ge.rowInfo,Ve=ge.column,en=ge.colIndex,un=ge.indent,hn=ge.index,Dn=ge.renderIndex,qn=ge.record,Te=ge.style,ln=ge.className,mn=ge.inverse,Fn=ge.getHeight,Xn=Ve.render,li=Ve.dataIndex,si=Ve.className,Ei=Ve.width,Ii=Pt(Bo,["columnsOffset"]),Xi=Ii.columnsOffset,ir=ji(Ce,Ve,en,un,hn),dr=ir.key,Xr=ir.fixedInfo,$i=ir.appendCellNode,Hn=ir.additionalCellProps,no=Hn.style,ro=Hn.colSpan,tr=ro===void 0?1:ro,pr=Hn.rowSpan,Ar=pr===void 0?1:pr,qi=en-1,Nr=xi(qi,tr,Xi),oo=tr>1?Ei-Nr:0,po=(0,be.Z)((0,be.Z)((0,be.Z)({},no),Te),{},{flex:"0 0 ".concat(Nr,"px"),width:"".concat(Nr,"px"),marginRight:oo,pointerEvents:"auto"}),So=Nt.useMemo(function(){return mn?Ar<=1:tr===0||Ar===0||Ar>1},[Ar,tr,mn]);So?po.visibility="hidden":mn&&(po.height=Fn==null?void 0:Fn(Ar));var Qr=So?function(){return null}:Xn,Xo={};return(Ar===0||tr===0)&&(Xo.rowSpan=1,Xo.colSpan=1),Nt.createElement(Si,(0,re.Z)({className:Wt()(si,ln),ellipsis:Ve.ellipsis,align:Ve.align,scope:Ve.rowScope,component:"div",prefixCls:Ce.prefixCls,key:dr,record:qn,index:hn,renderIndex:Dn,dataIndex:li,render:Qr,shouldCellUpdate:Ve.shouldCellUpdate},Xr,{appendNode:$i,additionalProps:(0,be.Z)((0,be.Z)({},Hn),{},{style:po},Xo)}))}var ha=Yo,vs=["data","index","className","rowKey","style","extra","getHeight"],da=Nt.forwardRef(function(ge,Ce){var Ve=ge.data,en=ge.index,un=ge.className,hn=ge.rowKey,Dn=ge.style,qn=ge.extra,Te=ge.getHeight,ln=(0,Ot.Z)(ge,vs),mn=Ve.record,Fn=Ve.indent,Xn=Ve.index,li=Pt(_t,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),si=li.scrollX,Ei=li.flattenColumns,Ii=li.prefixCls,Xi=li.fixColumn,ir=li.componentWidth,dr=_n(mn,hn,en,Fn),Xr=dr.rowSupportExpand,$i=dr.expanded,Hn=dr.rowProps,no=dr.expandedRowRender,ro=dr.expandedRowClassName,tr;if(Xr&&$i){var pr=no(mn,en,Fn+1,$i),Ar=ro==null?void 0:ro(mn,en,Fn),qi={};Xi&&(qi={style:(0,Jt.Z)({},"--virtual-width","".concat(ir,"px"))});var Nr="".concat(Ii,"-expanded-row-cell");tr=Nt.createElement("div",{className:Wt()("".concat(Ii,"-expanded-row"),"".concat(Ii,"-expanded-row-level-").concat(Fn+1),Ar)},Nt.createElement(Si,{component:"div",prefixCls:Ii,className:Wt()(Nr,(0,Jt.Z)({},"".concat(Nr,"-fixed"),Xi)),additionalProps:qi},pr))}var oo=(0,be.Z)((0,be.Z)({},Dn),{},{width:si});qn&&(oo.position="absolute",oo.pointerEvents="none");var po=Nt.createElement("div",(0,re.Z)({},Hn,ln,{ref:Xr?null:Ce,className:Wt()(un,"".concat(Ii,"-row"),Hn==null?void 0:Hn.className,(0,Jt.Z)({},"".concat(Ii,"-row-extra"),qn)),style:(0,be.Z)((0,be.Z)({},oo),Hn==null?void 0:Hn.style)}),Ei.map(function(So,Qr){return Nt.createElement(ha,{key:Qr,rowInfo:dr,column:So,colIndex:Qr,indent:Fn,index:en,renderIndex:Xn,record:mn,inverse:qn,getHeight:Te})}));return Xr?Nt.createElement("div",{ref:Ce},po,tr):po}),ta=dt(da),To=ta,Ro=Nt.forwardRef(function(ge,Ce){var Ve=ge.data,en=ge.onScroll,un=Pt(_t,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),hn=un.flattenColumns,Dn=un.onColumnResize,qn=un.getRowKey,Te=un.expandedKeys,ln=un.prefixCls,mn=un.childrenColumnName,Fn=un.emptyNode,Xn=un.scrollX,li=Pt(Ci),si=li.scrollY,Ei=li.listItemHeight,Ii=Nt.useRef(),Xi=An(Ve,mn,Te,qn),ir=Nt.useMemo(function(){var tr=0;return hn.map(function(pr){var Ar=pr.width,qi=pr.key;return tr+=Ar,[qi,Ar,tr]})},[hn]),dr=Nt.useMemo(function(){return ir.map(function(tr){return tr[2]})},[ir]);Nt.useEffect(function(){ir.forEach(function(tr){var pr=(0,ie.Z)(tr,2),Ar=pr[0],qi=pr[1];Dn(Ar,qi)})},[ir]),Nt.useImperativeHandle(Ce,function(){var tr={};return Object.defineProperty(tr,"scrollLeft",{get:function(){var Ar;return((Ar=Ii.current)===null||Ar===void 0?void 0:Ar.getScrollInfo().x)||0},set:function(Ar){var qi;(qi=Ii.current)===null||qi===void 0||qi.scrollTo({left:Ar})}}),tr});var Xr=function(pr,Ar){var qi,Nr=(qi=Xi[Ar])===null||qi===void 0?void 0:qi.record,oo=pr.onCell;if(oo){var po,So=oo(Nr,Ar);return(po=So==null?void 0:So.rowSpan)!==null&&po!==void 0?po:1}return 1},$i=function(pr){var Ar=pr.start,qi=pr.end,Nr=pr.getSize,oo=pr.offsetY;if(qi<0)return null;for(var po=hn.filter(function(wo){return Xr(wo,Ar)===0}),So=Ar,Qr=function(ss){if(po=po.filter(function(cs){return Xr(cs,ss)===0}),!po.length)return So=ss,"break"},Xo=Ar;Xo>=0;Xo-=1){var Po=Qr(Xo);if(Po==="break")break}for(var hs=hn.filter(function(wo){return Xr(wo,qi)!==1}),so=qi,Pa=function(ss){if(hs=hs.filter(function(cs){return Xr(cs,ss)!==1}),!hs.length)return so=Math.max(ss-1,qi),"break"},ks=qi;ks<Xi.length;ks+=1){var Ps=Pa(ks);if(Ps==="break")break}for(var Eo=[],Fs=function(ss){var cs=Xi[ss];if(!cs)return"continue";hn.some(function(Lo){return Xr(Lo,ss)>1})&&Eo.push(ss)},Va=So;Va<=so;Va+=1)var Ds=Fs(Va);var Il=Eo.map(function(wo){var ss=Xi[wo],cs=qn(ss.record,wo),Lo=function(Ls){var Rs=wo+Ls-1,ea=qn(Xi[Rs].record,Rs),Ql=Nr(cs,ea);return Ql.bottom-Ql.top},ts=Nr(cs);return Nt.createElement(To,{key:wo,data:ss,rowKey:cs,index:wo,style:{top:-oo+ts.top},extra:!0,getHeight:Lo})});return Il},Hn=Nt.useMemo(function(){return{columnsOffset:dr}},[dr]),no="".concat(ln,"-tbody"),ro;return Xi.length?ro=Nt.createElement(Sr.Z,{fullHeight:!1,ref:Ii,className:Wt()(no,"".concat(no,"-virtual")),height:si,itemHeight:Ei||24,data:Xi,itemKey:function(pr){return qn(pr.record)},scrollWidth:Xn,onVirtualScroll:function(pr){var Ar=pr.x;en({scrollLeft:Ar})},extraRender:$i},function(tr,pr,Ar){var qi=qn(tr.record,pr);return Nt.createElement(To,(0,re.Z)({data:tr,rowKey:qi,index:pr},Ar))}):ro=Nt.createElement("div",{className:Wt()("".concat(ln,"-placeholder"))},Nt.createElement(Si,{component:"div",prefixCls:ln},Fn)),Nt.createElement(Bo.Provider,{value:Hn},ro)}),us=dt(Ro),os=us,xr=function(Ce,Ve){var en=Ve.ref,un=Ve.onScroll;return Nt.createElement(os,{ref:en,data:Ce,onScroll:un})},Ne=100;function ls(ge){var Ce=ge.columns,Ve=ge.scroll,en=ge.prefixCls,un=en===void 0?ur:en,hn=ge.className,Dn=ge.listItemHeight,qn=Ve||{},Te=qn.x,ln=qn.y;typeof Te!="number"&&(Te=((Ce||[]).length+1)*Ne),typeof ln!="number"&&(ln=500);var mn=Nt.useMemo(function(){return{scrollY:ln,listItemHeight:Dn}},[ln,Dn]);return Nt.createElement(Ci.Provider,{value:mn},Nt.createElement(jr,(0,re.Z)({},ge,{className:Wt()(hn,"".concat(un,"-virtual")),scroll:(0,be.Z)((0,be.Z)({},Ve),{},{x:Te}),components:{body:xr},columns:Ce,internalHooks:ce,tailor:!0})))}function ra(ge){return ht(ls,ge)}var al=ra(),ll=null;function bl(ge){return null}var is=bl;function Vo(ge){return null}var Es=Vo,Zo=bt(2738),Vs=bt(68031),yl=bt(36355),Ao=bt(93891),yo=bt(19716),Zi=bt(8628),bo=bt(31724),xs=bt(58421),ca=bt(71418),aa=bt(88088);function Ho(ge){return function(Ve){let{prefixCls:en,onExpand:un,record:hn,expanded:Dn,expandable:qn}=Ve;const Te=`${en}-row-expand-icon`;return Nt.createElement("button",{type:"button",onClick:ln=>{un(hn,ln),ln.stopPropagation()},className:Wt()(Te,{[`${Te}-spaced`]:!qn,[`${Te}-expanded`]:qn&&Dn,[`${Te}-collapsed`]:qn&&!Dn}),"aria-label":Dn?ge.collapse:ge.expand,"aria-expanded":Dn})}}var Zs=Ho;function ka(ge,Ce){return"key"in ge&&ge.key!==void 0&&ge.key!==null?ge.key:ge.dataIndex?Array.isArray(ge.dataIndex)?ge.dataIndex.join("."):ge.dataIndex:Ce}function Ml(ge,Ce){return Ce?`${Ce}-${ge}`:`${ge}`}function Ga(ge,Ce){return typeof ge=="function"?ge(Ce):ge}function Ss(ge,Ce){const Ve=Ga(ge,Ce);return Object.prototype.toString.call(Ve)==="[object Object]"?"":Ve}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,dc=bt(7657),hu=function(Ce,Ve){return Nt.createElement(dc.Z,(0,re.Z)({},Ce,{ref:Ve,icon:Ta}))},kh=Nt.forwardRef(hu),Wr=kh,zs=bt(56762);function Ms(ge){const Ce=Nt.useRef(ge),Ve=(0,zs.Z)();return[()=>Ce.current,en=>{Ce.current=en,Ve()}]}var Cs=bt(3113),Gs=bt(24905),cu=bt(38854),qo=bt(64165),_s=bt(20834),ms=bt(40875),Rr=bt(5112),ul=bt(17574),Os=bt(47472),yu=bt(92832);function Uu(ge){let{value:Ce,onChange:Ve,filterSearch:en,tablePrefixCls:un,locale:hn}=ge;return en?Nt.createElement("div",{className:`${un}-filter-dropdown-search`},Nt.createElement(yu.default,{prefix:Nt.createElement(Os.Z,null),placeholder:hn.filterSearchPlaceholder,onChange:Ve,value:Ce,htmlSize:1,className:`${un}-filter-dropdown-search-input`})):null}var Vl=Uu,fr=bt(10228);const Wa=ge=>{const{keyCode:Ce}=ge;Ce===fr.Z.ENTER&&ge.stopPropagation()};var Cl=Nt.forwardRef((ge,Ce)=>Nt.createElement("div",{className:ge.className,onClick:Ve=>Ve.stopPropagation(),onKeyDown:Wa,ref:Ce},ge.children));function ru(ge){let Ce=[];return(ge||[]).forEach(Ve=>{let{value:en,children:un}=Ve;Ce.push(en),un&&(Ce=[].concat((0,co.Z)(Ce),(0,co.Z)(ru(un))))}),Ce}function $a(ge){return ge.some(Ce=>{let{children:Ve}=Ce;return Ve})}function Fo(ge,Ce){return typeof Ce=="string"||typeof Ce=="number"?Ce==null?void 0:Ce.toString().toLowerCase().includes(ge.trim().toLowerCase()):!1}function Ua(ge){let{filters:Ce,prefixCls:Ve,filteredKeys:en,filterMultiple:un,searchValue:hn,filterSearch:Dn}=ge;return Ce.map((qn,Te)=>{const ln=String(qn.value);if(qn.children)return{key:ln||Te,label:qn.text,popupClassName:`${Ve}-dropdown-submenu`,children:Ua({filters:qn.children,prefixCls:Ve,filteredKeys:en,filterMultiple:un,searchValue:hn,filterSearch:Dn})};const mn=un?Gs.default:Rr.ZP,Fn={key:qn.value!==void 0?ln:Te,label:Nt.createElement(Nt.Fragment,null,Nt.createElement(mn,{checked:en.includes(ln)}),Nt.createElement("span",null,qn.text))};return hn.trim()?typeof Dn=="function"?Dn(hn,qn)?Fn:null:Fo(hn,qn.text)?Fn:null:Fn})}function Ya(ge){var Ce,Ve;const{tablePrefixCls:en,prefixCls:un,column:hn,dropdownPrefixCls:Dn,columnKey:qn,filterMultiple:Te,filterMode:ln="menu",filterSearch:mn=!1,filterState:Fn,triggerFilter:Xn,locale:li,children:si,getPopupContainer:Ei}=ge,{filterDropdownOpen:Ii,onFilterDropdownOpenChange:Xi,filterResetToDefaultFilteredValue:ir,defaultFilteredValue:dr,filterDropdownVisible:Xr,onFilterDropdownVisibleChange:$i}=hn,[Hn,no]=Nt.useState(!1),ro=!!(Fn&&(!((Ce=Fn.filteredKeys)===null||Ce===void 0)&&Ce.length||Fn.forceFiltered)),tr=xo=>{no(xo),Xi==null||Xi(xo),$i==null||$i(xo)},pr=(Ve=Ii!=null?Ii:Xr)!==null&&Ve!==void 0?Ve:Hn,Ar=Fn==null?void 0:Fn.filteredKeys,[qi,Nr]=Ms(Ar||[]),oo=xo=>{let{selectedKeys:Ls}=xo;Nr(Ls)},po=(xo,Ls)=>{let{node:Rs,checked:ea}=Ls;oo(Te?{selectedKeys:xo}:{selectedKeys:ea&&Rs.key?[Rs.key]:[]})};Nt.useEffect(()=>{Hn&&oo({selectedKeys:Ar||[]})},[Ar]);const[So,Qr]=Nt.useState([]),Xo=xo=>{Qr(xo)},[Po,hs]=Nt.useState(""),so=xo=>{const{value:Ls}=xo.target;hs(Ls)};Nt.useEffect(()=>{Hn||hs("")},[Hn]);const Pa=xo=>{const Ls=xo&&xo.length?xo:null;if(Ls===null&&(!Fn||!Fn.filteredKeys)||(0,Zt.Z)(Ls,Fn==null?void 0:Fn.filteredKeys,!0))return null;Xn({column:hn,key:qn,filteredKeys:Ls})},ks=()=>{tr(!1),Pa(qi())},Ps=function(){let{confirm:xo,closeDropdown:Ls}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};xo&&Pa([]),Ls&&tr(!1),hs(""),Nr(ir?(dr||[]).map(Rs=>String(Rs)):[])},Eo=function(){let{closeDropdown:xo}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};xo&&tr(!1),Pa(qi())},Fs=xo=>{xo&&Ar!==void 0&&Nr(Ar||[]),tr(xo),!xo&&!hn.filterDropdown&&ks()},Va=Wt()({[`${Dn}-menu-without-submenu`]:!$a(hn.filters||[])}),Ds=xo=>{if(xo.target.checked){const Ls=ru(hn==null?void 0:hn.filters).map(Rs=>String(Rs));Nr(Ls)}else Nr([])},Il=xo=>{let{filters:Ls}=xo;return(Ls||[]).map((Rs,ea)=>{const Ql=String(Rs.value),ds={title:Rs.text,key:Rs.value!==void 0?Ql:ea};return Rs.children&&(ds.children=Il({filters:Rs.children})),ds})},wo=xo=>{var Ls;return Object.assign(Object.assign({},xo),{text:xo.title,value:xo.key,children:((Ls=xo.children)===null||Ls===void 0?void 0:Ls.map(Rs=>wo(Rs)))||[]})};let ss;if(typeof hn.filterDropdown=="function")ss=hn.filterDropdown({prefixCls:`${Dn}-custom`,setSelectedKeys:xo=>oo({selectedKeys:xo}),selectedKeys:qi(),confirm:Eo,clearFilters:Ps,filters:hn.filters,visible:pr,close:()=>{tr(!1)}});else if(hn.filterDropdown)ss=hn.filterDropdown;else{const xo=qi()||[],Ls=()=>(hn.filters||[]).length===0?Nt.createElement(qo.Z,{image:qo.Z.PRESENTED_IMAGE_SIMPLE,description:li.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):ln==="tree"?Nt.createElement(Nt.Fragment,null,Nt.createElement(Vl,{filterSearch:mn,value:Po,onChange:so,tablePrefixCls:en,locale:li}),Nt.createElement("div",{className:`${en}-filter-dropdown-tree`},Te?Nt.createElement(Gs.default,{checked:xo.length===ru(hn.filters).length,indeterminate:xo.length>0&&xo.length<ru(hn.filters).length,className:`${en}-filter-dropdown-checkall`,onChange:Ds},li.filterCheckall):null,Nt.createElement(ul.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Te,checkStrictly:!Te,className:`${Dn}-menu`,onCheck:po,checkedKeys:xo,selectedKeys:xo,showIcon:!1,treeData:Il({filters:hn.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Po.trim()?ea=>typeof mn=="function"?mn(Po,wo(ea)):Fo(Po,ea.title):void 0}))):Nt.createElement(Nt.Fragment,null,Nt.createElement(Vl,{filterSearch:mn,value:Po,onChange:so,tablePrefixCls:en,locale:li}),Nt.createElement(_s.default,{selectable:!0,multiple:Te,prefixCls:`${Dn}-menu`,className:Va,onSelect:oo,onDeselect:oo,selectedKeys:xo,getPopupContainer:Ei,openKeys:So,onOpenChange:Xo,items:Ua({filters:hn.filters||[],filterSearch:mn,prefixCls:un,filteredKeys:qi(),filterMultiple:Te,searchValue:Po})})),Rs=()=>ir?(0,Zt.Z)((dr||[]).map(ea=>String(ea)),xo,!0):xo.length===0;ss=Nt.createElement(Nt.Fragment,null,Ls(),Nt.createElement("div",{className:`${un}-dropdown-btns`},Nt.createElement(Cs.ZP,{type:"link",size:"small",disabled:Rs(),onClick:()=>Ps()},li.filterReset),Nt.createElement(Cs.ZP,{type:"primary",size:"small",onClick:ks},li.filterConfirm)))}hn.filterDropdown&&(ss=Nt.createElement(ms.J,{selectable:void 0},ss));const cs=()=>Nt.createElement(Cl,{className:`${un}-dropdown`},ss);let Lo;typeof hn.filterIcon=="function"?Lo=hn.filterIcon(ro):hn.filterIcon?Lo=hn.filterIcon:Lo=Nt.createElement(Wr,null);const{direction:ts}=Nt.useContext(yl.E_);return Nt.createElement("div",{className:`${un}-column`},Nt.createElement("span",{className:`${en}-column-title`},si),Nt.createElement(cu.Z,{dropdownRender:cs,trigger:["click"],open:pr,onOpenChange:Fs,getPopupContainer:Ei,placement:ts==="rtl"?"bottomLeft":"bottomRight"},Nt.createElement("span",{role:"button",tabIndex:-1,className:Wt()(`${un}-trigger`,{active:ro}),onClick:xo=>{xo.stopPropagation()}},Lo)))}var ou=Ya;function Zl(ge,Ce,Ve){let en=[];return(ge||[]).forEach((un,hn)=>{var Dn;const qn=Ml(hn,Ve);if(un.filters||"filterDropdown"in un||"onFilter"in un)if("filteredValue"in un){let Te=un.filteredValue;"filterDropdown"in un||(Te=(Dn=Te==null?void 0:Te.map(String))!==null&&Dn!==void 0?Dn:Te),en.push({column:un,key:ka(un,qn),filteredKeys:Te,forceFiltered:un.filtered})}else en.push({column:un,key:ka(un,qn),filteredKeys:Ce&&un.defaultFilteredValue?un.defaultFilteredValue:void 0,forceFiltered:un.filtered});"children"in un&&(en=[].concat((0,co.Z)(en),(0,co.Z)(Zl(un.children,Ce,qn))))}),en}function Pu(ge,Ce,Ve,en,un,hn,Dn,qn){return Ve.map((Te,ln)=>{const mn=Ml(ln,qn),{filterMultiple:Fn=!0,filterMode:Xn,filterSearch:li}=Te;let si=Te;if(si.filters||si.filterDropdown){const Ei=ka(si,mn),Ii=en.find(Xi=>{let{key:ir}=Xi;return Ei===ir});si=Object.assign(Object.assign({},si),{title:Xi=>Nt.createElement(ou,{tablePrefixCls:ge,prefixCls:`${ge}-filter`,dropdownPrefixCls:Ce,column:si,columnKey:Ei,filterState:Ii,filterMultiple:Fn,filterMode:Xn,filterSearch:li,triggerFilter:hn,locale:un,getPopupContainer:Dn},Ga(Te.title,Xi))})}return"children"in si&&(si=Object.assign(Object.assign({},si),{children:Pu(ge,Ce,si.children,en,un,hn,Dn,mn)})),si})}function bu(ge){const Ce={};return ge.forEach(Ve=>{let{key:en,filteredKeys:un,column:hn}=Ve;const{filters:Dn,filterDropdown:qn}=hn;if(qn)Ce[en]=un||null;else if(Array.isArray(un)){const Te=ru(Dn);Ce[en]=Te.filter(ln=>un.includes(String(ln)))}else Ce[en]=null}),Ce}function du(ge,Ce){return Ce.reduce((Ve,en)=>{const{column:{onFilter:un,filters:hn},filteredKeys:Dn}=en;return un&&Dn&&Dn.length?Ve.filter(qn=>Dn.some(Te=>{const ln=ru(hn),mn=ln.findIndex(Xn=>String(Xn)===String(Te)),Fn=mn!==-1?ln[mn]:Te;return un(Fn,qn)})):Ve},ge)}const tu=ge=>ge.flatMap(Ce=>"children"in Ce?[Ce].concat((0,co.Z)(tu(Ce.children||[]))):[Ce]);function Go(ge){let{prefixCls:Ce,dropdownPrefixCls:Ve,mergedColumns:en,onFilterChange:un,getPopupContainer:hn,locale:Dn}=ge;const qn=Nt.useMemo(()=>tu(en||[]),[en]),[Te,ln]=Nt.useState(()=>Zl(qn,!0)),mn=Nt.useMemo(()=>{const si=Zl(qn,!1);if(si.length===0)return si;let Ei=!0,Ii=!0;if(si.forEach(Xi=>{let{filteredKeys:ir}=Xi;ir!==void 0?Ei=!1:Ii=!1}),Ei){const Xi=(qn||[]).map((ir,dr)=>ka(ir,Ml(dr)));return Te.filter(ir=>{let{key:dr}=ir;return Xi.includes(dr)}).map(ir=>{const dr=qn[Xi.findIndex(Xr=>Xr===ir.key)];return Object.assign(Object.assign({},ir),{column:Object.assign(Object.assign({},ir.column),dr),forceFiltered:dr.filtered})})}return si},[qn,Te]),Fn=Nt.useMemo(()=>bu(mn),[mn]),Xn=si=>{const Ei=mn.filter(Ii=>{let{key:Xi}=Ii;return Xi!==si.key});Ei.push(si),ln(Ei),un(bu(Ei),Ei)};return[si=>Pu(Ce,Ve,si,mn,Dn,Xn,hn),mn,Fn]}var Dd=Go;function Eu(ge,Ce,Ve){const en=Nt.useRef({});function un(hn){if(!en.current||en.current.data!==ge||en.current.childrenColumnName!==Ce||en.current.getRowKey!==Ve){let qn=function(Te){Te.forEach((ln,mn)=>{const Fn=Ve(ln,mn);Dn.set(Fn,ln),ln&&typeof ln=="object"&&Ce in ln&&qn(ln[Ce]||[])})};const Dn=new Map;qn(ge),en.current={data:ge,childrenColumnName:Ce,kvMap:Dn,getRowKey:Ve}}return en.current.kvMap.get(hn)}return[un]}var vd=bt(50371),Bh=function(ge,Ce){var Ve={};for(var en in ge)Object.prototype.hasOwnProperty.call(ge,en)&&Ce.indexOf(en)<0&&(Ve[en]=ge[en]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var un=0,en=Object.getOwnPropertySymbols(ge);un<en.length;un++)Ce.indexOf(en[un])<0&&Object.prototype.propertyIsEnumerable.call(ge,en[un])&&(Ve[en[un]]=ge[en[un]]);return Ve};const qh=10;function il(ge,Ce){const Ve={current:ge.current,pageSize:ge.pageSize};return Object.keys(Ce&&typeof Ce=="object"?Ce:{}).forEach(un=>{const hn=ge[un];typeof hn!="function"&&(Ve[un]=hn)}),Ve}function ch(ge,Ce,Ve){const en=Ve&&typeof Ve=="object"?Ve:{},{total:un=0}=en,hn=Bh(en,["total"]),[Dn,qn]=(0,Nt.useState)(()=>({current:"defaultCurrent"in hn?hn.defaultCurrent:1,pageSize:"defaultPageSize"in hn?hn.defaultPageSize:qh})),Te=(0,vd.Z)(Dn,hn,{total:un>0?un:ge}),ln=Math.ceil((un||ge)/Te.pageSize);Te.current>ln&&(Te.current=ln||1);const mn=(Xn,li)=>{qn({current:Xn!=null?Xn:1,pageSize:li||Te.pageSize})},Fn=(Xn,li)=>{var si;Ve&&((si=Ve.onChange)===null||si===void 0||si.call(Ve,Xn,li)),mn(Xn,li),Ce(Xn,li||(Te==null?void 0:Te.pageSize))};return Ve===!1?[{},()=>{}]:[Object.assign(Object.assign({},Te),{onChange:Fn}),mn]}var jd=ch,Kc=bt(84105),Gc=bt(35654),Bs=bt(90782),ya=bt(71430),Nu=bt(18929);const Ja={},rl="SELECT_ALL",Ha="SELECT_INVERT",Aa="SELECT_NONE",qa=[],Nl=(ge,Ce)=>{let Ve=[];return(Ce||[]).forEach(en=>{Ve.push(en),en&&typeof en=="object"&&ge in en&&(Ve=[].concat((0,co.Z)(Ve),(0,co.Z)(Nl(ge,en[ge]))))}),Ve};var rh=(ge,Ce)=>{const{preserveSelectedRowKeys:Ve,selectedRowKeys:en,defaultSelectedRowKeys:un,getCheckboxProps:hn,onChange:Dn,onSelect:qn,onSelectAll:Te,onSelectInvert:ln,onSelectNone:mn,onSelectMultiple:Fn,columnWidth:Xn,type:li,selections:si,fixed:Ei,renderCell:Ii,hideSelectAll:Xi,checkStrictly:ir=!0}=Ce||{},{prefixCls:dr,data:Xr,pageData:$i,getRecordByKey:Hn,getRowKey:no,expandType:ro,childrenColumnName:tr,locale:pr,getPopupContainer:Ar}=ge,[qi,Nr]=(0,Nu.Z)(en||un||qa,{value:en}),oo=Nt.useRef(new Map),po=(0,Nt.useCallback)(wo=>{if(Ve){const ss=new Map;wo.forEach(cs=>{let Lo=Hn(cs);!Lo&&oo.current.has(cs)&&(Lo=oo.current.get(cs)),ss.set(cs,Lo)}),oo.current=ss}},[Hn,Ve]);Nt.useEffect(()=>{po(qi)},[qi]);const{keyEntities:So}=(0,Nt.useMemo)(()=>{if(ir)return{keyEntities:null};let wo=Xr;if(Ve){const ss=new Set(Xr.map((Lo,ts)=>no(Lo,ts))),cs=Array.from(oo.current).reduce((Lo,ts)=>{let[xo,Ls]=ts;return ss.has(xo)?Lo:Lo.concat(Ls)},[]);wo=[].concat((0,co.Z)(wo),(0,co.Z)(cs))}return(0,ya.I8)(wo,{externalGetKey:no,childrenPropName:tr})},[Xr,no,ir,tr,Ve]),Qr=(0,Nt.useMemo)(()=>Nl(tr,$i),[tr,$i]),Xo=(0,Nt.useMemo)(()=>{const wo=new Map;return Qr.forEach((ss,cs)=>{const Lo=no(ss,cs),ts=(hn?hn(ss):null)||{};wo.set(Lo,ts)}),wo},[Qr,no,hn]),Po=(0,Nt.useCallback)(wo=>{var ss;return!!(!((ss=Xo.get(no(wo)))===null||ss===void 0)&&ss.disabled)},[Xo,no]),[hs,so]=(0,Nt.useMemo)(()=>{if(ir)return[qi||[],[]];const{checkedKeys:wo,halfCheckedKeys:ss}=(0,Bs.S)(qi,!0,So,Po);return[wo||[],ss]},[qi,ir,So,Po]),Pa=(0,Nt.useMemo)(()=>{const wo=li==="radio"?hs.slice(0,1):hs;return new Set(wo)},[hs,li]),ks=(0,Nt.useMemo)(()=>li==="radio"?new Set:new Set(so),[so,li]),[Ps,Eo]=(0,Nt.useState)(null);Nt.useEffect(()=>{Ce||Nr(qa)},[!!Ce]);const Fs=(0,Nt.useCallback)((wo,ss)=>{let cs,Lo;po(wo),Ve?(cs=wo,Lo=wo.map(ts=>oo.current.get(ts))):(cs=[],Lo=[],wo.forEach(ts=>{const xo=Hn(ts);xo!==void 0&&(cs.push(ts),Lo.push(xo))})),Nr(cs),Dn==null||Dn(cs,Lo,{type:ss})},[Nr,Hn,Dn,Ve]),Va=(0,Nt.useCallback)((wo,ss,cs,Lo)=>{if(qn){const ts=cs.map(xo=>Hn(xo));qn(Hn(wo),ss,ts,Lo)}Fs(cs,"single")},[qn,Hn,Fs]),Ds=(0,Nt.useMemo)(()=>!si||Xi?null:(si===!0?[rl,Ha,Aa]:si).map(ss=>ss===rl?{key:"all",text:pr.selectionAll,onSelect(){Fs(Xr.map((cs,Lo)=>no(cs,Lo)).filter(cs=>{const Lo=Xo.get(cs);return!(Lo!=null&&Lo.disabled)||Pa.has(cs)}),"all")}}:ss===Ha?{key:"invert",text:pr.selectInvert,onSelect(){const cs=new Set(Pa);$i.forEach((ts,xo)=>{const Ls=no(ts,xo),Rs=Xo.get(Ls);Rs!=null&&Rs.disabled||(cs.has(Ls)?cs.delete(Ls):cs.add(Ls))});const Lo=Array.from(cs);ln&&ln(Lo),Fs(Lo,"invert")}}:ss===Aa?{key:"none",text:pr.selectNone,onSelect(){mn==null||mn(),Fs(Array.from(Pa).filter(cs=>{const Lo=Xo.get(cs);return Lo==null?void 0:Lo.disabled}),"none")}}:ss).map(ss=>Object.assign(Object.assign({},ss),{onSelect:function(){for(var cs,Lo,ts=arguments.length,xo=new Array(ts),Ls=0;Ls<ts;Ls++)xo[Ls]=arguments[Ls];(Lo=ss.onSelect)===null||Lo===void 0||(cs=Lo).call.apply(cs,[ss].concat(xo)),Eo(null)}})),[si,Pa,$i,no,ln,Fs]);return[(0,Nt.useCallback)(wo=>{var ss;if(!Ce)return wo.filter(wa=>wa!==Ja);let cs=(0,co.Z)(wo);const Lo=new Set(Pa),ts=Qr.map(no).filter(wa=>!Xo.get(wa).disabled),xo=ts.every(wa=>Lo.has(wa)),Ls=ts.some(wa=>Lo.has(wa)),Rs=()=>{const wa=[];xo?ts.forEach(Ea=>{Lo.delete(Ea),wa.push(Ea)}):ts.forEach(Ea=>{Lo.has(Ea)||(Lo.add(Ea),wa.push(Ea))});const na=Array.from(Lo);Te==null||Te(!xo,na.map(Ea=>Hn(Ea)),wa.map(Ea=>Hn(Ea))),Fs(na,"all"),Eo(null)};let ea;if(li!=="radio"){let wa;if(Ds){const Hs={getPopupContainer:Ar,items:Ds.map((Fa,El)=>{const{key:ku,text:fu,onSelect:Tu}=Fa;return{key:ku!=null?ku:El,onClick:()=>{Tu==null||Tu(ts)},label:fu}})};wa=Nt.createElement("div",{className:`${dr}-selection-extra`},Nt.createElement(cu.Z,{menu:Hs,getPopupContainer:Ar},Nt.createElement("span",null,Nt.createElement(Kc.Z,null))))}const na=Qr.map((Hs,Fa)=>{const El=no(Hs,Fa),ku=Xo.get(El)||{};return Object.assign({checked:Lo.has(El)},ku)}).filter(Hs=>{let{disabled:Fa}=Hs;return Fa}),Ea=!!na.length&&na.length===Qr.length,Za=Ea&&na.every(Hs=>{let{checked:Fa}=Hs;return Fa}),ol=Ea&&na.some(Hs=>{let{checked:Fa}=Hs;return Fa});ea=!Xi&&Nt.createElement("div",{className:`${dr}-selection`},Nt.createElement(Gs.default,{checked:Ea?Za:!!Qr.length&&xo,indeterminate:Ea?!Za&&ol:!xo&&Ls,onChange:Rs,disabled:Qr.length===0||Ea,"aria-label":wa?"Custom selection":"Select all",skipGroup:!0}),wa)}let Ql;li==="radio"?Ql=(wa,na,Ea)=>{const Za=no(na,Ea),ol=Lo.has(Za);return{node:Nt.createElement(Rr.ZP,Object.assign({},Xo.get(Za),{checked:ol,onClick:Hs=>Hs.stopPropagation(),onChange:Hs=>{Lo.has(Za)||Va(Za,!0,[Za],Hs.nativeEvent)}})),checked:ol}}:Ql=(wa,na,Ea)=>{var Za;const ol=no(na,Ea),Hs=Lo.has(ol),Fa=ks.has(ol),El=Xo.get(ol);let ku;return ro==="nest"?ku=Fa:ku=(Za=El==null?void 0:El.indeterminate)!==null&&Za!==void 0?Za:Fa,{node:Nt.createElement(Gs.default,Object.assign({},El,{indeterminate:ku,checked:Hs,skipGroup:!0,onClick:fu=>fu.stopPropagation(),onChange:fu=>{let{nativeEvent:Tu}=fu;const{shiftKey:Wu}=Tu;let oh=-1,sh=-1;if(Wu&&ir){const Qa=new Set([Ps,ol]);ts.some((xu,xl)=>{if(Qa.has(xu))if(oh===-1)oh=xl;else return sh=xl,!0;return!1})}if(sh!==-1&&oh!==sh&&ir){const Qa=ts.slice(oh,sh+1),xu=[];Hs?Qa.forEach(cl=>{Lo.has(cl)&&(xu.push(cl),Lo.delete(cl))}):Qa.forEach(cl=>{Lo.has(cl)||(xu.push(cl),Lo.add(cl))});const xl=Array.from(Lo);Fn==null||Fn(!Hs,xl.map(cl=>Hn(cl)),xu.map(cl=>Hn(cl))),Fs(xl,"multiple")}else{const Qa=hs;if(ir){const xu=Hs?(0,Gc._5)(Qa,ol):(0,Gc.L0)(Qa,ol);Va(ol,!Hs,xu,Tu)}else{const xu=(0,Bs.S)([].concat((0,co.Z)(Qa),[ol]),!0,So,Po),{checkedKeys:xl,halfCheckedKeys:cl}=xu;let gh=xl;if(Hs){const ec=new Set(xl);ec.delete(ol),gh=(0,Bs.S)(Array.from(ec),{checked:!1,halfCheckedKeys:cl},So,Po).checkedKeys}Va(ol,!Hs,gh,Tu)}}Eo(Hs?null:ol)}})),checked:Hs}};const ds=(wa,na,Ea)=>{const{node:Za,checked:ol}=Ql(wa,na,Ea);return Ii?Ii(ol,na,Ea,Za):Za};if(!cs.includes(Ja))if(cs.findIndex(wa=>{var na;return((na=wa[kr])===null||na===void 0?void 0:na.columnType)==="EXPAND_COLUMN"})===0){const[wa,...na]=cs;cs=[wa,Ja].concat((0,co.Z)(na))}else cs=[Ja].concat((0,co.Z)(cs));const Xl=cs.indexOf(Ja);cs=cs.filter((wa,na)=>wa!==Ja||na===Xl);const fa=cs[Xl-1],ml=cs[Xl+1];let ho=Ei;ho===void 0&&((ml==null?void 0:ml.fixed)!==void 0?ho=ml.fixed:(fa==null?void 0:fa.fixed)!==void 0&&(ho=fa.fixed)),ho&&fa&&((ss=fa[kr])===null||ss===void 0?void 0:ss.columnType)==="EXPAND_COLUMN"&&fa.fixed===void 0&&(fa.fixed=ho);const Oa=Wt()(`${dr}-selection-col`,{[`${dr}-selection-col-with-dropdown`]:si&&li==="checkbox"}),Iu={fixed:ho,width:Xn,className:`${dr}-selection-column`,title:Ce.columnTitle||ea,render:ds,onCell:Ce.onCell,[kr]:{className:Oa}};return cs.map(wa=>wa===Ja?Iu:wa)},[no,Qr,Ce,hs,Pa,ks,Xn,Ds,ro,Ps,Xo,Fn,Va,Po]),Pa]},hl=bt(89489),Ud=bt(59477),nd=bt(6848);const dh="ascend",zo="descend";function sA(ge){return typeof ge.sorter=="object"&&typeof ge.sorter.multiple=="number"?ge.sorter.multiple:!1}function En(ge){return typeof ge=="function"?ge:ge&&typeof ge=="object"&&ge.compare?ge.compare:!1}function Vi(ge,Ce){return Ce?ge[ge.indexOf(Ce)+1]:ge[0]}function aA(ge,Ce,Ve){let en=[];function un(hn,Dn){en.push({column:hn,key:ka(hn,Dn),multiplePriority:sA(hn),sortOrder:hn.sortOrder})}return(ge||[]).forEach((hn,Dn)=>{const qn=Ml(Dn,Ve);hn.children?("sortOrder"in hn&&un(hn,qn),en=[].concat((0,co.Z)(en),(0,co.Z)(aA(hn.children,Ce,qn)))):hn.sorter&&("sortOrder"in hn?un(hn,qn):Ce&&hn.defaultSortOrder&&en.push({column:hn,key:ka(hn,qn),multiplePriority:sA(hn),sortOrder:hn.defaultSortOrder}))}),en}function tc(ge,Ce,Ve,en,un,hn,Dn,qn){return(Ce||[]).map((Te,ln)=>{const mn=Ml(ln,qn);let Fn=Te;if(Fn.sorter){const Xn=Fn.sortDirections||un,li=Fn.showSorterTooltip===void 0?Dn:Fn.showSorterTooltip,si=ka(Fn,mn),Ei=Ve.find(ro=>{let{key:tr}=ro;return tr===si}),Ii=Ei?Ei.sortOrder:null,Xi=Vi(Xn,Ii);let ir;if(Te.sortIcon)ir=Te.sortIcon({sortOrder:Ii});else{const ro=Xn.includes(dh)&&Nt.createElement(Ud.Z,{className:Wt()(`${ge}-column-sorter-up`,{active:Ii===dh})}),tr=Xn.includes(zo)&&Nt.createElement(hl.Z,{className:Wt()(`${ge}-column-sorter-down`,{active:Ii===zo})});ir=Nt.createElement("span",{className:Wt()(`${ge}-column-sorter`,{[`${ge}-column-sorter-full`]:!!(ro&&tr)})},Nt.createElement("span",{className:`${ge}-column-sorter-inner`,"aria-hidden":"true"},ro,tr))}const{cancelSort:dr,triggerAsc:Xr,triggerDesc:$i}=hn||{};let Hn=dr;Xi===zo?Hn=$i:Xi===dh&&(Hn=Xr);const no=typeof li=="object"?li:{title:Hn};Fn=Object.assign(Object.assign({},Fn),{className:Wt()(Fn.className,{[`${ge}-column-sort`]:Ii}),title:ro=>{const tr=Nt.createElement("div",{className:`${ge}-column-sorters`},Nt.createElement("span",{className:`${ge}-column-title`},Ga(Te.title,ro)),ir);return li?Nt.createElement(nd.Z,Object.assign({},no),tr):tr},onHeaderCell:ro=>{const tr=Te.onHeaderCell&&Te.onHeaderCell(ro)||{},pr=tr.onClick,Ar=tr.onKeyDown;tr.onClick=oo=>{en({column:Te,key:si,sortOrder:Xi,multiplePriority:sA(Te)}),pr==null||pr(oo)},tr.onKeyDown=oo=>{oo.keyCode===fr.Z.ENTER&&(en({column:Te,key:si,sortOrder:Xi,multiplePriority:sA(Te)}),Ar==null||Ar(oo))};const qi=Ss(Te.title,{}),Nr=qi==null?void 0:qi.toString();return Ii?tr["aria-sort"]=Ii==="ascend"?"ascending":"descending":tr["aria-label"]=Nr||"",tr.className=Wt()(tr.className,`${ge}-column-has-sorters`),tr.tabIndex=0,Te.ellipsis&&(tr.title=(qi!=null?qi:"").toString()),tr}})}return"children"in Fn&&(Fn=Object.assign(Object.assign({},Fn),{children:tc(ge,Fn.children,Ve,en,un,hn,Dn,mn)})),Fn})}function Ru(ge){const{column:Ce,sortOrder:Ve}=ge;return{column:Ce,order:Ve,field:Ce.dataIndex,columnKey:Ce.key}}function _u(ge){const Ce=ge.filter(Ve=>{let{sortOrder:en}=Ve;return en}).map(Ru);return Ce.length===0&&ge.length?Object.assign(Object.assign({},Ru(ge[ge.length-1])),{column:void 0}):Ce.length<=1?Ce[0]||{}:Ce}function Ah(ge,Ce,Ve){const en=Ce.slice().sort((Dn,qn)=>qn.multiplePriority-Dn.multiplePriority),un=ge.slice(),hn=en.filter(Dn=>{let{column:{sorter:qn},sortOrder:Te}=Dn;return En(qn)&&Te});return hn.length?un.sort((Dn,qn)=>{for(let Te=0;Te<hn.length;Te+=1){const ln=hn[Te],{column:{sorter:mn},sortOrder:Fn}=ln,Xn=En(mn);if(Xn&&Fn){const li=Xn(Dn,qn,Fn);if(li!==0)return Fn===dh?li:-li}}return 0}).map(Dn=>{const qn=Dn[Ve];return qn?Object.assign(Object.assign({},Dn),{[Ve]:Ah(qn,Ce,Ve)}):Dn}):un}function _A(ge){let{prefixCls:Ce,mergedColumns:Ve,onSorterChange:en,sortDirections:un,tableLocale:hn,showSorterTooltip:Dn}=ge;const[qn,Te]=Nt.useState(aA(Ve,!0)),ln=Nt.useMemo(()=>{let si=!0;const Ei=aA(Ve,!1);if(!Ei.length)return qn;const Ii=[];function Xi(dr){si?Ii.push(dr):Ii.push(Object.assign(Object.assign({},dr),{sortOrder:null}))}let ir=null;return Ei.forEach(dr=>{ir===null?(Xi(dr),dr.sortOrder&&(dr.multiplePriority===!1?si=!1:ir=!0)):(ir&&dr.multiplePriority!==!1||(si=!1),Xi(dr))}),Ii},[Ve,qn]),mn=Nt.useMemo(()=>{const si=ln.map(Ei=>{let{column:Ii,sortOrder:Xi}=Ei;return{column:Ii,order:Xi}});return{sortColumns:si,sortColumn:si[0]&&si[0].column,sortOrder:si[0]&&si[0].order}},[ln]);function Fn(si){let Ei;si.multiplePriority===!1||!ln.length||ln[0].multiplePriority===!1?Ei=[si]:Ei=[].concat((0,co.Z)(ln.filter(Ii=>{let{key:Xi}=Ii;return Xi!==si.key})),[si]),Te(Ei),en(_u(Ei),Ei)}return[si=>tc(Ce,si,ln,Fn,un,hn,Dn),ln,mn,()=>_u(ln)]}function id(ge,Ce){return ge.map(Ve=>{const en=Object.assign({},Ve);return en.title=Ga(Ve.title,Ce),"children"in en&&(en.children=id(en.children,Ce)),en})}function tl(ge){return[Nt.useCallback(Ve=>id(Ve,ge),[ge])]}var As=di((ge,Ce)=>{const{_renderTimes:Ve}=ge,{_renderTimes:en}=Ce;return Ve!==en}),Ju=ra((ge,Ce)=>{const{_renderTimes:Ve}=ge,{_renderTimes:en}=Ce;return Ve!==en}),Gu=bt(64993),Bl=bt(17313),oa=bt(83116),Au=bt(37613),wl=ge=>{const{componentCls:Ce}=ge,Ve=`${ge.lineWidth}px ${ge.lineType} ${ge.tableBorderColor}`,en=(un,hn,Dn)=>({[`&${Ce}-${un}`]:{[`> ${Ce}-container`]:{[`> ${Ce}-content, > ${Ce}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Ce}-expanded-row-fixed`]:{margin:`-${hn}px -${Dn+ge.lineWidth}px`}}}}}});return{[`${Ce}-wrapper`]:{[`${Ce}${Ce}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Ce}-title`]:{border:Ve,borderBottom:0},[`> ${Ce}-container`]:{borderInlineStart:Ve,borderTop:Ve,[`
|
|
|
> ${Ce}-content,
|
|
|
> ${Ce}-header,
|
|
|
> ${Ce}-body,
|
|
|
> ${Ce}-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:Ve},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Ve},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${Ce}-cell-fix-right-first::after`]:{borderInlineEnd:Ve}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Ce}-expanded-row-fixed`]:{margin:`-${ge.tablePaddingVertical}px -${ge.tablePaddingHorizontal+ge.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:ge.lineWidth,bottom:0,borderInlineEnd:Ve,content:'""'}}}}}},[`&${Ce}-scroll-horizontal`]:{[`> ${Ce}-container > ${Ce}-body`]:{"> table > tbody":{[`
|
|
|
> tr${Ce}-expanded-row,
|
|
|
> tr${Ce}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},en("middle",ge.tablePaddingVerticalMiddle,ge.tablePaddingHorizontalMiddle)),en("small",ge.tablePaddingVerticalSmall,ge.tablePaddingHorizontalSmall)),{[`> ${Ce}-footer`]:{border:Ve,borderTop:0}}),[`${Ce}-cell`]:{[`${Ce}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${ge.lineWidth}px 0 ${ge.lineWidth}px ${ge.tableHeaderBg}`}},[`${Ce}-bordered ${Ce}-cell-scrollbar`]:{borderInlineEnd:Ve}}}},wu=ge=>{const{componentCls:Ce}=ge;return{[`${Ce}-wrapper`]:{[`${Ce}-cell-ellipsis`]:Object.assign(Object.assign({},Bl.vS),{wordBreak:"keep-all",[`
|
|
|
&${Ce}-cell-fix-left-last,
|
|
|
&${Ce}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${Ce}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Ce}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Ma=ge=>{const{componentCls:Ce}=ge;return{[`${Ce}-wrapper`]:{[`${Ce}-tbody > tr${Ce}-placeholder`]:{textAlign:"center",color:ge.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:ge.colorBgContainer}}}}},qu=bt(15969),pl=ge=>{const{componentCls:Ce,antCls:Ve,controlInteractiveSize:en,motionDurationSlow:un,lineWidth:hn,paddingXS:Dn,lineType:qn,tableBorderColor:Te,tableExpandIconBg:ln,tableExpandColumnWidth:mn,borderRadius:Fn,fontSize:Xn,fontSizeSM:li,lineHeight:si,tablePaddingVertical:Ei,tablePaddingHorizontal:Ii,tableExpandedRowBg:Xi,paddingXXS:ir}=ge,dr=en/2-hn,Xr=dr*2+hn*3,$i=`${hn}px ${qn} ${Te}`,Hn=ir-hn;return{[`${Ce}-wrapper`]:{[`${Ce}-expand-icon-col`]:{width:mn},[`${Ce}-row-expand-icon-cell`]:{textAlign:"center",[`${Ce}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Ce}-row-indent`]:{height:1,float:"left"},[`${Ce}-row-expand-icon`]:Object.assign(Object.assign({},(0,qu.N)(ge)),{position:"relative",float:"left",boxSizing:"border-box",width:Xr,height:Xr,padding:0,color:"inherit",lineHeight:`${Xr}px`,background:ln,border:$i,borderRadius:Fn,transform:`scale(${en/Xr})`,transition:`all ${un}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${un} ease-out`,content:'""'},"&::before":{top:dr,insetInlineEnd:Hn,insetInlineStart:Hn,height:hn},"&::after":{top:Hn,bottom:Hn,insetInlineStart:dr,width:hn,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"}}),[`${Ce}-row-indent + ${Ce}-row-expand-icon`]:{marginTop:(Xn*si-hn*3)/2-Math.ceil((li*1.4-hn*3)/2),marginInlineEnd:Dn},[`tr${Ce}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Xi}},[`${Ve}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Ce}-expanded-row-fixed`]:{position:"relative",margin:`-${Ei}px -${Ii}px`,padding:`${Ei}px ${Ii}px`}}}},Et=ge=>{const{componentCls:Ce,antCls:Ve,iconCls:en,tableFilterDropdownWidth:un,tableFilterDropdownSearchWidth:hn,paddingXXS:Dn,paddingXS:qn,colorText:Te,lineWidth:ln,lineType:mn,tableBorderColor:Fn,tableHeaderIconColor:Xn,fontSizeSM:li,tablePaddingHorizontal:si,borderRadius:Ei,motionDurationSlow:Ii,colorTextDescription:Xi,colorPrimary:ir,tableHeaderFilterActiveBg:dr,colorTextDisabled:Xr,tableFilterDropdownBg:$i,tableFilterDropdownHeight:Hn,controlItemBgHover:no,controlItemBgActive:ro,boxShadowSecondary:tr,filterDropdownMenuBg:pr}=ge,Ar=`${Ve}-dropdown`,qi=`${Ce}-filter-dropdown`,Nr=`${Ve}-tree`,oo=`${ln}px ${mn} ${Fn}`;return[{[`${Ce}-wrapper`]:{[`${Ce}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Ce}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Dn,marginInline:`${Dn}px ${-si/2}px`,padding:`0 ${Dn}px`,color:Xn,fontSize:li,borderRadius:Ei,cursor:"pointer",transition:`all ${Ii}`,"&:hover":{color:Xi,background:dr},"&.active":{color:ir}}}},{[`${Ve}-dropdown`]:{[qi]:Object.assign(Object.assign({},(0,Bl.Wf)(ge)),{minWidth:un,backgroundColor:$i,borderRadius:Ei,boxShadow:tr,overflow:"hidden",[`${Ar}-menu`]:{maxHeight:Hn,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:pr,"&:empty::after":{display:"block",padding:`${qn}px 0`,color:Xr,fontSize:li,textAlign:"center",content:'"Not Found"'}},[`${qi}-tree`]:{paddingBlock:`${qn}px 0`,paddingInline:qn,[Nr]:{padding:0},[`${Nr}-treenode ${Nr}-node-content-wrapper:hover`]:{backgroundColor:no},[`${Nr}-treenode-checkbox-checked ${Nr}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:ro}}},[`${qi}-search`]:{padding:qn,borderBottom:oo,"&-input":{input:{minWidth:hn},[en]:{color:Xr}}},[`${qi}-checkall`]:{width:"100%",marginBottom:Dn,marginInlineStart:Dn},[`${qi}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${qn-ln}px ${qn}px`,overflow:"hidden",borderTop:oo}})}},{[`${Ve}-dropdown ${qi}, ${qi}-submenu`]:{[`${Ve}-checkbox-wrapper + span`]:{paddingInlineStart:qn,color:Te},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Ft=ge=>{const{componentCls:Ce,lineWidth:Ve,colorSplit:en,motionDurationSlow:un,zIndexTableFixed:hn,tableBg:Dn,zIndexTableSticky:qn}=ge,Te=en;return{[`${Ce}-wrapper`]:{[`
|
|
|
${Ce}-cell-fix-left,
|
|
|
${Ce}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:hn,background:Dn},[`
|
|
|
${Ce}-cell-fix-left-first::after,
|
|
|
${Ce}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Ve,width:30,transform:"translateX(100%)",transition:`box-shadow ${un}`,content:'""',pointerEvents:"none"},[`${Ce}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${Ce}-cell-fix-right-first::after,
|
|
|
${Ce}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-Ve,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${un}`,content:'""',pointerEvents:"none"},[`${Ce}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:qn+1,width:30,transition:`box-shadow ${un}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Ce}-ping-left`]:{[`&:not(${Ce}-has-fix-left) ${Ce}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Te}`}},[`
|
|
|
${Ce}-cell-fix-left-first::after,
|
|
|
${Ce}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${Te}`},[`${Ce}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Ce}-ping-right`]:{[`&:not(${Ce}-has-fix-right) ${Ce}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Te}`}},[`
|
|
|
${Ce}-cell-fix-right-first::after,
|
|
|
${Ce}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${Te}`}}}}},se=ge=>{const{componentCls:Ce,antCls:Ve}=ge;return{[`${Ce}-wrapper`]:{[`${Ce}-pagination${Ve}-pagination`]:{margin:`${ge.margin}px 0`},[`${Ce}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:ge.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},pe=ge=>{const{componentCls:Ce,tableRadius:Ve}=ge;return{[`${Ce}-wrapper`]:{[Ce]:{[`${Ce}-title, ${Ce}-header`]:{borderRadius:`${Ve}px ${Ve}px 0 0`},[`${Ce}-title + ${Ce}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Ce}-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:Ve,borderStartEndRadius:Ve,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Ve},"> *:last-child":{borderStartEndRadius:Ve}}},"&-footer":{borderRadius:`0 0 ${Ve}px ${Ve}px`}}}}},Ee=ge=>{const{componentCls:Ce}=ge;return{[`${Ce}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Ce}-pagination-left`]:{justifyContent:"flex-end"},[`${Ce}-pagination-right`]:{justifyContent:"flex-start"},[`${Ce}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Ce}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Ce}-row-indent`]:{float:"right"}}}}},gn=ge=>{const{componentCls:Ce,antCls:Ve,iconCls:en,fontSizeIcon:un,padding:hn,paddingXS:Dn,tableHeaderIconColor:qn,tableHeaderIconColorHover:Te,tableSelectionColumnWidth:ln}=ge;return{[`${Ce}-wrapper`]:{[`${Ce}-selection-col`]:{width:ln,[`&${Ce}-selection-col-with-dropdown`]:{width:ln+un+hn/4}},[`${Ce}-bordered ${Ce}-selection-col`]:{width:ln+Dn*2,[`&${Ce}-selection-col-with-dropdown`]:{width:ln+un+hn/4+Dn*2}},[`
|
|
|
table tr th${Ce}-selection-column,
|
|
|
table tr td${Ce}-selection-column
|
|
|
`]:{paddingInlineEnd:ge.paddingXS,paddingInlineStart:ge.paddingXS,textAlign:"center",[`${Ve}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Ce}-selection-column${Ce}-cell-fix-left`]:{zIndex:ge.zIndexTableFixed+1},[`table tr th${Ce}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Ce}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Ce}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${ge.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${ge.tablePaddingHorizontal/4}px`,[en]:{color:qn,fontSize:un,verticalAlign:"baseline","&:hover":{color:Te}}}}}},In=ge=>{const{componentCls:Ce}=ge,Ve=(en,un,hn,Dn)=>({[`${Ce}${Ce}-${en}`]:{fontSize:Dn,[`
|
|
|
${Ce}-title,
|
|
|
${Ce}-footer,
|
|
|
${Ce}-cell,
|
|
|
${Ce}-thead > tr > th,
|
|
|
${Ce}-tbody > tr > th,
|
|
|
${Ce}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${un}px ${hn}px`},[`${Ce}-filter-trigger`]:{marginInlineEnd:`-${hn/2}px`},[`${Ce}-expanded-row-fixed`]:{margin:`-${un}px -${hn}px`},[`${Ce}-tbody`]:{[`${Ce}-wrapper:only-child ${Ce}`]:{marginBlock:`-${un}px`,marginInline:`${ge.tableExpandColumnWidth-hn}px -${hn}px`}},[`${Ce}-selection-column`]:{paddingInlineStart:`${hn/4}px`}}});return{[`${Ce}-wrapper`]:Object.assign(Object.assign({},Ve("middle",ge.tablePaddingVerticalMiddle,ge.tablePaddingHorizontalMiddle,ge.tableFontSizeMiddle)),Ve("small",ge.tablePaddingVerticalSmall,ge.tablePaddingHorizontalSmall,ge.tableFontSizeSmall))}},ci=ge=>{const{componentCls:Ce,marginXXS:Ve,fontSizeIcon:en,tableHeaderIconColor:un,tableHeaderIconColorHover:hn}=ge;return{[`${Ce}-wrapper`]:{[`${Ce}-thead th${Ce}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${ge.motionDurationSlow}`,"&:hover":{background:ge.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:ge.colorPrimary},[`
|
|
|
&${Ce}-cell-fix-left:hover,
|
|
|
&${Ce}-cell-fix-right:hover
|
|
|
`]:{background:ge.tableFixedHeaderSortActiveBg}},[`${Ce}-thead th${Ce}-column-sort`]:{background:ge.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Ce}-column-sort`]:{background:ge.tableBodySortBg},[`${Ce}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${Ce}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Ce}-column-sorter`]:{marginInlineStart:Ve,color:un,fontSize:0,transition:`color ${ge.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:en,"&.active":{color:ge.colorPrimary}},[`${Ce}-column-sorter-up + ${Ce}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Ce}-column-sorters:hover ${Ce}-column-sorter`]:{color:hn}}}},mi=ge=>{const{componentCls:Ce,opacityLoading:Ve,tableScrollThumbBg:en,tableScrollThumbBgHover:un,tableScrollThumbSize:hn,tableScrollBg:Dn,zIndexTableSticky:qn,stickyScrollBarBorderRadius:Te}=ge,ln=`${ge.lineWidth}px ${ge.lineType} ${ge.tableBorderColor}`;return{[`${Ce}-wrapper`]:{[`${Ce}-sticky`]:{"&-holder":{position:"sticky",zIndex:qn,background:ge.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${hn}px !important`,zIndex:qn,display:"flex",alignItems:"center",background:Dn,borderTop:ln,opacity:Ve,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:hn,backgroundColor:en,borderRadius:Te,transition:`all ${ge.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:un}}}}}}},Ai=ge=>{const{componentCls:Ce,lineWidth:Ve,tableBorderColor:en}=ge,un=`${Ve}px ${ge.lineType} ${en}`;return{[`${Ce}-wrapper`]:{[`${Ce}-summary`]:{position:"relative",zIndex:ge.zIndexTableFixed,background:ge.tableBg,"> tr":{"> th, > td":{borderBottom:un}}},[`div${Ce}-summary`]:{boxShadow:`0 -${Ve}px 0 ${en}`}}}},sr=ge=>{const{componentCls:Ce}=ge,Ve=`${ge.lineWidth}px ${ge.lineType} ${ge.tableBorderColor}`,en=`${Ce}-expanded-row-cell`;return{[`${Ce}-wrapper`]:{[`${Ce}-tbody-virtual`]:{[`${Ce}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${Ce}-cell`]:{borderBottom:Ve},[`${Ce}-expanded-row`]:{[`${en}${en}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${ge.lineWidth}px)`,borderInlineEnd:"none"}}},[`${Ce}-bordered`]:{[`${Ce}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Ve,position:"absolute"},[`${Ce}-cell`]:{borderInlineEnd:Ve,[`&${Ce}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-ge.lineWidth,borderInlineStart:Ve}}}}}}};const Er=ge=>{const{componentCls:Ce,fontWeightStrong:Ve,tablePaddingVertical:en,tablePaddingHorizontal:un,lineWidth:hn,lineType:Dn,tableBorderColor:qn,tableFontSize:Te,tableBg:ln,tableRadius:mn,tableHeaderTextColor:Fn,motionDurationMid:Xn,tableHeaderBg:li,tableHeaderCellSplitColor:si,tableRowHoverBg:Ei,tableSelectedRowBg:Ii,tableSelectedRowHoverBg:Xi,tableFooterTextColor:ir,tableFooterBg:dr,paddingContentVerticalLG:Xr}=ge,$i=`${hn}px ${Dn} ${qn}`;return{[`${Ce}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Bl.dF)()),{[Ce]:Object.assign(Object.assign({},(0,Bl.Wf)(ge)),{fontSize:Te,background:ln,borderRadius:`${mn}px ${mn}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${mn}px ${mn}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${Ce}-cell,
|
|
|
${Ce}-thead > tr > th,
|
|
|
${Ce}-tbody > tr > th,
|
|
|
${Ce}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${Xr}px ${un}px`,overflowWrap:"break-word"},[`${Ce}-title`]:{padding:`${en}px ${un}px`},[`${Ce}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:Fn,fontWeight:Ve,textAlign:"start",background:li,borderBottom:$i,transition:`background ${Xn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Ce}-selection-column):not(${Ce}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:si,transform:"translateY(-50%)",transition:`background-color ${Xn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Ce}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Xn}, border-color ${Xn}`,borderBottom:$i,[`
|
|
|
> ${Ce}-wrapper:only-child,
|
|
|
> ${Ce}-expanded-row-fixed > ${Ce}-wrapper:only-child
|
|
|
`]:{[Ce]:{marginBlock:`-${en}px`,marginInline:`${ge.tableExpandColumnWidth-un}px -${un}px`,[`${Ce}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Fn,fontWeight:Ve,textAlign:"start",background:li,borderBottom:$i,transition:`background ${Xn} ease`},[`
|
|
|
&${Ce}-row:hover > th,
|
|
|
&${Ce}-row:hover > td,
|
|
|
> th${Ce}-cell-row-hover,
|
|
|
> td${Ce}-cell-row-hover
|
|
|
`]:{background:Ei},[`&${Ce}-row-selected`]:{"> th, > td":{background:Ii},"&:hover > th, &:hover > td":{background:Xi}}}},[`${Ce}-footer`]:{padding:`${en}px ${un}px`,color:ir,background:dr}})}};var to=(0,oa.Z)("Table",ge=>{const{colorTextHeading:Ce,colorSplit:Ve,colorIcon:en,colorIconHover:un,opacityLoading:hn,colorBgContainer:Dn,controlInteractiveSize:qn,headerBg:Te,headerColor:ln,headerSortActiveBg:mn,headerSortHoverBg:Fn,bodySortBg:Xn,rowHoverBg:li,rowSelectedBg:si,rowSelectedHoverBg:Ei,rowExpandedBg:Ii,cellPaddingBlock:Xi,cellPaddingInline:ir,cellPaddingBlockMD:dr,cellPaddingInlineMD:Xr,cellPaddingBlockSM:$i,cellPaddingInlineSM:Hn,borderColor:no,footerBg:ro,footerColor:tr,headerBorderRadius:pr,cellFontSize:Ar,cellFontSizeMD:qi,cellFontSizeSM:Nr,headerSplitColor:oo,fixedHeaderSortActiveBg:po,headerFilterHoverBg:So,filterDropdownBg:Qr,expandIconBg:Xo,selectionColumnWidth:Po,stickyScrollBarBg:hs}=ge,so=new Gu.C(en),Pa=new Gu.C(un),ks=2,Ps=(0,Au.TS)(ge,{tableFontSize:Ar,tableBg:Dn,tableRadius:pr,tablePaddingVertical:Xi,tablePaddingHorizontal:ir,tablePaddingVerticalMiddle:dr,tablePaddingHorizontalMiddle:Xr,tablePaddingVerticalSmall:$i,tablePaddingHorizontalSmall:Hn,tableBorderColor:no,tableHeaderTextColor:ln,tableHeaderBg:Te,tableFooterTextColor:tr,tableFooterBg:ro,tableHeaderCellSplitColor:oo,tableHeaderSortBg:mn,tableHeaderSortHoverBg:Fn,tableHeaderIconColor:so.clone().setAlpha(so.getAlpha()*hn).toRgbString(),tableHeaderIconColorHover:Pa.clone().setAlpha(Pa.getAlpha()*hn).toRgbString(),tableBodySortBg:Xn,tableFixedHeaderSortActiveBg:po,tableHeaderFilterActiveBg:So,tableFilterDropdownBg:Qr,tableRowHoverBg:li,tableSelectedRowBg:si,tableSelectedRowHoverBg:Ei,zIndexTableFixed:ks,zIndexTableSticky:ks+1,tableFontSizeMiddle:qi,tableFontSizeSmall:Nr,tableSelectionColumnWidth:Po,tableExpandIconBg:Xo,tableExpandColumnWidth:qn+2*ge.padding,tableExpandedRowBg:Ii,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:hs,tableScrollThumbBgHover:Ce,tableScrollBg:Ve});return[Er(Ps),se(Ps),Ai(Ps),ci(Ps),Et(Ps),wl(Ps),pe(Ps),pl(Ps),Ai(Ps),Ma(Ps),gn(Ps),Ft(Ps),mi(Ps),wu(Ps),In(Ps),Ee(Ps),sr(Ps)]},ge=>{const{colorFillAlter:Ce,colorBgContainer:Ve,colorTextHeading:en,colorFillSecondary:un,colorFillContent:hn,controlItemBgActive:Dn,controlItemBgActiveHover:qn,padding:Te,paddingSM:ln,paddingXS:mn,colorBorderSecondary:Fn,borderRadiusLG:Xn,fontSize:li,controlHeight:si,colorTextPlaceholder:Ei}=ge,Ii=new Gu.C(un).onBackground(Ve).toHexShortString(),Xi=new Gu.C(hn).onBackground(Ve).toHexShortString(),ir=new Gu.C(Ce).onBackground(Ve).toHexShortString();return{headerBg:ir,headerColor:en,headerSortActiveBg:Ii,headerSortHoverBg:Xi,bodySortBg:ir,rowHoverBg:ir,rowSelectedBg:Dn,rowSelectedHoverBg:qn,rowExpandedBg:Ce,cellPaddingBlock:Te,cellPaddingInline:Te,cellPaddingBlockMD:ln,cellPaddingInlineMD:mn,cellPaddingBlockSM:mn,cellPaddingInlineSM:mn,borderColor:Fn,headerBorderRadius:Xn,footerBg:ir,footerColor:en,cellFontSize:li,cellFontSizeMD:li,cellFontSizeSM:li,headerSplitColor:Fn,fixedHeaderSortActiveBg:Ii,headerFilterHoverBg:hn,filterDropdownMenuBg:Ve,filterDropdownBg:Ve,expandIconBg:Ve,selectionColumnWidth:si,stickyScrollBarBg:Ei,stickyScrollBarBorderRadius:100}});const gr=[],ki=(ge,Ce)=>{const{prefixCls:Ve,className:en,rootClassName:un,style:hn,size:Dn,bordered:qn,dropdownPrefixCls:Te,dataSource:ln,pagination:mn,rowSelection:Fn,rowKey:Xn="key",rowClassName:li,columns:si,children:Ei,childrenColumnName:Ii,onChange:Xi,getPopupContainer:ir,loading:dr,expandIcon:Xr,expandable:$i,expandedRowRender:Hn,expandIconColumnIndex:no,indentSize:ro,scroll:tr,sortDirections:pr,locale:Ar,showSorterTooltip:qi=!0,virtual:Nr}=ge,oo=Nt.useMemo(()=>si||ti(Ei),[si,Ei]),po=Nt.useMemo(()=>oo.some(La=>La.responsive),[oo]),So=(0,Zi.Z)(po),Qr=Nt.useMemo(()=>{const La=new Set(Object.keys(So).filter(ia=>So[ia]));return oo.filter(ia=>!ia.responsive||ia.responsive.some(eu=>La.has(eu)))},[oo,So]),Xo=(0,Zo.Z)(ge,["className","style","columns"]),{locale:Po=bo.Z,direction:hs,table:so,renderEmpty:Pa,getPrefixCls:ks,getPopupContainer:Ps}=Nt.useContext(yl.E_),Eo=(0,yo.Z)(Dn),Fs=Object.assign(Object.assign({},Po.Table),Ar),Va=ln||gr,Ds=ks("table",Ve),Il=ks("dropdown",Te),wo=Object.assign({childrenColumnName:Ii,expandIconColumnIndex:no},$i),{childrenColumnName:ss="children"}=wo,cs=Nt.useMemo(()=>Va.some(La=>La==null?void 0:La[ss])?"nest":Hn||$i&&$i.expandedRowRender?"row":null,[Va]),Lo={body:Nt.useRef()},ts=Nt.useMemo(()=>typeof Xn=="function"?Xn:La=>La==null?void 0:La[Xn],[Xn]),[xo]=Eu(Va,ss,ts),Ls={},Rs=function(La,ia){let eu=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var vl,ga,nu;const Hu=Object.assign(Object.assign({},Ls),La);eu&&((vl=Ls.resetPagination)===null||vl===void 0||vl.call(Ls),!((ga=Hu.pagination)===null||ga===void 0)&&ga.current&&(Hu.pagination.current=1),mn&&mn.onChange&&mn.onChange(1,(nu=Hu.pagination)===null||nu===void 0?void 0:nu.pageSize)),tr&&tr.scrollToFirstRowOnChange!==!1&&Lo.body.current&&(0,Vs.Z)(0,{getContainer:()=>Lo.body.current}),Xi==null||Xi(Hu.pagination,Hu.filters,Hu.sorter,{currentDataSource:du(Ah(Va,Hu.sorterStates,ss),Hu.filterStates),action:ia})},ea=(La,ia)=>{Rs({sorter:La,sorterStates:ia},"sort",!1)},[Ql,ds,Xl,fa]=_A({prefixCls:Ds,mergedColumns:Qr,onSorterChange:ea,sortDirections:pr||["ascend","descend"],tableLocale:Fs,showSorterTooltip:qi}),ml=Nt.useMemo(()=>Ah(Va,ds,ss),[Va,ds]);Ls.sorter=fa(),Ls.sorterStates=ds;const ho=(La,ia)=>{Rs({filters:La,filterStates:ia},"filter",!0)},[Oa,Iu,wa]=Dd({prefixCls:Ds,locale:Fs,dropdownPrefixCls:Il,mergedColumns:Qr,onFilterChange:ho,getPopupContainer:ir||Ps}),na=du(ml,Iu);Ls.filters=wa,Ls.filterStates=Iu;const Ea=Nt.useMemo(()=>{const La={};return Object.keys(wa).forEach(ia=>{wa[ia]!==null&&(La[ia]=wa[ia])}),Object.assign(Object.assign({},Xl),{filters:La})},[Xl,wa]),[Za]=tl(Ea),ol=(La,ia)=>{Rs({pagination:Object.assign(Object.assign({},Ls.pagination),{current:La,pageSize:ia})},"paginate")},[Hs,Fa]=jd(na.length,ol,mn);Ls.pagination=mn===!1?{}:il(Hs,mn),Ls.resetPagination=Fa;const El=Nt.useMemo(()=>{if(mn===!1||!Hs.pageSize)return na;const{current:La=1,total:ia,pageSize:eu=qh}=Hs;return na.length<ia?na.length>eu?na.slice((La-1)*eu,La*eu):na:na.slice((La-1)*eu,La*eu)},[!!mn,na,Hs&&Hs.current,Hs&&Hs.pageSize,Hs&&Hs.total]),[ku,fu]=rh({prefixCls:Ds,data:na,pageData:El,getRowKey:ts,getRecordByKey:xo,expandType:cs,childrenColumnName:ss,locale:Fs,getPopupContainer:ir||Ps},Fn),Tu=(La,ia,eu)=>{let vl;return typeof li=="function"?vl=Wt()(li(La,ia,eu)):vl=Wt()(li),Wt()({[`${Ds}-row-selected`]:fu.has(ts(La,ia))},vl)};wo.__PARENT_RENDER_ICON__=wo.expandIcon,wo.expandIcon=wo.expandIcon||Xr||Zs(Fs),cs==="nest"&&wo.expandIconColumnIndex===void 0?wo.expandIconColumnIndex=Fn?1:0:wo.expandIconColumnIndex>0&&Fn&&(wo.expandIconColumnIndex-=1),typeof wo.indentSize!="number"&&(wo.indentSize=typeof ro=="number"?ro:15);const Wu=Nt.useCallback(La=>Za(ku(Oa(Ql(La)))),[Ql,Oa,ku]);let oh,sh;if(mn!==!1&&(Hs!=null&&Hs.total)){let La;Hs.size?La=Hs.size:La=Eo==="small"||Eo==="middle"?"small":void 0;const ia=ga=>Nt.createElement(xs.Z,Object.assign({},Hs,{className:Wt()(`${Ds}-pagination ${Ds}-pagination-${ga}`,Hs.className),size:La})),eu=hs==="rtl"?"left":"right",{position:vl}=Hs;if(vl!==null&&Array.isArray(vl)){const ga=vl.find(Ou=>Ou.includes("top")),nu=vl.find(Ou=>Ou.includes("bottom")),Hu=vl.every(Ou=>`${Ou}`=="none");!ga&&!nu&&!Hu&&(sh=ia(eu)),ga&&(oh=ia(ga.toLowerCase().replace("top",""))),nu&&(sh=ia(nu.toLowerCase().replace("bottom","")))}else sh=ia(eu)}let Qa;typeof dr=="boolean"?Qa={spinning:dr}:typeof dr=="object"&&(Qa=Object.assign({spinning:!0},dr));const[xu,xl]=to(Ds),[,cl]=(0,aa.Z)(),gh=Wt()(`${Ds}-wrapper`,so==null?void 0:so.className,{[`${Ds}-wrapper-rtl`]:hs==="rtl"},en,un,xl),ec=Object.assign(Object.assign({},so==null?void 0:so.style),hn),Ph=Ar&&Ar.emptyText||(Pa==null?void 0:Pa("Table"))||Nt.createElement(Ao.Z,{componentName:"Table"}),Oh=Nr?Ju:As,fc={},Vu=Nt.useMemo(()=>{const{fontSize:La,lineHeight:ia,padding:eu,paddingXS:vl,paddingSM:ga}=cl,nu=Math.floor(La*ia);switch(Eo){case"large":return eu*2+nu;case"small":return vl*2+nu;default:return ga*2+nu}},[cl,Eo]);return Nr&&(fc.listItemHeight=Vu),xu(Nt.createElement("div",{ref:Ce,className:gh,style:ec},Nt.createElement(ca.Z,Object.assign({spinning:!1},Qa),oh,Nt.createElement(Oh,Object.assign({},fc,Xo,{columns:Qr,direction:hs,expandable:wo,prefixCls:Ds,className:Wt()({[`${Ds}-middle`]:Eo==="middle",[`${Ds}-small`]:Eo==="small",[`${Ds}-bordered`]:qn,[`${Ds}-empty`]:Va.length===0}),data:El,rowKey:ts,rowClassName:Tu,emptyText:Ph,internalHooks:ce,internalRefs:Lo,transformColumns:Wu})),sh)))};var yr=Nt.forwardRef(ki);const Kr=(ge,Ce)=>{const Ve=Nt.useRef(0);return Ve.current+=1,Nt.createElement(yr,Object.assign({},ge,{ref:Ce,_renderTimes:Ve.current}))},Kn=Nt.forwardRef(Kr);Kn.SELECTION_COLUMN=Ja,Kn.EXPAND_COLUMN=Mt,Kn.SELECTION_ALL=rl,Kn.SELECTION_INVERT=Ha,Kn.SELECTION_NONE=Aa,Kn.Column=is,Kn.ColumnGroup=Es,Kn.Summary=ae;var Jn=Kn,Wi=Jn},17574:function(hi,Cn,bt){"use strict";bt.d(Cn,{default:function(){return ve}});var Mt=bt(43858),ce=bt(19127),ie=bt(52671),Ie=bt(8657),ee=bt(96663),Zt=bt(59301),Nt={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"},jt=Nt,qt=bt(7657),Pt=function(Se,Pn){return Zt.createElement(qt.Z,(0,ee.Z)({},Se,{ref:Pn,icon:jt}))},re=Zt.forwardRef(Pt),Kt=re,Yt=bt(92310),Ct=bt.n(Yt),et=bt(35654),tt=bt(71430),lt=bt(36355),rt=bt(56082),ht=bt(62892),dt=bt(20648);const St=4;function It(ne){const{dropPosition:Se,dropLevelOffset:Pn,prefixCls:Mn,indent:Xe,direction:Nn="ltr"}=ne,Zn=Nn==="ltr"?"left":"right",fi=Nn==="ltr"?"right":"left",zn={[Zn]:-Pn*Xe+St,[fi]:0};switch(Se){case-1:zn.top=-3;break;case 1:zn.bottom=-3;break;default:zn.bottom=-3,zn[Zn]=Xe+St;break}return Zt.createElement("div",{style:zn,className:`${Mn}-drop-indicator`})}var _t=bt(71997),oe=Zt.forwardRef((ne,Se)=>{const{getPrefixCls:Pn,direction:Mn,virtual:Xe,tree:Nn}=Zt.useContext(lt.E_),{prefixCls:Zn,className:fi,showIcon:zn=!1,showLine:Si,switcherIcon:nn,blockNode:Fi=!1,children:Ti,checkable:Lt=!1,selectable:Ot=!0,draggable:mt,motion:ft,style:pt}=ne,At=Pn("tree",Zn),le=Pn(),we=ft!=null?ft:Object.assign(Object.assign({},(0,ht.Z)(le)),{motionAppear:!1}),ae=Object.assign(Object.assign({},ne),{checkable:Lt,selectable:Ot,showIcon:zn,motion:we,blockNode:Fi,showLine:!!Si,dropIndicatorRender:It}),[me,Re]=(0,dt.ZP)(At),Oe=Zt.useMemo(()=>{if(!mt)return!1;let rn={};switch(typeof mt){case"function":rn.nodeDraggable=mt;break;case"object":rn=Object.assign({},mt);break;default:break}return rn.icon!==!1&&(rn.icon=rn.icon||Zt.createElement(rt.Z,null)),rn},[mt]),ke=rn=>Zt.createElement(_t.Z,{prefixCls:At,switcherIcon:nn,treeNodeProps:rn,showLine:Si});return me(Zt.createElement(Mt.Z,Object.assign({itemHeight:20,ref:Se,virtual:Xe},ae,{style:Object.assign(Object.assign({},Nn==null?void 0:Nn.style),pt),prefixCls:At,className:Ct()({[`${At}-icon-hide`]:!zn,[`${At}-block-node`]:Fi,[`${At}-unselectable`]:!Ot,[`${At}-rtl`]:Mn==="rtl"},Nn==null?void 0:Nn.className,fi,Re),direction:Mn,checkable:Lt&&Zt.createElement("span",{className:`${At}-checkbox-inner`}),selectable:Ot,switcherIcon:ke,draggable:Oe}),Ti))}),ue;(function(ne){ne[ne.None=0]="None",ne[ne.Start=1]="Start",ne[ne.End=2]="End"})(ue||(ue={}));function de(ne,Se){function Pn(Mn){const{key:Xe,children:Nn}=Mn;Se(Xe,Mn)!==!1&&de(Nn||[],Se)}ne.forEach(Pn)}function be(ne){let{treeData:Se,expandedKeys:Pn,startKey:Mn,endKey:Xe}=ne;const Nn=[];let Zn=ue.None;if(Mn&&Mn===Xe)return[Mn];if(!Mn||!Xe)return[];function fi(zn){return zn===Mn||zn===Xe}return de(Se,zn=>{if(Zn===ue.End)return!1;if(fi(zn)){if(Nn.push(zn),Zn===ue.None)Zn=ue.Start;else if(Zn===ue.Start)return Zn=ue.End,!1}else Zn===ue.Start&&Nn.push(zn);return Pn.includes(zn)}),Nn}function Jt(ne,Se){const Pn=(0,ce.Z)(Se),Mn=[];return de(ne,(Xe,Nn)=>{const Zn=Pn.indexOf(Xe);return Zn!==-1&&(Mn.push(Nn),Pn.splice(Zn,1)),!!Pn.length}),Mn}var Ke=function(ne,Se){var Pn={};for(var Mn in ne)Object.prototype.hasOwnProperty.call(ne,Mn)&&Se.indexOf(Mn)<0&&(Pn[Mn]=ne[Mn]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,Mn=Object.getOwnPropertySymbols(ne);Xe<Mn.length;Xe++)Se.indexOf(Mn[Xe])<0&&Object.prototype.propertyIsEnumerable.call(ne,Mn[Xe])&&(Pn[Mn[Xe]]=ne[Mn[Xe]]);return Pn};function Wt(ne){const{isLeaf:Se,expanded:Pn}=ne;return Se?Zt.createElement(ie.Z,null):Pn?Zt.createElement(Ie.Z,null):Zt.createElement(Kt,null)}function Ge(ne){let{treeData:Se,children:Pn}=ne;return Se||(0,tt.zn)(Pn)}const He=(ne,Se)=>{var{defaultExpandAll:Pn,defaultExpandParent:Mn,defaultExpandedKeys:Xe}=ne,Nn=Ke(ne,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Zn=Zt.useRef(),fi=Zt.useRef(),zn=()=>{const{keyEntities:Oe}=(0,tt.I8)(Ge(Nn));let ke;return Pn?ke=Object.keys(Oe):Mn?ke=(0,et.r7)(Nn.expandedKeys||Xe||[],Oe):ke=Nn.expandedKeys||Xe,ke},[Si,nn]=Zt.useState(Nn.selectedKeys||Nn.defaultSelectedKeys||[]),[Fi,Ti]=Zt.useState(()=>zn());Zt.useEffect(()=>{"selectedKeys"in Nn&&nn(Nn.selectedKeys)},[Nn.selectedKeys]),Zt.useEffect(()=>{"expandedKeys"in Nn&&Ti(Nn.expandedKeys)},[Nn.expandedKeys]);const Lt=(Oe,ke)=>{var rn;return"expandedKeys"in Nn||Ti(Oe),(rn=Nn.onExpand)===null||rn===void 0?void 0:rn.call(Nn,Oe,ke)},Ot=(Oe,ke)=>{var rn;const{multiple:Vn}=Nn,{node:sn,nativeEvent:An}=ke,{key:Bn=""}=sn,ii=Ge(Nn),_n=Object.assign(Object.assign({},ke),{selected:!0}),ji=(An==null?void 0:An.ctrlKey)||(An==null?void 0:An.metaKey),cr=An==null?void 0:An.shiftKey;let Ji;Vn&&ji?(Ji=Oe,Zn.current=Bn,fi.current=Ji,_n.selectedNodes=Jt(ii,Ji)):Vn&&cr?(Ji=Array.from(new Set([].concat((0,ce.Z)(fi.current||[]),(0,ce.Z)(be({treeData:ii,expandedKeys:Fi,startKey:Bn,endKey:Zn.current}))))),_n.selectedNodes=Jt(ii,Ji)):(Ji=[Bn],Zn.current=Bn,fi.current=Ji,_n.selectedNodes=Jt(ii,Ji)),(rn=Nn.onSelect)===null||rn===void 0||rn.call(Nn,Ji,_n),"selectedKeys"in Nn||nn(Ji)},{getPrefixCls:mt,direction:ft}=Zt.useContext(lt.E_),{prefixCls:pt,className:At,showIcon:le=!0,expandAction:we="click"}=Nn,ae=Ke(Nn,["prefixCls","className","showIcon","expandAction"]),me=mt("tree",pt),Re=Ct()(`${me}-directory`,{[`${me}-directory-rtl`]:ft==="rtl"},At);return Zt.createElement(oe,Object.assign({icon:Wt,ref:Se,blockNode:!0},ae,{showIcon:le,expandAction:we,prefixCls:me,className:Re,expandedKeys:Fi,selectedKeys:Si,onSelect:Ot,onExpand:Lt}))};var We=Zt.forwardRef(He);const _e=oe;_e.DirectoryTree=We,_e.TreeNode=Mt.O;var ve=_e},20648:function(hi,Cn,bt){"use strict";bt.d(Cn,{TM:function(){return Yt},Yk:function(){return Kt}});var Mt=bt(93083),ce=bt(98447),ie=bt(17313),Ie=bt(8378),ee=bt(37613),Zt=bt(83116);const Nt=new Mt.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),jt=(Ct,et)=>({[`.${Ct}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${et.motionDurationSlow}`}}}),qt=(Ct,et)=>({[`.${Ct}-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:'""'}}}),Pt=(Ct,et)=>{const{treeCls:tt,treeNodeCls:lt,treeNodePadding:rt,titleHeight:ht,nodeSelectedBg:dt,nodeHoverBg:St}=et,It=et.paddingXS;return{[tt]:Object.assign(Object.assign({},(0,ie.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,ie.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:Nt,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,ie.oN)(et)),[`&:not(${lt}-disabled).filter-node ${tt}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${tt}-draggable-icon`]:{flexShrink:0,width:ht,lineHeight:`${ht}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:ht}},[`${tt}-draggable-icon`]:{visibility:"hidden"},[`${tt}-switcher`]:Object.assign(Object.assign({},jt(Ct,et)),{position:"relative",flex:"none",alignSelf:"stretch",width:ht,margin:0,lineHeight:`${ht}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:ht/2,bottom:-rt,marginInlineStart:-1,borderInlineEnd:`1px solid ${et.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:ht/2*.8,height:ht/2,borderBottom:`1px solid ${et.colorBorder}`,content:'""'}}}),[`${tt}-checkbox`]:{top:"initial",marginInlineEnd:It},[`${tt}-node-content-wrapper, ${tt}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:ht,margin:0,padding:`0 ${et.paddingXS/2}px`,color:"inherit",lineHeight:`${ht}px`,background:"transparent",borderRadius:et.borderRadius,cursor:"pointer",transition:`all ${et.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:St},[`&${tt}-node-selected`]:{backgroundColor:dt},[`${tt}-iconEle`]:{display:"inline-block",width:ht,height:ht,lineHeight:`${ht}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${tt}-unselectable ${tt}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${tt}-node-content-wrapper`]:Object.assign({lineHeight:`${ht}px`,userSelect:"none"},qt(Ct,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:ht/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:`${ht/2}px !important`}}}}})}},re=Ct=>{const{treeCls:et,treeNodeCls:tt,treeNodePadding:lt,directoryNodeSelectedBg:rt,directoryNodeSelectedColor:ht}=Ct;return{[`${et}${et}-directory`]:{[tt]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:lt,insetInlineStart:0,transition:`background-color ${Ct.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:Ct.controlItemBgHover}},"> *":{zIndex:1},[`${et}-switcher`]:{transition:`color ${Ct.motionDurationMid}`},[`${et}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${et}-node-selected`]:{color:ht,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:rt},[`${et}-switcher`]:{color:ht},[`${et}-node-content-wrapper`]:{color:ht,background:"transparent"}}}}}},Kt=(Ct,et)=>{const tt=`.${Ct}`,lt=`${tt}-treenode`,rt=et.paddingXS/2,ht=(0,ee.TS)(et,{treeCls:tt,treeNodeCls:lt,treeNodePadding:rt});return[Pt(Ct,ht),re(ht)]},Yt=Ct=>{const{controlHeightSM:et}=Ct;return{titleHeight:et,nodeHoverBg:Ct.controlItemBgHover,nodeSelectedBg:Ct.controlItemBgActive}};Cn.ZP=(0,Zt.Z)("Tree",(Ct,et)=>{let{prefixCls:tt}=et;return[{[Ct.componentCls]:(0,ce.C2)(`${tt}-checkbox`,Ct)},Kt(tt,Ct),(0,Ie.Z)(Ct)]},Ct=>{const{colorTextLightSolid:et,colorPrimary:tt}=Ct;return Object.assign(Object.assign({},Yt(Ct)),{directoryNodeSelectedColor:et,directoryNodeSelectedBg:tt})})},71997:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return lt}});var Mt=bt(96663),ce=bt(59301),ie={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},Ie=ie,ee=bt(7657),Zt=function(ht,dt){return ce.createElement(ee.Z,(0,Mt.Z)({},ht,{ref:dt,icon:Ie}))},Nt=ce.forwardRef(Zt),jt=Nt,qt=bt(52671),Pt=bt(58617),re=bt(15075),Kt=bt(43531),Yt=bt(92310),Ct=bt.n(Yt),et=bt(92343),lt=rt=>{const{prefixCls:ht,switcherIcon:dt,treeNodeProps:St,showLine:It}=rt,{isLeaf:_t,expanded:Gt,loading:oe}=St;if(oe)return ce.createElement(Pt.Z,{className:`${ht}-switcher-loading-icon`});let ue;if(It&&typeof It=="object"&&(ue=It.showLeafIcon),_t){if(!It)return null;if(typeof ue!="boolean"&&ue){const Jt=typeof ue=="function"?ue(St):ue,Ke=`${ht}-switcher-line-custom-icon`;return(0,et.l$)(Jt)?(0,et.Tm)(Jt,{className:Ct()(Jt.props.className||"",Ke)}):Jt}return ue?ce.createElement(qt.Z,{className:`${ht}-switcher-line-icon`}):ce.createElement("span",{className:`${ht}-switcher-leaf-line`})}const de=`${ht}-switcher-icon`,be=typeof dt=="function"?dt(St):dt;return(0,et.l$)(be)?(0,et.Tm)(be,{className:Ct()(be.props.className||"",de)}):be!==void 0?be:It?Gt?ce.createElement(re.Z,{className:`${ht}-switcher-line-icon`}):ce.createElement(Kt.Z,{className:`${ht}-switcher-line-icon`}):ce.createElement(jt,{className:de})}},86251:function(hi,Cn){"use strict";Cn.byteLength=Nt,Cn.toByteArray=qt,Cn.fromByteArray=Kt;for(var bt=[],Mt=[],ce=typeof Uint8Array!="undefined"?Uint8Array:Array,ie="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ie=0,ee=ie.length;Ie<ee;++Ie)bt[Ie]=ie[Ie],Mt[ie.charCodeAt(Ie)]=Ie;Mt[45]=62,Mt[95]=63;function Zt(Yt){var Ct=Yt.length;if(Ct%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var et=Yt.indexOf("=");et===-1&&(et=Ct);var tt=et===Ct?0:4-et%4;return[et,tt]}function Nt(Yt){var Ct=Zt(Yt),et=Ct[0],tt=Ct[1];return(et+tt)*3/4-tt}function jt(Yt,Ct,et){return(Ct+et)*3/4-et}function qt(Yt){var Ct,et=Zt(Yt),tt=et[0],lt=et[1],rt=new ce(jt(Yt,tt,lt)),ht=0,dt=lt>0?tt-4:tt,St;for(St=0;St<dt;St+=4)Ct=Mt[Yt.charCodeAt(St)]<<18|Mt[Yt.charCodeAt(St+1)]<<12|Mt[Yt.charCodeAt(St+2)]<<6|Mt[Yt.charCodeAt(St+3)],rt[ht++]=Ct>>16&255,rt[ht++]=Ct>>8&255,rt[ht++]=Ct&255;return lt===2&&(Ct=Mt[Yt.charCodeAt(St)]<<2|Mt[Yt.charCodeAt(St+1)]>>4,rt[ht++]=Ct&255),lt===1&&(Ct=Mt[Yt.charCodeAt(St)]<<10|Mt[Yt.charCodeAt(St+1)]<<4|Mt[Yt.charCodeAt(St+2)]>>2,rt[ht++]=Ct>>8&255,rt[ht++]=Ct&255),rt}function Pt(Yt){return bt[Yt>>18&63]+bt[Yt>>12&63]+bt[Yt>>6&63]+bt[Yt&63]}function re(Yt,Ct,et){for(var tt,lt=[],rt=Ct;rt<et;rt+=3)tt=(Yt[rt]<<16&16711680)+(Yt[rt+1]<<8&65280)+(Yt[rt+2]&255),lt.push(Pt(tt));return lt.join("")}function Kt(Yt){for(var Ct,et=Yt.length,tt=et%3,lt=[],rt=16383,ht=0,dt=et-tt;ht<dt;ht+=rt)lt.push(re(Yt,ht,ht+rt>dt?dt:ht+rt));return tt===1?(Ct=Yt[et-1],lt.push(bt[Ct>>2]+bt[Ct<<4&63]+"==")):tt===2&&(Ct=(Yt[et-2]<<8)+Yt[et-1],lt.push(bt[Ct>>10]+bt[Ct>>4&63]+bt[Ct<<2&63]+"=")),lt.join("")}},19208:function(hi,Cn,bt){"use strict";var Mt;var ce=bt(86251),ie=bt(67467),Ie=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Cn.lW=jt,Mt=ht,Cn.h2=50;var ee=2147483647;Mt=ee,jt.TYPED_ARRAY_SUPPORT=Zt(),!jt.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 Zt(){try{var mt=new Uint8Array(1),ft={foo:function(){return 42}};return Object.setPrototypeOf(ft,Uint8Array.prototype),Object.setPrototypeOf(mt,ft),mt.foo()===42}catch(pt){return!1}}Object.defineProperty(jt.prototype,"parent",{enumerable:!0,get:function(){if(jt.isBuffer(this))return this.buffer}}),Object.defineProperty(jt.prototype,"offset",{enumerable:!0,get:function(){if(jt.isBuffer(this))return this.byteOffset}});function Nt(mt){if(mt>ee)throw new RangeError('The value "'+mt+'" is invalid for option "size"');var ft=new Uint8Array(mt);return Object.setPrototypeOf(ft,jt.prototype),ft}function jt(mt,ft,pt){if(typeof mt=="number"){if(typeof ft=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Kt(mt)}return qt(mt,ft,pt)}jt.poolSize=8192;function qt(mt,ft,pt){if(typeof mt=="string")return Yt(mt,ft);if(ArrayBuffer.isView(mt))return et(mt);if(mt==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof mt);if(Ti(mt,ArrayBuffer)||mt&&Ti(mt.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Ti(mt,SharedArrayBuffer)||mt&&Ti(mt.buffer,SharedArrayBuffer)))return tt(mt,ft,pt);if(typeof mt=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var At=mt.valueOf&&mt.valueOf();if(At!=null&&At!==mt)return jt.from(At,ft,pt);var le=lt(mt);if(le)return le;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof mt[Symbol.toPrimitive]=="function")return jt.from(mt[Symbol.toPrimitive]("string"),ft,pt);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof mt)}jt.from=function(mt,ft,pt){return qt(mt,ft,pt)},Object.setPrototypeOf(jt.prototype,Uint8Array.prototype),Object.setPrototypeOf(jt,Uint8Array);function Pt(mt){if(typeof mt!="number")throw new TypeError('"size" argument must be of type number');if(mt<0)throw new RangeError('The value "'+mt+'" is invalid for option "size"')}function re(mt,ft,pt){return Pt(mt),mt<=0?Nt(mt):ft!==void 0?typeof pt=="string"?Nt(mt).fill(ft,pt):Nt(mt).fill(ft):Nt(mt)}jt.alloc=function(mt,ft,pt){return re(mt,ft,pt)};function Kt(mt){return Pt(mt),Nt(mt<0?0:rt(mt)|0)}jt.allocUnsafe=function(mt){return Kt(mt)},jt.allocUnsafeSlow=function(mt){return Kt(mt)};function Yt(mt,ft){if((typeof ft!="string"||ft==="")&&(ft="utf8"),!jt.isEncoding(ft))throw new TypeError("Unknown encoding: "+ft);var pt=dt(mt,ft)|0,At=Nt(pt),le=At.write(mt,ft);return le!==pt&&(At=At.slice(0,le)),At}function Ct(mt){for(var ft=mt.length<0?0:rt(mt.length)|0,pt=Nt(ft),At=0;At<ft;At+=1)pt[At]=mt[At]&255;return pt}function et(mt){if(Ti(mt,Uint8Array)){var ft=new Uint8Array(mt);return tt(ft.buffer,ft.byteOffset,ft.byteLength)}return Ct(mt)}function tt(mt,ft,pt){if(ft<0||mt.byteLength<ft)throw new RangeError('"offset" is outside of buffer bounds');if(mt.byteLength<ft+(pt||0))throw new RangeError('"length" is outside of buffer bounds');var At;return ft===void 0&&pt===void 0?At=new Uint8Array(mt):pt===void 0?At=new Uint8Array(mt,ft):At=new Uint8Array(mt,ft,pt),Object.setPrototypeOf(At,jt.prototype),At}function lt(mt){if(jt.isBuffer(mt)){var ft=rt(mt.length)|0,pt=Nt(ft);return pt.length===0||mt.copy(pt,0,0,ft),pt}if(mt.length!==void 0)return typeof mt.length!="number"||Lt(mt.length)?Nt(0):Ct(mt);if(mt.type==="Buffer"&&Array.isArray(mt.data))return Ct(mt.data)}function rt(mt){if(mt>=ee)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ee.toString(16)+" bytes");return mt|0}function ht(mt){return+mt!=mt&&(mt=0),jt.alloc(+mt)}jt.isBuffer=function(ft){return ft!=null&&ft._isBuffer===!0&&ft!==jt.prototype},jt.compare=function(ft,pt){if(Ti(ft,Uint8Array)&&(ft=jt.from(ft,ft.offset,ft.byteLength)),Ti(pt,Uint8Array)&&(pt=jt.from(pt,pt.offset,pt.byteLength)),!jt.isBuffer(ft)||!jt.isBuffer(pt))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ft===pt)return 0;for(var At=ft.length,le=pt.length,we=0,ae=Math.min(At,le);we<ae;++we)if(ft[we]!==pt[we]){At=ft[we],le=pt[we];break}return At<le?-1:le<At?1:0},jt.isEncoding=function(ft){switch(String(ft).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}},jt.concat=function(ft,pt){if(!Array.isArray(ft))throw new TypeError('"list" argument must be an Array of Buffers');if(ft.length===0)return jt.alloc(0);var At;if(pt===void 0)for(pt=0,At=0;At<ft.length;++At)pt+=ft[At].length;var le=jt.allocUnsafe(pt),we=0;for(At=0;At<ft.length;++At){var ae=ft[At];if(Ti(ae,Uint8Array))we+ae.length>le.length?jt.from(ae).copy(le,we):Uint8Array.prototype.set.call(le,ae,we);else if(jt.isBuffer(ae))ae.copy(le,we);else throw new TypeError('"list" argument must be an Array of Buffers');we+=ae.length}return le};function dt(mt,ft){if(jt.isBuffer(mt))return mt.length;if(ArrayBuffer.isView(mt)||Ti(mt,ArrayBuffer))return mt.byteLength;if(typeof mt!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof mt);var pt=mt.length,At=arguments.length>2&&arguments[2]===!0;if(!At&&pt===0)return 0;for(var le=!1;;)switch(ft){case"ascii":case"latin1":case"binary":return pt;case"utf8":case"utf-8":return fi(mt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pt*2;case"hex":return pt>>>1;case"base64":return nn(mt).length;default:if(le)return At?-1:fi(mt).length;ft=(""+ft).toLowerCase(),le=!0}}jt.byteLength=dt;function St(mt,ft,pt){var At=!1;if((ft===void 0||ft<0)&&(ft=0),ft>this.length||((pt===void 0||pt>this.length)&&(pt=this.length),pt<=0)||(pt>>>=0,ft>>>=0,pt<=ft))return"";for(mt||(mt="utf8");;)switch(mt){case"hex":return _e(this,ft,pt);case"utf8":case"utf-8":return Wt(this,ft,pt);case"ascii":return Me(this,ft,pt);case"latin1":case"binary":return We(this,ft,pt);case"base64":return Ke(this,ft,pt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ve(this,ft,pt);default:if(At)throw new TypeError("Unknown encoding: "+mt);mt=(mt+"").toLowerCase(),At=!0}}jt.prototype._isBuffer=!0;function It(mt,ft,pt){var At=mt[ft];mt[ft]=mt[pt],mt[pt]=At}jt.prototype.swap16=function(){var ft=this.length;if(ft%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var pt=0;pt<ft;pt+=2)It(this,pt,pt+1);return this},jt.prototype.swap32=function(){var ft=this.length;if(ft%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var pt=0;pt<ft;pt+=4)It(this,pt,pt+3),It(this,pt+1,pt+2);return this},jt.prototype.swap64=function(){var ft=this.length;if(ft%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var pt=0;pt<ft;pt+=8)It(this,pt,pt+7),It(this,pt+1,pt+6),It(this,pt+2,pt+5),It(this,pt+3,pt+4);return this},jt.prototype.toString=function(){var ft=this.length;return ft===0?"":arguments.length===0?Wt(this,0,ft):St.apply(this,arguments)},jt.prototype.toLocaleString=jt.prototype.toString,jt.prototype.equals=function(ft){if(!jt.isBuffer(ft))throw new TypeError("Argument must be a Buffer");return this===ft?!0:jt.compare(this,ft)===0},jt.prototype.inspect=function(){var ft="",pt=Cn.h2;return ft=this.toString("hex",0,pt).replace(/(.{2})/g,"$1 ").trim(),this.length>pt&&(ft+=" ... "),"<Buffer "+ft+">"},Ie&&(jt.prototype[Ie]=jt.prototype.inspect),jt.prototype.compare=function(ft,pt,At,le,we){if(Ti(ft,Uint8Array)&&(ft=jt.from(ft,ft.offset,ft.byteLength)),!jt.isBuffer(ft))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof ft);if(pt===void 0&&(pt=0),At===void 0&&(At=ft?ft.length:0),le===void 0&&(le=0),we===void 0&&(we=this.length),pt<0||At>ft.length||le<0||we>this.length)throw new RangeError("out of range index");if(le>=we&&pt>=At)return 0;if(le>=we)return-1;if(pt>=At)return 1;if(pt>>>=0,At>>>=0,le>>>=0,we>>>=0,this===ft)return 0;for(var ae=we-le,me=At-pt,Re=Math.min(ae,me),Oe=this.slice(le,we),ke=ft.slice(pt,At),rn=0;rn<Re;++rn)if(Oe[rn]!==ke[rn]){ae=Oe[rn],me=ke[rn];break}return ae<me?-1:me<ae?1:0};function _t(mt,ft,pt,At,le){if(mt.length===0)return-1;if(typeof pt=="string"?(At=pt,pt=0):pt>2147483647?pt=2147483647:pt<-2147483648&&(pt=-2147483648),pt=+pt,Lt(pt)&&(pt=le?0:mt.length-1),pt<0&&(pt=mt.length+pt),pt>=mt.length){if(le)return-1;pt=mt.length-1}else if(pt<0)if(le)pt=0;else return-1;if(typeof ft=="string"&&(ft=jt.from(ft,At)),jt.isBuffer(ft))return ft.length===0?-1:Gt(mt,ft,pt,At,le);if(typeof ft=="number")return ft=ft&255,typeof Uint8Array.prototype.indexOf=="function"?le?Uint8Array.prototype.indexOf.call(mt,ft,pt):Uint8Array.prototype.lastIndexOf.call(mt,ft,pt):Gt(mt,[ft],pt,At,le);throw new TypeError("val must be string, number or Buffer")}function Gt(mt,ft,pt,At,le){var we=1,ae=mt.length,me=ft.length;if(At!==void 0&&(At=String(At).toLowerCase(),At==="ucs2"||At==="ucs-2"||At==="utf16le"||At==="utf-16le")){if(mt.length<2||ft.length<2)return-1;we=2,ae/=2,me/=2,pt/=2}function Re(sn,An){return we===1?sn[An]:sn.readUInt16BE(An*we)}var Oe;if(le){var ke=-1;for(Oe=pt;Oe<ae;Oe++)if(Re(mt,Oe)===Re(ft,ke===-1?0:Oe-ke)){if(ke===-1&&(ke=Oe),Oe-ke+1===me)return ke*we}else ke!==-1&&(Oe-=Oe-ke),ke=-1}else for(pt+me>ae&&(pt=ae-me),Oe=pt;Oe>=0;Oe--){for(var rn=!0,Vn=0;Vn<me;Vn++)if(Re(mt,Oe+Vn)!==Re(ft,Vn)){rn=!1;break}if(rn)return Oe}return-1}jt.prototype.includes=function(ft,pt,At){return this.indexOf(ft,pt,At)!==-1},jt.prototype.indexOf=function(ft,pt,At){return _t(this,ft,pt,At,!0)},jt.prototype.lastIndexOf=function(ft,pt,At){return _t(this,ft,pt,At,!1)};function oe(mt,ft,pt,At){pt=Number(pt)||0;var le=mt.length-pt;At?(At=Number(At),At>le&&(At=le)):At=le;var we=ft.length;At>we/2&&(At=we/2);for(var ae=0;ae<At;++ae){var me=parseInt(ft.substr(ae*2,2),16);if(Lt(me))return ae;mt[pt+ae]=me}return ae}function ue(mt,ft,pt,At){return Fi(fi(ft,mt.length-pt),mt,pt,At)}function de(mt,ft,pt,At){return Fi(zn(ft),mt,pt,At)}function be(mt,ft,pt,At){return Fi(nn(ft),mt,pt,At)}function Jt(mt,ft,pt,At){return Fi(Si(ft,mt.length-pt),mt,pt,At)}jt.prototype.write=function(ft,pt,At,le){if(pt===void 0)le="utf8",At=this.length,pt=0;else if(At===void 0&&typeof pt=="string")le=pt,At=this.length,pt=0;else if(isFinite(pt))pt=pt>>>0,isFinite(At)?(At=At>>>0,le===void 0&&(le="utf8")):(le=At,At=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var we=this.length-pt;if((At===void 0||At>we)&&(At=we),ft.length>0&&(At<0||pt<0)||pt>this.length)throw new RangeError("Attempt to write outside buffer bounds");le||(le="utf8");for(var ae=!1;;)switch(le){case"hex":return oe(this,ft,pt,At);case"utf8":case"utf-8":return ue(this,ft,pt,At);case"ascii":case"latin1":case"binary":return de(this,ft,pt,At);case"base64":return be(this,ft,pt,At);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Jt(this,ft,pt,At);default:if(ae)throw new TypeError("Unknown encoding: "+le);le=(""+le).toLowerCase(),ae=!0}},jt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ke(mt,ft,pt){return ft===0&&pt===mt.length?ce.fromByteArray(mt):ce.fromByteArray(mt.slice(ft,pt))}function Wt(mt,ft,pt){pt=Math.min(mt.length,pt);for(var At=[],le=ft;le<pt;){var we=mt[le],ae=null,me=we>239?4:we>223?3:we>191?2:1;if(le+me<=pt){var Re,Oe,ke,rn;switch(me){case 1:we<128&&(ae=we);break;case 2:Re=mt[le+1],(Re&192)===128&&(rn=(we&31)<<6|Re&63,rn>127&&(ae=rn));break;case 3:Re=mt[le+1],Oe=mt[le+2],(Re&192)===128&&(Oe&192)===128&&(rn=(we&15)<<12|(Re&63)<<6|Oe&63,rn>2047&&(rn<55296||rn>57343)&&(ae=rn));break;case 4:Re=mt[le+1],Oe=mt[le+2],ke=mt[le+3],(Re&192)===128&&(Oe&192)===128&&(ke&192)===128&&(rn=(we&15)<<18|(Re&63)<<12|(Oe&63)<<6|ke&63,rn>65535&&rn<1114112&&(ae=rn))}}ae===null?(ae=65533,me=1):ae>65535&&(ae-=65536,At.push(ae>>>10&1023|55296),ae=56320|ae&1023),At.push(ae),le+=me}return He(At)}var Ge=4096;function He(mt){var ft=mt.length;if(ft<=Ge)return String.fromCharCode.apply(String,mt);for(var pt="",At=0;At<ft;)pt+=String.fromCharCode.apply(String,mt.slice(At,At+=Ge));return pt}function Me(mt,ft,pt){var At="";pt=Math.min(mt.length,pt);for(var le=ft;le<pt;++le)At+=String.fromCharCode(mt[le]&127);return At}function We(mt,ft,pt){var At="";pt=Math.min(mt.length,pt);for(var le=ft;le<pt;++le)At+=String.fromCharCode(mt[le]);return At}function _e(mt,ft,pt){var At=mt.length;(!ft||ft<0)&&(ft=0),(!pt||pt<0||pt>At)&&(pt=At);for(var le="",we=ft;we<pt;++we)le+=Ot[mt[we]];return le}function ve(mt,ft,pt){for(var At=mt.slice(ft,pt),le="",we=0;we<At.length-1;we+=2)le+=String.fromCharCode(At[we]+At[we+1]*256);return le}jt.prototype.slice=function(ft,pt){var At=this.length;ft=~~ft,pt=pt===void 0?At:~~pt,ft<0?(ft+=At,ft<0&&(ft=0)):ft>At&&(ft=At),pt<0?(pt+=At,pt<0&&(pt=0)):pt>At&&(pt=At),pt<ft&&(pt=ft);var le=this.subarray(ft,pt);return Object.setPrototypeOf(le,jt.prototype),le};function ne(mt,ft,pt){if(mt%1!==0||mt<0)throw new RangeError("offset is not uint");if(mt+ft>pt)throw new RangeError("Trying to access beyond buffer length")}jt.prototype.readUintLE=jt.prototype.readUIntLE=function(ft,pt,At){ft=ft>>>0,pt=pt>>>0,At||ne(ft,pt,this.length);for(var le=this[ft],we=1,ae=0;++ae<pt&&(we*=256);)le+=this[ft+ae]*we;return le},jt.prototype.readUintBE=jt.prototype.readUIntBE=function(ft,pt,At){ft=ft>>>0,pt=pt>>>0,At||ne(ft,pt,this.length);for(var le=this[ft+--pt],we=1;pt>0&&(we*=256);)le+=this[ft+--pt]*we;return le},jt.prototype.readUint8=jt.prototype.readUInt8=function(ft,pt){return ft=ft>>>0,pt||ne(ft,1,this.length),this[ft]},jt.prototype.readUint16LE=jt.prototype.readUInt16LE=function(ft,pt){return ft=ft>>>0,pt||ne(ft,2,this.length),this[ft]|this[ft+1]<<8},jt.prototype.readUint16BE=jt.prototype.readUInt16BE=function(ft,pt){return ft=ft>>>0,pt||ne(ft,2,this.length),this[ft]<<8|this[ft+1]},jt.prototype.readUint32LE=jt.prototype.readUInt32LE=function(ft,pt){return ft=ft>>>0,pt||ne(ft,4,this.length),(this[ft]|this[ft+1]<<8|this[ft+2]<<16)+this[ft+3]*16777216},jt.prototype.readUint32BE=jt.prototype.readUInt32BE=function(ft,pt){return ft=ft>>>0,pt||ne(ft,4,this.length),this[ft]*16777216+(this[ft+1]<<16|this[ft+2]<<8|this[ft+3])},jt.prototype.readIntLE=function(ft,pt,At){ft=ft>>>0,pt=pt>>>0,At||ne(ft,pt,this.length);for(var le=this[ft],we=1,ae=0;++ae<pt&&(we*=256);)le+=this[ft+ae]*we;return we*=128,le>=we&&(le-=Math.pow(2,8*pt)),le},jt.prototype.readIntBE=function(ft,pt,At){ft=ft>>>0,pt=pt>>>0,At||ne(ft,pt,this.length);for(var le=pt,we=1,ae=this[ft+--le];le>0&&(we*=256);)ae+=this[ft+--le]*we;return we*=128,ae>=we&&(ae-=Math.pow(2,8*pt)),ae},jt.prototype.readInt8=function(ft,pt){return ft=ft>>>0,pt||ne(ft,1,this.length),this[ft]&128?(255-this[ft]+1)*-1:this[ft]},jt.prototype.readInt16LE=function(ft,pt){ft=ft>>>0,pt||ne(ft,2,this.length);var At=this[ft]|this[ft+1]<<8;return At&32768?At|4294901760:At},jt.prototype.readInt16BE=function(ft,pt){ft=ft>>>0,pt||ne(ft,2,this.length);var At=this[ft+1]|this[ft]<<8;return At&32768?At|4294901760:At},jt.prototype.readInt32LE=function(ft,pt){return ft=ft>>>0,pt||ne(ft,4,this.length),this[ft]|this[ft+1]<<8|this[ft+2]<<16|this[ft+3]<<24},jt.prototype.readInt32BE=function(ft,pt){return ft=ft>>>0,pt||ne(ft,4,this.length),this[ft]<<24|this[ft+1]<<16|this[ft+2]<<8|this[ft+3]},jt.prototype.readFloatLE=function(ft,pt){return ft=ft>>>0,pt||ne(ft,4,this.length),ie.read(this,ft,!0,23,4)},jt.prototype.readFloatBE=function(ft,pt){return ft=ft>>>0,pt||ne(ft,4,this.length),ie.read(this,ft,!1,23,4)},jt.prototype.readDoubleLE=function(ft,pt){return ft=ft>>>0,pt||ne(ft,8,this.length),ie.read(this,ft,!0,52,8)},jt.prototype.readDoubleBE=function(ft,pt){return ft=ft>>>0,pt||ne(ft,8,this.length),ie.read(this,ft,!1,52,8)};function Se(mt,ft,pt,At,le,we){if(!jt.isBuffer(mt))throw new TypeError('"buffer" argument must be a Buffer instance');if(ft>le||ft<we)throw new RangeError('"value" argument is out of bounds');if(pt+At>mt.length)throw new RangeError("Index out of range")}jt.prototype.writeUintLE=jt.prototype.writeUIntLE=function(ft,pt,At,le){if(ft=+ft,pt=pt>>>0,At=At>>>0,!le){var we=Math.pow(2,8*At)-1;Se(this,ft,pt,At,we,0)}var ae=1,me=0;for(this[pt]=ft&255;++me<At&&(ae*=256);)this[pt+me]=ft/ae&255;return pt+At},jt.prototype.writeUintBE=jt.prototype.writeUIntBE=function(ft,pt,At,le){if(ft=+ft,pt=pt>>>0,At=At>>>0,!le){var we=Math.pow(2,8*At)-1;Se(this,ft,pt,At,we,0)}var ae=At-1,me=1;for(this[pt+ae]=ft&255;--ae>=0&&(me*=256);)this[pt+ae]=ft/me&255;return pt+At},jt.prototype.writeUint8=jt.prototype.writeUInt8=function(ft,pt,At){return ft=+ft,pt=pt>>>0,At||Se(this,ft,pt,1,255,0),this[pt]=ft&255,pt+1},jt.prototype.writeUint16LE=jt.prototype.writeUInt16LE=function(ft,pt,At){return ft=+ft,pt=pt>>>0,At||Se(this,ft,pt,2,65535,0),this[pt]=ft&255,this[pt+1]=ft>>>8,pt+2},jt.prototype.writeUint16BE=jt.prototype.writeUInt16BE=function(ft,pt,At){return ft=+ft,pt=pt>>>0,At||Se(this,ft,pt,2,65535,0),this[pt]=ft>>>8,this[pt+1]=ft&255,pt+2},jt.prototype.writeUint32LE=jt.prototype.writeUInt32LE=function(ft,pt,At){return ft=+ft,pt=pt>>>0,At||Se(this,ft,pt,4,4294967295,0),this[pt+3]=ft>>>24,this[pt+2]=ft>>>16,this[pt+1]=ft>>>8,this[pt]=ft&255,pt+4},jt.prototype.writeUint32BE=jt.prototype.writeUInt32BE=function(ft,pt,At){return ft=+ft,pt=pt>>>0,At||Se(this,ft,pt,4,4294967295,0),this[pt]=ft>>>24,this[pt+1]=ft>>>16,this[pt+2]=ft>>>8,this[pt+3]=ft&255,pt+4},jt.prototype.writeIntLE=function(ft,pt,At,le){if(ft=+ft,pt=pt>>>0,!le){var we=Math.pow(2,8*At-1);Se(this,ft,pt,At,we-1,-we)}var ae=0,me=1,Re=0;for(this[pt]=ft&255;++ae<At&&(me*=256);)ft<0&&Re===0&&this[pt+ae-1]!==0&&(Re=1),this[pt+ae]=(ft/me>>0)-Re&255;return pt+At},jt.prototype.writeIntBE=function(ft,pt,At,le){if(ft=+ft,pt=pt>>>0,!le){var we=Math.pow(2,8*At-1);Se(this,ft,pt,At,we-1,-we)}var ae=At-1,me=1,Re=0;for(this[pt+ae]=ft&255;--ae>=0&&(me*=256);)ft<0&&Re===0&&this[pt+ae+1]!==0&&(Re=1),this[pt+ae]=(ft/me>>0)-Re&255;return pt+At},jt.prototype.writeInt8=function(ft,pt,At){return ft=+ft,pt=pt>>>0,At||Se(this,ft,pt,1,127,-128),ft<0&&(ft=255+ft+1),this[pt]=ft&255,pt+1},jt.prototype.writeInt16LE=function(ft,pt,At){return ft=+ft,pt=pt>>>0,At||Se(this,ft,pt,2,32767,-32768),this[pt]=ft&255,this[pt+1]=ft>>>8,pt+2},jt.prototype.writeInt16BE=function(ft,pt,At){return ft=+ft,pt=pt>>>0,At||Se(this,ft,pt,2,32767,-32768),this[pt]=ft>>>8,this[pt+1]=ft&255,pt+2},jt.prototype.writeInt32LE=function(ft,pt,At){return ft=+ft,pt=pt>>>0,At||Se(this,ft,pt,4,2147483647,-2147483648),this[pt]=ft&255,this[pt+1]=ft>>>8,this[pt+2]=ft>>>16,this[pt+3]=ft>>>24,pt+4},jt.prototype.writeInt32BE=function(ft,pt,At){return ft=+ft,pt=pt>>>0,At||Se(this,ft,pt,4,2147483647,-2147483648),ft<0&&(ft=4294967295+ft+1),this[pt]=ft>>>24,this[pt+1]=ft>>>16,this[pt+2]=ft>>>8,this[pt+3]=ft&255,pt+4};function Pn(mt,ft,pt,At,le,we){if(pt+At>mt.length)throw new RangeError("Index out of range");if(pt<0)throw new RangeError("Index out of range")}function Mn(mt,ft,pt,At,le){return ft=+ft,pt=pt>>>0,le||Pn(mt,ft,pt,4,34028234663852886e22,-34028234663852886e22),ie.write(mt,ft,pt,At,23,4),pt+4}jt.prototype.writeFloatLE=function(ft,pt,At){return Mn(this,ft,pt,!0,At)},jt.prototype.writeFloatBE=function(ft,pt,At){return Mn(this,ft,pt,!1,At)};function Xe(mt,ft,pt,At,le){return ft=+ft,pt=pt>>>0,le||Pn(mt,ft,pt,8,17976931348623157e292,-17976931348623157e292),ie.write(mt,ft,pt,At,52,8),pt+8}jt.prototype.writeDoubleLE=function(ft,pt,At){return Xe(this,ft,pt,!0,At)},jt.prototype.writeDoubleBE=function(ft,pt,At){return Xe(this,ft,pt,!1,At)},jt.prototype.copy=function(ft,pt,At,le){if(!jt.isBuffer(ft))throw new TypeError("argument should be a Buffer");if(At||(At=0),!le&&le!==0&&(le=this.length),pt>=ft.length&&(pt=ft.length),pt||(pt=0),le>0&&le<At&&(le=At),le===At||ft.length===0||this.length===0)return 0;if(pt<0)throw new RangeError("targetStart out of bounds");if(At<0||At>=this.length)throw new RangeError("Index out of range");if(le<0)throw new RangeError("sourceEnd out of bounds");le>this.length&&(le=this.length),ft.length-pt<le-At&&(le=ft.length-pt+At);var we=le-At;return this===ft&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(pt,At,le):Uint8Array.prototype.set.call(ft,this.subarray(At,le),pt),we},jt.prototype.fill=function(ft,pt,At,le){if(typeof ft=="string"){if(typeof pt=="string"?(le=pt,pt=0,At=this.length):typeof At=="string"&&(le=At,At=this.length),le!==void 0&&typeof le!="string")throw new TypeError("encoding must be a string");if(typeof le=="string"&&!jt.isEncoding(le))throw new TypeError("Unknown encoding: "+le);if(ft.length===1){var we=ft.charCodeAt(0);(le==="utf8"&&we<128||le==="latin1")&&(ft=we)}}else typeof ft=="number"?ft=ft&255:typeof ft=="boolean"&&(ft=Number(ft));if(pt<0||this.length<pt||this.length<At)throw new RangeError("Out of range index");if(At<=pt)return this;pt=pt>>>0,At=At===void 0?this.length:At>>>0,ft||(ft=0);var ae;if(typeof ft=="number")for(ae=pt;ae<At;++ae)this[ae]=ft;else{var me=jt.isBuffer(ft)?ft:jt.from(ft,le),Re=me.length;if(Re===0)throw new TypeError('The value "'+ft+'" is invalid for argument "value"');for(ae=0;ae<At-pt;++ae)this[ae+pt]=me[ae%Re]}return this};var Nn=/[^+/0-9A-Za-z-_]/g;function Zn(mt){if(mt=mt.split("=")[0],mt=mt.trim().replace(Nn,""),mt.length<2)return"";for(;mt.length%4!==0;)mt=mt+"=";return mt}function fi(mt,ft){ft=ft||1/0;for(var pt,At=mt.length,le=null,we=[],ae=0;ae<At;++ae){if(pt=mt.charCodeAt(ae),pt>55295&&pt<57344){if(!le){if(pt>56319){(ft-=3)>-1&&we.push(239,191,189);continue}else if(ae+1===At){(ft-=3)>-1&&we.push(239,191,189);continue}le=pt;continue}if(pt<56320){(ft-=3)>-1&&we.push(239,191,189),le=pt;continue}pt=(le-55296<<10|pt-56320)+65536}else le&&(ft-=3)>-1&&we.push(239,191,189);if(le=null,pt<128){if((ft-=1)<0)break;we.push(pt)}else if(pt<2048){if((ft-=2)<0)break;we.push(pt>>6|192,pt&63|128)}else if(pt<65536){if((ft-=3)<0)break;we.push(pt>>12|224,pt>>6&63|128,pt&63|128)}else if(pt<1114112){if((ft-=4)<0)break;we.push(pt>>18|240,pt>>12&63|128,pt>>6&63|128,pt&63|128)}else throw new Error("Invalid code point")}return we}function zn(mt){for(var ft=[],pt=0;pt<mt.length;++pt)ft.push(mt.charCodeAt(pt)&255);return ft}function Si(mt,ft){for(var pt,At,le,we=[],ae=0;ae<mt.length&&!((ft-=2)<0);++ae)pt=mt.charCodeAt(ae),At=pt>>8,le=pt%256,we.push(le),we.push(At);return we}function nn(mt){return ce.toByteArray(Zn(mt))}function Fi(mt,ft,pt,At){for(var le=0;le<At&&!(le+pt>=ft.length||le>=mt.length);++le)ft[le+pt]=mt[le];return le}function Ti(mt,ft){return mt instanceof ft||mt!=null&&mt.constructor!=null&&mt.constructor.name!=null&&mt.constructor.name===ft.name}function Lt(mt){return mt!==mt}var Ot=function(){for(var mt="0123456789abcdef",ft=new Array(256),pt=0;pt<16;++pt)for(var At=pt*16,le=0;le<16;++le)ft[At+le]=mt[pt]+mt[le];return ft}()},57780:function(hi,Cn,bt){"use strict";bt.r(Cn),bt.d(Cn,{clsx:function(){return ce}});function Mt(ie){var Ie,ee,Zt="";if(typeof ie=="string"||typeof ie=="number")Zt+=ie;else if(typeof ie=="object")if(Array.isArray(ie))for(Ie=0;Ie<ie.length;Ie++)ie[Ie]&&(ee=Mt(ie[Ie]))&&(Zt&&(Zt+=" "),Zt+=ee);else for(Ie in ie)ie[Ie]&&(Zt&&(Zt+=" "),Zt+=Ie);return Zt}function ce(){for(var ie,Ie,ee=0,Zt="";ee<arguments.length;)(ie=arguments[ee++])&&(Ie=Mt(ie))&&(Zt&&(Zt+=" "),Zt+=Ie);return Zt}Cn.default=ce},99498:function(hi,Cn,bt){(function(Mt){Mt(bt(89780))})(function(Mt){Mt.defineOption("placeholder","",function(jt,qt,Pt){var re=Pt&&Pt!=Mt.Init;if(qt&&!re)jt.on("blur",ee),jt.on("change",Zt),jt.on("swapDoc",Zt),Mt.on(jt.getInputField(),"compositionupdate",jt.state.placeholderCompose=function(){Ie(jt)}),Zt(jt);else if(!qt&&re){jt.off("blur",ee),jt.off("change",Zt),jt.off("swapDoc",Zt),Mt.off(jt.getInputField(),"compositionupdate",jt.state.placeholderCompose),ce(jt);var Kt=jt.getWrapperElement();Kt.className=Kt.className.replace(" CodeMirror-empty","")}qt&&!jt.hasFocus()&&ee(jt)});function ce(jt){jt.state.placeholder&&(jt.state.placeholder.parentNode.removeChild(jt.state.placeholder),jt.state.placeholder=null)}function ie(jt){ce(jt);var qt=jt.state.placeholder=document.createElement("pre");qt.style.cssText="height: 0; overflow: visible",qt.style.direction=jt.getOption("direction"),qt.className="CodeMirror-placeholder CodeMirror-line-like";var Pt=jt.getOption("placeholder");typeof Pt=="string"&&(Pt=document.createTextNode(Pt)),qt.appendChild(Pt),jt.display.lineSpace.insertBefore(qt,jt.display.lineSpace.firstChild)}function Ie(jt){setTimeout(function(){var qt=!1,Pt=jt.getInputField();Pt.nodeName=="TEXTAREA"?qt=!Pt.value:jt.lineCount()==1&&(qt=!/[^\u200b]/.test(Pt.querySelector(".CodeMirror-line").textContent)),qt?ie(jt):ce(jt)},20)}function ee(jt){Nt(jt)&&ie(jt)}function Zt(jt){var qt=jt.getWrapperElement(),Pt=Nt(jt);qt.className=qt.className.replace(" CodeMirror-empty","")+(Pt?" CodeMirror-empty":""),Pt?ie(jt):ce(jt)}function Nt(jt){return jt.lineCount()===1&&jt.getLine(0)===""}})},25717:function(hi,Cn,bt){(function(Mt){Mt(bt(89780))})(function(Mt){var ce={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ie=Mt.Pos;Mt.defineOption("autoCloseBrackets",!1,function(et,tt,lt){lt&<!=Mt.Init&&(et.removeKeyMap(ee),et.state.closeBrackets=null),tt&&(Zt(Ie(tt,"pairs")),et.state.closeBrackets=tt,et.addKeyMap(ee))});function Ie(et,tt){return tt=="pairs"&&typeof et=="string"?et:typeof et=="object"&&et[tt]!=null?et[tt]:ce[tt]}var ee={Backspace:qt,Enter:Pt};function Zt(et){for(var tt=0;tt<et.length;tt++){var lt=et.charAt(tt),rt="'"+lt+"'";ee[rt]||(ee[rt]=Nt(lt))}}Zt(ce.pairs+"`");function Nt(et){return function(tt){return Kt(tt,et)}}function jt(et){var tt=et.state.closeBrackets;if(!tt||tt.override)return tt;var lt=et.getModeAt(et.getCursor());return lt.closeBrackets||tt}function qt(et){var tt=jt(et);if(!tt||et.getOption("disableInput"))return Mt.Pass;for(var lt=Ie(tt,"pairs"),rt=et.listSelections(),ht=0;ht<rt.length;ht++){if(!rt[ht].empty())return Mt.Pass;var dt=Yt(et,rt[ht].head);if(!dt||lt.indexOf(dt)%2!=0)return Mt.Pass}for(var ht=rt.length-1;ht>=0;ht--){var St=rt[ht].head;et.replaceRange("",ie(St.line,St.ch-1),ie(St.line,St.ch+1),"+delete")}}function Pt(et){var tt=jt(et),lt=tt&&Ie(tt,"explode");if(!lt||et.getOption("disableInput"))return Mt.Pass;for(var rt=et.listSelections(),ht=0;ht<rt.length;ht++){if(!rt[ht].empty())return Mt.Pass;var dt=Yt(et,rt[ht].head);if(!dt||lt.indexOf(dt)%2!=0)return Mt.Pass}et.operation(function(){var St=et.lineSeparator()||`
|
|
|
`;et.replaceSelection(St+St,null),et.execCommand("goCharLeft"),rt=et.listSelections();for(var It=0;It<rt.length;It++){var _t=rt[It].head.line;et.indentLine(_t,null,!0),et.indentLine(_t+1,null,!0)}})}function re(et){var tt=Mt.cmpPos(et.anchor,et.head)>0;return{anchor:new ie(et.anchor.line,et.anchor.ch+(tt?-1:1)),head:new ie(et.head.line,et.head.ch+(tt?1:-1))}}function Kt(et,tt){var lt=jt(et);if(!lt||et.getOption("disableInput"))return Mt.Pass;var rt=Ie(lt,"pairs"),ht=rt.indexOf(tt);if(ht==-1)return Mt.Pass;for(var dt=Ie(lt,"closeBefore"),St=Ie(lt,"triples"),It=rt.charAt(ht+1)==tt,_t=et.listSelections(),Gt=ht%2==0,oe,ue=0;ue<_t.length;ue++){var de=_t[ue],be=de.head,Jt,Ke=et.getRange(be,ie(be.line,be.ch+1));if(Gt&&!de.empty())Jt="surround";else if((It||!Gt)&&Ke==tt)It&&Ct(et,be)?Jt="both":St.indexOf(tt)>=0&&et.getRange(be,ie(be.line,be.ch+3))==tt+tt+tt?Jt="skipThree":Jt="skip";else if(It&&be.ch>1&&St.indexOf(tt)>=0&&et.getRange(ie(be.line,be.ch-2),be)==tt+tt){if(be.ch>2&&/\bstring/.test(et.getTokenTypeAt(ie(be.line,be.ch-2))))return Mt.Pass;Jt="addFour"}else if(It){var Wt=be.ch==0?" ":et.getRange(ie(be.line,be.ch-1),be);if(!Mt.isWordChar(Ke)&&Wt!=tt&&!Mt.isWordChar(Wt))Jt="both";else return Mt.Pass}else if(Gt&&(Ke.length===0||/\s/.test(Ke)||dt.indexOf(Ke)>-1))Jt="both";else return Mt.Pass;if(!oe)oe=Jt;else if(oe!=Jt)return Mt.Pass}var Ge=ht%2?rt.charAt(ht-1):tt,He=ht%2?tt:rt.charAt(ht+1);et.operation(function(){if(oe=="skip")et.execCommand("goCharRight");else if(oe=="skipThree")for(var Me=0;Me<3;Me++)et.execCommand("goCharRight");else if(oe=="surround"){for(var We=et.getSelections(),Me=0;Me<We.length;Me++)We[Me]=Ge+We[Me]+He;et.replaceSelections(We,"around"),We=et.listSelections().slice();for(var Me=0;Me<We.length;Me++)We[Me]=re(We[Me]);et.setSelections(We)}else oe=="both"?(et.replaceSelection(Ge+He,null),et.triggerElectric(Ge+He),et.execCommand("goCharLeft")):oe=="addFour"&&(et.replaceSelection(Ge+Ge+Ge+Ge,"before"),et.execCommand("goCharRight"))})}function Yt(et,tt){var lt=et.getRange(ie(tt.line,tt.ch-1),ie(tt.line,tt.ch+1));return lt.length==2?lt:null}function Ct(et,tt){var lt=et.getTokenAt(ie(tt.line,tt.ch+1));return/\bstring/.test(lt.type)&<.start==tt.ch&&(tt.ch==0||!/\bstring/.test(et.getTokenTypeAt(tt)))}})},6313:function(hi,Cn,bt){(function(Mt){Mt(bt(89780),bt(32855))})(function(Mt){Mt.defineOption("autoCloseTags",!1,function(qt,Pt,re){if(re!=Mt.Init&&re&&qt.removeKeyMap("autoCloseTags"),!!Pt){var Kt={name:"autoCloseTags"};(typeof Pt!="object"||Pt.whenClosing!==!1)&&(Kt["'/'"]=function(Yt){return Zt(Yt)}),(typeof Pt!="object"||Pt.whenOpening!==!1)&&(Kt["'>'"]=function(Yt){return Ie(Yt)}),qt.addKeyMap(Kt)}});var ce=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],ie=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function Ie(qt){if(qt.getOption("disableInput"))return Mt.Pass;for(var Pt=qt.listSelections(),re=[],Kt=qt.getOption("autoCloseTags"),Yt=0;Yt<Pt.length;Yt++){if(!Pt[Yt].empty())return Mt.Pass;var Ct=Pt[Yt].head,et=qt.getTokenAt(Ct),tt=Mt.innerMode(qt.getMode(),et.state),lt=tt.state,rt=tt.mode.xmlCurrentTag&&tt.mode.xmlCurrentTag(lt),ht=rt&&rt.name;if(!ht)return Mt.Pass;var dt=tt.mode.configuration=="html",St=typeof Kt=="object"&&Kt.dontCloseTags||dt&&ce,It=typeof Kt=="object"&&Kt.indentTags||dt&&ie;et.end>Ct.ch&&(ht=ht.slice(0,ht.length-et.end+Ct.ch));var _t=ht.toLowerCase();if(!ht||et.type=="string"&&(et.end!=Ct.ch||!/[\"\']/.test(et.string.charAt(et.string.length-1))||et.string.length==1)||et.type=="tag"&&rt.close||et.string.indexOf("/")==Ct.ch-et.start-1||St&&Nt(St,_t)>-1||jt(qt,tt.mode.xmlCurrentContext&&tt.mode.xmlCurrentContext(lt)||[],ht,Ct,!0))return Mt.Pass;var Gt=typeof Kt=="object"&&Kt.emptyTags;if(Gt&&Nt(Gt,ht)>-1){re[Yt]={text:"/>",newPos:Mt.Pos(Ct.line,Ct.ch+2)};continue}var oe=It&&Nt(It,_t)>-1;re[Yt]={indent:oe,text:">"+(oe?`
|
|
|
|
|
|
`:"")+"</"+ht+">",newPos:oe?Mt.Pos(Ct.line+1,0):Mt.Pos(Ct.line,Ct.ch+1)}}for(var ue=typeof Kt=="object"&&Kt.dontIndentOnAutoClose,Yt=Pt.length-1;Yt>=0;Yt--){var de=re[Yt];qt.replaceRange(de.text,Pt[Yt].head,Pt[Yt].anchor,"+insert");var be=qt.listSelections().slice(0);be[Yt]={head:de.newPos,anchor:de.newPos},qt.setSelections(be),!ue&&de.indent&&(qt.indentLine(de.newPos.line,null,!0),qt.indentLine(de.newPos.line+1,null,!0))}}function ee(qt,Pt){for(var re=qt.listSelections(),Kt=[],Yt=Pt?"/":"</",Ct=qt.getOption("autoCloseTags"),et=typeof Ct=="object"&&Ct.dontIndentOnSlash,tt=0;tt<re.length;tt++){if(!re[tt].empty())return Mt.Pass;var lt=re[tt].head,rt=qt.getTokenAt(lt),ht=Mt.innerMode(qt.getMode(),rt.state),dt=ht.state;if(Pt&&(rt.type=="string"||rt.string.charAt(0)!="<"||rt.start!=lt.ch-1))return Mt.Pass;var St,It=ht.mode.name!="xml"&&qt.getMode().name=="htmlmixed";if(It&&ht.mode.name=="javascript")St=Yt+"script";else if(It&&ht.mode.name=="css")St=Yt+"style";else{var _t=ht.mode.xmlCurrentContext&&ht.mode.xmlCurrentContext(dt);if(!_t||_t.length&&jt(qt,_t,_t[_t.length-1],lt))return Mt.Pass;St=Yt+_t[_t.length-1]}qt.getLine(lt.line).charAt(rt.end)!=">"&&(St+=">"),Kt[tt]=St}if(qt.replaceSelections(Kt),re=qt.listSelections(),!et)for(var tt=0;tt<re.length;tt++)(tt==re.length-1||re[tt].head.line<re[tt+1].head.line)&&qt.indentLine(re[tt].head.line)}function Zt(qt){return qt.getOption("disableInput")?Mt.Pass:ee(qt,!0)}Mt.commands.closeTag=function(qt){return ee(qt)};function Nt(qt,Pt){if(qt.indexOf)return qt.indexOf(Pt);for(var re=0,Kt=qt.length;re<Kt;++re)if(qt[re]==Pt)return re;return-1}function jt(qt,Pt,re,Kt,Yt){if(!Mt.scanForClosingTag)return!1;var Ct=Math.min(qt.lastLine()+1,Kt.line+500),et=Mt.scanForClosingTag(qt,Kt,null,Ct);if(!et||et.tag!=re)return!1;for(var tt=Yt?1:0,lt=Pt.length-1;lt>=0&&Pt[lt]==re;lt--)++tt;Kt=et.to;for(var lt=1;lt<tt;lt++){var rt=Mt.scanForClosingTag(qt,Kt,null,Ct);if(!rt||rt.tag!=re)return!1;Kt=rt.to}return!0}})},32855:function(hi,Cn,bt){(function(Mt){Mt(bt(89780))})(function(Mt){"use strict";var ce=Mt.Pos;function ie(lt,rt){return lt.line-rt.line||lt.ch-rt.ch}var Ie="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",ee=Ie+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Zt=new RegExp("<(/?)(["+Ie+"]["+ee+"]*)","g");function Nt(lt,rt,ht,dt){this.line=rt,this.ch=ht,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 jt(lt,rt){var ht=lt.cm.getTokenTypeAt(ce(lt.line,rt));return ht&&/\btag\b/.test(ht)}function qt(lt){if(!(lt.line>=lt.max))return lt.ch=0,lt.text=lt.cm.getLine(++lt.line),!0}function Pt(lt){if(!(lt.line<=lt.min))return lt.text=lt.cm.getLine(--lt.line),lt.ch=lt.text.length,!0}function re(lt){for(;;){var rt=lt.text.indexOf(">",lt.ch);if(rt==-1){if(qt(lt))continue;return}if(!jt(lt,rt+1)){lt.ch=rt+1;continue}var ht=lt.text.lastIndexOf("/",rt),dt=ht>-1&&!/\S/.test(lt.text.slice(ht+1,rt));return lt.ch=rt+1,dt?"selfClose":"regular"}}function Kt(lt){for(;;){var rt=lt.ch?lt.text.lastIndexOf("<",lt.ch-1):-1;if(rt==-1){if(Pt(lt))continue;return}if(!jt(lt,rt+1)){lt.ch=rt;continue}Zt.lastIndex=rt,lt.ch=rt;var ht=Zt.exec(lt.text);if(ht&&ht.index==rt)return ht}}function Yt(lt){for(;;){Zt.lastIndex=lt.ch;var rt=Zt.exec(lt.text);if(!rt){if(qt(lt))continue;return}if(!jt(lt,rt.index+1)){lt.ch=rt.index+1;continue}return lt.ch=rt.index+rt[0].length,rt}}function Ct(lt){for(;;){var rt=lt.ch?lt.text.lastIndexOf(">",lt.ch-1):-1;if(rt==-1){if(Pt(lt))continue;return}if(!jt(lt,rt+1)){lt.ch=rt;continue}var ht=lt.text.lastIndexOf("/",rt),dt=ht>-1&&!/\S/.test(lt.text.slice(ht+1,rt));return lt.ch=rt+1,dt?"selfClose":"regular"}}function et(lt,rt){for(var ht=[];;){var dt=Yt(lt),St,It=lt.line,_t=lt.ch-(dt?dt[0].length:0);if(!dt||!(St=re(lt)))return;if(St!="selfClose")if(dt[1]){for(var Gt=ht.length-1;Gt>=0;--Gt)if(ht[Gt]==dt[2]){ht.length=Gt;break}if(Gt<0&&(!rt||rt==dt[2]))return{tag:dt[2],from:ce(It,_t),to:ce(lt.line,lt.ch)}}else ht.push(dt[2])}}function tt(lt,rt){for(var ht=[];;){var dt=Ct(lt);if(!dt)return;if(dt=="selfClose"){Kt(lt);continue}var St=lt.line,It=lt.ch,_t=Kt(lt);if(!_t)return;if(_t[1])ht.push(_t[2]);else{for(var Gt=ht.length-1;Gt>=0;--Gt)if(ht[Gt]==_t[2]){ht.length=Gt;break}if(Gt<0&&(!rt||rt==_t[2]))return{tag:_t[2],from:ce(lt.line,lt.ch),to:ce(St,It)}}}}Mt.registerHelper("fold","xml",function(lt,rt){for(var ht=new Nt(lt,rt.line,0);;){var dt=Yt(ht);if(!dt||ht.line!=rt.line)return;var St=re(ht);if(!St)return;if(!dt[1]&&St!="selfClose"){var It=ce(ht.line,ht.ch),_t=et(ht,dt[2]);return _t&&ie(_t.from,It)>0?{from:It,to:_t.from}:null}}}),Mt.findMatchingTag=function(lt,rt,ht){var dt=new Nt(lt,rt.line,rt.ch,ht);if(!(dt.text.indexOf(">")==-1&&dt.text.indexOf("<")==-1)){var St=re(dt),It=St&&ce(dt.line,dt.ch),_t=St&&Kt(dt);if(!(!St||!_t||ie(dt,rt)>0)){var Gt={from:ce(dt.line,dt.ch),to:It,tag:_t[2]};return St=="selfClose"?{open:Gt,close:null,at:"open"}:_t[1]?{open:tt(dt,_t[2]),close:Gt,at:"close"}:(dt=new Nt(lt,It.line,It.ch,ht),{open:Gt,close:et(dt,_t[2]),at:"open"})}}},Mt.findEnclosingTag=function(lt,rt,ht,dt){for(var St=new Nt(lt,rt.line,rt.ch,ht);;){var It=tt(St,dt);if(!It)break;var _t=new Nt(lt,rt.line,rt.ch,ht),Gt=et(_t,It.tag);if(Gt)return{open:It,close:Gt}}},Mt.scanForClosingTag=function(lt,rt,ht,dt){var St=new Nt(lt,rt.line,rt.ch,dt?{from:0,to:dt}:null);return et(St,ht)}})},89780:function(hi){(function(Cn,bt){hi.exports=bt()})(this,function(){"use strict";var Cn=navigator.userAgent,bt=navigator.platform,Mt=/gecko\/\d/i.test(Cn),ce=/MSIE \d/.test(Cn),ie=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Cn),Ie=/Edge\/(\d+)/.exec(Cn),ee=ce||ie||Ie,Zt=ee&&(ce?document.documentMode||6:+(Ie||ie)[1]),Nt=!Ie&&/WebKit\//.test(Cn),jt=Nt&&/Qt\/\d+\.\d+/.test(Cn),qt=!Ie&&/Chrome\//.test(Cn),Pt=/Opera\//.test(Cn),re=/Apple Computer/.test(navigator.vendor),Kt=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Cn),Yt=/PhantomJS/.test(Cn),Ct=!Ie&&/AppleWebKit/.test(Cn)&&/Mobile\/\w+/.test(Cn),et=/Android/.test(Cn),tt=Ct||et||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Cn),lt=Ct||/Mac/.test(bt),rt=/\bCrOS\b/.test(Cn),ht=/win/i.test(bt),dt=Pt&&Cn.match(/Version\/(\d*\.\d*)/);dt&&(dt=Number(dt[1])),dt&&dt>=15&&(Pt=!1,Nt=!0);var St=lt&&(jt||Pt&&(dt==null||dt<12.11)),It=Mt||ee&&Zt>=9;function _t(it){return new RegExp("(^|\\s)"+it+"(?:$|\\s)\\s*")}var Gt=function(it,st){var vt=it.className,gt=_t(st).exec(vt);if(gt){var Bt=vt.slice(gt.index+gt[0].length);it.className=vt.slice(0,gt.index)+(Bt?gt[1]+Bt:"")}};function oe(it){for(var st=it.childNodes.length;st>0;--st)it.removeChild(it.firstChild);return it}function ue(it,st){return oe(it).appendChild(st)}function de(it,st,vt,gt){var Bt=document.createElement(it);if(vt&&(Bt.className=vt),gt&&(Bt.style.cssText=gt),typeof st=="string")Bt.appendChild(document.createTextNode(st));else if(st)for(var te=0;te<st.length;++te)Bt.appendChild(st[te]);return Bt}function be(it,st,vt,gt){var Bt=de(it,st,vt,gt);return Bt.setAttribute("role","presentation"),Bt}var Jt;document.createRange?Jt=function(it,st,vt,gt){var Bt=document.createRange();return Bt.setEnd(gt||it,vt),Bt.setStart(it,st),Bt}:Jt=function(it,st,vt){var gt=document.body.createTextRange();try{gt.moveToElementText(it.parentNode)}catch(Bt){return gt}return gt.collapse(!0),gt.moveEnd("character",vt),gt.moveStart("character",st),gt};function Ke(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 Wt(){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 Ge(it,st){var vt=it.className;_t(st).test(vt)||(it.className+=(vt?" ":"")+st)}function He(it,st){for(var vt=it.split(" "),gt=0;gt<vt.length;gt++)vt[gt]&&!_t(vt[gt]).test(st)&&(st+=" "+vt[gt]);return st}var Me=function(it){it.select()};Ct?Me=function(it){it.selectionStart=0,it.selectionEnd=it.value.length}:ee&&(Me=function(it){try{it.select()}catch(st){}});function We(it){var st=Array.prototype.slice.call(arguments,1);return function(){return it.apply(null,st)}}function _e(it,st,vt){st||(st={});for(var gt in it)it.hasOwnProperty(gt)&&(vt!==!1||!st.hasOwnProperty(gt))&&(st[gt]=it[gt]);return st}function ve(it,st,vt,gt,Bt){st==null&&(st=it.search(/[^\s\u00a0]/),st==-1&&(st=it.length));for(var te=gt||0,xe=Bt||0;;){var Ue=it.indexOf(" ",te);if(Ue<0||Ue>=st)return xe+(st-te);xe+=Ue-te,xe+=vt-xe%vt,te=Ue+1}}var ne=function(){this.id=null,this.f=null,this.time=0,this.handler=We(this.onTimeout,this)};ne.prototype.onTimeout=function(it){it.id=0,it.time<=+new Date?it.f():setTimeout(it.handler,it.time-+new Date)},ne.prototype.set=function(it,st){this.f=st;var vt=+new Date+it;(!this.id||vt<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,it),this.time=vt)};function Se(it,st){for(var vt=0;vt<it.length;++vt)if(it[vt]==st)return vt;return-1}var Pn=50,Mn={toString:function(){return"CodeMirror.Pass"}},Xe={scroll:!1},Nn={origin:"*mouse"},Zn={origin:"+move"};function fi(it,st,vt){for(var gt=0,Bt=0;;){var te=it.indexOf(" ",gt);te==-1&&(te=it.length);var xe=te-gt;if(te==it.length||Bt+xe>=st)return gt+Math.min(xe,st-Bt);if(Bt+=te-gt,Bt+=vt-Bt%vt,gt=te+1,Bt>=st)return gt}}var zn=[""];function Si(it){for(;zn.length<=it;)zn.push(nn(zn)+" ");return zn[it]}function nn(it){return it[it.length-1]}function Fi(it,st){for(var vt=[],gt=0;gt<it.length;gt++)vt[gt]=st(it[gt],gt);return vt}function Ti(it,st,vt){for(var gt=0,Bt=vt(st);gt<it.length&&vt(it[gt])<=Bt;)gt++;it.splice(gt,0,st)}function Lt(){}function Ot(it,st){var vt;return Object.create?vt=Object.create(it):(Lt.prototype=it,vt=new Lt),st&&_e(st,vt),vt}var mt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ft(it){return/\w/.test(it)||it>"\x80"&&(it.toUpperCase()!=it.toLowerCase()||mt.test(it))}function pt(it,st){return st?st.source.indexOf("\\w")>-1&&ft(it)?!0:st.test(it):ft(it)}function At(it){for(var st in it)if(it.hasOwnProperty(st)&&it[st])return!1;return!0}var le=/[\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 we(it){return it.charCodeAt(0)>=768&&le.test(it)}function ae(it,st,vt){for(;(vt<0?st>0:st<it.length)&&we(it.charAt(st));)st+=vt;return st}function me(it,st,vt){for(var gt=st>vt?-1:1;;){if(st==vt)return st;var Bt=(st+vt)/2,te=gt<0?Math.ceil(Bt):Math.floor(Bt);if(te==st)return it(te)?st:vt;it(te)?vt=te:st=te+gt}}function Re(it,st,vt,gt){if(!it)return gt(st,vt,"ltr",0);for(var Bt=!1,te=0;te<it.length;++te){var xe=it[te];(xe.from<vt&&xe.to>st||st==vt&&xe.to==st)&&(gt(Math.max(xe.from,st),Math.min(xe.to,vt),xe.level==1?"rtl":"ltr",te),Bt=!0)}Bt||gt(st,vt,"ltr")}var Oe=null;function ke(it,st,vt){var gt;Oe=null;for(var Bt=0;Bt<it.length;++Bt){var te=it[Bt];if(te.from<st&&te.to>st)return Bt;te.to==st&&(te.from!=te.to&&vt=="before"?gt=Bt:Oe=Bt),te.from==st&&(te.from!=te.to&&vt!="before"?gt=Bt:Oe=Bt)}return gt!=null?gt:Oe}var rn=function(){var it="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",st="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function vt(an){return an<=247?it.charAt(an):1424<=an&&an<=1524?"R":1536<=an&&an<=1785?st.charAt(an-1536):1774<=an&&an<=2220?"r":8192<=an&&an<=8203?"w":an==8204?"b":"L"}var gt=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,Bt=/[stwN]/,te=/[LRr]/,xe=/[Lb1n]/,Ue=/[1n]/;function je(an,$n,wn){this.level=an,this.from=$n,this.to=wn}return function(an,$n){var wn=$n=="ltr"?"L":"R";if(an.length==0||$n=="ltr"&&!gt.test(an))return!1;for(var Mi=an.length,bi=[],br=0;br<Mi;++br)bi.push(vt(an.charCodeAt(br)));for(var Tr=0,$r=wn;Tr<Mi;++Tr){var mo=bi[Tr];mo=="m"?bi[Tr]=$r:$r=mo}for(var Jo=0,Mo=wn;Jo<Mi;++Jo){var rs=bi[Jo];rs=="1"&&Mo=="r"?bi[Jo]="n":te.test(rs)&&(Mo=rs,rs=="r"&&(bi[Jo]="R"))}for(var Ts=1,No=bi[0];Ts<Mi-1;++Ts){var Js=bi[Ts];Js=="+"&&No=="1"&&bi[Ts+1]=="1"?bi[Ts]="1":Js==","&&No==bi[Ts+1]&&(No=="1"||No=="n")&&(bi[Ts]=No),No=Js}for(var Ol=0;Ol<Mi;++Ol){var zl=bi[Ol];if(zl==",")bi[Ol]="N";else if(zl=="%"){var Al=void 0;for(Al=Ol+1;Al<Mi&&bi[Al]=="%";++Al);for(var Xa=Ol&&bi[Ol-1]=="!"||Al<Mi&&bi[Al]=="1"?"1":"N",Ia=Ol;Ia<Al;++Ia)bi[Ia]=Xa;Ol=Al-1}}for(var za=0,Pl=wn;za<Mi;++za){var mu=bi[za];Pl=="L"&&mu=="1"?bi[za]="L":te.test(mu)&&(Pl=mu)}for(var Oo=0;Oo<Mi;++Oo)if(Bt.test(bi[Oo])){var Ca=void 0;for(Ca=Oo+1;Ca<Mi&&Bt.test(bi[Ca]);++Ca);for(var Kl=(Oo?bi[Oo-1]:wn)=="L",Dl=(Ca<Mi?bi[Ca]:wn)=="L",Xu=Kl==Dl?Kl?"L":"R":wn,sa=Oo;sa<Ca;++sa)bi[sa]=Xu;Oo=Ca-1}for(var Qs=[],hh,lu=0;lu<Mi;)if(xe.test(bi[lu])){var Yd=lu;for(++lu;lu<Mi&&xe.test(bi[lu]);++lu);Qs.push(new je(0,Yd,lu))}else{var Eh=lu,nh=Qs.length,wh=$n=="rtl"?1:0;for(++lu;lu<Mi&&bi[lu]!="L";++lu);for(var jl=Eh;jl<lu;)if(Ue.test(bi[jl])){Eh<jl&&(Qs.splice(nh,0,new je(1,Eh,jl)),nh+=wh);var zu=jl;for(++jl;jl<lu&&Ue.test(bi[jl]);++jl);Qs.splice(nh,0,new je(2,zu,jl)),nh+=wh,Eh=jl}else++jl;Eh<lu&&Qs.splice(nh,0,new je(1,Eh,lu))}return $n=="ltr"&&(Qs[0].level==1&&(hh=an.match(/^\s+/))&&(Qs[0].from=hh[0].length,Qs.unshift(new je(0,0,hh[0].length))),nn(Qs).level==1&&(hh=an.match(/\s+$/))&&(nn(Qs).to-=hh[0].length,Qs.push(new je(0,Mi-hh[0].length,Mi)))),$n=="rtl"?Qs.reverse():Qs}}();function Vn(it,st){var vt=it.order;return vt==null&&(vt=it.order=rn(it.text,st)),vt}var sn=[],An=function(it,st,vt){if(it.addEventListener)it.addEventListener(st,vt,!1);else if(it.attachEvent)it.attachEvent("on"+st,vt);else{var gt=it._handlers||(it._handlers={});gt[st]=(gt[st]||sn).concat(vt)}};function Bn(it,st){return it._handlers&&it._handlers[st]||sn}function ii(it,st,vt){if(it.removeEventListener)it.removeEventListener(st,vt,!1);else if(it.detachEvent)it.detachEvent("on"+st,vt);else{var gt=it._handlers,Bt=gt&>[st];if(Bt){var te=Se(Bt,vt);te>-1&&(gt[st]=Bt.slice(0,te).concat(Bt.slice(te+1)))}}}function _n(it,st){var vt=Bn(it,st);if(vt.length)for(var gt=Array.prototype.slice.call(arguments,2),Bt=0;Bt<vt.length;++Bt)vt[Bt].apply(null,gt)}function ji(it,st,vt){return typeof st=="string"&&(st={type:st,preventDefault:function(){this.defaultPrevented=!0}}),_n(it,vt||st.type,it,st),Yr(st)||st.codemirrorIgnore}function cr(it){var st=it._handlers&&it._handlers.cursorActivity;if(st)for(var vt=it.curOp.cursorActivityHandlers||(it.curOp.cursorActivityHandlers=[]),gt=0;gt<st.length;++gt)Se(vt,st[gt])==-1&&vt.push(st[gt])}function Ji(it,st){return Bn(it,st).length>0}function mr(it){it.prototype.on=function(st,vt){An(this,st,vt)},it.prototype.off=function(st,vt){ii(this,st,vt)}}function Mr(it){it.preventDefault?it.preventDefault():it.returnValue=!1}function ao(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}function Yr(it){return it.defaultPrevented!=null?it.defaultPrevented:it.returnValue==!1}function Zr(it){Mr(it),ao(it)}function kr(it){return it.target||it.srcElement}function Gr(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 lo=function(){if(ee&&Zt<9)return!1;var it=de("div");return"draggable"in it||"dragDrop"in it}(),_o;function ns(it){if(_o==null){var st=de("span","\u200B");ue(it,de("span",[st,document.createTextNode("x")])),it.firstChild.offsetHeight!=0&&(_o=st.offsetWidth<=1&&st.offsetHeight>2&&!(ee&&Zt<8))}var vt=_o?de("span","\u200B"):de("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return vt.setAttribute("cm-text",""),vt}var co;function ys(it){if(co!=null)return co;var st=ue(it,document.createTextNode("A\u062EA")),vt=Jt(st,0,1).getBoundingClientRect(),gt=Jt(st,1,2).getBoundingClientRect();return oe(it),!vt||vt.left==vt.right?!1:co=gt.right-vt.right<3}var jo=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(it){for(var st=0,vt=[],gt=it.length;st<=gt;){var Bt=it.indexOf(`
|
|
|
`,st);Bt==-1&&(Bt=it.length);var te=it.slice(st,it.charAt(Bt-1)=="\r"?Bt-1:Bt),xe=te.indexOf("\r");xe!=-1?(vt.push(te.slice(0,xe)),st+=xe+1):(vt.push(te),st=Bt+1)}return vt}:function(it){return it.split(/\r\n?|\n/)},$t=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(vt){}return!st||st.parentElement()!=it?!1:st.compareEndPoints("StartToEnd",st)!=0},ri=function(){var it=de("div");return"oncopy"in it?!0:(it.setAttribute("oncopy","return;"),typeof it.oncopy=="function")}(),ws=null;function Is(it){if(ws!=null)return ws;var st=ue(it,de("span","x")),vt=st.getBoundingClientRect(),gt=Jt(st,0,1).getBoundingClientRect();return ws=Math.abs(vt.left-gt.left)>1}var ma={},va={};function qs(it,st){arguments.length>2&&(st.dependencies=Array.prototype.slice.call(arguments,2)),ma[it]=st}function _r(it,st){va[it]=st}function Dr(it){if(typeof it=="string"&&va.hasOwnProperty(it))it=va[it];else if(it&&typeof it.name=="string"&&va.hasOwnProperty(it.name)){var st=va[it.name];typeof st=="string"&&(st={name:st}),it=Ot(st,it),it.name=st.name}else{if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(it))return Dr("application/xml");if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(it))return Dr("application/json")}return typeof it=="string"?{name:it}:it||{name:"null"}}function kn(it,st){st=Dr(st);var vt=ma[st.name];if(!vt)return kn(it,"text/plain");var gt=vt(it,st);if(Tn.hasOwnProperty(st.name)){var Bt=Tn[st.name];for(var te in Bt)Bt.hasOwnProperty(te)&&(gt.hasOwnProperty(te)&&(gt["_"+te]=gt[te]),gt[te]=Bt[te])}if(gt.name=st.name,st.helperType&&(gt.helperType=st.helperType),st.modeProps)for(var xe in st.modeProps)gt[xe]=st.modeProps[xe];return gt}var Tn={};function De(it,st){var vt=Tn.hasOwnProperty(it)?Tn[it]:Tn[it]={};_e(st,vt)}function ti(it,st){if(st===!0)return st;if(it.copyState)return it.copyState(st);var vt={};for(var gt in st){var Bt=st[gt];Bt instanceof Array&&(Bt=Bt.concat([])),vt[gt]=Bt}return vt}function yi(it,st){for(var vt;it.innerMode&&(vt=it.innerMode(st),!(!vt||vt.mode==it));)st=vt.state,it=vt.mode;return vt||{mode:it,state:st}}function dn(it,st,vt){return it.startState?it.startState(st,vt):!0}var Le=function(it,st,vt){this.pos=this.start=0,this.string=it,this.tabSize=st||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=vt};Le.prototype.eol=function(){return this.pos>=this.string.length},Le.prototype.sol=function(){return this.pos==this.lineStart},Le.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Le.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Le.prototype.eat=function(it){var st=this.string.charAt(this.pos),vt;if(typeof it=="string"?vt=st==it:vt=st&&(it.test?it.test(st):it(st)),vt)return++this.pos,st},Le.prototype.eatWhile=function(it){for(var st=this.pos;this.eat(it););return this.pos>st},Le.prototype.eatSpace=function(){for(var it=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>it},Le.prototype.skipToEnd=function(){this.pos=this.string.length},Le.prototype.skipTo=function(it){var st=this.string.indexOf(it,this.pos);if(st>-1)return this.pos=st,!0},Le.prototype.backUp=function(it){this.pos-=it},Le.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ve(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ve(this.string,this.lineStart,this.tabSize):0)},Le.prototype.indentation=function(){return ve(this.string,null,this.tabSize)-(this.lineStart?ve(this.string,this.lineStart,this.tabSize):0)},Le.prototype.match=function(it,st,vt){if(typeof it=="string"){var gt=function(xe){return vt?xe.toLowerCase():xe},Bt=this.string.substr(this.pos,it.length);if(gt(Bt)==gt(it))return st!==!1&&(this.pos+=it.length),!0}else{var te=this.string.slice(this.pos).match(it);return te&&te.index>0?null:(te&&st!==!1&&(this.pos+=te[0].length),te)}},Le.prototype.current=function(){return this.string.slice(this.start,this.pos)},Le.prototype.hideFirstChars=function(it,st){this.lineStart+=it;try{return st()}finally{this.lineStart-=it}},Le.prototype.lookAhead=function(it){var st=this.lineOracle;return st&&st.lookAhead(it)},Le.prototype.baseToken=function(){var it=this.lineOracle;return it&&it.baseToken(this.pos)};function yn(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 vt=it;!vt.lines;)for(var gt=0;;++gt){var Bt=vt.children[gt],te=Bt.chunkSize();if(st<te){vt=Bt;break}st-=te}return vt.lines[st]}function Qn(it,st,vt){var gt=[],Bt=st.line;return it.iter(st.line,vt.line+1,function(te){var xe=te.text;Bt==vt.line&&(xe=xe.slice(0,vt.ch)),Bt==st.line&&(xe=xe.slice(st.ch)),gt.push(xe),++Bt}),gt}function wi(it,st,vt){var gt=[];return it.iter(st,vt,function(Bt){gt.push(Bt.text)}),gt}function Oi(it,st){var vt=st-it.height;if(vt)for(var gt=it;gt;gt=gt.parent)gt.height+=vt}function qe(it){if(it.parent==null)return null;for(var st=it.parent,vt=Se(st.lines,it),gt=st.parent;gt;st=gt,gt=gt.parent)for(var Bt=0;gt.children[Bt]!=st;++Bt)vt+=gt.children[Bt].chunkSize();return vt+st.first}function oi(it,st){var vt=it.first;t:do{for(var gt=0;gt<it.children.length;++gt){var Bt=it.children[gt],te=Bt.height;if(st<te){it=Bt;continue t}st-=te,vt+=Bt.chunkSize()}return vt}while(!it.lines);for(var xe=0;xe<it.lines.length;++xe){var Ue=it.lines[xe],je=Ue.height;if(st<je)break;st-=je}return vt+xe}function Pi(it,st){return st>=it.first&&st<it.first+it.size}function er(it,st){return String(it.lineNumberFormatter(st+it.firstLineNumber))}function On(it,st,vt){if(vt===void 0&&(vt=null),!(this instanceof On))return new On(it,st,vt);this.line=it,this.ch=st,this.sticky=vt}function ui(it,st){return it.line-st.line||it.ch-st.ch}function Cr(it,st){return it.sticky==st.sticky&&ui(it,st)==0}function or(it){return On(it.line,it.ch)}function zr(it,st){return ui(it,st)<0?st:it}function ar(it,st){return ui(it,st)<0?it:st}function Lr(it,st){return Math.max(it.first,Math.min(st,it.first+it.size-1))}function nr(it,st){if(st.line<it.first)return On(it.first,0);var vt=it.first+it.size-1;return st.line>vt?On(vt,yn(it,vt).text.length):Pr(st,yn(it,st.line).text.length)}function Pr(it,st){var vt=it.ch;return vt==null||vt>st?On(it.line,st):vt<0?On(it.line,0):it}function io(it,st){for(var vt=[],gt=0;gt<st.length;gt++)vt[gt]=nr(it,st[gt]);return vt}var Uo=function(it,st){this.state=it,this.lookAhead=st},gi=function(it,st,vt,gt){this.state=st,this.doc=it,this.line=vt,this.maxLookAhead=gt||0,this.baseTokens=null,this.baseTokenPos=1};gi.prototype.lookAhead=function(it){var st=this.doc.getLine(this.line+it);return st!=null&&it>this.maxLookAhead&&(this.maxLookAhead=it),st},gi.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}},gi.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},gi.fromSaved=function(it,st,vt){return st instanceof Uo?new gi(it,ti(it.mode,st.state),vt,st.lookAhead):new gi(it,ti(it.mode,st),vt)},gi.prototype.save=function(it){var st=it!==!1?ti(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Uo(st,this.maxLookAhead):st};function Qo(it,st,vt,gt){var Bt=[it.state.modeGen],te={};di(it,st.text,it.doc.mode,vt,function(an,$n){return Bt.push(an,$n)},te,gt);for(var xe=vt.state,Ue=function(an){vt.baseTokens=Bt;var $n=it.state.overlays[an],wn=1,Mi=0;vt.state=!0,di(it,st.text,$n.mode,vt,function(bi,br){for(var Tr=wn;Mi<bi;){var $r=Bt[wn];$r>bi&&Bt.splice(wn,1,bi,Bt[wn+1],$r),wn+=2,Mi=Math.min(bi,$r)}if(br)if($n.opaque)Bt.splice(Tr,wn-Tr,bi,"overlay "+br),wn=Tr+2;else for(;Tr<wn;Tr+=2){var mo=Bt[Tr+1];Bt[Tr+1]=(mo?mo+" ":"")+"overlay "+br}},te),vt.state=xe,vt.baseTokens=null,vt.baseTokenPos=1},je=0;je<it.state.overlays.length;++je)Ue(je);return{styles:Bt,classes:te.bgClass||te.textClass?te:null}}function ps(it,st,vt){if(!st.styles||st.styles[0]!=it.state.modeGen){var gt=$o(it,qe(st)),Bt=st.text.length>it.options.maxHighlightLength&&ti(it.doc.mode,gt.state),te=Qo(it,st,gt);Bt&&(gt.state=Bt),st.stateAfter=gt.save(!Bt),st.styles=te.styles,te.classes?st.styleClasses=te.classes:st.styleClasses&&(st.styleClasses=null),vt===it.doc.highlightFrontier&&(it.doc.modeFrontier=Math.max(it.doc.modeFrontier,++it.doc.highlightFrontier))}return st.styles}function $o(it,st,vt){var gt=it.doc,Bt=it.display;if(!gt.mode.startState)return new gi(gt,!0,st);var te=Co(it,st,vt),xe=te>gt.first&&yn(gt,te-1).stateAfter,Ue=xe?gi.fromSaved(gt,xe,te):new gi(gt,dn(gt.mode),te);return gt.iter(te,st,function(je){pi(it,je.text,Ue);var an=Ue.line;je.stateAfter=an==st-1||an%5==0||an>=Bt.viewFrom&&an<Bt.viewTo?Ue.save():null,Ue.nextLine()}),vt&&(gt.modeFrontier=Ue.line),Ue}function pi(it,st,vt,gt){var Bt=it.doc.mode,te=new Le(st,it.options.tabSize,vt);for(te.start=te.pos=gt||0,st==""&&ur(Bt,vt.state);!te.eol();)Ur(Bt,te,vt.state),te.start=te.pos}function ur(it,st){if(it.blankLine)return it.blankLine(st);if(it.innerMode){var vt=yi(it,st);if(vt.mode.blankLine)return vt.mode.blankLine(vt.state)}}function Ur(it,st,vt,gt){for(var Bt=0;Bt<10;Bt++){gt&&(gt[0]=yi(it,vt).mode);var te=it.token(st,vt);if(st.pos>st.start)return te}throw new Error("Mode "+it.name+" failed to advance stream.")}var uo=function(it,st,vt){this.start=it.start,this.end=it.pos,this.string=it.current(),this.type=st||null,this.state=vt};function qr(it,st,vt,gt){var Bt=it.doc,te=Bt.mode,xe;st=nr(Bt,st);var Ue=yn(Bt,st.line),je=$o(it,st.line,vt),an=new Le(Ue.text,it.options.tabSize,je),$n;for(gt&&($n=[]);(gt||an.pos<st.ch)&&!an.eol();)an.start=an.pos,xe=Ur(te,an,je.state),gt&&$n.push(new uo(an,xe,ti(Bt.mode,je.state)));return gt?$n:new uo(an,xe,je.state)}function ko(it,st){if(it)for(;;){var vt=it.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!vt)break;it=it.slice(0,vt.index)+it.slice(vt.index+vt[0].length);var gt=vt[1]?"bgClass":"textClass";st[gt]==null?st[gt]=vt[2]:new RegExp("(?:^|\\s)"+vt[2]+"(?:$|\\s)").test(st[gt])||(st[gt]+=" "+vt[2])}return it}function di(it,st,vt,gt,Bt,te,xe){var Ue=vt.flattenSpans;Ue==null&&(Ue=it.options.flattenSpans);var je=0,an=null,$n=new Le(st,it.options.tabSize,gt),wn,Mi=it.options.addModeClass&&[null];for(st==""&&ko(ur(vt,gt.state),te);!$n.eol();){if($n.pos>it.options.maxHighlightLength?(Ue=!1,xe&&pi(it,st,gt,$n.pos),$n.pos=st.length,wn=null):wn=ko(Ur(vt,$n,gt.state,Mi),te),Mi){var bi=Mi[0].name;bi&&(wn="m-"+(wn?bi+" "+wn:bi))}if(!Ue||an!=wn){for(;je<$n.start;)je=Math.min($n.start,je+5e3),Bt(je,an);an=wn}$n.start=$n.pos}for(;je<$n.pos;){var br=Math.min($n.pos,je+5e3);Bt(br,an),je=br}}function Co(it,st,vt){for(var gt,Bt,te=it.doc,xe=vt?-1:st-(it.doc.mode.innerMode?1e3:100),Ue=st;Ue>xe;--Ue){if(Ue<=te.first)return te.first;var je=yn(te,Ue-1),an=je.stateAfter;if(an&&(!vt||Ue+(an instanceof Uo?an.lookAhead:0)<=te.modeFrontier))return Ue;var $n=ve(je.text,null,it.options.tabSize);(Bt==null||gt>$n)&&(Bt=Ue-1,gt=$n)}return Bt}function jr(it,st){if(it.modeFrontier=Math.min(it.modeFrontier,st),!(it.highlightFrontier<st-10)){for(var vt=it.first,gt=st-1;gt>vt;gt--){var Bt=yn(it,gt).stateAfter;if(Bt&&(!(Bt instanceof Uo)||gt+Bt.lookAhead<st)){vt=gt+1;break}}it.highlightFrontier=Math.min(it.highlightFrontier,vt)}}var Sr=!1,Ci=!1;function Bo(){Sr=!0}function xi(){Ci=!0}function Yo(it,st,vt){this.marker=it,this.from=st,this.to=vt}function ha(it,st){if(it)for(var vt=0;vt<it.length;++vt){var gt=it[vt];if(gt.marker==st)return gt}}function vs(it,st){for(var vt,gt=0;gt<it.length;++gt)it[gt]!=st&&(vt||(vt=[])).push(it[gt]);return vt}function da(it,st){it.markedSpans=it.markedSpans?it.markedSpans.concat([st]):[st],st.marker.attachLine(it)}function ta(it,st,vt){var gt;if(it)for(var Bt=0;Bt<it.length;++Bt){var te=it[Bt],xe=te.marker,Ue=te.from==null||(xe.inclusiveLeft?te.from<=st:te.from<st);if(Ue||te.from==st&&xe.type=="bookmark"&&(!vt||!te.marker.insertLeft)){var je=te.to==null||(xe.inclusiveRight?te.to>=st:te.to>st);(gt||(gt=[])).push(new Yo(xe,te.from,je?null:te.to))}}return gt}function To(it,st,vt){var gt;if(it)for(var Bt=0;Bt<it.length;++Bt){var te=it[Bt],xe=te.marker,Ue=te.to==null||(xe.inclusiveRight?te.to>=st:te.to>st);if(Ue||te.from==st&&xe.type=="bookmark"&&(!vt||te.marker.insertLeft)){var je=te.from==null||(xe.inclusiveLeft?te.from<=st:te.from<st);(gt||(gt=[])).push(new Yo(xe,je?null:te.from-st,te.to==null?null:te.to-st))}}return gt}function Ro(it,st){if(st.full)return null;var vt=Pi(it,st.from.line)&&yn(it,st.from.line).markedSpans,gt=Pi(it,st.to.line)&&yn(it,st.to.line).markedSpans;if(!vt&&!gt)return null;var Bt=st.from.ch,te=st.to.ch,xe=ui(st.from,st.to)==0,Ue=ta(vt,Bt,xe),je=To(gt,te,xe),an=st.text.length==1,$n=nn(st.text).length+(an?Bt:0);if(Ue)for(var wn=0;wn<Ue.length;++wn){var Mi=Ue[wn];if(Mi.to==null){var bi=ha(je,Mi.marker);bi?an&&(Mi.to=bi.to==null?null:bi.to+$n):Mi.to=Bt}}if(je)for(var br=0;br<je.length;++br){var Tr=je[br];if(Tr.to!=null&&(Tr.to+=$n),Tr.from==null){var $r=ha(Ue,Tr.marker);$r||(Tr.from=$n,an&&(Ue||(Ue=[])).push(Tr))}else Tr.from+=$n,an&&(Ue||(Ue=[])).push(Tr)}Ue&&(Ue=us(Ue)),je&&je!=Ue&&(je=us(je));var mo=[Ue];if(!an){var Jo=st.text.length-2,Mo;if(Jo>0&&Ue)for(var rs=0;rs<Ue.length;++rs)Ue[rs].to==null&&(Mo||(Mo=[])).push(new Yo(Ue[rs].marker,null,null));for(var Ts=0;Ts<Jo;++Ts)mo.push(Mo);mo.push(je)}return mo}function us(it){for(var st=0;st<it.length;++st){var vt=it[st];vt.from!=null&&vt.from==vt.to&&vt.marker.clearWhenEmpty!==!1&&it.splice(st--,1)}return it.length?it:null}function os(it,st,vt){var gt=null;if(it.iter(st.line,vt.line+1,function(bi){if(bi.markedSpans)for(var br=0;br<bi.markedSpans.length;++br){var Tr=bi.markedSpans[br].marker;Tr.readOnly&&(!gt||Se(gt,Tr)==-1)&&(gt||(gt=[])).push(Tr)}}),!gt)return null;for(var Bt=[{from:st,to:vt}],te=0;te<gt.length;++te)for(var xe=gt[te],Ue=xe.find(0),je=0;je<Bt.length;++je){var an=Bt[je];if(!(ui(an.to,Ue.from)<0||ui(an.from,Ue.to)>0)){var $n=[je,1],wn=ui(an.from,Ue.from),Mi=ui(an.to,Ue.to);(wn<0||!xe.inclusiveLeft&&!wn)&&$n.push({from:an.from,to:Ue.from}),(Mi>0||!xe.inclusiveRight&&!Mi)&&$n.push({from:Ue.to,to:an.to}),Bt.splice.apply(Bt,$n),je+=$n.length-3}}return Bt}function xr(it){var st=it.markedSpans;if(st){for(var vt=0;vt<st.length;++vt)st[vt].marker.detachLine(it);it.markedSpans=null}}function Ne(it,st){if(st){for(var vt=0;vt<st.length;++vt)st[vt].marker.attachLine(it);it.markedSpans=st}}function ls(it){return it.inclusiveLeft?-1:0}function ra(it){return it.inclusiveRight?1:0}function al(it,st){var vt=it.lines.length-st.lines.length;if(vt!=0)return vt;var gt=it.find(),Bt=st.find(),te=ui(gt.from,Bt.from)||ls(it)-ls(st);if(te)return-te;var xe=ui(gt.to,Bt.to)||ra(it)-ra(st);return xe||st.id-it.id}function ll(it,st){var vt=Ci&&it.markedSpans,gt;if(vt)for(var Bt=void 0,te=0;te<vt.length;++te)Bt=vt[te],Bt.marker.collapsed&&(st?Bt.from:Bt.to)==null&&(!gt||al(gt,Bt.marker)<0)&&(gt=Bt.marker);return gt}function bl(it){return ll(it,!0)}function is(it){return ll(it,!1)}function Vo(it,st){var vt=Ci&&it.markedSpans,gt;if(vt)for(var Bt=0;Bt<vt.length;++Bt){var te=vt[Bt];te.marker.collapsed&&(te.from==null||te.from<st)&&(te.to==null||te.to>st)&&(!gt||al(gt,te.marker)<0)&&(gt=te.marker)}return gt}function Es(it,st,vt,gt,Bt){var te=yn(it,st),xe=Ci&&te.markedSpans;if(xe)for(var Ue=0;Ue<xe.length;++Ue){var je=xe[Ue];if(je.marker.collapsed){var an=je.marker.find(0),$n=ui(an.from,vt)||ls(je.marker)-ls(Bt),wn=ui(an.to,gt)||ra(je.marker)-ra(Bt);if(!($n>=0&&wn<=0||$n<=0&&wn>=0)&&($n<=0&&(je.marker.inclusiveRight&&Bt.inclusiveLeft?ui(an.to,vt)>=0:ui(an.to,vt)>0)||$n>=0&&(je.marker.inclusiveRight&&Bt.inclusiveLeft?ui(an.from,gt)<=0:ui(an.from,gt)<0)))return!0}}}function Zo(it){for(var st;st=bl(it);)it=st.find(-1,!0).line;return it}function Vs(it){for(var st;st=is(it);)it=st.find(1,!0).line;return it}function yl(it){for(var st,vt;st=is(it);)it=st.find(1,!0).line,(vt||(vt=[])).push(it);return vt}function Ao(it,st){var vt=yn(it,st),gt=Zo(vt);return vt==gt?st:qe(gt)}function yo(it,st){if(st>it.lastLine())return st;var vt=yn(it,st),gt;if(!Zi(it,vt))return st;for(;gt=is(vt);)vt=gt.find(1,!0).line;return qe(vt)+1}function Zi(it,st){var vt=Ci&&st.markedSpans;if(vt){for(var gt=void 0,Bt=0;Bt<vt.length;++Bt)if(gt=vt[Bt],!!gt.marker.collapsed){if(gt.from==null)return!0;if(!gt.marker.widgetNode&>.from==0&>.marker.inclusiveLeft&&bo(it,st,gt))return!0}}}function bo(it,st,vt){if(vt.to==null){var gt=vt.marker.find(1,!0);return bo(it,gt.line,ha(gt.line.markedSpans,vt.marker))}if(vt.marker.inclusiveRight&&vt.to==st.text.length)return!0;for(var Bt=void 0,te=0;te<st.markedSpans.length;++te)if(Bt=st.markedSpans[te],Bt.marker.collapsed&&!Bt.marker.widgetNode&&Bt.from==vt.to&&(Bt.to==null||Bt.to!=vt.from)&&(Bt.marker.inclusiveLeft||vt.marker.inclusiveRight)&&bo(it,st,Bt))return!0}function xs(it){it=Zo(it);for(var st=0,vt=it.parent,gt=0;gt<vt.lines.length;++gt){var Bt=vt.lines[gt];if(Bt==it)break;st+=Bt.height}for(var te=vt.parent;te;vt=te,te=vt.parent)for(var xe=0;xe<te.children.length;++xe){var Ue=te.children[xe];if(Ue==vt)break;st+=Ue.height}return st}function ca(it){if(it.height==0)return 0;for(var st=it.text.length,vt,gt=it;vt=bl(gt);){var Bt=vt.find(0,!0);gt=Bt.from.line,st+=Bt.from.ch-Bt.to.ch}for(gt=it;vt=is(gt);){var te=vt.find(0,!0);st-=gt.text.length-te.from.ch,gt=te.to.line,st+=gt.text.length-te.to.ch}return st}function aa(it){var st=it.display,vt=it.doc;st.maxLine=yn(vt,vt.first),st.maxLineLength=ca(st.maxLine),st.maxLineChanged=!0,vt.iter(function(gt){var Bt=ca(gt);Bt>st.maxLineLength&&(st.maxLineLength=Bt,st.maxLine=gt)})}var Ho=function(it,st,vt){this.text=it,Ne(this,st),this.height=vt?vt(this):1};Ho.prototype.lineNo=function(){return qe(this)},mr(Ho);function Zs(it,st,vt,gt){it.text=st,it.stateAfter&&(it.stateAfter=null),it.styles&&(it.styles=null),it.order!=null&&(it.order=null),xr(it),Ne(it,vt);var Bt=gt?gt(it):1;Bt!=it.height&&Oi(it,Bt)}function ka(it){it.parent=null,xr(it)}var Ml={},Ga={};function Ss(it,st){if(!it||/^\s*$/.test(it))return null;var vt=st.addModeClass?Ga:Ml;return vt[it]||(vt[it]=it.replace(/\S+/g,"cm-$&"))}function ai(it,st){var vt=be("span",null,null,Nt?"padding-right: .1px":null),gt={pre:be("pre",[vt],"CodeMirror-line"),content:vt,col:0,pos:0,cm:it,trailingSpace:!1,splitSpaces:it.getOption("lineWrapping")};st.measure={};for(var Bt=0;Bt<=(st.rest?st.rest.length:0);Bt++){var te=Bt?st.rest[Bt-1]:st.line,xe=void 0;gt.pos=0,gt.addToken=dc,ys(it.display.measure)&&(xe=Vn(te,it.doc.direction))&&(gt.addToken=kh(gt.addToken,xe)),gt.map=[];var Ue=st!=it.display.externalMeasured&&qe(te);zs(te,gt,ps(it,te,Ue)),te.styleClasses&&(te.styleClasses.bgClass&&(gt.bgClass=He(te.styleClasses.bgClass,gt.bgClass||"")),te.styleClasses.textClass&&(gt.textClass=He(te.styleClasses.textClass,gt.textClass||""))),gt.map.length==0&>.map.push(0,0,gt.content.appendChild(ns(it.display.measure))),Bt==0?(st.measure.map=gt.map,st.measure.cache={}):((st.measure.maps||(st.measure.maps=[])).push(gt.map),(st.measure.caches||(st.measure.caches=[])).push({}))}if(Nt){var je=gt.content.lastChild;(/\bcm-tab\b/.test(je.className)||je.querySelector&&je.querySelector(".cm-tab"))&&(gt.content.className="cm-tab-wrap-hack")}return _n(it,"renderLine",it,st.line,gt.pre),gt.pre.className&&(gt.textClass=He(gt.pre.className,gt.textClass||"")),gt}function Ta(it){var st=de("span","\u2022","cm-invalidchar");return st.title="\\u"+it.charCodeAt(0).toString(16),st.setAttribute("aria-label",st.title),st}function dc(it,st,vt,gt,Bt,te,xe){if(st){var Ue=it.splitSpaces?hu(st,it.trailingSpace):st,je=it.cm.state.specialChars,an=!1,$n;if(!je.test(st))it.col+=st.length,$n=document.createTextNode(Ue),it.map.push(it.pos,it.pos+st.length,$n),ee&&Zt<9&&(an=!0),it.pos+=st.length;else{$n=document.createDocumentFragment();for(var wn=0;;){je.lastIndex=wn;var Mi=je.exec(st),bi=Mi?Mi.index-wn:st.length-wn;if(bi){var br=document.createTextNode(Ue.slice(wn,wn+bi));ee&&Zt<9?$n.appendChild(de("span",[br])):$n.appendChild(br),it.map.push(it.pos,it.pos+bi,br),it.col+=bi,it.pos+=bi}if(!Mi)break;wn+=bi+1;var Tr=void 0;if(Mi[0]==" "){var $r=it.cm.options.tabSize,mo=$r-it.col%$r;Tr=$n.appendChild(de("span",Si(mo),"cm-tab")),Tr.setAttribute("role","presentation"),Tr.setAttribute("cm-text"," "),it.col+=mo}else Mi[0]=="\r"||Mi[0]==`
|
|
|
`?(Tr=$n.appendChild(de("span",Mi[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Tr.setAttribute("cm-text",Mi[0]),it.col+=1):(Tr=it.cm.options.specialCharPlaceholder(Mi[0]),Tr.setAttribute("cm-text",Mi[0]),ee&&Zt<9?$n.appendChild(de("span",[Tr])):$n.appendChild(Tr),it.col+=1);it.map.push(it.pos,it.pos+1,Tr),it.pos++}}if(it.trailingSpace=Ue.charCodeAt(st.length-1)==32,vt||gt||Bt||an||te||xe){var Jo=vt||"";gt&&(Jo+=gt),Bt&&(Jo+=Bt);var Mo=de("span",[$n],Jo,te);if(xe)for(var rs in xe)xe.hasOwnProperty(rs)&&rs!="style"&&rs!="class"&&Mo.setAttribute(rs,xe[rs]);return it.content.appendChild(Mo)}it.content.appendChild($n)}}function hu(it,st){if(it.length>1&&!/ /.test(it))return it;for(var vt=st,gt="",Bt=0;Bt<it.length;Bt++){var te=it.charAt(Bt);te==" "&&vt&&(Bt==it.length-1||it.charCodeAt(Bt+1)==32)&&(te="\xA0"),gt+=te,vt=te==" "}return gt}function kh(it,st){return function(vt,gt,Bt,te,xe,Ue,je){Bt=Bt?Bt+" cm-force-border":"cm-force-border";for(var an=vt.pos,$n=an+gt.length;;){for(var wn=void 0,Mi=0;Mi<st.length&&(wn=st[Mi],!(wn.to>an&&wn.from<=an));Mi++);if(wn.to>=$n)return it(vt,gt,Bt,te,xe,Ue,je);it(vt,gt.slice(0,wn.to-an),Bt,te,null,Ue,je),te=null,gt=gt.slice(wn.to-an),an=wn.to}}}function Wr(it,st,vt,gt){var Bt=!gt&&vt.widgetNode;Bt&&it.map.push(it.pos,it.pos+st,Bt),!gt&&it.cm.display.input.needsContentAttribute&&(Bt||(Bt=it.content.appendChild(document.createElement("span"))),Bt.setAttribute("cm-marker",vt.id)),Bt&&(it.cm.display.input.setUneditable(Bt),it.content.appendChild(Bt)),it.pos+=st,it.trailingSpace=!1}function zs(it,st,vt){var gt=it.markedSpans,Bt=it.text,te=0;if(!gt){for(var xe=1;xe<vt.length;xe+=2)st.addToken(st,Bt.slice(te,te=vt[xe]),Ss(vt[xe+1],st.cm.options));return}for(var Ue=Bt.length,je=0,an=1,$n="",wn,Mi,bi=0,br,Tr,$r,mo,Jo;;){if(bi==je){br=Tr=$r=Mi="",Jo=null,mo=null,bi=1/0;for(var Mo=[],rs=void 0,Ts=0;Ts<gt.length;++Ts){var No=gt[Ts],Js=No.marker;if(Js.type=="bookmark"&&No.from==je&&Js.widgetNode)Mo.push(Js);else if(No.from<=je&&(No.to==null||No.to>je||Js.collapsed&&No.to==je&&No.from==je)){if(No.to!=null&&No.to!=je&&bi>No.to&&(bi=No.to,Tr=""),Js.className&&(br+=" "+Js.className),Js.css&&(Mi=(Mi?Mi+";":"")+Js.css),Js.startStyle&&No.from==je&&($r+=" "+Js.startStyle),Js.endStyle&&No.to==bi&&(rs||(rs=[])).push(Js.endStyle,No.to),Js.title&&((Jo||(Jo={})).title=Js.title),Js.attributes)for(var Ol in Js.attributes)(Jo||(Jo={}))[Ol]=Js.attributes[Ol];Js.collapsed&&(!mo||al(mo.marker,Js)<0)&&(mo=No)}else No.from>je&&bi>No.from&&(bi=No.from)}if(rs)for(var zl=0;zl<rs.length;zl+=2)rs[zl+1]==bi&&(Tr+=" "+rs[zl]);if(!mo||mo.from==je)for(var Al=0;Al<Mo.length;++Al)Wr(st,0,Mo[Al]);if(mo&&(mo.from||0)==je){if(Wr(st,(mo.to==null?Ue+1:mo.to)-je,mo.marker,mo.from==null),mo.to==null)return;mo.to==je&&(mo=!1)}}if(je>=Ue)break;for(var Xa=Math.min(Ue,bi);;){if($n){var Ia=je+$n.length;if(!mo){var za=Ia>Xa?$n.slice(0,Xa-je):$n;st.addToken(st,za,wn?wn+br:br,$r,je+za.length==bi?Tr:"",Mi,Jo)}if(Ia>=Xa){$n=$n.slice(Xa-je),je=Xa;break}je=Ia,$r=""}$n=Bt.slice(te,te=vt[an++]),wn=Ss(vt[an++],st.cm.options)}}}function Ms(it,st,vt){this.line=st,this.rest=yl(st),this.size=this.rest?qe(nn(this.rest))-vt+1:1,this.node=this.text=null,this.hidden=Zi(it,st)}function Cs(it,st,vt){for(var gt=[],Bt,te=st;te<vt;te=Bt){var xe=new Ms(it.doc,yn(it.doc,te),te);Bt=te+xe.size,gt.push(xe)}return gt}var Gs=null;function cu(it){Gs?Gs.ops.push(it):it.ownsGroup=Gs={ops:[it],delayedCallbacks:[]}}function qo(it){var st=it.delayedCallbacks,vt=0;do{for(;vt<st.length;vt++)st[vt].call(null);for(var gt=0;gt<it.ops.length;gt++){var Bt=it.ops[gt];if(Bt.cursorActivityHandlers)for(;Bt.cursorActivityCalled<Bt.cursorActivityHandlers.length;)Bt.cursorActivityHandlers[Bt.cursorActivityCalled++].call(null,Bt.cm)}}while(vt<st.length)}function _s(it,st){var vt=it.ownsGroup;if(vt)try{qo(vt)}finally{Gs=null,st(vt)}}var ms=null;function Rr(it,st){var vt=Bn(it,st);if(vt.length){var gt=Array.prototype.slice.call(arguments,2),Bt;Gs?Bt=Gs.delayedCallbacks:ms?Bt=ms:(Bt=ms=[],setTimeout(ul,0));for(var te=function(Ue){Bt.push(function(){return vt[Ue].apply(null,gt)})},xe=0;xe<vt.length;++xe)te(xe)}}function ul(){var it=ms;ms=null;for(var st=0;st<it.length;++st)it[st]()}function Os(it,st,vt,gt){for(var Bt=0;Bt<st.changes.length;Bt++){var te=st.changes[Bt];te=="text"?fr(it,st):te=="gutter"?nl(it,st,vt,gt):te=="class"?Wa(it,st):te=="widget"&&Cl(it,st,gt)}st.changes=null}function yu(it){return it.node==it.text&&(it.node=de("div",null,null,"position: relative"),it.text.parentNode&&it.text.parentNode.replaceChild(it.node,it.text),it.node.appendChild(it.text),ee&&Zt<8&&(it.node.style.zIndex=2)),it.node}function Uu(it,st){var vt=st.bgClass?st.bgClass+" "+(st.line.bgClass||""):st.line.bgClass;if(vt&&(vt+=" CodeMirror-linebackground"),st.background)vt?st.background.className=vt:(st.background.parentNode.removeChild(st.background),st.background=null);else if(vt){var gt=yu(st);st.background=gt.insertBefore(de("div",null,vt),gt.firstChild),it.display.input.setUneditable(st.background)}}function Vl(it,st){var vt=it.display.externalMeasured;return vt&&vt.line==st.line?(it.display.externalMeasured=null,st.measure=vt.measure,vt.built):ai(it,st)}function fr(it,st){var vt=st.text.className,gt=Vl(it,st);st.text==st.node&&(st.node=gt.pre),st.text.parentNode.replaceChild(gt.pre,st.text),st.text=gt.pre,gt.bgClass!=st.bgClass||gt.textClass!=st.textClass?(st.bgClass=gt.bgClass,st.textClass=gt.textClass,Wa(it,st)):vt&&(st.text.className=vt)}function Wa(it,st){Uu(it,st),st.line.wrapClass?yu(st).className=st.line.wrapClass:st.node!=st.text&&(st.node.className="");var vt=st.textClass?st.textClass+" "+(st.line.textClass||""):st.line.textClass;st.text.className=vt||""}function nl(it,st,vt,gt){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 Bt=yu(st);st.gutterBackground=de("div",null,"CodeMirror-gutter-background "+st.line.gutterClass,"left: "+(it.options.fixedGutter?gt.fixedPos:-gt.gutterTotalWidth)+"px; width: "+gt.gutterTotalWidth+"px"),it.display.input.setUneditable(st.gutterBackground),Bt.insertBefore(st.gutterBackground,st.text)}var te=st.line.gutterMarkers;if(it.options.lineNumbers||te){var xe=yu(st),Ue=st.gutter=de("div",null,"CodeMirror-gutter-wrapper","left: "+(it.options.fixedGutter?gt.fixedPos:-gt.gutterTotalWidth)+"px");if(it.display.input.setUneditable(Ue),xe.insertBefore(Ue,st.text),st.line.gutterClass&&(Ue.className+=" "+st.line.gutterClass),it.options.lineNumbers&&(!te||!te["CodeMirror-linenumbers"])&&(st.lineNumber=Ue.appendChild(de("div",er(it.options,vt),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+gt.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+it.display.lineNumInnerWidth+"px"))),te)for(var je=0;je<it.display.gutterSpecs.length;++je){var an=it.display.gutterSpecs[je].className,$n=te.hasOwnProperty(an)&&te[an];$n&&Ue.appendChild(de("div",[$n],"CodeMirror-gutter-elt","left: "+gt.gutterLeft[an]+"px; width: "+gt.gutterWidth[an]+"px"))}}}function Cl(it,st,vt){st.alignable&&(st.alignable=null);for(var gt=_t("CodeMirror-linewidget"),Bt=st.node.firstChild,te=void 0;Bt;Bt=te)te=Bt.nextSibling,gt.test(Bt.className)&&st.node.removeChild(Bt);$a(it,st,vt)}function ru(it,st,vt,gt){var Bt=Vl(it,st);return st.text=st.node=Bt.pre,Bt.bgClass&&(st.bgClass=Bt.bgClass),Bt.textClass&&(st.textClass=Bt.textClass),Wa(it,st),nl(it,st,vt,gt),$a(it,st,gt),st.node}function $a(it,st,vt){if(Fo(it,st.line,st,vt,!0),st.rest)for(var gt=0;gt<st.rest.length;gt++)Fo(it,st.rest[gt],st,vt,!1)}function Fo(it,st,vt,gt,Bt){if(st.widgets)for(var te=yu(vt),xe=0,Ue=st.widgets;xe<Ue.length;++xe){var je=Ue[xe],an=de("div",[je.node],"CodeMirror-linewidget"+(je.className?" "+je.className:""));je.handleMouseEvents||an.setAttribute("cm-ignore-events","true"),Ua(je,an,vt,gt),it.display.input.setUneditable(an),Bt&&je.above?te.insertBefore(an,vt.gutter||vt.text):te.appendChild(an),Rr(je,"redraw")}}function Ua(it,st,vt,gt){if(it.noHScroll){(vt.alignable||(vt.alignable=[])).push(st);var Bt=gt.wrapperWidth;st.style.left=gt.fixedPos+"px",it.coverGutter||(Bt-=gt.gutterTotalWidth,st.style.paddingLeft=gt.gutterTotalWidth+"px"),st.style.width=Bt+"px"}it.coverGutter&&(st.style.zIndex=5,st.style.position="relative",it.noHScroll||(st.style.marginLeft=-gt.gutterTotalWidth+"px"))}function Ya(it){if(it.height!=null)return it.height;var st=it.doc.cm;if(!st)return 0;if(!Ke(document.body,it.node)){var vt="position: relative;";it.coverGutter&&(vt+="margin-left: -"+st.display.gutters.offsetWidth+"px;"),it.noHScroll&&(vt+="width: "+st.display.wrapper.clientWidth+"px;"),ue(st.display.measure,de("div",[it.node],null,vt))}return it.height=it.node.parentNode.offsetHeight}function ou(it,st){for(var vt=kr(st);vt!=it.wrapper;vt=vt.parentNode)if(!vt||vt.nodeType==1&&vt.getAttribute("cm-ignore-events")=="true"||vt.parentNode==it.sizer&&vt!=it.mover)return!0}function Zl(it){return it.lineSpace.offsetTop}function Pu(it){return it.mover.offsetHeight-it.lineSpace.offsetHeight}function bu(it){if(it.cachedPaddingH)return it.cachedPaddingH;var st=ue(it.measure,de("pre","x","CodeMirror-line-like")),vt=window.getComputedStyle?window.getComputedStyle(st):st.currentStyle,gt={left:parseInt(vt.paddingLeft),right:parseInt(vt.paddingRight)};return!isNaN(gt.left)&&!isNaN(gt.right)&&(it.cachedPaddingH=gt),gt}function du(it){return Pn-it.display.nativeBarWidth}function tu(it){return it.display.scroller.clientWidth-du(it)-it.display.barWidth}function Go(it){return it.display.scroller.clientHeight-du(it)-it.display.barHeight}function Dd(it,st,vt){var gt=it.options.lineWrapping,Bt=gt&&tu(it);if(!st.measure.heights||gt&&st.measure.width!=Bt){var te=st.measure.heights=[];if(gt){st.measure.width=Bt;for(var xe=st.text.firstChild.getClientRects(),Ue=0;Ue<xe.length-1;Ue++){var je=xe[Ue],an=xe[Ue+1];Math.abs(je.bottom-an.bottom)>2&&te.push((je.bottom+an.top)/2-vt.top)}}te.push(vt.bottom-vt.top)}}function Eu(it,st,vt){if(it.line==st)return{map:it.measure.map,cache:it.measure.cache};for(var gt=0;gt<it.rest.length;gt++)if(it.rest[gt]==st)return{map:it.measure.maps[gt],cache:it.measure.caches[gt]};for(var Bt=0;Bt<it.rest.length;Bt++)if(qe(it.rest[Bt])>vt)return{map:it.measure.maps[Bt],cache:it.measure.caches[Bt],before:!0}}function vd(it,st){st=Zo(st);var vt=qe(st),gt=it.display.externalMeasured=new Ms(it.doc,st,vt);gt.lineN=vt;var Bt=gt.built=ai(it,gt);return gt.text=Bt.pre,ue(it.display.lineMeasure,Bt.pre),gt}function Bh(it,st,vt,gt){return ch(it,il(it,st),vt,gt)}function qh(it,st){if(st>=it.display.viewFrom&&st<it.display.viewTo)return it.display.view[Gu(it,st)];var vt=it.display.externalMeasured;if(vt&&st>=vt.lineN&&st<vt.lineN+vt.size)return vt}function il(it,st){var vt=qe(st),gt=qh(it,vt);gt&&!gt.text?gt=null:gt&>.changes&&(Os(it,gt,vt,_A(it)),it.curOp.forceUpdate=!0),gt||(gt=vd(it,st));var Bt=Eu(gt,st,vt);return{line:st,view:gt,rect:null,map:Bt.map,cache:Bt.cache,before:Bt.before,hasHeights:!1}}function ch(it,st,vt,gt,Bt){st.before&&(vt=-1);var te=vt+(gt||""),xe;return st.cache.hasOwnProperty(te)?xe=st.cache[te]:(st.rect||(st.rect=st.view.text.getBoundingClientRect()),st.hasHeights||(Dd(it,st.view,st.rect),st.hasHeights=!0),xe=Bs(it,st,vt,gt),xe.bogus||(st.cache[te]=xe)),{left:xe.left,right:xe.right,top:Bt?xe.rtop:xe.top,bottom:Bt?xe.rbottom:xe.bottom}}var jd={left:0,right:0,top:0,bottom:0};function Kc(it,st,vt){for(var gt,Bt,te,xe,Ue,je,an=0;an<it.length;an+=3)if(Ue=it[an],je=it[an+1],st<Ue?(Bt=0,te=1,xe="left"):st<je?(Bt=st-Ue,te=Bt+1):(an==it.length-3||st==je&&it[an+3]>st)&&(te=je-Ue,Bt=te-1,st>=je&&(xe="right")),Bt!=null){if(gt=it[an+2],Ue==je&&vt==(gt.insertLeft?"left":"right")&&(xe=vt),vt=="left"&&Bt==0)for(;an&&it[an-2]==it[an-3]&&it[an-1].insertLeft;)gt=it[(an-=3)+2],xe="left";if(vt=="right"&&Bt==je-Ue)for(;an<it.length-3&&it[an+3]==it[an+4]&&!it[an+5].insertLeft;)gt=it[(an+=3)+2],xe="right";break}return{node:gt,start:Bt,end:te,collapse:xe,coverStart:Ue,coverEnd:je}}function Gc(it,st){var vt=jd;if(st=="left")for(var gt=0;gt<it.length&&(vt=it[gt]).left==vt.right;gt++);else for(var Bt=it.length-1;Bt>=0&&(vt=it[Bt]).left==vt.right;Bt--);return vt}function Bs(it,st,vt,gt){var Bt=Kc(st.map,vt,gt),te=Bt.node,xe=Bt.start,Ue=Bt.end,je=Bt.collapse,an;if(te.nodeType==3){for(var $n=0;$n<4;$n++){for(;xe&&we(st.line.text.charAt(Bt.coverStart+xe));)--xe;for(;Bt.coverStart+Ue<Bt.coverEnd&&we(st.line.text.charAt(Bt.coverStart+Ue));)++Ue;if(ee&&Zt<9&&xe==0&&Ue==Bt.coverEnd-Bt.coverStart?an=te.parentNode.getBoundingClientRect():an=Gc(Jt(te,xe,Ue).getClientRects(),gt),an.left||an.right||xe==0)break;Ue=xe,xe=xe-1,je="right"}ee&&Zt<11&&(an=ya(it.display.measure,an))}else{xe>0&&(je=gt="right");var wn;it.options.lineWrapping&&(wn=te.getClientRects()).length>1?an=wn[gt=="right"?wn.length-1:0]:an=te.getBoundingClientRect()}if(ee&&Zt<9&&!xe&&(!an||!an.left&&!an.right)){var Mi=te.parentNode.getClientRects()[0];Mi?an={left:Mi.left,right:Mi.left+Ah(it.display),top:Mi.top,bottom:Mi.bottom}:an=jd}for(var bi=an.top-st.rect.top,br=an.bottom-st.rect.top,Tr=(bi+br)/2,$r=st.view.measure.heights,mo=0;mo<$r.length-1&&!(Tr<$r[mo]);mo++);var Jo=mo?$r[mo-1]:0,Mo=$r[mo],rs={left:(je=="right"?an.right:an.left)-st.rect.left,right:(je=="left"?an.left:an.right)-st.rect.left,top:Jo,bottom:Mo};return!an.left&&!an.right&&(rs.bogus=!0),it.options.singleCursorHeightPerLine||(rs.rtop=bi,rs.rbottom=br),rs}function ya(it,st){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Is(it))return st;var vt=screen.logicalXDPI/screen.deviceXDPI,gt=screen.logicalYDPI/screen.deviceYDPI;return{left:st.left*vt,right:st.right*vt,top:st.top*gt,bottom:st.bottom*gt}}function Nu(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 Ja(it){it.display.externalMeasure=null,oe(it.display.lineMeasure);for(var st=0;st<it.display.view.length;st++)Nu(it.display.view[st])}function rl(it){Ja(it),it.display.cachedCharWidth=it.display.cachedTextHeight=it.display.cachedPaddingH=null,it.options.lineWrapping||(it.display.maxLineChanged=!0),it.display.lineNumChars=null}function Ha(){return qt&&et?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Aa(){return qt&&et?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function qa(it){var st=0;if(it.widgets)for(var vt=0;vt<it.widgets.length;++vt)it.widgets[vt].above&&(st+=Ya(it.widgets[vt]));return st}function Nl(it,st,vt,gt,Bt){if(!Bt){var te=qa(st);vt.top+=te,vt.bottom+=te}if(gt=="line")return vt;gt||(gt="local");var xe=xs(st);if(gt=="local"?xe+=Zl(it.display):xe-=it.display.viewOffset,gt=="page"||gt=="window"){var Ue=it.display.lineSpace.getBoundingClientRect();xe+=Ue.top+(gt=="window"?0:Aa());var je=Ue.left+(gt=="window"?0:Ha());vt.left+=je,vt.right+=je}return vt.top+=xe,vt.bottom+=xe,vt}function Ac(it,st,vt){if(vt=="div")return st;var gt=st.left,Bt=st.top;if(vt=="page")gt-=Ha(),Bt-=Aa();else if(vt=="local"||!vt){var te=it.display.sizer.getBoundingClientRect();gt+=te.left,Bt+=te.top}var xe=it.display.lineSpace.getBoundingClientRect();return{left:gt-xe.left,top:Bt-xe.top}}function rh(it,st,vt,gt,Bt){return gt||(gt=yn(it.doc,st.line)),Nl(it,gt,Bh(it,gt,st.ch,Bt),vt)}function hl(it,st,vt,gt,Bt,te){gt=gt||yn(it.doc,st.line),Bt||(Bt=il(it,gt));function xe(br,Tr){var $r=ch(it,Bt,br,Tr?"right":"left",te);return Tr?$r.left=$r.right:$r.right=$r.left,Nl(it,gt,$r,vt)}var Ue=Vn(gt,it.doc.direction),je=st.ch,an=st.sticky;if(je>=gt.text.length?(je=gt.text.length,an="before"):je<=0&&(je=0,an="after"),!Ue)return xe(an=="before"?je-1:je,an=="before");function $n(br,Tr,$r){var mo=Ue[Tr],Jo=mo.level==1;return xe($r?br-1:br,Jo!=$r)}var wn=ke(Ue,je,an),Mi=Oe,bi=$n(je,wn,an=="before");return Mi!=null&&(bi.other=$n(je,Mi,an!="before")),bi}function Ud(it,st){var vt=0;st=nr(it.doc,st),it.options.lineWrapping||(vt=Ah(it.display)*st.ch);var gt=yn(it.doc,st.line),Bt=xs(gt)+Zl(it.display);return{left:vt,right:vt,top:Bt,bottom:Bt+gt.height}}function nd(it,st,vt,gt,Bt){var te=On(it,st,vt);return te.xRel=Bt,gt&&(te.outside=gt),te}function dh(it,st,vt){var gt=it.doc;if(vt+=it.display.viewOffset,vt<0)return nd(gt.first,0,null,-1,-1);var Bt=oi(gt,vt),te=gt.first+gt.size-1;if(Bt>te)return nd(gt.first+gt.size-1,yn(gt,te).text.length,null,1,1);st<0&&(st=0);for(var xe=yn(gt,Bt);;){var Ue=Vi(it,xe,Bt,st,vt),je=Vo(xe,Ue.ch+(Ue.xRel>0||Ue.outside>0?1:0));if(!je)return Ue;var an=je.find(1);if(an.line==Bt)return an;xe=yn(gt,Bt=an.line)}}function zo(it,st,vt,gt){gt-=qa(st);var Bt=st.text.length,te=me(function(xe){return ch(it,vt,xe-1).bottom<=gt},Bt,0);return Bt=me(function(xe){return ch(it,vt,xe).top>gt},te,Bt),{begin:te,end:Bt}}function sA(it,st,vt,gt){vt||(vt=il(it,st));var Bt=Nl(it,st,ch(it,vt,gt),"line").top;return zo(it,st,vt,Bt)}function En(it,st,vt,gt){return it.bottom<=vt?!1:it.top>vt?!0:(gt?it.left:it.right)>st}function Vi(it,st,vt,gt,Bt){Bt-=xs(st);var te=il(it,st),xe=qa(st),Ue=0,je=st.text.length,an=!0,$n=Vn(st,it.doc.direction);if($n){var wn=(it.options.lineWrapping?tc:aA)(it,st,vt,te,$n,gt,Bt);an=wn.level!=1,Ue=an?wn.from:wn.to-1,je=an?wn.to:wn.from-1}var Mi=null,bi=null,br=me(function(Ts){var No=ch(it,te,Ts);return No.top+=xe,No.bottom+=xe,En(No,gt,Bt,!1)?(No.top<=Bt&&No.left<=gt&&(Mi=Ts,bi=No),!0):!1},Ue,je),Tr,$r,mo=!1;if(bi){var Jo=gt-bi.left<bi.right-gt,Mo=Jo==an;br=Mi+(Mo?0:1),$r=Mo?"after":"before",Tr=Jo?bi.left:bi.right}else{!an&&(br==je||br==Ue)&&br++,$r=br==0?"after":br==st.text.length?"before":ch(it,te,br-(an?1:0)).bottom+xe<=Bt==an?"after":"before";var rs=hl(it,On(vt,br,$r),"line",st,te);Tr=rs.left,mo=Bt<rs.top?-1:Bt>=rs.bottom?1:0}return br=ae(st.text,br,1),nd(vt,br,$r,mo,gt-Tr)}function aA(it,st,vt,gt,Bt,te,xe){var Ue=me(function(wn){var Mi=Bt[wn],bi=Mi.level!=1;return En(hl(it,On(vt,bi?Mi.to:Mi.from,bi?"before":"after"),"line",st,gt),te,xe,!0)},0,Bt.length-1),je=Bt[Ue];if(Ue>0){var an=je.level!=1,$n=hl(it,On(vt,an?je.from:je.to,an?"after":"before"),"line",st,gt);En($n,te,xe,!0)&&$n.top>xe&&(je=Bt[Ue-1])}return je}function tc(it,st,vt,gt,Bt,te,xe){var Ue=zo(it,st,gt,xe),je=Ue.begin,an=Ue.end;/\s/.test(st.text.charAt(an-1))&&an--;for(var $n=null,wn=null,Mi=0;Mi<Bt.length;Mi++){var bi=Bt[Mi];if(!(bi.from>=an||bi.to<=je)){var br=bi.level!=1,Tr=ch(it,gt,br?Math.min(an,bi.to)-1:Math.max(je,bi.from)).right,$r=Tr<te?te-Tr+1e9:Tr-te;(!$n||wn>$r)&&($n=bi,wn=$r)}}return $n||($n=Bt[Bt.length-1]),$n.from<je&&($n={from:je,to:$n.to,level:$n.level}),$n.to>an&&($n={from:$n.from,to:an,level:$n.level}),$n}var Ru;function _u(it){if(it.cachedTextHeight!=null)return it.cachedTextHeight;if(Ru==null){Ru=de("pre",null,"CodeMirror-line-like");for(var st=0;st<49;++st)Ru.appendChild(document.createTextNode("x")),Ru.appendChild(de("br"));Ru.appendChild(document.createTextNode("x"))}ue(it.measure,Ru);var vt=Ru.offsetHeight/50;return vt>3&&(it.cachedTextHeight=vt),oe(it.measure),vt||1}function Ah(it){if(it.cachedCharWidth!=null)return it.cachedCharWidth;var st=de("span","xxxxxxxxxx"),vt=de("pre",[st],"CodeMirror-line-like");ue(it.measure,vt);var gt=st.getBoundingClientRect(),Bt=(gt.right-gt.left)/10;return Bt>2&&(it.cachedCharWidth=Bt),Bt||10}function _A(it){for(var st=it.display,vt={},gt={},Bt=st.gutters.clientLeft,te=st.gutters.firstChild,xe=0;te;te=te.nextSibling,++xe){var Ue=it.display.gutterSpecs[xe].className;vt[Ue]=te.offsetLeft+te.clientLeft+Bt,gt[Ue]=te.clientWidth}return{fixedPos:id(st),gutterTotalWidth:st.gutters.offsetWidth,gutterLeft:vt,gutterWidth:gt,wrapperWidth:st.wrapper.clientWidth}}function id(it){return it.scroller.getBoundingClientRect().left-it.sizer.getBoundingClientRect().left}function tl(it){var st=_u(it.display),vt=it.options.lineWrapping,gt=vt&&Math.max(5,it.display.scroller.clientWidth/Ah(it.display)-3);return function(Bt){if(Zi(it.doc,Bt))return 0;var te=0;if(Bt.widgets)for(var xe=0;xe<Bt.widgets.length;xe++)Bt.widgets[xe].height&&(te+=Bt.widgets[xe].height);return vt?te+(Math.ceil(Bt.text.length/gt)||1)*st:te+st}}function As(it){var st=it.doc,vt=tl(it);st.iter(function(gt){var Bt=vt(gt);Bt!=gt.height&&Oi(gt,Bt)})}function Ju(it,st,vt,gt){var Bt=it.display;if(!vt&&kr(st).getAttribute("cm-not-content")=="true")return null;var te,xe,Ue=Bt.lineSpace.getBoundingClientRect();try{te=st.clientX-Ue.left,xe=st.clientY-Ue.top}catch(wn){return null}var je=dh(it,te,xe),an;if(gt&&je.xRel>0&&(an=yn(it.doc,je.line).text).length==je.ch){var $n=ve(an,an.length,it.options.tabSize)-an.length;je=On(je.line,Math.max(0,Math.round((te-bu(it.display).left)/Ah(it.display))-$n))}return je}function Gu(it,st){if(st>=it.display.viewTo||(st-=it.display.viewFrom,st<0))return null;for(var vt=it.display.view,gt=0;gt<vt.length;gt++)if(st-=vt[gt].size,st<0)return gt}function Bl(it,st,vt,gt){st==null&&(st=it.doc.first),vt==null&&(vt=it.doc.first+it.doc.size),gt||(gt=0);var Bt=it.display;if(gt&&vt<Bt.viewTo&&(Bt.updateLineNumbers==null||Bt.updateLineNumbers>st)&&(Bt.updateLineNumbers=st),it.curOp.viewChanged=!0,st>=Bt.viewTo)Ci&&Ao(it.doc,st)<Bt.viewTo&&Au(it);else if(vt<=Bt.viewFrom)Ci&&yo(it.doc,vt+gt)>Bt.viewFrom?Au(it):(Bt.viewFrom+=gt,Bt.viewTo+=gt);else if(st<=Bt.viewFrom&&vt>=Bt.viewTo)Au(it);else if(st<=Bt.viewFrom){var te=fh(it,vt,vt+gt,1);te?(Bt.view=Bt.view.slice(te.index),Bt.viewFrom=te.lineN,Bt.viewTo+=gt):Au(it)}else if(vt>=Bt.viewTo){var xe=fh(it,st,st,-1);xe?(Bt.view=Bt.view.slice(0,xe.index),Bt.viewTo=xe.lineN):Au(it)}else{var Ue=fh(it,st,st,-1),je=fh(it,vt,vt+gt,1);Ue&&je?(Bt.view=Bt.view.slice(0,Ue.index).concat(Cs(it,Ue.lineN,je.lineN)).concat(Bt.view.slice(je.index)),Bt.viewTo+=gt):Au(it)}var an=Bt.externalMeasured;an&&(vt<an.lineN?an.lineN+=gt:st<an.lineN+an.size&&(Bt.externalMeasured=null))}function oa(it,st,vt){it.curOp.viewChanged=!0;var gt=it.display,Bt=it.display.externalMeasured;if(Bt&&st>=Bt.lineN&&st<Bt.lineN+Bt.size&&(gt.externalMeasured=null),!(st<gt.viewFrom||st>=gt.viewTo)){var te=gt.view[Gu(it,st)];if(te.node!=null){var xe=te.changes||(te.changes=[]);Se(xe,vt)==-1&&xe.push(vt)}}}function Au(it){it.display.viewFrom=it.display.viewTo=it.doc.first,it.display.view=[],it.display.viewOffset=0}function fh(it,st,vt,gt){var Bt=Gu(it,st),te,xe=it.display.view;if(!Ci||vt==it.doc.first+it.doc.size)return{index:Bt,lineN:vt};for(var Ue=it.display.viewFrom,je=0;je<Bt;je++)Ue+=xe[je].size;if(Ue!=st){if(gt>0){if(Bt==xe.length-1)return null;te=Ue+xe[Bt].size-st,Bt++}else te=Ue-st;st+=te,vt+=te}for(;Ao(it.doc,vt)!=vt;){if(Bt==(gt<0?0:xe.length-1))return null;vt+=gt*xe[Bt-(gt<0?1:0)].size,Bt+=gt}return{index:Bt,lineN:vt}}function wl(it,st,vt){var gt=it.display,Bt=gt.view;Bt.length==0||st>=gt.viewTo||vt<=gt.viewFrom?(gt.view=Cs(it,st,vt),gt.viewFrom=st):(gt.viewFrom>st?gt.view=Cs(it,st,gt.viewFrom).concat(gt.view):gt.viewFrom<st&&(gt.view=gt.view.slice(Gu(it,st))),gt.viewFrom=st,gt.viewTo<vt?gt.view=gt.view.concat(Cs(it,gt.viewTo,vt)):gt.viewTo>vt&&(gt.view=gt.view.slice(0,Gu(it,vt)))),gt.viewTo=vt}function Th(it){for(var st=it.display.view,vt=0,gt=0;gt<st.length;gt++){var Bt=st[gt];!Bt.hidden&&(!Bt.node||Bt.changes)&&++vt}return vt}function wu(it){it.display.input.showSelection(it.display.input.prepareSelection())}function yd(it,st){st===void 0&&(st=!0);for(var vt=it.doc,gt={},Bt=gt.cursors=document.createDocumentFragment(),te=gt.selection=document.createDocumentFragment(),xe=0;xe<vt.sel.ranges.length;xe++)if(!(!st&&xe==vt.sel.primIndex)){var Ue=vt.sel.ranges[xe];if(!(Ue.from().line>=it.display.viewTo||Ue.to().line<it.display.viewFrom)){var je=Ue.empty();(je||it.options.showCursorWhenSelecting)&&Ma(it,Ue.head,Bt),je||Na(it,Ue,te)}}return gt}function Ma(it,st,vt){var gt=hl(it,st,"div",null,null,!it.options.singleCursorHeightPerLine),Bt=vt.appendChild(de("div","\xA0","CodeMirror-cursor"));if(Bt.style.left=gt.left+"px",Bt.style.top=gt.top+"px",Bt.style.height=Math.max(0,gt.bottom-gt.top)*it.options.cursorHeight+"px",gt.other){var te=vt.appendChild(de("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));te.style.display="",te.style.left=gt.other.left+"px",te.style.top=gt.other.top+"px",te.style.height=(gt.other.bottom-gt.other.top)*.85+"px"}}function qu(it,st){return it.top-st.top||it.left-st.left}function Na(it,st,vt){var gt=it.display,Bt=it.doc,te=document.createDocumentFragment(),xe=bu(it.display),Ue=xe.left,je=Math.max(gt.sizerWidth,tu(it)-gt.sizer.offsetLeft)-xe.right,an=Bt.direction=="ltr";function $n(Mo,rs,Ts,No){rs<0&&(rs=0),rs=Math.round(rs),No=Math.round(No),te.appendChild(de("div",null,"CodeMirror-selected","position: absolute; left: "+Mo+`px;
|
|
|
top: `+rs+"px; width: "+(Ts==null?je-Mo:Ts)+`px;
|
|
|
height: `+(No-rs)+"px"))}function wn(Mo,rs,Ts){var No=yn(Bt,Mo),Js=No.text.length,Ol,zl;function Al(za,Pl){return rh(it,On(Mo,za),"div",No,Pl)}function Xa(za,Pl,mu){var Oo=sA(it,No,null,za),Ca=Pl=="ltr"==(mu=="after")?"left":"right",Kl=mu=="after"?Oo.begin:Oo.end-(/\s/.test(No.text.charAt(Oo.end-1))?2:1);return Al(Kl,Ca)[Ca]}var Ia=Vn(No,Bt.direction);return Re(Ia,rs||0,Ts==null?Js:Ts,function(za,Pl,mu,Oo){var Ca=mu=="ltr",Kl=Al(za,Ca?"left":"right"),Dl=Al(Pl-1,Ca?"right":"left"),Xu=rs==null&&za==0,sa=Ts==null&&Pl==Js,Qs=Oo==0,hh=!Ia||Oo==Ia.length-1;if(Dl.top-Kl.top<=3){var lu=(an?Xu:sa)&&Qs,Yd=(an?sa:Xu)&&hh,Eh=lu?Ue:(Ca?Kl:Dl).left,nh=Yd?je:(Ca?Dl:Kl).right;$n(Eh,Kl.top,nh-Eh,Kl.bottom)}else{var wh,jl,zu,$c;Ca?(wh=an&&Xu&&Qs?Ue:Kl.left,jl=an?je:Xa(za,mu,"before"),zu=an?Ue:Xa(Pl,mu,"after"),$c=an&&sa&&hh?je:Dl.right):(wh=an?Xa(za,mu,"before"):Ue,jl=!an&&Xu&&Qs?je:Kl.right,zu=!an&&sa&&hh?Ue:Dl.left,$c=an?Xa(Pl,mu,"after"):je),$n(wh,Kl.top,jl-wh,Kl.bottom),Kl.bottom<Dl.top&&$n(Ue,Kl.bottom,null,Dl.top),$n(zu,Dl.top,$c-zu,Dl.bottom)}(!Ol||qu(Kl,Ol)<0)&&(Ol=Kl),qu(Dl,Ol)<0&&(Ol=Dl),(!zl||qu(Kl,zl)<0)&&(zl=Kl),qu(Dl,zl)<0&&(zl=Dl)}),{start:Ol,end:zl}}var Mi=st.from(),bi=st.to();if(Mi.line==bi.line)wn(Mi.line,Mi.ch,bi.ch);else{var br=yn(Bt,Mi.line),Tr=yn(Bt,bi.line),$r=Zo(br)==Zo(Tr),mo=wn(Mi.line,Mi.ch,$r?br.text.length+1:null).end,Jo=wn(bi.line,$r?0:null,bi.ch).start;$r&&(mo.top<Jo.top-2?($n(mo.right,mo.top,null,mo.bottom),$n(Ue,Jo.top,Jo.left,Jo.bottom)):$n(mo.right,mo.top,Jo.left-mo.right,mo.bottom)),mo.bottom<Jo.top&&$n(Ue,mo.bottom,null,Jo.top)}vt.appendChild(te)}function pl(it){if(it.state.focused){var st=it.display;clearInterval(st.blinker);var vt=!0;st.cursorDiv.style.visibility="",it.options.cursorBlinkRate>0?st.blinker=setInterval(function(){it.hasFocus()||Ft(it),st.cursorDiv.style.visibility=(vt=!vt)?"":"hidden"},it.options.cursorBlinkRate):it.options.cursorBlinkRate<0&&(st.cursorDiv.style.visibility="hidden")}}function Hl(it){it.state.focused||(it.display.input.focus(),wt(it))}function Et(it){it.state.delayingBlurEvent=!0,setTimeout(function(){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1,Ft(it))},100)}function wt(it,st){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1),it.options.readOnly!="nocursor"&&(it.state.focused||(_n(it,"focus",it,st),it.state.focused=!0,Ge(it.display.wrapper,"CodeMirror-focused"),!it.curOp&&it.display.selForContextMenu!=it.doc.sel&&(it.display.input.reset(),Nt&&setTimeout(function(){return it.display.input.reset(!0)},20)),it.display.input.receivedFocus()),pl(it))}function Ft(it,st){it.state.delayingBlurEvent||(it.state.focused&&(_n(it,"blur",it,st),it.state.focused=!1,Gt(it.display.wrapper,"CodeMirror-focused")),clearInterval(it.display.blinker),setTimeout(function(){it.state.focused||(it.display.shift=!1)},150))}function Ut(it){for(var st=it.display,vt=st.lineDiv.offsetTop,gt=0;gt<st.view.length;gt++){var Bt=st.view[gt],te=it.options.lineWrapping,xe=void 0,Ue=0;if(!Bt.hidden){if(ee&&Zt<8){var je=Bt.node.offsetTop+Bt.node.offsetHeight;xe=je-vt,vt=je}else{var an=Bt.node.getBoundingClientRect();xe=an.bottom-an.top,!te&&Bt.text.firstChild&&(Ue=Bt.text.firstChild.getBoundingClientRect().right-an.left-1)}var $n=Bt.line.height-xe;if(($n>.005||$n<-.005)&&(Oi(Bt.line,xe),se(Bt.line),Bt.rest))for(var wn=0;wn<Bt.rest.length;wn++)se(Bt.rest[wn]);if(Ue>it.display.sizerWidth){var Mi=Math.ceil(Ue/Ah(it.display));Mi>it.display.maxLineLength&&(it.display.maxLineLength=Mi,it.display.maxLine=Bt.line,it.display.maxLineChanged=!0)}}}}function se(it){if(it.widgets)for(var st=0;st<it.widgets.length;++st){var vt=it.widgets[st],gt=vt.node.parentNode;gt&&(vt.height=gt.offsetHeight)}}function Vt(it,st,vt){var gt=vt&&vt.top!=null?Math.max(0,vt.top):it.scroller.scrollTop;gt=Math.floor(gt-Zl(it));var Bt=vt&&vt.bottom!=null?vt.bottom:gt+it.wrapper.clientHeight,te=oi(st,gt),xe=oi(st,Bt);if(vt&&vt.ensure){var Ue=vt.ensure.from.line,je=vt.ensure.to.line;Ue<te?(te=Ue,xe=oi(st,xs(yn(st,Ue))+it.wrapper.clientHeight)):Math.min(je,st.lastLine())>=xe&&(te=oi(st,xs(yn(st,je))-it.wrapper.clientHeight),xe=je)}return{from:te,to:Math.max(xe,te+1)}}function pe(it,st){if(!ji(it,"scrollCursorIntoView")){var vt=it.display,gt=vt.sizer.getBoundingClientRect(),Bt=null;if(st.top+gt.top<0?Bt=!0:st.bottom+gt.top>(window.innerHeight||document.documentElement.clientHeight)&&(Bt=!1),Bt!=null&&!Yt){var te=de("div","\u200B",null,`position: absolute;
|
|
|
top: `+(st.top-vt.viewOffset-Zl(it.display))+`px;
|
|
|
height: `+(st.bottom-st.top+du(it)+vt.barHeight)+`px;
|
|
|
left: `+st.left+"px; width: "+Math.max(2,st.right-st.left)+"px;");it.display.lineSpace.appendChild(te),te.scrollIntoView(Bt),it.display.lineSpace.removeChild(te)}}}function ye(it,st,vt,gt){gt==null&&(gt=0);var Bt;!it.options.lineWrapping&&st==vt&&(st=st.ch?On(st.line,st.sticky=="before"?st.ch-1:st.ch,"after"):st,vt=st.sticky=="before"?On(st.line,st.ch+1,"before"):st);for(var te=0;te<5;te++){var xe=!1,Ue=hl(it,st),je=!vt||vt==st?Ue:hl(it,vt);Bt={left:Math.min(Ue.left,je.left),top:Math.min(Ue.top,je.top)-gt,right:Math.max(Ue.left,je.left),bottom:Math.max(Ue.bottom,je.bottom)+gt};var an=Ye(it,Bt),$n=it.doc.scrollTop,wn=it.doc.scrollLeft;if(an.scrollTop!=null&&(mi(it,an.scrollTop),Math.abs(it.doc.scrollTop-$n)>1&&(xe=!0)),an.scrollLeft!=null&&(Ai(it,an.scrollLeft),Math.abs(it.doc.scrollLeft-wn)>1&&(xe=!0)),!xe)break}return Bt}function Ee(it,st){var vt=Ye(it,st);vt.scrollTop!=null&&mi(it,vt.scrollTop),vt.scrollLeft!=null&&Ai(it,vt.scrollLeft)}function Ye(it,st){var vt=it.display,gt=_u(it.display);st.top<0&&(st.top=0);var Bt=it.curOp&&it.curOp.scrollTop!=null?it.curOp.scrollTop:vt.scroller.scrollTop,te=Go(it),xe={};st.bottom-st.top>te&&(st.bottom=st.top+te);var Ue=it.doc.height+Pu(vt),je=st.top<gt,an=st.bottom>Ue-gt;if(st.top<Bt)xe.scrollTop=je?0:st.top;else if(st.bottom>Bt+te){var $n=Math.min(st.top,(an?Ue:st.bottom)-te);$n!=Bt&&(xe.scrollTop=$n)}var wn=it.options.fixedGutter?0:vt.gutters.offsetWidth,Mi=it.curOp&&it.curOp.scrollLeft!=null?it.curOp.scrollLeft:vt.scroller.scrollLeft-wn,bi=tu(it)-vt.gutters.offsetWidth,br=st.right-st.left>bi;return br&&(st.right=st.left+bi),st.left<10?xe.scrollLeft=0:st.left<Mi?xe.scrollLeft=Math.max(0,st.left+wn-(br?0:10)):st.right>bi+Mi-3&&(xe.scrollLeft=st.right+(br?0:10)-bi),xe}function gn(it,st){st!=null&&(ci(it),it.curOp.scrollTop=(it.curOp.scrollTop==null?it.doc.scrollTop:it.curOp.scrollTop)+st)}function fn(it){ci(it);var st=it.getCursor();it.curOp.scrollToPos={from:st,to:st,margin:it.options.cursorScrollMargin}}function In(it,st,vt){(st!=null||vt!=null)&&ci(it),st!=null&&(it.curOp.scrollLeft=st),vt!=null&&(it.curOp.scrollTop=vt)}function Qe(it,st){ci(it),it.curOp.scrollToPos=st}function ci(it){var st=it.curOp.scrollToPos;if(st){it.curOp.scrollToPos=null;var vt=Ud(it,st.from),gt=Ud(it,st.to);Yn(it,vt,gt,st.margin)}}function Yn(it,st,vt,gt){var Bt=Ye(it,{left:Math.min(st.left,vt.left),top:Math.min(st.top,vt.top)-gt,right:Math.max(st.right,vt.right),bottom:Math.max(st.bottom,vt.bottom)+gt});In(it,Bt.scrollLeft,Bt.scrollTop)}function mi(it,st){Math.abs(it.doc.scrollTop-st)<2||(Mt||Xi(it,{top:st}),Rn(it,st,!0),Mt&&Xi(it),ln(it,100))}function Rn(it,st,vt){st=Math.max(0,Math.min(it.display.scroller.scrollHeight-it.display.scroller.clientHeight,st)),!(it.display.scroller.scrollTop==st&&!vt)&&(it.doc.scrollTop=st,it.display.scrollbars.setScrollTop(st),it.display.scroller.scrollTop!=st&&(it.display.scroller.scrollTop=st))}function Ai(it,st,vt,gt){st=Math.max(0,Math.min(st,it.display.scroller.scrollWidth-it.display.scroller.clientWidth)),!((vt?st==it.doc.scrollLeft:Math.abs(it.doc.scrollLeft-st)<2)&&!gt)&&(it.doc.scrollLeft=st,$i(it),it.display.scroller.scrollLeft!=st&&(it.display.scroller.scrollLeft=st),it.display.scrollbars.setScrollLeft(st))}function Hi(it){var st=it.display,vt=st.gutters.offsetWidth,gt=Math.round(it.doc.height+Pu(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?vt:0,docHeight:gt,scrollHeight:gt+du(it)+st.barHeight,nativeBarWidth:st.nativeBarWidth,gutterWidth:vt}}var sr=function(it,st,vt){this.cm=vt;var gt=this.vert=de("div",[de("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Bt=this.horiz=de("div",[de("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");gt.tabIndex=Bt.tabIndex=-1,it(gt),it(Bt),An(gt,"scroll",function(){gt.clientHeight&&st(gt.scrollTop,"vertical")}),An(Bt,"scroll",function(){Bt.clientWidth&&st(Bt.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ee&&Zt<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};sr.prototype.update=function(it){var st=it.scrollWidth>it.clientWidth+1,vt=it.scrollHeight>it.clientHeight+1,gt=it.nativeBarWidth;if(vt){this.vert.style.display="block",this.vert.style.bottom=st?gt+"px":"0";var Bt=it.viewHeight-(st?gt:0);this.vert.firstChild.style.height=Math.max(0,it.scrollHeight-it.clientHeight+Bt)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(st){this.horiz.style.display="block",this.horiz.style.right=vt?gt+"px":"0",this.horiz.style.left=it.barLeft+"px";var te=it.viewWidth-it.barLeft-(vt?gt:0);this.horiz.firstChild.style.width=Math.max(0,it.scrollWidth-it.clientWidth+te)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&it.clientHeight>0&&(gt==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:vt?gt:0,bottom:st?gt:0}},sr.prototype.setScrollLeft=function(it){this.horiz.scrollLeft!=it&&(this.horiz.scrollLeft=it),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},sr.prototype.setScrollTop=function(it){this.vert.scrollTop!=it&&(this.vert.scrollTop=it),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},sr.prototype.zeroWidthHack=function(){var it=lt&&!Kt?"12px":"18px";this.horiz.style.height=this.vert.style.width=it,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ne,this.disableVert=new ne},sr.prototype.enableZeroWidthBar=function(it,st,vt){it.style.pointerEvents="auto";function gt(){var Bt=it.getBoundingClientRect(),te=vt=="vert"?document.elementFromPoint(Bt.right-1,(Bt.top+Bt.bottom)/2):document.elementFromPoint((Bt.right+Bt.left)/2,Bt.bottom-1);te!=it?it.style.pointerEvents="none":st.set(1e3,gt)}st.set(1e3,gt)},sr.prototype.clear=function(){var it=this.horiz.parentNode;it.removeChild(this.horiz),it.removeChild(this.vert)};var Er=function(){};Er.prototype.update=function(){return{bottom:0,right:0}},Er.prototype.setScrollLeft=function(){},Er.prototype.setScrollTop=function(){},Er.prototype.clear=function(){};function to(it,st){st||(st=Hi(it));var vt=it.display.barWidth,gt=it.display.barHeight;gr(it,st);for(var Bt=0;Bt<4&&vt!=it.display.barWidth||gt!=it.display.barHeight;Bt++)vt!=it.display.barWidth&&it.options.lineWrapping&&Ut(it),gr(it,Hi(it)),vt=it.display.barWidth,gt=it.display.barHeight}function gr(it,st){var vt=it.display,gt=vt.scrollbars.update(st);vt.sizer.style.paddingRight=(vt.barWidth=gt.right)+"px",vt.sizer.style.paddingBottom=(vt.barHeight=gt.bottom)+"px",vt.heightForcer.style.borderBottom=gt.bottom+"px solid transparent",gt.right&>.bottom?(vt.scrollbarFiller.style.display="block",vt.scrollbarFiller.style.height=gt.bottom+"px",vt.scrollbarFiller.style.width=gt.right+"px"):vt.scrollbarFiller.style.display="",gt.bottom&&it.options.coverGutterNextToScrollbar&&it.options.fixedGutter?(vt.gutterFiller.style.display="block",vt.gutterFiller.style.height=gt.bottom+"px",vt.gutterFiller.style.width=st.gutterWidth+"px"):vt.gutterFiller.style.display=""}var ki={native:sr,null:Er};function yr(it){it.display.scrollbars&&(it.display.scrollbars.clear(),it.display.scrollbars.addClass&&Gt(it.display.wrapper,it.display.scrollbars.addClass)),it.display.scrollbars=new ki[it.options.scrollbarStyle](function(st){it.display.wrapper.insertBefore(st,it.display.scrollbarFiller),An(st,"mousedown",function(){it.state.focused&&setTimeout(function(){return it.display.input.focus()},0)}),st.setAttribute("cm-not-content","true")},function(st,vt){vt=="horizontal"?Ai(it,st):mi(it,st)},it),it.display.scrollbars.addClass&&Ge(it.display.wrapper,it.display.scrollbars.addClass)}var Kr=0;function Kn(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:++Kr},cu(it.curOp)}function Jn(it){var st=it.curOp;st&&_s(st,function(vt){for(var gt=0;gt<vt.ops.length;gt++)vt.ops[gt].cm.curOp=null;Wi(vt)})}function Wi(it){for(var st=it.ops,vt=0;vt<st.length;vt++)ge(st[vt]);for(var gt=0;gt<st.length;gt++)Ce(st[gt]);for(var Bt=0;Bt<st.length;Bt++)Ve(st[Bt]);for(var te=0;te<st.length;te++)en(st[te]);for(var xe=0;xe<st.length;xe++)un(st[xe])}function ge(it){var st=it.cm,vt=st.display;Xn(st),it.updateMaxLine&&aa(st),it.mustUpdate=it.viewChanged||it.forceUpdate||it.scrollTop!=null||it.scrollToPos&&(it.scrollToPos.from.line<vt.viewFrom||it.scrollToPos.to.line>=vt.viewTo)||vt.maxLineChanged&&st.options.lineWrapping,it.update=it.mustUpdate&&new Fn(st,it.mustUpdate&&{top:it.scrollTop,ensure:it.scrollToPos},it.forceUpdate)}function Ce(it){it.updatedDisplay=it.mustUpdate&&Ei(it.cm,it.update)}function Ve(it){var st=it.cm,vt=st.display;it.updatedDisplay&&Ut(st),it.barMeasure=Hi(st),vt.maxLineChanged&&!st.options.lineWrapping&&(it.adjustWidthTo=Bh(st,vt.maxLine,vt.maxLine.text.length).left+3,st.display.sizerWidth=it.adjustWidthTo,it.barMeasure.scrollWidth=Math.max(vt.scroller.clientWidth,vt.sizer.offsetLeft+it.adjustWidthTo+du(st)+st.display.barWidth),it.maxScrollLeft=Math.max(0,vt.sizer.offsetLeft+it.adjustWidthTo-tu(st))),(it.updatedDisplay||it.selectionChanged)&&(it.preparedSelection=vt.input.prepareSelection())}function en(it){var st=it.cm;it.adjustWidthTo!=null&&(st.display.sizer.style.minWidth=it.adjustWidthTo+"px",it.maxScrollLeft<st.doc.scrollLeft&&Ai(st,Math.min(st.display.scroller.scrollLeft,it.maxScrollLeft),!0),st.display.maxLineChanged=!1);var vt=it.focus&&it.focus==Wt();it.preparedSelection&&st.display.input.showSelection(it.preparedSelection,vt),(it.updatedDisplay||it.startHeight!=st.doc.height)&&to(st,it.barMeasure),it.updatedDisplay&&Xr(st,it.barMeasure),it.selectionChanged&&pl(st),st.state.focused&&it.updateInput&&st.display.input.reset(it.typing),vt&&Hl(it.cm)}function un(it){var st=it.cm,vt=st.display,gt=st.doc;if(it.updatedDisplay&&Ii(st,it.update),vt.wheelStartX!=null&&(it.scrollTop!=null||it.scrollLeft!=null||it.scrollToPos)&&(vt.wheelStartX=vt.wheelStartY=null),it.scrollTop!=null&&Rn(st,it.scrollTop,it.forceScroll),it.scrollLeft!=null&&Ai(st,it.scrollLeft,!0,!0),it.scrollToPos){var Bt=ye(st,nr(gt,it.scrollToPos.from),nr(gt,it.scrollToPos.to),it.scrollToPos.margin);pe(st,Bt)}var te=it.maybeHiddenMarkers,xe=it.maybeUnhiddenMarkers;if(te)for(var Ue=0;Ue<te.length;++Ue)te[Ue].lines.length||_n(te[Ue],"hide");if(xe)for(var je=0;je<xe.length;++je)xe[je].lines.length&&_n(xe[je],"unhide");vt.wrapper.offsetHeight&&(gt.scrollTop=st.display.scroller.scrollTop),it.changeObjs&&_n(st,"changes",st,it.changeObjs),it.update&&it.update.finish()}function hn(it,st){if(it.curOp)return st();Kn(it);try{return st()}finally{Jn(it)}}function Dn(it,st){return function(){if(it.curOp)return st.apply(it,arguments);Kn(it);try{return st.apply(it,arguments)}finally{Jn(it)}}}function qn(it){return function(){if(this.curOp)return it.apply(this,arguments);Kn(this);try{return it.apply(this,arguments)}finally{Jn(this)}}}function Te(it){return function(){var st=this.cm;if(!st||st.curOp)return it.apply(this,arguments);Kn(st);try{return it.apply(this,arguments)}finally{Jn(st)}}}function ln(it,st){it.doc.highlightFrontier<it.display.viewTo&&it.state.highlight.set(st,We(mn,it))}function mn(it){var st=it.doc;if(!(st.highlightFrontier>=it.display.viewTo)){var vt=+new Date+it.options.workTime,gt=$o(it,st.highlightFrontier),Bt=[];st.iter(gt.line,Math.min(st.first+st.size,it.display.viewTo+500),function(te){if(gt.line>=it.display.viewFrom){var xe=te.styles,Ue=te.text.length>it.options.maxHighlightLength?ti(st.mode,gt.state):null,je=Qo(it,te,gt,!0);Ue&&(gt.state=Ue),te.styles=je.styles;var an=te.styleClasses,$n=je.classes;$n?te.styleClasses=$n:an&&(te.styleClasses=null);for(var wn=!xe||xe.length!=te.styles.length||an!=$n&&(!an||!$n||an.bgClass!=$n.bgClass||an.textClass!=$n.textClass),Mi=0;!wn&&Mi<xe.length;++Mi)wn=xe[Mi]!=te.styles[Mi];wn&&Bt.push(gt.line),te.stateAfter=gt.save(),gt.nextLine()}else te.text.length<=it.options.maxHighlightLength&&pi(it,te.text,gt),te.stateAfter=gt.line%5==0?gt.save():null,gt.nextLine();if(+new Date>vt)return ln(it,it.options.workDelay),!0}),st.highlightFrontier=gt.line,st.modeFrontier=Math.max(st.modeFrontier,gt.line),Bt.length&&hn(it,function(){for(var te=0;te<Bt.length;te++)oa(it,Bt[te],"text")})}}var Fn=function(it,st,vt){var gt=it.display;this.viewport=st,this.visible=Vt(gt,it.doc,st),this.editorIsHidden=!gt.wrapper.offsetWidth,this.wrapperHeight=gt.wrapper.clientHeight,this.wrapperWidth=gt.wrapper.clientWidth,this.oldDisplayWidth=tu(it),this.force=vt,this.dims=_A(it),this.events=[]};Fn.prototype.signal=function(it,st){Ji(it,st)&&this.events.push(arguments)},Fn.prototype.finish=function(){for(var it=0;it<this.events.length;it++)_n.apply(null,this.events[it])};function Xn(it){var st=it.display;!st.scrollbarsClipped&&st.scroller.offsetWidth&&(st.nativeBarWidth=st.scroller.offsetWidth-st.scroller.clientWidth,st.heightForcer.style.height=du(it)+"px",st.sizer.style.marginBottom=-st.nativeBarWidth+"px",st.sizer.style.borderRightWidth=du(it)+"px",st.scrollbarsClipped=!0)}function li(it){if(it.hasFocus())return null;var st=Wt();if(!st||!Ke(it.display.lineDiv,st))return null;var vt={activeElt:st};if(window.getSelection){var gt=window.getSelection();gt.anchorNode&>.extend&&Ke(it.display.lineDiv,gt.anchorNode)&&(vt.anchorNode=gt.anchorNode,vt.anchorOffset=gt.anchorOffset,vt.focusNode=gt.focusNode,vt.focusOffset=gt.focusOffset)}return vt}function si(it){if(!(!it||!it.activeElt||it.activeElt==Wt())&&(it.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(it.activeElt.nodeName)&&it.anchorNode&&Ke(document.body,it.anchorNode)&&Ke(document.body,it.focusNode))){var st=window.getSelection(),vt=document.createRange();vt.setEnd(it.anchorNode,it.anchorOffset),vt.collapse(!1),st.removeAllRanges(),st.addRange(vt),st.extend(it.focusNode,it.focusOffset)}}function Ei(it,st){var vt=it.display,gt=it.doc;if(st.editorIsHidden)return Au(it),!1;if(!st.force&&st.visible.from>=vt.viewFrom&&st.visible.to<=vt.viewTo&&(vt.updateLineNumbers==null||vt.updateLineNumbers>=vt.viewTo)&&vt.renderedView==vt.view&&Th(it)==0)return!1;Hn(it)&&(Au(it),st.dims=_A(it));var Bt=gt.first+gt.size,te=Math.max(st.visible.from-it.options.viewportMargin,gt.first),xe=Math.min(Bt,st.visible.to+it.options.viewportMargin);vt.viewFrom<te&&te-vt.viewFrom<20&&(te=Math.max(gt.first,vt.viewFrom)),vt.viewTo>xe&&vt.viewTo-xe<20&&(xe=Math.min(Bt,vt.viewTo)),Ci&&(te=Ao(it.doc,te),xe=yo(it.doc,xe));var Ue=te!=vt.viewFrom||xe!=vt.viewTo||vt.lastWrapHeight!=st.wrapperHeight||vt.lastWrapWidth!=st.wrapperWidth;wl(it,te,xe),vt.viewOffset=xs(yn(it.doc,vt.viewFrom)),it.display.mover.style.top=vt.viewOffset+"px";var je=Th(it);if(!Ue&&je==0&&!st.force&&vt.renderedView==vt.view&&(vt.updateLineNumbers==null||vt.updateLineNumbers>=vt.viewTo))return!1;var an=li(it);return je>4&&(vt.lineDiv.style.display="none"),ir(it,vt.updateLineNumbers,st.dims),je>4&&(vt.lineDiv.style.display=""),vt.renderedView=vt.view,si(an),oe(vt.cursorDiv),oe(vt.selectionDiv),vt.gutters.style.height=vt.sizer.style.minHeight=0,Ue&&(vt.lastWrapHeight=st.wrapperHeight,vt.lastWrapWidth=st.wrapperWidth,ln(it,400)),vt.updateLineNumbers=null,!0}function Ii(it,st){for(var vt=st.viewport,gt=!0;;gt=!1){if(!gt||!it.options.lineWrapping||st.oldDisplayWidth==tu(it)){if(vt&&vt.top!=null&&(vt={top:Math.min(it.doc.height+Pu(it.display)-Go(it),vt.top)}),st.visible=Vt(it.display,it.doc,vt),st.visible.from>=it.display.viewFrom&&st.visible.to<=it.display.viewTo)break}else gt&&(st.visible=Vt(it.display,it.doc,vt));if(!Ei(it,st))break;Ut(it);var Bt=Hi(it);wu(it),to(it,Bt),Xr(it,Bt),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 vt=new Fn(it,st);if(Ei(it,vt)){Ut(it),Ii(it,vt);var gt=Hi(it);wu(it),to(it,gt),Xr(it,gt),vt.finish()}}function ir(it,st,vt){var gt=it.display,Bt=it.options.lineNumbers,te=gt.lineDiv,xe=te.firstChild;function Ue(br){var Tr=br.nextSibling;return Nt&<&&it.display.currentWheelTarget==br?br.style.display="none":br.parentNode.removeChild(br),Tr}for(var je=gt.view,an=gt.viewFrom,$n=0;$n<je.length;$n++){var wn=je[$n];if(!wn.hidden)if(!wn.node||wn.node.parentNode!=te){var Mi=ru(it,wn,an,vt);te.insertBefore(Mi,xe)}else{for(;xe!=wn.node;)xe=Ue(xe);var bi=Bt&&st!=null&&st<=an&&wn.lineNumber;wn.changes&&(Se(wn.changes,"gutter")>-1&&(bi=!1),Os(it,wn,an,vt)),bi&&(oe(wn.lineNumber),wn.lineNumber.appendChild(document.createTextNode(er(it.options,an)))),xe=wn.node.nextSibling}an+=wn.size}for(;xe;)xe=Ue(xe)}function dr(it){var st=it.gutters.offsetWidth;it.sizer.style.marginLeft=st+"px"}function Xr(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+du(it)+"px"}function $i(it){var st=it.display,vt=st.view;if(!(!st.alignWidgets&&(!st.gutters.firstChild||!it.options.fixedGutter))){for(var gt=id(st)-st.scroller.scrollLeft+it.doc.scrollLeft,Bt=st.gutters.offsetWidth,te=gt+"px",xe=0;xe<vt.length;xe++)if(!vt[xe].hidden){it.options.fixedGutter&&(vt[xe].gutter&&(vt[xe].gutter.style.left=te),vt[xe].gutterBackground&&(vt[xe].gutterBackground.style.left=te));var Ue=vt[xe].alignable;if(Ue)for(var je=0;je<Ue.length;je++)Ue[je].style.left=te}it.options.fixedGutter&&(st.gutters.style.left=gt+Bt+"px")}}function Hn(it){if(!it.options.lineNumbers)return!1;var st=it.doc,vt=er(it.options,st.first+st.size-1),gt=it.display;if(vt.length!=gt.lineNumChars){var Bt=gt.measure.appendChild(de("div",[de("div",vt)],"CodeMirror-linenumber CodeMirror-gutter-elt")),te=Bt.firstChild.offsetWidth,xe=Bt.offsetWidth-te;return gt.lineGutter.style.width="",gt.lineNumInnerWidth=Math.max(te,gt.lineGutter.offsetWidth-xe)+1,gt.lineNumWidth=gt.lineNumInnerWidth+xe,gt.lineNumChars=gt.lineNumInnerWidth?vt.length:-1,gt.lineGutter.style.width=gt.lineNumWidth+"px",dr(it.display),!0}return!1}function no(it,st){for(var vt=[],gt=!1,Bt=0;Bt<it.length;Bt++){var te=it[Bt],xe=null;if(typeof te!="string"&&(xe=te.style,te=te.className),te=="CodeMirror-linenumbers")if(st)gt=!0;else continue;vt.push({className:te,style:xe})}return st&&!gt&&vt.push({className:"CodeMirror-linenumbers",style:null}),vt}function ro(it){var st=it.gutters,vt=it.gutterSpecs;oe(st),it.lineGutter=null;for(var gt=0;gt<vt.length;++gt){var Bt=vt[gt],te=Bt.className,xe=Bt.style,Ue=st.appendChild(de("div",null,"CodeMirror-gutter "+te));xe&&(Ue.style.cssText=xe),te=="CodeMirror-linenumbers"&&(it.lineGutter=Ue,Ue.style.width=(it.lineNumWidth||1)+"px")}st.style.display=vt.length?"":"none",dr(it)}function tr(it){ro(it.display),Bl(it),$i(it)}function pr(it,st,vt,gt){var Bt=this;this.input=vt,Bt.scrollbarFiller=de("div",null,"CodeMirror-scrollbar-filler"),Bt.scrollbarFiller.setAttribute("cm-not-content","true"),Bt.gutterFiller=de("div",null,"CodeMirror-gutter-filler"),Bt.gutterFiller.setAttribute("cm-not-content","true"),Bt.lineDiv=be("div",null,"CodeMirror-code"),Bt.selectionDiv=de("div",null,null,"position: relative; z-index: 1"),Bt.cursorDiv=de("div",null,"CodeMirror-cursors"),Bt.measure=de("div",null,"CodeMirror-measure"),Bt.lineMeasure=de("div",null,"CodeMirror-measure"),Bt.lineSpace=be("div",[Bt.measure,Bt.lineMeasure,Bt.selectionDiv,Bt.cursorDiv,Bt.lineDiv],null,"position: relative; outline: none");var te=be("div",[Bt.lineSpace],"CodeMirror-lines");Bt.mover=de("div",[te],null,"position: relative"),Bt.sizer=de("div",[Bt.mover],"CodeMirror-sizer"),Bt.sizerWidth=null,Bt.heightForcer=de("div",null,null,"position: absolute; height: "+Pn+"px; width: 1px;"),Bt.gutters=de("div",null,"CodeMirror-gutters"),Bt.lineGutter=null,Bt.scroller=de("div",[Bt.sizer,Bt.heightForcer,Bt.gutters],"CodeMirror-scroll"),Bt.scroller.setAttribute("tabIndex","-1"),Bt.wrapper=de("div",[Bt.scrollbarFiller,Bt.gutterFiller,Bt.scroller],"CodeMirror"),ee&&Zt<8&&(Bt.gutters.style.zIndex=-1,Bt.scroller.style.paddingRight=0),!Nt&&!(Mt&&tt)&&(Bt.scroller.draggable=!0),it&&(it.appendChild?it.appendChild(Bt.wrapper):it(Bt.wrapper)),Bt.viewFrom=Bt.viewTo=st.first,Bt.reportedViewFrom=Bt.reportedViewTo=st.first,Bt.view=[],Bt.renderedView=null,Bt.externalMeasured=null,Bt.viewOffset=0,Bt.lastWrapHeight=Bt.lastWrapWidth=0,Bt.updateLineNumbers=null,Bt.nativeBarWidth=Bt.barHeight=Bt.barWidth=0,Bt.scrollbarsClipped=!1,Bt.lineNumWidth=Bt.lineNumInnerWidth=Bt.lineNumChars=null,Bt.alignWidgets=!1,Bt.cachedCharWidth=Bt.cachedTextHeight=Bt.cachedPaddingH=null,Bt.maxLine=null,Bt.maxLineLength=0,Bt.maxLineChanged=!1,Bt.wheelDX=Bt.wheelDY=Bt.wheelStartX=Bt.wheelStartY=null,Bt.shift=!1,Bt.selForContextMenu=null,Bt.activeTouch=null,Bt.gutterSpecs=no(gt.gutters,gt.lineNumbers),ro(Bt),vt.init(Bt)}var Ar=0,qi=null;ee?qi=-.53:Mt?qi=15:qt?qi=-.7:re&&(qi=-1/3);function Nr(it){var st=it.wheelDeltaX,vt=it.wheelDeltaY;return st==null&&it.detail&&it.axis==it.HORIZONTAL_AXIS&&(st=it.detail),vt==null&&it.detail&&it.axis==it.VERTICAL_AXIS?vt=it.detail:vt==null&&(vt=it.wheelDelta),{x:st,y:vt}}function oo(it){var st=Nr(it);return st.x*=qi,st.y*=qi,st}function po(it,st){var vt=Nr(st),gt=vt.x,Bt=vt.y,te=it.display,xe=te.scroller,Ue=xe.scrollWidth>xe.clientWidth,je=xe.scrollHeight>xe.clientHeight;if(gt&&Ue||Bt&&je){if(Bt&<&&Nt){t:for(var an=st.target,$n=te.view;an!=xe;an=an.parentNode)for(var wn=0;wn<$n.length;wn++)if($n[wn].node==an){it.display.currentWheelTarget=an;break t}}if(gt&&!Mt&&!Pt&&qi!=null){Bt&&je&&mi(it,Math.max(0,xe.scrollTop+Bt*qi)),Ai(it,Math.max(0,xe.scrollLeft+gt*qi)),(!Bt||Bt&&je)&&Mr(st),te.wheelStartX=null;return}if(Bt&&qi!=null){var Mi=Bt*qi,bi=it.doc.scrollTop,br=bi+te.wrapper.clientHeight;Mi<0?bi=Math.max(0,bi+Mi-50):br=Math.min(it.doc.height,br+Mi+50),Xi(it,{top:bi,bottom:br})}Ar<20&&(te.wheelStartX==null?(te.wheelStartX=xe.scrollLeft,te.wheelStartY=xe.scrollTop,te.wheelDX=gt,te.wheelDY=Bt,setTimeout(function(){if(te.wheelStartX!=null){var Tr=xe.scrollLeft-te.wheelStartX,$r=xe.scrollTop-te.wheelStartY,mo=$r&&te.wheelDY&&$r/te.wheelDY||Tr&&te.wheelDX&&Tr/te.wheelDX;te.wheelStartX=te.wheelStartY=null,mo&&(qi=(qi*Ar+mo)/(Ar+1),++Ar)}},200)):(te.wheelDX+=gt,te.wheelDY+=Bt))}}var So=function(it,st){this.ranges=it,this.primIndex=st};So.prototype.primary=function(){return this.ranges[this.primIndex]},So.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 vt=this.ranges[st],gt=it.ranges[st];if(!Cr(vt.anchor,gt.anchor)||!Cr(vt.head,gt.head))return!1}return!0},So.prototype.deepCopy=function(){for(var it=[],st=0;st<this.ranges.length;st++)it[st]=new Qr(or(this.ranges[st].anchor),or(this.ranges[st].head));return new So(it,this.primIndex)},So.prototype.somethingSelected=function(){for(var it=0;it<this.ranges.length;it++)if(!this.ranges[it].empty())return!0;return!1},So.prototype.contains=function(it,st){st||(st=it);for(var vt=0;vt<this.ranges.length;vt++){var gt=this.ranges[vt];if(ui(st,gt.from())>=0&&ui(it,gt.to())<=0)return vt}return-1};var Qr=function(it,st){this.anchor=it,this.head=st};Qr.prototype.from=function(){return ar(this.anchor,this.head)},Qr.prototype.to=function(){return zr(this.anchor,this.head)},Qr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Xo(it,st,vt){var gt=it&&it.options.selectionsMayTouch,Bt=st[vt];st.sort(function(Mi,bi){return ui(Mi.from(),bi.from())}),vt=Se(st,Bt);for(var te=1;te<st.length;te++){var xe=st[te],Ue=st[te-1],je=ui(Ue.to(),xe.from());if(gt&&!xe.empty()?je>0:je>=0){var an=ar(Ue.from(),xe.from()),$n=zr(Ue.to(),xe.to()),wn=Ue.empty()?xe.from()==xe.head:Ue.from()==Ue.head;te<=vt&&--vt,st.splice(--te,2,new Qr(wn?$n:an,wn?an:$n))}}return new So(st,vt)}function Po(it,st){return new So([new Qr(it,st||it)],0)}function hs(it){return it.text?On(it.from.line+it.text.length-1,nn(it.text).length+(it.text.length==1?it.from.ch:0)):it.to}function so(it,st){if(ui(it,st.from)<0)return it;if(ui(it,st.to)<=0)return hs(st);var vt=it.line+st.text.length-(st.to.line-st.from.line)-1,gt=it.ch;return it.line==st.to.line&&(gt+=hs(st).ch-st.to.ch),On(vt,gt)}function Pa(it,st){for(var vt=[],gt=0;gt<it.sel.ranges.length;gt++){var Bt=it.sel.ranges[gt];vt.push(new Qr(so(Bt.anchor,st),so(Bt.head,st)))}return Xo(it.cm,vt,it.sel.primIndex)}function ks(it,st,vt){return it.line==st.line?On(vt.line,it.ch-st.ch+vt.ch):On(vt.line+(it.line-st.line),it.ch)}function Ps(it,st,vt){for(var gt=[],Bt=On(it.first,0),te=Bt,xe=0;xe<st.length;xe++){var Ue=st[xe],je=ks(Ue.from,Bt,te),an=ks(hs(Ue),Bt,te);if(Bt=Ue.to,te=an,vt=="around"){var $n=it.sel.ranges[xe],wn=ui($n.head,$n.anchor)<0;gt[xe]=new Qr(wn?an:je,wn?je:an)}else gt[xe]=new Qr(je,je)}return new So(gt,it.sel.primIndex)}function Eo(it){it.doc.mode=kn(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,ln(it,100),it.state.modeGen++,it.curOp&&Bl(it)}function Va(it,st){return st.from.ch==0&&st.to.ch==0&&nn(st.text)==""&&(!it.cm||it.cm.options.wholeLineUpdateBefore)}function Ds(it,st,vt,gt){function Bt(Jo){return vt?vt[Jo]:null}function te(Jo,Mo,rs){Zs(Jo,Mo,rs,gt),Rr(Jo,"change",Jo,st)}function xe(Jo,Mo){for(var rs=[],Ts=Jo;Ts<Mo;++Ts)rs.push(new Ho(an[Ts],Bt(Ts),gt));return rs}var Ue=st.from,je=st.to,an=st.text,$n=yn(it,Ue.line),wn=yn(it,je.line),Mi=nn(an),bi=Bt(an.length-1),br=je.line-Ue.line;if(st.full)it.insert(0,xe(0,an.length)),it.remove(an.length,it.size-an.length);else if(Va(it,st)){var Tr=xe(0,an.length-1);te(wn,wn.text,bi),br&&it.remove(Ue.line,br),Tr.length&&it.insert(Ue.line,Tr)}else if($n==wn)if(an.length==1)te($n,$n.text.slice(0,Ue.ch)+Mi+$n.text.slice(je.ch),bi);else{var $r=xe(1,an.length-1);$r.push(new Ho(Mi+$n.text.slice(je.ch),bi,gt)),te($n,$n.text.slice(0,Ue.ch)+an[0],Bt(0)),it.insert(Ue.line+1,$r)}else if(an.length==1)te($n,$n.text.slice(0,Ue.ch)+an[0]+wn.text.slice(je.ch),Bt(0)),it.remove(Ue.line+1,br);else{te($n,$n.text.slice(0,Ue.ch)+an[0],Bt(0)),te(wn,Mi+wn.text.slice(je.ch),bi);var mo=xe(1,an.length-1);br>1&&it.remove(Ue.line+1,br-1),it.insert(Ue.line+1,mo)}Rr(it,"change",it,st)}function Il(it,st,vt){function gt(Bt,te,xe){if(Bt.linked)for(var Ue=0;Ue<Bt.linked.length;++Ue){var je=Bt.linked[Ue];if(je.doc!=te){var an=xe&&je.sharedHist;vt&&!an||(st(je.doc,an),gt(je.doc,Bt,an))}}}gt(it,null,!0)}function wo(it,st){if(st.cm)throw new Error("This document is already in use.");it.doc=st,st.cm=it,As(it),Eo(it),ss(it),it.options.lineWrapping||aa(it),it.options.mode=st.modeOption,Bl(it)}function ss(it){(it.doc.direction=="rtl"?Ge:Gt)(it.display.lineDiv,"CodeMirror-rtl")}function cs(it){hn(it,function(){ss(it),Bl(it)})}function Lo(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 ts(it,st){var vt={from:or(st.from),to:hs(st),text:Qn(it,st.from,st.to)};return Xl(it,vt,st.from.line,st.to.line+1),Il(it,function(gt){return Xl(gt,vt,st.from.line,st.to.line+1)},!0),vt}function xo(it){for(;it.length;){var st=nn(it);if(st.ranges)it.pop();else break}}function Ls(it,st){if(st)return xo(it.done),nn(it.done);if(it.done.length&&!nn(it.done).ranges)return nn(it.done);if(it.done.length>1&&!it.done[it.done.length-2].ranges)return it.done.pop(),nn(it.done)}function Rs(it,st,vt,gt){var Bt=it.history;Bt.undone.length=0;var te=+new Date,xe,Ue;if((Bt.lastOp==gt||Bt.lastOrigin==st.origin&&st.origin&&(st.origin.charAt(0)=="+"&&Bt.lastModTime>te-(it.cm?it.cm.options.historyEventDelay:500)||st.origin.charAt(0)=="*"))&&(xe=Ls(Bt,Bt.lastOp==gt)))Ue=nn(xe.changes),ui(st.from,st.to)==0&&ui(st.from,Ue.to)==0?Ue.to=hs(st):xe.changes.push(ts(it,st));else{var je=nn(Bt.done);for((!je||!je.ranges)&&ds(it.sel,Bt.done),xe={changes:[ts(it,st)],generation:Bt.generation},Bt.done.push(xe);Bt.done.length>Bt.undoDepth;)Bt.done.shift(),Bt.done[0].ranges||Bt.done.shift()}Bt.done.push(vt),Bt.generation=++Bt.maxGeneration,Bt.lastModTime=Bt.lastSelTime=te,Bt.lastOp=Bt.lastSelOp=gt,Bt.lastOrigin=Bt.lastSelOrigin=st.origin,Ue||_n(it,"historyAdded")}function ea(it,st,vt,gt){var Bt=st.charAt(0);return Bt=="*"||Bt=="+"&&vt.ranges.length==gt.ranges.length&&vt.somethingSelected()==gt.somethingSelected()&&new Date-it.history.lastSelTime<=(it.cm?it.cm.options.historyEventDelay:500)}function Ql(it,st,vt,gt){var Bt=it.history,te=gt&>.origin;vt==Bt.lastSelOp||te&&Bt.lastSelOrigin==te&&(Bt.lastModTime==Bt.lastSelTime&&Bt.lastOrigin==te||ea(it,te,nn(Bt.done),st))?Bt.done[Bt.done.length-1]=st:ds(st,Bt.done),Bt.lastSelTime=+new Date,Bt.lastSelOrigin=te,Bt.lastSelOp=vt,gt&>.clearRedo!==!1&&xo(Bt.undone)}function ds(it,st){var vt=nn(st);vt&&vt.ranges&&vt.equals(it)||st.push(it)}function Xl(it,st,vt,gt){var Bt=st["spans_"+it.id],te=0;it.iter(Math.max(it.first,vt),Math.min(it.first+it.size,gt),function(xe){xe.markedSpans&&((Bt||(Bt=st["spans_"+it.id]={}))[te]=xe.markedSpans),++te})}function fa(it){if(!it)return null;for(var st,vt=0;vt<it.length;++vt)it[vt].marker.explicitlyCleared?st||(st=it.slice(0,vt)):st&&st.push(it[vt]);return st?st.length?st:null:it}function ml(it,st){var vt=st["spans_"+it.id];if(!vt)return null;for(var gt=[],Bt=0;Bt<st.text.length;++Bt)gt.push(fa(vt[Bt]));return gt}function ho(it,st){var vt=ml(it,st),gt=Ro(it,st);if(!vt)return gt;if(!gt)return vt;for(var Bt=0;Bt<vt.length;++Bt){var te=vt[Bt],xe=gt[Bt];if(te&&xe)t:for(var Ue=0;Ue<xe.length;++Ue){for(var je=xe[Ue],an=0;an<te.length;++an)if(te[an].marker==je.marker)continue t;te.push(je)}else xe&&(vt[Bt]=xe)}return vt}function Oa(it,st,vt){for(var gt=[],Bt=0;Bt<it.length;++Bt){var te=it[Bt];if(te.ranges){gt.push(vt?So.prototype.deepCopy.call(te):te);continue}var xe=te.changes,Ue=[];gt.push({changes:Ue});for(var je=0;je<xe.length;++je){var an=xe[je],$n=void 0;if(Ue.push({from:an.from,to:an.to,text:an.text}),st)for(var wn in an)($n=wn.match(/^spans_(\d+)$/))&&Se(st,Number($n[1]))>-1&&(nn(Ue)[wn]=an[wn],delete an[wn])}}return gt}function Iu(it,st,vt,gt){if(gt){var Bt=it.anchor;if(vt){var te=ui(st,Bt)<0;te!=ui(vt,Bt)<0?(Bt=st,st=vt):te!=ui(st,vt)<0&&(st=vt)}return new Qr(Bt,st)}else return new Qr(vt||st,st)}function wa(it,st,vt,gt,Bt){Bt==null&&(Bt=it.cm&&(it.cm.display.shift||it.extend)),Fa(it,new So([Iu(it.sel.primary(),st,vt,Bt)],0),gt)}function na(it,st,vt){for(var gt=[],Bt=it.cm&&(it.cm.display.shift||it.extend),te=0;te<it.sel.ranges.length;te++)gt[te]=Iu(it.sel.ranges[te],st[te],null,Bt);var xe=Xo(it.cm,gt,it.sel.primIndex);Fa(it,xe,vt)}function Ea(it,st,vt,gt){var Bt=it.sel.ranges.slice(0);Bt[st]=vt,Fa(it,Xo(it.cm,Bt,it.sel.primIndex),gt)}function Za(it,st,vt,gt){Fa(it,Po(st,vt),gt)}function ol(it,st,vt){var gt={ranges:st.ranges,update:function(Bt){this.ranges=[];for(var te=0;te<Bt.length;te++)this.ranges[te]=new Qr(nr(it,Bt[te].anchor),nr(it,Bt[te].head))},origin:vt&&vt.origin};return _n(it,"beforeSelectionChange",it,gt),it.cm&&_n(it.cm,"beforeSelectionChange",it.cm,gt),gt.ranges!=st.ranges?Xo(it.cm,gt.ranges,gt.ranges.length-1):st}function Hs(it,st,vt){var gt=it.history.done,Bt=nn(gt);Bt&&Bt.ranges?(gt[gt.length-1]=st,El(it,st,vt)):Fa(it,st,vt)}function Fa(it,st,vt){El(it,st,vt),Ql(it,it.sel,it.cm?it.cm.curOp.id:NaN,vt)}function El(it,st,vt){(Ji(it,"beforeSelectionChange")||it.cm&&Ji(it.cm,"beforeSelectionChange"))&&(st=ol(it,st,vt));var gt=vt&&vt.bias||(ui(st.primary().head,it.sel.primary().head)<0?-1:1);ku(it,Tu(it,st,gt,!0)),!(vt&&vt.scroll===!1)&&it.cm&&fn(it.cm)}function ku(it,st){st.equals(it.sel)||(it.sel=st,it.cm&&(it.cm.curOp.updateInput=1,it.cm.curOp.selectionChanged=!0,cr(it.cm)),Rr(it,"cursorActivity",it))}function fu(it){ku(it,Tu(it,it.sel,null,!1))}function Tu(it,st,vt,gt){for(var Bt,te=0;te<st.ranges.length;te++){var xe=st.ranges[te],Ue=st.ranges.length==it.sel.ranges.length&&it.sel.ranges[te],je=oh(it,xe.anchor,Ue&&Ue.anchor,vt,gt),an=oh(it,xe.head,Ue&&Ue.head,vt,gt);(Bt||je!=xe.anchor||an!=xe.head)&&(Bt||(Bt=st.ranges.slice(0,te)),Bt[te]=new Qr(je,an))}return Bt?Xo(it.cm,Bt,st.primIndex):st}function Wu(it,st,vt,gt,Bt){var te=yn(it,st.line);if(te.markedSpans)for(var xe=0;xe<te.markedSpans.length;++xe){var Ue=te.markedSpans[xe],je=Ue.marker,an="selectLeft"in je?!je.selectLeft:je.inclusiveLeft,$n="selectRight"in je?!je.selectRight:je.inclusiveRight;if((Ue.from==null||(an?Ue.from<=st.ch:Ue.from<st.ch))&&(Ue.to==null||($n?Ue.to>=st.ch:Ue.to>st.ch))){if(Bt&&(_n(je,"beforeCursorEnter"),je.explicitlyCleared))if(te.markedSpans){--xe;continue}else break;if(!je.atomic)continue;if(vt){var wn=je.find(gt<0?1:-1),Mi=void 0;if((gt<0?$n:an)&&(wn=sh(it,wn,-gt,wn&&wn.line==st.line?te:null)),wn&&wn.line==st.line&&(Mi=ui(wn,vt))&&(gt<0?Mi<0:Mi>0))return Wu(it,wn,st,gt,Bt)}var bi=je.find(gt<0?-1:1);return(gt<0?an:$n)&&(bi=sh(it,bi,gt,bi.line==st.line?te:null)),bi?Wu(it,bi,st,gt,Bt):null}}return st}function oh(it,st,vt,gt,Bt){var te=gt||1,xe=Wu(it,st,vt,te,Bt)||!Bt&&Wu(it,st,vt,te,!0)||Wu(it,st,vt,-te,Bt)||!Bt&&Wu(it,st,vt,-te,!0);return xe||(it.cantEdit=!0,On(it.first,0))}function sh(it,st,vt,gt){return vt<0&&st.ch==0?st.line>it.first?nr(it,On(st.line-1)):null:vt>0&&st.ch==(gt||yn(it,st.line)).text.length?st.line<it.first+it.size-1?On(st.line+1,0):null:new On(st.line,st.ch+vt)}function Qa(it){it.setSelection(On(it.firstLine(),0),On(it.lastLine()),Xe)}function xu(it,st,vt){var gt={canceled:!1,from:st.from,to:st.to,text:st.text,origin:st.origin,cancel:function(){return gt.canceled=!0}};return vt&&(gt.update=function(Bt,te,xe,Ue){Bt&&(gt.from=nr(it,Bt)),te&&(gt.to=nr(it,te)),xe&&(gt.text=xe),Ue!==void 0&&(gt.origin=Ue)}),_n(it,"beforeChange",it,gt),it.cm&&_n(it.cm,"beforeChange",it.cm,gt),gt.canceled?(it.cm&&(it.cm.curOp.updateInput=2),null):{from:gt.from,to:gt.to,text:gt.text,origin:gt.origin}}function xl(it,st,vt){if(it.cm){if(!it.cm.curOp)return Dn(it.cm,xl)(it,st,vt);if(it.cm.state.suppressEdits)return}if(!((Ji(it,"beforeChange")||it.cm&&Ji(it.cm,"beforeChange"))&&(st=xu(it,st,!0),!st))){var gt=Sr&&!vt&&os(it,st.from,st.to);if(gt)for(var Bt=gt.length-1;Bt>=0;--Bt)cl(it,{from:gt[Bt].from,to:gt[Bt].to,text:Bt?[""]:st.text,origin:st.origin});else cl(it,st)}}function cl(it,st){if(!(st.text.length==1&&st.text[0]==""&&ui(st.from,st.to)==0)){var vt=Pa(it,st);Rs(it,st,vt,it.cm?it.cm.curOp.id:NaN),Ph(it,st,vt,Ro(it,st));var gt=[];Il(it,function(Bt,te){!te&&Se(gt,Bt.history)==-1&&(ia(Bt.history,st),gt.push(Bt.history)),Ph(Bt,st,null,Ro(Bt,st))})}}function gh(it,st,vt){var gt=it.cm&&it.cm.state.suppressEdits;if(!(gt&&!vt)){for(var Bt=it.history,te,xe=it.sel,Ue=st=="undo"?Bt.done:Bt.undone,je=st=="undo"?Bt.undone:Bt.done,an=0;an<Ue.length&&(te=Ue[an],!(vt?te.ranges&&!te.equals(it.sel):!te.ranges));an++);if(an!=Ue.length){for(Bt.lastOrigin=Bt.lastSelOrigin=null;;)if(te=Ue.pop(),te.ranges){if(ds(te,je),vt&&!te.equals(it.sel)){Fa(it,te,{clearRedo:!1});return}xe=te}else if(gt){Ue.push(te);return}else break;var $n=[];ds(xe,je),je.push({changes:$n,generation:Bt.generation}),Bt.generation=te.generation||++Bt.maxGeneration;for(var wn=Ji(it,"beforeChange")||it.cm&&Ji(it.cm,"beforeChange"),Mi=function(Tr){var $r=te.changes[Tr];if($r.origin=st,wn&&!xu(it,$r,!1))return Ue.length=0,{};$n.push(ts(it,$r));var mo=Tr?Pa(it,$r):nn(Ue);Ph(it,$r,mo,ho(it,$r)),!Tr&&it.cm&&it.cm.scrollIntoView({from:$r.from,to:hs($r)});var Jo=[];Il(it,function(Mo,rs){!rs&&Se(Jo,Mo.history)==-1&&(ia(Mo.history,$r),Jo.push(Mo.history)),Ph(Mo,$r,null,ho(Mo,$r))})},bi=te.changes.length-1;bi>=0;--bi){var br=Mi(bi);if(br)return br.v}}}}function ec(it,st){if(st!=0&&(it.first+=st,it.sel=new So(Fi(it.sel.ranges,function(Bt){return new Qr(On(Bt.anchor.line+st,Bt.anchor.ch),On(Bt.head.line+st,Bt.head.ch))}),it.sel.primIndex),it.cm)){Bl(it.cm,it.first,it.first-st,st);for(var vt=it.cm.display,gt=vt.viewFrom;gt<vt.viewTo;gt++)oa(it.cm,gt,"gutter")}}function Ph(it,st,vt,gt){if(it.cm&&!it.cm.curOp)return Dn(it.cm,Ph)(it,st,vt,gt);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 Bt=st.text.length-1-(it.first-st.from.line);ec(it,Bt),st={from:On(it.first,0),to:On(st.to.line+Bt,st.to.ch),text:[nn(st.text)],origin:st.origin}}var te=it.lastLine();st.to.line>te&&(st={from:st.from,to:On(te,yn(it,te).text.length),text:[st.text[0]],origin:st.origin}),st.removed=Qn(it,st.from,st.to),vt||(vt=Pa(it,st)),it.cm?Oh(it.cm,st,gt):Ds(it,st,gt),El(it,vt,Xe),it.cantEdit&&oh(it,On(it.firstLine(),0))&&(it.cantEdit=!1)}}function Oh(it,st,vt){var gt=it.doc,Bt=it.display,te=st.from,xe=st.to,Ue=!1,je=te.line;it.options.lineWrapping||(je=qe(Zo(yn(gt,te.line))),gt.iter(je,xe.line+1,function(bi){if(bi==Bt.maxLine)return Ue=!0,!0})),gt.sel.contains(st.from,st.to)>-1&&cr(it),Ds(gt,st,vt,tl(it)),it.options.lineWrapping||(gt.iter(je,te.line+st.text.length,function(bi){var br=ca(bi);br>Bt.maxLineLength&&(Bt.maxLine=bi,Bt.maxLineLength=br,Bt.maxLineChanged=!0,Ue=!1)}),Ue&&(it.curOp.updateMaxLine=!0)),jr(gt,te.line),ln(it,400);var an=st.text.length-(xe.line-te.line)-1;st.full?Bl(it):te.line==xe.line&&st.text.length==1&&!Va(it.doc,st)?oa(it,te.line,"text"):Bl(it,te.line,xe.line+1,an);var $n=Ji(it,"changes"),wn=Ji(it,"change");if(wn||$n){var Mi={from:te,to:xe,text:st.text,removed:st.removed,origin:st.origin};wn&&Rr(it,"change",it,Mi),$n&&(it.curOp.changeObjs||(it.curOp.changeObjs=[])).push(Mi)}it.display.selForContextMenu=null}function fc(it,st,vt,gt,Bt){var te;gt||(gt=vt),ui(gt,vt)<0&&(te=[gt,vt],vt=te[0],gt=te[1]),typeof st=="string"&&(st=it.splitLines(st)),xl(it,{from:vt,to:gt,text:st,origin:Bt})}function Vu(it,st,vt,gt){vt<it.line?it.line+=gt:st<it.line&&(it.line=st,it.ch=0)}function La(it,st,vt,gt){for(var Bt=0;Bt<it.length;++Bt){var te=it[Bt],xe=!0;if(te.ranges){te.copied||(te=it[Bt]=te.deepCopy(),te.copied=!0);for(var Ue=0;Ue<te.ranges.length;Ue++)Vu(te.ranges[Ue].anchor,st,vt,gt),Vu(te.ranges[Ue].head,st,vt,gt);continue}for(var je=0;je<te.changes.length;++je){var an=te.changes[je];if(vt<an.from.line)an.from=On(an.from.line+gt,an.from.ch),an.to=On(an.to.line+gt,an.to.ch);else if(st<=an.to.line){xe=!1;break}}xe||(it.splice(0,Bt+1),Bt=0)}}function ia(it,st){var vt=st.from.line,gt=st.to.line,Bt=st.text.length-(gt-vt)-1;La(it.done,vt,gt,Bt),La(it.undone,vt,gt,Bt)}function eu(it,st,vt,gt){var Bt=st,te=st;return typeof st=="number"?te=yn(it,Lr(it,st)):Bt=qe(st),Bt==null?null:(gt(te,Bt)&&it.cm&&oa(it.cm,Bt,vt),te)}function vl(it){this.lines=it,this.parent=null;for(var st=0,vt=0;vt<it.length;++vt)it[vt].parent=this,st+=it[vt].height;this.height=st}vl.prototype={chunkSize:function(){return this.lines.length},removeInner:function(it,st){for(var vt=it,gt=it+st;vt<gt;++vt){var Bt=this.lines[vt];this.height-=Bt.height,ka(Bt),Rr(Bt,"delete")}this.lines.splice(it,st)},collapse:function(it){it.push.apply(it,this.lines)},insertInner:function(it,st,vt){this.height+=vt,this.lines=this.lines.slice(0,it).concat(st).concat(this.lines.slice(it));for(var gt=0;gt<st.length;++gt)st[gt].parent=this},iterN:function(it,st,vt){for(var gt=it+st;it<gt;++it)if(vt(this.lines[it]))return!0}};function ga(it){this.children=it;for(var st=0,vt=0,gt=0;gt<it.length;++gt){var Bt=it[gt];st+=Bt.chunkSize(),vt+=Bt.height,Bt.parent=this}this.size=st,this.height=vt,this.parent=null}ga.prototype={chunkSize:function(){return this.size},removeInner:function(it,st){this.size-=st;for(var vt=0;vt<this.children.length;++vt){var gt=this.children[vt],Bt=gt.chunkSize();if(it<Bt){var te=Math.min(st,Bt-it),xe=gt.height;if(gt.removeInner(it,te),this.height-=xe-gt.height,Bt==te&&(this.children.splice(vt--,1),gt.parent=null),(st-=te)==0)break;it=0}else it-=Bt}if(this.size-st<25&&(this.children.length>1||!(this.children[0]instanceof vl))){var Ue=[];this.collapse(Ue),this.children=[new vl(Ue)],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,vt){this.size+=st.length,this.height+=vt;for(var gt=0;gt<this.children.length;++gt){var Bt=this.children[gt],te=Bt.chunkSize();if(it<=te){if(Bt.insertInner(it,st,vt),Bt.lines&&Bt.lines.length>50){for(var xe=Bt.lines.length%25+25,Ue=xe;Ue<Bt.lines.length;){var je=new vl(Bt.lines.slice(Ue,Ue+=25));Bt.height-=je.height,this.children.splice(++gt,0,je),je.parent=this}Bt.lines=Bt.lines.slice(0,xe),this.maybeSpill()}break}it-=te}},maybeSpill:function(){if(!(this.children.length<=10)){var it=this;do{var st=it.children.splice(it.children.length-5,5),vt=new ga(st);if(it.parent){it.size-=vt.size,it.height-=vt.height;var Bt=Se(it.parent.children,it);it.parent.children.splice(Bt+1,0,vt)}else{var gt=new ga(it.children);gt.parent=it,it.children=[gt,vt],it=gt}vt.parent=it.parent}while(it.children.length>10);it.parent.maybeSpill()}},iterN:function(it,st,vt){for(var gt=0;gt<this.children.length;++gt){var Bt=this.children[gt],te=Bt.chunkSize();if(it<te){var xe=Math.min(st,te-it);if(Bt.iterN(it,xe,vt))return!0;if((st-=xe)==0)break;it=0}else it-=te}}};var nu=function(it,st,vt){if(vt)for(var gt in vt)vt.hasOwnProperty(gt)&&(this[gt]=vt[gt]);this.doc=it,this.node=st};nu.prototype.clear=function(){var it=this.doc.cm,st=this.line.widgets,vt=this.line,gt=qe(vt);if(!(gt==null||!st)){for(var Bt=0;Bt<st.length;++Bt)st[Bt]==this&&st.splice(Bt--,1);st.length||(vt.widgets=null);var te=Ya(this);Oi(vt,Math.max(0,vt.height-te)),it&&(hn(it,function(){Hu(it,vt,-te),oa(it,gt,"widget")}),Rr(it,"lineWidgetCleared",it,this,gt))}},nu.prototype.changed=function(){var it=this,st=this.height,vt=this.doc.cm,gt=this.line;this.height=null;var Bt=Ya(this)-st;Bt&&(Zi(this.doc,gt)||Oi(gt,gt.height+Bt),vt&&hn(vt,function(){vt.curOp.forceUpdate=!0,Hu(vt,gt,Bt),Rr(vt,"lineWidgetChanged",vt,it,qe(gt))}))},mr(nu);function Hu(it,st,vt){xs(st)<(it.curOp&&it.curOp.scrollTop||it.doc.scrollTop)&&gn(it,vt)}function Ou(it,st,vt,gt){var Bt=new nu(it,vt,gt),te=it.cm;return te&&Bt.noHScroll&&(te.display.alignWidgets=!0),eu(it,st,"widget",function(xe){var Ue=xe.widgets||(xe.widgets=[]);if(Bt.insertAt==null?Ue.push(Bt):Ue.splice(Math.min(Ue.length-1,Math.max(0,Bt.insertAt)),0,Bt),Bt.line=xe,te&&!Zi(it,xe)){var je=xs(xe)<it.scrollTop;Oi(xe,xe.height+Ya(Bt)),je&&gn(te,Bt.height),te.curOp.forceUpdate=!0}return!0}),te&&Rr(te,"lineWidgetAdded",te,Bt,typeof st=="number"?st:qe(st)),Bt}var Wc=0,Un=function(it,st){this.lines=[],this.type=st,this.doc=it,this.id=++Wc};Un.prototype.clear=function(){if(!this.explicitlyCleared){var it=this.doc.cm,st=it&&!it.curOp;if(st&&Kn(it),Ji(this,"clear")){var vt=this.find();vt&&Rr(this,"clear",vt.from,vt.to)}for(var gt=null,Bt=null,te=0;te<this.lines.length;++te){var xe=this.lines[te],Ue=ha(xe.markedSpans,this);it&&!this.collapsed?oa(it,qe(xe),"text"):it&&(Ue.to!=null&&(Bt=qe(xe)),Ue.from!=null&&(gt=qe(xe))),xe.markedSpans=vs(xe.markedSpans,Ue),Ue.from==null&&this.collapsed&&!Zi(this.doc,xe)&&it&&Oi(xe,_u(it.display))}if(it&&this.collapsed&&!it.options.lineWrapping)for(var je=0;je<this.lines.length;++je){var an=Zo(this.lines[je]),$n=ca(an);$n>it.display.maxLineLength&&(it.display.maxLine=an,it.display.maxLineLength=$n,it.display.maxLineChanged=!0)}gt!=null&&it&&this.collapsed&&Bl(it,gt,Bt+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,it&&fu(it.doc)),it&&Rr(it,"markerCleared",it,this,gt,Bt),st&&Jn(it),this.parent&&this.parent.clear()}},Un.prototype.find=function(it,st){it==null&&this.type=="bookmark"&&(it=1);for(var vt,gt,Bt=0;Bt<this.lines.length;++Bt){var te=this.lines[Bt],xe=ha(te.markedSpans,this);if(xe.from!=null&&(vt=On(st?te:qe(te),xe.from),it==-1))return vt;if(xe.to!=null&&(gt=On(st?te:qe(te),xe.to),it==1))return gt}return vt&&{from:vt,to:gt}},Un.prototype.changed=function(){var it=this,st=this.find(-1,!0),vt=this,gt=this.doc.cm;!st||!gt||hn(gt,function(){var Bt=st.line,te=qe(st.line),xe=qh(gt,te);if(xe&&(Nu(xe),gt.curOp.selectionChanged=gt.curOp.forceUpdate=!0),gt.curOp.updateMaxLine=!0,!Zi(vt.doc,Bt)&&vt.height!=null){var Ue=vt.height;vt.height=null;var je=Ya(vt)-Ue;je&&Oi(Bt,Bt.height+je)}Rr(gt,"markerChanged",gt,it)})},Un.prototype.attachLine=function(it){if(!this.lines.length&&this.doc.cm){var st=this.doc.cm.curOp;(!st.maybeHiddenMarkers||Se(st.maybeHiddenMarkers,this)==-1)&&(st.maybeUnhiddenMarkers||(st.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(it)},Un.prototype.detachLine=function(it){if(this.lines.splice(Se(this.lines,it),1),!this.lines.length&&this.doc.cm){var st=this.doc.cm.curOp;(st.maybeHiddenMarkers||(st.maybeHiddenMarkers=[])).push(this)}},mr(Un);function nc(it,st,vt,gt,Bt){if(gt&>.shared)return EA(it,st,vt,gt,Bt);if(it.cm&&!it.cm.curOp)return Dn(it.cm,nc)(it,st,vt,gt,Bt);var te=new Un(it,Bt),xe=ui(st,vt);if(gt&&_e(gt,te,!1),xe>0||xe==0&&te.clearWhenEmpty!==!1)return te;if(te.replacedWith&&(te.collapsed=!0,te.widgetNode=be("span",[te.replacedWith],"CodeMirror-widget"),gt.handleMouseEvents||te.widgetNode.setAttribute("cm-ignore-events","true"),gt.insertLeft&&(te.widgetNode.insertLeft=!0)),te.collapsed){if(Es(it,st.line,st,vt,te)||st.line!=vt.line&&Es(it,vt.line,st,vt,te))throw new Error("Inserting collapsed marker partially overlapping an existing one");xi()}te.addToHistory&&Rs(it,{from:st,to:vt,origin:"markText"},it.sel,NaN);var Ue=st.line,je=it.cm,an;if(it.iter(Ue,vt.line+1,function(wn){je&&te.collapsed&&!je.options.lineWrapping&&Zo(wn)==je.display.maxLine&&(an=!0),te.collapsed&&Ue!=st.line&&Oi(wn,0),da(wn,new Yo(te,Ue==st.line?st.ch:null,Ue==vt.line?vt.ch:null)),++Ue}),te.collapsed&&it.iter(st.line,vt.line+1,function(wn){Zi(it,wn)&&Oi(wn,0)}),te.clearOnEnter&&An(te,"beforeCursorEnter",function(){return te.clear()}),te.readOnly&&(Bo(),(it.history.done.length||it.history.undone.length)&&it.clearHistory()),te.collapsed&&(te.id=++Wc,te.atomic=!0),je){if(an&&(je.curOp.updateMaxLine=!0),te.collapsed)Bl(je,st.line,vt.line+1);else if(te.className||te.startStyle||te.endStyle||te.css||te.attributes||te.title)for(var $n=st.line;$n<=vt.line;$n++)oa(je,$n,"text");te.atomic&&fu(je.doc),Rr(je,"markerAdded",je,te)}return te}var Dh=function(it,st){this.markers=it,this.primary=st;for(var vt=0;vt<it.length;++vt)it[vt].parent=this};Dh.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var it=0;it<this.markers.length;++it)this.markers[it].clear();Rr(this,"clear")}},Dh.prototype.find=function(it,st){return this.primary.find(it,st)},mr(Dh);function EA(it,st,vt,gt,Bt){gt=_e(gt),gt.shared=!1;var te=[nc(it,st,vt,gt,Bt)],xe=te[0],Ue=gt.widgetNode;return Il(it,function(je){Ue&&(gt.widgetNode=Ue.cloneNode(!0)),te.push(nc(je,nr(je,st),nr(je,vt),gt,Bt));for(var an=0;an<je.linked.length;++an)if(je.linked[an].isParent)return;xe=nn(te)}),new Dh(te,xe)}function Vc(it){return it.findMarks(On(it.first,0),it.clipPos(On(it.lastLine())),function(st){return st.parent})}function bc(it,st){for(var vt=0;vt<st.length;vt++){var gt=st[vt],Bt=gt.find(),te=it.clipPos(Bt.from),xe=it.clipPos(Bt.to);if(ui(te,xe)){var Ue=nc(it,te,xe,gt.primary,gt.primary.type);gt.markers.push(Ue),Ue.parent=gt}}}function rd(it){for(var st=function(gt){var Bt=it[gt],te=[Bt.primary.doc];Il(Bt.primary.doc,function(je){return te.push(je)});for(var xe=0;xe<Bt.markers.length;xe++){var Ue=Bt.markers[xe];Se(te,Ue.doc)==-1&&(Ue.parent=null,Bt.markers.splice(xe--,1))}},vt=0;vt<it.length;vt++)st(vt)}var HA=0,gu=function(it,st,vt,gt,Bt){if(!(this instanceof gu))return new gu(it,st,vt,gt,Bt);vt==null&&(vt=0),ga.call(this,[new vl([new Ho("",null)])]),this.first=vt,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=vt;var te=On(vt,0);this.sel=Po(te),this.history=new Lo(null),this.id=++HA,this.modeOption=st,this.lineSep=gt,this.direction=Bt=="rtl"?"rtl":"ltr",this.extend=!1,typeof it=="string"&&(it=this.splitLines(it)),Ds(this,{from:te,to:te,text:it}),Fa(this,Po(te),Xe)};gu.prototype=Ot(ga.prototype,{constructor:gu,iter:function(it,st,vt){vt?this.iterN(it-this.first,st-it,vt):this.iterN(this.first,this.first+this.size,it)},insert:function(it,st){for(var vt=0,gt=0;gt<st.length;++gt)vt+=st[gt].height;this.insertInner(it-this.first,st,vt)},remove:function(it,st){this.removeInner(it-this.first,st)},getValue:function(it){var st=wi(this,this.first,this.first+this.size);return it===!1?st:st.join(it||this.lineSeparator())},setValue:Te(function(it){var st=On(this.first,0),vt=this.first+this.size-1;xl(this,{from:st,to:On(vt,yn(this,vt).text.length),text:this.splitLines(it),origin:"setValue",full:!0},!0),this.cm&&In(this.cm,0,0),Fa(this,Po(st),Xe)}),replaceRange:function(it,st,vt,gt){st=nr(this,st),vt=vt?nr(this,vt):st,fc(this,it,st,vt,gt)},getRange:function(it,st,vt){var gt=Qn(this,nr(this,it),nr(this,st));return vt===!1?gt:gt.join(vt||this.lineSeparator())},getLine:function(it){var st=this.getLineHandle(it);return st&&st.text},getLineHandle:function(it){if(Pi(this,it))return yn(this,it)},getLineNumber:function(it){return qe(it)},getLineHandleVisualStart:function(it){return typeof it=="number"&&(it=yn(this,it)),Zo(it)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(it){return nr(this,it)},getCursor:function(it){var st=this.sel.primary(),vt;return it==null||it=="head"?vt=st.head:it=="anchor"?vt=st.anchor:it=="end"||it=="to"||it===!1?vt=st.to():vt=st.from(),vt},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Te(function(it,st,vt){Za(this,nr(this,typeof it=="number"?On(it,st||0):it),null,vt)}),setSelection:Te(function(it,st,vt){Za(this,nr(this,it),nr(this,st||it),vt)}),extendSelection:Te(function(it,st,vt){wa(this,nr(this,it),st&&nr(this,st),vt)}),extendSelections:Te(function(it,st){na(this,io(this,it),st)}),extendSelectionsBy:Te(function(it,st){var vt=Fi(this.sel.ranges,it);na(this,io(this,vt),st)}),setSelections:Te(function(it,st,vt){if(it.length){for(var gt=[],Bt=0;Bt<it.length;Bt++)gt[Bt]=new Qr(nr(this,it[Bt].anchor),nr(this,it[Bt].head));st==null&&(st=Math.min(it.length-1,this.sel.primIndex)),Fa(this,Xo(this.cm,gt,st),vt)}}),addSelection:Te(function(it,st,vt){var gt=this.sel.ranges.slice(0);gt.push(new Qr(nr(this,it),nr(this,st||it))),Fa(this,Xo(this.cm,gt,gt.length-1),vt)}),getSelection:function(it){for(var st=this.sel.ranges,vt,gt=0;gt<st.length;gt++){var Bt=Qn(this,st[gt].from(),st[gt].to());vt=vt?vt.concat(Bt):Bt}return it===!1?vt:vt.join(it||this.lineSeparator())},getSelections:function(it){for(var st=[],vt=this.sel.ranges,gt=0;gt<vt.length;gt++){var Bt=Qn(this,vt[gt].from(),vt[gt].to());it!==!1&&(Bt=Bt.join(it||this.lineSeparator())),st[gt]=Bt}return st},replaceSelection:function(it,st,vt){for(var gt=[],Bt=0;Bt<this.sel.ranges.length;Bt++)gt[Bt]=it;this.replaceSelections(gt,st,vt||"+input")},replaceSelections:Te(function(it,st,vt){for(var gt=[],Bt=this.sel,te=0;te<Bt.ranges.length;te++){var xe=Bt.ranges[te];gt[te]={from:xe.from(),to:xe.to(),text:this.splitLines(it[te]),origin:vt}}for(var Ue=st&&st!="end"&&Ps(this,gt,st),je=gt.length-1;je>=0;je--)xl(this,gt[je]);Ue?Hs(this,Ue):this.cm&&fn(this.cm)}),undo:Te(function(){gh(this,"undo")}),redo:Te(function(){gh(this,"redo")}),undoSelection:Te(function(){gh(this,"undo",!0)}),redoSelection:Te(function(){gh(this,"redo",!0)}),setExtending:function(it){this.extend=it},getExtending:function(){return this.extend},historySize:function(){for(var it=this.history,st=0,vt=0,gt=0;gt<it.done.length;gt++)it.done[gt].ranges||++st;for(var Bt=0;Bt<it.undone.length;Bt++)it.undone[Bt].ranges||++vt;return{undo:st,redo:vt}},clearHistory:function(){var it=this;this.history=new Lo(this.history.maxGeneration),Il(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:Oa(this.history.done),undone:Oa(this.history.undone)}},setHistory:function(it){var st=this.history=new Lo(this.history.maxGeneration);st.done=Oa(it.done.slice(0),null,!0),st.undone=Oa(it.undone.slice(0),null,!0)},setGutterMarker:Te(function(it,st,vt){return eu(this,it,"gutter",function(gt){var Bt=gt.gutterMarkers||(gt.gutterMarkers={});return Bt[st]=vt,!vt&&At(Bt)&&(gt.gutterMarkers=null),!0})}),clearGutter:Te(function(it){var st=this;this.iter(function(vt){vt.gutterMarkers&&vt.gutterMarkers[it]&&eu(st,vt,"gutter",function(){return vt.gutterMarkers[it]=null,At(vt.gutterMarkers)&&(vt.gutterMarkers=null),!0})})}),lineInfo:function(it){var st;if(typeof it=="number"){if(!Pi(this,it)||(st=it,it=yn(this,it),!it))return null}else if(st=qe(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:Te(function(it,st,vt){return eu(this,it,st=="gutter"?"gutter":"class",function(gt){var Bt=st=="text"?"textClass":st=="background"?"bgClass":st=="gutter"?"gutterClass":"wrapClass";if(!gt[Bt])gt[Bt]=vt;else{if(_t(vt).test(gt[Bt]))return!1;gt[Bt]+=" "+vt}return!0})}),removeLineClass:Te(function(it,st,vt){return eu(this,it,st=="gutter"?"gutter":"class",function(gt){var Bt=st=="text"?"textClass":st=="background"?"bgClass":st=="gutter"?"gutterClass":"wrapClass",te=gt[Bt];if(te)if(vt==null)gt[Bt]=null;else{var xe=te.match(_t(vt));if(!xe)return!1;var Ue=xe.index+xe[0].length;gt[Bt]=te.slice(0,xe.index)+(!xe.index||Ue==te.length?"":" ")+te.slice(Ue)||null}else return!1;return!0})}),addLineWidget:Te(function(it,st,vt){return Ou(this,it,st,vt)}),removeLineWidget:function(it){it.clear()},markText:function(it,st,vt){return nc(this,nr(this,it),nr(this,st),vt,vt&&vt.type||"range")},setBookmark:function(it,st){var vt={replacedWith:st&&(st.nodeType==null?st.widget:st),insertLeft:st&&st.insertLeft,clearWhenEmpty:!1,shared:st&&st.shared,handleMouseEvents:st&&st.handleMouseEvents};return it=nr(this,it),nc(this,it,it,vt,"bookmark")},findMarksAt:function(it){it=nr(this,it);var st=[],vt=yn(this,it.line).markedSpans;if(vt)for(var gt=0;gt<vt.length;++gt){var Bt=vt[gt];(Bt.from==null||Bt.from<=it.ch)&&(Bt.to==null||Bt.to>=it.ch)&&st.push(Bt.marker.parent||Bt.marker)}return st},findMarks:function(it,st,vt){it=nr(this,it),st=nr(this,st);var gt=[],Bt=it.line;return this.iter(it.line,st.line+1,function(te){var xe=te.markedSpans;if(xe)for(var Ue=0;Ue<xe.length;Ue++){var je=xe[Ue];!(je.to!=null&&Bt==it.line&&it.ch>=je.to||je.from==null&&Bt!=it.line||je.from!=null&&Bt==st.line&&je.from>=st.ch)&&(!vt||vt(je.marker))&>.push(je.marker.parent||je.marker)}++Bt}),gt},getAllMarks:function(){var it=[];return this.iter(function(st){var vt=st.markedSpans;if(vt)for(var gt=0;gt<vt.length;++gt)vt[gt].from!=null&&it.push(vt[gt].marker)}),it},posFromIndex:function(it){var st,vt=this.first,gt=this.lineSeparator().length;return this.iter(function(Bt){var te=Bt.text.length+gt;if(te>it)return st=it,!0;it-=te,++vt}),nr(this,On(vt,st))},indexFromPos:function(it){it=nr(this,it);var st=it.ch;if(it.line<this.first||it.ch<0)return 0;var vt=this.lineSeparator().length;return this.iter(this.first,it.line,function(gt){st+=gt.text.length+vt}),st},copy:function(it){var st=new gu(wi(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,vt=this.first+this.size;it.from!=null&&it.from>st&&(st=it.from),it.to!=null&&it.to<vt&&(vt=it.to);var gt=new gu(wi(this,st,vt),it.mode||this.modeOption,st,this.lineSep,this.direction);return it.sharedHist&&(gt.history=this.history),(this.linked||(this.linked=[])).push({doc:gt,sharedHist:it.sharedHist}),gt.linked=[{doc:this,isParent:!0,sharedHist:it.sharedHist}],bc(gt,Vc(this)),gt},unlinkDoc:function(it){if(it instanceof js&&(it=it.doc),this.linked)for(var st=0;st<this.linked.length;++st){var vt=this.linked[st];if(vt.doc==it){this.linked.splice(st,1),it.unlinkDoc(this),rd(Vc(this));break}}if(it.history==this.history){var gt=[it.id];Il(it,function(Bt){return gt.push(Bt.id)},!0),it.history=new Lo(null),it.history.done=Oa(this.history.done,gt),it.history.undone=Oa(this.history.undone,gt)}},iterLinkedDocs:function(it){Il(this,it)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(it){return this.lineSep?it.split(this.lineSep):jo(it)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:Te(function(it){it!="rtl"&&(it="ltr"),it!=this.direction&&(this.direction=it,this.iter(function(st){return st.order=null}),this.cm&&cs(this.cm))})}),gu.prototype.eachLine=gu.prototype.iter;var wd=0;function Rd(it){var st=this;if(_d(st),!(ji(st,it)||ou(st.display,it))){Mr(it),ee&&(wd=+new Date);var vt=Ju(st,it,!0),gt=it.dataTransfer.files;if(!(!vt||st.isReadOnly()))if(gt&>.length&&window.FileReader&&window.File)for(var Bt=gt.length,te=Array(Bt),xe=0,Ue=function(){++xe==Bt&&Dn(st,function(){vt=nr(st.doc,vt);var bi={from:vt,to:vt,text:st.doc.splitLines(te.filter(function(br){return br!=null}).join(st.doc.lineSeparator())),origin:"paste"};xl(st.doc,bi),Hs(st.doc,Po(nr(st.doc,vt),nr(st.doc,hs(bi))))})()},je=function(bi,br){if(st.options.allowDropFileTypes&&Se(st.options.allowDropFileTypes,bi.type)==-1){Ue();return}var Tr=new FileReader;Tr.onerror=function(){return Ue()},Tr.onload=function(){var $r=Tr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test($r)){Ue();return}te[br]=$r,Ue()},Tr.readAsText(bi)},an=0;an<gt.length;an++)je(gt[an],an);else{if(st.state.draggingText&&st.doc.sel.contains(vt)>-1){st.state.draggingText(it),setTimeout(function(){return st.display.input.focus()},20);return}try{var $n=it.dataTransfer.getData("Text");if($n){var wn;if(st.state.draggingText&&!st.state.draggingText.copy&&(wn=st.listSelections()),El(st.doc,Po(vt,vt)),wn)for(var Mi=0;Mi<wn.length;++Mi)fc(st.doc,"",wn[Mi].anchor,wn[Mi].head,"drag");st.replaceSelection($n,"around","paste"),st.display.input.focus()}}catch(bi){}}}}function od(it,st){if(ee&&(!it.state.draggingText||+new Date-wd<100)){Zr(st);return}if(!(ji(it,st)||ou(it.display,st))&&(st.dataTransfer.setData("Text",it.getSelection()),st.dataTransfer.effectAllowed="copyMove",st.dataTransfer.setDragImage&&!re)){var vt=de("img",null,null,"position: fixed; left: 0; top: 0;");vt.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Pt&&(vt.width=vt.height=1,it.display.wrapper.appendChild(vt),vt._top=vt.offsetTop),st.dataTransfer.setDragImage(vt,0,0),Pt&&vt.parentNode.removeChild(vt)}}function Ec(it,st){var vt=Ju(it,st);if(vt){var gt=document.createDocumentFragment();Ma(it,vt,gt),it.display.dragCursor||(it.display.dragCursor=de("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),it.display.lineSpace.insertBefore(it.display.dragCursor,it.display.cursorDiv)),ue(it.display.dragCursor,gt)}}function _d(it){it.display.dragCursor&&(it.display.lineSpace.removeChild(it.display.dragCursor),it.display.dragCursor=null)}function xd(it){if(document.getElementsByClassName){for(var st=document.getElementsByClassName("CodeMirror"),vt=[],gt=0;gt<st.length;gt++){var Bt=st[gt].CodeMirror;Bt&&vt.push(Bt)}vt.length&&vt[0].operation(function(){for(var te=0;te<vt.length;te++)it(vt[te])})}}var ah=!1;function kl(){ah||(Sd(),ah=!0)}function Sd(){var it;An(window,"resize",function(){it==null&&(it=setTimeout(function(){it=null,xd(lA)},100))}),An(window,"blur",function(){return xd(Ft)})}function lA(it){var st=it.display;st.cachedCharWidth=st.cachedTextHeight=st.cachedPaddingH=null,st.scrollbarsClipped=!1,it.setSize()}for(var Xs={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"},Zc=0;Zc<10;Zc++)Xs[Zc+48]=Xs[Zc+96]=String(Zc);for(var Cd=65;Cd<=90;Cd++)Xs[Cd]=String.fromCharCode(Cd);for(var ph=1;ph<=12;ph++)Xs[ph+111]=Xs[ph+63235]="F"+ph;var th={};th.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"},th.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"},th.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"},th.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"]},th.default=lt?th.macDefault:th.pcDefault;function Hd(it){var st=it.split(/-(?!$)/);it=st[st.length-1];for(var vt,gt,Bt,te,xe=0;xe<st.length-1;xe++){var Ue=st[xe];if(/^(cmd|meta|m)$/i.test(Ue))te=!0;else if(/^a(lt)?$/i.test(Ue))vt=!0;else if(/^(c|ctrl|control)$/i.test(Ue))gt=!0;else if(/^s(hift)?$/i.test(Ue))Bt=!0;else throw new Error("Unrecognized modifier name: "+Ue)}return vt&&(it="Alt-"+it),gt&&(it="Ctrl-"+it),te&&(it="Cmd-"+it),Bt&&(it="Shift-"+it),it}function sd(it){var st={};for(var vt in it)if(it.hasOwnProperty(vt)){var gt=it[vt];if(/^(name|fallthrough|(de|at)tach)$/.test(vt))continue;if(gt=="..."){delete it[vt];continue}for(var Bt=Fi(vt.split(" "),Hd),te=0;te<Bt.length;te++){var xe=void 0,Ue=void 0;te==Bt.length-1?(Ue=Bt.join(" "),xe=gt):(Ue=Bt.slice(0,te+1).join(" "),xe="...");var je=st[Ue];if(!je)st[Ue]=xe;else if(je!=xe)throw new Error("Inconsistent bindings for "+Ue)}delete it[vt]}for(var an in st)it[an]=st[an];return it}function eh(it,st,vt,gt){st=$l(st);var Bt=st.call?st.call(it,gt):st[it];if(Bt===!1)return"nothing";if(Bt==="...")return"multi";if(Bt!=null&&vt(Bt))return"handled";if(st.fallthrough){if(Object.prototype.toString.call(st.fallthrough)!="[object Array]")return eh(it,st.fallthrough,vt,gt);for(var te=0;te<st.fallthrough.length;te++){var xe=eh(it,st.fallthrough[te],vt,gt);if(xe)return xe}}}function Bd(it){var st=typeof it=="string"?it:Xs[it.keyCode];return st=="Ctrl"||st=="Alt"||st=="Shift"||st=="Mod"}function Pd(it,st,vt){var gt=it;return st.altKey&>!="Alt"&&(it="Alt-"+it),(St?st.metaKey:st.ctrlKey)&>!="Ctrl"&&(it="Ctrl-"+it),(St?st.ctrlKey:st.metaKey)&>!="Mod"&&(it="Cmd-"+it),!vt&&st.shiftKey&>!="Shift"&&(it="Shift-"+it),it}function Qd(it,st){if(Pt&&it.keyCode==34&&it.char)return!1;var vt=Xs[it.keyCode];return vt==null||it.altGraphKey?!1:(it.keyCode==3&&it.code&&(vt=it.code),Pd(vt,it,st))}function $l(it){return typeof it=="string"?th[it]:it}function iu(it,st){for(var vt=it.doc.sel.ranges,gt=[],Bt=0;Bt<vt.length;Bt++){for(var te=st(vt[Bt]);gt.length&&ui(te.from,nn(gt).to)<=0;){var xe=gt.pop();if(ui(xe.from,te.from)<0){te.from=xe.from;break}}gt.push(te)}hn(it,function(){for(var Ue=gt.length-1;Ue>=0;Ue--)fc(it.doc,"",gt[Ue].from,gt[Ue].to,"+delete");fn(it)})}function Fc(it,st,vt){var gt=ae(it.text,st+vt,vt);return gt<0||gt>it.text.length?null:gt}function su(it,st,vt){var gt=Fc(it,st.ch,vt);return gt==null?null:new On(st.line,gt,vt<0?"after":"before")}function xa(it,st,vt,gt,Bt){if(it){st.doc.direction=="rtl"&&(Bt=-Bt);var te=Vn(vt,st.doc.direction);if(te){var xe=Bt<0?nn(te):te[0],Ue=Bt<0==(xe.level==1),je=Ue?"after":"before",an;if(xe.level>0||st.doc.direction=="rtl"){var $n=il(st,vt);an=Bt<0?vt.text.length-1:0;var wn=ch(st,$n,an).top;an=me(function(Mi){return ch(st,$n,Mi).top==wn},Bt<0==(xe.level==1)?xe.from:xe.to-1,an),je=="before"&&(an=Fc(vt,an,1))}else an=Bt<0?xe.to:xe.from;return new On(gt,an,je)}}return new On(gt,Bt<0?vt.text.length:0,Bt<0?"before":"after")}function sl(it,st,vt,gt){var Bt=Vn(st,it.doc.direction);if(!Bt)return su(st,vt,gt);vt.ch>=st.text.length?(vt.ch=st.text.length,vt.sticky="before"):vt.ch<=0&&(vt.ch=0,vt.sticky="after");var te=ke(Bt,vt.ch,vt.sticky),xe=Bt[te];if(it.doc.direction=="ltr"&&xe.level%2==0&&(gt>0?xe.to>vt.ch:xe.from<vt.ch))return su(st,vt,gt);var Ue=function(mo,Jo){return Fc(st,mo instanceof On?mo.ch:mo,Jo)},je,an=function(mo){return it.options.lineWrapping?(je=je||il(it,st),sA(it,st,je,mo)):{begin:0,end:st.text.length}},$n=an(vt.sticky=="before"?Ue(vt,-1):vt.ch);if(it.doc.direction=="rtl"||xe.level==1){var wn=xe.level==1==gt<0,Mi=Ue(vt,wn?1:-1);if(Mi!=null&&(wn?Mi<=xe.to&&Mi<=$n.end:Mi>=xe.from&&Mi>=$n.begin)){var bi=wn?"before":"after";return new On(vt.line,Mi,bi)}}var br=function(mo,Jo,Mo){for(var rs=function(Ol,zl){return zl?new On(vt.line,Ue(Ol,1),"before"):new On(vt.line,Ol,"after")};mo>=0&&mo<Bt.length;mo+=Jo){var Ts=Bt[mo],No=Jo>0==(Ts.level!=1),Js=No?Mo.begin:Ue(Mo.end,-1);if(Ts.from<=Js&&Js<Ts.to||(Js=No?Ts.from:Ue(Ts.to,-1),Mo.begin<=Js&&Js<Mo.end))return rs(Js,No)}},Tr=br(te+gt,gt,$n);if(Tr)return Tr;var $r=gt>0?$n.end:Ue($n.begin,-1);return $r!=null&&!(gt>0&&$r==st.text.length)&&(Tr=br(gt>0?0:Bt.length-1,gt,an($r)),Tr)?Tr:null}var Su={selectAll:Qa,singleSelection:function(it){return it.setSelection(it.getCursor("anchor"),it.getCursor("head"),Xe)},killLine:function(it){return iu(it,function(st){if(st.empty()){var vt=yn(it.doc,st.head.line).text.length;return st.head.ch==vt&&st.head.line<it.lastLine()?{from:st.head,to:On(st.head.line+1,0)}:{from:st.head,to:On(st.head.line,vt)}}else return{from:st.from(),to:st.to()}})},deleteLine:function(it){return iu(it,function(st){return{from:On(st.from().line,0),to:nr(it.doc,On(st.to().line+1,0))}})},delLineLeft:function(it){return iu(it,function(st){return{from:On(st.from().line,0),to:st.from()}})},delWrappedLineLeft:function(it){return iu(it,function(st){var vt=it.charCoords(st.head,"div").top+5,gt=it.coordsChar({left:0,top:vt},"div");return{from:gt,to:st.from()}})},delWrappedLineRight:function(it){return iu(it,function(st){var vt=it.charCoords(st.head,"div").top+5,gt=it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:vt},"div");return{from:st.from(),to:gt}})},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(On(it.firstLine(),0))},goDocEnd:function(it){return it.extendSelection(On(it.lastLine()))},goLineStart:function(it){return it.extendSelectionsBy(function(st){return mh(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 vh(it,st.head.line)},{origin:"+move",bias:-1})},goLineRight:function(it){return it.extendSelectionsBy(function(st){var vt=it.cursorCoords(st.head,"div").top+5;return it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:vt},"div")},Zn)},goLineLeft:function(it){return it.extendSelectionsBy(function(st){var vt=it.cursorCoords(st.head,"div").top+5;return it.coordsChar({left:0,top:vt},"div")},Zn)},goLineLeftSmart:function(it){return it.extendSelectionsBy(function(st){var vt=it.cursorCoords(st.head,"div").top+5,gt=it.coordsChar({left:0,top:vt},"div");return gt.ch<it.getLine(gt.line).search(/\S/)?zd(it,st.head):gt},Zn)},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=[],vt=it.listSelections(),gt=it.options.tabSize,Bt=0;Bt<vt.length;Bt++){var te=vt[Bt].from(),xe=ve(it.getLine(te.line),te.ch,gt);st.push(Si(gt-xe%gt))}it.replaceSelections(st)},defaultTab:function(it){it.somethingSelected()?it.indentSelection("add"):it.execCommand("insertTab")},transposeChars:function(it){return hn(it,function(){for(var st=it.listSelections(),vt=[],gt=0;gt<st.length;gt++)if(st[gt].empty()){var Bt=st[gt].head,te=yn(it.doc,Bt.line).text;if(te){if(Bt.ch==te.length&&(Bt=new On(Bt.line,Bt.ch-1)),Bt.ch>0)Bt=new On(Bt.line,Bt.ch+1),it.replaceRange(te.charAt(Bt.ch-1)+te.charAt(Bt.ch-2),On(Bt.line,Bt.ch-2),Bt,"+transpose");else if(Bt.line>it.doc.first){var xe=yn(it.doc,Bt.line-1).text;xe&&(Bt=new On(Bt.line,1),it.replaceRange(te.charAt(0)+it.doc.lineSeparator()+xe.charAt(xe.length-1),On(Bt.line-1,xe.length-1),Bt,"+transpose"))}}vt.push(new Qr(Bt,Bt))}it.setSelections(vt)})},newlineAndIndent:function(it){return hn(it,function(){for(var st=it.listSelections(),vt=st.length-1;vt>=0;vt--)it.replaceRange(it.doc.lineSeparator(),st[vt].anchor,st[vt].head,"+input");st=it.listSelections();for(var gt=0;gt<st.length;gt++)it.indentLine(st[gt].from().line,null,!0);fn(it)})},openLine:function(it){return it.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(it){return it.toggleOverwrite()}};function mh(it,st){var vt=yn(it.doc,st),gt=Zo(vt);return gt!=vt&&(st=qe(gt)),xa(!0,it,gt,st,1)}function vh(it,st){var vt=yn(it.doc,st),gt=Vs(vt);return gt!=vt&&(st=qe(gt)),xa(!0,it,vt,st,-1)}function zd(it,st){var vt=mh(it,st.line),gt=yn(it.doc,vt.line),Bt=Vn(gt,it.doc.direction);if(!Bt||Bt[0].level==0){var te=Math.max(vt.ch,gt.text.search(/\S/)),xe=st.line==vt.line&&st.ch<=te&&st.ch;return On(vt.line,xe?0:te,vt.sticky)}return vt}function Lc(it,st,vt){if(typeof st=="string"&&(st=Su[st],!st))return!1;it.display.input.ensurePolled();var gt=it.display.shift,Bt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),vt&&(it.display.shift=!1),Bt=st(it)!=Mn}finally{it.display.shift=gt,it.state.suppressEdits=!1}return Bt}function jh(it,st,vt){for(var gt=0;gt<it.state.keyMaps.length;gt++){var Bt=eh(st,it.state.keyMaps[gt],vt,it);if(Bt)return Bt}return it.options.extraKeys&&eh(st,it.options.extraKeys,vt,it)||eh(st,it.options.keyMap,vt,it)}var Zu=new ne;function Mc(it,st,vt,gt){var Bt=it.state.keySeq;if(Bt){if(Bd(st))return"handled";if(/\'$/.test(st)?it.state.keySeq=null:Zu.set(50,function(){it.state.keySeq==Bt&&(it.state.keySeq=null,it.display.input.reset())}),Xc(it,Bt+" "+st,vt,gt))return!0}return Xc(it,st,vt,gt)}function Xc(it,st,vt,gt){var Bt=jh(it,st,gt);return Bt=="multi"&&(it.state.keySeq=st),Bt=="handled"&&Rr(it,"keyHandled",it,st,vt),(Bt=="handled"||Bt=="multi")&&(Mr(vt),pl(it)),!!Bt}function ic(it,st){var vt=Qd(st,!0);return vt?st.shiftKey&&!it.state.keySeq?Mc(it,"Shift-"+vt,st,function(gt){return Lc(it,gt,!0)})||Mc(it,vt,st,function(gt){if(typeof gt=="string"?/^go[A-Z]/.test(gt):gt.motion)return Lc(it,gt)}):Mc(it,vt,st,function(gt){return Lc(it,gt)}):!1}function Kd(it,st,vt){return Mc(it,"'"+vt+"'",st,function(gt){return Lc(it,gt,!0)})}var gc=null;function FA(it){var st=this;if(!(it.target&&it.target!=st.display.input.getField())&&(st.curOp.focus=Wt(),!ji(st,it))){ee&&Zt<11&&it.keyCode==27&&(it.returnValue=!1);var vt=it.keyCode;st.display.shift=vt==16||it.shiftKey;var gt=ic(st,it);Pt&&(gc=gt?vt:null,!gt&&vt==88&&!ri&&(lt?it.metaKey:it.ctrlKey)&&st.replaceSelection("",null,"cut")),Mt&&!lt&&!gt&&vt==46&&it.shiftKey&&!it.ctrlKey&&document.execCommand&&document.execCommand("cut"),vt==18&&!/\bCodeMirror-crosshair\b/.test(st.display.lineDiv.className)&&uA(st)}}function uA(it){var st=it.display.lineDiv;Ge(st,"CodeMirror-crosshair");function vt(gt){(gt.keyCode==18||!gt.altKey)&&(Gt(st,"CodeMirror-crosshair"),ii(document,"keyup",vt),ii(document,"mouseover",vt))}An(document,"keyup",vt),An(document,"mouseover",vt)}function lf(it){it.keyCode==16&&(this.doc.sel.shift=!1),ji(this,it)}function rc(it){var st=this;if(!(it.target&&it.target!=st.display.input.getField())&&!(ou(st.display,it)||ji(st,it)||it.ctrlKey&&!it.altKey||lt&&it.metaKey)){var vt=it.keyCode,gt=it.charCode;if(Pt&&vt==gc){gc=null,Mr(it);return}if(!(Pt&&(!it.which||it.which<10)&&ic(st,it))){var Bt=String.fromCharCode(gt==null?vt:gt);Bt!="\b"&&(Kd(st,it,Bt)||st.display.input.onKeyPress(it))}}}var QA=400,Gd=function(it,st,vt){this.time=it,this.pos=st,this.button=vt};Gd.prototype.compare=function(it,st,vt){return this.time+QA>it&&ui(st,this.pos)==0&&vt==this.button};var pc,ad;function hA(it,st){var vt=+new Date;return ad&&ad.compare(vt,it,st)?(pc=ad=null,"triple"):pc&&pc.compare(vt,it,st)?(ad=new Gd(vt,it,st),pc=null,"double"):(pc=new Gd(vt,it,st),ad=null,"single")}function Uh(it){var st=this,vt=st.display;if(!(ji(st,it)||vt.activeTouch&&vt.input.supportsTouch())){if(vt.input.ensurePolled(),vt.shift=it.shiftKey,ou(vt,it)){Nt||(vt.scroller.draggable=!1,setTimeout(function(){return vt.scroller.draggable=!0},100));return}if(!vi(st,it)){var gt=Ju(st,it),Bt=Gr(it),te=gt?hA(gt,Bt):"single";window.focus(),Bt==1&&st.state.selectingText&&st.state.selectingText(it),!(gt&&zA(st,Bt,gt,te,it))&&(Bt==1?gt?Wd(st,gt,te,it):kr(it)==vt.scroller&&Mr(it):Bt==2?(gt&&wa(st.doc,gt),setTimeout(function(){return vt.input.focus()},20)):Bt==3&&(It?st.display.input.onContextMenu(it):Et(st)))}}}function zA(it,st,vt,gt,Bt){var te="Click";return gt=="double"?te="Double"+te:gt=="triple"&&(te="Triple"+te),te=(st==1?"Left":st==2?"Middle":"Right")+te,Mc(it,Pd(te,Bt),Bt,function(xe){if(typeof xe=="string"&&(xe=Su[xe]),!xe)return!1;var Ue=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),Ue=xe(it,vt)!=Mn}finally{it.state.suppressEdits=!1}return Ue})}function bd(it,st,vt){var gt=it.getOption("configureMouse"),Bt=gt?gt(it,st,vt):{};if(Bt.unit==null){var te=rt?vt.shiftKey&&vt.metaKey:vt.altKey;Bt.unit=te?"rectangle":st=="single"?"char":st=="double"?"word":"line"}return(Bt.extend==null||it.doc.extend)&&(Bt.extend=it.doc.extend||vt.shiftKey),Bt.addNew==null&&(Bt.addNew=lt?vt.metaKey:vt.ctrlKey),Bt.moveOnDrag==null&&(Bt.moveOnDrag=!(lt?vt.altKey:vt.ctrlKey)),Bt}function Wd(it,st,vt,gt){ee?setTimeout(We(Hl,it),0):it.curOp.focus=Wt();var Bt=bd(it,vt,gt),te=it.doc.sel,xe;it.options.dragDrop&&lo&&!it.isReadOnly()&&vt=="single"&&(xe=te.contains(st))>-1&&(ui((xe=te.ranges[xe]).from(),st)<0||st.xRel>0)&&(ui(xe.to(),st)>0||st.xRel<0)?LA(it,gt,st,Bt):KA(it,gt,st,Bt)}function LA(it,st,vt,gt){var Bt=it.display,te=!1,xe=Dn(it,function(an){Nt&&(Bt.scroller.draggable=!1),it.state.draggingText=!1,ii(Bt.wrapper.ownerDocument,"mouseup",xe),ii(Bt.wrapper.ownerDocument,"mousemove",Ue),ii(Bt.scroller,"dragstart",je),ii(Bt.scroller,"drop",xe),te||(Mr(an),gt.addNew||wa(it.doc,vt,null,null,gt.extend),Nt&&!re||ee&&Zt==9?setTimeout(function(){Bt.wrapper.ownerDocument.body.focus({preventScroll:!0}),Bt.input.focus()},20):Bt.input.focus())}),Ue=function(an){te=te||Math.abs(st.clientX-an.clientX)+Math.abs(st.clientY-an.clientY)>=10},je=function(){return te=!0};Nt&&(Bt.scroller.draggable=!0),it.state.draggingText=xe,xe.copy=!gt.moveOnDrag,Bt.scroller.dragDrop&&Bt.scroller.dragDrop(),An(Bt.wrapper.ownerDocument,"mouseup",xe),An(Bt.wrapper.ownerDocument,"mousemove",Ue),An(Bt.scroller,"dragstart",je),An(Bt.scroller,"drop",xe),Et(it),setTimeout(function(){return Bt.input.focus()},20)}function Nc(it,st,vt){if(vt=="char")return new Qr(st,st);if(vt=="word")return it.findWordAt(st);if(vt=="line")return new Qr(On(st.line,0),nr(it.doc,On(st.line+1,0)));var gt=vt(it,st);return new Qr(gt.from,gt.to)}function KA(it,st,vt,gt){var Bt=it.display,te=it.doc;Mr(st);var xe,Ue,je=te.sel,an=je.ranges;if(gt.addNew&&!gt.extend?(Ue=te.sel.contains(vt),Ue>-1?xe=an[Ue]:xe=new Qr(vt,vt)):(xe=te.sel.primary(),Ue=te.sel.primIndex),gt.unit=="rectangle")gt.addNew||(xe=new Qr(vt,vt)),vt=Ju(it,st,!0,!0),Ue=-1;else{var $n=Nc(it,vt,gt.unit);gt.extend?xe=Iu(xe,$n.anchor,$n.head,gt.extend):xe=$n}gt.addNew?Ue==-1?(Ue=an.length,Fa(te,Xo(it,an.concat([xe]),Ue),{scroll:!1,origin:"*mouse"})):an.length>1&&an[Ue].empty()&>.unit=="char"&&!gt.extend?(Fa(te,Xo(it,an.slice(0,Ue).concat(an.slice(Ue+1)),0),{scroll:!1,origin:"*mouse"}),je=te.sel):Ea(te,Ue,xe,Nn):(Ue=0,Fa(te,new So([xe],0),Nn),je=te.sel);var wn=vt;function Mi(Mo){if(ui(wn,Mo)!=0)if(wn=Mo,gt.unit=="rectangle"){for(var rs=[],Ts=it.options.tabSize,No=ve(yn(te,vt.line).text,vt.ch,Ts),Js=ve(yn(te,Mo.line).text,Mo.ch,Ts),Ol=Math.min(No,Js),zl=Math.max(No,Js),Al=Math.min(vt.line,Mo.line),Xa=Math.min(it.lastLine(),Math.max(vt.line,Mo.line));Al<=Xa;Al++){var Ia=yn(te,Al).text,za=fi(Ia,Ol,Ts);Ol==zl?rs.push(new Qr(On(Al,za),On(Al,za))):Ia.length>za&&rs.push(new Qr(On(Al,za),On(Al,fi(Ia,zl,Ts))))}rs.length||rs.push(new Qr(vt,vt)),Fa(te,Xo(it,je.ranges.slice(0,Ue).concat(rs),Ue),{origin:"*mouse",scroll:!1}),it.scrollIntoView(Mo)}else{var Pl=xe,mu=Nc(it,Mo,gt.unit),Oo=Pl.anchor,Ca;ui(mu.anchor,Oo)>0?(Ca=mu.head,Oo=ar(Pl.from(),mu.anchor)):(Ca=mu.anchor,Oo=zr(Pl.to(),mu.head));var Kl=je.ranges.slice(0);Kl[Ue]=Ae(it,new Qr(nr(te,Oo),Ca)),Fa(te,Xo(it,Kl,Ue),Nn)}}var bi=Bt.wrapper.getBoundingClientRect(),br=0;function Tr(Mo){var rs=++br,Ts=Ju(it,Mo,!0,gt.unit=="rectangle");if(Ts)if(ui(Ts,wn)!=0){it.curOp.focus=Wt(),Mi(Ts);var No=Vt(Bt,te);(Ts.line>=No.to||Ts.line<No.from)&&setTimeout(Dn(it,function(){br==rs&&Tr(Mo)}),150)}else{var Js=Mo.clientY<bi.top?-20:Mo.clientY>bi.bottom?20:0;Js&&setTimeout(Dn(it,function(){br==rs&&(Bt.scroller.scrollTop+=Js,Tr(Mo))}),50)}}function $r(Mo){it.state.selectingText=!1,br=1/0,Mo&&(Mr(Mo),Bt.input.focus()),ii(Bt.wrapper.ownerDocument,"mousemove",mo),ii(Bt.wrapper.ownerDocument,"mouseup",Jo),te.history.lastSelOrigin=null}var mo=Dn(it,function(Mo){Mo.buttons===0||!Gr(Mo)?$r(Mo):Tr(Mo)}),Jo=Dn(it,$r);it.state.selectingText=Jo,An(Bt.wrapper.ownerDocument,"mousemove",mo),An(Bt.wrapper.ownerDocument,"mouseup",Jo)}function Ae(it,st){var vt=st.anchor,gt=st.head,Bt=yn(it.doc,vt.line);if(ui(vt,gt)==0&&vt.sticky==gt.sticky)return st;var te=Vn(Bt);if(!te)return st;var xe=ke(te,vt.ch,vt.sticky),Ue=te[xe];if(Ue.from!=vt.ch&&Ue.to!=vt.ch)return st;var je=xe+(Ue.from==vt.ch==(Ue.level!=1)?0:1);if(je==0||je==te.length)return st;var an;if(gt.line!=vt.line)an=(gt.line-vt.line)*(it.doc.direction=="ltr"?1:-1)>0;else{var $n=ke(te,gt.ch,gt.sticky),wn=$n-xe||(gt.ch-vt.ch)*(Ue.level==1?-1:1);$n==je-1||$n==je?an=wn<0:an=wn>0}var Mi=te[je+(an?-1:0)],bi=an==(Mi.level==1),br=bi?Mi.from:Mi.to,Tr=bi?"after":"before";return vt.ch==br&&vt.sticky==Tr?st:new Qr(new On(vt.line,br,Tr),gt)}function vn(it,st,vt,gt){var Bt,te;if(st.touches)Bt=st.touches[0].clientX,te=st.touches[0].clientY;else try{Bt=st.clientX,te=st.clientY}catch(Mi){return!1}if(Bt>=Math.floor(it.display.gutters.getBoundingClientRect().right))return!1;gt&&Mr(st);var xe=it.display,Ue=xe.lineDiv.getBoundingClientRect();if(te>Ue.bottom||!Ji(it,vt))return Yr(st);te-=Ue.top-xe.viewOffset;for(var je=0;je<it.display.gutterSpecs.length;++je){var an=xe.gutters.childNodes[je];if(an&&an.getBoundingClientRect().right>=Bt){var $n=oi(it.doc,te),wn=it.display.gutterSpecs[je];return _n(it,vt,it,$n,wn.className,st),Yr(st)}}}function vi(it,st){return vn(it,st,"gutterClick",!0)}function _i(it,st){ou(it.display,st)||lr(it,st)||ji(it,st,"contextmenu")||It||it.display.input.onContextMenu(st)}function lr(it,st){return Ji(it,"gutterContextMenu")?vn(it,st,"gutterContextMenu",!1):!1}function Hr(it){it.display.wrapper.className=it.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+it.options.theme.replace(/(^|\s)\s*/g," cm-s-"),rl(it)}var fo={toString:function(){return"CodeMirror.Init"}},fs={},Ws={};function Da(it){var st=it.optionHandlers;function vt(gt,Bt,te,xe){it.defaults[gt]=Bt,te&&(st[gt]=xe?function(Ue,je,an){an!=fo&&te(Ue,je,an)}:te)}it.defineOption=vt,it.Init=fo,vt("value","",function(gt,Bt){return gt.setValue(Bt)},!0),vt("mode",null,function(gt,Bt){gt.doc.modeOption=Bt,Eo(gt)},!0),vt("indentUnit",2,Eo,!0),vt("indentWithTabs",!1),vt("smartIndent",!0),vt("tabSize",4,function(gt){Fs(gt),rl(gt),Bl(gt)},!0),vt("lineSeparator",null,function(gt,Bt){if(gt.doc.lineSep=Bt,!!Bt){var te=[],xe=gt.doc.first;gt.doc.iter(function(je){for(var an=0;;){var $n=je.text.indexOf(Bt,an);if($n==-1)break;an=$n+Bt.length,te.push(On(xe,$n))}xe++});for(var Ue=te.length-1;Ue>=0;Ue--)fc(gt.doc,Bt,te[Ue],On(te[Ue].line,te[Ue].ch+Bt.length))}}),vt("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(gt,Bt,te){gt.state.specialChars=new RegExp(Bt.source+(Bt.test(" ")?"":"| "),"g"),te!=fo&>.refresh()}),vt("specialCharPlaceholder",Ta,function(gt){return gt.refresh()},!0),vt("electricChars",!0),vt("inputStyle",tt?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),vt("spellcheck",!1,function(gt,Bt){return gt.getInputField().spellcheck=Bt},!0),vt("autocorrect",!1,function(gt,Bt){return gt.getInputField().autocorrect=Bt},!0),vt("autocapitalize",!1,function(gt,Bt){return gt.getInputField().autocapitalize=Bt},!0),vt("rtlMoveVisually",!ht),vt("wholeLineUpdateBefore",!0),vt("theme","default",function(gt){Hr(gt),tr(gt)},!0),vt("keyMap","default",function(gt,Bt,te){var xe=$l(Bt),Ue=te!=fo&&$l(te);Ue&&Ue.detach&&Ue.detach(gt,xe),xe.attach&&xe.attach(gt,Ue||null)}),vt("extraKeys",null),vt("configureMouse",null),vt("lineWrapping",!1,Sl,!0),vt("gutters",[],function(gt,Bt){gt.display.gutterSpecs=no(Bt,gt.options.lineNumbers),tr(gt)},!0),vt("fixedGutter",!0,function(gt,Bt){gt.display.gutters.style.left=Bt?id(gt.display)+"px":"0",gt.refresh()},!0),vt("coverGutterNextToScrollbar",!1,function(gt){return to(gt)},!0),vt("scrollbarStyle","native",function(gt){yr(gt),to(gt),gt.display.scrollbars.setScrollTop(gt.doc.scrollTop),gt.display.scrollbars.setScrollLeft(gt.doc.scrollLeft)},!0),vt("lineNumbers",!1,function(gt,Bt){gt.display.gutterSpecs=no(gt.options.gutters,Bt),tr(gt)},!0),vt("firstLineNumber",1,tr,!0),vt("lineNumberFormatter",function(gt){return gt},tr,!0),vt("showCursorWhenSelecting",!1,wu,!0),vt("resetSelectionOnContextMenu",!0),vt("lineWiseCopyCut",!0),vt("pasteLinesPerSelection",!0),vt("selectionsMayTouch",!1),vt("readOnly",!1,function(gt,Bt){Bt=="nocursor"&&(Ft(gt),gt.display.input.blur()),gt.display.input.readOnlyChanged(Bt)}),vt("screenReaderLabel",null,function(gt,Bt){Bt=Bt===""?null:Bt,gt.display.input.screenReaderLabelChanged(Bt)}),vt("disableInput",!1,function(gt,Bt){Bt||gt.display.input.reset()},!0),vt("dragDrop",!0,ba),vt("allowDropFileTypes",null),vt("cursorBlinkRate",530),vt("cursorScrollMargin",0),vt("cursorHeight",1,wu,!0),vt("singleCursorHeightPerLine",!0,wu,!0),vt("workTime",100),vt("workDelay",100),vt("flattenSpans",!0,Fs,!0),vt("addModeClass",!1,Fs,!0),vt("pollInterval",100),vt("undoDepth",200,function(gt,Bt){return gt.doc.history.undoDepth=Bt}),vt("historyEventDelay",1250),vt("viewportMargin",10,function(gt){return gt.refresh()},!0),vt("maxHighlightLength",1e4,Fs,!0),vt("moveInputWithCursor",!0,function(gt,Bt){Bt||gt.display.input.resetPosition()}),vt("tabindex",null,function(gt,Bt){return gt.display.input.getField().tabIndex=Bt||""}),vt("autofocus",null),vt("direction","ltr",function(gt,Bt){return gt.doc.setDirection(Bt)},!0),vt("phrases",null)}function ba(it,st,vt){var gt=vt&&vt!=fo;if(!st!=!gt){var Bt=it.display.dragFunctions,te=st?An:ii;te(it.display.scroller,"dragstart",Bt.start),te(it.display.scroller,"dragenter",Bt.enter),te(it.display.scroller,"dragover",Bt.over),te(it.display.scroller,"dragleave",Bt.leave),te(it.display.scroller,"drop",Bt.drop)}}function Sl(it){it.options.lineWrapping?(Ge(it.display.wrapper,"CodeMirror-wrap"),it.display.sizer.style.minWidth="",it.display.sizerWidth=null):(Gt(it.display.wrapper,"CodeMirror-wrap"),aa(it)),As(it),Bl(it),rl(it),setTimeout(function(){return to(it)},100)}function js(it,st){var vt=this;if(!(this instanceof js))return new js(it,st);this.options=st=st?_e(st):{},_e(fs,st,!1);var gt=st.value;typeof gt=="string"?gt=new gu(gt,st.mode,null,st.lineSeparator,st.direction):st.mode&&(gt.modeOption=st.mode),this.doc=gt;var Bt=new js.inputStyles[st.inputStyle](this),te=this.display=new pr(it,gt,Bt,st);te.wrapper.CodeMirror=this,Hr(this),st.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),yr(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 ne,keySeq:null,specialChars:null},st.autofocus&&!tt&&te.input.focus(),ee&&Zt<11&&setTimeout(function(){return vt.display.input.reset(!0)},20),au(this),kl(),Kn(this),this.curOp.forceUpdate=!0,wo(this,gt),st.autofocus&&!tt||this.hasFocus()?setTimeout(function(){vt.hasFocus()&&!vt.state.focused&&wt(vt)},20):Ft(this);for(var xe in Ws)Ws.hasOwnProperty(xe)&&Ws[xe](this,st[xe],fo);Hn(this),st.finishInit&&st.finishInit(this);for(var Ue=0;Ue<pu.length;++Ue)pu[Ue](this);Jn(this),Nt&&st.lineWrapping&&getComputedStyle(te.lineDiv).textRendering=="optimizelegibility"&&(te.lineDiv.style.textRendering="auto")}js.defaults=fs,js.optionHandlers=Ws;function au(it){var st=it.display;An(st.scroller,"mousedown",Dn(it,Uh)),ee&&Zt<11?An(st.scroller,"dblclick",Dn(it,function(je){if(!ji(it,je)){var an=Ju(it,je);if(!(!an||vi(it,je)||ou(it.display,je))){Mr(je);var $n=it.findWordAt(an);wa(it.doc,$n.anchor,$n.head)}}})):An(st.scroller,"dblclick",function(je){return ji(it,je)||Mr(je)}),An(st.scroller,"contextmenu",function(je){return _i(it,je)}),An(st.input.getField(),"contextmenu",function(je){st.scroller.contains(je.target)||_i(it,je)});var vt,gt={end:0};function Bt(){st.activeTouch&&(vt=setTimeout(function(){return st.activeTouch=null},1e3),gt=st.activeTouch,gt.end=+new Date)}function te(je){if(je.touches.length!=1)return!1;var an=je.touches[0];return an.radiusX<=1&&an.radiusY<=1}function xe(je,an){if(an.left==null)return!0;var $n=an.left-je.left,wn=an.top-je.top;return $n*$n+wn*wn>20*20}An(st.scroller,"touchstart",function(je){if(!ji(it,je)&&!te(je)&&!vi(it,je)){st.input.ensurePolled(),clearTimeout(vt);var an=+new Date;st.activeTouch={start:an,moved:!1,prev:an-gt.end<=300?gt:null},je.touches.length==1&&(st.activeTouch.left=je.touches[0].pageX,st.activeTouch.top=je.touches[0].pageY)}}),An(st.scroller,"touchmove",function(){st.activeTouch&&(st.activeTouch.moved=!0)}),An(st.scroller,"touchend",function(je){var an=st.activeTouch;if(an&&!ou(st,je)&&an.left!=null&&!an.moved&&new Date-an.start<300){var $n=it.coordsChar(st.activeTouch,"page"),wn;!an.prev||xe(an,an.prev)?wn=new Qr($n,$n):!an.prev.prev||xe(an,an.prev.prev)?wn=it.findWordAt($n):wn=new Qr(On($n.line,0),nr(it.doc,On($n.line+1,0))),it.setSelection(wn.anchor,wn.head),it.focus(),Mr(je)}Bt()}),An(st.scroller,"touchcancel",Bt),An(st.scroller,"scroll",function(){st.scroller.clientHeight&&(mi(it,st.scroller.scrollTop),Ai(it,st.scroller.scrollLeft,!0),_n(it,"scroll",it))}),An(st.scroller,"mousewheel",function(je){return po(it,je)}),An(st.scroller,"DOMMouseScroll",function(je){return po(it,je)}),An(st.wrapper,"scroll",function(){return st.wrapper.scrollTop=st.wrapper.scrollLeft=0}),st.dragFunctions={enter:function(je){ji(it,je)||Zr(je)},over:function(je){ji(it,je)||(Ec(it,je),Zr(je))},start:function(je){return od(it,je)},drop:Dn(it,Rd),leave:function(je){ji(it,je)||_d(it)}};var Ue=st.input.getField();An(Ue,"keyup",function(je){return lf.call(it,je)}),An(Ue,"keydown",Dn(it,FA)),An(Ue,"keypress",Dn(it,rc)),An(Ue,"focus",function(je){return wt(it,je)}),An(Ue,"blur",function(je){return Ft(it,je)})}var pu=[];js.defineInitHook=function(it){return pu.push(it)};function dl(it,st,vt,gt){var Bt=it.doc,te;vt==null&&(vt="add"),vt=="smart"&&(Bt.mode.indent?te=$o(it,st).state:vt="prev");var xe=it.options.tabSize,Ue=yn(Bt,st),je=ve(Ue.text,null,xe);Ue.stateAfter&&(Ue.stateAfter=null);var an=Ue.text.match(/^\s*/)[0],$n;if(!gt&&!/\S/.test(Ue.text))$n=0,vt="not";else if(vt=="smart"&&($n=Bt.mode.indent(te,Ue.text.slice(an.length),Ue.text),$n==Mn||$n>150)){if(!gt)return;vt="prev"}vt=="prev"?st>Bt.first?$n=ve(yn(Bt,st-1).text,null,xe):$n=0:vt=="add"?$n=je+it.options.indentUnit:vt=="subtract"?$n=je-it.options.indentUnit:typeof vt=="number"&&($n=je+vt),$n=Math.max(0,$n);var wn="",Mi=0;if(it.options.indentWithTabs)for(var bi=Math.floor($n/xe);bi;--bi)Mi+=xe,wn+=" ";if(Mi<$n&&(wn+=Si($n-Mi)),wn!=an)return fc(Bt,wn,On(st,0),On(st,an.length),"+input"),Ue.stateAfter=null,!0;for(var br=0;br<Bt.sel.ranges.length;br++){var Tr=Bt.sel.ranges[br];if(Tr.head.line==st&&Tr.head.ch<an.length){var $r=On(st,an.length);Ea(Bt,br,new Qr($r,$r));break}}}var Fl=null;function yh(it){Fl=it}function bh(it,st,vt,gt,Bt){var te=it.doc;it.display.shift=!1,gt||(gt=te.sel);var xe=+new Date-200,Ue=Bt=="paste"||it.state.pasteIncoming>xe,je=jo(st),an=null;if(Ue&>.ranges.length>1)if(Fl&&Fl.text.join(`
|
|
|
`)==st){if(gt.ranges.length%Fl.text.length==0){an=[];for(var $n=0;$n<Fl.text.length;$n++)an.push(te.splitLines(Fl.text[$n]))}}else je.length==gt.ranges.length&&it.options.pasteLinesPerSelection&&(an=Fi(je,function(mo){return[mo]}));for(var wn=it.curOp.updateInput,Mi=gt.ranges.length-1;Mi>=0;Mi--){var bi=gt.ranges[Mi],br=bi.from(),Tr=bi.to();bi.empty()&&(vt&&vt>0?br=On(br.line,br.ch-vt):it.state.overwrite&&!Ue?Tr=On(Tr.line,Math.min(yn(te,Tr.line).text.length,Tr.ch+nn(je).length)):Ue&&Fl&&Fl.lineWise&&Fl.text.join(`
|
|
|
`)==je.join(`
|
|
|
`)&&(br=Tr=On(br.line,0)));var $r={from:br,to:Tr,text:an?an[Mi%an.length]:je,origin:Bt||(Ue?"paste":it.state.cutIncoming>xe?"cut":"+input")};xl(it.doc,$r),Rr(it,"inputRead",it,$r)}st&&!Ue&&Vd(it,st),fn(it),it.curOp.updateInput<2&&(it.curOp.updateInput=wn),it.curOp.typing=!0,it.state.pasteIncoming=it.state.cutIncoming=-1}function oc(it,st){var vt=it.clipboardData&&it.clipboardData.getData("Text");if(vt)return it.preventDefault(),!st.isReadOnly()&&!st.options.disableInput&&hn(st,function(){return bh(st,vt,0,null,"paste")}),!0}function Vd(it,st){if(!(!it.options.electricChars||!it.options.smartIndent))for(var vt=it.doc.sel,gt=vt.ranges.length-1;gt>=0;gt--){var Bt=vt.ranges[gt];if(!(Bt.head.ch>100||gt&&vt.ranges[gt-1].head.line==Bt.head.line)){var te=it.getModeAt(Bt.head),xe=!1;if(te.electricChars){for(var Ue=0;Ue<te.electricChars.length;Ue++)if(st.indexOf(te.electricChars.charAt(Ue))>-1){xe=dl(it,Bt.head.line,"smart");break}}else te.electricInput&&te.electricInput.test(yn(it.doc,Bt.head.line).text.slice(0,Bt.head.ch))&&(xe=dl(it,Bt.head.line,"smart"));xe&&Rr(it,"electricInput",it,Bt.head.line)}}}function cA(it){for(var st=[],vt=[],gt=0;gt<it.doc.sel.ranges.length;gt++){var Bt=it.doc.sel.ranges[gt].head.line,te={anchor:On(Bt,0),head:On(Bt+1,0)};vt.push(te),st.push(it.getRange(te.anchor,te.head))}return{text:st,ranges:vt}}function dA(it,st,vt,gt){it.setAttribute("autocorrect",vt?"":"off"),it.setAttribute("autocapitalize",gt?"":"off"),it.setAttribute("spellcheck",!!st)}function AA(){var it=de("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),st=de("div",[it],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Nt?it.style.width="1000px":it.setAttribute("wrap","off"),Ct&&(it.style.border="1px solid black"),dA(it),st}function Ic(it){var st=it.optionHandlers,vt=it.helpers={};it.prototype={constructor:it,focus:function(){window.focus(),this.display.input.focus()},setOption:function(gt,Bt){var te=this.options,xe=te[gt];te[gt]==Bt&>!="mode"||(te[gt]=Bt,st.hasOwnProperty(gt)&&Dn(this,st[gt])(this,Bt,xe),_n(this,"optionChange",this,gt))},getOption:function(gt){return this.options[gt]},getDoc:function(){return this.doc},addKeyMap:function(gt,Bt){this.state.keyMaps[Bt?"push":"unshift"]($l(gt))},removeKeyMap:function(gt){for(var Bt=this.state.keyMaps,te=0;te<Bt.length;++te)if(Bt[te]==gt||Bt[te].name==gt)return Bt.splice(te,1),!0},addOverlay:qn(function(gt,Bt){var te=gt.token?gt:it.getMode(this.options,gt);if(te.startState)throw new Error("Overlays may not be stateful.");Ti(this.state.overlays,{mode:te,modeSpec:gt,opaque:Bt&&Bt.opaque,priority:Bt&&Bt.priority||0},function(xe){return xe.priority}),this.state.modeGen++,Bl(this)}),removeOverlay:qn(function(gt){for(var Bt=this.state.overlays,te=0;te<Bt.length;++te){var xe=Bt[te].modeSpec;if(xe==gt||typeof gt=="string"&&xe.name==gt){Bt.splice(te,1),this.state.modeGen++,Bl(this);return}}}),indentLine:qn(function(gt,Bt,te){typeof Bt!="string"&&typeof Bt!="number"&&(Bt==null?Bt=this.options.smartIndent?"smart":"prev":Bt=Bt?"add":"subtract"),Pi(this.doc,gt)&&dl(this,gt,Bt,te)}),indentSelection:qn(function(gt){for(var Bt=this.doc.sel.ranges,te=-1,xe=0;xe<Bt.length;xe++){var Ue=Bt[xe];if(Ue.empty())Ue.head.line>te&&(dl(this,Ue.head.line,gt,!0),te=Ue.head.line,xe==this.doc.sel.primIndex&&fn(this));else{var je=Ue.from(),an=Ue.to(),$n=Math.max(te,je.line);te=Math.min(this.lastLine(),an.line-(an.ch?0:1))+1;for(var wn=$n;wn<te;++wn)dl(this,wn,gt);var Mi=this.doc.sel.ranges;je.ch==0&&Bt.length==Mi.length&&Mi[xe].from().ch>0&&Ea(this.doc,xe,new Qr(je,Mi[xe].to()),Xe)}}}),getTokenAt:function(gt,Bt){return qr(this,gt,Bt)},getLineTokens:function(gt,Bt){return qr(this,On(gt),Bt,!0)},getTokenTypeAt:function(gt){gt=nr(this.doc,gt);var Bt=ps(this,yn(this.doc,gt.line)),te=0,xe=(Bt.length-1)/2,Ue=gt.ch,je;if(Ue==0)je=Bt[2];else for(;;){var an=te+xe>>1;if((an?Bt[an*2-1]:0)>=Ue)xe=an;else if(Bt[an*2+1]<Ue)te=an+1;else{je=Bt[an*2+2];break}}var $n=je?je.indexOf("overlay "):-1;return $n<0?je:$n==0?null:je.slice(0,$n-1)},getModeAt:function(gt){var Bt=this.doc.mode;return Bt.innerMode?it.innerMode(Bt,this.getTokenAt(gt).state).mode:Bt},getHelper:function(gt,Bt){return this.getHelpers(gt,Bt)[0]},getHelpers:function(gt,Bt){var te=[];if(!vt.hasOwnProperty(Bt))return te;var xe=vt[Bt],Ue=this.getModeAt(gt);if(typeof Ue[Bt]=="string")xe[Ue[Bt]]&&te.push(xe[Ue[Bt]]);else if(Ue[Bt])for(var je=0;je<Ue[Bt].length;je++){var an=xe[Ue[Bt][je]];an&&te.push(an)}else Ue.helperType&&xe[Ue.helperType]?te.push(xe[Ue.helperType]):xe[Ue.name]&&te.push(xe[Ue.name]);for(var $n=0;$n<xe._global.length;$n++){var wn=xe._global[$n];wn.pred(Ue,this)&&Se(te,wn.val)==-1&&te.push(wn.val)}return te},getStateAfter:function(gt,Bt){var te=this.doc;return gt=Lr(te,gt==null?te.first+te.size-1:gt),$o(this,gt+1,Bt).state},cursorCoords:function(gt,Bt){var te,xe=this.doc.sel.primary();return gt==null?te=xe.head:typeof gt=="object"?te=nr(this.doc,gt):te=gt?xe.from():xe.to(),hl(this,te,Bt||"page")},charCoords:function(gt,Bt){return rh(this,nr(this.doc,gt),Bt||"page")},coordsChar:function(gt,Bt){return gt=Ac(this,gt,Bt||"page"),dh(this,gt.left,gt.top)},lineAtHeight:function(gt,Bt){return gt=Ac(this,{top:gt,left:0},Bt||"page").top,oi(this.doc,gt+this.display.viewOffset)},heightAtLine:function(gt,Bt,te){var xe=!1,Ue;if(typeof gt=="number"){var je=this.doc.first+this.doc.size-1;gt<this.doc.first?gt=this.doc.first:gt>je&&(gt=je,xe=!0),Ue=yn(this.doc,gt)}else Ue=gt;return Nl(this,Ue,{top:0,left:0},Bt||"page",te||xe).top+(xe?this.doc.height-xs(Ue):0)},defaultTextHeight:function(){return _u(this.display)},defaultCharWidth:function(){return Ah(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(gt,Bt,te,xe,Ue){var je=this.display;gt=hl(this,nr(this.doc,gt));var an=gt.bottom,$n=gt.left;if(Bt.style.position="absolute",Bt.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Bt),je.sizer.appendChild(Bt),xe=="over")an=gt.top;else if(xe=="above"||xe=="near"){var wn=Math.max(je.wrapper.clientHeight,this.doc.height),Mi=Math.max(je.sizer.clientWidth,je.lineSpace.clientWidth);(xe=="above"||gt.bottom+Bt.offsetHeight>wn)&>.top>Bt.offsetHeight?an=gt.top-Bt.offsetHeight:gt.bottom+Bt.offsetHeight<=wn&&(an=gt.bottom),$n+Bt.offsetWidth>Mi&&($n=Mi-Bt.offsetWidth)}Bt.style.top=an+"px",Bt.style.left=Bt.style.right="",Ue=="right"?($n=je.sizer.clientWidth-Bt.offsetWidth,Bt.style.right="0px"):(Ue=="left"?$n=0:Ue=="middle"&&($n=(je.sizer.clientWidth-Bt.offsetWidth)/2),Bt.style.left=$n+"px"),te&&Ee(this,{left:$n,top:an,right:$n+Bt.offsetWidth,bottom:an+Bt.offsetHeight})},triggerOnKeyDown:qn(FA),triggerOnKeyPress:qn(rc),triggerOnKeyUp:lf,triggerOnMouseDown:qn(Uh),execCommand:function(gt){if(Su.hasOwnProperty(gt))return Su[gt].call(null,this)},triggerElectric:qn(function(gt){Vd(this,gt)}),findPosH:function(gt,Bt,te,xe){var Ue=1;Bt<0&&(Ue=-1,Bt=-Bt);for(var je=nr(this.doc,gt),an=0;an<Bt&&(je=Ed(this.doc,je,Ue,te,xe),!je.hitSide);++an);return je},moveH:qn(function(gt,Bt){var te=this;this.extendSelectionsBy(function(xe){return te.display.shift||te.doc.extend||xe.empty()?Ed(te.doc,xe.head,gt,Bt,te.options.rtlMoveVisually):gt<0?xe.from():xe.to()},Zn)}),deleteH:qn(function(gt,Bt){var te=this.doc.sel,xe=this.doc;te.somethingSelected()?xe.replaceSelection("",null,"+delete"):iu(this,function(Ue){var je=Ed(xe,Ue.head,gt,Bt,!1);return gt<0?{from:je,to:Ue.head}:{from:Ue.head,to:je}})}),findPosV:function(gt,Bt,te,xe){var Ue=1,je=xe;Bt<0&&(Ue=-1,Bt=-Bt);for(var an=nr(this.doc,gt),$n=0;$n<Bt;++$n){var wn=hl(this,an,"div");if(je==null?je=wn.left:wn.left=je,an=kc(this,wn,Ue,te),an.hitSide)break}return an},moveV:qn(function(gt,Bt){var te=this,xe=this.doc,Ue=[],je=!this.display.shift&&!xe.extend&&xe.sel.somethingSelected();if(xe.extendSelectionsBy(function($n){if(je)return gt<0?$n.from():$n.to();var wn=hl(te,$n.head,"div");$n.goalColumn!=null&&(wn.left=$n.goalColumn),Ue.push(wn.left);var Mi=kc(te,wn,gt,Bt);return Bt=="page"&&$n==xe.sel.primary()&&gn(te,rh(te,Mi,"div").top-wn.top),Mi},Zn),Ue.length)for(var an=0;an<xe.sel.ranges.length;an++)xe.sel.ranges[an].goalColumn=Ue[an]}),findWordAt:function(gt){var Bt=this.doc,te=yn(Bt,gt.line).text,xe=gt.ch,Ue=gt.ch;if(te){var je=this.getHelper(gt,"wordChars");(gt.sticky=="before"||Ue==te.length)&&xe?--xe:++Ue;for(var an=te.charAt(xe),$n=pt(an,je)?function(wn){return pt(wn,je)}:/\s/.test(an)?function(wn){return/\s/.test(wn)}:function(wn){return!/\s/.test(wn)&&!pt(wn)};xe>0&&$n(te.charAt(xe-1));)--xe;for(;Ue<te.length&&$n(te.charAt(Ue));)++Ue}return new Qr(On(gt.line,xe),On(gt.line,Ue))},toggleOverwrite:function(gt){gt!=null&>==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ge(this.display.cursorDiv,"CodeMirror-overwrite"):Gt(this.display.cursorDiv,"CodeMirror-overwrite"),_n(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Wt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:qn(function(gt,Bt){In(this,gt,Bt)}),getScrollInfo:function(){var gt=this.display.scroller;return{left:gt.scrollLeft,top:gt.scrollTop,height:gt.scrollHeight-du(this)-this.display.barHeight,width:gt.scrollWidth-du(this)-this.display.barWidth,clientHeight:Go(this),clientWidth:tu(this)}},scrollIntoView:qn(function(gt,Bt){gt==null?(gt={from:this.doc.sel.primary().head,to:null},Bt==null&&(Bt=this.options.cursorScrollMargin)):typeof gt=="number"?gt={from:On(gt,0),to:null}:gt.from==null&&(gt={from:gt,to:null}),gt.to||(gt.to=gt.from),gt.margin=Bt||0,gt.from.line!=null?Qe(this,gt):Yn(this,gt.from,gt.to,gt.margin)}),setSize:qn(function(gt,Bt){var te=this,xe=function(je){return typeof je=="number"||/^\d+$/.test(String(je))?je+"px":je};gt!=null&&(this.display.wrapper.style.width=xe(gt)),Bt!=null&&(this.display.wrapper.style.height=xe(Bt)),this.options.lineWrapping&&Ja(this);var Ue=this.display.viewFrom;this.doc.iter(Ue,this.display.viewTo,function(je){if(je.widgets){for(var an=0;an<je.widgets.length;an++)if(je.widgets[an].noHScroll){oa(te,Ue,"widget");break}}++Ue}),this.curOp.forceUpdate=!0,_n(this,"refresh",this)}),operation:function(gt){return hn(this,gt)},startOperation:function(){return Kn(this)},endOperation:function(){return Jn(this)},refresh:qn(function(){var gt=this.display.cachedTextHeight;Bl(this),this.curOp.forceUpdate=!0,rl(this),In(this,this.doc.scrollLeft,this.doc.scrollTop),dr(this.display),(gt==null||Math.abs(gt-_u(this.display))>.5||this.options.lineWrapping)&&As(this),_n(this,"refresh",this)}),swapDoc:qn(function(gt){var Bt=this.doc;return Bt.cm=null,this.state.selectingText&&this.state.selectingText(),wo(this,gt),rl(this),this.display.input.reset(),In(this,gt.scrollLeft,gt.scrollTop),this.curOp.forceScroll=!0,Rr(this,"swapDoc",this,Bt),Bt}),phrase:function(gt){var Bt=this.options.phrases;return Bt&&Object.prototype.hasOwnProperty.call(Bt,gt)?Bt[gt]:gt},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}},mr(it),it.registerHelper=function(gt,Bt,te){vt.hasOwnProperty(gt)||(vt[gt]=it[gt]={_global:[]}),vt[gt][Bt]=te},it.registerGlobalHelper=function(gt,Bt,te,xe){it.registerHelper(gt,Bt,xe),vt[gt]._global.push({pred:te,val:xe})}}function Ed(it,st,vt,gt,Bt){var te=st,xe=vt,Ue=yn(it,st.line),je=Bt&&it.direction=="rtl"?-vt:vt;function an(){var Jo=st.line+je;return Jo<it.first||Jo>=it.first+it.size?!1:(st=new On(Jo,st.ch,st.sticky),Ue=yn(it,Jo))}function $n(Jo){var Mo;if(gt=="codepoint"){var rs=Ue.text.charCodeAt(st.ch+(gt>0?0:-1));isNaN(rs)?Mo=null:Mo=new On(st.line,Math.max(0,Math.min(Ue.text.length,st.ch+vt*(rs>=55296&&rs<56320?2:1))),-vt)}else Bt?Mo=sl(it.cm,Ue,st,vt):Mo=su(Ue,st,vt);if(Mo==null)if(!Jo&&an())st=xa(Bt,it.cm,Ue,st.line,je);else return!1;else st=Mo;return!0}if(gt=="char"||gt=="codepoint")$n();else if(gt=="column")$n(!0);else if(gt=="word"||gt=="group")for(var wn=null,Mi=gt=="group",bi=it.cm&&it.cm.getHelper(st,"wordChars"),br=!0;!(vt<0&&!$n(!br));br=!1){var Tr=Ue.text.charAt(st.ch)||`
|
|
|
`,$r=pt(Tr,bi)?"w":Mi&&Tr==`
|
|
|
`?"n":!Mi||/\s/.test(Tr)?null:"p";if(Mi&&!br&&!$r&&($r="s"),wn&&wn!=$r){vt<0&&(vt=1,$n(),st.sticky="after");break}if($r&&(wn=$r),vt>0&&!$n(!br))break}var mo=oh(it,st,te,xe,!0);return Cr(te,mo)&&(mo.hitSide=!0),mo}function kc(it,st,vt,gt){var Bt=it.doc,te=st.left,xe;if(gt=="page"){var Ue=Math.min(it.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),je=Math.max(Ue-.5*_u(it.display),3);xe=(vt>0?st.bottom:st.top)+vt*je}else gt=="line"&&(xe=vt>0?st.bottom+3:st.top-3);for(var an;an=dh(it,te,xe),!!an.outside;){if(vt<0?xe<=0:xe>=Bt.height){an.hitSide=!0;break}xe+=vt*5}return an}var Sa=function(it){this.cm=it,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ne,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Sa.prototype.init=function(it){var st=this,vt=this,gt=vt.cm,Bt=vt.div=it.lineDiv;dA(Bt,gt.options.spellcheck,gt.options.autocorrect,gt.options.autocapitalize);function te(Ue){for(var je=Ue.target;je;je=je.parentNode){if(je==Bt)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(je.className))break}return!1}An(Bt,"paste",function(Ue){!te(Ue)||ji(gt,Ue)||oc(Ue,gt)||Zt<=11&&setTimeout(Dn(gt,function(){return st.updateFromDOM()}),20)}),An(Bt,"compositionstart",function(Ue){st.composing={data:Ue.data,done:!1}}),An(Bt,"compositionupdate",function(Ue){st.composing||(st.composing={data:Ue.data,done:!1})}),An(Bt,"compositionend",function(Ue){st.composing&&(Ue.data!=st.composing.data&&st.readFromDOMSoon(),st.composing.done=!0)}),An(Bt,"touchstart",function(){return vt.forceCompositionEnd()}),An(Bt,"input",function(){st.composing||st.readFromDOMSoon()});function xe(Ue){if(!(!te(Ue)||ji(gt,Ue))){if(gt.somethingSelected())yh({lineWise:!1,text:gt.getSelections()}),Ue.type=="cut"&>.replaceSelection("",null,"cut");else if(gt.options.lineWiseCopyCut){var je=cA(gt);yh({lineWise:!0,text:je.text}),Ue.type=="cut"&>.operation(function(){gt.setSelections(je.ranges,0,Xe),gt.replaceSelection("",null,"cut")})}else return;if(Ue.clipboardData){Ue.clipboardData.clearData();var an=Fl.text.join(`
|
|
|
`);if(Ue.clipboardData.setData("Text",an),Ue.clipboardData.getData("Text")==an){Ue.preventDefault();return}}var $n=AA(),wn=$n.firstChild;gt.display.lineSpace.insertBefore($n,gt.display.lineSpace.firstChild),wn.value=Fl.text.join(`
|
|
|
`);var Mi=document.activeElement;Me(wn),setTimeout(function(){gt.display.lineSpace.removeChild($n),Mi.focus(),Mi==Bt&&vt.showPrimarySelection()},50)}}An(Bt,"copy",xe),An(Bt,"cut",xe)},Sa.prototype.screenReaderLabelChanged=function(it){it?this.div.setAttribute("aria-label",it):this.div.removeAttribute("aria-label")},Sa.prototype.prepareSelection=function(){var it=yd(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,vt=st.doc.sel.primary(),gt=vt.from(),Bt=vt.to();if(st.display.viewTo==st.display.viewFrom||gt.line>=st.display.viewTo||Bt.line<st.display.viewFrom){it.removeAllRanges();return}var te=Qu(st,it.anchorNode,it.anchorOffset),xe=Qu(st,it.focusNode,it.focusOffset);if(!(te&&!te.bad&&xe&&!xe.bad&&ui(ar(te,xe),gt)==0&&ui(zr(te,xe),Bt)==0)){var Ue=st.display.view,je=gt.line>=st.display.viewFrom&&mc(st,gt)||{node:Ue[0].measure.map[2],offset:0},an=Bt.line<st.display.viewTo&&mc(st,Bt);if(!an){var $n=Ue[Ue.length-1].measure,wn=$n.maps?$n.maps[$n.maps.length-1]:$n.map;an={node:wn[wn.length-1],offset:wn[wn.length-2]-wn[wn.length-3]}}if(!je||!an){it.removeAllRanges();return}var Mi=it.rangeCount&&it.getRangeAt(0),bi;try{bi=Jt(je.node,je.offset,an.offset,an.node)}catch(br){}bi&&(!Mt&&st.state.focused?(it.collapse(je.node,je.offset),bi.collapsed||(it.removeAllRanges(),it.addRange(bi))):(it.removeAllRanges(),it.addRange(bi)),Mi&&it.anchorNode==null?it.addRange(Mi):Mt&&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){ue(this.cm.display.cursorDiv,it.cursors),ue(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 Ke(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():hn(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&&qt&&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 vt=Qu(st,it.anchorNode,it.anchorOffset),gt=Qu(st,it.focusNode,it.focusOffset);vt&>&&hn(st,function(){Fa(st.doc,Po(vt,gt),Xe),(vt.bad||gt.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,vt=it.doc.sel.primary(),gt=vt.from(),Bt=vt.to();if(gt.ch==0&>.line>it.firstLine()&&(gt=On(gt.line-1,yn(it.doc,gt.line-1).length)),Bt.ch==yn(it.doc,Bt.line).text.length&&Bt.line<it.lastLine()&&(Bt=On(Bt.line+1,0)),gt.line<st.viewFrom||Bt.line>st.viewTo-1)return!1;var te,xe,Ue;gt.line==st.viewFrom||(te=Gu(it,gt.line))==0?(xe=qe(st.view[0].line),Ue=st.view[0].node):(xe=qe(st.view[te].line),Ue=st.view[te-1].node.nextSibling);var je=Gu(it,Bt.line),an,$n;if(je==st.view.length-1?(an=st.viewTo-1,$n=st.lineDiv.lastChild):(an=qe(st.view[je+1].line)-1,$n=st.view[je+1].node.previousSibling),!Ue)return!1;for(var wn=it.doc.splitLines(Rh(it,Ue,$n,xe,an)),Mi=Qn(it.doc,On(xe,0),On(an,yn(it.doc,an).text.length));wn.length>1&&Mi.length>1;)if(nn(wn)==nn(Mi))wn.pop(),Mi.pop(),an--;else if(wn[0]==Mi[0])wn.shift(),Mi.shift(),xe++;else break;for(var bi=0,br=0,Tr=wn[0],$r=Mi[0],mo=Math.min(Tr.length,$r.length);bi<mo&&Tr.charCodeAt(bi)==$r.charCodeAt(bi);)++bi;for(var Jo=nn(wn),Mo=nn(Mi),rs=Math.min(Jo.length-(wn.length==1?bi:0),Mo.length-(Mi.length==1?bi:0));br<rs&&Jo.charCodeAt(Jo.length-br-1)==Mo.charCodeAt(Mo.length-br-1);)++br;if(wn.length==1&&Mi.length==1&&xe==gt.line)for(;bi&&bi>gt.ch&&Jo.charCodeAt(Jo.length-br-1)==Mo.charCodeAt(Mo.length-br-1);)bi--,br++;wn[wn.length-1]=Jo.slice(0,Jo.length-br).replace(/^\u200b+/,""),wn[0]=wn[0].slice(bi).replace(/\u200b+$/,"");var Ts=On(xe,bi),No=On(an,Mi.length?nn(Mi).length-br:0);if(wn.length>1||wn[0]||ui(Ts,No))return fc(it.doc,wn,Ts,No,"+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())&&hn(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,bh)(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 vt=qh(it,st.line);if(!vt||vt.hidden)return null;var gt=yn(it.doc,st.line),Bt=Eu(vt,gt,st.line),te=Vn(gt,it.doc.direction),xe="left";if(te){var Ue=ke(te,st.ch);xe=Ue%2?"right":"left"}var je=Kc(Bt.map,st.ch,xe);return je.offset=je.collapse=="right"?je.end:je.start,je}function Zd(it){for(var st=it;st;st=st.parentNode)if(/CodeMirror-gutter-wrapper/.test(st.className))return!0;return!1}function Gl(it,st){return st&&(it.bad=!0),it}function Rh(it,st,vt,gt,Bt){var te="",xe=!1,Ue=it.doc.lineSeparator(),je=!1;function an(bi){return function(br){return br.id==bi}}function $n(){xe&&(te+=Ue,je&&(te+=Ue),xe=je=!1)}function wn(bi){bi&&($n(),te+=bi)}function Mi(bi){if(bi.nodeType==1){var br=bi.getAttribute("cm-text");if(br){wn(br);return}var Tr=bi.getAttribute("cm-marker"),$r;if(Tr){var mo=it.findMarks(On(gt,0),On(Bt+1,0),an(+Tr));mo.length&&($r=mo[0].find(0))&&wn(Qn(it.doc,$r.from,$r.to).join(Ue));return}if(bi.getAttribute("contenteditable")=="false")return;var Jo=/^(pre|div|p|li|table|br)$/i.test(bi.nodeName);if(!/^br$/i.test(bi.nodeName)&&bi.textContent.length==0)return;Jo&&$n();for(var Mo=0;Mo<bi.childNodes.length;Mo++)Mi(bi.childNodes[Mo]);/^(pre|p)$/i.test(bi.nodeName)&&(je=!0),Jo&&(xe=!0)}else bi.nodeType==3&&wn(bi.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Mi(st),st!=vt;)st=st.nextSibling,je=!1;return te}function Qu(it,st,vt){var gt;if(st==it.display.lineDiv){if(gt=it.display.lineDiv.childNodes[vt],!gt)return Gl(it.clipPos(On(it.display.viewTo-1)),!0);st=null,vt=0}else for(gt=st;;gt=gt.parentNode){if(!gt||gt==it.display.lineDiv)return null;if(gt.parentNode&>.parentNode==it.display.lineDiv)break}for(var Bt=0;Bt<it.display.view.length;Bt++){var te=it.display.view[Bt];if(te.node==gt)return ld(te,st,vt)}}function ld(it,st,vt){var gt=it.text.firstChild,Bt=!1;if(!st||!Ke(gt,st))return Gl(On(qe(it.line),0),!0);if(st==gt&&(Bt=!0,st=gt.childNodes[vt],vt=0,!st)){var te=it.rest?nn(it.rest):it.line;return Gl(On(qe(te),te.text.length),Bt)}var xe=st.nodeType==3?st:null,Ue=st;for(!xe&&st.childNodes.length==1&&st.firstChild.nodeType==3&&(xe=st.firstChild,vt&&(vt=xe.nodeValue.length));Ue.parentNode!=gt;)Ue=Ue.parentNode;var je=it.measure,an=je.maps;function $n($r,mo,Jo){for(var Mo=-1;Mo<(an?an.length:0);Mo++)for(var rs=Mo<0?je.map:an[Mo],Ts=0;Ts<rs.length;Ts+=3){var No=rs[Ts+2];if(No==$r||No==mo){var Js=qe(Mo<0?it.line:it.rest[Mo]),Ol=rs[Ts]+Jo;return(Jo<0||No!=$r)&&(Ol=rs[Ts+(Jo?1:0)]),On(Js,Ol)}}}var wn=$n(xe,Ue,vt);if(wn)return Gl(wn,Bt);for(var Mi=Ue.nextSibling,bi=xe?xe.nodeValue.length-vt:0;Mi;Mi=Mi.nextSibling){if(wn=$n(Mi,Mi.firstChild,0),wn)return Gl(On(wn.line,wn.ch-bi),Bt);bi+=Mi.textContent.length}for(var br=Ue.previousSibling,Tr=vt;br;br=br.previousSibling){if(wn=$n(br,br.firstChild,-1),wn)return Gl(On(wn.line,wn.ch+Tr),Bt);Tr+=br.textContent.length}}var Tl=function(it){this.cm=it,this.prevInput="",this.pollingFast=!1,this.polling=new ne,this.hasSelection=!1,this.composing=null};Tl.prototype.init=function(it){var st=this,vt=this,gt=this.cm;this.createField(it);var Bt=this.textarea;it.wrapper.insertBefore(this.wrapper,it.wrapper.firstChild),Ct&&(Bt.style.width="0px"),An(Bt,"input",function(){ee&&Zt>=9&&st.hasSelection&&(st.hasSelection=null),vt.poll()}),An(Bt,"paste",function(xe){ji(gt,xe)||oc(xe,gt)||(gt.state.pasteIncoming=+new Date,vt.fastPoll())});function te(xe){if(!ji(gt,xe)){if(gt.somethingSelected())yh({lineWise:!1,text:gt.getSelections()});else if(gt.options.lineWiseCopyCut){var Ue=cA(gt);yh({lineWise:!0,text:Ue.text}),xe.type=="cut"?gt.setSelections(Ue.ranges,null,Xe):(vt.prevInput="",Bt.value=Ue.text.join(`
|
|
|
`),Me(Bt))}else return;xe.type=="cut"&&(gt.state.cutIncoming=+new Date)}}An(Bt,"cut",te),An(Bt,"copy",te),An(it.scroller,"paste",function(xe){if(!(ou(it,xe)||ji(gt,xe))){if(!Bt.dispatchEvent){gt.state.pasteIncoming=+new Date,vt.focus();return}var Ue=new Event("paste");Ue.clipboardData=xe.clipboardData,Bt.dispatchEvent(Ue)}}),An(it.lineSpace,"selectstart",function(xe){ou(it,xe)||Mr(xe)}),An(Bt,"compositionstart",function(){var xe=gt.getCursor("from");vt.composing&&vt.composing.range.clear(),vt.composing={start:xe,range:gt.markText(xe,gt.getCursor("to"),{className:"CodeMirror-composing"})}}),An(Bt,"compositionend",function(){vt.composing&&(vt.poll(),vt.composing.range.clear(),vt.composing=null)})},Tl.prototype.createField=function(it){this.wrapper=AA(),this.textarea=this.wrapper.firstChild},Tl.prototype.screenReaderLabelChanged=function(it){it?this.textarea.setAttribute("aria-label",it):this.textarea.removeAttribute("aria-label")},Tl.prototype.prepareSelection=function(){var it=this.cm,st=it.display,vt=it.doc,gt=yd(it);if(it.options.moveInputWithCursor){var Bt=hl(it,vt.sel.primary().head,"div"),te=st.wrapper.getBoundingClientRect(),xe=st.lineDiv.getBoundingClientRect();gt.teTop=Math.max(0,Math.min(st.wrapper.clientHeight-10,Bt.top+xe.top-te.top)),gt.teLeft=Math.max(0,Math.min(st.wrapper.clientWidth-10,Bt.left+xe.left-te.left))}return gt},Tl.prototype.showSelection=function(it){var st=this.cm,vt=st.display;ue(vt.cursorDiv,it.cursors),ue(vt.selectionDiv,it.selection),it.teTop!=null&&(this.wrapper.style.top=it.teTop+"px",this.wrapper.style.left=it.teLeft+"px")},Tl.prototype.reset=function(it){if(!(this.contextMenuPending||this.composing)){var st=this.cm;if(st.somethingSelected()){this.prevInput="";var vt=st.getSelection();this.textarea.value=vt,st.state.focused&&Me(this.textarea),ee&&Zt>=9&&(this.hasSelection=vt)}else it||(this.prevInput=this.textarea.value="",ee&&Zt>=9&&(this.hasSelection=null))}},Tl.prototype.getField=function(){return this.textarea},Tl.prototype.supportsTouch=function(){return!1},Tl.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!tt||Wt()!=this.textarea))try{this.textarea.focus()}catch(it){}},Tl.prototype.blur=function(){this.textarea.blur()},Tl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Tl.prototype.receivedFocus=function(){this.slowPoll()},Tl.prototype.slowPoll=function(){var it=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){it.poll(),it.cm.state.focused&&it.slowPoll()})},Tl.prototype.fastPoll=function(){var it=!1,st=this;st.pollingFast=!0;function vt(){var gt=st.poll();!gt&&!it?(it=!0,st.polling.set(60,vt)):(st.pollingFast=!1,st.slowPoll())}st.polling.set(20,vt)},Tl.prototype.poll=function(){var it=this,st=this.cm,vt=this.textarea,gt=this.prevInput;if(this.contextMenuPending||!st.state.focused||$t(vt)&&!gt&&!this.composing||st.isReadOnly()||st.options.disableInput||st.state.keySeq)return!1;var Bt=vt.value;if(Bt==gt&&!st.somethingSelected())return!1;if(ee&&Zt>=9&&this.hasSelection===Bt||lt&&/[\uf700-\uf7ff]/.test(Bt))return st.display.input.reset(),!1;if(st.doc.sel==st.display.selForContextMenu){var te=Bt.charCodeAt(0);if(te==8203&&!gt&&(gt="\u200B"),te==8666)return this.reset(),this.cm.execCommand("undo")}for(var xe=0,Ue=Math.min(gt.length,Bt.length);xe<Ue&>.charCodeAt(xe)==Bt.charCodeAt(xe);)++xe;return hn(st,function(){bh(st,Bt.slice(xe),gt.length-xe,null,it.composing?"*compose":null),Bt.length>1e3||Bt.indexOf(`
|
|
|
`)>-1?vt.value=it.prevInput="":it.prevInput=Bt,it.composing&&(it.composing.range.clear(),it.composing.range=st.markText(it.composing.start,st.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Tl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Tl.prototype.onKeyPress=function(){ee&&Zt>=9&&(this.hasSelection=null),this.fastPoll()},Tl.prototype.onContextMenu=function(it){var st=this,vt=st.cm,gt=vt.display,Bt=st.textarea;st.contextMenuPending&&st.contextMenuPending();var te=Ju(vt,it),xe=gt.scroller.scrollTop;if(!te||Pt)return;var Ue=vt.options.resetSelectionOnContextMenu;Ue&&vt.doc.sel.contains(te)==-1&&Dn(vt,Fa)(vt.doc,Po(te),Xe);var je=Bt.style.cssText,an=st.wrapper.style.cssText,$n=st.wrapper.offsetParent.getBoundingClientRect();st.wrapper.style.cssText="position: static",Bt.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(it.clientY-$n.top-5)+"px; left: "+(it.clientX-$n.left-5)+`px;
|
|
|
z-index: 1000; background: `+(ee?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var wn;Nt&&(wn=window.scrollY),gt.input.focus(),Nt&&window.scrollTo(null,wn),gt.input.reset(),vt.somethingSelected()||(Bt.value=st.prevInput=" "),st.contextMenuPending=bi,gt.selForContextMenu=vt.doc.sel,clearTimeout(gt.detectingSelectAll);function Mi(){if(Bt.selectionStart!=null){var Tr=vt.somethingSelected(),$r="\u200B"+(Tr?Bt.value:"");Bt.value="\u21DA",Bt.value=$r,st.prevInput=Tr?"":"\u200B",Bt.selectionStart=1,Bt.selectionEnd=$r.length,gt.selForContextMenu=vt.doc.sel}}function bi(){if(st.contextMenuPending==bi&&(st.contextMenuPending=!1,st.wrapper.style.cssText=an,Bt.style.cssText=je,ee&&Zt<9&>.scrollbars.setScrollTop(gt.scroller.scrollTop=xe),Bt.selectionStart!=null)){(!ee||ee&&Zt<9)&&Mi();var Tr=0,$r=function(){gt.selForContextMenu==vt.doc.sel&&Bt.selectionStart==0&&Bt.selectionEnd>0&&st.prevInput=="\u200B"?Dn(vt,Qa)(vt):Tr++<10?gt.detectingSelectAll=setTimeout($r,500):(gt.selForContextMenu=null,gt.input.reset())};gt.detectingSelectAll=setTimeout($r,200)}}if(ee&&Zt>=9&&Mi(),It){Zr(it);var br=function(){ii(window,"mouseup",br),setTimeout(bi,20)};An(window,"mouseup",br)}else setTimeout(bi,50)},Tl.prototype.readOnlyChanged=function(it){it||this.reset(),this.textarea.disabled=it=="nocursor",this.textarea.readOnly=!!it},Tl.prototype.setUneditable=function(){},Tl.prototype.needsContentAttribute=!1;function Xd(it,st){if(st=st?_e(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 vt=Wt();st.autofocus=vt==it||it.getAttribute("autofocus")!=null&&vt==document.body}function gt(){it.value=Ue.getValue()}var Bt;if(it.form&&(An(it.form,"submit",gt),!st.leaveSubmitMethodAlone)){var te=it.form;Bt=te.submit;try{var xe=te.submit=function(){gt(),te.submit=Bt,te.submit(),te.submit=xe}}catch(je){}}st.finishInit=function(je){je.save=gt,je.getTextArea=function(){return it},je.toTextArea=function(){je.toTextArea=isNaN,gt(),it.parentNode.removeChild(je.getWrapperElement()),it.style.display="",it.form&&(ii(it.form,"submit",gt),!st.leaveSubmitMethodAlone&&typeof it.form.submit=="function"&&(it.form.submit=Bt))}},it.style.display="none";var Ue=js(function(je){return it.parentNode.insertBefore(je,it.nextSibling)},st);return Ue}function Fu(it){it.off=ii,it.on=An,it.wheelEventPixels=oo,it.Doc=gu,it.splitLines=jo,it.countColumn=ve,it.findColumn=fi,it.isWordChar=ft,it.Pass=Mn,it.signal=_n,it.Line=Ho,it.changeEnd=hs,it.scrollbarModel=ki,it.Pos=On,it.cmpPos=ui,it.modes=ma,it.mimeModes=va,it.resolveMode=Dr,it.getMode=kn,it.modeExtensions=Tn,it.extendMode=De,it.copyState=ti,it.startState=dn,it.innerMode=yi,it.commands=Su,it.keyMap=th,it.keyName=Qd,it.isModifierKey=Bd,it.lookupKey=eh,it.normalizeKeyMap=sd,it.StringStream=Le,it.SharedTextMarker=Dh,it.TextMarker=Un,it.LineWidget=nu,it.e_preventDefault=Mr,it.e_stopPropagation=ao,it.e_stop=Zr,it.addClass=Ge,it.contains=Ke,it.rmClass=Gt,it.keyNames=Xs}Da(js),Ic(js);var sc="iter insert remove copy getEditor constructor".split(" ");for(var $d in gu.prototype)gu.prototype.hasOwnProperty($d)&&Se(sc,$d)<0&&(js.prototype[$d]=function(it){return function(){return it.apply(this.doc,arguments)}}(gu.prototype[$d]));return mr(gu),js.inputStyles={textarea:Tl,contenteditable:Sa},js.defineMode=function(it){!js.defaults.mode&&it!="null"&&(js.defaults.mode=it),qs.apply(this,arguments)},js.defineMIME=_r,js.defineMode("null",function(){return{token:function(it){return it.skipToEnd()}}}),js.defineMIME("text/plain","null"),js.defineExtension=function(it,st){js.prototype[it]=st},js.defineDocExtension=function(it,st){gu.prototype[it]=st},js.fromTextArea=Xd,Fu(js),js.version="5.58.2",js})},25419:function(hi,Cn,bt){(function(Mt){Mt(bt(89780),bt(15525),bt(98101))})(function(Mt){"use strict";Mt.defineMode("markdown",function(ce,ie){var Ie=Mt.getMode(ce,"text/html"),ee=Ie.name=="null";function Zt(ve){if(Mt.findModeByName){var ne=Mt.findModeByName(ve);ne&&(ve=ne.mime||ne.mimes[0])}var Se=Mt.getMode(ce,ve);return Se.name=="null"?null:Se}ie.highlightFormatting===void 0&&(ie.highlightFormatting=!1),ie.maxBlockquoteDepth===void 0&&(ie.maxBlockquoteDepth=0),ie.taskLists===void 0&&(ie.taskLists=!1),ie.strikethrough===void 0&&(ie.strikethrough=!1),ie.emoji===void 0&&(ie.emoji=!1),ie.fencedCodeBlockHighlighting===void 0&&(ie.fencedCodeBlockHighlighting=!0),ie.fencedCodeBlockDefaultMode===void 0&&(ie.fencedCodeBlockDefaultMode="text/plain"),ie.xml===void 0&&(ie.xml=!0),ie.tokenTypeOverrides===void 0&&(ie.tokenTypeOverrides={});var Nt={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 jt in Nt)Nt.hasOwnProperty(jt)&&ie.tokenTypeOverrides[jt]&&(Nt[jt]=ie.tokenTypeOverrides[jt]);var qt=/^([*\-_])(?:\s*\1){2,}\s*$/,Pt=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,re=/^\[(x| )\](?=\s)/i,Kt=ie.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Yt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ct=/^[^#!\[\]*_\\<>` "'(~:]+/,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 ht(ve,ne,Se){return ne.f=ne.inline=Se,Se(ve,ne)}function dt(ve,ne,Se){return ne.f=ne.block=Se,Se(ve,ne)}function St(ve){return!ve||!/\S/.test(ve.string)}function It(ve){if(ve.linkTitle=!1,ve.linkHref=!1,ve.linkText=!1,ve.em=!1,ve.strong=!1,ve.strikethrough=!1,ve.quote=0,ve.indentedCode=!1,ve.f==Gt){var ne=ee;if(!ne){var Se=Mt.innerMode(Ie,ve.htmlState);ne=Se.mode.name=="xml"&&Se.state.tagStart===null&&!Se.state.context&&Se.state.tokenize.isInText}ne&&(ve.f=be,ve.block=_t,ve.htmlState=null)}return ve.trailingSpace=0,ve.trailingSpaceNewLine=!1,ve.prevLine=ve.thisLine,ve.thisLine={stream:null},null}function _t(ve,ne){var Se=ve.column()===ne.indentation,Pn=St(ne.prevLine.stream),Mn=ne.indentedCode,Xe=ne.prevLine.hr,Nn=ne.list!==!1,Zn=(ne.listStack[ne.listStack.length-1]||0)+3;ne.indentedCode=!1;var fi=ne.indentation;if(ne.indentationDiff===null&&(ne.indentationDiff=ne.indentation,Nn)){for(ne.list=null;fi<ne.listStack[ne.listStack.length-1];)ne.listStack.pop(),ne.listStack.length?ne.indentation=ne.listStack[ne.listStack.length-1]:ne.list=!1;ne.list!==!1&&(ne.indentationDiff=fi-ne.listStack[ne.listStack.length-1])}var zn=!Pn&&!Xe&&!ne.prevLine.header&&(!Nn||!Mn)&&!ne.prevLine.fencedCodeEnd,Si=(ne.list===!1||Xe||Pn)&&ne.indentation<=Zn&&ve.match(qt),nn=null;if(ne.indentationDiff>=4&&(Mn||ne.prevLine.fencedCodeEnd||ne.prevLine.header||Pn))return ve.skipToEnd(),ne.indentedCode=!0,Nt.code;if(ve.eatSpace())return null;if(Se&&ne.indentation<=Zn&&(nn=ve.match(Kt))&&nn[1].length<=6)return ne.quote=0,ne.header=nn[1].length,ne.thisLine.header=!0,ie.highlightFormatting&&(ne.formatting="header"),ne.f=ne.inline,ue(ne);if(ne.indentation<=Zn&&ve.eat(">"))return ne.quote=Se?1:ne.quote+1,ie.highlightFormatting&&(ne.formatting="quote"),ve.eatSpace(),ue(ne);if(!Si&&!ne.setext&&Se&&ne.indentation<=Zn&&(nn=ve.match(Pt))){var Fi=nn[1]?"ol":"ul";return ne.indentation=fi+ve.current().length,ne.list=!0,ne.quote=0,ne.listStack.push(ne.indentation),ne.em=!1,ne.strong=!1,ne.code=!1,ne.strikethrough=!1,ie.taskLists&&ve.match(re,!1)&&(ne.taskList=!0),ne.f=ne.inline,ie.highlightFormatting&&(ne.formatting=["list","list-"+Fi]),ue(ne)}else{if(Se&&ne.indentation<=Zn&&(nn=ve.match(et,!0)))return ne.quote=0,ne.fencedEndRE=new RegExp(nn[1]+"+ *$"),ne.localMode=ie.fencedCodeBlockHighlighting&&Zt(nn[2]||ie.fencedCodeBlockDefaultMode),ne.localMode&&(ne.localState=Mt.startState(ne.localMode)),ne.f=ne.block=oe,ie.highlightFormatting&&(ne.formatting="code-block"),ne.code=-1,ue(ne);if(ne.setext||(!zn||!Nn)&&!ne.quote&&ne.list===!1&&!ne.code&&!Si&&!tt.test(ve.string)&&(nn=ve.lookAhead(1))&&(nn=nn.match(Yt)))return ne.setext?(ne.header=ne.setext,ne.setext=0,ve.skipToEnd(),ie.highlightFormatting&&(ne.formatting="header")):(ne.header=nn[0].charAt(0)=="="?1:2,ne.setext=ne.header),ne.thisLine.header=!0,ne.f=ne.inline,ue(ne);if(Si)return ve.skipToEnd(),ne.hr=!0,ne.thisLine.hr=!0,Nt.hr;if(ve.peek()==="[")return ht(ve,ne,He)}return ht(ve,ne,ne.inline)}function Gt(ve,ne){var Se=Ie.token(ve,ne.htmlState);if(!ee){var Pn=Mt.innerMode(Ie,ne.htmlState);(Pn.mode.name=="xml"&&Pn.state.tagStart===null&&!Pn.state.context&&Pn.state.tokenize.isInText||ne.md_inside&&ve.current().indexOf(">")>-1)&&(ne.f=be,ne.block=_t,ne.htmlState=null)}return Se}function oe(ve,ne){var Se=ne.listStack[ne.listStack.length-1]||0,Pn=ne.indentation<Se,Mn=Se+3;if(ne.fencedEndRE&&ne.indentation<=Mn&&(Pn||ve.match(ne.fencedEndRE))){ie.highlightFormatting&&(ne.formatting="code-block");var Xe;return Pn||(Xe=ue(ne)),ne.localMode=ne.localState=null,ne.block=_t,ne.f=be,ne.fencedEndRE=null,ne.code=0,ne.thisLine.fencedCodeEnd=!0,Pn?dt(ve,ne,ne.block):Xe}else return ne.localMode?ne.localMode.token(ve,ne.localState):(ve.skipToEnd(),Nt.code)}function ue(ve){var ne=[];if(ve.formatting){ne.push(Nt.formatting),typeof ve.formatting=="string"&&(ve.formatting=[ve.formatting]);for(var Se=0;Se<ve.formatting.length;Se++)ne.push(Nt.formatting+"-"+ve.formatting[Se]),ve.formatting[Se]==="header"&&ne.push(Nt.formatting+"-"+ve.formatting[Se]+"-"+ve.header),ve.formatting[Se]==="quote"&&(!ie.maxBlockquoteDepth||ie.maxBlockquoteDepth>=ve.quote?ne.push(Nt.formatting+"-"+ve.formatting[Se]+"-"+ve.quote):ne.push("error"))}if(ve.taskOpen)return ne.push("meta"),ne.length?ne.join(" "):null;if(ve.taskClosed)return ne.push("property"),ne.length?ne.join(" "):null;if(ve.linkHref?ne.push(Nt.linkHref,"url"):(ve.strong&&ne.push(Nt.strong),ve.em&&ne.push(Nt.em),ve.strikethrough&&ne.push(Nt.strikethrough),ve.emoji&&ne.push(Nt.emoji),ve.linkText&&ne.push(Nt.linkText),ve.code&&ne.push(Nt.code),ve.image&&ne.push(Nt.image),ve.imageAltText&&ne.push(Nt.imageAltText,"link"),ve.imageMarker&&ne.push(Nt.imageMarker)),ve.header&&ne.push(Nt.header,Nt.header+"-"+ve.header),ve.quote&&(ne.push(Nt.quote),!ie.maxBlockquoteDepth||ie.maxBlockquoteDepth>=ve.quote?ne.push(Nt.quote+"-"+ve.quote):ne.push(Nt.quote+"-"+ie.maxBlockquoteDepth)),ve.list!==!1){var Pn=(ve.listStack.length-1)%3;Pn?Pn===1?ne.push(Nt.list2):ne.push(Nt.list3):ne.push(Nt.list1)}return ve.trailingSpaceNewLine?ne.push("trailing-space-new-line"):ve.trailingSpace&&ne.push("trailing-space-"+(ve.trailingSpace%2?"a":"b")),ne.length?ne.join(" "):null}function de(ve,ne){if(ve.match(Ct,!0))return ue(ne)}function be(ve,ne){var Se=ne.text(ve,ne);if(typeof Se!="undefined")return Se;if(ne.list)return ne.list=null,ue(ne);if(ne.taskList){var Pn=ve.match(re,!0)[1]===" ";return Pn?ne.taskOpen=!0:ne.taskClosed=!0,ie.highlightFormatting&&(ne.formatting="task"),ne.taskList=!1,ue(ne)}if(ne.taskOpen=!1,ne.taskClosed=!1,ne.header&&ve.match(/^#+$/,!0))return ie.highlightFormatting&&(ne.formatting="header"),ue(ne);var Mn=ve.next();if(ne.linkTitle){ne.linkTitle=!1;var Xe=Mn;Mn==="("&&(Xe=")"),Xe=(Xe+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Nn="^\\s*(?:[^"+Xe+"\\\\]+|\\\\\\\\|\\\\.)"+Xe;if(ve.match(new RegExp(Nn),!0))return Nt.linkHref}if(Mn==="`"){var Zn=ne.formatting;ie.highlightFormatting&&(ne.formatting="code"),ve.eatWhile("`");var fi=ve.current().length;if(ne.code==0&&(!ne.quote||fi==1))return ne.code=fi,ue(ne);if(fi==ne.code){var zn=ue(ne);return ne.code=0,zn}else return ne.formatting=Zn,ue(ne)}else if(ne.code)return ue(ne);if(Mn==="\\"&&(ve.next(),ie.highlightFormatting)){var Si=ue(ne),nn=Nt.formatting+"-escape";return Si?Si+" "+nn:nn}if(Mn==="!"&&ve.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ne.imageMarker=!0,ne.image=!0,ie.highlightFormatting&&(ne.formatting="image"),ue(ne);if(Mn==="["&&ne.imageMarker&&ve.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ne.imageMarker=!1,ne.imageAltText=!0,ie.highlightFormatting&&(ne.formatting="image"),ue(ne);if(Mn==="]"&&ne.imageAltText){ie.highlightFormatting&&(ne.formatting="image");var Si=ue(ne);return ne.imageAltText=!1,ne.image=!1,ne.inline=ne.f=Ke,Si}if(Mn==="["&&!ne.image)return ne.linkText&&ve.match(/^.*?\]/)||(ne.linkText=!0,ie.highlightFormatting&&(ne.formatting="link")),ue(ne);if(Mn==="]"&&ne.linkText){ie.highlightFormatting&&(ne.formatting="link");var Si=ue(ne);return ne.linkText=!1,ne.inline=ne.f=ve.match(/\(.*?\)| ?\[.*?\]/,!1)?Ke:be,Si}if(Mn==="<"&&ve.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ne.f=ne.inline=Jt,ie.highlightFormatting&&(ne.formatting="link");var Si=ue(ne);return Si?Si+=" ":Si="",Si+Nt.linkInline}if(Mn==="<"&&ve.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ne.f=ne.inline=Jt,ie.highlightFormatting&&(ne.formatting="link");var Si=ue(ne);return Si?Si+=" ":Si="",Si+Nt.linkEmail}if(ie.xml&&Mn==="<"&&ve.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Fi=ve.string.indexOf(">",ve.pos);if(Fi!=-1){var Ti=ve.string.substring(ve.start,Fi);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Ti)&&(ne.md_inside=!0)}return ve.backUp(1),ne.htmlState=Mt.startState(Ie),dt(ve,ne,Gt)}if(ie.xml&&Mn==="<"&&ve.match(/^\/\w*?>/))return ne.md_inside=!1,"tag";if(Mn==="*"||Mn==="_"){for(var Lt=1,Ot=ve.pos==1?" ":ve.string.charAt(ve.pos-2);Lt<3&&ve.eat(Mn);)Lt++;var mt=ve.peek()||" ",ft=!/\s/.test(mt)&&(!lt.test(mt)||/\s/.test(Ot)||lt.test(Ot)),pt=!/\s/.test(Ot)&&(!lt.test(Ot)||/\s/.test(mt)||lt.test(mt)),At=null,le=null;if(Lt%2&&(!ne.em&&ft&&(Mn==="*"||!pt||lt.test(Ot))?At=!0:ne.em==Mn&&pt&&(Mn==="*"||!ft||lt.test(mt))&&(At=!1)),Lt>1&&(!ne.strong&&ft&&(Mn==="*"||!pt||lt.test(Ot))?le=!0:ne.strong==Mn&&pt&&(Mn==="*"||!ft||lt.test(mt))&&(le=!1)),le!=null||At!=null){ie.highlightFormatting&&(ne.formatting=At==null?"strong":le==null?"em":"strong em"),At===!0&&(ne.em=Mn),le===!0&&(ne.strong=Mn);var zn=ue(ne);return At===!1&&(ne.em=!1),le===!1&&(ne.strong=!1),zn}}else if(Mn===" "&&(ve.eat("*")||ve.eat("_"))){if(ve.peek()===" ")return ue(ne);ve.backUp(1)}if(ie.strikethrough){if(Mn==="~"&&ve.eatWhile(Mn)){if(ne.strikethrough){ie.highlightFormatting&&(ne.formatting="strikethrough");var zn=ue(ne);return ne.strikethrough=!1,zn}else if(ve.match(/^[^\s]/,!1))return ne.strikethrough=!0,ie.highlightFormatting&&(ne.formatting="strikethrough"),ue(ne)}else if(Mn===" "&&ve.match(/^~~/,!0)){if(ve.peek()===" ")return ue(ne);ve.backUp(2)}}if(ie.emoji&&Mn===":"&&ve.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ne.emoji=!0,ie.highlightFormatting&&(ne.formatting="emoji");var we=ue(ne);return ne.emoji=!1,we}return Mn===" "&&(ve.match(/^ +$/,!1)?ne.trailingSpace++:ne.trailingSpace&&(ne.trailingSpaceNewLine=!0)),ue(ne)}function Jt(ve,ne){var Se=ve.next();if(Se===">"){ne.f=ne.inline=be,ie.highlightFormatting&&(ne.formatting="link");var Pn=ue(ne);return Pn?Pn+=" ":Pn="",Pn+Nt.linkInline}return ve.match(/^[^>]+/,!0),Nt.linkInline}function Ke(ve,ne){if(ve.eatSpace())return null;var Se=ve.next();return Se==="("||Se==="["?(ne.f=ne.inline=Ge(Se==="("?")":"]"),ie.highlightFormatting&&(ne.formatting="link-string"),ne.linkHref=!0,ue(ne)):"error"}var Wt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Ge(ve){return function(ne,Se){var Pn=ne.next();if(Pn===ve){Se.f=Se.inline=be,ie.highlightFormatting&&(Se.formatting="link-string");var Mn=ue(Se);return Se.linkHref=!1,Mn}return ne.match(Wt[ve]),Se.linkHref=!0,ue(Se)}}function He(ve,ne){return ve.match(/^([^\]\\]|\\.)*\]:/,!1)?(ne.f=Me,ve.next(),ie.highlightFormatting&&(ne.formatting="link"),ne.linkText=!0,ue(ne)):ht(ve,ne,be)}function Me(ve,ne){if(ve.match(/^\]:/,!0)){ne.f=ne.inline=We,ie.highlightFormatting&&(ne.formatting="link");var Se=ue(ne);return ne.linkText=!1,Se}return ve.match(/^([^\]\\]|\\.)+/,!0),Nt.linkText}function We(ve,ne){return ve.eatSpace()?null:(ve.match(/^[^\s]+/,!0),ve.peek()===void 0?ne.linkTitle=!0:ve.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),ne.f=ne.inline=be,Nt.linkHref+" url")}var _e={startState:function(){return{f:_t,prevLine:{stream:null},thisLine:{stream:null},block:_t,htmlState:null,indentation:0,inline:be,text:de,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(ve){return{f:ve.f,prevLine:ve.prevLine,thisLine:ve.thisLine,block:ve.block,htmlState:ve.htmlState&&Mt.copyState(Ie,ve.htmlState),indentation:ve.indentation,localMode:ve.localMode,localState:ve.localMode?Mt.copyState(ve.localMode,ve.localState):null,inline:ve.inline,text:ve.text,formatting:!1,linkText:ve.linkText,linkTitle:ve.linkTitle,linkHref:ve.linkHref,code:ve.code,em:ve.em,strong:ve.strong,strikethrough:ve.strikethrough,emoji:ve.emoji,header:ve.header,setext:ve.setext,hr:ve.hr,taskList:ve.taskList,list:ve.list,listStack:ve.listStack.slice(0),quote:ve.quote,indentedCode:ve.indentedCode,trailingSpace:ve.trailingSpace,trailingSpaceNewLine:ve.trailingSpaceNewLine,md_inside:ve.md_inside,fencedEndRE:ve.fencedEndRE}},token:function(ve,ne){if(ne.formatting=!1,ve!=ne.thisLine.stream){if(ne.header=0,ne.hr=!1,ve.match(/^\s*$/,!0))return It(ne),null;if(ne.prevLine=ne.thisLine,ne.thisLine={stream:ve},ne.taskList=!1,ne.trailingSpace=0,ne.trailingSpaceNewLine=!1,!ne.localState&&(ne.f=ne.block,ne.f!=Gt)){var Se=ve.match(/^\s*/,!0)[0].replace(/\t/g,rt).length;if(ne.indentation=Se,ne.indentationDiff=null,Se>0)return null}}return ne.f(ve,ne)},innerMode:function(ve){return ve.block==Gt?{state:ve.htmlState,mode:Ie}:ve.localState?{state:ve.localState,mode:ve.localMode}:{state:ve,mode:_e}},indent:function(ve,ne,Se){return ve.block==Gt&&Ie.indent?Ie.indent(ve.htmlState,ne,Se):ve.localState&&ve.localMode.indent?ve.localMode.indent(ve.localState,ne,Se):Mt.Pass},blankLine:It,getType:ue,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return _e},"xml"),Mt.defineMIME("text/markdown","markdown"),Mt.defineMIME("text/x-markdown","markdown")})},98101:function(hi,Cn,bt){(function(Mt){Mt(bt(89780))})(function(Mt){"use strict";Mt.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 ce=0;ce<Mt.modeInfo.length;ce++){var ie=Mt.modeInfo[ce];ie.mimes&&(ie.mime=ie.mimes[0])}Mt.findModeByMIME=function(Ie){Ie=Ie.toLowerCase();for(var ee=0;ee<Mt.modeInfo.length;ee++){var Zt=Mt.modeInfo[ee];if(Zt.mime==Ie)return Zt;if(Zt.mimes){for(var Nt=0;Nt<Zt.mimes.length;Nt++)if(Zt.mimes[Nt]==Ie)return Zt}}if(/\+xml$/.test(Ie))return Mt.findModeByMIME("application/xml");if(/\+json$/.test(Ie))return Mt.findModeByMIME("application/json")},Mt.findModeByExtension=function(Ie){Ie=Ie.toLowerCase();for(var ee=0;ee<Mt.modeInfo.length;ee++){var Zt=Mt.modeInfo[ee];if(Zt.ext){for(var Nt=0;Nt<Zt.ext.length;Nt++)if(Zt.ext[Nt]==Ie)return Zt}}},Mt.findModeByFileName=function(Ie){for(var ee=0;ee<Mt.modeInfo.length;ee++){var Zt=Mt.modeInfo[ee];if(Zt.file&&Zt.file.test(Ie))return Zt}var Nt=Ie.lastIndexOf("."),jt=Nt>-1&&Ie.substring(Nt+1,Ie.length);if(jt)return Mt.findModeByExtension(jt)},Mt.findModeByName=function(Ie){Ie=Ie.toLowerCase();for(var ee=0;ee<Mt.modeInfo.length;ee++){var Zt=Mt.modeInfo[ee];if(Zt.name.toLowerCase()==Ie)return Zt;if(Zt.alias){for(var Nt=0;Nt<Zt.alias.length;Nt++)if(Zt.alias[Nt].toLowerCase()==Ie)return Zt}}}})},67549:function(hi,Cn,bt){(function(Mt){Mt(bt(89780))})(function(Mt){"use strict";Mt.defineMode("stex",function(ce,ie){"use strict";function Ie(Ct,et){Ct.cmdState.push(et)}function ee(Ct){return Ct.cmdState.length>0?Ct.cmdState[Ct.cmdState.length-1]:null}function Zt(Ct){var et=Ct.cmdState.pop();et&&et.closeBracket()}function Nt(Ct){for(var et=Ct.cmdState,tt=et.length-1;tt>=0;tt--){var lt=et[tt];if(lt.name!="DEFAULT")return lt}return{styleIdentifier:function(){return null}}}function jt(Ct,et,tt){return function(){this.name=Ct,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 qt={};qt.importmodule=jt("importmodule","tag",["string","builtin"]),qt.documentclass=jt("documentclass","tag",["","atom"]),qt.usepackage=jt("usepackage","tag",["atom"]),qt.begin=jt("begin","tag",["atom"]),qt.end=jt("end","tag",["atom"]),qt.label=jt("label","tag",["atom"]),qt.ref=jt("ref","tag",["atom"]),qt.eqref=jt("eqref","tag",["atom"]),qt.cite=jt("cite","tag",["atom"]),qt.bibitem=jt("bibitem","tag",["atom"]),qt.Bibitem=jt("Bibitem","tag",["atom"]),qt.RBibitem=jt("RBibitem","tag",["atom"]),qt.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Pt(Ct,et){Ct.f=et}function re(Ct,et){var tt;if(Ct.match(/^\\[a-zA-Z@]+/)){var lt=Ct.current().slice(1);return tt=qt.hasOwnProperty(lt)?qt[lt]:qt.DEFAULT,tt=new tt,Ie(et,tt),Pt(et,Yt),tt.style}if(Ct.match(/^\\[$&%#{}_]/)||Ct.match(/^\\[,;!\/\\]/))return"tag";if(Ct.match("\\["))return Pt(et,function(ht,dt){return Kt(ht,dt,"\\]")}),"keyword";if(Ct.match("\\("))return Pt(et,function(ht,dt){return Kt(ht,dt,"\\)")}),"keyword";if(Ct.match("$$"))return Pt(et,function(ht,dt){return Kt(ht,dt,"$$")}),"keyword";if(Ct.match("$"))return Pt(et,function(ht,dt){return Kt(ht,dt,"$")}),"keyword";var rt=Ct.next();if(rt=="%")return Ct.skipToEnd(),"comment";if(rt=="}"||rt=="]"){if(tt=ee(et),tt)tt.closeBracket(rt),Pt(et,Yt);else return"error";return"bracket"}else return rt=="{"||rt=="["?(tt=qt.DEFAULT,tt=new tt,Ie(et,tt),"bracket"):/\d/.test(rt)?(Ct.eatWhile(/[\w.%]/),"atom"):(Ct.eatWhile(/[\w\-_]/),tt=Nt(et),tt.name=="begin"&&(tt.argument=Ct.current()),tt.styleIdentifier())}function Kt(Ct,et,tt){if(Ct.eatSpace())return null;if(tt&&Ct.match(tt))return Pt(et,re),"keyword";if(Ct.match(/^\\[a-zA-Z@]+/))return"tag";if(Ct.match(/^[a-zA-Z]+/))return"variable-2";if(Ct.match(/^\\[$&%#{}_]/)||Ct.match(/^\\[,;!\/]/)||Ct.match(/^[\^_&]/))return"tag";if(Ct.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Ct.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var lt=Ct.next();return lt=="{"||lt=="}"||lt=="["||lt=="]"||lt=="("||lt==")"?"bracket":lt=="%"?(Ct.skipToEnd(),"comment"):"error"}function Yt(Ct,et){var tt=Ct.peek(),lt;return tt=="{"||tt=="["?(lt=ee(et),lt.openBracket(tt),Ct.eat(tt),Pt(et,re),"bracket"):/[ \t\r]/.test(tt)?(Ct.eat(tt),null):(Pt(et,re),Zt(et),re(Ct,et))}return{startState:function(){var Ct=ie.inMathMode?function(et,tt){return Kt(et,tt)}:re;return{cmdState:[],f:Ct}},copyState:function(Ct){return{cmdState:Ct.cmdState.slice(),f:Ct.f}},token:function(Ct,et){return et.f(Ct,et)},blankLine:function(Ct){Ct.f=re,Ct.cmdState.length=0},lineComment:"%"}}),Mt.defineMIME("text/x-stex","stex"),Mt.defineMIME("text/x-latex","stex")})},15525:function(hi,Cn,bt){(function(Mt){Mt(bt(89780))})(function(Mt){"use strict";var ce={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},ie={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};Mt.defineMode("xml",function(Ie,ee){var Zt=Ie.indentUnit,Nt={},jt=ee.htmlMode?ce:ie;for(var qt in jt)Nt[qt]=jt[qt];for(var qt in ee)Nt[qt]=ee[qt];var Pt,re;function Kt(Jt,Ke){function Wt(Me){return Ke.tokenize=Me,Me(Jt,Ke)}var Ge=Jt.next();if(Ge=="<")return Jt.eat("!")?Jt.eat("[")?Jt.match("CDATA[")?Wt(et("atom","]]>")):null:Jt.match("--")?Wt(et("comment","-->")):Jt.match("DOCTYPE",!0,!0)?(Jt.eatWhile(/[\w\._\-]/),Wt(tt(1))):null:Jt.eat("?")?(Jt.eatWhile(/[\w\._\-]/),Ke.tokenize=et("meta","?>"),"meta"):(Pt=Jt.eat("/")?"closeTag":"openTag",Ke.tokenize=Yt,"tag bracket");if(Ge=="&"){var He;return Jt.eat("#")?Jt.eat("x")?He=Jt.eatWhile(/[a-fA-F\d]/)&&Jt.eat(";"):He=Jt.eatWhile(/[\d]/)&&Jt.eat(";"):He=Jt.eatWhile(/[\w\.\-:]/)&&Jt.eat(";"),He?"atom":"error"}else return Jt.eatWhile(/[^&<]/),null}Kt.isInText=!0;function Yt(Jt,Ke){var Wt=Jt.next();if(Wt==">"||Wt=="/"&&Jt.eat(">"))return Ke.tokenize=Kt,Pt=Wt==">"?"endTag":"selfcloseTag","tag bracket";if(Wt=="=")return Pt="equals",null;if(Wt=="<"){Ke.tokenize=Kt,Ke.state=dt,Ke.tagName=Ke.tagStart=null;var Ge=Ke.tokenize(Jt,Ke);return Ge?Ge+" tag error":"tag error"}else return/[\'\"]/.test(Wt)?(Ke.tokenize=Ct(Wt),Ke.stringStartCol=Jt.column(),Ke.tokenize(Jt,Ke)):(Jt.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ct(Jt){var Ke=function(Wt,Ge){for(;!Wt.eol();)if(Wt.next()==Jt){Ge.tokenize=Yt;break}return"string"};return Ke.isInAttribute=!0,Ke}function et(Jt,Ke){return function(Wt,Ge){for(;!Wt.eol();){if(Wt.match(Ke)){Ge.tokenize=Kt;break}Wt.next()}return Jt}}function tt(Jt){return function(Ke,Wt){for(var Ge;(Ge=Ke.next())!=null;){if(Ge=="<")return Wt.tokenize=tt(Jt+1),Wt.tokenize(Ke,Wt);if(Ge==">")if(Jt==1){Wt.tokenize=Kt;break}else return Wt.tokenize=tt(Jt-1),Wt.tokenize(Ke,Wt)}return"meta"}}function lt(Jt,Ke,Wt){this.prev=Jt.context,this.tagName=Ke,this.indent=Jt.indented,this.startOfLine=Wt,(Nt.doNotIndent.hasOwnProperty(Ke)||Jt.context&&Jt.context.noIndent)&&(this.noIndent=!0)}function rt(Jt){Jt.context&&(Jt.context=Jt.context.prev)}function ht(Jt,Ke){for(var Wt;;){if(!Jt.context||(Wt=Jt.context.tagName,!Nt.contextGrabbers.hasOwnProperty(Wt)||!Nt.contextGrabbers[Wt].hasOwnProperty(Ke)))return;rt(Jt)}}function dt(Jt,Ke,Wt){return Jt=="openTag"?(Wt.tagStart=Ke.column(),St):Jt=="closeTag"?It:dt}function St(Jt,Ke,Wt){return Jt=="word"?(Wt.tagName=Ke.current(),re="tag",oe):Nt.allowMissingTagName&&Jt=="endTag"?(re="tag bracket",oe(Jt,Ke,Wt)):(re="error",St)}function It(Jt,Ke,Wt){if(Jt=="word"){var Ge=Ke.current();return Wt.context&&Wt.context.tagName!=Ge&&Nt.implicitlyClosed.hasOwnProperty(Wt.context.tagName)&&rt(Wt),Wt.context&&Wt.context.tagName==Ge||Nt.matchClosing===!1?(re="tag",_t):(re="tag error",Gt)}else return Nt.allowMissingTagName&&Jt=="endTag"?(re="tag bracket",_t(Jt,Ke,Wt)):(re="error",Gt)}function _t(Jt,Ke,Wt){return Jt!="endTag"?(re="error",_t):(rt(Wt),dt)}function Gt(Jt,Ke,Wt){return re="error",_t(Jt,Ke,Wt)}function oe(Jt,Ke,Wt){if(Jt=="word")return re="attribute",ue;if(Jt=="endTag"||Jt=="selfcloseTag"){var Ge=Wt.tagName,He=Wt.tagStart;return Wt.tagName=Wt.tagStart=null,Jt=="selfcloseTag"||Nt.autoSelfClosers.hasOwnProperty(Ge)?ht(Wt,Ge):(ht(Wt,Ge),Wt.context=new lt(Wt,Ge,He==Wt.indented)),dt}return re="error",oe}function ue(Jt,Ke,Wt){return Jt=="equals"?de:(Nt.allowMissing||(re="error"),oe(Jt,Ke,Wt))}function de(Jt,Ke,Wt){return Jt=="string"?be:Jt=="word"&&Nt.allowUnquoted?(re="string",oe):(re="error",oe(Jt,Ke,Wt))}function be(Jt,Ke,Wt){return Jt=="string"?be:oe(Jt,Ke,Wt)}return{startState:function(Jt){var Ke={tokenize:Kt,state:dt,indented:Jt||0,tagName:null,tagStart:null,context:null};return Jt!=null&&(Ke.baseIndent=Jt),Ke},token:function(Jt,Ke){if(!Ke.tagName&&Jt.sol()&&(Ke.indented=Jt.indentation()),Jt.eatSpace())return null;Pt=null;var Wt=Ke.tokenize(Jt,Ke);return(Wt||Pt)&&Wt!="comment"&&(re=null,Ke.state=Ke.state(Pt||Wt,Jt,Ke),re&&(Wt=re=="error"?Wt+" error":re)),Wt},indent:function(Jt,Ke,Wt){var Ge=Jt.context;if(Jt.tokenize.isInAttribute)return Jt.tagStart==Jt.indented?Jt.stringStartCol+1:Jt.indented+Zt;if(Ge&&Ge.noIndent)return Mt.Pass;if(Jt.tokenize!=Yt&&Jt.tokenize!=Kt)return Wt?Wt.match(/^(\s*)/)[0].length:0;if(Jt.tagName)return Nt.multilineTagIndentPastTag!==!1?Jt.tagStart+Jt.tagName.length+2:Jt.tagStart+Zt*(Nt.multilineTagIndentFactor||1);if(Nt.alignCDATA&&/<!\[CDATA\[/.test(Ke))return 0;var He=Ke&&/^<(\/)?([\w_:\.-]*)/.exec(Ke);if(He&&He[1])for(;Ge;)if(Ge.tagName==He[2]){Ge=Ge.prev;break}else if(Nt.implicitlyClosed.hasOwnProperty(Ge.tagName))Ge=Ge.prev;else break;else if(He)for(;Ge;){var Me=Nt.contextGrabbers[Ge.tagName];if(Me&&Me.hasOwnProperty(He[2]))Ge=Ge.prev;else break}for(;Ge&&Ge.prev&&!Ge.startOfLine;)Ge=Ge.prev;return Ge?Ge.indent+Zt:Jt.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Nt.htmlMode?"html":"xml",helperType:Nt.htmlMode?"html":"xml",skipAttribute:function(Jt){Jt.state==de&&(Jt.state=oe)},xmlCurrentTag:function(Jt){return Jt.tagName?{name:Jt.tagName,close:Jt.type=="closeTag"}:null},xmlCurrentContext:function(Jt){for(var Ke=[],Wt=Jt.context;Wt;Wt=Wt.prev)Wt.tagName&&Ke.push(Wt.tagName);return Ke.reverse()}}}),Mt.defineMIME("text/xml","xml"),Mt.defineMIME("application/xml","xml"),Mt.mimeModes.hasOwnProperty("text/html")||Mt.defineMIME("text/html",{name:"xml",htmlMode:!0})})},97774:function(hi,Cn,bt){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.default=void 0;var Mt=Object.assign||function(tt){for(var lt=1;lt<arguments.length;lt++){var rt=arguments[lt];for(var ht in rt)Object.prototype.hasOwnProperty.call(rt,ht)&&(tt[ht]=rt[ht])}return tt},ce=function(){function tt(lt,rt){for(var ht=0;ht<rt.length;ht++){var dt=rt[ht];dt.enumerable=dt.enumerable||!1,dt.configurable=!0,"value"in dt&&(dt.writable=!0),Object.defineProperty(lt,dt.key,dt)}}return function(lt,rt,ht){return rt&&tt(lt.prototype,rt),ht&&tt(lt,ht),lt}}(),ie=bt(59301),Ie=re(ie),ee=bt(12708),Zt=re(ee),Nt=bt(53291),jt=re(Nt),qt=bt(47242),Pt=bt(65429);function re(tt){return tt&&tt.__esModule?tt:{default:tt}}function Kt(tt,lt){if(!(tt instanceof lt))throw new TypeError("Cannot call a class as a function")}function Yt(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 Ct(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){Ct(lt,tt);function lt(rt){Kt(this,lt);var ht=Yt(this,(lt.__proto__||Object.getPrototypeOf(lt)).call(this,rt));return ht.getEchartsInstance=function(){return ht.echartsLib.getInstanceByDom(ht.echartsElement)||ht.echartsLib.init(ht.echartsElement,ht.props.theme,ht.props.opts)},ht.dispose=function(){if(ht.echartsElement){try{(0,qt.clear)(ht.echartsElement)}catch(dt){console.warn(dt)}ht.echartsLib.dispose(ht.echartsElement)}},ht.rerender=function(){var dt=ht.props,St=dt.onEvents,It=dt.onChartReady,_t=ht.renderEchartDom();ht.bindEvents(_t,St||{}),typeof It=="function"&&ht.props.onChartReady(_t),ht.echartsElement&&(0,qt.bind)(ht.echartsElement,function(){try{_t.resize()}catch(Gt){console.warn(Gt)}})},ht.bindEvents=function(dt,St){var It=function(oe,ue){typeof oe=="string"&&typeof ue=="function"&&dt.on(oe,function(de){ue(de,dt)})};for(var _t in St)Object.prototype.hasOwnProperty.call(St,_t)&&It(_t,St[_t])},ht.renderEchartDom=function(){var dt=ht.getEchartsInstance();return dt.setOption(ht.props.option,ht.props.notMerge||!1,ht.props.lazyUpdate||!1),ht.props.showLoading?dt.showLoading(ht.props.loadingOption||null):dt.hideLoading(),dt},ht.echartsLib=rt.echarts,ht.echartsElement=null,ht}return ce(lt,[{key:"componentDidMount",value:function(){this.rerender()}},{key:"componentDidUpdate",value:function(ht){if(!(typeof this.props.shouldSetOption=="function"&&!this.props.shouldSetOption(ht,this.props))){if(!(0,jt.default)(ht.theme,this.props.theme)||!(0,jt.default)(ht.opts,this.props.opts)||!(0,jt.default)(ht.onEvents,this.props.onEvents)){this.dispose(),this.rerender();return}var dt=["option","notMerge","lazyUpdate","showLoading","loadingOption"];if(!(0,jt.default)((0,Pt.pick)(this.props,dt),(0,Pt.pick)(ht,dt))){var St=this.renderEchartDom();if(!(0,jt.default)(ht.style,this.props.style)||!(0,jt.default)(ht.className,this.props.className))try{St.resize()}catch(It){console.warn(It)}}}}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"render",value:function(){var ht=this,dt=this.props,St=dt.style,It=dt.className,_t=Mt({height:300},St);return Ie.default.createElement("div",{ref:function(oe){ht.echartsElement=oe},style:_t,className:"echarts-for-react "+It})}}]),lt}(ie.Component);Cn.default=et,et.propTypes={option:Zt.default.object.isRequired,echarts:Zt.default.object,notMerge:Zt.default.bool,lazyUpdate:Zt.default.bool,style:Zt.default.object,className:Zt.default.string,theme:Zt.default.oneOfType([Zt.default.string,Zt.default.object]),onChartReady:Zt.default.func,showLoading:Zt.default.bool,loadingOption:Zt.default.object,onEvents:Zt.default.object,opts:Zt.default.shape({devicePixelRatio:Zt.default.number,renderer:Zt.default.oneOf(["canvas","svg"]),width:Zt.default.oneOfType([Zt.default.number,Zt.default.oneOf([null,void 0,"auto"])]),height:Zt.default.oneOfType([Zt.default.number,Zt.default.oneOf([null,void 0,"auto"])])}),shouldSetOption:Zt.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(hi,Cn,bt){"use strict";var Mt;Mt={value:!0},Cn.Z=void 0;var ce=bt(76411),ie=Zt(ce),Ie=bt(97774),ee=Zt(Ie);function Zt(re){return re&&re.__esModule?re:{default:re}}function Nt(re,Kt){if(!(re instanceof Kt))throw new TypeError("Cannot call a class as a function")}function jt(re,Kt){if(!re)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Kt&&(typeof Kt=="object"||typeof Kt=="function")?Kt:re}function qt(re,Kt){if(typeof Kt!="function"&&Kt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Kt);re.prototype=Object.create(Kt&&Kt.prototype,{constructor:{value:re,enumerable:!1,writable:!0,configurable:!0}}),Kt&&(Object.setPrototypeOf?Object.setPrototypeOf(re,Kt):re.__proto__=Kt)}var Pt=function(re){qt(Kt,re);function Kt(Yt){Nt(this,Kt);var Ct=jt(this,(Kt.__proto__||Object.getPrototypeOf(Kt)).call(this,Yt));return Ct.echartsLib=ie.default,Ct}return Kt}(ee.default);Cn.Z=Pt},65429:function(hi,Cn){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});var bt=Cn.pick=function(ce,ie){var Ie={};return ie.forEach(function(ee){Ie[ee]=ce[ee]}),Ie}},53291:function(hi){"use strict";var Cn=Array.isArray,bt=Object.keys,Mt=Object.prototype.hasOwnProperty;hi.exports=function ce(ie,Ie){if(ie===Ie)return!0;if(ie&&Ie&&typeof ie=="object"&&typeof Ie=="object"){var ee=Cn(ie),Zt=Cn(Ie),Nt,jt,qt;if(ee&&Zt){if(jt=ie.length,jt!=Ie.length)return!1;for(Nt=jt;Nt--!==0;)if(!ce(ie[Nt],Ie[Nt]))return!1;return!0}if(ee!=Zt)return!1;var Pt=ie instanceof Date,re=Ie instanceof Date;if(Pt!=re)return!1;if(Pt&&re)return ie.getTime()==Ie.getTime();var Kt=ie instanceof RegExp,Yt=Ie instanceof RegExp;if(Kt!=Yt)return!1;if(Kt&&Yt)return ie.toString()==Ie.toString();var Ct=bt(ie);if(jt=Ct.length,jt!==bt(Ie).length)return!1;for(Nt=jt;Nt--!==0;)if(!Mt.call(Ie,Ct[Nt]))return!1;for(Nt=jt;Nt--!==0;)if(qt=Ct[Nt],!ce(ie[qt],Ie[qt]))return!1;return!0}return ie!==ie&&Ie!==Ie}},12378:function(hi,Cn,bt){"use strict";bt.d(Cn,{$u:function(){return qt},BD:function(){return Lt},E9:function(){return jt},FF:function(){return _o},FJ:function(){return dt},Hn:function(){return ht},KX:function(){return It},NB:function(){return Re},S0:function(){return nn},UL:function(){return Pt},Vk:function(){return rt},Vm:function(){return ke},YI:function(){return Fi},ZA:function(){return ie},Zt:function(){return re},al:function(){return At},bn:function(){return pt},bx:function(){return Ot},g2:function(){return Ti},h1:function(){return de},hD:function(){return mr},l4:function(){return Zt},rU:function(){return Oe},s_:function(){return mt},uz:function(){return me},z6:function(){return Kt}}),hi=bt.hmd(hi),function(){var $t;function ri(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function ws(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:ri(a)}}function Is(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},va;if(typeof Object.setPrototypeOf=="function")va=Object.setPrototypeOf;else{var qs;t:{var _r={a:!0},Dr={};try{Dr.__proto__=_r,qs=Dr.a;break t}catch(a){}qs=!1}va=qs?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var kn=va;function Tn(a,y){if(a.prototype=ma(y.prototype),a.prototype.constructor=a,kn)kn(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 De=typeof bt.g!="undefined"&&bt.g!=null?bt.g:self,ti=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},yi=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function dn(a,y){if(y){var x=De;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&&yi(x,a,{writable:!0,value:y})}}dn("Object.assign",function(a){return a||ti}),dn("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 Le=typeof globalThis=="object"&&globalThis||typeof bt.g=="object"&&bt.g.global===bt.g&&bt.g||typeof self=="object"&&self.self===self&&self||{};Le.requestAnimationFrame===void 0&&(Le.setImmediate===void 0?Le.requestAnimationFrame=function(a){Le.setTimeout(a,0)}:Le.requestAnimationFrame=Le.setImmediate);function yn(){}function Qn(a,y){var x=-1;return function(){var b=this,E=arguments;x!==-1&&Le.clearTimeout(x),x=wi(function(){x=-1,a.apply(b,E)},y)}}function wi(a,y){return Le.setTimeout(a,y)}function Oi(a){return Le.document.createElement(a)}function qe(a){throw Error(a)}function oi(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),qe(a)}function Pi(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),qe(x+" is not in the range "+y+": "+a)}function er(a){Le.console&&Le.console.log(a)}function On(a){return typeof a=="object"&&a!==null}function ui(a){return Array.isArray(a)||Le.NodeList&&a instanceof Le.NodeList||Le.HTMLCollection&&a instanceof Le.HTMLCollection}function Cr(a){return Array.prototype.slice.call(a)}function or(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):qe("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function zr(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):qe("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function ar(){var a=$o.pop();return a===void 0?[]:a}function Lr(a){a.length=0,$o.push(a)}function nr(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(On(a)&&a.constructor)return nr(a.constructor);return typeof a}function Pr(a){var y=a;return On(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 io(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 Uo(a,y,x){Object.defineProperty(Vt.prototype,a,{get:y,set:x})}function gi(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 Qo=Le.navigator!==void 0&&0<Le.navigator.userAgent.indexOf("Trident/7"),ps=Le.navigator!==void 0&&Le.navigator.platform!==void 0&&Le.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,$o=[];Object.freeze([]),yn.className="Util",yn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",yn.adym="gojs.net",yn.vfo="28e645fdb266",yn.className="Util";function pi(a,y,x){Yo(this),this.j=a,this.xa=y,this.o=x}pi.prototype.toString=function(){return"EnumValue."+this.xa};function ur(a,y){return y==null||y===""?null:a[y]}De.Object.defineProperties(pi.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),pi.className="EnumValue";function Ur(){this.ew=[]}Ur.prototype.toString=function(){return this.ew.join("")},Ur.prototype.add=function(a){a!==""&&this.ew.push(a)},Ur.className="StringBuilder";function uo(){}uo.className="PropertyCollection";var qr={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){Le.console&&Le.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 ko(){}ko.prototype.reset=function(){},ko.prototype.next=function(){return!1},ko.prototype.Ad=function(){return!1},ko.prototype.first=function(){return null},ko.prototype.any=function(){return!1},ko.prototype.all=function(){return!0},ko.prototype.each=function(){return this},ko.prototype.map=function(){return this},ko.prototype.filter=function(){return this},ko.prototype.de=function(){},ko.prototype.toString=function(){return"EmptyIterator"},De.Object.defineProperties(ko.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),ko.prototype.first=ko.prototype.first,ko.prototype.hasNext=ko.prototype.Ad,ko.prototype.next=ko.prototype.next,ko.prototype.reset=ko.prototype.reset;var di=null;ko.className="EmptyIterator",di=new ko;function Co(a){this.key=-1,this.value=a}Co.prototype.reset=function(){this.key=-1},Co.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Co.prototype.Ad=function(){return this.next()},Co.prototype.first=function(){return this.key=0,this.value},Co.prototype.any=function(a){return this.key=-1,a(this.value)},Co.prototype.all=function(a){return this.key=-1,a(this.value)},Co.prototype.each=function(a){return this.key=-1,a(this.value),this},Co.prototype.map=function(a){return new Co(a(this.value))},Co.prototype.filter=function(a){return a(this.value)?new Co(this.value):di},Co.prototype.de=function(){this.value=null},Co.prototype.toString=function(){return"SingletonIterator("+this.value+")"},De.Object.defineProperties(Co.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),Co.prototype.first=Co.prototype.first,Co.prototype.hasNext=Co.prototype.Ad,Co.prototype.next=Co.prototype.next,Co.prototype.reset=Co.prototype.reset,Co.className="SingletonIterator";function jr(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}jr.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},jr.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},jr.prototype.Ad=function(){return this.next()},jr.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},jr.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},jr.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},jr.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},jr.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},jr.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},jr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},jr.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},De.Object.defineProperties(jr.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}}}),jr.prototype.first=jr.prototype.first,jr.prototype.hasNext=jr.prototype.Ad,jr.prototype.next=jr.prototype.next,jr.prototype.reset=jr.prototype.reset,jr.className="ListIterator";function Sr(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}Sr.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},Sr.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)},Sr.prototype.Ad=function(){return this.next()},Sr.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},Sr.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},Sr.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},Sr.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},Sr.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},Sr.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},Sr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Sr.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},De.Object.defineProperties(Sr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Sr.prototype.first=Sr.prototype.first,Sr.prototype.hasNext=Sr.prototype.Ad,Sr.prototype.next=Sr.prototype.next,Sr.prototype.reset=Sr.prototype.reset,Sr.className="ListIteratorBackwards";function Ci(a){Yo(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&qe("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}$t=Ci.prototype,$t.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},$t.freeze=function(){return this._isFrozen=!0,this},$t.ka=function(){return this._isFrozen=!1,this},$t.toString=function(){return"List()#"+vs(this)},$t.add=function(a){return a===null?this:(this._isFrozen&&oi(this,a),this.s.push(a),this.xb(),this)},$t.push=function(a){this.add(a)},$t.addAll=function(a){if(a===null)return this;this._isFrozen&&oi(this);var y=this.s;if(ui(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},$t.clear=function(){this._isFrozen&&oi(this),this.s.length=0,this.xb()},$t.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},$t.has=function(a){return this.contains(a)},$t.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},$t.M=function(a){var y=this.s;return(0>a||a>=y.length)&&Pi(a,"0 <= i < length",Ci,"elt:i"),y[a]},$t.get=function(a){return this.M(a)},$t.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Pi(a,"0 <= i < length",Ci,"setElt:i"),this._isFrozen&&oi(this,a),x[a]=y},$t.set=function(a,y){this.cd(a,y)},$t.first=function(){var a=this.s;return a.length===0?null:a[0]},$t.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},$t.pop=function(){this._isFrozen&&oi(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},$t=Ci.prototype,$t.Gb=function(a,y){0>a&&Pi(a,">= 0",Ci,"insertAt:i"),this._isFrozen&&oi(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},$t.remove=function(a){if(a===null)return!1;this._isFrozen&&oi(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)},$t.delete=function(a){return this.remove(a)},$t.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Pi(a,"0 <= i < length",Ci,"removeAt:i"),this._isFrozen&&oi(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},$t.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&&oi(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},$t=Ci.prototype,$t.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),b=0;b<y;b++)x[b]=a[b];return x},$t.Iv=function(){for(var a=new xi,y=this.s,x=this.count,b=0;b<x;b++)a.add(y[b]);return a},$t.sort=function(a){return this._isFrozen&&oi(this),this.s.sort(a),this.xb(),this},$t.zi=function(a,y,x){var b=this.s,E=b.length;y===void 0&&(y=0),x===void 0&&(x=E),this._isFrozen&&oi(this);var z=x-y;if(1>=z)return this;if((0>y||y>=E-1)&&Pi(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},$t.reverse=function(){return this._isFrozen&&oi(this),this.s.reverse(),this.xb(),this},De.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 di;var a=this.Sa;return a!==null?(a.reset(),a):new jr(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return di;var a=this.Hg;return a!==null?(a.reset(),a):new Sr(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 Bo(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Bo.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},Bo.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)},Bo.prototype.Ad=function(){return this.next()},Bo.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},Bo.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},Bo.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},Bo.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},Bo.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},Bo.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},Bo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Bo.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},De.Object.defineProperties(Bo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),Bo.prototype.first=Bo.prototype.first,Bo.prototype.hasNext=Bo.prototype.Ad,Bo.prototype.next=Bo.prototype.next,Bo.prototype.reset=Bo.prototype.reset,Bo.className="SetIterator";function xi(a){Yo(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&qe("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}$t=xi.prototype,$t.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},$t.freeze=function(){return this._isFrozen=!0,this},$t.ka=function(){return this._isFrozen=!1,this},$t.toString=function(){return"Set()#"+vs(this)},$t.add=function(a){if(a===null)return this;this._isFrozen&&oi(this,a);var y=a;return On(a)&&(y=ha(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},$t.addAll=function(a){if(a===null)return this;if(this._isFrozen&&oi(this),ui(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},$t.contains=function(a){if(a===null)return!1;var y=a;return On(a)&&(y=vs(a),y===void 0)?!1:this.Tb[y]!==void 0},$t.has=function(a){return this.contains(a)},$t.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},$t.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},$t.first=function(){var a=this.ea;return a===null?null:a.value},xi.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},xi.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},xi.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},xi.prototype.map=function(a){for(var y=new xi,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},xi.prototype.filter=function(a){for(var y=new xi,x=this.ea;x!==null;){var b=x.value;a(b)&&y.add(b),x=x.va}return y},$t=xi.prototype,$t.remove=function(a){if(a===null)return!1;this._isFrozen&&oi(this,a);var y=a;if(On(a)&&(y=vs(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},$t.delete=function(a){return this.remove(a)},$t.hp=function(a){if(a===null)return this;if(this._isFrozen&&oi(this),ui(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},$t.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&oi(this);var y=new xi;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},$t.clear=function(){this._isFrozen&&oi(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},xi.prototype.copy=function(){var a=new xi,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},xi.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},xi.prototype.Hv=function(){var a=new Ci,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function Yo(a){a.__gohashid=da++}function ha(a){var y=a.__gohashid;return y===void 0&&(y=da++,a.__gohashid=y),y}function vs(a){return a.__gohashid}De.Object.defineProperties(xi.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return di;var a=this.Sa;return a!==null?(a.reset(),a):new Bo(this)}}}),xi.prototype.toList=xi.prototype.Hv,xi.prototype.toArray=xi.prototype.Fa,xi.prototype.clear=xi.prototype.clear,xi.prototype.retainAll=xi.prototype.pA,xi.prototype.removeAll=xi.prototype.hp,xi.prototype.delete=xi.prototype.delete,xi.prototype.remove=xi.prototype.remove,xi.prototype.first=xi.prototype.first,xi.prototype.containsAny=xi.prototype.Ty,xi.prototype.containsAll=xi.prototype.Sy,xi.prototype.has=xi.prototype.has,xi.prototype.contains=xi.prototype.contains,xi.prototype.addAll=xi.prototype.addAll,xi.prototype.add=xi.prototype.add,xi.prototype.thaw=xi.prototype.ka,xi.prototype.freeze=xi.prototype.freeze;var da=1;xi.className="Set",xi.uniqueHash=Yo,xi.hashIdUnique=ha,xi.hashId=vs;function ta(a){this.ma=a,this.qa=a.Ja,this.sa=null}ta.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},ta.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)},ta.prototype.Ad=function(){return this.next()},ta.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},ta.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},ta.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},ta.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},ta.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},ta.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},ta.prototype.de=function(){this.value=this.key=null,this.qa=-1},ta.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},De.Object.defineProperties(ta.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),ta.prototype.first=ta.prototype.first,ta.prototype.hasNext=ta.prototype.Ad,ta.prototype.next=ta.prototype.next,ta.prototype.reset=ta.prototype.reset,ta.className="MapKeySetIterator";function To(a){xi.call(this),Yo(this),this._isFrozen=!0,this.ma=a}Tn(To,xi),$t=To.prototype,$t.freeze=function(){return this},$t.ka=function(){return this},$t.toString=function(){return"MapKeySet("+this.ma.toString()+")"},$t.add=function(){qe("This Set is read-only: "+this.toString())},$t.contains=function(a){return this.ma.contains(a)},$t.has=function(a){return this.contains(a)},$t.remove=function(){qe("This Set is read-only: "+this.toString())},$t.delete=function(a){return this.remove(a)},$t.clear=function(){qe("This Set is read-only: "+this.toString())},$t.first=function(){var a=this.ma.ea;return a!==null?a.key:null},To.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},To.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},To.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},To.prototype.map=function(a){for(var y=new xi,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},To.prototype.filter=function(a){for(var y=new xi,x=this.ma.ea;x!==null;){var b=x.key;a(b)&&y.add(b),x=x.va}return y},To.prototype.copy=function(){return new To(this.ma)},To.prototype.Iv=function(){var a=new xi,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},To.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},To.prototype.Hv=function(){var a=new Ci,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},De.Object.defineProperties(To.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?di:new ta(this.ma)}}}),To.prototype.toList=To.prototype.Hv,To.prototype.toArray=To.prototype.Fa,To.prototype.toSet=To.prototype.Iv,To.prototype.first=To.prototype.first,To.prototype.clear=To.prototype.clear,To.prototype.delete=To.prototype.delete,To.prototype.remove=To.prototype.remove,To.prototype.has=To.prototype.has,To.prototype.contains=To.prototype.contains,To.prototype.add=To.prototype.add,To.prototype.thaw=To.prototype.ka,To.prototype.freeze=To.prototype.freeze,To.className="MapKeySet";function Ro(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}Ro.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},Ro.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)},Ro.prototype.Ad=function(){return this.next()},Ro.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},Ro.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},Ro.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},Ro.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},Ro.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},Ro.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},Ro.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},Ro.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},De.Object.defineProperties(Ro.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Ro.prototype.first=Ro.prototype.first,Ro.prototype.hasNext=Ro.prototype.Ad,Ro.prototype.next=Ro.prototype.next,Ro.prototype.reset=Ro.prototype.reset,Ro.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 os(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}os.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},os.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)},os.prototype.Ad=function(){return this.next()},os.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},os.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},os.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},os.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},os.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},os.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},os.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},os.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},De.Object.defineProperties(os.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),os.prototype.first=os.prototype.first,os.prototype.hasNext=os.prototype.Ad,os.prototype.next=os.prototype.next,os.prototype.reset=os.prototype.reset,os.className="MapIterator";function xr(a){Yo(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"&&qe("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}$t=xr.prototype,$t.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},$t.freeze=function(){return this._isFrozen=!0,this},$t.ka=function(){return this._isFrozen=!1,this},$t.toString=function(){return"Map()#"+vs(this)},$t.add=function(a,y){this._isFrozen&&oi(this,a);var x=a;On(a)&&(x=ha(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},$t.set=function(a,y){return this.add(a,y)},$t.addAll=function(a){if(a===null)return this;if(ui(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 xr)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},$t.first=function(){return this.ea},xr.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},xr.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},xr.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},xr.prototype.map=function(a){for(var y=new xr,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},xr.prototype.filter=function(a){for(var y=new xr,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},$t=xr.prototype,$t.contains=function(a){var y=a;return On(a)&&(y=vs(a),y===void 0)?!1:this.Tb[y]!==void 0},$t.has=function(a){return this.contains(a)},$t.I=function(a){var y=a;return On(a)&&(y=vs(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},$t.get=function(a){return this.I(a)},$t.remove=function(a){if(a===null)return!1;this._isFrozen&&oi(this,a);var y=a;if(On(a)&&(y=vs(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},$t.delete=function(a){return this.remove(a)},$t.clear=function(){this._isFrozen&&oi(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()},xr.prototype.copy=function(){var a=new xr,y=this.Tb,x;for(x in y){var b=y[x];a.add(b.key,b.value)}return a},xr.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},xr.prototype.Lf=function(){return new To(this)},De.Object.defineProperties(xr.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return di;var a=this.Sa;return a!==null?(a.reset(),a):new os(this)}},iteratorKeys:{get:function(){return 0>=this.count?di:new ta(this)}},iteratorValues:{get:function(){if(0>=this.count)return di;var a=this.jf;return a!==null?(a.reset(),a):new Ro(this)}}}),xr.prototype.toKeySet=xr.prototype.Lf,xr.prototype.toArray=xr.prototype.Fa,xr.prototype.clear=xr.prototype.clear,xr.prototype.delete=xr.prototype.delete,xr.prototype.remove=xr.prototype.remove,xr.prototype.get=xr.prototype.get,xr.prototype.getValue=xr.prototype.I,xr.prototype.has=xr.prototype.has,xr.prototype.contains=xr.prototype.contains,xr.prototype.first=xr.prototype.first,xr.prototype.addAll=xr.prototype.addAll,xr.prototype.set=xr.prototype.set,xr.prototype.add=xr.prototype.add,xr.prototype.thaw=xr.prototype.ka,xr.prototype.freeze=xr.prototype.freeze,xr.className="Map";function Ne(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):qe("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var ls,ra,al,ll,bl;Ne.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Ne.prototype.h=function(a,y){return this.x=a,this.y=y,this},Ne.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Ne.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Ne.prototype.copy=function(){var a=new Ne;return a.x=this.x,a.y=this.y,a},$t=Ne.prototype,$t.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},$t.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},$t.freeze=function(){return this._isFrozen=!0,this},$t.ka=function(){return Object.isFrozen(this)&&qe("cannot thaw constant: "+this),this._isFrozen=!1,this};function is(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 Ne(x,E)}return new Ne}function Vo(a){return a.x.toString()+" "+a.y.toString()}$t.toString=function(){return"Point("+this.x+","+this.y+")"},$t.D=function(a){return a instanceof Ne?this.x===a.x&&this.y===a.y:!1},$t.hi=function(a,y){return this.x===a&&this.y===y},$t.Xa=function(a){return En.B(this.x,a.x)&&En.B(this.y,a.y)},$t.add=function(a){return this.x+=a.x,this.y+=a.y,this},$t.re=function(a){return this.x-=a.x,this.y-=a.y,this},$t.offset=function(a,y){return this.x+=a,this.y+=y,this},Ne.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},$t=Ne.prototype,$t.scale=function(a,y){return this.x*=a,this.y*=y,this},$t.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},$t.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},$t.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},$t.ab=function(a){return Es(a.x-this.x,a.y-this.y)},$t.direction=function(a,y){return Es(a-this.x,y-this.y)};function Es(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}$t.Ry=function(a,y){return En.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},$t.fA=function(a,y,x,b){return En.qh(a,y,x,b,this.x,this.y,this),this},$t.gA=function(a,y){return En.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},$t.uA=function(a,y,x,b){return En.No(this.x,this.y,a,y,x,b,this),this},$t.vA=function(a,y){return En.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},$t.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},$t.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},$t.transform=function(a){return a.Ga(this),this};function Zo(a,y){return y.Cd(a),a}function Vs(a,y,x,b,E,z){var nt=E-x,ot=z-b,at=nt*nt+ot*ot;x-=a,b-=y;var ut=-x*nt-b*ot;return 0>=ut||ut>=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 yl(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function Ao(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)}$t.w=function(){return isFinite(this.x)&&isFinite(this.y)},Ne.alloc=function(){var a=yo.pop();return a===void 0?new Ne:a},Ne.allocAt=function(a,y){var x=yo.pop();return x===void 0?new Ne(a,y):(x.x=a,x.y=y,x)},Ne.free=function(a){yo.push(a)},Ne.prototype.isReal=Ne.prototype.w,Ne.prototype.setSpot=Ne.prototype.yi,Ne.prototype.setRectSpot=Ne.prototype.xi,Ne.prototype.snapToGridPoint=Ne.prototype.vA,Ne.prototype.snapToGrid=Ne.prototype.uA,Ne.prototype.projectOntoLineSegmentPoint=Ne.prototype.gA,Ne.prototype.projectOntoLineSegment=Ne.prototype.fA,Ne.intersectingLineSegments=function(a,y,x,b,E,z,nt,ot){return En.Rl(a,y,x,b,E,z,nt,ot)},Ne.prototype.compareWithLineSegmentPoint=Ne.prototype.Ry,Ne.compareWithLineSegment=function(a,y,x,b,E,z){return En.Fl(a,y,x,b,E,z)},Ne.prototype.direction=Ne.prototype.direction,Ne.prototype.directionPoint=Ne.prototype.ab,Ne.prototype.normalize=Ne.prototype.normalize,Ne.prototype.distanceSquared=Ne.prototype.zd,Ne.prototype.distanceSquaredPoint=Ne.prototype.Bf,Ne.prototype.scale=Ne.prototype.scale,Ne.prototype.rotate=Ne.prototype.rotate,Ne.prototype.offset=Ne.prototype.offset,Ne.prototype.subtract=Ne.prototype.re,Ne.prototype.add=Ne.prototype.add,Ne.prototype.equalsApprox=Ne.prototype.Xa,Ne.prototype.equalTo=Ne.prototype.hi,Ne.prototype.equals=Ne.prototype.D,Ne.prototype.set=Ne.prototype.set,Ne.prototype.setTo=Ne.prototype.sg;var yo=[];Ne.className="Point",Ne.parse=is,Ne.stringify=Vo,Ne.distanceLineSegmentSquared=Vs,Ne.distanceSquared=yl,Ne.direction=Ao,Ne.Origin=ls=new Ne(0,0).ja(),Ne.InfiniteTopLeft=ra=new Ne(-1/0,-1/0).ja(),Ne.InfiniteBottomRight=al=new Ne(1/0,1/0).ja(),Ne.SixPoint=ll=new Ne(6,6).ja(),Ne.NoPoint=bl=new Ne(NaN,NaN).ja(),Ne.parse=is,Ne.stringify=Vo,Ne.distanceLineSegmentSquared=Vs,Ne.distanceSquared=yl,Ne.direction=Ao;function Zi(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):qe("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var bo,xs,ca,aa,Ho,Zs,ka;Zi.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},Zi.prototype.h=function(a,y){return this.width=a,this.height=y,this},Zi.prototype.sg=function(a,y){return this.width=a,this.height=y,this},Zi.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},Zi.prototype.copy=function(){var a=new Zi;return a.width=this.width,a.height=this.height,a},$t=Zi.prototype,$t.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},$t.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},$t.freeze=function(){return this._isFrozen=!0,this},$t.ka=function(){return Object.isFrozen(this)&&qe("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ml(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 Zi(x,E)}return new Zi}function Ga(a){return a.width.toString()+" "+a.height.toString()}$t.toString=function(){return"Size("+this.width+","+this.height+")"},$t.D=function(a){return a instanceof Zi?this.width===a.width&&this.height===a.height:!1},$t.hi=function(a,y){return this.width===a&&this.height===y},$t.Xa=function(a){return En.B(this.width,a.width)&&En.B(this.height,a.height)},$t.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},$t.w=function(){return isFinite(this.width)&&isFinite(this.height)},Zi.alloc=function(){var a=Ss.pop();return a===void 0?new Zi:a},Zi.free=function(a){Ss.push(a)},Zi.prototype.isReal=Zi.prototype.w,Zi.prototype.inflate=Zi.prototype.Bc,Zi.prototype.equalsApprox=Zi.prototype.Xa,Zi.prototype.equalTo=Zi.prototype.hi,Zi.prototype.equals=Zi.prototype.D,Zi.prototype.set=Zi.prototype.set,Zi.prototype.setTo=Zi.prototype.sg;var Ss=[];Zi.className="Size",Zi.parse=Ml,Zi.stringify=Ga,Zi.ZeroSize=bo=new Zi(0,0).ja(),Zi.OneSize=xs=new Zi(1,1).ja(),Zi.SixSize=ca=new Zi(6,6).ja(),Zi.EightSize=aa=new Zi(8,8).ja(),Zi.TenSize=Ho=new Zi(10,10).ja(),Zi.InfiniteSize=Zs=new Zi(1/0,1/0).ja(),Zi.NoSize=ka=new Zi(NaN,NaN).ja(),Zi.parse=Ml,Zi.stringify=Ga;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 Ne?(x=a.x,a=a.y,y instanceof Ne?(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 Zi?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):qe("Incorrect second argument supplied to Rect constructor "+y)):qe("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}$t=ai.prototype,$t.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},$t.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}$t.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},$t.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},$t.dd=function(a){return this.x=a.x,this.y=a.y,this},$t.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},$t=ai.prototype,$t.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},$t.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},$t.freeze=function(){return this._isFrozen=!0,this},$t.ka=function(){return Object.isFrozen(this)&&qe("cannot thaw constant: "+this),this._isFrozen=!1,this};function dc(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 hu(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}$t.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},$t.D=function(a){return a instanceof ai?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},$t.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},$t.Xa=function(a){return En.B(this.x,a.x)&&En.B(this.y,a.y)&&En.B(this.width,a.width)&&En.B(this.height,a.height)};function kh(a,y){return En.$(a.x,y.x)&&En.$(a.y,y.y)&&En.$(a.width,y.width)&&En.$(a.height,y.height)}$t.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},$t.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},$t.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},$t.offset=function(a,y){return this.x+=a,this.y+=y,this},$t.Bc=function(a,y){return Wr(this,y,a,y,a)},$t.Co=function(a){return Wr(this,a.top,a.right,a.bottom,a.left)},$t.Fv=function(a){return Wr(this,-a.top,-a.right,-a.bottom,-a.left)},$t.Hz=function(a,y,x,b){return Wr(this,a,y,x,b)};function Wr(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}$t.Ex=function(a){return zs(this,a.x,a.y,a.width,a.height)},$t.Uu=function(a,y,x,b){return zs(this,a,y,x,b)};function zs(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}$t.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},$t.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 Ms(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))}$t.Ye=function(a){return Cs(this,a.x,a.y,0,0)},$t.ed=function(a){return Cs(this,a.x,a.y,a.width,a.height)},$t.Kv=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),Cs(this,a,y,x,b)};function Cs(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}$t.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 Gs(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 cu(a,y,x,b,E,z,nt,ot){return a>nt+E||E>x+a?!1:!(y>ot+z||z>b+y)}$t.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},$t.Mz=function(){return this.width===0&&this.height===0},ai.alloc=function(){var a=ms.pop();return a===void 0?new ai:a},ai.allocAt=function(a,y,x,b){var E=ms.pop();return E===void 0?new ai(a,y,x,b):E.h(a,y,x,b)},ai.free=function(a){ms.push(a)},De.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 Ne(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new Zi(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Ne(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 En.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 qo=null,_s=null,ms=[];ai.className="Rect",ai.parse=dc,ai.stringify=hu,ai.contains=Gs,ai.intersects=cu,ai.ZeroRect=qo=new ai(0,0,0,0).ja(),ai.NoRect=_s=new ai(NaN,NaN,NaN,NaN).ja(),ai.parse=dc,ai.stringify=hu,ai.contains=Gs,ai.intersects=cu;function Rr(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):qe("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Rr.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Rr.prototype.sg=function(a,y,x,b){return this.top=a,this.right=y,this.bottom=x,this.left=b,this},Rr.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Rr.prototype.copy=function(){var a=new Rr;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},$t=Rr.prototype,$t.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},$t.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},$t.freeze=function(){return this._isFrozen=!0,this},$t.ka=function(){return Object.isFrozen(this)&&qe("cannot thaw constant: "+this),this._isFrozen=!1,this};function ul(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 Rr;for(var E=NaN;a[y]==="";)y++;if((b=a[y++])&&(E=parseFloat(b)),isNaN(E))return new Rr(x);for(var z=NaN;a[y]==="";)y++;if((b=a[y++])&&(z=parseFloat(b)),isNaN(z))return new Rr(x,E);for(var nt=NaN;a[y]==="";)y++;return(b=a[y++])&&(nt=parseFloat(b)),isNaN(nt)?new Rr(x,E):new Rr(x,E,z,nt)}return new Rr}function Os(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}$t.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},$t.D=function(a){return a instanceof Rr?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},$t.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},$t.Xa=function(a){return En.B(this.top,a.top)&&En.B(this.right,a.right)&&En.B(this.bottom,a.bottom)&&En.B(this.left,a.left)},$t.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Rr.alloc=function(){var a=Vl.pop();return a===void 0?new Rr:a},Rr.free=function(a){Vl.push(a)},Rr.prototype.isReal=Rr.prototype.w,Rr.prototype.equalsApprox=Rr.prototype.Xa,Rr.prototype.equalTo=Rr.prototype.hi,Rr.prototype.equals=Rr.prototype.D,Rr.prototype.set=Rr.prototype.set,Rr.prototype.setTo=Rr.prototype.sg;var yu=null,Uu=null,Vl=[];Rr.className="Margin",Rr.parse=ul,Rr.stringify=Os,Rr.ZeroMargin=yu=new Rr(0,0,0,0).ja(),Rr.TwoMargin=Uu=new Rr(2,2,2,2).ja(),Rr.parse=ul,Rr.stringify=Os;function fr(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 Wa,nl,Cl,ru,$a,Fo,Ua,Ya,ou,Zl,Pu,bu,du,tu,Go,Dd,Eu,vd,Bh,qh,il,ch,jd,Kc,Gc,Bs,ya,Nu,Ja,rl,Ha,Aa,qa,Nl,Ac,rh;fr.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},fr.prototype.sg=function(a,y,x,b){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=b,this},fr.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},fr.prototype.copy=function(){var a=new fr;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},$t=fr.prototype,$t.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},$t.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},$t.freeze=function(){return this._isFrozen=!0,this},$t.ka=function(){return Object.isFrozen(this)&&qe("cannot thaw constant: "+this),this._isFrozen=!1,this};function hl(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 Wa;if(a==="TopLeft")return nl;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Cl;if(a==="TopRight")return ru;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return $a;if(a==="Center")return Fo;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return Ua;if(a==="BottomLeft")return Ya;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return ou;if(a==="BottomRight")return Zl;if(a==="TopSide")return Pu;if(a==="LeftSide")return bu;if(a==="RightSide")return du;if(a==="BottomSide")return tu;if(a==="TopBottomSides")return Go;if(a==="LeftRightSides")return Dd;if(a==="TopLeftSides")return Eu;if(a==="TopRightSides")return vd;if(a==="BottomLeftSides")return Bh;if(a==="BottomRightSides")return qh;if(a==="NotTopSide")return il;if(a==="NotLeftSide")return ch;if(a==="NotRightSide")return jd;if(a==="NotBottomSide")return Kc;if(a==="AllSides")return Gc;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 fr(x,E,z,nt)}return new fr}function nd(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}$t.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(Wa)?"None":this.D(nl)?"TopLeft":this.D(Cl)?"Top":this.D(ru)?"TopRight":this.D($a)?"Left":this.D(Fo)?"Center":this.D(Ua)?"Right":this.D(Ya)?"BottomLeft":this.D(ou)?"Bottom":this.D(Zl)?"BottomRight":this.D(Pu)?"TopSide":this.D(bu)?"LeftSide":this.D(du)?"RightSide":this.D(tu)?"BottomSide":this.D(Go)?"TopBottomSides":this.D(Dd)?"LeftRightSides":this.D(Eu)?"TopLeftSides":this.D(vd)?"TopRightSides":this.D(Bh)?"BottomLeftSides":this.D(qh)?"BottomRightSides":this.D(il)?"NotTopSide":this.D(ch)?"NotLeftSide":this.D(jd)?"NotRightSide":this.D(Kc)?"NotBottomSide":this.D(Gc)?"AllSides":this.D(Bs)?"Default":"None"},$t.D=function(a){return a instanceof fr?(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},$t.gv=function(){return new fr(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},$t.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(ya))a=bu;else if(a.D(Nu))a=du;else if(a.D(Ja))a=Pu;else if(a.D(rl))a=tu;else return!1;return a=a.offsetY,(this.offsetY&a)===a},$t.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},$t.Mc=function(){return isNaN(this.x)||isNaN(this.y)},$t.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},$t.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},$t.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},fr.alloc=function(){var a=dh.pop();return a===void 0?new fr:a},fr.free=function(a){dh.push(a)},fr.prototype.isDefault=fr.prototype.Xb,fr.prototype.isNone=fr.prototype.ys,fr.prototype.isSide=fr.prototype.$c,fr.prototype.isNoSpot=fr.prototype.Mc,fr.prototype.isSpot=fr.prototype.sb,fr.prototype.includesSide=fr.prototype.Hf,fr.prototype.opposite=fr.prototype.gv,fr.prototype.equals=fr.prototype.D,fr.prototype.set=fr.prototype.set,fr.prototype.setTo=fr.prototype.sg;var dh=[];fr.className="Spot",fr.parse=Ud,fr.stringify=nd,fr.None=Wa=hl(new fr(0,0,0,0),0).ja(),fr.Default=Bs=hl(new fr(0,0,-1,0),-1).ja(),fr.TopLeft=nl=new fr(0,0,0,0).ja(),fr.TopCenter=Cl=new fr(.5,0,0,0).ja(),fr.TopRight=ru=new fr(1,0,0,0).ja(),fr.LeftCenter=$a=new fr(0,.5,0,0).ja(),fr.Center=Fo=new fr(.5,.5,0,0).ja(),fr.RightCenter=Ua=new fr(1,.5,0,0).ja(),fr.BottomLeft=Ya=new fr(0,1,0,0).ja(),fr.BottomCenter=ou=new fr(.5,1,0,0).ja(),fr.BottomRight=Zl=new fr(1,1,0,0).ja(),fr.MiddleTop=Ha=Cl,fr.MiddleLeft=Aa=$a,fr.MiddleRight=qa=Ua,fr.MiddleBottom=Nl=ou,fr.Top=Ja=Cl,fr.Left=ya=$a,fr.Right=Nu=Ua,fr.Bottom=rl=ou,fr.TopSide=Pu=hl(new fr(0,0,1,1),1).ja(),fr.LeftSide=bu=hl(new fr(0,0,1,2),1).ja(),fr.RightSide=du=hl(new fr(0,0,1,4),1).ja(),fr.BottomSide=tu=hl(new fr(0,0,1,8),1).ja(),fr.TopBottomSides=Go=hl(new fr(0,0,1,9),1).ja(),fr.LeftRightSides=Dd=hl(new fr(0,0,1,6),1).ja(),fr.TopLeftSides=Eu=hl(new fr(0,0,1,3),1).ja(),fr.TopRightSides=vd=hl(new fr(0,0,1,5),1).ja(),fr.BottomLeftSides=Bh=hl(new fr(0,0,1,10),1).ja(),fr.BottomRightSides=qh=hl(new fr(0,0,1,12),1).ja(),fr.NotTopSide=il=hl(new fr(0,0,1,14),1).ja(),fr.NotLeftSide=ch=hl(new fr(0,0,1,13),1).ja(),fr.NotRightSide=jd=hl(new fr(0,0,1,11),1).ja(),fr.NotBottomSide=Kc=hl(new fr(0,0,1,7),1).ja(),fr.AllSides=Gc=hl(new fr(0,0,1,15),1).ja(),Ac=new fr(.156,.156).ja(),rh=new fr(.844,.844).ja(),fr.parse=Ud,fr.stringify=nd;function zo(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}zo.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},zo.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},zo.prototype.copy=function(){var a=new zo;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},zo.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},zo.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},zo.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},zo.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},zo.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},zo.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},zo.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},zo.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},$t=zo.prototype,$t.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},$t.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},$t.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)},$t.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))},$t.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))},$t.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,ut=this.dx,ct=this.dy,yt=y*z+x*ot+ut,kt=y*nt+x*at+ct,zt=b*z+x*ot+ut,Xt=b*nt+x*at+ct;return x=y*z+E*ot+ut,y=y*nt+E*at+ct,z=b*z+E*ot+ut,b=b*nt+E*at+ct,E=Math.min(yt,zt),yt=Math.max(yt,zt),zt=Math.min(kt,Xt),kt=Math.max(kt,Xt),E=Math.min(E,x),yt=Math.max(yt,x),zt=Math.min(zt,y),kt=Math.max(kt,y),E=Math.min(E,z),yt=Math.max(yt,z),zt=Math.min(zt,b),kt=Math.max(kt,b),a.h(E,zt,yt-E,kt-zt),a},zo.alloc=function(){var a=sA.pop();return a===void 0?new zo:a},zo.free=function(a){sA.push(a)},zo.prototype.transformRect=zo.prototype.pp,zo.prototype.transformPoint=zo.prototype.Ga,zo.prototype.scale=zo.prototype.scale,zo.prototype.translate=zo.prototype.translate,zo.prototype.rotate=zo.prototype.rotate,zo.prototype.invert=zo.prototype.Vj,zo.prototype.multiplyInverted=zo.prototype.bv,zo.prototype.multiply=zo.prototype.multiply,zo.prototype.reset=zo.prototype.reset,zo.prototype.isIdentity=zo.prototype.ws,zo.prototype.equals=zo.prototype.D,zo.prototype.setTransform=zo.prototype.setTransform,zo.prototype.set=zo.prototype.set;var sA=[];zo.className="Transform",zo.xF="54a702f3e53909c447824c6706603faf4c";var En={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=En.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);En.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 ut=y,ct=b;else ut=b,ct=y;if(a===x)return ut<=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,ut-=E,ut<=nt&&nt<=ct))if(at-ot>ct-ut)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,ut,ct,yt){if(En.Yb(a,y,nt,ot,yt,x,b)&&En.Yb(a,y,nt,ot,yt,E,z))return En.Yb(a,y,nt,ot,yt,ut,ct);var kt=(a+x)/2,zt=(y+b)/2,Xt=(x+E)/2,he=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(kt+Xt)/2,x=(zt+he)/2,Xt=(Xt+E)/2,he=(he+z)/2;var ze=(b+Xt)/2,Fe=(x+he)/2;return En.cs(a,y,kt,zt,b,x,ze,Fe,at,ut,ct,yt)||En.cs(ze,Fe,Xt,he,E,z,nt,ot,at,ut,ct,yt)},ax:function(a,y,x,b,E,z,nt,ot,at){var ut=(x+E)/2,ct=(b+z)/2;return at.h((((a+x)/2+ut)/2+(ut+(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,ut=(b+z)/2;return Ao(((a+x)/2+at)/2,((y+b)/2+ut)/2,(at+(E+nt)/2)/2,(ut+(z+ot)/2)/2)},Dl:function(a,y,x,b,E,z,nt,ot,at,ut){if(En.Yb(a,y,nt,ot,at,x,b)&&En.Yb(a,y,nt,ot,at,E,z))Cs(ut,a,y,0,0),Cs(ut,nt,ot,0,0);else{var ct=(a+x)/2,yt=(y+b)/2,kt=(x+E)/2,zt=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(ct+kt)/2,x=(yt+zt)/2,kt=(kt+E)/2,zt=(zt+z)/2;var Xt=(b+kt)/2,he=(x+zt)/2;En.Dl(a,y,ct,yt,b,x,Xt,he,at,ut),En.Dl(Xt,he,kt,zt,E,z,nt,ot,at,ut)}return ut},Qe:function(a,y,x,b,E,z,nt,ot,at,ut){if(En.Yb(a,y,nt,ot,at,x,b)&&En.Yb(a,y,nt,ot,at,E,z))ut.length===0&&(ut.push(a),ut.push(y)),ut.push(nt),ut.push(ot);else{var ct=(a+x)/2,yt=(y+b)/2,kt=(x+E)/2,zt=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(ct+kt)/2,x=(yt+zt)/2,kt=(kt+E)/2,zt=(zt+z)/2;var Xt=(b+kt)/2,he=(x+zt)/2;En.Qe(a,y,ct,yt,b,x,Xt,he,at,ut),En.Qe(Xt,he,kt,zt,E,z,nt,ot,at,ut)}return ut},jv:function(a,y,x,b,E,z,nt,ot,at,ut){if(En.Yb(a,y,E,z,ut,x,b))return En.Yb(a,y,E,z,ut,ot,at);var ct=(a+x)/2,yt=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var kt=(ct+x)/2,zt=(yt+b)/2;return En.jv(a,y,ct,yt,kt,zt,nt,ot,at,ut)||En.jv(kt,zt,x,b,E,z,nt,ot,at,ut)},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(En.Yb(a,y,E,z,nt,x,b))Cs(ot,a,y,0,0),Cs(ot,E,z,0,0);else{var at=(a+x)/2,ut=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ct=(at+x)/2,yt=(ut+b)/2;En.iv(a,y,at,ut,ct,yt,nt,ot),En.iv(ct,yt,x,b,E,z,nt,ot)}return ot},ep:function(a,y,x,b,E,z,nt,ot){if(En.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,ut=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ct=(at+x)/2,yt=(ut+b)/2;En.ep(a,y,at,ut,ct,yt,nt,ot),En.ep(ct,yt,x,b,E,z,nt,ot)}return ot},Eo:function(a,y,x,b,E,z,nt,ot,at,ut,ct,yt,kt,zt){if(En.Yb(a,y,nt,ot,kt,x,b)&&En.Yb(a,y,nt,ot,kt,E,z))return!En.Rl(a,y,nt,ot,at,ut,ct,yt)||(kt=(a-nt)*(ut-yt)-(y-ot)*(at-ct),kt===0)?!1:(zt.h(((a*ot-y*nt)*(at-ct)-(a-nt)*(at*yt-ut*ct))/kt,((a*ot-y*nt)*(ut-yt)-(y-ot)*(at*yt-ut*ct))/kt),!0);var Xt=(a+x)/2,he=(y+b)/2,ze=(x+E)/2,Fe=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(Xt+ze)/2,x=(he+Fe)/2,ze=(ze+E)/2,Fe=(Fe+z)/2;var Ze=(b+ze)/2,tn=(x+Fe)/2,on=1/0,Sn=!1,Wn=0,rr=0;return En.Eo(a,y,Xt,he,b,x,Ze,tn,at,ut,ct,yt,kt,zt)&&(a=(zt.x-at)*(zt.x-at)+(zt.y-ut)*(zt.y-ut),a<on&&(on=a,Sn=!0,Wn=zt.x,rr=zt.y)),En.Eo(Ze,tn,ze,Fe,E,z,nt,ot,at,ut,ct,yt,kt,zt)&&(zt.x-at)*(zt.x-at)+(zt.y-ut)*(zt.y-ut)<on&&(Sn=!0,Wn=zt.x,rr=zt.y),Sn&&(zt.x=Wn,zt.y=rr),Sn},Fo:function(a,y,x,b,E,z,nt,ot,at,ut,ct,yt,kt){var zt=0;if(En.Yb(a,y,nt,ot,kt,x,b)&&En.Yb(a,y,nt,ot,kt,E,z)){if(kt=(a-nt)*(ut-yt)-(y-ot)*(at-ct),kt===0)return zt;var Xt=((a*ot-y*nt)*(at-ct)-(a-nt)*(at*yt-ut*ct))/kt,he=((a*ot-y*nt)*(ut-yt)-(y-ot)*(at*yt-ut*ct))/kt;if(Xt>=ct)return zt;if((at>ct?at-ct:ct-at)<(ut>yt?ut-yt:yt-ut)){if(y<ot?(at=y,a=ot):(at=ot,a=y),he<at||he>a)return zt}else if(a<nt?(at=a,a=nt):at=nt,Xt<at||Xt>a)return zt;0<kt?zt++:0>kt&&zt--}else{Xt=(a+x)/2,he=(y+b)/2;var ze=(x+E)/2,Fe=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(Xt+ze)/2,x=(he+Fe)/2,ze=(ze+E)/2,Fe=(Fe+z)/2;var Ze=(b+ze)/2,tn=(x+Fe)/2;zt+=En.Fo(a,y,Xt,he,b,x,Ze,tn,at,ut,ct,yt,kt),zt+=En.Fo(Ze,tn,ze,Fe,E,z,nt,ot,at,ut,ct,yt,kt)}return zt},qh:function(a,y,x,b,E,z,nt){return En.$(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)):En.$(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 En.B(a,x)&&En.B(y,b)?(at.h(a,y),!1):En.$(E,nt)?En.$(a,x)?(En.qh(a,y,x,b,E,z,at),!1):En.qh(a,y,x,b,E,(b-y)/(x-a)*(E-a)+y,at):(ot=(ot-z)/(nt-E),En.$(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),En.$(ot,nt)?(En.qh(a,y,x,b,E,z,at),!1):(E=(nt*a-ot*E+z-y)/(nt-ot),En.$(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)):En.qh(a,y,x,b,E,nt*(E-a)+y,at))))},MA:function(a,y,x,b,E){return En.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,ut){function ct(ze,Fe){var Ze=(ze-a)*(ze-a)+(Fe-y)*(Fe-y);Ze<yt&&(yt=Ze,at.h(ze,Fe))}var yt=1/0;ct(at.x,at.y);var kt=0,zt=0,Xt=0,he=0;if(E<nt?(kt=E,zt=nt):(kt=nt,zt=E),z<ot?(Xt=E,he=nt):(Xt=nt,he=E),kt=(zt-kt)/2+ut,ut=(he-Xt)/2+ut,E=(E+nt)/2,z=(z+ot)/2,kt===0||ut===0)return at;if(.5>(x>a?x-a:a-x)){if(kt=1-(x-E)*(x-E)/(kt*kt),0>kt)return at;kt=Math.sqrt(kt),b=-ut*kt+z,ct(x,ut*kt+z),ct(x,b)}else{if(x=(b-y)/(x-a),b=1/(kt*kt)+x*x/(ut*ut),ot=2*x*(y-x*a)/(ut*ut)-2*x*z/(ut*ut)-2*E/(kt*kt),kt=ot*ot-4*b*(2*x*a*z/(ut*ut)-2*y*z/(ut*ut)+z*z/(ut*ut)+E*E/(kt*kt)-1+(y-x*a)*(y-x*a)/(ut*ut)),0>kt)return at;kt=Math.sqrt(kt),ut=(-ot+kt)/(2*b),ct(ut,x*ut-x*a+y),kt=(-ot-kt)/(2*b),ct(kt,x*kt-x*a+y)}return at},Ff:function(a,y,x,b,E,z,nt,ot,at){var ut=1e21,ct=a,yt=y;if(En.Ve(a,y,a,b,E,z,nt,ot,at)){var kt=(at.x-E)*(at.x-E)+(at.y-z)*(at.y-z);kt<ut&&(ut=kt,ct=at.x,yt=at.y)}return En.Ve(x,y,x,b,E,z,nt,ot,at)&&(kt=(at.x-E)*(at.x-E)+(at.y-z)*(at.y-z),kt<ut&&(ut=kt,ct=at.x,yt=at.y)),En.Ve(a,y,x,y,E,z,nt,ot,at)&&(y=(at.x-E)*(at.x-E)+(at.y-z)*(at.y-z),y<ut&&(ut=y,ct=at.x,yt=at.y)),En.Ve(a,b,x,b,E,z,nt,ot,at)&&(a=(at.x-E)*(at.x-E)+(at.y-z)*(at.y-z),a<ut&&(ut=a,ct=at.x,yt=at.y)),at.h(ct,yt),1e21>ut},us:function(a,y,x){return En.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,ut=y+b;return E===nt?(z<ot?(nt=z,z=ot):nt=ot,a<=E&&E<=at&&nt<=ut&&z>=y):z===ot?(E<nt?(ot=E,E=nt):ot=nt,y<=z&&z<=ut&&ot<=at&&E>=a):!!(Gs(a,y,x,b,E,z)||Gs(a,y,x,b,nt,ot)||En.Rl(a,y,at,y,E,z,nt,ot)||En.Rl(at,y,at,ut,E,z,nt,ot)||En.Rl(at,ut,a,ut,E,z,nt,ot)||En.Rl(a,ut,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>=En.Fl(a,y,x,b,E,z)*En.Fl(a,y,x,b,nt,ot)&&0>=En.Fl(E,z,nt,ot,a,y)*En.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,ut=b;if(b=Math.min(2*nt,Math.abs(E-b)),1e-5>b)return at=ut+ot*Math.min(b,at),ot=a+x*Math.cos(ut),ut=y+x*Math.sin(ut),a+=x*Math.cos(at),y+=x*Math.sin(at),x=(ot+a)/2,at=(ut+y)/2,z.push([ot,ut,x,at,x,at,a,y]),z;for(;1e-5<b;)E=ut+ot*Math.min(b,at),z.push(En.Vy(x,ut,E,a,y)),b-=Math.abs(E-ut),ut=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,ut=nt*nt+at*at,ct=ut+nt*nt+at*ot;return ut=4/3*(Math.sqrt(2*ut*ct)-ct)/(nt*ot-at*nt),ot=nt-ut*at,nt=at+ut*nt,at=-nt,ut=z+y,z=Math.cos(ut),ut=Math.sin(ut),[b+a*Math.cos(y),E+a*Math.sin(y),b+ot*z-nt*ut,E+ot*ut+nt*z,b+ot*z-at*ut,E+ot*ut+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,ut=nt===0?x:b;return(nt===0?E:z)&&(ut=-ut),nt=ot,x=nt===0?x:b,(nt===0?E:z)&&(x=-x),En.az(at,nt===0?a:y,ut,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 ut=0;9999999999>ut&&(y=.5*(ot+at),!(y===ot||y===at));++ut){var ct=a/(y+E),yt=nt/(y+z);if(ct=ct*ct+yt*yt-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 uo,um:new uo,Mf:new uo,Nf:0,vm:100};En.za=En.AA;function Vi(a){Yo(this),this.l=2,a===void 0&&(a=Vi.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===Vi.o?this.ee=new Ci:(Vi.V===null&&(Vi.V=new Ci().freeze()),this.ee=Vi.V),this.aq=this.ee.Ja,this.Ip=new ai().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=nl,this.gg=Zl,this.Rk=this.Sk=NaN,this.Uf=Mi}Vi.prototype.copy=function(){var a=new Vi;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===Vi.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},Vi.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},Vi.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==Vi.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},Vi.prototype.ka=function(){if(Object.isFrozen(this)&&qe("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==Vi.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},Vi.prototype.Xa=function(a){if(!(a instanceof Vi))return!1;if(this.type!==a.type)return this.type===Vi.j&&a.type===Vi.o?aA(this,a):a.type===Vi.j&&this.type===Vi.o?aA(a,this):!1;if(this.type===Vi.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 En.B(this.startX,a.startX)&&En.B(this.startY,a.startY)&&En.B(this.endX,a.endX)&&En.B(this.endY,a.endY)};function aA(a,y){return a.type!==Vi.j||y.type!==Vi.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&En.B(a.startX,y.startX)&&En.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===oa&&En.B(a.endX,y.endX)&&En.B(a.endY,y.endY))))}Vi.ia=function(a){return a.toString()},Vi.prototype.qb=function(a){a.classType===Vi&&(this.type=a)},Vi.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Vi.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 Vi.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 Vi.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 Vi.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()}},Vi.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},Vi.parse=function(a,y){function x(){return he>=on-1?!0:ut[he+1].match(Sn)!==null}function b(){return he++,ut[he]}function E(Io){var vo=parseFloat(b()),Ns=parseFloat(b());ze===ze.toLowerCase()&&(vo=tn.x+vo,Ns=tn.y+Ns),Io.h(vo,Ns)}function z(){return E(tn),tn}function nt(){return E(Ze),Ze}function ot(){var Io=Fe.toLowerCase();return Io!=="c"&&Io!=="s"&&Io!=="q"&&Io!=="t"?tn:new Ne(2*tn.x-Ze.x,2*tn.y-Ze.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 ut=a.split(" ");for(a=0;a<ut.length;a++){var ct=ut[a];if(ct.match(/(\.[0-9]*)(\.)/gm)!==null){at=ar();for(var yt="",kt=!1,zt=0;zt<ct.length;zt++){var Xt=ct[zt];Xt!=="."||kt?Xt==="."?(at.push(yt),yt="."):yt+=Xt:(kt=!0,yt+=Xt)}for(at.push(yt),ut.splice(a,1),ct=0;ct<at.length;ct++)ut.splice(a+ct,0,at[ct]);a+=at.length-1,Lr(at)}}var he=-1,ze="",Fe="";at=new Ne(0,0);var Ze=new Ne(0,0),tn=new Ne(0,0),on=ut.length;a=jy(null),kt=yt=ct=!1,zt=!0,Xt=null;for(var Sn=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(he>=on-1);)if(Fe=ze,ze=b(),ze!=="")switch(ze.toUpperCase()){case"X":zt=!0,yt=ct=!1;break;case"M":for(Xt=z(),a.mc===null||zt===!0?(jp(a,Xt.x,Xt.y,ct,!yt,kt),zt=!1):a.moveTo(Xt.x,Xt.y),at.assign(tn);!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();)tn=new Ne((ze===ze.toLowerCase()?tn.x:0)+parseFloat(b()),tn.y),a.lineTo(tn.x,tn.y);break;case"V":for(;!x();)tn=new Ne(tn.x,(ze===ze.toLowerCase()?tn.y:0)+parseFloat(b())),a.lineTo(tn.x,tn.y);break;case"C":for(;!x();){Xt=new Ne,E(Xt);var Wn=nt(),rr=z();Ff(a,Xt.x,Xt.y,Wn.x,Wn.y,rr.x,rr.y)}break;case"S":for(;!x();)Xt=ot(),Wn=nt(),rr=z(),Ff(a,Xt.x,Xt.y,Wn.x,Wn.y,rr.x,rr.y);break;case"Q":for(;!x();)Xt=nt(),Wn=z(),r0(a,Xt.x,Xt.y,Wn.x,Wn.y);break;case"T":for(;!x();)Ze=Xt=ot(),Wn=z(),r0(a,Xt.x,Xt.y,Wn.x,Wn.y);break;case"B":for(;!x();){Xt=parseFloat(b()),Wn=parseFloat(b()),rr=parseFloat(b());var Fr=parseFloat(b()),vr=parseFloat(b()),Ki=vr,Li=!1;x()||(Ki=parseFloat(b()),x()||(Li=parseFloat(b())!==0)),ze===ze.toLowerCase()&&(rr+=tn.x,Fr+=tn.y),a.arcTo(Xt,Wn,rr,Fr,vr,Ki,Li)}break;case"A":for(;!x();)Xt=Math.abs(parseFloat(b())),Wn=Math.abs(parseFloat(b())),rr=parseFloat(b()),vr=Fr=!1,Li=Ki=0,Ki=b(),Ki.length===1?(Fr=!!parseFloat(Ki),vr=!!parseFloat(b()),Ki=parseFloat(b())):Ki.length===2?(Fr=!!parseFloat(Ki[0]),vr=!!parseFloat(Ki[1]),Ki=parseFloat(b())):(Fr=!!parseFloat(Ki[0]),vr=!!parseFloat(Ki[1]),Ki=parseFloat(Ki.slice(2))),Li=parseFloat(b()),ze===ze.toLowerCase()&&(Ki=tn.x+Ki,Li=tn.y+Li),tn.h(Ki,Li),Lw(a,Xt,Wn,rr,Fr,vr,Ki,Li);break;case"Z":Fw(a),tn.assign(at);break;case"F":for(Xt="",Wn=1;ut[he+Wn];)if(ut[he+Wn]==="0")kt=!0,Wn++;else if(ut[he+Wn].match(/[Uu]/)!==null)Wn++;else if(ut[he+Wn].match(Sn)===null)Wn++;else{Xt=ut[he+Wn];break}Xt.match(/[Mm]/)?ct=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Xt="",Wn=1;ut[he+Wn];)if(ut[he+Wn].match(/[Ff]/)!==null)Wn++;else if(ut[he+Wn].match(Sn)===null)Wn++;else{Xt=ut[he+Wn];break}Xt.match(/[Mm]/)?yt=!0:a.mc.isShadowed=!1}if(at=a.os,o0=a,y)for(y=at.figures.iterator;y.next();)y.value.isFilled=!0;return at},Vi.Ha=function(a,y){for(var x=a.length,b=Ne.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}Ne.free(b)},Vi.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===Vi.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},Vi.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===Vi.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),Cs(a,0,0,0,0),a.freeze()},Vi.prototype.ix=function(){var a=new ai;return tc(this,a,!0),a};function tc(a,y,x){switch(a.type){case Vi.j:case Vi.u:case Vi.F:x?y.h(a.od,a.pd,0,0):Cs(y,a.od,a.pd,0,0),Cs(y,a.Dc,a.Ec,0,0);break;case Vi.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):Cs(y,z.startX,z.startY,0,0);for(var nt=z.segments.s,ot=nt.length,at=z.startX,ut=z.startY,ct=0;ct<ot;ct++){var yt=nt[ct];switch(yt.type){case oa:case Bl:at=yt.endX,ut=yt.endY,Cs(y,at,ut,0,0);break;case Au:En.Dl(at,ut,yt.point1X,yt.point1Y,yt.point2X,yt.point2Y,yt.endX,yt.endY,.5,y),at=yt.endX,ut=yt.endY;break;case fh:En.iv(at,ut,yt.point1X,yt.point1Y,yt.endX,yt.endY,.5,y),at=yt.endX,ut=yt.endY;break;case wl:case Th:var kt=yt.type===wl?Ju(yt,z):Gu(yt,z,at,ut),zt=kt.length;if(zt===0){at=yt.type===wl?yt.centerX:yt.endX,ut=yt.type===wl?yt.centerY:yt.endY,Cs(y,at,ut,0,0);break}yt=null;for(var Xt=0;Xt<zt;Xt++)yt=kt[Xt],En.Dl(yt[0],yt[1],yt[2],yt[3],yt[4],yt[5],yt[6],yt[7],.5,y);yt!==null&&(at=yt[6],ut=yt[7]);break;default:qe("Unknown Segment type: "+yt.type)}}}break;default:qe("Unknown Geometry type: "+a.type)}}Vi.prototype.normalize=function(){this._isFrozen&&oi(this);var a=this.ix();return this.offset(-a.x,-a.y),new Ne(-a.x,-a.y)},Vi.prototype.offset=function(a,y){return this._isFrozen&&oi(this),this.transform(1,0,0,1,a,y),this},Vi.prototype.scale=function(a,y){return this._isFrozen&&oi(this),this.transform(a,0,0,y,0,0),this},Vi.prototype.rotate=function(a,y,x){this._isFrozen&&oi(this),y===void 0&&(y=0),x===void 0&&(x=0);var b=zo.alloc();return b.reset(),b.rotate(a,y,x),this.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy),zo.free(b),this},$t=Vi.prototype,$t.transform=function(a,y,x,b,E,z){switch(this.type){case Vi.j:case Vi.u:case Vi.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 Vi.o:for(var at=this.figures.s,ut=at.length,ct=0;ct<ut;ct++){var yt=at[ct];nt=yt.startX,ot=yt.startY,yt.startX=nt*a+ot*x+E,yt.startY=nt*y+ot*b+z,yt=yt.segments.s;for(var kt=yt.length,zt=0;zt<kt;zt++){var Xt=yt[zt];switch(Xt.type){case oa:case Bl:nt=Xt.endX,ot=Xt.endY,Xt.endX=nt*a+ot*x+E,Xt.endY=nt*y+ot*b+z;break;case Au: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 fh: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 wl: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 Th: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:qe("Unknown Segment type: "+Xt.type)}}}}return this._isInvalidBounds=!0,this},$t.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 Vi.j:return En.Yb(x,b,E,z,y,a.x,a.y);case Vi.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 Vi.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 Vi.o:return Ru(this,a,y,!0,!1);default:return!1}};function Ru(a,y,x,b,E){var z=y.x;y=y.y;for(var nt=a.bounds.x-20,ot=0,at,ut,ct,yt,kt=a.figures.s,zt=kt.length,Xt=0;Xt<zt;Xt++){var he=kt[Xt],ze=!he.isEvenOdd;if(he.isFilled){if(b&&he.ca(z,y,x))return!0;var Fe=he.segments;at=he.startX,ut=he.startY;for(var Ze=at,tn=ut,on=Fe.s,Sn=0;Sn<=Fe.length;Sn++){var Wn=void 0;if(Sn!==Fe.length){Wn=on[Sn];var rr=Wn.type;a=Wn.endX,yt=Wn.endY}else rr=oa,a=Ze,yt=tn;switch(rr){case Bl:if(Ze=_u(z,y,nt,y,at,ut,Ze,tn),isNaN(Ze))return!0;ot+=Ze,Ze=a,tn=yt;break;case oa:if(at=_u(z,y,nt,y,at,ut,a,yt),isNaN(at))return!0;ot+=at;break;case Au:ct=En.Fo(at,ut,Wn.point1X,Wn.point1Y,Wn.point2X,Wn.point2Y,a,yt,nt,y,z,y,.5),ot+=ct;break;case fh:ct=En.Fo(at,ut,(at+2*Wn.point1X)/3,(ut+2*Wn.point1Y)/3,(2*Wn.point1X+a)/3,(2*Wn.point1Y+yt)/3,a,yt,nt,y,z,y,.5),ot+=ct;break;case wl:case Th:rr=Wn.type===wl?Ju(Wn,he):Gu(Wn,he,at,ut);var Fr=rr.length;if(Fr===0){if(at=_u(z,y,nt,y,at,ut,Wn.type===wl?Wn.centerX:Wn.endX,Wn.type===wl?Wn.centerY:Wn.endY),isNaN(at))return!0;ot+=at;break}Wn=null;for(var vr=0;vr<Fr;vr++){if(Wn=rr[vr],vr===0){if(ct=_u(z,y,nt,y,at,ut,Wn[0],Wn[1]),isNaN(ct))return!0;ot+=ct}ct=En.Fo(Wn[0],Wn[1],Wn[2],Wn[3],Wn[4],Wn[5],Wn[6],Wn[7],nt,y,z,y,.5),ot+=ct}Wn!==null&&(a=Wn[6],yt=Wn[7]);break;default:qe("Unknown Segment type: "+Wn.type)}at=a,ut=yt}if(ze){if(ot!==0)return!0}else if(ot%2!==0)return!0;ot=0}else if(he.ca(z,y,E?x:x+2))return!0}return!1}function _u(a,y,x,b,E,z,nt,ot){if(En.Yb(E,z,nt,ot,.05,a,y))return NaN;var at=(a-x)*(z-ot);if(at===0)return 0;var ut=((a*b-y*x)*(E-nt)-(a-x)*(E*ot-z*nt))/at;if(y=(a*b-y*x)*(z-ot)/at,ut>=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(ut<E||ut>nt)return 0}else if(ut<nt||ut>E)return 0;return 0<at?1:-1}function Ah(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}$t.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new Ne),this.type===Vi.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],ut=at.length;for(a=0;a<ut;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},$t.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===Vi.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 ut=ot[a];if(z+ut>=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+=ut}}return NaN},$t.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===Vi.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],ut=at.length;for(a=0;a<ut;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},$t.xx=function(a){if(this.type===Vi.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=Ne.alloc();return En.qh(y,x,b,E,z,a,ot),a=ot.x,z=ot.y,Ne.free(ot),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/nt)}}else if(this.type===Vi.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 ut=Math.min(nt,at,ot,E);if(ut===ot)return b/z;if(ut===at)return(y+a)/z;if(ut===E)return(2*y+x-b)/z;if(ut===nt)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,b=Ne.alloc(),E=1/0,ot=nt=0,at=y.length;for(var ct=ut=0,yt=0;yt<at;yt++)for(var kt=y[yt],zt=x[yt],Xt=kt.length,he=0;he<Xt;he+=2){var ze=kt[he],Fe=kt[he+1];if(he!==0){En.qh(ut,ct,ze,Fe,a.x,a.y,b);var Ze=(b.x-a.x)*(b.x-a.x)+(b.y-a.y)*(b.y-a.y);Ze<E&&(E=Ze,nt=ot,nt+=Math.sqrt((b.x-ut)*(b.x-ut)+(b.y-ct)*(b.y-ct))),ot+=zt[(he-2)/2]}ut=ze,ct=Fe}return Ne.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===Vi.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===Vi.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===Vi.F){var z=new tl;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var nt=new As(wl);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=Ju(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];En.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(id(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 ut=E.segments.s,ct=ut.length,yt=0;yt<ct;yt++){var kt=ut[yt];switch(kt.type){case Bl:4<=b.length&&(y.push(b),x.push(id(b))),b=[],b.push(kt.endX),b.push(kt.endY),nt=kt.endX,z=kt.endY,ot=nt,at=z;break;case oa:b.push(kt.endX),b.push(kt.endY),nt=kt.endX,z=kt.endY;break;case Au:En.Qe(nt,z,kt.point1X,kt.point1Y,kt.point2X,kt.point2Y,kt.endX,kt.endY,.5,b),nt=kt.endX,z=kt.endY;break;case fh:En.ep(nt,z,kt.point1X,kt.point1Y,kt.endX,kt.endY,.5,b),nt=kt.endX,z=kt.endY;break;case wl:var zt=Ju(kt,E),Xt=zt.length;if(Xt===0){b.push(kt.centerX),b.push(kt.centerY),nt=kt.centerX,z=kt.centerY;break}for(var he=0;he<Xt;he++){var ze=zt[he];En.Qe(nt,z,ze[2],ze[3],ze[4],ze[5],ze[6],ze[7],.5,b),nt=ze[6],z=ze[7]}break;case Th:if(zt=Gu(kt,E,nt,z),Xt=zt.length,he=kt.endX,ze=kt.endY,Xt===0){b.push(he),b.push(ze),nt=he,z=ze;break}for(he=0;he<Xt;he++)ze=zt[he],En.Qe(nt,z,ze[2],ze[3],ze[4],ze[5],ze[6],ze[7],.5,b),nt=ze[6],z=ze[7];break;default:qe("Segment not of valid type: "+kt.type)}kt.isClosed&&(b.push(ot),b.push(at))}4<=b.length&&(y.push(b),x.push(id(b)))}}}function id(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(yl(x,b,nt,ot))),x=nt,b=ot}return y}$t.add=function(a){return this.ee.add(a),this},$t.pm=function(a,y,x,b,E,z,nt,ot){return this._isFrozen&&oi(this),this.fg=new fr(a,y,E,z).freeze(),this.gg=new fr(x,b,nt,ot).freeze(),this},De.Object.defineProperties(Vi.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===Vi.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===Vi.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&&oi(this,a),this.na=a,a===Vi.o?this.ee=new Ci:(Vi.V===null&&(Vi.V=new Ci().freeze()),this.ee=Vi.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&oi(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&oi(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&oi(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&oi(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&oi(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&oi(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&oi(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&oi(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),Vi.prototype.setSpots=Vi.prototype.pm,Vi.prototype.add=Vi.prototype.add,Vi.prototype.getFractionForPoint=Vi.prototype.xx,Vi.prototype.getPointAndAngleAlongPath=Vi.prototype.Qu,Vi.prototype.getAngleAlongPath=Vi.prototype.wx,Vi.prototype.getPointAlongPath=Vi.prototype.Pu,Vi.prototype.containsPoint=Vi.prototype.ca,Vi.prototype.transform=Vi.prototype.transform,Vi.prototype.rotate=Vi.prototype.rotate,Vi.prototype.scale=Vi.prototype.scale,Vi.prototype.offset=Vi.prototype.offset,Vi.prototype.normalize=Vi.prototype.normalize,Vi.prototype.computeBoundsWithoutOrigin=Vi.prototype.ix,Vi.prototype.equalsApprox=Vi.prototype.Xa,Vi.className="Geometry",Vi.j=new pi(Vi,"Line",0),Vi.u=new pi(Vi,"Rectangle",1),Vi.F=new pi(Vi,"Ellipse",2),Vi.o=new pi(Vi,"Path",3),Vi.V=null,Vi.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",Vi.className="Geometry",Vi.stringify=Vi.ia,Vi.fillPath=Vi.nb,Vi.parse=Vi.parse,Vi.Line=Vi.j,Vi.Rectangle=Vi.u,Vi.Ellipse=Vi.F,Vi.Path=Vi.o;function tl(a,y,x,b,E){Yo(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}tl.prototype.copy=function(){var a=new tl;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},$t=tl.prototype,$t.Xa=function(a){if(!(a instanceof tl&&En.B(this.startX,a.startX)&&En.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},$t.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},$t.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},$t.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},$t.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},$t.add=function(a){return this.pl.add(a),this},$t.ca=function(a,y,x){for(var b=this.startX,E=this.startY,z=b,nt=E,ot=this.segments.s,at=ot.length,ut=0;ut<at;ut++){var ct=ot[ut];switch(ct.type){case Bl:z=ct.endX,nt=ct.endY,b=ct.endX,E=ct.endY;break;case oa:if(En.Yb(b,E,ct.endX,ct.endY,x,a,y))return!0;b=ct.endX,E=ct.endY;break;case Au:if(En.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 fh:if(En.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 wl:case Th:var yt=ct.type===wl?Ju(ct,this):Gu(ct,this,b,E),kt=yt.length,zt=ct.type===wl?ct.centerX:ct.endX,Xt=ct.type===wl?ct.centerY:ct.endY;if(kt===0){if(En.Yb(b,E,zt,Xt,x,a,y))return!0;b=zt,E=Xt;break}for(zt=null,Xt=0;Xt<kt;Xt++)if(zt=yt[Xt],Xt===0&&En.Yb(b,E,zt[0],zt[1],x,a,y)||En.cs(zt[0],zt[1],zt[2],zt[3],zt[4],zt[5],zt[6],zt[7],.5,a,y,x))return!0;zt!==null&&(b=zt[6],E=zt[7]);break;default:qe("Unknown Segment type: "+ct.type)}if(ct.isClosed&&(b!==z||E!==nt)&&En.Yb(b,E,z,nt,x,a,y))return!0}return!1},De.Object.defineProperties(tl.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&&oi(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&oi(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&oi(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&oi(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&oi(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&oi(this,a),this.pl=a,this._isInvalidBounds=!0}}}),tl.prototype.add=tl.prototype.add,tl.prototype.equalsApprox=tl.prototype.Xa,tl.className="PathFigure";function As(a,y,x,b,E,z,nt,ot){Yo(this),a===void 0&&(a=oa),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===Th?(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===wl&&(z=Math.max(z,0)),this.Wh=z,typeof nt=="number"?(a===wl&&(nt=Math.max(nt,0)),this.Pg=nt):this.Pg=0),this.ae=null}As.prototype.copy=function(){var a=new As;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},$t=As.prototype,$t.Xa=function(a){if(!(a instanceof As)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case Bl:case oa:return En.B(this.endX,a.endX)&&En.B(this.endY,a.endY);case Au:return En.B(this.endX,a.endX)&&En.B(this.endY,a.endY)&&En.B(this.point1X,a.point1X)&&En.B(this.point1Y,a.point1Y)&&En.B(this.point2X,a.point2X)&&En.B(this.point2Y,a.point2Y);case fh:return En.B(this.endX,a.endX)&&En.B(this.endY,a.endY)&&En.B(this.point1X,a.point1X)&&En.B(this.point1Y,a.point1Y);case wl:return En.B(this.startAngle,a.startAngle)&&En.B(this.sweepAngle,a.sweepAngle)&&En.B(this.centerX,a.centerX)&&En.B(this.centerY,a.centerY)&&En.B(this.radiusX,a.radiusX)&&En.B(this.radiusY,a.radiusY);case Th:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&En.B(this.xAxisRotation,a.xAxisRotation)&&En.B(this.endX,a.endX)&&En.B(this.endY,a.endY)&&En.B(this.radiusX,a.radiusX)&&En.B(this.radiusY,a.radiusY);default:return!1}},$t.qb=function(a){a.classType===As&&(this.type=a)},$t.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 oa:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Au: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 fh: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 wl: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 Th: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":"")},$t.freeze=function(){return this._isFrozen=!0,this},$t.ka=function(){return this._isFrozen=!1,this},$t.close=function(){return this.isClosed=!0,this};function Ju(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=En.jx(0,0,x<b?x:b,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==b){var nt=zo.alloc();nt.reset(),x<b?nt.scale(1,b/x):nt.scale(x/b,1),Vi.Ha(z,nt),zo.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 Gu(a,y,x,b){function E(he,ze,Fe,Ze){return(he*Ze<ze*Fe?-1:1)*Math.acos((he*Fe+ze*Ze)/(Math.sqrt(he*he+ze*ze)*Math.sqrt(Fe*Fe+Ze*Ze)))}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,ut=a.Dc,ct=a.Ec,yt=Math.cos(nt),kt=Math.sin(nt),zt=yt*(x-ut)/2+kt*(b-ct)/2;nt=-kt*(x-ut)/2+yt*(b-ct)/2;var Xt=zt*zt/(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*zt*zt)/(y*y*nt*nt+z*z*zt*zt)),isNaN(Xt)&&(Xt=0),ot=Xt*y*nt/z,Xt=Xt*-z*zt/y,isNaN(ot)&&(ot=0),isNaN(Xt)&&(Xt=0),x=(x+ut)/2+yt*ot-kt*Xt,b=(b+ct)/2+kt*ot+yt*Xt,ct=E(1,0,(zt-ot)/y,(nt-Xt)/z),yt=(zt-ot)/y,ut=(nt-Xt)/z,zt=(-zt-ot)/y,ot=(-nt-Xt)/z,nt=E(yt,ut,zt,ot),zt=(yt*zt+ut*ot)/(Math.sqrt(yt*yt+ut*ut)*Math.sqrt(zt*zt+ot*ot)),-1>=zt?nt=Math.PI:1<=zt&&(nt=0),!at&&0<nt&&(nt-=2*Math.PI),at&&0>nt&&(nt+=2*Math.PI),at=y>z?1:y/z,zt=y>z?z/y:1,y=En.jx(0,0,y>z?y:z,ct,ct+nt,!0),z=zo.alloc(),z.reset(),z.translate(x,b),z.rotate(a.Ne,0,0),z.scale(at,zt),Vi.Ha(y,z),zo.free(z),a.ae=y,a.ae}De.Object.defineProperties(As.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&&oi(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&oi(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&oi(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&oi(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&oi(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&oi(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&oi(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&oi(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&oi(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Pi(a,">= zero",As,"radiusX"),this._isFrozen&&oi(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Pi(a,">= zero",As,"radiusY"),this._isFrozen&&oi(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&oi(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&&oi(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&&oi(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&&oi(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&&oi(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),As.prototype.equalsApprox=As.prototype.Xa;var Bl=new pi(As,"Move",0),oa=new pi(As,"Line",1),Au=new pi(As,"Bezier",2),fh=new pi(As,"QuadraticBezier",3),wl=new pi(As,"Arc",4),Th=new pi(As,"SvgArc",4);As.className="PathSegment",As.Move=Bl,As.Line=oa,As.Bezier=Au,As.QuadraticBezier=fh,As.Arc=wl,As.SvgArc=Th;function wu(){this.H=null,this.xu=new Ne(0,0).freeze(),this.mt=new Ne(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}wu.prototype.copy=function(){var a=new wu;return this.clone(a)},wu.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},wu.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},wu.prototype.So=function(a,y){var x=this.diagram;return x===null||Pd(x,a,y),y},wu.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(Pd(x,a,y),y.assign(x.Ps(y))),y},De.Object.defineProperties(wu.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}}}),wu.prototype.getMultiTouchDocumentPoint=wu.prototype.Bz,wu.prototype.getMultiTouchViewPoint=wu.prototype.So,wu.className="InputEvent";function yd(){this.H=null,this.xa="",this.ar=this.Lr=null}yd.prototype.copy=function(){var a=new yd;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},yd.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},De.Object.defineProperties(yd.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}}}),yd.className="DiagramEvent";function Ma(){this.Fm=Na,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Ma.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Ma.prototype.copy=function(){var a=new Ma;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=On(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=On(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=On(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=On(y)&&typeof y.J=="function"?y.J():y,a},Ma.prototype.qb=function(a){a.classType===Ma&&(this.change=a)},Ma.prototype.toString=function(){var a="";return a=this.change===qu?a+"* ":this.change===Na?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===qu?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=Pr(this.object)),this.oldValue!==null&&(a+=" old: "+Pr(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Pr(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},Ma.prototype.I=function(a){return a?this.oldValue:this.newValue},Ma.prototype.Dz=function(a){return a?this.oldParam:this.newParam},Ma.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Ma.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Ma.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Ma.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},De.Object.defineProperties(Ma.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===qu&&(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}}}),Ma.prototype.redo=Ma.prototype.redo,Ma.prototype.canRedo=Ma.prototype.canRedo,Ma.prototype.undo=Ma.prototype.undo,Ma.prototype.canUndo=Ma.prototype.canUndo,Ma.prototype.getParam=Ma.prototype.Dz,Ma.prototype.getValue=Ma.prototype.I,Ma.prototype.clear=Ma.prototype.clear;var qu=new pi(Ma,"Transaction",-1),Na=new pi(Ma,"Property",0),pl=new pi(Ma,"Insert",1),Hl=new pi(Ma,"Remove",2);Ma.className="ChangedEvent",Ma.Transaction=qu,Ma.Property=Na,Ma.Insert=pl,Ma.Remove=Hl;function Et(){this.o=new Ci().freeze(),this.xa="",this.j=!1}Et.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},Et.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()},Et.prototype.canUndo=function(){return this.isComplete},Et.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()}},Et.prototype.canRedo=function(){return this.isComplete},Et.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()}},Et.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new xr,x=0;x<a.count;x++){var b=a.M(x);if(b!==null&&b.change===Na&&b.object){var E=y.get(b.object);E||(E=new xr,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()}},De.Object.defineProperties(Et.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}}}),Et.prototype.optimize=Et.prototype.ak,Et.prototype.redo=Et.prototype.redo,Et.prototype.canRedo=Et.prototype.canRedo,Et.prototype.undo=Et.prototype.undo,Et.prototype.canUndo=Et.prototype.canUndo,Et.prototype.clear=Et.prototype.clear,Et.className="Transaction";function wt(){this.Pt=new xi,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}wt.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},wt.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},wt.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},$t=wt.prototype,$t.Xw=function(a){this.Pt.add(a)},$t.Rx=function(a){this.Pt.remove(a)},$t.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},$t.eb=function(a){return a===void 0&&(a=""),Ft(this,!0,a)},$t.Kf=function(){return Ft(this,!1,"")};function Ft(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&er("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}$t.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()}},wt.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},wt.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){er("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},wt.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},wt.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){er("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},wt.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var b=new Ma;for(b.change=qu,b.propertyName=a,b.object=x,b.oldValue=y,a=this.models;a.next();)y=a.value,b.model=y,y.ds(b)},wt.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new Et);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||er("Change not within a transaction: "+x.toString()))}},wt.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},De.Object.defineProperties(wt.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}}}),wt.prototype.handleChanged=wt.prototype.Tu,wt.prototype.redo=wt.prototype.redo,wt.prototype.undo=wt.prototype.undo,wt.prototype.canUndo=wt.prototype.canUndo,wt.prototype.discardHistoryAfterIndex=wt.prototype.lx,wt.prototype.rollbackTransaction=wt.prototype.Kf,wt.prototype.commitTransaction=wt.prototype.eb,wt.prototype.startTransaction=wt.prototype.Ea,wt.prototype.removeModel=wt.prototype.Rx,wt.prototype.addModel=wt.prototype.Xw,wt.prototype.clear=wt.prototype.clear,wt.className="UndoManager";function Ut(){Yo(this),this.H=Dh,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new wu,this.Zr=-1}Ut.prototype.toString=function(){return this.name!==""?this.name+" Tool":nr(this.constructor)},Ut.prototype.updateAdornments=function(){},Ut.prototype.canStart=function(){return this.isEnabled},Ut.prototype.doStart=function(){},Ut.prototype.doActivate=function(){this.isActive=!0},Ut.prototype.doDeactivate=function(){this.isActive=!1},Ut.prototype.doStop=function(){},Ut.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},Ut.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},Ut.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},Ut.prototype.doMouseMove=function(){},Ut.prototype.doMouseUp=function(){this.stopTool()},Ut.prototype.doMouseWheel=function(){},Ut.prototype.canStartMultiTouch=function(){return!0},Ut.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Ne.allocAt(NaN,NaN)),b=y.So(1,Ne.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}Ne.free(x),Ne.free(b)},Ut.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Ne.allocAt(NaN,NaN)),b=y.So(1,Ne.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 Ne((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}Ne.free(x),Ne.free(b)},Ut.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},Ut.prototype.doKeyUp=function(){},Ut.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},Ut.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},Ut.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(ps?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||(ps?y.meta:y.control)||y.shift||a.clearSelection()}},Ut.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,se(a,b,x),b.handled};function se(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)}}}Ut.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}},Ut.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},Ut.prototype.doCurrentObjectChanged=function(){},Ut.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===Ee&&!y.shift||E===ye&&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===Ee&&y.shift||E===ye&&!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)}}},Ut.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},Ut.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,b=y.clone(this.yy);this.Zr=wi(function(){x.doWaitAfter(b)},a)},Ut.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Le.clearTimeout(this.Zr),this.Zr=-1},Ut.prototype.doWaitAfter=function(){},Ut.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},Ut.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},De.Object.defineProperties(Ut.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof Un&&(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}}}),Ut.prototype.startTransaction=Ut.prototype.Ea,Ut.className="Tool";function Vt(){Ut.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 Zi(2,2).ja(),this.Ha=5e3,this.ia=ye,this.u=gn,this.Mp=this.j=null,this.zj=-1}Tn(Vt,Ut),Vt.prototype.initializeStandardTools=function(){},Vt.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()}},Vt.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===fn&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===In){y.bubbles=!0;return}if(this.gestureBehavior===fn)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===ye?this.mouseWheelBehavior=Ee:this.mouseWheelBehavior===Ee&&(this.mouseWheelBehavior=ye)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},Vt.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===In){y.bubbles=!0;return}if(this.gestureBehavior===fn)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}}pe(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function pe(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}Vt.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof bs&&(y===a||y.rg(a))||this.hideToolTip()},Vt.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()))},Vt.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)},Vt.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()},Vt.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 Nr&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(Le.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var E=this;this.zj=wi(function(){E.hideToolTip()},a)}},Vt.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}},Vt.prototype.hideToolTip=function(){this.zj!==-1&&(Le.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 Nr&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},Vt.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()},Vt.prototype.doMouseWheel=function(){this.standardMouseWheel()},Vt.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},Vt.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},Vt.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},Vt.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},Vt.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)},De.Object.defineProperties(Vt.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}}}),Vt.prototype.replaceStandardTool=Vt.prototype.gb;var ye=new pi(Vt,"WheelScroll",0),Ee=new pi(Vt,"WheelZoom",1),Ye=new pi(Vt,"WheelNone",2),gn=new pi(Vt,"GestureZoom",3),fn=new pi(Vt,"GestureCancel",4),In=new pi(Vt,"GestureNone",5);Vt.className="ToolManager",Vt.WheelScroll=ye,Vt.WheelZoom=Ee,Vt.WheelNone=Ye,Vt.GestureZoom=gn,Vt.GestureCancel=fn,Vt.GestureNone=In;function Qe(){Ut.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 Ne(NaN,NaN),this.Fr=new Ne,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new xi().freeze(),this.ia=new st,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var ci;Tn(Qe,Ut),Qe.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},Qe.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},Qe.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,(ps?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},Qe.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),en=null,this.isActive=!0,this.tl.set(a.position),Yn(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&&gu(a),Kd(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,en=this,un=this.diagram,this.doSimulatedDragOut()))};function Yn(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof Gi?(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 si,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}Qe.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},Qe.prototype.Pd=function(a){return a===void 0?new sc(ls):this.isGridSnapEnabled?new sc(new Ne(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new sc(a.copy())},Qe.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),mi(this),gc(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<ci.count){for(var y=ci,x=y.length,b=0;b<x;b++){var E=y.M(b);sr(E),Hi(E),mi(E),E.diagram.ug()}y.clear()}sr(this),this.tl.h(NaN,NaN),un!==null&&(un.currentCursor=""),en=un=null,Hi(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),wd(a,!0)},Qe.prototype.stopTransaction=function(){var a=this.diagram,y=Ut.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function mi(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,ki(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function Rn(){var a=en;Hi(a),to(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}Qe.prototype.doCancel=function(){Hi(this),to(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},Qe.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},Qe.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function Ai(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")):to(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 xr,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 Gi&&b.canCopy()&&x.add(b,a.Pd());a.copiedParts=x,Yn(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 Gi&&(x.value.point=new Ne(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function sr(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 Er(a,y,x){var b=a.diagram,E=a.startPoint,z=Ne.alloc();z.assign(b.lastInput.documentPoint),a.moveParts(y,z.re(E),x),Ne.free(z),b.Gf("temporaryPixelRatio")===!0&&b.Yh===null&&30<b.$w&&(gu(b),b.hk())}Qe.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var b=this.diagram;b!==null&&Mc(b,a,y,this.dragOptions,x)};function to(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 Gi&&b.suspendsRouting){var E=x.value.point;a.draggedParts.add(b,a.Pd()),Nf(b,-E.x,-E.y)}y.bd()}}function gr(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),Kn(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=ki(a,E,b),!a.isActive&&en===null)return;var ot=b!==null?b.part:null;if(ot===null||x.handlesDragDropForTopLevelParts&&ot.isTopLevel&&!(ot instanceof Do)){var at=x.mouseDragOver;at!==null&&(at(E),nt=!0)}if(!a.isActive&&en===null||(a.doDragOver(y,b),!a.isActive&&en===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)}Qe.prototype.findDragOverObject=function(a){var y=this;return Xs(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})},Qe.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 ki(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&&en===null||x===null)return b;for(y.handled=!1,E=x;E!==null;)a.Cg.push(E),E=yr(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 yr(a){var y=a.panel;return y!==null?y:a instanceof Vr&&!(a instanceof Do)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function Kr(a,y,x){var b=a.Oe;if(b===null)return null;var E=a.diagram.og(y,b.portGravity,function(ut){return b.findValidLinkablePort(ut,x)});a=Ne.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(Fo,a);at=y.Bf(at),at<z&&(nt=ot,z=at)}}return Ne.free(a),nt}function Kn(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=Kr(a,x.i(0),!1),z!==null&&(nt=z.part));var ot=null,at=null;x.toNode===null&&(ot=Kr(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)):Ei(E,nt,z,at,ot):Ei(E,null,null,null,null)}}}}Qe.prototype.doDragOver=function(){};function Jn(a,y){var x=a.diagram;a.dragsLink&&Kn(a,!0),mi(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;Wi(a,E,z),z=yr(z)}}else z=x.mouseDrop,z!==null&&z(E);if(a.isActive||en!==null){for(E=(a.copiedParts||a.draggedParts).iterator;E.next();)z=E.key,z instanceof hr&&z.linksConnected.each(function(ot){ot.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||en!==null){for(a=ai.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof hr&&ge(x,b,a);ai.free(a)}}}function Wi(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Do||(x=a.mouseDrop,x!==null&&x(y))}function ge(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 Gi},!0,function(E){return E instanceof Gi},b),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}Qe.prototype.doDropOnto=function(){},Qe.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()?(Ai(this,!1),Kd(a,this.copiedParts),Er(this,this.copiedParts,!1),gc(a,this.copiedParts)):this.mayMove()?(Hi(this),Er(this,this.draggedParts,!0)):this.mayDragOut()?(Ai(this,!1),Er(this,this.copiedParts,!1)):Hi(this),gr(this,a.lastInput.documentPoint))}},Qe.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),Ai(this,!0),Kd(a,this.copiedParts),Er(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()&&(Er(this,this.draggedParts,!0),gr(this,a.lastInput.documentPoint))),this.Ym=!0,Jn(this,a.lastInput.documentPoint),this.isActive){var b=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&Ce(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)}}},Qe.prototype.simulatedMouseMove=function(a,y,x){if(en===null)return!1;var b=en.diagram;x instanceof Un||(x=null);var E=un;return x!==E&&(E!==null&&E!==b&&(E.ug(),en.isDragOutStarted=!1,E=E.toolManager.findTool("Dragging"),E!==null&&E.doSimulatedDragLeave()),un=x,x!==null&&x!==b&&(Rn(),E=x.toolManager.findTool("Dragging"),E!==null&&(ci.contains(E)||ci.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)},Qe.prototype.simulatedMouseUp=function(a,y,x){if(en===null)return!1;var b=un,E=en.diagram;if(x===null)return en.doCancel(),!0;if(x!==b){var z=b.toolManager.findTool("Dragging");if(b!==null&&b!==E&&z!==null)return b.ug(),en.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;un=x,b=x.toolManager.findTool("Dragging"),b!==null&&(Rn(),ci.contains(b)||ci.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 Ne),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=en,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function Ce(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof hr&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}Qe.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(ps?!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())},Qe.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())},Qe.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())},Qe.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},Qe.prototype.Az=function(){return en},Qe.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=en;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},Qe.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),iu(a),a.animationManager.Cc(),a=en,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},Qe.prototype.doSimulatedDragLeave=function(){var a=en;a!==null&&a.doSimulatedDragOut(),this.doCancel()},Qe.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=en;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;Ve(this,y.draggedParts.Lf(),!1,a.firstInput),Er(this,this.copiedParts,!1),gr(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},Qe.prototype.doSimulatedDrop=function(){var a=this.diagram,y=en;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"),Ve(this,y.draggedParts.Lf(),!0,a.lastInput),Er(this,this.copiedParts,!1);var b=new xi;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0,b.add(E)})),Jn(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 Ve(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 ut=at.value;if(ut.isVisible()){var ct=ut.location;ut=ct.x,ct=ct.y,isNaN(ut)||isNaN(ct)||(ut<b&&(b=ut),ct<E&&(E=ct),ut>nt&&(nt=ut),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 xr,ot=Ne.alloc(),at=y.iterator;at.next();)ut=at.value,ut instanceof Gi&&ut.canCopy()&&(ct=x.I(ut),ct!==null&&(ct.points=ut.points,Nf(ct,z.x-b,z.y-E),ct.suspendsRouting=!0,nt.add(ct,a.Pd())));for(y=y.iterator;y.next();)ut=y.value,ut.Zc()&&ut.canCopy()&&(at=x.I(ut),at!==null&&(ut=ut.location,ot.h(z.x-(b-ut.x),z.y-(E-ut.y)),at.location=ot,at.Va(),nt.add(at,a.Pd(ot))));Ne.free(ot),a.copiedParts=nt,Yn(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)}}}Qe.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},Qe.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new Ne},De.Object.defineProperties(Qe.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}}}),Qe.prototype.getDraggingSource=Qe.prototype.Az;var en=null,un=null;Qe.className="DraggingTool",ci=new Ci,Uo("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Vt.prototype.doCancel=function(){en!==null&&en.doCancel(),Ut.prototype.doCancel.call(this)};function hn(){Ut.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Gi,y=new Ko;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Ko,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new hr,y=new Ko,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=xs,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new hr,y=new Ko,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=xs,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 xr,this.Of=this.gj=this.Pf=null}Tn(hn,Ut),hn.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},hn.prototype.copyPortProperties=function(a,y,x,b,E){if(a!==null&&y!==null&&x!==null&&b!==null){var z=y.Df(),nt=Zi.alloc();nt.width=y.naturalBounds.width*z,nt.height=y.naturalBounds.height*z,b.desiredSize=nt,Zi.free(nt),E?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=Fo,z=Ne.alloc(),x.location=y.ga(Fo,z),Ne.free(z),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,E)}},hn.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=xs,y.fromSpot=Wa,y.toSpot=Wa),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},hn.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},hn.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof hr){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)}},hn.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof hr))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof hr)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(b===!1)break;a=a.panel}return null},hn.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(yt){return E.findValidLinkablePort(yt,a)},null,!0);for(b=1/0,y=null,z=z.iterator;z.next();){var nt=z.value,ot=nt.part;if(ot instanceof hr){var at=nt.ga(Fo,Ne.alloc()),ut=x.x-at.x,ct=x.y-at.y;Ne.free(at),at=ut*ut+ct*ct,at<b&&(ut=this.validPortsCache.I(nt),ut!==null?ut&&(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 hr&&(x.layer===null||x.layer.allowLink))?y:null},hn.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},hn.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},hn.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},hn.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof hr))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof hr))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},hn.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)},hn.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 xi;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))))}hn.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!==bh){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!qn(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!qn(this,a,y,x,!0)}if(b===oc)return a===y?a=!0:(b=new xi,b.add(y),a=Te(this,b,a,y,x)),!a;if(b===Vd)return!qn(this,a,y,x,!1);if(b===cA)return a===y?a=!0:(b=new xi,b.add(y),a=ln(this,b,a,y,x)),!a}return!0};function qn(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&&qn(a,nt,x,b,E)))return!0}return!1}function Te(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&&Te(a,y,nt,b,E)))return!0}return!1}function ln(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&&ln(a,y,ot,b,E))return!0}}return!1}De.Object.defineProperties(hn.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}}}),hn.className="LinkingBaseTool";function mn(){hn.call(this),this.name="Linking",this.V={},this.F=null,this.K=Fn,this.Xd=null}Tn(mn,hn),mn.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},mn.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 hr)))return null;var x=this.direction;if(x===Fn||x===Xn){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===Fn||x===li)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},mn.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 hr&&(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 hr&&(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)},mn.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()},mn.prototype.doStop=function(){hn.prototype.doStop.call(this),this.startObject=null},mn.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 hr&&(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)}}},mn.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof Gi)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)},mn.prototype.insertLink=function(a,y,x,b){return this.diagram.partManager.insertLink(a,y,x,b)},mn.prototype.doNoLink=function(){},De.Object.defineProperties(mn.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 Fn=new pi(mn,"Either",0),Xn=new pi(mn,"ForwardsOnly",0),li=new pi(mn,"BackwardsOnly",0);mn.className="LinkingTool",mn.Either=Fn,mn.ForwardsOnly=Xn,mn.BackwardsOnly=li;function si(){hn.call(this),this.name="Relinking";var a=new Ko;a.figure="Diamond",a.desiredSize=aa,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Ko,a.figure="Diamond",a.desiredSize=aa,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new ai}Tn(si,hn),si.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Gi){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)}},si.prototype.makeAdornment=function(a,y){var x=new bs;return x.type=ei.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},si.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},si.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 Gi))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=bo),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=bo),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},si.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=Wh),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}},si.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()},si.prototype.doStop=function(){hn.prototype.doStop.call(this),this.handle=null},si.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 hr&&(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()}}},si.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},si.prototype.doNoRelink=function(){};function Ei(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)}De.Object.defineProperties(si.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}}}),si.className="RelinkingTool",Uo("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),Uo("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function Ii(){Ut.call(this),this.name="LinkReshaping";var a=new Ko;a.figure="Rectangle",a.desiredSize=ca,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new Ko,a.figure="Diamond",a.desiredSize=aa,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new Ne,this.Yq=new Ci}Tn(Ii,Ut),Ii.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:ir},Ii.prototype.om=function(a,y){a.reshapingBehavior=y},Ii.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Gi){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)}},Ii.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=ei.Link,x=y.firstPickIndex;var z=y.lastPickIndex,nt=b?1:0;if(y.resegmentable&&y.computeCurve()!==qc)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 ut=y.i(x+1);En.B(at.x,ut.x)&&En.B(at.y,ut.y)&&(ut=y.i(x-1)),En.B(at.x,ut.x)?(this.om(ot,Xr),ot.cursor="n-resize"):En.B(at.y,ut.y)&&(this.om(ot,dr),ot.cursor="w-resize")}else nt===z-1&&b?(at=y.i(z-1),ut=y.i(z),En.B(at.x,ut.x)&&En.B(at.y,ut.y)&&(at=y.i(z+1)),En.B(at.x,ut.x)?(this.om(ot,Xr),ot.cursor="n-resize"):En.B(at.y,ut.y)&&(this.om(ot,dr),ot.cursor="w-resize")):nt!==z&&(this.om(ot,$i),ot.cursor="move");E.add(ot)}E.adornedObject=a}return E},Ii.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},Ii.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},Ii.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},Ii.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 Gi){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}}},Ii.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},Ii.prototype.stopTransaction=function(){var a=this.diagram,y=Ut.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Ii.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},Ii.prototype.getResegmentingPoint=function(){return this.handle.ga(Fo)},Ii.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},Ii.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 Ne(nt.x,(z.y+nt.y)/2)),ot.cd(x+1,new Ne(z.x,(z.y+nt.y)/2))):(ot.cd(x-2,new Ne((z.x+nt.x)/2,nt.y)),ot.cd(x+1,new Ne((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 Ne(b.x,(b.y+nt.y)/2)),ot.cd(x+2,new Ne(nt.x,(b.y+nt.y)/2))):(ot.cd(x-1,new Ne((b.x+nt.x)/2,b.y)),ot.cd(x+2,new Ne((b.x+nt.x)/2,nt.y))),ot.mb(x+1),ot.mb(x),y.points=ot,y.Wb())}}else nt=Ne.alloc(),En.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()),Ne.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}Ii.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===Xr?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):b===dr&&(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===Xr?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):b===dr&&(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);En.B(z.x,E.x)&&En.B(E.y,nt.y)?(En.B(z.x,y.i(b-2).x)&&!En.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),En.B(nt.y,y.i(b+2).y)&&!En.B(nt.x,y.i(b+2).x)?y.m(b+1,nt.x,a.y):y.L(b+1,nt.x,a.y)):En.B(z.y,E.y)&&En.B(E.x,nt.x)?(En.B(z.y,y.i(b-2).y)&&!En.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),En.B(nt.x,y.i(b+2).x)&&!En.B(nt.y,y.i(b+2).y)?y.m(b+1,a.x,nt.y):y.L(b+1,a.x,nt.y)):En.B(z.x,E.x)&&En.B(E.x,nt.x)?(En.B(z.x,y.i(b-2).x)&&!En.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),En.B(nt.x,y.i(b+2).x)&&!En.B(nt.y,y.i(b+2).y)?y.m(b+1,a.x,nt.y):y.L(b+1,a.x,nt.y)):En.B(z.y,E.y)&&En.B(E.y,nt.y)&&(En.B(z.y,y.i(b-2).y)&&!En.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),En.B(nt.y,y.i(b+2).y)&&!En.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(Fo,Ne.alloc()),b=y.getLinkPointFromPoint(b,E,z,a,!0,Ne.alloc()),y.L(0,b.x,b.y),Ne.free(z),Ne.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(Fo,Ne.alloc()),a=y.getLinkPointFromPoint(b,E,x,a,!1,Ne.alloc()),y.L(y.pointsCount-1,a.x,a.y),Ne.free(x),Ne.free(a));y.zf()},Ii.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case $i:return a;case Xr:return new Ne(y.i(x).x,a.y);case dr:return new Ne(a.x,y.i(x).y);default:case ir:return y.i(x)}},De.Object.defineProperties(Ii.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}}}),Ii.prototype.setReshapingBehavior=Ii.prototype.om,Ii.prototype.getReshapingBehavior=Ii.prototype.Ru;var ir=new pi(Ii,"None",0),dr=new pi(Ii,"Horizontal",1),Xr=new pi(Ii,"Vertical",2),$i=new pi(Ii,"All",3);Ii.className="LinkReshapingTool",Ii.None=ir,Ii.Horizontal=dr,Ii.Vertical=Xr,Ii.All=$i,Uo("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function Hn(){Ut.call(this),this.name="Resizing",this.o=new Zi(1,1).freeze(),this.j=new Zi(9999,9999).freeze(),this.yg=new Zi(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new Ko;a.alignmentFocus=Fo,a.figure="Rectangle",a.desiredSize=ca,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new Ne,this.Dw=new Zi,this.Tn=new Ne,this.rt=new Zi(0,0),this.qt=new Zi(1/0,1/0),this.pt=new Zi(1,1)}Tn(Hn,Ut),Hn.prototype.updateAdornments=function(a){if(!(a===null||a instanceof Gi)){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)}},Hn.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new bs,y.type=ei.Spot,y.locationSpot=Fo;var x=new Gh;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,nl)),y.add(this.makeHandle(a,ru)),y.add(this.makeHandle(a,Zl)),y.add(this.makeHandle(a,Ya)),y.add(this.makeHandle(a,Ha)),y.add(this.makeHandle(a,qa)),y.add(this.makeHandle(a,Nl)),y.add(this.makeHandle(a,Aa))}else if(lh(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Hn.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},Hn.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=Fo),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 ei)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},Hn.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},Hn.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))},Hn.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},Hn.prototype.stopTransaction=function(){var a=this.diagram,y=Ut.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Hn.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},Hn.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,Ne.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),a.bd(),Ne.free(E)}},Hn.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,Ne.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),Ne.free(E),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},Hn.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 Do){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()}},Hn.prototype.computeResize=function(a,y,x,b,E,z){y.Mc()&&(y=Fo);var nt=this.adornedObject.naturalBounds,ot=nt.x,at=nt.y,ut=nt.x+nt.width,ct=nt.y+nt.height,yt=1;if(!z){yt=nt.width;var kt=nt.height;0>=yt&&(yt=1),0>=kt&&(kt=1),yt=kt/yt}return kt=Ne.alloc(),En.No(a.x,a.y,ot,at,E.width,E.height,kt),a=nt.copy(),0>=y.x?0>=y.y?(a.x=Math.max(kt.x,ut-b.width),a.x=Math.min(a.x,ut-x.width),a.width=Math.max(ut-a.x,x.width),a.y=Math.max(kt.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(yt*a.width,b.height),x.height),a.width=a.height/yt):(a.width=Math.max(Math.min(a.height/yt,b.width),x.width),a.height=yt*a.width),a.x=ut-a.width,a.y=ct-a.height)):1<=y.y?(a.x=Math.max(kt.x,ut-b.width),a.x=Math.min(a.x,ut-x.width),a.width=Math.max(ut-a.x,x.width),a.height=Math.max(Math.min(kt.y-at,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(yt*a.width,b.height),x.height),a.width=a.height/yt):(a.width=Math.max(Math.min(a.height/yt,b.width),x.width),a.height=yt*a.width),a.x=ut-a.width)):(a.x=Math.max(kt.x,ut-b.width),a.x=Math.min(a.x,ut-x.width),a.width=ut-a.x,z||(a.height=Math.max(Math.min(yt*a.width,b.height),x.height),a.width=a.height/yt,a.y=at+.5*(ct-at-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(kt.x-ot,b.width),x.width),a.y=Math.max(kt.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(yt*a.width,b.height),x.height),a.width=a.height/yt):(a.width=Math.max(Math.min(a.height/yt,b.width),x.width),a.height=yt*a.width),a.y=ct-a.height)):1<=y.y?(a.width=Math.max(Math.min(kt.x-ot,b.width),x.width),a.height=Math.max(Math.min(kt.y-at,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(yt*a.width,b.height),x.height),a.width=a.height/yt):(a.width=Math.max(Math.min(a.height/yt,b.width),x.width),a.height=yt*a.width))):(a.width=Math.max(Math.min(kt.x-ot,b.width),x.width),z||(a.height=Math.max(Math.min(yt*a.width,b.height),x.height),a.width=a.height/yt,a.y=at+.5*(ct-at-a.height))):0>=y.y?(a.y=Math.max(kt.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/yt,b.width),x.width),a.height=yt*a.width,a.x=ot+.5*(ut-ot-a.width))):1<=y.y&&(a.height=Math.max(Math.min(kt.y-at,b.height),x.height),z||(a.width=Math.max(Math.min(a.height/yt,b.width),x.width),a.height=yt*a.width,a.x=ot+.5*(ut-ot-a.width))),Ne.free(kt),a},Hn.prototype.computeReshape=function(){var a=bi;return this.adornedObject instanceof Ko&&(a=$A(this.adornedObject)),!(a===br||this.diagram.lastInput.shift)},Hn.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},Hn.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},Hn.prototype.computeCellSize=function(){var a=new Zi(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},De.Object.defineProperties(Hn.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}}}),Hn.className="ResizingTool",Uo("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function no(){Ut.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new Ne,this.ue=null;var a=new Ko;a.figure="Ellipse",a.desiredSize=aa,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new Ne(NaN,NaN),this.u=0,this.F=50}Tn(no,Ut),no.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)}},no.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new bs,y.type=ei.Position,y.locationSpot=Fo;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},no.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},no.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)},no.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(Fo)},no.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)},no.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Ne(NaN,NaN),this.isActive=a.isMouseCaptured=!1},no.prototype.stopTransaction=function(){var a=this.diagram,y=Ut.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},no.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},no.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},no.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()},no.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()}},no.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},De.Object.defineProperties(no.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}}}),no.className="RotatingTool",Uo("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function ro(){Ut.call(this),this.name="ClickSelecting"}Tn(ro,Ut),ro.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},ro.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},ro.className="ClickSelectingTool";function tr(){Ut.call(this),this.name="Action",this.pk=null}Tn(tr,Ut),tr.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},tr.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()},tr.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))}},tr.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()},tr.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())},tr.prototype.doStop=function(){this.pk=null},tr.className="ActionTool";function pr(){Ut.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Ne(0,0)}Tn(pr,Ut),pr.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)},pr.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},pr.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 Vr)x.Zc()&&(lh(x),b=x.copy(),b!==null&&y.add(b));else if(x!==null){var E=y.model.copyNodeData(x);On(E)&&(y.model.xf(E),b=y.Lc(E))}if(b!==null){var z=Ne.allocAt(a.x,a.y);this.isGridSnapEnabled&&ic(this.diagram,b,a,z),b.location=z,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),Ne.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},De.Object.defineProperties(pr.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}}}),pr.className="ClickCreatingTool";function Ar(){Ut.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Vr;a.layerName="Tool",a.selectable=!1;var y=new Ko;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Tn(Ar,Ut),Ar.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))},Ar.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},Ar.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},Ar.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=Zi.alloc().h(y.width,y.height);x.desiredSize=b,this.box.mm(y.x,y.y,!1),Zi.free(b),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},Ar.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()},Ar.prototype.computeBoxBounds=function(){var a=this.diagram;return new ai(a.firstInput.documentPoint,a.lastInput.documentPoint)},Ar.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),ps?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)}},De.Object.defineProperties(Ar.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}}}),Ar.className="DragSelectingTool";function qi(){Ut.call(this),this.name="Panning",this.Xt=new Ne,this.xy=new Ne,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(Le.document,"scroll",a.Kw,!1),a.stopTool()}}Tn(qi,Ut),qi.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())},qi.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(Le.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},qi.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},qi.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},qi.prototype.doMouseMove=function(){this.move()},qi.prototype.doMouseUp=function(){this.move(),this.stopTool()},qi.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)}},De.Object.defineProperties(qi.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),qi.className="PanningTool",Uo("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),Uo("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),Uo("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),Uo("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),Uo("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function Nr(){this.F=this.u=this.j=this.o=null}De.Object.defineProperties(Nr.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}}}),Nr.className="HTMLInfo";function oo(a,y,x){this.text=a,this.hx=y,this.visible=x}oo.className="ContextMenuButtonInfo";function po(){Ut.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new Ne,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}Tn(po,Ut);function So(a){var y=new Nr;y.show=function(E,z,nt){nt.showDefaultContextMenu()},y.hide=function(E,z){z.hideDefaultContextMenu()},so=y,a.tu=function(){a.stopTool()},y=Oi("div");var x=Oi("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=Oi("style");Le.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",Qr,!1),b.addEventListener(y,"selectstart",Qr,!1),b.addEventListener(x,"contextmenu",Qr,!1)),y.className="goCXforeground",x.className="goCXbackground",Le.document.body&&(Le.document.body.appendChild(y),Le.document.body.appendChild(x)),Ps=y,ks=x,Pa=!0}function Qr(a){return a.preventDefault(),!1}po.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)},po.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},po.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},po.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,b=null;if(a instanceof Un||(a instanceof wn?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},po.prototype.doActivate=function(){},po.prototype.doMouseDown=function(){if(Ut.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)&&Xo(this)},po.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())}Xo(this)};function Xo(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var b=null;x instanceof Nr||(b=y.ic(y.lastInput.documentPoint,null,null),b!==null&&b.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(b)}}else a.canStart()&&(Po(a,!0),a.isActive||a.stopTool())}po.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function Po(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=so,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var b=x.contextMenu;b!==null?(a.currentObject=x instanceof wn?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()}}po.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},po.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 Nr&&a.show(y,x,this);this.currentContextMenu=a},po.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}},po.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 Nr&&(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 oo("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new oo("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new oo("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new oo("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new oo("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new oo("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new oo("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new oo("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new oo("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new oo("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new oo("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new oo("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new oo("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}po.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=hs(this)),Ps.innerHTML="",ks.addEventListener("pointerdown",this.tu,!1);var y=this,x=Oi("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=Oi("li"),z.className="goCXli";var nt=Oi("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",ks.style.display="block"},po.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===so){Ps.style.display="none",ks.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(ks,"pointerdown",this.tu,!1),this.currentContextMenu=null}},De.Object.defineProperties(po.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&&so===null&&js&&So(this),so},set:function(a){a===null&&(Pa=!0),so=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var so=null,Pa=!1,ks=null,Ps=null;po.className="ContextMenuTool",Uo("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function Eo(){Ut.call(this),this.name="TextEditing",this.Zh=new ua,this.ia=null,this.V=Lo,this.vj=null,this.qa=xo,this.u=1,this.F=!0,this.o=null,this.j=new Nr,this.kt=null,Fs(this,this.j)}Tn(Eo,Ut);function Fs(a,y){if(js){var x=Oi("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(ss)):E==="Tab"?(a.acceptText(wo),b.preventDefault()):E==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==xo){var b=a.kt;a.qa===Ls&&(a.qa=Rs),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==xo){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 ua&&z instanceof Eo)if(z.state===Ql)x.style.border="3px solid red",x.focus();else{var nt=b.ga(Fo),ot=E.position,at=E.scale,ut=b.Df()*at;ut<z.minimumEditorScale&&(ut=z.minimumEditorScale);var ct=b.naturalBounds.width*ut+6,yt=b.naturalBounds.height*ut+2,kt=(nt.x-ot.x)*at;nt=(nt.y-ot.y)*at,ot=b.verticalAlignment,at=(b.lineHeight+b.spacingAbove+b.spacingBelow)*b.lineCount*ut,yt=ot.y*yt-ot.y*at+ot.offsetY-(.5*yt-.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*ut+"%",x.style.lineHeight="normal",x.style.width=ct+"px",x.style.left=(kt-ct/2|0)-1+"px",x.style.top=(nt+yt|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=ut,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)}}}Eo.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||Xl&&Xl!==this&&(Xl.acceptText(Il),Xl&&Xl!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof ua&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===Lo&&!y.isSelected||this.starting===ts&&2>a.lastInput.clickCount)):!1},Eo.prototype.doStart=function(){Xl=this,this.textBlock!==null&&this.doActivate()},Eo.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 ua&&(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(nl),this.textBlock.ga(Zl));a.tv(b),x.show(y,a,this),this.currentTextEditor=x}}}},Eo.prototype.doCancel=function(){this.stopTool()},Eo.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Eo.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Il)},Eo.prototype.acceptText=function(a){switch(a){case Il:this.qa===ds?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Ls||this.qa===Ql||this.qa===Rs)&&(this.qa=ea,Va(this));break;case Ds:case ss:case wo:(ss!==a||this.textBlock.isMultiline!==!0)&&(this.qa===Ls||this.qa===Ql||this.qa===Rs)&&(this.qa=ea,Va(this))}};function Va(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=ds,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=Ql,a.doError(E,z))}}Eo.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)},Eo.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},Eo.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=xo,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},Eo.prototype.doStop=function(){Xl=null},Eo.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)))},Eo.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},De.Object.defineProperties(Eo.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)}}}),Eo.prototype.measureTemporaryTextBlock=Eo.prototype.Lx;var Ds=new pi(Eo,"LostFocus",0),Il=new pi(Eo,"MouseDown",1),wo=new pi(Eo,"Tab",2),ss=new pi(Eo,"Enter",3),cs=new pi(Eo,"SingleClick",0),Lo=new pi(Eo,"SingleClickSelected",1),ts=new pi(Eo,"DoubleClick",2),xo=new pi(Eo,"StateNone",0),Ls=new pi(Eo,"StateActive",1),Rs=new pi(Eo,"StateEditing",2),ea=new pi(Eo,"StateValidating",3),Ql=new pi(Eo,"StateInvalid",4),ds=new pi(Eo,"StateValidated",5),Xl=null;Eo.className="TextEditingTool",Eo.LostFocus=Ds,Eo.MouseDown=Il,Eo.Tab=wo,Eo.Enter=ss,Eo.SingleClick=cs,Eo.SingleClickSelected=Lo,Eo.DoubleClick=ts,Eo.StateNone=xo,Eo.StateActive=Ls,Eo.StateEditing=Rs,Eo.StateValidating=ea,Eo.StateInvalid=Ql,Eo.StateValidated=ds,Uo("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function fa(a){Tu||(ku(),Tu=!0),this.H=Dh,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=Wu,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new xi,this.ce=new Qa,this.ce.Yd=this,this.Ei=new xi,this.pu=new xi,this.Sr=new xi,this.pr=new xi,a&&Object.assign(this,a)}fa.prototype.Xe=function(a){this.H=a},fa.prototype.canStart=function(){return!0};function ml(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),su(a.H),a.zb=!0)}function ho(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,b=a.Zd.contains("Model");b&&(a.Ok=!0,a.Pk===Wu?(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(),xu(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,b=y.vc.get(x),x.autoScale!==dl&&b!==null&&(delete b.start.scale,delete b.end.scale),Le.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&gu(x),Rd(x),a.zb=!1,y.start(),y.bc&&(Ea(a),x.Ya(),ec(y,0),iu(x,!0),Za(a),x.R("AnimationStarting",a)))}))}}function Oa(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Iu(a,y,x,b){a.isTicking||Oa(a)||y instanceof Gi&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}$t=fa.prototype,$t.fv=function(a){return this.ce.fv(a)},$t.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 wn&&at.diagram!==null||at instanceof Un){ot=!0;break t}}ot=!1}ot?gh(nt,!1):nt.Xk=!0}}E.pu.clear(),E.bc!==!1&&(Ea(E),iu(E.H),Za(E)),Le.requestAnimationFrame(x)}}var b=a.Ei,E=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),Le.requestAnimationFrame(function(){x()}))}function na(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function Ea(a){if(!a.vq){var y=a.H;a.Ow=y.skipsUndoManager,a.cw=y.skipsModelSourceBindings,y.skipsUndoManager=!0,y.skipsModelSourceBindings=!0,a.vq=!0}}function Za(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}$t.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(),xu(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),xu(y,this.H)},$t.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))},$t.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),Fa(this,a))},$t.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),xl(this.ce,y,"position",y.position,y.position),Fa(this,a))};function ol(a,y,x){!a.zb||y.D(x)||Oa(a)||(a.H.pi||(y=x.copy()),xl(a.ce,a.H,"position",y,x))}function Hs(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function Fa(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function El(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],ut=y[1],ct=y[2];return y=y[3],ot===0||ot===100?(z=at,nt=ut):(ct===0||ct===100)&&(at=z,ut=nt),180<Math.abs(at-z)&&(at>z?z+=360:at+=360),z=E(x,z,at-z,b)%360,nt=E(x,nt,ut-nt,b),ot=E(x,ot,ct-ot,b),x=E(x,a,y-a,b),"hsla("+z+", "+nt+"%, "+ot+"%, "+x+")"}function ku(){function a(x,b,E,z,nt,ot){x.position=new Ne(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot))}var y=new xr;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 Ne(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 Ne(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 Ne(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,ut=E.actualBounds;E=ut.x+ut.width/2-at.width/2,at=ut.y+ut.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 Ne(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=El(b,E,nt,ot,z)}),y.add("stroke",function(x,b,E,z,nt,ot){x.stroke=El(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=El(b,E,nt,ot,z)}),y.add("areaBackground",function(x,b,E,z,nt,ot){x.areaBackground=El(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)}),fu=y}De.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&&Pi(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 fu=null,Tu=!1,Wu=new pi(fa,"Default",1),oh=new pi(fa,"AnimateLocations",2),sh=new pi(fa,"None",3);fa.className="AnimationManager",fa.defineAnimationEffect=function(a,y){Tu||(ku(),Tu=!0),fu.add(a,y)},fa.Default=Wu,fa.AnimateLocations=oh,fa.None=sh;function Qa(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=Ph,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=ls,this.vc=new xr,this.Tt=new xr,this.yl=new xi,this.Ut=new xi,this.dw=Ic,a&&Object.assign(this,a)}Qa.prototype.suspend=function(){this.Xk=!0},Qa.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,gh(this,!0),Ea(this.Yd),iu(this.H),Za(this.Yd),this.H.redraw()};function xu(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}$t=Qa.prototype,$t.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 Un?a=x:x instanceof wn&&(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===Wu&&this===y.defaultAnimation&&(this.Lp=Oh,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=Ed),Ea(y),this.yl.each(function(b){b.data=null,a.add(b)}),Za(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,wa(y,this),this)},$t.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},$t.add=function(a,y,x,b,E){if(y==="position"&&x.Xa(b))return this;if(this.H===null&&(a instanceof Un?this.H=a:a instanceof wn&&a.diagram!==null&&(this.H=a.diagram)),a instanceof Vr){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return xl(this,a,y,x,b,E),this};function xl(a,y,x,b,E,z){var nt=a.vc;if(y instanceof Un&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(cd(b),bg(),b=[Di.j,Di.u,Di.o,Di.F],cd(E),bg(),E=[Di.j,Di.u,Di.o,Di.F]),nt.contains(y)){var ot=nt.I(y),at=ot.start,ut=ot.end;at[x]===void 0&&(at[x]=cl(b)),ut[x]=cl(E)}else at={},ut={},at[x]=cl(b),ut[x]=cl(E),ot=at.position,y instanceof wn&&ot instanceof Ne&&!ot.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&ot.assign(ut.position),ot=new fc(at,ut,z),nt.add(y,ot);nt=at[x],nt instanceof Ne&&!nt.w()&&nt.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof Vr?ot.Ku.location=cl(y.location):z&&(ot.Ku[x]=cl(b))}function cl(a){return a instanceof Ne||a instanceof Zi?a.copy():a}$t.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},$t.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function gh(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),Ea(x),ec(a,E),iu(a.H,!0),Za(x),b>a.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function ec(a,y){for(var x=a.Gd,b=a.vc.iterator,E=a.Wk;b.next();){var z=b.key;if(!(z instanceof wn&&z.diagram===null)){var nt=b.value,ot=E?nt.end:nt.start;nt=E?nt.start:nt.end;var at=fu,ut;for(ut in nt)ut==="position"&&(nt["position:placeholder"]||nt["position:nodeCollapse"])||at.get(ut)===null||at.get(ut)(z,ot[ut],nt[ut],a.Lp,y,x,a)}}}$t.stop=function(){return this.bc?(this.Ml(!0),this):this},$t.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,Ea(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=fu;b.next();){var nt=b.key,ot=b.value,at=E?ot.end:ot.start,ut=E?ot.start:ot.end,ct=ot.Ku,yt;for(yt in ut)if(z.get(yt)!==null){var kt=yt;!ot.Hu||kt!=="position:nodeCollapse"&&kt!=="position:placeholder"||(kt="position"),z.get(kt)(nt,at[yt],ct[yt]!==void 0?ct[yt]:ot.Hu?at[yt]:ut[yt],this.Lp,this.Gd,this.Gd,this)}ot.Hu&&ct.location!==void 0&&nt instanceof Vr&&(nt.location=ct.location),ot.nv&&nt instanceof Vr&&nt.Zb(!1)}if(y.As.clear(),wd(y,!1),y.Ya(),y.N(),iu(y,!0),x.defaultAnimation===this){for(yt=x.pr.iterator;yt.next();)E=yt.value,E.Tg!==null&&(E.points=E.Tg,E.Tg=null);x.pr.clear()}iu(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),Za(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),xu(this,null),x.Ml(this),y.$b())}},$t.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof Do&&(b=y.placeholder),b!==null?(x=b.ga(nl),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Ne(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Do)for(a=a.memberParts;a.next();)b=a.value,b instanceof hr&&this.Cj(b,y)},$t.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Do&&(x=y.placeholder),x!==null){var b=x.ga(nl);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 Do)for(a=a.memberParts;a.next();)b=a.value,b instanceof hr&&this.Aj(b,y)}},$t.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},De.Object.defineProperties(Qa.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Pi(a,">= 1",Qa,"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:qe("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}}}),Qa.prototype.getTemporaryState=Qa.prototype.Ez,Qa.prototype.stop=Qa.prototype.stop,Qa.prototype.add=Qa.prototype.add,Qa.prototype.addTemporaryPart=Qa.prototype.Iy;function Ph(a,y,x,b){return a/=b/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Oh(a,y,x,b){return a===b?y+x:x*(-Math.pow(2,-10*a/b)+1)+y}Qa.className="Animation",Qa.EaseLinear=function(a,y,x,b){return x*a/b+y},Qa.EaseInOutQuad=Ph,Qa.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},Qa.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},Qa.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},Qa.EaseOutExpo=Oh;function fc(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}fc.className="AnimationState";function Vu(a,y,x){this.xd=null,this.rf=a,this.so=x||ia,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=eu))}Vu.prototype.copy=function(){var a=new Vu(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 La(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))}De.Object.defineProperties(Vu.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 ia=new pi(Vu,"Default",1),eu=new pi(Vu,"Immediate",2),vl=new pi(Vu,"Bundled",3);Vu.className="AnimationTrigger",Vu.Default=ia,Vu.Immediate=eu,Vu.Bundled=vl;function ga(a){Yo(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)}$t=ga.prototype,$t.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,Oo(x)}a.clear(),this.Zq.length=0},$t.Xe=function(a){this.H=a},$t.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 Do?E++:at instanceof hr?b++:at instanceof Gi?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&&vs(b)&&(ot+=" #"+vs(b)),x instanceof hr?ot+=" "+Pr(b):x instanceof Gi&&(ot+=" "+Pr(x.fromNode)+" "+Pr(x.toNode));return y+" "+this.Pa.count+": "+ot},$t.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=Ne.alloc(),z=this.Pa.s,nt=z.length;nt--;){var ot=z[nt];if((b!==!0||ng(ot)!==!1)&&ot.isVisible()&&(E.assign(a),Zo(E,ot.oe),ot=ot.ic(E,y,x),ot!==null&&(y!==null&&(ot=y(ot)),ot!==null&&(x===null||x(ot)))))return Ne.free(E),ot}return Ne.free(E),null},$t.ji=function(a,y,x,b){if(y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Ci||b instanceof xi||(b=new xi),this.Uh===!1)return b;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var z=Ne.alloc(),nt=this.Pa.s,ot=nt.length;ot--;){var at=nt[ot];if((E!==!0||ng(at)!==!1)&&at.isVisible()){z.assign(a),Zo(z,at.oe);var ut=at;at.ji(z,y,x,b)&&(y!==null&&(ut=y(ut)),ut===null||x!==null&&!x(ut)||b.add(ut))}}return Ne.free(z),b},$t.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 xi||(E=new xi),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 ut=at;at.Cf(a,y,x,b,E)&&(y!==null&&(ut=y(ut)),ut===null||x!==null&&!x(ut)||E.add(ut))}}return E},$t.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 ut=ot[at];if((nt!==!0||ng(ut)!==!1)&&z(ut)&&ut.isVisible()){var ct=ut;ut.Cf(a,y,x,b,E)&&(y!==null&&(ct=y(ct)),ct===null||x!==null&&!x(ct)||E.add(ct))}}return E},$t.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 xi)&&(z=E),E=!0),z instanceof Ci||z instanceof xi||(z=new xi),this.Uh===!1)return z;var nt=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(nt=!0);for(var ot=Ne.alloc(),at=Ne.alloc(),ut=this.Pa.s,ct=ut.length;ct--;){var yt=ut[ct];if((nt!==!0||ng(yt)!==!1)&&yt.isVisible()){ot.assign(a),Zo(ot,yt.oe),at.h(a.x+y,a.y),Zo(at,yt.oe);var kt=yt;yt.og(ot,at,x,b,E,z)&&(x!==null&&(kt=x(kt)),kt===null||b!==null&&!b(kt)||z.add(kt))}}return Ne.free(ot),Ne.free(at),z},$t.Fd=function(a,y){if(this.visible){var x=this.Pa.s,b=x.length;if(b!==0){a=ar();for(var E=ar(),z=0;z<b;z++){var nt=x[z];if(nt.vw=z,nt instanceof Gi){if(nt.fd===!1)continue}else if(nt instanceof bs&&nt.adornedPart!==null)continue;var ot=nt.actualBounds;nt.isVisible()&&Ms(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]);Lr(a),Lr(E)}}};function nu(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}$t.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=nu(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 Hu(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=nu(a,y),ot=a.Zq;ot.length=0;for(var at=x.scale,ut=ai.alloc(),ct=0;ct<z;ct++){var yt=E[ct];b.contains(yt)&&a.Oj(y,yt,x,ot,at,ut,!1)}ai.free(ut),y.globalAlpha=nt}}}$t.Oj=function(a,y,x,b,E,z,nt){if(nt&&!ng(y))a.Hs(y);else{if(b!==null&&y instanceof Gi&&(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 xh?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))}},$t.g=function(a,y,x,b,E){var z=this.diagram;z!==null&&z.cb(Na,a,this,y,x,b,E)},$t.oi=function(a,y,x){var b=this.Pa;if(y.Ig=this,this===null&&Oo(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)),Ou(this,a,y),a},$t.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,Oo(y),a};function Ou(a,y,x){if(y=Wc(a,y,x),x instanceof Do&&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&&Ou(a,-1,y)}x.svg!==null&&x.svg.remove()}function Wc(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}De.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===""&&qe("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&qe("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)&&Pi(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 Un(a,y){if(ld||(Tl(),ld=!0),Yo(this),Dh=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,js){var x=this,b=function(){x.removeEventListener(Le.document,"DOMContentLoaded",b,!1),x.setRTL()};Le.document.body!==null?this.setRTL():x.addEventListener(Le.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===Na&&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=Xv(),this.Wg=!0,od(this),this.layout=new Ka,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 Xd,a!==void 0&&(typeof a=="string"||Le.Element&&a instanceof Element?rd(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var nc,Dh;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 xr,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new Ne(NaN,NaN).freeze(),a.du=new Ne(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new Ne(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new zo,a.zu=new Ne(NaN,NaN).freeze(),a.ut=new ai(NaN,NaN,NaN,NaN).freeze(),a.rj=new Rr(0,0,0,0).freeze(),a.sj=Ic,a.nu=!1,a.Zt=null,a.fu=null,a.yh=dl,a.zk=Bs,a.Fg=dl,a.pq=Bs,a.yt=nl,a.Bt=nl,a.Fc=!0,a.pn=!1,a.De=new xi,a.Eh=new xr,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new Rr(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new wu,a.bq.diagram=a,a.Qg=new wu,a.Qg.diagram=a,a.cj=new wu,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,KA(a),a.ai=new xi,a.Ht=!0,a.uu=kc,a.pw=!1,a.wu=bh,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 xr,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 Rr(5).freeze(),a.Hw=new xi().freeze(),a.Nt=999999999,a.nw=new xi().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 xi,a.ow=new xi,a.Xh=null,a.aw=new Zi(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new Ne,bounds:new ai,Py:new Zi,bA:new Zi,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 Zi(NaN,NaN).freeze(),a.Sp=new ai(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new xr;var y=new hr,x=new ua;x.bind(new Yl("text","",Pr)),y.add(x),a.ny=y,a.Lg.add("",y),y=new hr,x=new ua,x.stroke="brown",x.bind(new Yl("text","",Pr)),y.add(x),a.Lg.add("Comment",y),y=new hr,y.selectable=!1,y.avoidable=!1,x=new Ko,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new Zi(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new xr,y=new Do,y.selectionObjectName="GROUPPANEL",y.type=ei.Vertical,x=new ua,x.font="bold 12pt sans-serif",x.bind(new Yl("text","",Pr)),y.add(x),x=new ei(ei.Auto),x.name="GROUPPANEL";var b=new Ko;b.figure="Rectangle",b.fill="rgba(128,128,128,0.2)",b.stroke="black",x.add(b),b=new Gh,b.padding=new Rr(5,5,5,5).ja(),x.add(b),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new xr,y=new Gi,x=new Ko,x.isPanelMain=!0,y.add(x),x=new Ko,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new Gi,x=new Ko,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new bs,y.type=ei.Auto,x=new Ko,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new Gh,x.margin=new Rr(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new bs,y.type=ei.Link,x=new Ko,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 Vt,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=bc(),a.eq=null,a.fq=bl,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 Ne,a.zy=500,a.wp=new Ne,a.wq=!1}Un.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),au=null,pu="",Vc(this,!1),this.Xn.clear(),Op(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function Vc(a,y){a.animationManager.Cc(!0),a.Hw=new xi().freeze(),a.nw=new xi().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(),$o=[],E!==null&&(a.add(E),a.partManager.parts.remove(E)),b&&(a.skipsUndoManager=x),z}function bc(){return null}Un.prototype.reset=function(){this.clear(),this.vb=!0,EA(this),Uh(this),this.Wg=!0,od(this),this.layout=new Ka,this.Wg=!1,this.model=Xv(),this.model.undoManager=new wt,this.vb=this.rn=!1,this.N()},Un.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=Le.document.body);var y=Oi("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},Un.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=Le.document.body);var y=0;if(js){var x=Sl;y=nc,x===null&&(x=Sl=Oi("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=nc=Oi("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||ps||(y=11)}this.Db=y,this.Gw=!0},Un.prototype.qb=function(a){a.classType===Un&&(this.autoScale=a)},Un.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 rd(a,y){if(js){if(y!=null||qe("Diagram setup requires an argument DIV."),a.Ka!==null&&qe("Diagram has already completed setup."),typeof y=="string"?a.Ka=Le.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:qe("No DIV or DIV id supplied: "+y),a.Ka===null&&qe("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&qe("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Le.ResizeObserver){var x=Qn(function(){a.$b()},250);a.ol=new Le.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Le.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=Le.go;var E=new yc(a);if(E.style!==void 0&&(E.style.position="absolute",E.style.top="0px",E.style.left="0px",Le.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,js){E=Oi("div");var z=Oi("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",xd),E.H=a,E.uy=!0,E.vy=!0,a.ku=E,a.hu=z}a.hk=Qn(function(){a.Yh=null,a.N()},300),a.Ov=Qn(function(){Rd(a)},250),a.preventDefault=function(nt){return nt.preventDefault(),!1},a.$j=function(nt){if(a.isEnabled){var ot=th(a,nt,!0);ot.bubbles=!0;var at=0,ut=0;ot.delta=0,nt.deltaX!==void 0?(nt.deltaX!==0&&(at=0<nt.deltaX?1:-1),nt.deltaY!==0&&(ut=0<nt.deltaY?1:-1),ot.delta=Math.abs(nt.deltaX)>Math.abs(nt.deltaY)?-at:-ut):nt.wheelDeltaX!==void 0?(nt.wheelDeltaX!==0&&(at=0<nt.wheelDeltaX?-1:1),nt.wheelDeltaY!==0&&(ut=0<nt.wheelDeltaY?-1:1),ot.delta=Math.abs(nt.wheelDeltaX)>Math.abs(nt.wheelDeltaY)?-at:-ut):nt.wheelDelta!==void 0&&nt.wheelDelta!==0&&(ot.delta=0<nt.wheelDelta?1:-1),a.doMouseWheel(),eh(ot,nt)}},a.aA=function(nt){a.isEnabled&&(a.Vk=!1,th(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 ut=at;at=sd(a,nt,!0,!1,!0,ut),Bd(a,nt,at),at.targetDiagram=Hd(nt,nt.target),at.targetObject=null,ut||at.clone(a.bq),ut=a.uw,ot=ot?25:10,nt.timeStamp-a.tw<a.zy&&!(Math.abs(ut.x-nt.screenX)>ot||Math.abs(ut.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():eh(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=sd(a,nt,!1,!1,!1,ot[1]!==null);var at=Le.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 ut=a,ct=nt;at&&at.H&&(ct=nt,ut=at.H),ot.targetDiagram=ut,Bd(a,ct,ot),ot.targetObject=null,a.doMouseMove(),eh(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=sd(a,nt,!1,!0,!0,!1);var ut=Le.document.elementFromPoint(nt.clientX,nt.clientY)||null;ut!==null&&ut.shadowRoot!==void 0&&ut.shadowRoot!==null&&(ut=ut.shadowRoot.elementFromPoint(nt.clientX,nt.clientY)),ut!==null&&ut.H instanceof Un&&ut.H!==a&&Bd(ut.H,nt,at),ut===null&&(ut=nt.target),Bd(a,nt,at),at.clickCount=a.yq,at.targetDiagram=Hd(nt,ut),at.targetObject=null,a.doMouseUp(),eh(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"+Rh.slice(1,5)]["b"+Rw.slice(1,y)](b.Z,Qu,y,y),b.Vc(!0),HA(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}Un.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},Un.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(Le,"resize",a.Ov,!1)}function gu(a){30<a.Sq&&(a.Yh=1)}function wd(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),qr&&qr.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}Un.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Le.devicePixelRatio||1},Un.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},Un.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},Un.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},Un.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},Un.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},Un.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},Un.prototype.doFocus=function(){this.focus()},Un.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=Le.scrollX||Le.pageXOffset,y=Le.scrollY||Le.pageYOffset;this.ta.focus(),Le.scrollTo(a,y)}},Un.prototype.Oy=function(){this.H.R("GainedFocus")},Un.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===dl&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function od(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 Ec(a){var y=new ei(ei.Grid);y.name="GRID";var x=new Ko;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Ko,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Ko,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Ko,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Ko,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Ko,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Vr,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):Lc(this.H)}function xd(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Lc(this.H)}Un.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,ut=b.height+z.top+z.bottom,ct=b.right+z.right;z=b.bottom+z.bottom;var yt=E.x;b=E.y;var kt=E.width,zt=E.height,Xt=E.right,he=E.bottom;E=this.scale;var ze=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":ze=ze+a.scrollWidth-a.clientWidth;break;case"reverse":ze=a.scrollWidth-ze-a.clientWidth}var Fe=ze;kt<at||zt<ut?(ze=Ne.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Fe&&(ze.x=Fe/E+nt,this.ju=Fe),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(ze.y=a.scrollTop/E+ot,this.lu=a.scrollTop),this.position=ze,Ne.free(ze),this.Ee=this.qr=!1):(ze=Ne.alloc(),a.uy&&this.allowHorizontalScroll&&(nt<yt&&(this.position=ze.h(Fe+nt,this.position.y)),ct>Xt&&(this.position=ze.h(-(y.scrollWidth-this.Aa)+Fe-this.Aa/E+ct,this.position.y))),a.vy&&this.allowVerticalScroll&&(ot<b&&(this.position=ze.h(this.position.x,a.scrollTop+ot)),z>he&&(this.position=ze.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/E+z))),Ne.free(ze),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,E=this.viewportBounds,ct=b.right,Xt=E.right,z=b.bottom,he=E.bottom,nt=b.x,yt=E.x,ot=b.y,b=E.y,kt>=at&&nt>=yt&&ct<=Xt&&(x.style.width="1px"),zt>=ut&&ot>=b&&z<=he&&(x.style.height="1px"))}},Un.prototype.computeBounds=function(a){return a===void 0&&(a=new ai),su(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 ut=nt[at];ut.isInDocumentBounds&&ut.isVisible()&&(ut=ut.actualBounds,ut.w()&&(x?(x=!1,y.assign(ut)):y.ed(ut)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}Un.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(ui(a))for(var b=0;b<a.length;b++){var E=a[b];!y&&E instanceof Gi||(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 Gi||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds));return x===null?new ai(NaN,NaN,0,0):x};function kl(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=Ne.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=ai.allocAt(0,0,b.width,b.height);var E=Ne.alloc();E.xi(b,a.initialViewportSpot),E.h(x.x-E.x,x.y-E.y),a.position=E,ai.free(b),Ne.free(E),Ne.free(x)}x=a.yh,y&&a.Fg!==dl&&(x=a.Fg);var z=x!==dl?Sd(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()?Fo:at),lA(a,a.documentBounds,E,nt,ot,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,En.B(z.x,x)&&En.B(z.y,b)&&En.B(z.width,E)&&En.B(z.height,nt)||a.onViewportBoundsChanged(new ai(x,b,E,nt),z,y,!1)}}function Sd(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===Fl?(y=Math.min(at,ot),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===yh?(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}Un.prototype.zoomToFit=function(){var a=this.sj;this.sj=Ic,this.scale=Sd(this,Fl),a!==Ic&&(kl(this,!1),lA(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},$t=Un.prototype,$t.BA=function(a,y){y===void 0&&(y=Fl);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var E=1;if(y===Fl||y===yh)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===yh?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 Ne(a.x,a.y)}},$t.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new Ne(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))},$t.zz=function(a){if(a instanceof wn){this.eq=a;var y=Ne.alloc();this.fq=this.op(a.ga(nl,y)),Ne.free(y)}else this.eq=null,this.fq=bl};function lA(a,y,x,b,E,z){var nt=Ne.allocAt(a.pa.x,a.pa.y),ot=nt.x,at=nt.y;if(a.eq!==null){var ut=Ne.alloc();ut=a.eq.ga(nl,ut),ot=ut.x-a.fq.x/a.scale,at=ut.y-a.fq.y/a.scale,E=Wa,Ne.free(ut)}(z||a.scrollMode===Ic)&&(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),ol(a.Yd,a.pa,nt),a.pa.h(nt.x,nt.y),Uh(a),Ne.free(nt)}$t.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Xs(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof Vr)return a}else if(a=Xs(this,a,function(x){return x.part}),a instanceof Vr)return a;return null},$t.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),su(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 Xs(a,y,x,b){for(x===void 0&&(x=null),b===void 0&&(b=null),su(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}$t.lz=function(a,y,x){return y===void 0&&(y=!0),Zc(this,a,function(b){return b.part},y?function(b){return b instanceof Vr&&b.canSelect()}:null,x)};function Zc(a,y,x,b,E){for(x===void 0&&(x=null),b===void 0&&(b=null),E instanceof Ci||E instanceof xi||(E=new xi),su(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,x,b,E)}return E}$t.ji=function(a,y,x,b){y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Ci||b instanceof xi||(b=new xi),su(this);for(var E=this.Wa.iteratorBackwards;E.next();){var z=E.value;z.visible&&z.ji(a,y,x,b)}return b},$t.ux=function(a,y,x,b){return y===void 0&&(y=!1),x===void 0&&(x=!0),Cd(this,a,function(E){return E instanceof Vr&&(!x||E.canSelect())},y,b)},$t.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 xi||(E=new xi),su(this);for(var z=this.Wa.iteratorBackwards;z.next();){var nt=z.value;nt.visible&&nt.Cf(a,y,x,b,E)}return E},$t.Nu=function(a,y,x,b,E,z){var nt=new xi;su(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 Cd(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 xi||(E=new xi),su(a),a=a.Wa.iteratorBackwards;a.next();){var nt=a.value;nt.visible&&!nt.isTemporary&&nt.Cf(y,z,x,b,E)}return E}$t.mz=function(a,y,x,b,E){return x===void 0&&(x=!0),b===void 0&&(b=!0),ph(this,a,y,function(z){return z instanceof Vr&&(!b||z.canSelect())},x,E)},$t.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 xi)&&(z=E),E=!0),z instanceof Ci||z instanceof xi||(z=new xi),su(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 ph(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 xi)&&(z=E),E=!0),z instanceof Ci||z instanceof xi||(z=new xi),su(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}Un.prototype.acceptEvent=function(a){return th(this,a,a instanceof MouseEvent)};function th(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),ps&&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 sd(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,ps&&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 eh(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}Un.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=th(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(),eh(x,a)},Un.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=th(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(),eh(x,a)},Un.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=th(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),eh(x,a)},Un.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=th(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),eh(x,a)},Un.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new Ne(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?Zo(new Ne(y,a),this.Ab):new Ne(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=Ne.allocAt(nt,ot),a.Ab.Cd(y),x.documentPoint.assign(y),Ne.free(y)):x.documentPoint.h(nt,ot)}function Pd(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))}}Un.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function Qd(a){a.ld||su(a),a.Va()}Un.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},$t=Un.prototype,$t.Pz=function(){return this.kg},$t.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,iu(this),this.hf=!1,this.du=new Ne(NaN,NaN),y.isEnabled=x,this.ld=!0;var b=this;a!==null&&wi(function(){b.ld=!1,ml(y,"Model"),a(b)},1)},$t.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;Le.requestAnimationFrame(function(){y.kg&&y.bd()})}},$t.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),iu(this))};function $l(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Lc(a)||(y&&su(a),x&&kl(a,!1))}function iu(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];jl(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),$l(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(rc(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),su(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,su(a),a.ou||Qd(a),$l(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,Fc(a)),a.R("LayoutCompleted"),$l(a,!0,!1),ai.free(x)):x.Ok&&x.Qw&&(a.Fg!==dl?a.scale=Sd(a,a.Fg):a.yh!==dl?a.scale=Sd(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),kl(a,!0)),z&&nt&&a.eb("Initial Layout"),su(a),y||a.gc(a.ib),E&&(a.skipsUndoManager=b),a.ld=!1}}function Fc(a){if(a.Fg!==dl)a.scale=Sd(a,a.Fg);else if(a.yh!==dl)a.scale=Sd(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}kl(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 su(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 xi,a.Nv(x,a.De)}a.nodes.each(function(b){b instanceof Do&&b.U&65536&&(b.U=b.U^65536)})}}$t.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof Do||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof Do&&x.isVisible()&&xa(this,x);for(a.reset();a.next();)x=a.value,x instanceof Gi&&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=ar(),b=ar(),E=y.memberParts;E.next();){var z=E.value;z.isVisible()&&(z instanceof Do?(wh(z)||zu(z)||eg(z))&&xa(a,z):z instanceof Gi?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(Lr(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();Lr(b)}$t.Fd=function(a,y,x,b){if(this.vd||this.animationManager.isAnimating)for(var E=0;E<y;E++)a[E].Fd(x,b)},$t.gc=function(a){if(this.Ka!==null){if(this.ta===null&&qe("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){vh(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),Su(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?Fu(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(zo.prototype.Cd=zo.prototype.Eu),this.Fc=this.vd=!1}}}}else t:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(x=new Date,vh(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,ut=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(-ut,-ct),a.setTransform(nt,0,0,nt,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),Su(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?Fu(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(zo.prototype.Cd=zo.prototype.Eu),b?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,b=qr&&qr.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 sl(a,y,x,b,E,z,nt,ot,at,ut){if(a.Ka!==null){a.ta===null&&qe("No canvas specified"),nt===void 0&&(nt=null),ot===void 0&&(ot=null),at===void 0&&(at=!1),ut===void 0&&(ut=!1),vh(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var ct=a.Ca;a.Ca=E;var yt=a.Wa.s,kt=yt.length;try{var zt=new ai(z.x,z.y,b.width/E,b.height/E),Xt=zt.copy();Xt.Co(x),rc(a,Xt),su(a),a.Fd(yt,kt,a,zt),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 he=a.Mb;y.scale(he,he);var ze=zo.alloc();ze.reset(),ze.translate(x.left,x.top),ze.scale(E),z.x===0&&z.y===0||ze.translate(-z.x,-z.y),y.setTransform(ze.m11,ze.m12,ze.m21,ze.m22,ze.dx,ze.dy),y.yc(),y instanceof xh&&Zf(y,ze.m11,ze.m12,ze.m21,ze.m22,ze.dx,ze.dy),zo.free(ze),Su(a,y),y.globalAlpha=a.pb;var Fe=a.Qj("Grid");if(nt){var Ze=new xi,tn=nt.iterator;for(tn.reset();tn.next();){var on=tn.value;on instanceof Vr&&(ut||on.layer!==Fe)&&(on.Gj(),Ze.add(on))}for(ut=0;ut<kt;ut++)Hu(yt[ut],y,a,Ze,at);Ze.each(function(Wn){return Wn.Gj()})}else for(Ze=0;Ze<kt;Ze++){var Sn=yt[Ze];Sn===Fe?ut&&Sn.gc(y,a,!0):Sn.gc(y,a,at)}a.$i=!1,a.Yf&&Fu(a.Yf,a)&&a.Vp()}finally{a.Ca=ct,a.ib.Vc(!0),a.vd=!0,a.Fd(yt,kt,a,a.viewportBounds),rc(a),a.ib instanceof xh&&(a.ib.Nj.PA(),a.redraw())}}}$t.Gf=function(a){return this.Rg[a]},$t.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},$t.Tx=function(){this.Rg=new uo,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(ps||Qo),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function Su(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}$t.Ql=function(a){return this.on[a]},$t.sA=function(a,y){this.on[a]=y},$t.Sx=function(){this.on=new uo,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},$t.set=function(a){return Object.assign(this,a),this},$t.Du=function(a){return this.nm(a)},$t.nm=function(a){return mh(this,a),this};function mh(a,y){var x=a instanceof ei,b=a instanceof Un,E;for(E in y){E===""&&qe("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])),On(z)?nt=E.substr(ot+1):qe("Unable to find object named: "+at+" in "+a.toString()+" when trying to set property: "+E)}}if(nt[0]!=="_"&&!io(z,nt))if(b&&nt==="ModelChanged"){a.Yw(y[nt]);continue}else if(b&&nt==="Changed"){a.Pe(y[nt]);continue}else if(b&&io(a.toolManager,nt))z=a.toolManager;else if(b&&Ae(a,nt)){a.Bj(nt,y[nt]);continue}else if(a instanceof Or&&nt==="Changed"){a.Pe(y[nt]);continue}else qe('Trying to set undefined property "'+nt+'" on object: '+z.toString());z[nt]=y[E],nt[0]==="_"&&z instanceof wn&&z.Vw(nt)}}$t.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new xr,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},$t.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")},Un.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!==Ed&&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 Cu)))){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 ut=70*nt,ct=Math.max(z,0),yt=Math.max(y,0),kt=Math.floor(E-ct),zt=Math.floor(ot-yt);a.drawImage(b.Oa,ct,yt,kt,zt,0,0,kt,zt),Fu(this.Yf,this)&&a.clearRect(0,0,at,ut),b=ar(),a=ar(),zt=Math.abs(z),kt=Math.abs(y);var Xt=ct===0?0:E-zt;ct=Ne.allocAt(Xt,0),zt=Ne.allocAt(zt+Xt,ot),a.push(new ai(Math.min(ct.x,zt.x),Math.min(ct.y,zt.y),Math.abs(ct.x-zt.x),Math.abs(ct.y-zt.y)));var he=this.Ab;if(he.reset(),he.scale(nt,nt),this.Ca!==1&&he.scale(this.Ca),nt=this.pa,(nt.x!==0||nt.y!==0)&&isFinite(nt.x)&&isFinite(nt.y)&&he.translate(-nt.x,-nt.y),Zo(ct,he),Zo(zt,he),b.push(new ai(Math.min(ct.x,zt.x),Math.min(ct.y,zt.y),Math.abs(ct.x-zt.x),Math.abs(ct.y-zt.y))),Xt=yt===0?0:ot-kt,ct.h(0,Xt),zt.h(E,kt+Xt),a.push(new ai(Math.min(ct.x,zt.x),Math.min(ct.y,zt.y),Math.abs(ct.x-zt.x),Math.abs(ct.y-zt.y))),Zo(ct,he),Zo(zt,he),b.push(new ai(Math.min(ct.x,zt.x),Math.min(ct.y,zt.y),Math.abs(ct.x-zt.x),Math.abs(ct.y-zt.y))),Fu(this.Yf,this)&&(E=0<z?0:-z,ot=0<y?0:-y,ct.h(E,ot),zt.h(at+E,ut+ot),a.push(new ai(Math.min(ct.x,zt.x),Math.min(ct.y,zt.y),Math.abs(ct.x-zt.x),Math.abs(ct.y-zt.y))),Zo(ct,he),Zo(zt,he),b.push(new ai(Math.min(ct.x,zt.x),Math.min(ct.y,zt.y),Math.abs(ct.x-zt.x),Math.abs(ct.y-zt.y)))),Ne.free(ct),Ne.free(zt),$l(this,!1,!0),this.Ka===null&&qe("No div specified"),this.ta===null&&qe("No canvas specified"),!this.animationManager.zb&&(E=this.ib,this.Fc)){for(vh(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,ut=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,-ut),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),Su(this,E),E.globalAlpha=this.pb,ot=0;ot<z;ot++)if(nt=y[ot],at=b,nt.visible&&nt.pb!==0){ut=nu(nt,E),yt=nt.Zq,yt.length=0,ct=this.scale,kt=ai.alloc(),zt=nt.Pa.s,he=zt.length,Xt=at.length;for(var ze=0;ze<he;ze++){var Fe=zt[ze],Ze=Ig(Fe,Fe.actualBounds);t:{for(var tn=2/ct,on=4/ct,Sn=0;Sn<Xt;Sn++){var Wn=at[Sn];if(Wn.width!==0&&Wn.height!==0&&Ze.Vu(Wn.x-tn,Wn.y-tn,Wn.width+on,Wn.height+on)){Ze=!0;break t}}Ze=!1}Ze&&nt.Oj(E,Fe,this,yt,ct,kt,!0)}ai.free(kt),E.globalAlpha=ut}E.restore(),E.Vc(!0),this.Yf&&Fu(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}Lr(b),Lr(a),this.ld=!1}}else this.bd();x&&(gu(this),this.bd(),wd(this,!0))}else x?(gu(this),this.bd(),wd(this,!0)):this.bd()}};function vh(a){a.pn!==!1&&(a.pn=!1,zd(a,a.Aa,a.ya))}function zd(a,y,x){Uh(a);var b=a.Mb;a.ta.resize(y*b,x*b,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function Lc(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,ut=E.clientHeight||b+ot,ct=a.viewportBounds;E=ct.x;var yt=ct.y,kt=ct.width,zt=ct.height;if((at!==x+nt||ut!==b+ot)&&(a.gf=!1,a.Be=!1,ot=nt=0,a.Aa=at,a.ya=ut,z=a.pn=!0,Uh(a)),!a.hf||!a.viewportBounds.w())return!0;var Xt=a.ku,he=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var ze=a.documentBounds,Fe=0,Ze=0,tn=0,on=0,Sn=ct.width,Wn=ct.height,rr=a.rj;a.contentAlignment.sb()?(ze.width>Sn&&(Fe=rr.left,Ze=rr.right),ze.height>Wn&&(tn=rr.top,on=rr.bottom)):(Fe=rr.left,Ze=rr.right,tn=rr.top,on=rr.bottom);var Fr=ze.width+Fe+Ze,vr=ze.height+tn+on;rr=a.scale;var Ki=Fr>at/rr,Li=vr>ut/rr;if(!(z||a.gf||a.Be||Ki||Li))return!0;Fe=ze.x-Fe,at=ct.x,Ze=ze.right+Ze,ut=ct.right+nt,tn=ze.y-tn;var Io=ct.y;ze=ze.bottom+on,ct=ct.bottom+ot;var vo="1px";if(on="1px",a.scrollMode===Ic&&(Ki||Li)&&(Ki&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Ki=1,Fe+1<at&&(Ki=Math.max((at-Fe)*rr+a.Aa,Ki)),Ze>ut+1&&(Ki=Math.max((Ze-ut)*rr+a.Aa,Ki)),Sn+nt+1<Fr&&(Ki=Math.max((Fr-Sn)*rr+a.Aa,Ki)),vo=Ki.toString()+"px"),Li&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Ki=1,tn+1<Io&&(Ki=Math.max((Io-tn)*rr+a.ya,Ki)),ze>ct+1&&(Ki=Math.max((ze-ct)*rr+a.ya,Ki)),Wn+ot+1<vr&&(Ki=Math.max((vr-Wn)*rr+a.ya,Ki)),on=Ki.toString()+"px")),Ki=vo!=="1px",Li=on!=="1px",Ki&&Li||!Ki&&!Li||(Li&&(ut-=a.Db),Ki&&(ct-=a.Db),Fr<Sn+nt||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(nt=1,Fe+1<at&&(nt=Math.max((at-Fe)*rr+a.Aa,nt)),Ze>ut+1&&(nt=Math.max((Ze-ut)*rr+a.Aa,nt)),Sn+1<Fr&&(nt=Math.max((Fr-Sn)*rr+a.Aa,nt)),vo=nt.toString()+"px"),Ki=vo!=="1px",nt=a.ya,Ki!==a.Be&&(nt=Ki?a.ya-a.Db:a.ya+a.Db),vr<Wn+ot||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(ot=1,tn+1<Io&&(ot=Math.max((Io-tn)*rr+nt,ot)),ze>ct+1&&(ot=Math.max((ze-ct)*rr+nt,ot)),Wn+1<vr&&(ot=Math.max((vr-Wn)*rr+nt,ot)),on=ot.toString()+"px"),Li=on!=="1px"),a.qr&&Ki===a.Be&&Li===a.gf)return x===a.Aa&&b===a.ya||a.bd(),!1;if(Ki!==a.Be&&(vo==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=Ki,he.style.width=vo,Li!==a.gf&&(on==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(ot=Ne.alloc(),Li?(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)),Ne.free(ot))),z&&Uh(a),a.gf=Li,he.style.height=on,a.gu=!0,z&&(a.pn=!0),y=Xt.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Sn+1<Fr?y=(a.position.x-Fe)*rr:Fe+1<at?y=Xt.scrollWidth-Xt.clientWidth:Ze>ut+1&&(y=a.position.x*rr)),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&&(Wn+1<vr?Xt.scrollTop=(a.position.y-tn)*rr:tn+1<Io?Xt.scrollTop=Xt.scrollHeight-Xt.clientHeight:ze>ct+1&&(Xt.scrollTop=a.position.y*rr)),at=a.Aa,ut=a.ya,Xt.style.width=at+(a.gf?a.Db:0)+"px",Xt.style.height=ut+(a.Be?a.Db:0)+"px",x!==at||b!==ut||a.animationManager.zb?(x=ai.allocAt(E,yt,kt,zt),a.onViewportBoundsChanged(x,a.viewportBounds,rr,z),ai.free(x),!1):!0}$t=Un.prototype,$t.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&qe("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&&qe('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(pl,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},$t.oi=function(a){this.partManager.oi(a);var y=this;la(a,function(x){pc(y,x)}),(a instanceof bs||a instanceof Do&&a.placeholder!==null)&&a.v(),a.data!==null&&la(a,function(x){Wv(y.partManager,x)}),zu(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()},$t.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&la(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()},$t.remove=function(a){jh(this,a,!0)};function jh(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(Hl,"parts",b,y,null,x,null),a=y.layerChanged,a!==null&&a(y,b,null))}$t.Is=function(a,y){if(y===void 0&&(y=!1),ui(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 xi,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},$t.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},Un.prototype.moveParts=function(a,y,x,b){if(x===void 0&&(x=!1),b===void 0&&(b=Xc(this)),this.toolManager!==null){var E=new xr;if(a!==null)if(ui(a))for(var z=0;z<a.length;z++)Zu(this,E,a[z],x,b);else for(a=a.iterator;a.next();)Zu(this,E,a.value,x,b);else{for(a=this.parts;a.next();)Zu(this,E,a.value,x,b);for(a=this.nodes;a.next();)Zu(this,E,a.value,x,b);for(a=this.links;a.next();)Zu(this,E,a.value,x,b)}Mc(this,E,y,b,x)}};function Zu(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=Xc(a)),x instanceof hr){if(y.add(x,a.Pd(E,x,x.location)),x instanceof Do&&(x.placeholder!==null||E.dragsMembers))for(z=x.memberParts;z.next();)Zu(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)&&Zu(a,y,nt,b,E)}}if(E.dragsTree)for(x=x.Ou();x.next();)Zu(a,y,x.value,b,E)}else if(x instanceof Gi)for(y.add(x,a.Pd(E,x)),x=x.labelNodes;x.next();)Zu(a,y,x.value,b,E);else x instanceof bs||y.add(x,a.Pd(E,x,x.location))}function Mc(a,y,x,b,E){if(y!==null&&y.count!==0){var z=Ne.alloc(),nt=Ne.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=ar(),at=ar(),ut=y.iterator,ct=Ne.alloc();ut.next();){var yt=ut.key,kt=ut.value;if(yt.Zc()){var zt=FA(a,yt,y);zt!==null?ot.push(new it(yt,kt,zt)):(!E||yt.canMove())&&(zt=kt.point,z.assign(zt),a.computeMove(yt,z.add(nt),b,ct),yt.location=ct,kt.shifted===void 0&&(kt.shifted=new Ne),kt.shifted.assign(ct.re(zt)))}else ut.key instanceof Gi&&at.push(ut.sa)}for(Ne.free(ct),E=ot.length,ut=0;ut<E;ut++)yt=ot[ut],z.assign(yt.info.point),yt.Su.shifted===void 0&&(yt.Su.shifted=new Ne),yt.node.location=z.add(yt.Su.shifted);for(E=Ne.alloc(),ut=Ne.alloc(),yt=at.length,kt=0;kt<yt;kt++){var Xt=at[kt];if(zt=Xt.key,zt instanceof Gi)if(zt.suspendsRouting){zt.Tg=null,ct=zt.fromNode;var he=zt.toNode;if(a.draggedLink!==null&&b.dragsLink)if(he=Xt.value.point,zt.dragComputation===null)y.add(zt,a.Pd(b,zt,nt)),Nf(zt,nt.x-he.x,nt.y-he.y);else{Xt=Ne.allocAt(0,0),(ct=zt.i(0))&&ct.w()&&Xt.assign(ct);var ze=ct=Ne.alloc().assign(Xt).add(nt);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(ze=Ne.alloc(),ic(a,zt,ct,ze,b)),ct.assign(zt.dragComputation(zt,ct,ze)).re(Xt),y.add(zt,a.Pd(b,zt,ct)),Nf(zt,ct.x-he.x,ct.y-he.y),Ne.free(Xt),Ne.free(ct),ze!==ct&&Ne.free(ze)}else ct!==null&&(E.assign(ct.location),ze=y.I(ct),ze!==null&&E.re(ze.point)),he!==null&&(ut.assign(he.location),ze=y.I(he),ze!==null&&ut.re(ze.point)),ct!==null&&he!==null?E.Xa(ut)?(ct=Xt.value.point,he=z,he.assign(E),he.re(ct),y.add(zt,a.Pd(b,zt,E)),Nf(zt,he.x,he.y)):(zt.suspendsRouting=!1,zt.bb()):(Xt=Xt.value.point,ct=ct!==null?E:he!==null?ut:nt,y.add(zt,a.Pd(b,zt,ct)),Nf(zt,ct.x-Xt.x,ct.y-Xt.y))}else(zt.fromNode===null||zt.toNode===null)&&(ct=Xt.value.point,y.add(zt,a.Pd(b,zt,nt)),Nf(zt,nt.x-ct.x,nt.y-ct.y))}Ne.free(z),Ne.free(nt),Ne.free(E),Ne.free(ut),Lr(ot),Lr(at),x||(su(a),gc(a,y))}}Un.prototype.computeMove=function(a,y,x,b){if(b===void 0&&(b=new Ne),b.assign(y),a===null)return b;var E=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(E=Ne.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,ut=at.x;return isNaN(ut)&&(ut=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,ut)),Math.max(nt,Math.min(x.y,at))),E!==y&&Ne.free(E),b};function Xc(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=Xc(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=Ne.allocAt(0,0),z.yi(0,0,a,y,E),En.No(x.x,x.y,ot+z.x,nt+z.y,a,y,b),Ne.free(z)}}function Kd(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof Gi&&(y.suspendsRouting=!0)}function gc(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof Gi&&(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}$t=Un.prototype,$t.Pd=function(a,y,x){if(x===void 0)return new sc(ls);var b=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(b=!1),b?new sc(new Ne(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&&qe("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&qe("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&qe("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&qe("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&&qe("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}$t.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(pl,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},$t.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(Hl,"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(pl,"layers",this,null,a,null,z),this.N(),0>b&&this.Ya(),this},$t.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(Hl,"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(pl,"layers",this,null,a,null,z+1),this.N(),0>b&&this.Ya(),this},$t.kA=function(a){if(a.diagram!==this&&qe("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(Hl,"layers",this,a,null,x,null),this.N(),this.Ya()}}},$t.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},$t.Yw=function(a){return this.pf===null&&(this.pf=new Ci),this.pf.add(a),this.model.Pe(a),this},$t.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},$t.Pe=function(a){return this.zg===null&&(this.zg=new Ci),this.zg.add(a),this},$t.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},$t.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==qu&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,b=0;b<x;b++)y.M(b)(a)},$t.cb=function(a,y,x,b,E,z,nt){z===void 0&&(z=null),nt===void 0&&(nt=null);var ot=new Ma;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)},$t.g=function(a,y,x,b,E){this.cb(Na,a,this,y,x,b,E)},Un.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===Na){var E=a.object;if(_a(E,a.propertyName,a.I(y)),E instanceof wn){var z=E.part;z!==null&&z.Wb()}this.isModified=!0}else if(b===pl){var nt=a.object,ot=a.newParam,at=a.newValue;if(nt instanceof ei)if(typeof ot=="number"&&at instanceof wn){y?nt.pc(ot):nt.Gb(ot,at);var ut=nt.part;ut!==null&&ut.Wb()}else typeof ot=="number"&&at instanceof Rl&&(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 Vr&&(y?(at.isSelected=!1,at.isHighlighted=!1,at.Wb(),nt.pc(ct?ot:-1,at,ct)):nt.oi(ot,at,ct))}else nt instanceof Un?typeof ot=="number"&&at instanceof ga&&(y?this.Wa.mb(ot):(at.Xe(this),this.Wa.Gb(ot,at))):qe("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===Hl){var yt=a.object,kt=a.oldParam,zt=a.oldValue;if(yt instanceof ei)typeof kt=="number"&&zt instanceof wn?y?yt.Gb(kt,zt):yt.pc(kt):typeof kt=="number"&&zt instanceof Rl&&(zt.isRow?Jd(yt,kt,y?zt:void 0):kA(yt,kt,y?zt:void 0));else if(yt instanceof ga){var Xt=a.newParam===!0;typeof kt=="number"&&zt instanceof Vr&&(y?0>yt.Pa.indexOf(zt)&&yt.oi(kt,zt,Xt):(zt.isSelected=!1,zt.isHighlighted=!1,zt.Wb(),yt.pc(Xt?kt:-1,zt,Xt)))}else yt instanceof Un?typeof kt=="number"&&zt instanceof ga&&(y?(zt.Xe(this),this.Wa.Gb(kt,zt)):this.Wa.mb(kt)):qe("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==qu&&qe("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},Un.prototype.Ea=function(a){return this.undoManager.Ea(a)},Un.prototype.eb=function(a){return this.undoManager.eb(a)},Un.prototype.Kf=function(){return this.undoManager.Kf()},Un.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}},Un.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},Un.prototype.rp=function(){this.partManager.rp()};function lf(a,y,x){var b=a.animationManager;if(a.vb||a.ld)a.Ca=x,Uh(a),a.N(),a.Ee=!0,b.zb&&(Oa(b)||b.ce.add(b.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,Uh(a);else{a.vb=!0;var E=a.viewportBounds.copy(),z=a.Aa,nt=a.ya,ot=a.zoomPoint.x,at=a.zoomPoint.y,ut=a.contentAlignment;isNaN(ot)&&(ut.$c()?ut.Hf(bu)?ot=0:ut.Hf(du)&&(ot=z-1):ot=ut.sb()?ut.x*(z-1):z/2),isNaN(at)&&(ut.$c()?ut.Hf(Pu)?at=0:ut.Hf(tu)&&(at=nt-1):at=ut.sb()?ut.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=Ne.allocAt(a.pa.x+ot/y-ot/x,a.pa.y+at/y-at/x),a.position=z,Ne.free(z),a.Ca=x,Uh(a),a.vb=!1,a.onViewportBoundsChanged(E,a.viewportBounds,y,!1),kl(a,!1),b.zb&&(Oa(b)||b.ce.add(b.H,"scale",y,a.Ca))}}Un.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!==dl||a.width===y.width&&a.height===y.height||E.C(),E=this.currentTool,this.Vk===!0&&E instanceof Vt&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),pe(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=Zi.alloc(),E=1,z=1,nt=x.O.s,ot=nt.length,at=0;at<ot;at++){var ut=nt[at],ct=Math.abs(ut.interval);2>ct||(Ul(ut.figure)?z=z*ct/En.vx(z,ct):E=E*ct/En.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=Ne.alloc(),En.No(a,nt,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),Zi.free(b),x.part.location=y,Ne.free(y)}}Un.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)}},Un.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))},Un.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),ui(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];b instanceof Vr||qe("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 Vr||qe("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},Un.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()}},$t=Un.prototype,$t.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},$t.Jz=function(a){a=new xi().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 Vr||qe("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},$t.scroll=function(a,y,x){x===void 0&&(x=1);var b=y==="up"||y==="down",E=0,z=Ne.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)),Ne.free(z);return}qe("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):qe("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),Ne.free(z)},$t.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)},$t.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},$t.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)},$t.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,ut=y.m22,ct=y.dx,yt=y.dy,kt=x*nt+b*at+ct;y=x*ot+b*ut+yt;var zt=E*nt+b*at+ct;return a=E*ot+b*ut+yt,b=x*nt+z*at+ct,x=x*ot+z*ut+yt,nt=E*nt+z*at+ct,E=E*ot+z*ut+yt,z=Math.min(kt,zt),kt=Math.max(kt,zt),zt=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,b),kt=Math.max(kt,b),zt=Math.min(zt,x),y=Math.max(y,x),z=Math.min(z,nt),kt=Math.max(kt,nt),zt=Math.min(zt,E),y=Math.max(y,E),new ai(z,zt,kt-z,y-zt)},$t.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),Zo(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}Un.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,b=a.propertyName;if(x===qu&&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===qu){(b==="FinishedUndo"||b==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),su(this));var z=this.animationManager;b==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||ho(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;wi(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++)ad(a,y[b])}function ad(a,y){if(y instanceof uc){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof xi&&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 xi&&x.Bg.remove(a),Op(b));break}}}}}Un.prototype.Wd=function(){this.partManager.Wd()},Un.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},Un.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},Un.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},Un.prototype.Vb=function(a){return this.partManager.Vb(a)},Un.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},$t=Un.prototype,$t.Lc=function(a){return this.partManager.Lc(a)},$t.ii=function(a){return this.partManager.ii(a)},$t.Kc=function(a){return this.partManager.Kc(a)},$t.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:Is(ws(y)))},$t.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:Is(ws(y)))};function Uh(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),kl(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}$t.Va=function(){if(this.Zi){var a=ai.alloc();zA(this,this.computeBounds(a)),ai.free(a)}},$t.rz=function(){for(var a=new xi,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},$t.qz=function(){return this.ai.iterator},$t.Uz=function(a){su(this),a&&bd(this,!0),this.ld?LA(this,!1):(this.Jk=!0,iu(this))};function bd(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||ml(z,"Layout")),a.xh=!1;for(var nt=a.ai.iterator;nt.next();)Nc(a,nt.value,y,b);E.isValidLayout||(!y||E.isRealtime||E.isRealtime===null||b===0?(E.doLayout(a),su(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||ho(z),a.aa=x}}}function Nc(a,y,x,b){if(y!==null){for(var E=y.gl.iterator;E.next();)Nc(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)}}$t.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 xr,b=new xr;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 Ae(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function vn(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;qe("Unknown DiagramEvent name: "+y)}$t.Bj=function(a,y){return a=vn(this,a),a!==null&&a.add(y),this},$t.am=function(a,y){a=vn(this,a),a!==null&&a.remove(y)},$t.R=function(a,y,x){var b=vn(this,a),E=new yd;if(E.diagram=this,a=Ae(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}$t.Yj=function(a,y){return _i(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},Un.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?ah(this,a):a.assign(this.documentBounds)};function _i(a,y,x,b){var E=a.Xh;if(E===null&&(a.Xh=E=new Pm(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=lr(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&&Hr(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 hr&&Hr(a,nt,b,y);ai.free(y)}E.group=x,E.Yx=b,E.vs=!1}else y&&c1(E);return E}function lr(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?lr(a,y.containingGroup):null}function Hr(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 Do)for(y=y.memberParts;y.next();)E=y.value,E instanceof hr&&Hr(a,E,x,b)}}function fo(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}Un.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():fs(this)};function fs(a){a.vk===-1&&(a.vk=wi(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(),fs(a))}},a.vp))}Un.prototype.ug=function(){this.vk!==-1&&(Le.clearTimeout(this.vk),this.vk=-1)},Un.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=Ne.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(ls)||(y=new Ne(y.x+z.x/E,y.y+z.y/E)),ai.free(b),Ne.free(z),y},$t=Un.prototype,$t.Cs=function(){return null},$t.av=function(){return null},$t.bs=function(a,y){this.pj.add(a,y)},$t.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Do&&(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-ut>at?y(x,E,ot):Le.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,ut=+new Date;return Le.requestAnimationFrame(function(){b()}),null}$t.Wz=function(a){return js?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},$t.Jx=function(a){return a===void 0&&(a={}),Ws(this,this.Xz,a)},$t.Xz=function(a,y,x){var b=Da(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 Rh+"data":E=b.getImageData(0,0,x.width,x.height);break;case Rh:b=(a.document||document).createElement("img"),b.src=x.toDataURL(a.type,a.details),E=b;break;case"blob":return typeof y!="function"&&qe('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 Da(a,y,x,b){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&qe("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 Zi(1/0,1/0):new Zi(2e3,2e3));var ot=y.position||null,at=y.parts||null,ut=y.padding===void 0?1:y.padding,ct=y.background||null,yt=y.omitTemporary;yt===void 0&&(yt=!0);var kt=y.document||document,zt=y.elementFinished||null,Xt=y.showTemporary;Xt===void 0&&(Xt=!yt),y=y.showGrid,y===void 0&&(y=Xt),E!==null&&isNaN(E.width)&&isNaN(E.height)&&(E=null),typeof ut=="number"?ut=new Rr(ut):ut instanceof Rr||qe("MakeImage padding must be a Margin or a number."),ut.left=Math.max(ut.left,0),ut.right=Math.max(ut.right,0),ut.top=Math.max(ut.top,0),ut.bottom=Math.max(ut.bottom,0),a.ib.Vc(!0),yt=new yc(null,kt,void 0,!0);var he=yt.context;if(!(E||z||at||ot))return yt.width=a.Aa+Math.ceil(ut.left+ut.right),yt.height=a.ya+Math.ceil(ut.top+ut.bottom),x==="SVG"?b===null?null:(b.resize(yt.width,yt.height,yt.width,yt.height),b.ownerDocument=kt,b.hs=zt,sl(a,b.context,ut,new Zi(yt.width,yt.height),a.Ca,a.pa,at,ct,Xt,y),b.context):(a.Xm=!1,sl(a,he,ut,new Zi(yt.width,yt.height),a.Ca,a.pa,at,ct,Xt,y),a.Xm=!0,yt.context);var ze=a.Pp,Fe=a.documentBounds.copy();if(Fe.Fv(a.yb),Xt)for(var Ze=a.Wa.s,tn=Ze.length,on=0;on<tn;on++){var Sn=Ze[on];if(Sn.visible&&Sn.isTemporary){Sn=Sn.Pa.s;for(var Wn=Sn.length,rr=0;rr<Wn;rr++){var Fr=Sn[rr];Fr.isInDocumentBounds&&Fr.isVisible()&&(Fr=Fr.actualBounds,Fr.w()&&Fe.ed(Fr))}}}if(Ze=new Ne(Fe.x,Fe.y),at!==null){for(tn=new ai(0,0,0,0),on=!0,Sn=at.iterator,Sn.reset();Sn.next();)Wn=Sn.value,Wn instanceof Vr&&(rr=Wn.layer,rr!==null&&!rr.visible||rr!==null&&!Xt&&rr.isTemporary||!Wn.isVisible()||(Wn=Wn.actualBounds,Wn.w()&&(on?(on=!1,tn.assign(Wn)):tn.ed(Wn))));Fe.width=tn.width,Fe.height=tn.height,Ze.x=tn.x,Ze.y=tn.y}return ot!==null&&ot.w()&&(Ze=ot,z||(z=ze)),tn=ot=0,ut!==null&&(ot=ut.left+ut.right,tn=ut.top+ut.bottom),on=Sn=0,E!==null&&(Sn=E.width,on=E.height,isFinite(Sn)&&(Sn=Math.max(0,Sn-ot)),isFinite(on)&&(on=Math.max(0,on-tn))),E!==null&&z!==null?(z==="NaN"&&(z=ze),E.w()?(E=Sn,Fe=on):isNaN(on)?(E=Sn,Fe=Fe.height*z):(E=Fe.width*z,Fe=on)):E!==null?E.w()?(z=Math.min(Sn/Fe.width,on/Fe.height),E=Sn,Fe=on):isNaN(on)?(z=Sn/Fe.width,E=Sn,Fe=Fe.height*z):(z=on/Fe.height,E=Fe.width*z,Fe=on):z!==null?z==="NaN"&&nt.w()?(z=Math.min((nt.width-ot)/Fe.width,(nt.height-tn)/Fe.height),z>ze?(z=ze,E=Fe.width,Fe=Fe.height):(E=nt.width,Fe=nt.height)):(E=Fe.width*z,Fe=Fe.height*z):(z=ze,E=Fe.width,Fe=Fe.height),ut!==null?(E+=ot,Fe+=tn):ut=new Rr(0),nt!==null&&(ze=nt.width,nt=nt.height,isNaN(ze)&&(ze=2e3),isNaN(nt)&&(nt=2e3),isFinite(ze)&&(E=Math.min(E,ze)),isFinite(nt)&&(Fe=Math.min(Fe,nt))),yt.width=Math.ceil(E),yt.height=Math.ceil(Fe),x==="SVG"?b===null?null:(b.resize(yt.width,yt.height,yt.width,yt.height),b.ownerDocument=kt,b.hs=zt,sl(a,b.context,ut,new Zi(Math.ceil(E),Math.ceil(Fe)),z,Ze,at,ct,Xt,y),b.context):(a.Xm=!1,sl(a,he,ut,new Zi(Math.ceil(E),Math.ceil(Fe)),z,Ze,at,ct,Xt,y),a.Xm=!0,yt.context)}De.Object.defineProperties(Un.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof Bt||(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 Cu(this,Le.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 Cu(this,Le.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(Le,"resize",this.Ov,!1),this.removeEventListener(Le,"wheel",this.$j,!0),Dh===this&&(Dh=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),rd(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)&&Pi(a,"0 <= value <= 1",Un,"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),kl(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),kl(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),kl(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),kl(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&Pi(a,">= 0",Un,"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&&Pi(a,">= 0",Un,"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 Pi(a,">= 0",Un,"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&&qe("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=Vc(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var b=this.vb;this.vb=!0,ml(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(Le,"pointermove",this.dk,!0),this.addEventListener(Le,"pointerdown",this.ui,!0),this.addEventListener(Le,"pointerup",this.fk,!0),this.addEventListener(Le,"pointerout",this.ek,!0),this.addEventListener(Le,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(Le,"wheel",this.$j,!0),this.addEventListener(Le,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Le,"pointermove",this.dk,!0),this.removeEventListener(Le,"pointerdown",this.ui,!0),this.removeEventListener(Le,"pointerup",this.fk,!0),this.removeEventListener(Le,"pointerout",this.ek,!0),this.removeEventListener(Le,"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(Le,"wheel",this.$j,!0),this.removeEventListener(Le,"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=Ne.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),ol(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?Uh(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)}Ne.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=Ec(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=Ec(this)),a.type!==ei.Grid&&qe("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),Uh(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||qe("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 Rr(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===Ic&&kl(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,kl(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!==dl&&kl(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()||qe("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()||qe("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)):Pi(a,"> 0",Un,"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)):Pi(a,"> 0",Un,"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),kl(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 Rr(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&&qe("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();)gm(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==kc&&a!==Sa&&a!==mc&&qe("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 Zi(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 Rr(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),De.Object.defineProperties(Un,{licenseKey:{get:function(){return Zd.jc()},set:function(a){Zd.add(a.replace(/\s/g,""))}},version:{get:function(){return Gl}}}),Un.prototype.makeImageData=Un.prototype.Jx,Un.prototype.makeImage=Un.prototype.Wz,Un.prototype.cacheGroupExternalLinks=Un.prototype.Fu,Un.prototype.addRenderer=Un.prototype.bs,Un.prototype.makeSVG=Un.prototype.av,Un.prototype.makeSvg=Un.prototype.Cs,Un.prototype.stopAutoScroll=Un.prototype.ug,Un.prototype.doAutoScroll=Un.prototype.gs,Un.prototype.isUnoccupied=Un.prototype.Yj,Un.prototype.raiseDiagramEvent=Un.prototype.R,Un.prototype.removeDiagramListener=Un.prototype.am,Un.prototype.addDiagramListener=Un.prototype.Bj,Un.prototype.findTreeRoots=Un.prototype.yz,Un.prototype.layoutDiagram=Un.prototype.Uz,Un.prototype.findTopLevelGroups=Un.prototype.qz,Un.prototype.findTopLevelNodesAndLinks=Un.prototype.rz,Un.prototype.ensureBounds=Un.prototype.Va,Un.prototype.findLinksByExample=Un.prototype.ls,Un.prototype.findNodesByExample=Un.prototype.ms,Un.prototype.findLinkForData=Un.prototype.Kc,Un.prototype.findNodeForData=Un.prototype.ii,Un.prototype.findPartForData=Un.prototype.Lc,Un.prototype.findLinkForKey=Un.prototype.findLinkForKey,Un.prototype.findNodeForKey=Un.prototype.Vb,Un.prototype.findPartForKey=Un.prototype.findPartForKey,Un.prototype.rebuildParts=Un.prototype.Wd,Un.prototype.transformViewToDoc=Un.prototype.Ps,Un.prototype.transformRectDocToView=Un.prototype.zA,Un.prototype.transformDocToView=Un.prototype.op,Un.prototype.centerRect=Un.prototype.es,Un.prototype.scrollToRect=Un.prototype.tv,Un.prototype.scroll=Un.prototype.scroll,Un.prototype.highlightCollection=Un.prototype.Jz,Un.prototype.highlight=Un.prototype.Iz,Un.prototype.selectCollection=Un.prototype.rA,Un.prototype.select=Un.prototype.select,Un.prototype.updateAllRelationshipsFromData=Un.prototype.rp,Un.prototype.updateAllTargetBindings=Un.prototype.updateAllTargetBindings,Un.prototype.commit=Un.prototype.commit,Un.prototype.rollbackTransaction=Un.prototype.Kf,Un.prototype.commitTransaction=Un.prototype.eb,Un.prototype.startTransaction=Un.prototype.Ea,Un.prototype.raiseChanged=Un.prototype.g,Un.prototype.raiseChangedEvent=Un.prototype.cb,Un.prototype.removeChangedListener=Un.prototype.ik,Un.prototype.addChangedListener=Un.prototype.Pe,Un.prototype.removeModelChangedListener=Un.prototype.mA,Un.prototype.addModelChangedListener=Un.prototype.Yw,Un.prototype.findLayer=Un.prototype.Qj,Un.prototype.removeLayer=Un.prototype.kA,Un.prototype.addLayerAfter=Un.prototype.Cy,Un.prototype.addLayerBefore=Un.prototype.Ww,Un.prototype.addLayer=Un.prototype.Al,Un.prototype.moveParts=Un.prototype.moveParts,Un.prototype.copyParts=Un.prototype.Kj,Un.prototype.removeParts=Un.prototype.Is,Un.prototype.remove=Un.prototype.remove,Un.prototype.add=Un.prototype.add,Un.prototype.clearDelayedGeometries=Un.prototype.bx,Un.prototype.setProperties=Un.prototype.nm,Un.prototype.attach=Un.prototype.Du,Un.prototype.set=Un.prototype.set,Un.prototype.resetInputOptions=Un.prototype.Sx,Un.prototype.setInputOption=Un.prototype.sA,Un.prototype.getInputOption=Un.prototype.Ql,Un.prototype.resetRenderingHints=Un.prototype.Tx,Un.prototype.setRenderingHint=Un.prototype.Xx,Un.prototype.getRenderingHint=Un.prototype.Gf,Un.prototype.maybeUpdate=Un.prototype.bd,Un.prototype.requestUpdate=Un.prototype.$b,Un.prototype.delayInitialization=Un.prototype.Xy,Un.prototype.isUpdateRequested=Un.prototype.Pz,Un.prototype.invalidateDocumentBounds=Un.prototype.Ya,Un.prototype.findObjectsNear=Un.prototype.og,Un.prototype.findPartsNear=Un.prototype.mz,Un.prototype.findObjectsIn=Un.prototype.Cf,Un.prototype.findPartsIn=Un.prototype.ux,Un.prototype.findObjectsAt=Un.prototype.ji,Un.prototype.findPartsAt=Un.prototype.lz,Un.prototype.findObjectAt=Un.prototype.ic,Un.prototype.findPartAt=Un.prototype.Ol,Un.prototype.focusObject=Un.prototype.zz,Un.prototype.alignDocument=Un.prototype.Jy,Un.prototype.zoomToRect=Un.prototype.BA,Un.prototype.zoomToFit=Un.prototype.zoomToFit,Un.prototype.diagramScroll=Un.prototype.kx,Un.prototype.focus=Un.prototype.focus;var ba=new xr,Sl=null,js=Le.document!==void 0,au=null,pu="",dl=new pi(Un,"None",0),Fl=new pi(Un,"Uniform",1),yh=new pi(Un,"UniformToFill",2),bh=new pi(Un,"CycleAll",10),oc=new pi(Un,"CycleNotDirected",11),Vd=new pi(Un,"CycleNotDirectedFast",12),cA=new pi(Un,"CycleNotUndirected",13),dA=new pi(Un,"CycleDestinationTree",14),AA=new pi(Un,"CycleSourceTree",15),Ic=new pi(Un,"DocumentScroll",1),Ed=new pi(Un,"InfiniteScroll",2),kc=new pi(Un,"TreeParentCollapsed",21),Sa=new pi(Un,"AllParentsCollapsed",22),mc=new pi(Un,"AnyParentsCollapsed",23),Zd=new Ci,Gl="2.3.10",Rh="image",Qu=null,ld=!1;function Tl(){if(js){var a=Le.document.createElement("canvas"),y=a.getContext("2d"),x=gi("7ca11abfd022028846");y[x]=gi("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",yn.Dx+"4ae6247590da4bb21c324ba3a84e385776",zo.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",En.za],E=1;5>E;E++)y[gi("7ca11abfd7330390")](gi(b[E-1]),10,15*E);for(y[x]=gi("39f046ebb36e4b"),x=1;5>x;x++)y[gi("7ca11abfd7330390")](gi(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(zo.prototype.Cd=zo.prototype.Eu),Qu=a}}Un.className="Diagram",Un.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Le.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof Un?y.H:null},Un.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},Un.useDOM=function(a){js=a?Le.document!==void 0:!1},Un.isUsingDOM=function(){return js},Un.None=dl,Un.Uniform=Fl,Un.UniformToFill=yh,Un.CycleAll=bh,Un.CycleNotDirected=oc,Un.CycleNotDirectedFast=Vd,Un.CycleNotUndirected=cA,Un.CycleDestinationTree=dA,Un.CycleSourceTree=AA,Un.DocumentScroll=Ic,Un.InfiniteScroll=Ed,Un.TreeParentCollapsed=kc,Un.AllParentsCollapsed=Sa,Un.AnyParentsCollapsed=mc;function Xd(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Fu(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=Le[gi("76a715b2f73f148a")][gi("72ba13b5")]||"";if(a.Rc=!0,js){var b=Un[gi("76a115b6ed251eaf4692")];if(b)for(var E=Zd.iterator;E.next()&&(b=E.value,b=gi(b).split(gi("39e9")),!(6>b.length));){var z=gi(b[1]).split(".");if(b[4]!=="7da71ca0")break;var nt=gi(yn[gi("6cae19")]).split(".");if(z[0]>nt[0]||z[0]===nt[0]&&z[1]>=nt[1]){var ot=Le[gi("74a900bae4370f8b51")][gi("6fbb13a1c2311e8a57")].toLowerCase();if(nt=ot[gi("73a612b6fb191d")](gi("3aad1ab6e022098b4dc4")),z=gi(b[2]),-1<nt&&(ot=ot[gi("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<ot&&ot<nt),!a.Rc))break;for(nt=x[gi("76ad18b4f73e")],ot=x[gi("73a612b6fb191d")](gi("35e7"))+2;ot<nt;ot++)y+=x[ot];if(nt=y[gi("73a612b6fb191d")](z),0>nt&&z!==gi("7da71ca0ad381e90")&&(nt=y[gi("73a612b6fb191d")](gi("76a715b2ef3e149757"))),0>nt&&(nt=y[gi("73a612b6fb191d")](gi("76a715b2ef3e149757"))),0>nt&&(nt=y[gi("73a612b6fb191d")](gi("2bfa41fdb3784bca12"))),0>nt&&(nt=x[gi("73a612b6fb191d")](gi("7baa19a6f76c1988428554"))),a.Rc=!(0<=nt&&nt<y[gi("73a612b6fb191d")](gi("35"))||y[gi("73a612b6fb191d")](gi("35"))===-1),!a.Rc||x[gi("73a612b6fb191d")](gi("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[gi("73a612b6fb191d")](z)),!a.Rc)||(nt=Le[gi("76a715b2f73f148a")][gi("69ad17a1e03e")],ot=nt[gi("73a612b6fb191d")](gi("7fb002b6ed25128b4da25b2e")),-1<ot&&(a.Rc=!(nt[gi("73a612b6fb191d")](z)>ot),!a.Rc)))break;if(z[0]==="#"){nt=Le.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[gi("79a417a0f0181a8946")]=b,Le.document[gi("78a712aa")]){Le.document[gi("78a712aa")][gi("7bb806b6ed32388c4a875b")](nt),at=Le.getComputedStyle(nt).getPropertyValue(gi("78a704b7e62456904c9b12701b6532a8"));var ut=Le.getComputedStyle(nt).getPropertyValue(gi("75b817b0ea2202"));if(Le.document[gi("78a712aa")][gi("68ad1bbcf533388c4a875b")](nt),at){if(nt=Le[gi("77a902b0eb1b1e804a8a")],ut==="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(gi("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[gi("76ad18b4f73e")],E=x[gi("73a612b6fb191d")](gi("35e7"))+2;E<ct;E++)y+=x[E];x=y[gi("73a612b6fb191d")](gi("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[gi("73a612b6fb191d")](gi("35")))}}}return 0<a.Rc&&a!==a.wy}Xd.className="DiagramHelper";function sc(a){this.j=a===void 0?new Ne:a,this.o=new Ne}De.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 Zi(NaN,NaN).freeze(),this.gridSnapCellSpot=nl,this.gridSnapOrigin=new Ne(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},st.className="DraggingOptions";function vt(a,y){if(typeof a=="string"||Le.Element&&a instanceof Element)var x=Un.call(this,a)||this;else x=Un.call(this)||this,y=a;return gt(x),y&&x.nm(y),x}Tn(vt,Un);function gt(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Cl,a.layout=new $u}vt.prototype.reset=function(){Un.prototype.reset.call(this),gt(this)},vt.className="Palette";function Bt(a,y){if(typeof a=="string"||Le.Element&&a instanceof Element)var x=Un.call(this,a)||this;else x=Un.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 Vr;var E=new Ko;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 Rr(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new Ue,x.toolManager.mouseMoveTools),x.click=function(){var z=b.observed;if(z!==null){var nt=z.viewportBounds,ot=b.lastInput.documentPoint;z.position=new Ne(ot.x-nt.width/2,ot.y-nt.height/2)}},x.Pf=function(){b.Ya(),xe(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&&xe(b)},x.autoScale=Fl,x.vb=!1,y&&Object.assign(x,y),x}Tn(Bt,Un),Bt.prototype.computePixelRatio=function(){return 1},Bt.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(vh(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),te(this)}finally{this.ta=a,this.ib=y}}}Un.prototype.redraw.call(this)},Bt.prototype.gc=function(){if(this.Ka===null&&qe("No div specified"),this.ta===null&&qe("No canvas specified"),!(this.ta instanceof Cu)&&(wv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){vh(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?te(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 te(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),su(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 ut=ot.diagram.grid.part;if(!x&&ot.isTemporary)b&&ut.layer===ot&&(ot=nu(ot,E),ut.gc(E,at),E.globalAlpha=ot);else{for(var ct=nu(ot,E),yt=at.scale,kt=ai.alloc(),zt=ot.Pa.s,Xt=zt.length,he=0;he<Xt;he++){var ze=zt[he];(b||ze!==ut)&&ot.Oj(E,ze,at,null,yt,kt,!1)}ai.free(kt),E.globalAlpha=ct}}}}}function xe(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=Zi.alloc();E.h(x.width,x.height),b.desiredSize=E,Zi.free(E),a=2/a.scale,b instanceof Ko&&(b.strokeWidth=a),y.location=new Ne(x.x-a/2,x.y-a/2),y.isSelected=!0}}}Bt.prototype.computeBounds=function(){var a=this.observed;if(a===null)return qo;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},Bt.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},Bt.prototype.onViewportBoundsChanged=function(a,y,x,b){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),xe(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))},De.Object.defineProperties(Bt.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof Bt&&qe("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),xe(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),xe(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)}}}),Bt.className="Overview";function Ue(){Qe.call(this),this.j=null}Tn(Ue,Qe),Ue.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 Ne(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new Ne(a.x-this.j.x,a.y-this.j.y)),!0)},Ue.prototype.doActivate=function(){this.j=null,Qe.prototype.doActivate.call(this)},Ue.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},Ue.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 Ne(b.x-x.x,b.y-x.y)}a=a.lastInput.documentPoint,y.position=new Ne(a.x-this.j.x,a.y-this.j.y)}}},Ue.className="OverviewDraggingTool";function je(){Yo(this),this.H=Dh,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=qo,this.hb=!0,this.cg=null,this.ob=200}je.prototype.toString=function(){return"CommandHandler"},je.prototype.Xe=function(a){this.H=a},je.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=ps?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()},je.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},je.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof Vt&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},je.prototype.canStopCommand=function(){return!0},je.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=""}},je.prototype.canSelectAll=function(){return this.diagram.allowSelect},je.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 xi,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=""}},je.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},je.prototype.copySelection=function(){var a=this.diagram,y=new xi;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)},je.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},je.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},je.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},je.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)au=null,pu="";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,pu=y.model.dataFormat}}y.R("ClipboardChanged",x)},je.prototype.pasteFromClipboard=function(){var a=new xi,y=au;if(y===null)return a;var x=this.diagram;if(pu!==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},je.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);Mc(y,z,new Ne(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=""}},je.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||au===null||au.count===0||pu!==a.model.dataFormat)},je.prototype.undo=function(){this.diagram.undoManager.undo()},je.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},je.prototype.redo=function(){this.diagram.undoManager.redo()},je.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},je.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===dl&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},je.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==dl?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},je.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===dl&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},je.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==dl?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},je.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},je.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},je.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,b=a.scale;ml(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=qo):(this.Jt=b,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),ho(y)},je.prototype.canZoomToFit=function(){return this.diagram.allowZoom},je.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;ml(x,"Scroll To Part");var b=this.scrollToPartPause;if(0<b){var E=an(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 hr&&at.isTreeExpanded&&(!(at instanceof Do)||at.isSubGraphExpanded);)at=E.pop();0<E.length?(at instanceof Vr&&y.tv(at.actualBounds),at instanceof hr&&!at.isTreeExpanded&&(at.isTreeExpanded=!0),at instanceof Do&&!at.isSubGraphExpanded&&(at.isSubGraphExpanded=!0)):(at instanceof Vr&&y.es(at.actualBounds),y.am("LayoutCompleted",nt)),y.eb("Scroll To Part")},nt=function(){wi(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 an(a,y,x){if(y.isVisible())return x;if(y instanceof bs)an(a,y.adornedPart,x);else if(y instanceof Gi){var b=y.fromNode;b!==null&&an(a,b,x),y=y.toNode,y!==null&&an(a,y,x)}else y instanceof hr&&(b=y.labeledLink,b!==null&&an(a,b,x),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||x.push(b),an(a,b,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),an(a,y,x));return x}je.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof Vr)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},je.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),ml(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 hr&&E.isTreeExpanded&&(E.collapseTree(),x.add(E))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},je.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof hr&&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 hr&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},je.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),ml(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 hr&&!E.isTreeExpanded&&(E.expandTree(),x.add(E))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},je.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof hr)||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 hr&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},je.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 ut=at.value;z=!1;for(var ct=E.iterator;ct.next();)if(ut.Td(ct.value)){z=!0;break}z||ot.add(ut)}if(0<ot.count){var yt=ot.first().containingGroup;if(yt!==null)for(;yt!==null;){E=!1;for(var kt=ot.iterator;kt.next();)if(!kt.value.Td(yt)){E=!0;break}if(E)yt=yt.containingGroup;else break}if(x instanceof Do)lh(x),b=x.copy(),b!==null&&a.add(b);else if(y.Yu(x)){var zt=y.copyNodeData(x);On(zt)&&(y.xf(zt),b=a.ii(zt))}if(b!==null){yt!==null&&this.isValidMember(yt,b)&&(b.containingGroup=yt);for(var Xt=ot.iterator;Xt.next();){var he=Xt.value;this.isValidMember(b,he)&&(he.containingGroup=b)}a.clearSelection(!0),b.isSelected=!0}}a.R("SelectionGrouped",b)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},je.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 $n(a){var y=ar();for(a=a.iterator;a.next();){var x=a.value;x instanceof Gi||y.push(x)}a=new xi,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 Lr(y),a}je.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof Gi)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},je.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 Do&&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 ut=at.containingGroup,ct=ut!==null&&ut.data!==null?x.wa(ut.data):void 0;nt.addAll(at.memberParts);for(var yt=nt.iterator;yt.next();){var kt=yt.value;if(kt.isSelected=!0,!(kt instanceof Gi)){var zt=kt.data;zt!==null?x.mp(zt,ct):kt.containingGroup=ut}}y.remove(at)}}y.R("SelectionUngrouped",b,nt)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},je.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 Do))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Do&&y.canUngroup())return!0;return!1},je.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=$n(a).iterator;a.next();){var b=a.value;b.containingGroup!==null&&(!y||this.isValidMember(null,b)?b.containingGroup=null:x=!1)}return x},je.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),ml(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 Do&&E.isSubGraphExpanded&&(E.collapseSubGraph(),x.add(E))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},je.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof Do&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Do&&y.isSubGraphExpanded)return!0;return!1},je.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),ml(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 Do&&!E.isSubGraphExpanded&&(E.expandSubGraph(),x.add(E))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},je.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof Do&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Do&&!y.isSubGraphExpanded)return!0;return!1},je.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 ua&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},je.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 ua))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 ua&&x.editable}),a!==null))return!0;return!1},je.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 wn?E=a.ga(Fo):y.viewportBounds.ca(b.documentPoint)||(E=y.viewportBounds,E=new Ne(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,Po(x,!1,a)}},je.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)},je.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 xr,a===null)return b;for(var z=a.iterator;z.next();)Zu(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 Gi&&(y=a.fromNode,y===null||b.contains(y)?(y=a.toNode,y===null||b.contains(y)||b.remove(a)):b.remove(a));return b},De.Object.defineProperties(je.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||qe("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}}}),je.className="CommandHandler",bc=function(){return new je};function wn(){Yo(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new Ne(NaN,NaN).freeze(),this.jd=ka,this.Ab=new zo,this.wh=new zo,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=yu,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 Mi,bi,br,Tr,$r,mo,Jo,Mo,rs,Ts;wn.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=Cr(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},wn.prototype.Vw=function(a){var y=this.Dh;if(ui(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},wn.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},wn.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},wn.prototype.copy=function(){return this.clone()},$t=wn.prototype,$t.qb=function(a){a.classType===Gi?a.name.indexOf("Orient")===0?this.segmentOrientation=a:qe("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===wn&&(this.stretch=a)},$t.toString=function(){return nr(this.constructor)+"#"+vs(this)},$t.th=function(){this.A!==null&&(this.A.nc=!0)};function No(a){a.A===null?a.A=new GA:a.A.nc&&(a.A=a.A.copy())}$t.Xc=function(){if(this.ba===null){var a=new Vf;a.Xi=Wa,a.yj=Wa,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},$t.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===Na&&lu(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 xr),nt=z.undoManager.transactionLevel===0,a.startCondition===eu?nt=!0:a.startCondition===vl&&(nt=!1),nt?(z=new Qa,La(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()):(ml(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,b,E)))),this instanceof ei&&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 ei&&la(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))}}$t.ks=function(a){return this.bindingId===a?this:null},$t.g=function(a,y,x){this.cb(Na,a,this,y,x)},$t.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 zo);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),z.pp(E)}};function Ol(a,y,x,b){return a.pickable===!1?!1:(b.multiply(a.transform),x?a.Yc(y,b):a.fh(y,b))}$t.tx=function(a,y,x){if(this.pickable===!1)return!1;var b=this.naturalBounds;return y=a.Bf(y),x?Vs(a.x,a.y,0,0,0,b.height)<=y||Vs(a.x,a.y,0,b.height,b.width,b.height)<=y||Vs(a.x,a.y,b.width,b.height,b.width,0)<=y||Vs(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},$t.se=function(){return!0},$t.ca=function(a){var y=Ne.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return Ne.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=Gs(x.x-nt*at,x.y-nt*at,x.width+z*at,x.height+z*at,y.x,y.y),Ne.free(y),a}return E=!1,(this instanceof bs||this instanceof Ko?Gs(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)),Ne.free(y),E},$t.gh=function(a){var y=this.naturalBounds;return Gs(0,0,y.width,y.height,a.x,a.y)},$t.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=Ne.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)))),Ne.free(E),ai.free(y),b},$t.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,b=!1,E=Ne.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)))),Ne.free(E),b},$t.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,b=Ne.allocAt(0,0),E=Ne.allocAt(0,x.height),z=Ne.allocAt(x.width,x.height),nt=Ne.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=Ne.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)))),Ne.free(at),ai.free(x),!ot&&(En.us(a,b,E)||En.us(a,E,z)||En.us(a,z,nt)||En.us(a,nt,b))&&(ot=!0)}return Ne.free(b),Ne.free(E),Ne.free(z),Ne.free(nt),ot},$t.ga=function(a,y){if(y===void 0&&(y=new Ne),a instanceof fr){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},$t.mi=function(a){a===void 0&&(a=new ai);var y=this.naturalBounds,x=this.oe,b=Ne.allocAt(0,0).transform(x);return a.h(b.x,b.y,0,0),b.h(y.width,0).transform(x),Cs(a,b.x,b.y,0,0),b.h(y.width,y.height).transform(x),Cs(a,b.x,b.y,0,0),b.h(0,y.height).transform(x),Cs(a,b.x,b.y,0,0),Ne.free(b),a},$t.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},$t.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},$t.qs=function(a,y){return y===void 0&&(y=new Ne),y.assign(a),this.oe.Cd(y),y},$t.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},$t.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,ut=-z.m21*nt,ct=z.m11*nt,yt=nt*(z.m21*z.dy-z.m22*z.dx),kt=nt*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,En.Ff(z.left,z.top,z.right,z.bottom,a,y,x,b,E)):(nt=a*ot+y*ut+yt,a=a*at+y*ct+kt,y=x*ot+b*ut+yt,x=x*at+b*ct+kt,E.h(0,0),b=this.naturalBounds,x=En.Ff(0,0,b.width,b.height,nt,a,y,x,E),E.transform(z),x)},wn.prototype.measure=function(a,y,x,b){if(wh(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 ei;switch(Xu(this,!0)){case bi:nt=E=0,ot&&(y=a=1/0);break;case Mi:isFinite(a)&&a>x&&(E=a),isFinite(y)&&y>b&&(nt=y);break;case Tr:isFinite(a)&&a>x&&(E=a),nt=0,ot&&(y=1/0);break;case $r: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()||qe("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),jl(this,!1)}},wn.prototype.Wl=function(){},wn.prototype.Dd=function(){return!1},wn.prototype.arrange=function(a,y,x,b,E){this.Uk();var z=ai.alloc();z.assign(this.Ib),this.Ib.ka(),zu(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&&Sh(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 ua&&(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()||qe("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),$c(this,!1),ai.free(z)},$t=wn.prototype,$t.eh=function(){};function zl(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=Xu(a,!0),x===b&&z===E&&(y=bi),y){case bi:(x>b||z>E)&&(jl(a,!0),a.measure(x>b?b:x,z>E?E:z,0,0));break;case Mi:jl(a,!0),a.measure(b,E,0,0);break;case Tr:jl(a,!0),a.measure(b,z,0,0);break;case $r:jl(a,!0),a.measure(x,E,0,0)}}}$t.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(),kh(a,y)||(x.oh(),this.Pn(x)))},$t.Pn=function(a){this.portId!==null&&(Cv(a,!0),a instanceof hr&&$y(a,this))},$t.gc=function(a,y){if(!Pl(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 ei&&Sh(this),nt=this.Ib;if(z){var ot=this.Ib,at=this.dc,ut=this.areaBackground,ct=this.Ma;ut===null&&ct===null||a.yc(),ut!==null&&(Ca(this,a,ut,!0,!0,at,ot),ut instanceof Us&&ut.type===$e?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(ut)):a.fillRect(ot.x,ot.y,ot.width,ot.height)),ct!==null&&(Ca(this,a,ct,!0,!1,at,ot),ct instanceof Us&&ct.type===$e?(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&&Kl(this),ut=this.part,at=!1;var yt=0;ut&&y.Gf("drawShadows")&&(at=ut.isShadowed)&&(ct=ut.shadowOffset,yt=Math.max(ct.y,ct.x)*y.scale*y.Mb),ct=this.Dd();var kt;if(!(kt=y.$i||!ct)){var zt=this.naturalBounds;kt=this.wh;var Xt=kt.m11,he=kt.m21,ze=kt.dx,Fe=kt.m12,Ze=kt.m22,tn=kt.dy,on,Sn=on=0;kt=on*Xt+Sn*he+ze;var Wn=on*Fe+Sn*Ze+tn;on=zt.width+yt,Sn=0;var rr=on*Xt+Sn*he+ze;on=on*Fe+Sn*Ze+tn,Sn=Math.min(kt,rr);var Fr=Math.min(Wn,on),vr=Math.max(kt+0,rr)-Sn,Ki=Math.max(Wn+0,on)-Fr;kt=Sn,Wn=Fr,on=zt.width+yt,Sn=zt.height+yt,rr=on*Xt+Sn*he+ze,on=on*Fe+Sn*Ze+tn,Sn=Math.min(kt,rr),Fr=Math.min(Wn,on),vr=Math.max(kt+vr,rr)-Sn,Ki=Math.max(Wn+Ki,on)-Fr,kt=Sn,Wn=Fr,on=0,Sn=zt.height+yt,rr=on*Xt+Sn*he+ze,on=on*Fe+Sn*Ze+tn,Sn=Math.min(kt,rr),Fr=Math.min(Wn,on),vr=Math.max(kt+vr,rr)-Sn,Ki=Math.max(Wn+Ki,on)-Fr,kt=Sn,Wn=Fr,yt=y.viewportBounds,zt=yt.x,Xt=yt.y,kt=!(kt>yt.width+zt||zt>vr+kt||Wn>yt.height+Xt||Xt>Ki+Wn)}if(kt){if(kt=(this.l&256)!==0,a.clipInsteadOfFill&&(kt=!1),this instanceof ua&&(a.font=this.font),kt){if(Wn=ot.se()?ot.naturalBounds:ot.actualBounds,vr=Math.max(nt.x,Wn.x),Ki=Math.max(nt.y,Wn.y),yt=Math.min(nt.right,Wn.right)-vr,zt=Math.min(nt.bottom,Wn.bottom)-Ki,Xt=this.tb,Xt!==null&&(vr=Xt.x,Ki=Xt.y,yt=Xt.width,zt=Xt.height),vr>nt.width+nt.x||nt.x>Wn.width+Wn.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}a.save(),a.beginPath(),a.rect(vr,Ki,yt,zt),a.clip()}if(ct){if(!ut.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}at&&(Wn=ut.shadowOffset,a.Ev(Wn.x*y.scale*this.scale*y.Mb,Wn.y*y.scale*this.scale*y.Mb,ut.shadowBlur),Qh(a),a.shadowColor=ut.shadowColor)}at&&this.shadowVisible===!0?Qh(a):at&&this.shadowVisible===!1&&Yc(a),ut=this.naturalBounds,this.areaBackground!==null&&(a.yc(),Xa(this,a,ut,nt)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),at&&Al(this,ot)&&this.shadowVisible===null&&Yc(a),this.Ma!==null&&(a.yc(),Ia(this,a,ut,nt)),at&&(this.Ma!==null||this.areaBackground!==null||Al(this,ot))?(hh(this,!0),this.shadowVisible===null&&Yc(a)):hh(this,!1),this.hh(a,y),at&&this.l&512&&Qh(a),ct&&at&&Yc(a),kt&&(a.restore(),a.Vc(this instanceof ei)),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 Al(a,y){return y===null?!1:(Sh(y)&&(y=y.panel),(y.l&512)!==0||(y.type===ei.Auto||y.type===ei.Spot)&&y.Pb()!==a)}$t.Dv=function(){};function Xa(a,y,x,b){Ca(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof Us&&a.areaBackground.type===$e?(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 Ia(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 Us&&a.Ma.type===$e?(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===ei.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 Pl(a,y,x){if(!(y instanceof xh))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),Qh(y),y.shadowColor=a.shadowColor}a instanceof ua&&(y.font=a.font),y.yd=null;var nt=a.transform;z=a instanceof ei;var ot=a instanceof ei?Sh(a):!1;a.l&4096&&Kl(a);var at=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,E&&(y.o=!0,z&&ot?(hd(y,1,0,0,1,0,0),a.svg=y.ad):z?(hd(y,nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy),a.svg=y.ad):hd(y,1,0,0,1,0,0)),E=a.naturalBounds,a.areaBackground!==null){var ut=nt.copy().Vj();y.rb.ha=[ut.m11,ut.m12,ut.m21,ut.m22,ut.dx,ut.dy],Xa(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]),Ia(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],Ia(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&&Qh(y),ot&&a.shadowVisible===!0?Qh(y):ot&&a.shadowVisible===!1&&Yc(y),E=a.panel,ot&&Al(a,E)&&a.shadowVisible===null&&Yc(y),y.Il&&(ut=x.computePixelRatio(),ut="drop-shadow("+y.shadowOffsetX/ut+"px "+y.shadowOffsetY/ut+"px "+y.shadowBlur/ut/2+"px "+y.shadowColor+")",a.background!==null&&nt.Ma.setAttributeNS(null,"filter",ut),a.areaBackground!==null&&nt.gd.setAttributeNS(null,"filter",ut)),ot&&(a.Ma!==null||a.areaBackground!==null||Al(a,E))?(hh(a,!0),a.shadowVisible===null&&Yc(y)):hh(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,ut=a.svg,!z&&ut!==null&&ot!==ut&&ut.parentNode===a.panel.svg?(a.svg.replaceWith(ot),a.svg=ot,ot!==null&&a.$o(y,b,at,ot),mu(y,ut),!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&&Qh(y),a.Dd()&&Yc(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)}$t.$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"+da++,ot=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:E,width:nt,height:x}),this instanceof ei&&(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"),mu(a,b)};function mu(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function Oo(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=ws(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()}}$t.hh=function(){},$t.lv=function(){this.Uc=!0},$t.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 ei?Sh(this):!1;if(!(this instanceof ei&&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 ei)y.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");else if(this instanceof Ko){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],Xa(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 ei))&&(a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy]),Ia(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},$t.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===fe)b?y.fillStyle=x.color:y.strokeStyle=x.color;else{var ut=a.kq();if(ot=z.width,at=z.height,E?(ot=nt.width,at=nt.height):b||(ot+=ut,at+=ut),(z=y instanceof ZA)&&x.xe&&(x.type===pn||x.yk===ot&&x.ft===at))var ct=x.xe;else{var yt=0,kt=0,zt=0,Xt=0,he=0,ze=0;if(ze=he=0,E?(he=nt.x,ze=nt.y):b||(he-=ut/2,ze-=ut/2),yt=x.start.x*ot+x.start.offsetX,kt=x.start.y*at+x.start.offsetY,zt=x.end.x*ot+x.end.offsetX,Xt=x.end.y*at+x.end.offsetY,yt+=he,zt+=he,kt+=ze,Xt+=ze,x.type===Pe)ct=y.createLinearGradient(yt,kt,zt,Xt);else if(x.type===$e)ze=isNaN(x.endRadius)?Math.max(ot,at)/2:x.endRadius,isNaN(x.startRadius)?(he=0,ze=Math.max(ot,at)/2):he=x.startRadius,ct=y.createRadialGradient(yt,kt,he,zt,Xt,ze);else if(x.type===pn)try{ct=y.createPattern(x.pattern,"repeat")}catch(Ze){ct=null}if(x.type!==pn&&(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===pn&&x.yk!==-1)){x.yk=-1;var Fe=a.diagram;Fe!==null&&x.yk===-1&&wi(function(){Fe.redraw()},600)}}b?y.fillStyle=ct:y.strokeStyle=ct}}}$t.rg=function(a){if(a instanceof ei)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},$t.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},$t.If=function(){for(var a=this instanceof ei?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function Kl(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){Eh(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)}Eh(a,!1),nh(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,nh(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,nh(a,!1)))}$t.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Ne.alloc();z.yi(y,x,b,E,Fo),a.rotate(this.Kb,z.x,z.y),Ne.free(z)}},$t.v=function(a){if(!wh(this)){a===void 0&&(a=!1),jl(this,!0),$c(this,!0);var y=this.panel;y===null||a||y.v()}},$t.Uj=function(){wh(this)||(jl(this,!0),$c(this,!0))};function Dl(a){if(!zu(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof hr&&a.Bd(),y.$b())),$c(a,!0)}}$t.Uk=function(){!(this.l&2048)&&(Eh(this,!0),nh(this,!0))},$t.Wu=function(){nh(this,!0)},$t.N=function(){var a=this.part;a!==null&&a.N()};function Xu(a,y){var x=a.stretch,b=a.panel;return b!==null&&b.type===ei.Table?sa(a,b.Fb(a.row),b.Eb(a.column),y):b!==null&&b.type===ei.Auto&&b.Pb()===a?Qs(a,Mi,y):x===mo?b!==null?b.type===ei.Spot&&b.Pb()===a?Qs(a,Mi,y):(x=b.defaultStretch,x===mo?Qs(a,bi,y):Qs(a,x,y)):Qs(a,bi,y):Qs(a,x,y)}function sa(a,y,x,b){var E=a.stretch;if(E!==mo)return Qs(a,E,b);var z=E=null;switch(y.stretch){case $r:z=!0;break;case Mi:z=!0}switch(x.stretch){case Tr:E=!0;break;case Mi:E=!0}return y=a.panel.defaultStretch,E===null&&(E=y===Tr||y===Mi),z===null&&(z=y===$r||y===Mi),E===!0&&z===!0?Qs(a,Mi,b):E===!0?Qs(a,Tr,b):z===!0?Qs(a,$r,b):Qs(a,bi,b)}function Qs(a,y,x){if(x)return y;if(y===bi||(x=a.desiredSize,x.w()))return bi;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===Tr)return bi;if(y===Mi)return $r}else{if(y===$r)return bi;if(y===Mi)return Tr}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===$r)return bi;if(y===Mi)return Tr}else{if(y===Tr)return bi;if(y===Mi)return $r}return y}function hh(a,y){a.l=y?a.l|512:a.l&-513}function lu(a){return(a.l&1024)!==0}function Yd(a,y){a.l=y?a.l|1024:a.l&-1025}function Eh(a,y){a.l=y?a.l|2048:a.l&-2049}function nh(a,y){a.l=y?a.l|4096:a.l&-4097}function wh(a){return(a.l&8192)!==0}function jl(a,y){a.l=y?a.l|8192:a.l&-8193}function zu(a){return(a.l&16384)!==0}function $c(a,y){a.l=y?a.l|16384:a.l&-16385}$t.Gj=function(){this.svg=null},$t.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},$t.Av=function(){},$t.zv=function(a){return this.pa=a,Dl(this),!0},$t.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},$t.kq=function(){return 0};function Fd(a){var y=a.part;if(y instanceof hr&&(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 ei?a instanceof hr?a.Bd():a.qm(a,function(x){Fd(x)}):Fd(a))}$t.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new Yl(a,y,x,b):E=a,E.xd=this,a=this.ih(),a!==null&&lc(a)&&qe("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},$t.set=function(a){return Object.assign(this,a),this},$t.Du=function(a){return Bg(this,a),this},$t.apply=function(a){return a(this),this},$t.nm=function(a){return mh(this,a),this},$t.pz=function(){return this.ih()},$t.ih=function(){for(var a=this instanceof ei?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},$t.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new xr),this.animationTriggers.add(a.propertyName,a),this};function _h(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=Cr(arguments),b=z(x),On(b)||qe('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):E=Le.go[a]}if(b===null&&(E!=null&&E.constructor||qe("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 Un&&1<x.length){z=b;var nt=x[1];(typeof nt=="string"||nt instanceof HTMLDivElement)&&(rd(z,nt),E++)}for(;E<x.length;E++)z=x[E],z===void 0?qe("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 ua)a.text=y;else if(a instanceof Ko)a.figure=y;else if(a instanceof uc)a.source=y;else if(a instanceof ei)y=Kh.I(y),y!==null&&(a.type=y);else if(a instanceof Us){var x=ur(Us,y);x!==null?a.type=x:qe("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof Vi?(y=ur(Vi,y),y!==null&&(a.type=y)):a instanceof As&&(y=ur(As,y),y!==null&&(a.type=y));else if(y instanceof wn)a instanceof ei||qe("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof Rl){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 Rl?Xg(b,y):qe("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof pi)typeof a.qb=="function"&&a.qb(y);else if(y instanceof bn)a.type=y;else if(y instanceof Yl)a instanceof wn||a instanceof Rl?a.bind(y):qe("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof Vu)a instanceof wn?a.Jv(y):qe("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof tl)a instanceof Vi&&a.type===Vi.o?a.figures.add(y):qe("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof As)a instanceof tl?a.segments.add(y):qe("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Ka)a instanceof Un||a instanceof Do?a.layout=y:qe("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 Us){x=new uo;for(var E in y)b=parseFloat(E),isNaN(b)?x[E]=y[E]:a.addColorStop(b,y[E]);mh(a,x)}else if(a instanceof Rl){y.row!==void 0?(E=y.row,(E==null||E===1/0||isNaN(E)||0>E)&&qe("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)&&qe("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+E),a.isRow=!1,a.index=E),E=new uo;for(x in y)x!=="row"&&x!=="column"&&(E[x]=y[x]);mh(a,E)}else mh(a,y);else qe('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function ud(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}De.Object.defineProperties(wn.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&&(No(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&&(No(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Wh},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===Wh&&(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:ls},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:mo},set:function(a){var y=this.stretch;y!==a&&(No(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&&(No(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)&&Pi(a,"0 <= value <= 1",wn,"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 Us&&a.freeze(),No(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 Us&&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 Vr)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 Ne(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&&qe("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 Ko&&this.qc(),this.g("desiredSize",b,a),lu(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 Zi(a,this.jd.height).freeze(),this.v(),this instanceof Ko&&this.qc(),this.g("desiredSize",y,a),lu(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 Zi(this.jd.width,a).freeze(),this.v(),this instanceof Ko&&this.qc(),this.g("desiredSize",y,a),lu(this)&&(a=this.part,a!==null&&Js(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:bo},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(),No(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Zs},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(),No(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 Rr(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&&Kl(this),this.Ab}},oe:{get:function(){return this.l&4096&&Kl(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(No(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:bi},set:function(a){this.reshapingBehavior!==a&&(No(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()&&qe("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),Dl(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&&Pi(a,">= 0",wn,"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&&Pi(a,">= 1",wn,"columnSpan"),No(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&&Pi(a,">= 0",wn,"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&&Pi(a,">= 1",wn,"rowSpan"),No(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&&(No(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 hr||qe("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:Wa},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Fd(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Pi(a,">= 0",wn,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Fd(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),Fd(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&&Pi(a,">= 0",wn,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Wa},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Fd(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Pi(a,">= 0",wn,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Fd(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),Fd(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&&Pi(a,">= 0",wn,"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&&(No(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&&(No(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&&(No(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&&(No(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&&(No(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&&(No(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&&(No(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&&(No(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&&(No(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&&(No(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&&(No(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&&(No(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&&(No(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&&(No(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&&(No(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&&(No(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&&(No(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&&(No(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),wn.prototype.trigger=wn.prototype.Jv,wn.prototype.findBindingPanel=wn.prototype.ih,wn.prototype.findTemplateBinder=wn.prototype.pz,wn.prototype.setProperties=wn.prototype.nm,wn.prototype.apply=wn.prototype.apply,wn.prototype.attach=wn.prototype.Du,wn.prototype.set=wn.prototype.set,wn.prototype.isEnabledObject=wn.prototype.If,wn.prototype.isVisibleObject=wn.prototype.Ed,wn.prototype.isContainedBy=wn.prototype.rg,wn.prototype.getNearestIntersectionPoint=wn.prototype.rs,wn.prototype.getLocalPoint=wn.prototype.qs,wn.prototype.getDocumentScale=wn.prototype.Df,wn.prototype.getDocumentAngle=wn.prototype.li,wn.prototype.getDocumentBounds=wn.prototype.mi,wn.prototype.getDocumentPoint=wn.prototype.ga,wn.prototype.intersectsRect=wn.prototype.Yc,wn.prototype.containedInRect=wn.prototype.fh,wn.prototype.containsRect=wn.prototype.Re,wn.prototype.containsPoint=wn.prototype.ca,wn.prototype.raiseChanged=wn.prototype.g,wn.prototype.raiseChangedEvent=wn.prototype.cb,wn.prototype.addCopyProperty=wn.prototype.Vw;var yf=null;wn.className="GraphObject",yf=new xr,ud("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=_h(ei,ei.Auto,{isActionable:!0,enabledChanged:function(x,b){if(x instanceof ei){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"},_h(Ko,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new fr(0,0,2.76142374915397,2.761423749153969),spot2:new fr(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 ei&&(x=b.fb("ButtonBorder"),x instanceof Ko)){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 ei&&(x=b.fb("ButtonBorder"),x instanceof Ko&&(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal))},y.actionDown=function(x,b){if(b.If()&&b instanceof ei&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof Ko){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 ei&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof Ko){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 ei&&b._buttonFillPressed!==null){var E=b.fb("ButtonBorder");if(E instanceof Ko){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 ei&&b._buttonFillPressed!==null){var E=x.diagram;if(E.firstInput.button===0&&(E.currentTool.standardMouseOver(),a(x,b)&&(x=b.fb("ButtonBorder"),x instanceof Ko))){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}),ud("TreeExpanderButton",function(){var a=_h("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},_h(Ko,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:aa},new Yl("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new Yl("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 hr){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}),ud("SubGraphExpanderButton",function(){var a=_h("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},_h(Ko,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:aa},new Yl("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 Do){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}),ud("ToolTip",function(){return _h(bs,ei.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Ne(0,3),shadowBlur:5},_h(Ko,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new fr(0,0,4,6),spot2:new fr(1,1,-4,-4)}))}),ud("ContextMenu",function(){return _h(bs,ei.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Ne(0,3),shadowBlur:5},new Yl("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),ud("ContextMenuButton",function(){var a=_h("Button");a.stretch=Tr;var y=a.fb("ButtonBorder");return y instanceof Ko&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new fr(0,0,2,3),y.spot2=new fr(1,1,-2,-2)),a}),ud("PanelExpanderButton",function(a){var y=Wf(a,"COLLAPSIBLE"),x=_h("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},_h(Ko,{name:"ButtonIcon",strokeWidth:2},new Yl("geometryString","visible",function(b){return b?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof Ko&&(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}),ud("CheckBoxButton",function(a){var y=Wf(a);return a=_h("Button",{desiredSize:new Zi(14,14)},_h(Ko,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Mi,geometryStretch:br,visible:!1},y!==""?new Yl("visible",y).Kx():[])),a.click=function(x,b){if(b instanceof ei){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}),ud("CheckBox",function(a){a=Wf(a),a=_h("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Rr(0,1,0,0)});var y=_h(ei,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Rr(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}),wn.None=bi=new pi(wn,"None",0),wn.Default=mo=new pi(wn,"Default",0),wn.Vertical=$r=new pi(wn,"Vertical",4),wn.Horizontal=Tr=new pi(wn,"Horizontal",5),wn.Fill=Mi=new pi(wn,"Fill",3),wn.Uniform=br=new pi(wn,"Uniform",1),wn.UniformToFill=Jo=new pi(wn,"UniformToFill",2),wn.FlipVertical=Mo=new pi(wn,"FlipVertical",1),wn.FlipHorizontal=rs=new pi(wn,"FlipHorizontal",2),wn.FlipBoth=Ts=new pi(wn,"FlipBoth",3),wn.make=_h,wn.getBuilders=function(){var a=new xr,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},wn.defineBuilder=ud,wn.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 wn))return y&&b.set(y),b;qe('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},wn.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=bo,this.o=Zs,this.hg=mo,this.ob=this.Bi=1,this.Pf=bi,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=ls,this.rr=Wh,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 Ld(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}Ld.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},Ld.className="SGradient";function Cu(a,y,x){this.ownerDocument=a=y===void 0?Le.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 xh(this,x)}Cu.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},Cu.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),On(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},Cu.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Cu.prototype.focus=function(){this.Oa.focus()},Cu.prototype.mx=function(){this.ownerDocument=null},De.Object.defineProperties(Cu.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}}}),Cu.className="SVGSurface";function xh(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=da++,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?hd(a,y,x,b,E,z,nt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+b+", "+E+", "+z+", "+nt+")")}$t=xh.prototype,$t.arc=function(a,y,x,b,E,z,nt,ot){var at=2*Math.PI,ut=at-1e-6,ct=x*Math.cos(b),yt=x*Math.sin(b),kt=a+ct,zt=y+yt,Xt=z?0:1;b=z?b-E:E-b,(1e-6<Math.abs(nt-kt)||1e-6<Math.abs(ot-zt))&&this.path.push(["L",kt,+zt]),0>b&&(b=b%at+at),b>ut?(this.path.push(["A",x,x,0,1,Xt,a-ct,y-yt]),this.path.push(["A",x,x,0,1,Xt,kt,zt])):1e-6<b&&this.path.push(["A",x,x,0,+(b>=Math.PI),Xt,a+x*Math.cos(E),y+x*Math.sin(E)])},$t.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},$t.Se=function(a){this.addPath(this.path,this.rb,a||0)},$t.bezierCurveTo=function(a,y,x,b,E,z){this.path.push(["C",a,y,x,b,E,z])},$t.clearRect=function(){},$t.clip=function(){this.Yl.clipPath=!0},$t.closePath=function(){this.path.push(["z"])},$t.createLinearGradient=function(a,y,x,b){var E=new Ld("linear");return E.x1=a,E.y1=y,E.x2=x,E.y2=b,E},$t.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"+da++,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(Rh,E)),this.svg.appendChild(a),x[y]=b,"url(#"+b+")"},$t.createRadialGradient=function(a,y,x,b,E,z){var nt=new Ld("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)}$t.drawImage=function(a,y,x,b,E,z,nt,ot,at){var ut="";a instanceof HTMLCanvasElement&&(ut=a.toDataURL()),a instanceof HTMLImageElement&&(ut=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:ut},En.$(b,ot)&&En.$(E,at)?ut.toLowerCase().indexOf(".svg")===-1&&ut.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,Rh,z,this.rb),this.addElement(Rh,z)},$t.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),VA(this,this.Yl)},$t.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},$t.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)},$t.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))},$t.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])},$t.lineTo=function(a,y){this.path.push(["L",a,y])},$t.moveTo=function(a,y){this.path.push(["M",a,y])},$t.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},$t.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"])},$t.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},$t.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())},$t.setTransform=function(a,y,x,b,E,z){a===1&&y===0&&x===0&&b===1&&E===0&&z===0||hd(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]+")"}$t.scale=function(a,y){this.rb.scale(a,y)},$t.translate=function(a,y){this.rb.translate(a,y)},$t.transform=function(){},$t.yc=function(){},$t.stroke=function(){NA(this,this.Yl)},$t.jk=function(){this.clipInsteadOfFill||this.stroke()},$t.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},$t.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 Ld?y.fill=Hh(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 Xf(a,y,x){x=x?"fill":"stroke",a.fillStyle instanceof Ld?y.setAttributeNS(null,"fill",Hh(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 Ld)y.stroke=Hh(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 Hh(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"+da++,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(ut,ct){return ut.offset>ct.offset?1:-1}),E=0;E<y;E++)x.appendChild(a.Ud("stop",z[E]));return a.svg.appendChild(x),"url(#"+b+")"}$t.addPath=function(a,y,x){for(var b=[],E=0;E<a.length;E++){var z=Cr(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 hd(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}$t.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function Yc(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function Qh(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}$t.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},$t.fs=function(){this.Ct=!1},$t.Vc=function(){},$t.Wx=function(){},xh.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},xh.prototype.getImageData=function(){return null},xh.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()))}xh.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},xh.className="SVGContext",Un.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new Cu(this,Le.document));var y=new Cu(this,Le.document,!0);a===void 0&&(a=new uo);var x=this;return Ws(this,function(b,E){return b=Da(x,b,"SVG",y),b=b!==null?b.svg:null,typeof E=="function"?(E(b),null):b},a)},Un.prototype.makeSvg=Un.prototype.Cs,Un.prototype.av=function(a){return this.Cs(a)},Un.prototype.makeSVG=Un.prototype.av;function yc(a,y,x,b){this.ownerDocument=y=y===void 0?Le.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},De.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&&qe("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 zo,this.isTemporary=!!x}$t=ZA.prototype,$t.Wx=function(a){this.Z.imageSmoothingEnabled=a},$t.arc=function(a,y,x,b,E,z){this.Z.arc(a,y,x,b,E,z)},$t.beginPath=function(){this.Z.beginPath()},$t.Se=function(){},$t.bezierCurveTo=function(a,y,x,b,E,z){this.Z.bezierCurveTo(a,y,x,b,E,z)},$t.clearRect=function(a,y,x,b){this.yc(),this.Z.clearRect(a,y,x,b)},$t.clip=function(){this.Z.clip()},$t.closePath=function(){this.Z.closePath()},$t.createLinearGradient=function(a,y,x,b){return this.Z.createLinearGradient(a,y,x,b)},$t.createPattern=function(a,y){return this.Z.createPattern(a,y)},$t.createRadialGradient=function(a,y,x,b,E,z){return this.Z.createRadialGradient(a,y,x,b,E,z)},$t.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)},$t.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},$t.fillRect=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},$t.ox=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},$t.fillText=function(a,y,x){this.Z.fillText(a,y,x)},$t.getImageData=function(a,y,x,b){return this.Z.getImageData(a,y,x,b)},$t.lineTo=function(a,y){this.Z.lineTo(a,y)},$t.measureText=function(a){return this.Z.measureText(a)},$t.moveTo=function(a,y){this.Z.moveTo(a,y)},$t.quadraticCurveTo=function(a,y,x,b){this.Z.quadraticCurveTo(a,y,x,b)},$t.rect=function(a,y,x,b){this.Z.rect(a,y,x,b)},$t.restore=function(){this.Z.restore()},$t.save=function(){this.yc(),this.Z.save()},ZA.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},$t=ZA.prototype,$t.setTransform=function(a,y,x,b,E,z){this.El.setTransform(a,y,x,b,E,z)},$t.scale=function(a,y){this.El.scale(a,y)},$t.translate=function(a,y){this.El.translate(a,y)},$t.stroke=function(){this.Z.stroke()},$t.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}},$t.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},$t.ng=function(a,y){if(a instanceof Us&&a.type===$e){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)},$t.jk=function(){this.Hm||this.stroke()},$t.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},$t.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},$t.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(xp),a.lineDashOffset=0)},$t.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},$t.Hs=function(){},De.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 Us(a,y){Rt||(Ht(),Rt=!0),Yo(this),this._isFrozen=!1,a===void 0?(this.na=fe,this.xk="black"):typeof a=="string"?(this.na=fe,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===Pe?(this.Qd=Cl,this.Lk=ou):this.Lk=a===$e?this.Qd=Fo:this.Qd=Wa,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}Us.prototype.copy=function(){var a=new Us;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},$t=Us.prototype,$t.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},$t.ka=function(){return Object.isFrozen(this)&&qe("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},$t.qb=function(a){a.classType===Us&&(this.type=a)},$t.toString=function(){var a="Brush(";if(this.type===fe)a+=this.color;else if(a=this.type===Pe?a+"Linear ":this.type===$e?a+"Radial ":this.type===pn?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+")"},$t.addColorStop=function(a,y){return this._isFrozen&&oi(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&Pi(a,"0 <= loc <= 1",Us,"addColorStop:loc"),this.we===null&&(this.we=new xr),this.we.add(a,y),this.na===fe&&(this.type=Pe),this.xe=null,this},$t.Vz=function(a,y){if(this._isFrozen&&oi(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?cn:y,this.type===fe)cd(this.color),this.color=gA(a,y);else if((this.type===Pe||this.type===$e)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)cd(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?cn:x,cd(a),gA(y,x)}$t.Wy=function(a,y){if(this._isFrozen&&oi(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?cn:y,this.type===fe)cd(this.color),this.color=gA(-a,y);else if((this.type===Pe||this.type===$e)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)cd(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?cn:x,cd(a),gA(-y,x)}function xf(a,y,x){cd(a),a=jn.j;var b=jn.u,E=jn.o,z=jn.F;return cd(y),x===void 0&&(x=.5),"rgba("+Math.round((jn.j-a)*x+a)+", "+Math.round((jn.u-b)*x+b)+", "+Math.round((jn.o-E)*x+E)+", "+Math.round((jn.F-z)*x+z)+")"}$t.Gx=function(){if(this.type===fe)return IA(this.color);if((this.type===Pe||this.type===$e)&&this.colorStops!==null){var a=this.colorStops;if(this.type===$e)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 Us?a.Gx():(cd(a),128>(299*jn.j+587*jn.u+114*jn.o)/1e3):!1}function gA(a,y){switch(y){case cn:y=100*Wg(jn.j);var x=100*Wg(jn.u),b=100*Wg(jn.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=jn.F,y=Dt(Qi.j/Ln[0]),x=Dt(Qi.u/Ln[1]),b=Dt(Qi.o/Ln[2]),xt.j=116*x-16,xt.u=500*(y-x),xt.o=200*(x-b),xt.F=Qi.F,xt.j=Math.min(100,Math.max(0,xt.j+100*a)),a=(xt.j+16)/116,y=a-xt.o/200,Qi.j=Ln[0]*Tt(xt.u/500+a),Qi.u=Ln[1]*(xt.j>Je*Be?Math.pow(a,3):xt.j/Je),Qi.o=Ln[2]*Tt(y),Qi.F=xt.F,a=-.969266*Qi.j+1.8760108*Qi.u+.041556*Qi.o,y=.0556434*Qi.j+-.2040259*Qi.u+1.0572252*Qi.o,jn.j=255*Eg((3.2404542*Qi.j+-1.5371385*Qi.u+-.4985314*Qi.o)/100),jn.u=255*Eg(a/100),jn.o=255*Eg(y/100),jn.F=Qi.F,jn.j=Math.round(jn.j),255<jn.j?jn.j=255:0>jn.j&&(jn.j=0),jn.u=Math.round(jn.u),255<jn.u?jn.u=255:0>jn.u&&(jn.u=0),jn.o=Math.round(jn.o),255<jn.o?jn.o=255:0>jn.o&&(jn.o=0),"rgba("+jn.j+", "+jn.u+", "+jn.o+", "+jn.F+")";case xn:return bg(),Di.o=Math.min(100,Math.max(0,Di.o+100*a)),"hsla("+Di.j+", "+Di.u+"%, "+Di.o+"%, "+Di.F+")";default:qe("Unknown color space: "+y)}}function cd(a){Rt||(Ht(),Rt=!0);var y=ni;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,jn.j=a[0],jn.u=a[1],jn.o=a[2],jn.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,jn.j=0,jn.u=0,jn.o=0,jn.F=1)}}function bg(){var a=jn.j/255,y=jn.u/255,x=jn.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=jn.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 Dt(a){return a>Be?Math.pow(a,1/3):(Je*a+16)/116}function Tt(a){var y=a*a*a;return y>Be?y:(116*a-16)/Je}function Qt(a,y){typeof a!="string"&&(a instanceof Us||qe("Value for "+y+" must be a color string or a Brush, not "+a))}function Ht(){ni=js?new yc(null,void 0,{willReadFrequently:!0}).context:null}De.Object.defineProperties(Us.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&oi(this,a),this.na=a,this.start.Mc()&&(a===Pe?this.start=Cl:a===$e&&(this.start=Fo)),this.end.Mc()&&(a===Pe?this.end=ou:a===$e&&(this.end=Fo)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&oi(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&oi(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&oi(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&oi(this,a),0>a&&Pi(a,">= zero",Us,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&oi(this,a),0>a&&Pi(a,">= zero",Us,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&oi(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&oi(this,a),this.cr=a,this.xe=null}}}),Us.prototype.isDark=Us.prototype.Gx,Us.prototype.darkenBy=Us.prototype.Wy,Us.prototype.lightenBy=Us.prototype.Vz,Us.prototype.addColorStop=Us.prototype.addColorStop;var Be=216/24389,Je=24389/27,Ln=[95.047,100,108.883],ni=null,jn=new wf,Di=new wf,Qi=new wf,xt=new wf,Rt=!1;Us.className="Brush";var fe;Us.Solid=fe=new pi(Us,"Solid",0);var Pe;Us.Linear=Pe=new pi(Us,"Linear",1);var $e;Us.Radial=$e=new pi(Us,"Radial",2);var pn;Us.Pattern=pn=new pi(Us,"Pattern",4);var cn;Us.Lab=cn=new pi(Us,"Lab",5);var xn;Us.HSL=xn=new pi(Us,"HSL",6),Us.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},Us.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;Rt||(Ht(),Rt=!0);var y=ni;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)},Us.lighten=function(a){return Gg(a)},Us.lightenBy=Gg,Us.darken=function(a){return Sp(a)},Us.darkenBy=Sp,Us.mix=xf,Us.isDark=IA;function bn(){this.xa="Base"}bn.prototype.measure=function(){},bn.prototype.Yz=function(a,y,x,b,E){a.measure(y,x,b,E)},bn.prototype.arrange=function(){},bn.prototype.Ly=function(a,y,x,b,E,z){a.arrange(y,x,b,E,z)},bn.prototype.iA=function(a){a.Uj()},bn.prototype.gc=function(){},De.Object.defineProperties(bn.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return ei}}}),bn.prototype.remeasureObject=bn.prototype.iA,bn.prototype.arrangeElement=bn.prototype.Ly,bn.prototype.measureElement=bn.prototype.Yz,bn.className="PanelLayout";function Gn(){this.xa="Base"}Tn(Gn,bn),Gn.prototype.measure=function(a,y,x,b,E,z,nt){var ot=b.length;a=ja(a);for(var at=0;at<ot;at++){var ut=b[at];if(ut.visible||ut===a){var ct=ut.margin,yt=ct.right+ct.left;ct=ct.top+ct.bottom,ut.measure(y,x,z,nt);var kt=ut.measuredBounds;yt=Math.max(kt.width+yt,0),ct=Math.max(kt.height+ct,0),kt=ut.position.x;var zt=ut.position.y;isFinite(kt)||(kt=0),isFinite(zt)||(zt=0),ut instanceof Ko&&ut.isGeometryPositioned&&(ut=ut.strokeWidth/2,kt-=ut,zt-=ut),Cs(E,kt,zt,yt,ct)}}},Gn.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,ut=z.position.y;if(at=isNaN(at)?-a:at-a,ut=isNaN(ut)?-x:ut-x,z instanceof Ko&&z.isGeometryPositioned){var ct=z.strokeWidth/2;at-=ct,ut-=ct}z.visible&&z.arrange(at+ot.left,ut+ot.top,nt.width,nt.height)}};function Bi(){this.xa="Base"}Tn(Bi,bn),Bi.prototype.measure=function(a,y,x,b,E,z,nt){var ot=b.length;y=ar(),z=ja(a);for(var at=0;at<ot;at++){var ut=b[at];if(ut.visible||ut===z){var ct=Xu(ut,!1);if(ct!==bi&&ct!==Tr)y.push(ut);else{ut.measure(1/0,x,0,nt),ct=ut.margin,ut=ut.measuredBounds;var yt=Math.max(ut.height+ct.top+ct.bottom,0);E.width+=Math.max(ut.width+ct.right+ct.left,0),E.height=Math.max(E.height,yt)}}}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));Lr(y)},Bi.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 ut=z,ct=y[at];if(ct.visible){var yt=ct.measuredBounds,kt=ct.margin,zt=kt.top+kt.bottom,Xt=z+E.bottom,he=yt.height,ze=Xu(ct,!1);(isNaN(ct.desiredSize.height)&&ze===Mi||ze===$r)&&(he=Math.max(x.height-zt-Xt,0)),zt=he+zt+Xt,Xt=ct.alignment,Xt.Xb()&&(Xt=a.defaultAlignment),Xt.sb()||(Xt=Fo),nt&&(ot-=yt.width+kt.left+kt.right),ct.arrange(ot+Xt.offsetX+kt.left,ut+Xt.offsetY+kt.top+(x.height*Xt.y-zt*Xt.y),yt.width,he),nt||(ot+=yt.width+kt.left+kt.right)}}};function Ni(){this.xa="Base"}Tn(Ni,bn),Ni.prototype.measure=function(a,y,x,b,E,z){var nt=b.length;x=ar();for(var ot=ja(a),at=0;at<nt;at++){var ut=b[at];if(ut.visible||ut===ot){var ct=Xu(ut,!1);if(ct!==bi&&ct!==$r)x.push(ut);else{var yt=ut.margin;ct=yt.right+yt.left,yt=yt.top+yt.bottom,ut.measure(y,1/0,z,0),ut=ut.measuredBounds,Ta(E,Math.max(E.width,Math.max(ut.width+ct,0)),E.height+Math.max(ut.height+yt,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)&&(ut=at.margin,nt=ut.right+ut.left,ut=ut.top+ut.bottom,at.measure(y,1/0,z,0),at=at.measuredBounds,ut=Math.max(at.height+ut,0),E.width=Math.max(E.width,Math.max(at.width+nt,0)),E.height+=ut);Lr(x)}},Ni.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 ut=z,ct=y[at];if(ct.visible){var yt=ct.measuredBounds,kt=ct.margin,zt=kt.left+kt.right,Xt=z+E.right,he=yt.width,ze=Xu(ct,!1);(isNaN(ct.desiredSize.width)&&ze===Mi||ze===Tr)&&(he=Math.max(x.width-zt-Xt,0)),zt=he+zt+Xt,Xt=ct.alignment,Xt.Xb()&&(Xt=a.defaultAlignment),Xt.sb()||(Xt=Fo),nt&&(ot-=yt.height+kt.bottom+kt.top),ct.arrange(ut+Xt.offsetX+kt.left+(x.width*Xt.x-zt*Xt.x),ot+Xt.offsetY+kt.top,he,yt.height),nt||(ot+=yt.height+kt.bottom+kt.top)}}};function Yi(){this.xa="Base"}Tn(Yi,bn),Yi.prototype.measure=function(a,y,x,b,E,z,nt){var ot=b.length,at=a.Pb(),ut=at.margin,ct=ut.right+ut.left,yt=ut.top+ut.bottom;at.measure(y,x,z,nt);var kt=at.measuredBounds;z=kt.width,nt=kt.height;var zt=Math.max(z+ct,0),Xt=Math.max(nt+yt,0),he=a.isClipping,ze=ai.allocAt(-ut.left,-ut.top,zt,Xt),Fe=ai.allocAt(0,0,z,nt);Ri(at,Fe,!0),z=Fe.width,nt=Fe.height;for(var Ze=!0,tn=ja(a),on=0;on<ot;on++){var Sn=b[on];kt=y;var Wn=x;if(Sn!==at&&(Sn.visible||Sn===tn)){ut=Sn.margin;var rr=ut.left,Fr=ut.top;switch(zt=ut.right+ut.left,Xt=ut.top+ut.bottom,ut=Xu(Sn,!1),ut){case Mi:kt=z,Wn=nt,Fr=rr=Xt=zt=0;break;case Tr:kt=z,rr=zt=0;break;case $r:Wn=nt,Fr=Xt=0}Sn.measure(kt,Wn,0,0),kt=Sn.measuredBounds,zt=Math.max(kt.width+zt,0),Xt=Math.max(kt.height+Xt,0),ut=Sn.alignment,ut.Xb()&&(ut=a.defaultAlignment),ut.sb()||(ut=Fo);var vr=Sn.alignmentFocus;if(vr.Xb()&&(vr=Fo),Wn=null,Sn instanceof ei&&Sn.$e!==""&&(Wn=Sn.fb(Sn.$e),Wn===Sn&&(Wn=null)),rr=Fe.x-rr,Fr=Fe.y-Fr,Wn!==null){for(Sn.arrange(0,0,kt.width,kt.height),kt=Wn.actualBounds,kt=Ne.allocAt(kt.x+(vr.x*kt.width-vr.offsetX),kt.y+(vr.y*kt.height-vr.offsetY)),Wn=Wn.panel;Wn!==Sn;)Wn.transform.Ga(kt),Wn=Wn.panel;rr+=ut.x*z+ut.offsetX-kt.x,Fr+=ut.y*nt+ut.offsetY-kt.y,Ne.free(kt)}else rr+=ut.x*z+ut.offsetX-(vr.x*kt.width+vr.offsetX),Fr+=ut.y*nt+ut.offsetY-(vr.y*kt.height+vr.offsetY);Ze?(Ze=!1,E.h(rr,Fr,zt,Xt)):Cs(E,rr,Fr,zt,Xt)}}switch(Ze?E.assign(ze):he?E.Uu(Fe.x,Fe.y,Fe.width,Fe.height):Cs(E,ze.x,ze.y,ze.width,ze.height),ai.free(ze),ai.free(Fe),ut=at.stretch,ut===mo&&(ut=Xu(at,!1)),ut){case bi:return;case Mi:if(!isFinite(y)&&!isFinite(x))return;break;case Tr:if(!isFinite(y))return;break;case $r:if(!isFinite(x))return}for(kt=at.measuredBounds,z=kt.width,nt=kt.height,zt=Math.max(z+ct,0),Xt=Math.max(nt+yt,0),ut=at.margin,Fe=ai.allocAt(-ut.left,-ut.top,zt,Xt),Ri(at,Fe,!0),z=Fe.width,nt=Fe.height,y=0;y<ot;y++)x=b[y],x===at||!x.visible&&x!==tn||(ut=x.margin,zt=ut.right+ut.left,Xt=ut.top+ut.bottom,kt=x.measuredBounds,zt=Math.max(kt.width+zt,0),Xt=Math.max(kt.height+Xt,0),ct=x.alignment,ct.Xb()&&(ct=a.defaultAlignment),ct.sb()||(ct=Fo),x=x.alignmentFocus,x.Xb()&&(x=Fo),Ze?(Ze=!1,E.h(ct.x*z+ct.offsetX-(x.x*kt.width+x.offsetX)-ut.left,ct.y*nt+ct.offsetY-(x.y*kt.height+x.offsetY)-ut.top,zt,Xt)):Cs(E,ct.x*z+ct.offsetX-(x.x*kt.width+x.offsetX)-ut.left,ct.y*nt+ct.offsetY-(x.y*kt.height+x.offsetY)-ut.top,zt,Xt));Ze?E.assign(ze):he?E.Uu(Fe.x,Fe.y,Fe.width,Fe.height):Cs(E,ze.x,ze.y,ze.width,ze.height),ai.free(Fe)},Yi.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 ut=z-x.x,ct=at-x.y;for(E.arrange(ut,ct,nt,ot),nt=ai.allocAt(0,0,nt,ot),Ri(E,nt,!1),ot=0;ot<b;ot++){var yt=y[ot];if(yt!==E){ut=yt.measuredBounds;var kt=ut.width,zt=ut.height;ct=yt.alignment,ct.Xb()&&(ct=a.defaultAlignment),ct.sb()||(ct=Fo);var Xt=yt.alignmentFocus;if(Xt.Xb()&&(Xt=Fo),ut=null,yt instanceof ei&&yt.$e!==""&&(ut=yt.fb(yt.$e),ut===yt&&(ut=null)),ut!==null){var he=ut.actualBounds;for(Xt=Ne.allocAt(he.x+(Xt.x*he.width-Xt.offsetX),he.y+(Xt.y*he.height-Xt.offsetY)),ut=ut.panel;ut!==yt;)ut.transform.Ga(Xt),ut=ut.panel;ut=ct.x*nt.width+ct.offsetX-Xt.x,ct=ct.y*nt.height+ct.offsetY-Xt.y,Ne.free(Xt)}else ut=ct.x*nt.width+ct.offsetX-(Xt.x*kt+Xt.offsetX),ct=ct.y*nt.height+ct.offsetY-(Xt.y*zt+Xt.offsetY);ut+=nt.x-x.x,ct+=nt.y-x.y,yt.visible&&yt.arrange(z+ut,at+ct,kt,zt)}}ai.free(nt)};function Ri(a,y,x){var b=null;if(a instanceof ei&&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 wr(){this.xa="Base"}Tn(wr,bn),wr.prototype.measure=function(a,y,x,b,E,z,nt){var ot=b.length,at=a.Pb(),ut=at.margin,ct=y,yt=x,kt=ut.right+ut.left,zt=ut.top+ut.bottom;at.measure(y,x,z,nt),ut=at.measuredBounds;var Xt=0,he=null;at instanceof Ko&&(he=at,Xt=he.strokeWidth*he.scale);var ze=Math.max(ut.width+kt,0);ut=Math.max(ut.height+zt,0);var Fe=zh(at),Ze=Fe.x*ze+Fe.offsetX;Fe=Fe.y*ut+Fe.offsetY;var tn=ac(at),on=tn.x*ze+tn.offsetX;for(tn=tn.y*ut+tn.offsetY,isFinite(y)&&(ct=Math.max(Math.abs(Ze-on)-Xt,0)),isFinite(x)&&(yt=Math.max(Math.abs(Fe-tn)-Xt,0)),Xt=Zi.alloc(),Xt.h(0,0),a=ja(a),tn=0;tn<ot;tn++)Fe=b[tn],Fe===at||!Fe.visible&&Fe!==a||(ut=Fe.margin,ze=ut.right+ut.left,Ze=ut.top+ut.bottom,Fe.measure(ct,yt,0,0),ut=Fe.measuredBounds,ze=Math.max(ut.width+ze,0),ut=Math.max(ut.height+Ze,0),Xt.h(Math.max(ze,Xt.width),Math.max(ut,Xt.height)));if(ot===1)E.width=ze,E.height=ut,Zi.free(Xt);else{switch(Fe=zh(at),tn=ac(at),ot=b=0,tn.x!==Fe.x&&tn.y!==Fe.y&&(b=Xt.width/Math.abs(tn.x-Fe.x),ot=Xt.height/Math.abs(tn.y-Fe.y)),Zi.free(Xt),Xt=0,he!==null&&(Xt=he.strokeWidth*he.scale,$A(he)===br&&(b=ot=Math.max(b,ot))),b+=Math.abs(Fe.offsetX)+Math.abs(tn.offsetX)+Xt,ot+=Math.abs(Fe.offsetY)+Math.abs(tn.offsetY)+Xt,he=at.stretch,he===mo&&(he=Xu(at,!1)),he){case bi:nt=z=0;break;case Mi:isFinite(y)&&(b=y),isFinite(x)&&(ot=x);break;case Tr:isFinite(y)&&(b=y),nt=0;break;case $r:z=0,isFinite(x)&&(ot=x)}at.Uj(),at.measure(b,ot,z,nt),E.width=at.measuredBounds.width+kt,E.height=at.measuredBounds.height+zt}},wr.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,ut=at.left;at=at.top,b.arrange(ut+ot,at+nt,E.width,E.height);var ct=zh(b),yt=ac(b),kt=ct.y*E.height+ct.offsetY,zt=yt.x*E.width+yt.offsetX;for(yt=yt.y*E.height+yt.offsetY,z.x=ct.x*E.width+ct.offsetX,z.y=kt,Cs(z,zt,yt,0,0),z.x+=ot+ut,z.y+=nt+at,E=0;E<x;E++)ot=y[E],ot!==b&&(ut=ot.measuredBounds,nt=ot.margin,at=Math.max(ut.width+nt.right+nt.left,0),ct=Math.max(ut.height+nt.top+nt.bottom,0),kt=ot.alignment,kt.Xb()&&(kt=a.defaultAlignment),kt.sb()||(kt=Fo),at=z.width*kt.x+kt.offsetX-at*kt.x+nt.left+z.x,nt=z.height*kt.y+kt.offsetY-ct*kt.y+nt.top+z.y,ot.visible&&(Gs(z.x,z.y,z.width,z.height,at,nt,ut.width,ut.height)?ot.arrange(at,nt,ut.width,ut.height):ot.arrange(at,nt,ut.width,ut.height,new ai(z.x,z.y,z.width,z.height))));ai.free(z)};function Br(){this.xa="Base",this.name="Table"}Tn(Br,bn),Br.prototype.measure=function(a,y,x,b,E){for(var z=b.length,nt=ar(),ot=ar(),at=0;at<z;at++){var ut=b[at],ct=ut instanceof ei?ut:null;if(ct!==null&&Sh(ct)&&ut.visible){ot.push(ct);for(var yt=ct.O.s,kt=yt.length,zt=0;zt<kt;zt++){var Xt=yt[zt];ct.type===ei.TableRow?Xt.row=ut.row:ct.type===ei.TableColumn&&(Xt.column=ut.column),nt.push(Xt)}}else nt.push(ut)}z=nt.length,z===0&&(a.Fb(0),a.Eb(0));for(var he=[],ze=0;ze<z;ze++){var Fe=nt[ze];Fe.visible&&(jl(Fe,!0),$c(Fe,!0),he[Fe.row]||(he[Fe.row]=[]),he[Fe.row][Fe.column]||(he[Fe.row][Fe.column]=[]),he[Fe.row][Fe.column].push(Fe))}Lr(nt);var Ze=ar(),tn=ar(),on=ar(),Sn={count:0},Wn={count:0},rr=y,Fr=x,vr=a.rowDefs,Ki=a.colDefs,Li=null;z=vr.length;for(var Io=0;Io<z;Io++)Li=vr[Io],Li!==void 0&&(Li.actual=0);z=Ki.length;for(var vo=0;vo<z;vo++)Li=Ki[vo],Li!==void 0&&(Li.actual=0);for(var Ns=he.length,pa=0,Lu=0;Lu<Ns;Lu++)he[Lu]&&(pa=Math.max(pa,he[Lu].length));var ju=Math.min(a.topIndex,Ns-1),Mh=Math.min(a.leftIndex,pa-1),Mu=0;Ns=he.length;for(var jf=ja(a),Jl=0;Jl<Ns;Jl++)if(he[Jl]){pa=he[Jl].length;var SA=a.Fb(Jl);SA.actual=0;for(var Nh=SA.oc=0;Nh<pa;Nh++)if(he[Jl][Nh]){var Uf=a.Eb(Nh);Ze[Nh]===void 0&&(Uf.actual=0,Uf.oc=0,Ze[Nh]=!0);for(var ed=he[Jl][Nh],kd=ed.length,_c=0;_c<kd;_c++){var Sc=ed[_c];if(Sc.visible||Sc===jf){var fg=1<Sc.rowSpan||1<Sc.columnSpan;fg&&(Jl<ju||Nh<Mh||tn.push(Sc));var CA=Sc.margin,tm=CA.right+CA.left,Hc=CA.top+CA.bottom,Ih=sa(Sc,SA,Uf,!1),Vm=Sc.desiredSize,dp=!isNaN(Vm.height),DA=!isNaN(Vm.width)&&dp;if(fg||Ih===bi||DA||Jl<ju||Nh<Mh||(Sn[Nh]!==void 0||Ih!==Mi&&Ih!==Tr||(Sn[Nh]=-1,Sn.count++),Wn[Jl]!==void 0||Ih!==Mi&&Ih!==$r||(Wn[Jl]=-1,Wn.count++),on.push(Sc)),Sc.measure(1/0,1/0,0,0),!(Jl<ju||Nh<Mh)){var Cc=Sc.measuredBounds,jg=Math.max(Cc.width+tm,0),Qc=Math.max(Cc.height+Hc,0);if(Sc.rowSpan===1&&(Ih===bi||Ih===Tr)){Li=a.Fb(Jl);var gg=Li.Wc();Mu=Math.max(Qc-Li.actual,0),Mu+gg>Fr&&(Mu=Math.max(Fr-gg,0));var av=Li.oa===0;Li.oc=Li.oc+Mu,Li.actual=Li.oa+Mu,Fr=Math.max(Fr-(Mu+(av?gg:0)),0)}if(Sc.columnSpan===1&&(Ih===bi||Ih===$r)){Li=a.Eb(Nh);var Zm=Li.Wc();Mu=Math.max(jg-Li.actual,0),Mu+Zm>rr&&(Mu=Math.max(rr-Zm,0));var Py=Li.oa===0;Li.oc=Li.oc+Mu,Li.actual=Li.oa+Mu,rr=Math.max(rr-(Mu+(Py?Zm:0)),0)}fg&&Sc.Uj()}}}}}Lr(Ze);var of=0,Af=0;z=a.columnCount;for(var Ap=0;Ap<z;Ap++){var pg=Ki[Ap];pg!==void 0&&(of+=isNaN(pg.Hc)?pg.oc:pg.Hc,pg.oc!==0&&(of+=pg.Wc()))}z=a.rowCount;for(var em=0;em<z;em++){var mg=vr[em];mg!==void 0&&(Af+=isNaN(mg.Hc)?mg.oc:mg.Hc,mg.oc!==0&&(Af+=mg.Wc()))}rr=Math.max(y-of,0);var sf=Fr=Math.max(x-Af,0),Rf=rr;z=on.length;for(var Bc=0;Bc<z;Bc++){var jA=on[Bc],lv=a.Fb(jA.row),ff=a.Eb(jA.column),nm=jA.measuredBounds,BA=jA.margin,Ug=BA.right+BA.left,UA=BA.top+BA.bottom;Sn[jA.column]=ff.oc===0&&Sn[jA.column]!==void 0?Math.max(nm.width+Ug,Sn[jA.column]):null,Wn[jA.row]=lv.oc===0&&Wn[jA.row]!==void 0?Math.max(nm.height+UA,Wn[jA.row]):null}var fp=0,im=0,rA;for(rA in Wn)rA!=="count"&&(fp+=Wn[rA]);for(rA in Sn)rA!=="count"&&(im+=Sn[rA]);for(var Yu=Zi.alloc(),Xm=0;Xm<z;Xm++){var Yh=on[Xm];if(Yh.visible||Yh===jf){var ql=a.Fb(Yh.row),Jh=a.Eb(Yh.column),gf=0;isFinite(Jh.width)?gf=Jh.width:(isFinite(rr)&&Sn[Yh.column]!==null?im===0?gf=Jh.actual+rr:gf=Sn[Yh.column]/im*Rf:Sn[Yh.column]!==null?gf=rr:gf=Jh.actual||rr,gf=Math.max(0,gf-Jh.Wc()));var _f=0;switch(isFinite(ql.height)?_f=ql.height:(isFinite(Fr)&&Wn[Yh.row]!==null?fp===0?_f=ql.actual+Fr:_f=Wn[Yh.row]/fp*sf:Wn[Yh.row]!==null?_f=Fr:_f=ql.actual||Fr,_f=Math.max(0,_f-ql.Wc())),Yu.h(Math.max(Jh.minimum,Math.min(gf,Jh.maximum)),Math.max(ql.minimum,Math.min(_f,ql.maximum))),Ih=sa(Yh,ql,Jh,!1),Ih){case Tr:Yu.height=Math.max(Yu.height,ql.actual+Fr);break;case $r:Yu.width=Math.max(Yu.width,Jh.actual+rr)}var Rg=Yh.margin,by=Rg.right+Rg.left,uv=Rg.top+Rg.bottom;Yh.Uj(),Yh.measure(Yu.width,Yu.height,Jh.minimum,ql.minimum);var rm=Yh.measuredBounds,_g=Math.max(rm.width+by,0),gp=Math.max(rm.height+uv,0);isFinite(rr)&&(_g=Math.min(_g,Yu.width)),isFinite(Fr)&&(gp=Math.min(gp,Yu.height));var Pc=0;Pc=ql.actual,ql.actual=Math.max(ql.actual,gp),ql.oc=Math.max(ql.oc,gp),Mu=ql.actual-Pc,Fr=Math.max(Fr-Mu,0),Wn[Yh.row]===null&&(sf=Math.max(sf-Mu,0)),Pc=Jh.actual,Jh.actual=Math.max(Jh.actual,_g),Jh.oc=Math.max(Jh.oc,_g),Mu=Jh.actual-Pc,rr=Math.max(rr-Mu,0),Sn[Yh.column]===null&&(Rf=Math.max(Rf-Mu,0))}}Lr(on);var pf=Zi.alloc(),PA=ar(),md=ar();if(z=tn.length,z!==0){for(var vg=0;vg<Ns;vg++)if(he[vg]){pa=he[vg].length;var om=a.Fb(vg);PA[vg]=om.actual;for(var yg=0;yg<pa;yg++)if(he[vg][yg]){var hv=a.Eb(yg);md[yg]=hv.actual}}}for(var sm=0;sm<z;sm++){var _l=tn[sm];if(_l.visible||_l===jf){var oA=a.Fb(_l.row),Td=a.Eb(_l.column);switch(Yu.h(Math.max(Td.minimum,Math.min(y,Td.maximum)),Math.max(oA.minimum,Math.min(x,oA.maximum))),Ih=sa(_l,oA,Td,!1),Ih){case Mi:md[Td.index]!==0&&(Yu.width=Math.min(Yu.width,md[Td.index])),PA[oA.index]!==0&&(Yu.height=Math.min(Yu.height,PA[oA.index]));break;case Tr:md[Td.index]!==0&&(Yu.width=Math.min(Yu.width,md[Td.index]));break;case $r:PA[oA.index]!==0&&(Yu.height=Math.min(Yu.height,PA[oA.index]))}isFinite(Td.width)&&(Yu.width=Td.width),isFinite(oA.height)&&(Yu.height=oA.height),pf.h(0,0);for(var cv=Td.minimum,zc=oA.minimum,Hf=1;Hf<_l.rowSpan&&!(_l.row+Hf>=a.rowCount);Hf++)Li=a.Fb(_l.row+Hf),Mu=0,Mu=Ih===Mi||Ih===$r?Math.max(Li.minimum,PA[_l.row+Hf]===0?Li.maximum:Math.min(PA[_l.row+Hf],Li.maximum)):Math.max(Li.minimum,isNaN(Li.Hc)?Li.maximum:Math.min(Li.Hc,Li.maximum)),pf.height+=Mu,zc+=Li.minimum;for(var Od=1;Od<_l.columnSpan&&!(_l.column+Od>=a.columnCount);Od++)Li=a.Eb(_l.column+Od),Mu=0,Mu=Ih===Mi||Ih===Tr?Math.max(Li.minimum,md[_l.column+Od]===0?Li.maximum:Math.min(md[_l.column+Od],Li.maximum)):Math.max(Li.minimum,isNaN(Li.Hc)?Li.maximum:Math.min(Li.Hc,Li.maximum)),pf.width+=Mu,cv+=Li.minimum;Yu.width+=pf.width,Yu.height+=pf.height;var am=_l.margin,wg=am.right+am.left,$m=am.top+am.bottom;_l.measure(Yu.width,Yu.height,cv,zc);for(var lm=_l.measuredBounds,RA=Math.max(lm.width+wg,0),Hg=Math.max(lm.height+$m,0),xg=0,um=0;um<_l.rowSpan&&!(_l.row+um>=a.rowCount);um++)Li=a.Fb(_l.row+um),xg+=Li.total||0;if(xg<Hg){var Qf=Hg-xg,af=Hg-xg;if(_l.spanAllocation!==null)for(var zf=_l.spanAllocation,mf=0;mf<_l.rowSpan&&!(0>=Qf)&&!(_l.row+mf>=a.rowCount);mf++){Li=a.Fb(_l.row+mf);var Kf=Li.oa||0,Qg=zf(_l,Li,af);Li.actual=Math.min(Li.maximum,Kf+Qg),Li.oa!==Kf&&(Qf-=Li.oa-Kf)}for(;0<Qf;){var bA=Li.oa||0;if(isNaN(Li.height)&&Li.maximum>bA&&(Li.actual=Math.min(Li.maximum,bA+Qf),Li.oa!==bA&&(Qf-=Li.oa-bA)),Li.index===0)break;Li=a.Fb(Li.index-1)}}for(var pp=0,Gf=0;Gf<_l.columnSpan&&!(_l.column+Gf>=a.columnCount);Gf++)Li=a.Eb(_l.column+Gf),pp+=Li.total||0;if(pp<RA){var mp=RA-pp,Ey=RA-pp;if(_l.spanAllocation!==null)for(var vf=_l.spanAllocation,zg=0;zg<_l.columnSpan&&!(0>=mp)&&!(_l.column+zg>=a.columnCount);zg++){Li=a.Eb(_l.column+zg);var Ym=Li.oa||0,Fy=vf(_l,Li,Ey);Li.actual=Math.min(Li.maximum,Ym+Fy),Li.oa!==Ym&&(mp-=Li.oa-Ym)}for(;0<mp;){var dv=Li.oa||0;if(isNaN(Li.width)&&Li.maximum>dv&&(Li.actual=Math.min(Li.maximum,dv+mp),Li.oa!==dv&&(mp-=Li.oa-dv)),Li.index===0)break;Li=a.Eb(Li.index-1)}}}}Lr(tn),Zi.free(pf),Zi.free(Yu),PA!==void 0&&Lr(PA),md!==void 0&&Lr(md);var vp=0,yp=0,Av=a.desiredSize,xw=a.maxSize;Ih=Xu(a,!0);var Jm=Af=of=0,qm=0;z=a.columnCount;for(var fv=0;fv<z;fv++)Ki[fv]!==void 0&&(Li=a.Eb(fv),isFinite(Li.width)?(Jm+=Li.width,Jm+=Li.Wc()):Jf(Li)===Sf?(Jm+=Li.oa,Jm+=Li.Wc()):Li.oa!==0&&(of+=Li.oa,of+=Li.Wc()));isFinite(Av.width)?vp=Math.min(Av.width,xw.width):vp=Ih!==bi&&isFinite(y)?y:of,vp=Math.max(vp,a.minSize.width),vp=Math.max(vp-Jm,0);for(var rx=of===0?1:Math.max(vp/of,1),gv=0;gv<z;gv++)Ki[gv]!==void 0&&(Li=a.Eb(gv),isFinite(Li.width)||Jf(Li)===Sf||(Li.actual=Li.oa*rx),Li.position=E.width,Li.oa!==0&&(E.width+=Li.oa,E.width+=Li.Wc()));z=a.rowCount;for(var pv=0;pv<z;pv++)vr[pv]!==void 0&&(Li=a.Fb(pv),isFinite(Li.height)?(qm+=Li.height,qm+=Li.Wc()):Jf(Li)===Sf?(qm+=Li.oa,qm+=Li.Wc()):Li.oa!==0&&(Af+=Li.oa,Af+=Li.Wc()));isFinite(Av.height)?yp=Math.min(Av.height,xw.height):yp=Ih!==bi&&isFinite(x)?x:Af,yp=Math.max(yp,a.minSize.height),yp=Math.max(yp-qm,0);for(var ox=Af===0?1:Math.max(yp/Af,1),mv=0;mv<z;mv++)vr[mv]!==void 0&&(Li=a.Fb(mv),isFinite(Li.height)||Jf(Li)===Sf||(Li.actual=Li.oa*ox),Li.position=E.height,Li.oa!==0&&(E.height+=Li.oa,E.height+=Li.Wc()));z=ot.length;for(var Ly=0;Ly<z;Ly++){var t0=ot[Ly],My=0,Ny=0;t0.type===ei.TableRow?(My=E.width,Li=a.Fb(t0.row),Ny=Li.actual):(Li=a.Eb(t0.column),My=Li.actual,Ny=E.height),t0.measuredBounds.h(0,0,My,Ny),jl(t0,!1)}Lr(ot),a.inRowsCols=he},Br.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,ut=nt.length,ct=0,yt=0;yt<ut;yt++)nt[yt]&&(ct=Math.max(ct,nt[yt].length));at=a.rowDefs,ot=a.colDefs;var kt=yt=0,zt=Math.min(a.topIndex,ut-1);if(0<at.length){for(;zt!==ut&&(at[zt]===void 0||at[zt].oa===0);)zt++;zt=Math.max(Math.min(zt,ut-1),0),yt=-at[zt].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),kt=-ot[Xt].position}for(var he=0,ze=0;he!==ut&&at[he]===void 0;)he++;for(;ze!==ut&&ot[ze]===void 0;)ze++;ct=a.part,a.Fb(he),a.Eb(ze);for(var Fe=0;Fe<y.length;Fe++){var Ze=y[Fe];if(Ze instanceof ei&&Ze.visible&&Sh(Ze)){if(Ze.type===ei.TableRow){ot=a.Fb(Ze.row);var tn=a.Eb(ze)}else ot=a.Fb(he),tn=a.Eb(Ze.column);at=ot.position+yt+E,ot.oa!==0&&(at+=ot.Io(Math.max(he,zt))),ot=tn.position+kt+z,tn.oa!==0&&(ot+=tn.Io(Math.max(ze,Xt))),tn=Ze.measuredBounds,Ze.Uk(),Ze.actualBounds.ka();var on=Ze.actualBounds,Sn=ai.allocAt(on.x,on.y,on.width,on.height);on.x=Ze.type===ei.TableRow?z:ot,on.y=Ze.type===ei.TableColumn?E:at,on.width=tn.width,on.height=tn.height,Ze.actualBounds.freeze(),$c(Ze,!1),kh(Sn,on)||ct===null||(ct.oh(),Ze.Pn(ct)),ai.free(Sn)}}for(Fe=Zi.alloc(),Ze=0;Ze<ut;Ze++)if(nt[Ze]){for(ct=nt[Ze].length,tn=a.Fb(Ze),at=tn.position+yt+E,tn.oa!==0&&(at+=tn.Io(Math.max(he,zt))),on=0;on<ct;on++)if(nt[Ze][on]){Sn=a.Eb(on),ot=Sn.position+kt+z,Sn.oa!==0&&(ot+=Sn.Io(Math.max(ze,Xt)));for(var Wn=nt[Ze][on],rr=Wn.length,Fr=0;Fr<rr;Fr++){var vr=Wn[Fr],Ki=vr.measuredBounds;Fe.h(0,0);for(var Li=1;Li<vr.rowSpan&&!(Ze+Li>=a.rowCount);Li++){var Io=a.Fb(Ze+Li);Io.oa!==0&&(Fe.height+=Io.total)}for(Li=1;Li<vr.columnSpan&&!(on+Li>=a.columnCount);Li++)Io=a.Eb(on+Li),Io.oa!==0&&(Fe.width+=Io.total);var vo=Sn.oa+Fe.width,Ns=tn.oa+Fe.height;Li=ot,Io=at;var pa=vo,Lu=Ns,ju=ot,Mh=at,Mu=vo,jf=Ns;ot+vo>x.width&&(Mu=Math.max(x.width-ot,0)),at+Ns>x.height&&(jf=Math.max(x.height-at,0));var Jl=vr.alignment;if(Jl.Xb()){Jl=a.defaultAlignment,Jl.sb()||(Jl=Fo);var SA=Jl.x,Nh=Jl.y,Uf=Jl.offsetX;Jl=Jl.offsetY;var ed=Sn.alignment,kd=tn.alignment;ed.sb()&&(SA=ed.x,Uf=ed.offsetX),kd.sb()&&(Nh=kd.y,Jl=kd.offsetY)}else SA=Jl.x,Nh=Jl.y,Uf=Jl.offsetX,Jl=Jl.offsetY;(isNaN(SA)||isNaN(Nh))&&(Nh=SA=.5,Jl=Uf=0),ed=Ki.width,kd=Ki.height;var _c=vr.margin,Sc=_c.left+_c.right,fg=_c.top+_c.bottom,CA=sa(vr,tn,Sn,!1);!isNaN(vr.desiredSize.width)||CA!==Mi&&CA!==Tr||(ed=Math.max(vo-Sc,0)),!isNaN(vr.desiredSize.height)||CA!==Mi&&CA!==$r||(kd=Math.max(Ns-fg,0)),vo=vr.maxSize,Ns=vr.minSize,ed=Math.min(vo.width,ed),kd=Math.min(vo.height,kd),ed=Math.max(Ns.width,ed),kd=Math.max(Ns.height,kd),vo=kd+fg,Li+=pa*SA-(ed+Sc)*SA+Uf+_c.left,Io+=Lu*Nh-vo*Nh+Jl+_c.top,vr.visible&&(Gs(ju,Mh,Mu,jf,Li,Io,Ki.width,Ki.height)?vr.arrange(Li,Io,ed,kd):vr.arrange(Li,Io,ed,kd,new ai(ju,Mh,Mu,jf)))}}}for(Zi.free(Fe),a=0;a<b;a++)x=y[a],z=x instanceof ei?x:null,z!==null&&Sh(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function Ui(){this.xa="Base"}Tn(Ui,bn),Ui.prototype.measure=function(){},Ui.prototype.arrange=function(){};function zi(){this.xa="Base"}Tn(zi,bn),zi.prototype.measure=function(){},zi.prototype.arrange=function(){};function Ir(){this.xa="Base"}Tn(Ir,bn),Ir.prototype.measure=function(a,y,x,b,E,z,nt){1<b.length&&qe("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,ut=at.right+at.left;if(at=at.top+at.bottom,isFinite(y)||isFinite(x)){var ct=b.scale,yt=ot.width;ot=ot.height;var kt=Math.max(y-ut,0),zt=Math.max(x-at,0),Xt=1;a.viewboxStretch===br?yt!==0&&ot!==0&&(Xt=Math.min(kt/yt,zt/ot)):yt!==0&&ot!==0&&(Xt=Math.max(kt/yt,zt/ot)),Xt===0&&(Xt=1e-4),b.Ca*=Xt,ct!==b.scale&&(jl(b,!0),b.measure(1/0,1/0,z,nt))}ot=b.measuredBounds,E.width=isFinite(y)?y:Math.max(ot.width+ut,0),E.height=isFinite(x)?x:Math.max(ot.height+at,0)},Ir.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=Fo),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 Jr(){this.xa="Base"}Tn(Jr,bn),Jr.prototype.measure=function(){},Jr.prototype.arrange=function(){},Jr.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,ut=Math.ceil(ot/E),ct=Math.ceil(at/b),yt=a.gridOrigin,kt=yt.x;yt=yt.y,y.save(),y.beginPath(),y.rect(0,0,ot,at),y.clip(),y.Se();for(var zt=[],Xt=a.O.s,he=Xt.length,ze=0;ze<he;ze++){var Fe=Xt[ze],Ze=[];if(zt.push(Ze),Fe.visible){var tn=Fe.interval;if(!(0>tn)){Fe=Ul(Fe.figure);for(var on=0;on<he;on++)if(on!==ze){var Sn=Xt[on];Sn.visible&&Ul(Sn.figure)===Fe&&(Sn=Sn.interval,Sn>tn&&Ze.push(Sn))}}}}for(Xt=a.O.s,he=Xt.length,ze=0;ze<he;ze++){var Wn=Xt[ze];if(Wn.visible&&(Ze=Wn.interval||1,Fe=Math.abs(Ze),!(2>E*Fe*x))){if(tn=Wn.segmentIndex,(!isFinite(tn)||isNaN(tn))&&(tn=0),0>tn&&(tn=Fe-Math.min(-tn,Fe)),tn=Math.round(tn%Fe),Fe=Wn.opacity,on=1,Fe!==1){if(Fe===0)continue;on=y.globalAlpha,y.globalAlpha=on*Fe}Sn=zt[ze];var rr=!1,Fr=Wn.strokeDashArray;if(Fr!==null&&(rr=!0,y.js(Fr,Wn.strokeDashOffset)),Wn.figure==="LineV"&&Wn.stroke!==null&&0<Wn.strokeWidth){for(y.lineWidth=Wn.strokeWidth,Ca(a,y,Wn.stroke,!1,!1,z,nt),y.beginPath(),Fr=Wn=Math.floor((kt-E)/E);Fr<=Wn+ut;Fr++){var vr=Fr*E+kt;0<=vr&&vr<=ot&&eo(Fr,Ze,tn,Sn)&&(y.moveTo(vr,0),y.lineTo(vr,at))}y.stroke(),y.Se()}else if(Wn.figure==="LineH"&&Wn.stroke!==null&&0<Wn.strokeWidth){for(y.lineWidth=Wn.strokeWidth,Ca(a,y,Wn.stroke,!1,!1,z,nt),y.beginPath(),Fr=Wn=Math.floor((yt-b)/b);Fr<=Wn+ct;Fr++)vr=Fr*b+yt,0<=vr&&vr<=at&&eo(Fr,Ze,tn,Sn)&&(y.moveTo(0,vr),y.lineTo(ot,vr));y.stroke(),y.Se()}else if(Wn.figure==="BarV"&&Wn.fill!==null)for(Ca(a,y,Wn.fill,!0,!1,z,nt),Wn=Wn.width,isNaN(Wn)&&(Wn=E),vr=Fr=Math.floor((kt-E)/E);vr<=Fr+ut;vr++){var Ki=vr*E+kt;0<=Ki+Wn&&Ki<=ot&&eo(vr,Ze,tn,Sn)&&y.fillRect(Ki,0,Wn,at)}else if(Wn.figure==="BarH"&&Wn.fill!==null)for(Ca(a,y,Wn.fill,!0,!1,z,nt),Wn=Wn.height,isNaN(Wn)&&(Wn=b),vr=Fr=Math.floor((yt-b)/b);vr<=Fr+ct;vr++)Ki=vr*b+yt,0<=Ki+Wn&&Ki<=at&&eo(vr,Ze,tn,Sn)&&y.fillRect(0,Ki,ot,Wn);rr&&y.fs(),Fe!==1&&(y.globalAlpha=on)}}y.restore(),y.Vc(!1)};function eo(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"}Tn(es,bn),es.prototype.measure=function(a,y,x,b,E){var z=b.length;if(a instanceof bs||a instanceof Gi){var nt=null,ot=null;if(a instanceof Gi&&(nt=a),a instanceof bs&&(ot=a,nt=ot.adornedPart,a.j===null&&(a.j=[])),nt instanceof Gi){var at=nt;if(z===0)Ta(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var ut=a instanceof bs?null:nt.path;y=nt.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var ct=at.points,yt=nt.pointsCount;ot!==null?ot.Ul(!1):nt!==null&&nt.Ul(!1),ot=y.width;var kt=y.height,zt=a.j;if(zt.length=0,ut!==null){Wo(a,ot,kt,ut);var Xt=ut.measuredBounds;x.ed(Xt),zt.push(Xt)}Xt=zo.alloc();for(var he=Ne.alloc(),ze=Ne.alloc(),Fe=0;Fe<z;Fe++){var Ze=b[Fe];if(Ze!==ut)if(Ze.isPanelMain&&Ze instanceof Ko){Wo(a,ot,kt,Ze);var tn=Ze.measuredBounds;x.ed(tn),zt.push(tn)}else if(2>yt)Ze.measure(1/0,1/0,0,0),tn=Ze.measuredBounds,x.ed(tn),zt.push(tn);else{var on=Ze.segmentIndex,Sn=Ze.segmentFraction,Wn=Ze.alignmentFocus;Wn.Mc()&&(Wn=Fo);var rr=Ze.segmentOrientation,Fr=Ze.segmentOffset;if(isNaN(on)){var vr=at.ua;tn=ar(),vr.Qu(Sn,tn);var Ki=Ne.allocAt(tn[0],tn[1]);if(Ki.add(at.i(0)),vr.type===Vi.j?Ki.offset(-vr.startX,-vr.startY):(vr=vr.figures.first(),vr!==null&&Ki.offset(-vr.startX,-vr.startY)),vr=tn[2],rr!==Wh){var Li=at.computeAngle(Ze,rr,vr);Ze.Kb=Li}Li=Ki.x-y.x;var Io=Ki.y-y.y;Ne.free(Ki),Lr(tn)}else if(on<-yt||on>=yt)tn=Ne.alloc(),at.vg(),at.computeMidPoint(tn),vr=at.midAngle,rr!==Wh&&(Li=at.computeAngle(Ze,rr,vr),Ze.Kb=Li),Li=tn.x-y.x,Io=tn.y-y.y,Ne.free(tn);else{if(Li=0,0<=on?(Io=ct.M(on),tn=on<yt-1?ct.M(on+1):Io):(Li=yt+on,Io=ct.M(Li),tn=0<Li?ct.M(Li-1):Io),Io.Xa(tn)){0<=on?(vr=0<on?ct.M(on-1):Io,Li=on<yt-2?ct.M(on+2):tn):(vr=Li<yt-1?ct.M(Li+1):Io,Li=1<Li?ct.M(Li-2):tn),Ki=vr.Bf(Io);var vo=tn.Bf(Li);vr=Ki>vo+10?0<=on?vr.ab(Io):Io.ab(vr):vo>Ki+10?0<=on?tn.ab(Li):Li.ab(tn):0<=on?vr.ab(Li):Li.ab(vr)}else vr=0<=on?Io.ab(tn):tn.ab(Io);rr!==Wh&&(Li=at.computeAngle(Ze,rr,vr),Ze.Kb=Li),Li=Io.x+(tn.x-Io.x)*Sn-y.x,Io=Io.y+(tn.y-Io.y)*Sn-y.y}Ze.measure(1/0,1/0,0,0),tn=Ze.measuredBounds,Ki=Ze.naturalBounds;var Ns=0;Ze instanceof Ko&&(Ns=Ze.strokeWidth),vo=Ki.width+Ns;var pa=Ki.height+Ns;Xt.reset(),Xt.translate(-tn.x,-tn.y),Xt.scale(Ze.scale,Ze.scale),Xt.rotate(rr===Wh?Ze.angle:vr,vo/2,pa/2),rr!==wm&&rr!==Sm||Xt.rotate(90,vo/2,pa/2),rr!==xm&&rr!==Cm||Xt.rotate(-90,vo/2,pa/2),rr===y0&&(45<vr&&135>vr||225<vr&&315>vr)&&Xt.rotate(-vr,vo/2,pa/2),Ki=new ai(0,0,vo,pa),he.xi(Ki,Wn),Xt.Ga(he),Wn=-he.x+Ns/2*Ze.scale,Ze=-he.y+Ns/2*Ze.scale,ze.assign(Fr),Ns=isNaN(Fr.x);var Lu=isNaN(Fr.y);if(Ns||Lu){vo=vo/2+3,pa=pa/2+3;var ju=45<=vr&&135>=vr,Mh=225<=vr&&315>=vr;rr===Wh&&(ju||Mh)?(ze.x=Lu?vo:Fr.y,ze.y=Ns?pa:Fr.x,ju?0<=on||isNaN(on)&&.5>Sn||!Ns||(ze.y=-pa):Mh&&((0<=on||isNaN(on)&&.5>Sn)&&Ns&&(ze.y=-pa),Lu&&(ze.x=-vo))):(Ns&&(ze.x=0<=on||isNaN(on)&&.5>Sn?vo:-vo),Lu&&(ze.y=-pa),ze.rotate(vr))}else ze.rotate(vr);Li+=ze.x,Io+=ze.y,Ki.set(tn),Ki.h(Li+Wn,Io+Ze,tn.width,tn.height),zt.push(Ki),x.ed(Ki)}}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),zo.free(Xt),Ne.free(he),Ne.free(ze)}}}},es.prototype.arrange=function(a,y){var x=y.length;if(a instanceof bs||a instanceof Gi){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 ut=y[at];if(ut!==z&&ot<nt.length){var ct=nt[ot];ot++,ut.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 Gi)for(z=a.labelNodes;z.next();){var yt=a;nt=z.value,ot=nt.segmentIndex,at=nt.segmentFraction;var kt=nt.alignmentFocus;if(ut=nt.segmentOrientation,ct=nt.segmentOffset,isNaN(ot)){var zt=yt.ua,Xt=ar();zt.Qu(at,Xt);var he=Ne.allocAt(Xt[0],Xt[1]);he.add(yt.i(0)),zt.type===Vi.j||(zt=zt.figures.first()),he.offset(-zt.startX,-zt.startY),zt=Xt[2],ut!==Wh&&(yt=yt.computeAngle(nt,ut,zt),nt.angle=yt),yt=he.x;var ze=he.y;Ne.free(he),Lr(Xt)}else if(ot<-x||ot>=x)Xt=Ne.alloc(),zt=yt,ze=Xt,zt.vg(),zt.computeMidPoint(ze),zt=yt.midAngle,ut!==Wh&&(yt=yt.computeAngle(nt,ut,zt),nt.angle=yt),yt=Xt.x,ze=Xt.y,Ne.free(Xt);else{if(he=0,0<=ot?(Xt=y.s[ot],ze=ot<x-1?y.s[ot+1]:Xt):(he=x+ot,Xt=y.s[he],ze=0<he?y.s[he-1]:Xt),Xt.Xa(ze)){0<=ot?(zt=0<ot?y.s[ot-1]:Xt,he=ot<x-2?y.s[ot+2]:ze):(zt=he<x-1?y.s[he+1]:Xt,he=1<he?y.s[he-2]:ze);var Fe=zt.Bf(Xt),Ze=ze.Bf(he);zt=Fe>Ze+10?0<=ot?zt.ab(Xt):Xt.ab(zt):Ze>Fe+10?0<=ot?ze.ab(he):he.ab(ze):0<=ot?zt.ab(he):he.ab(zt)}else zt=0<=ot?Xt.ab(ze):ze.ab(Xt);ut!==Wh&&(yt=yt.computeAngle(nt,ut,zt),nt.angle=yt),yt=Xt.x+(ze.x-Xt.x)*at,ze=Xt.y+(ze.y-Xt.y)*at}if(kt.ys())nt.location=new Ne(yt,ze);else{kt.Mc()&&(kt=Fo),Xt=zo.alloc(),Xt.reset(),Xt.scale(nt.scale,nt.scale),Xt.rotate(nt.angle,0,0);var tn=nt.naturalBounds;he=ai.allocAt(0,0,tn.width,tn.height),Fe=Ne.alloc(),Fe.xi(he,kt),Xt.Ga(Fe),kt=-Fe.x,Ze=-Fe.y;var on=tn.width,Sn=tn.height;tn=Ne.alloc(),tn.assign(ct);var Wn=isNaN(ct.x),rr=isNaN(ct.y);if(Wn||rr){on=on/2+3,Sn=Sn/2+3;var Fr=45<=zt&&135>=zt,vr=225<=zt&&315>=zt;ut===Wh&&(Fr||vr)?(tn.x=rr?on:ct.y,tn.y=Wn?Sn:ct.x,Fr?0<=ot||isNaN(ot)&&.5>at||!Wn||(tn.y=-Sn):vr&&((0<=ot||isNaN(ot)&&.5>at)&&Wn&&(tn.y=-Sn),rr&&(tn.x=-on))):(Wn&&(tn.x=0<=ot||isNaN(ot)&&.5>at?on:-on),rr&&(tn.y=-Sn),tn.rotate(zt))}else tn.rotate(zt);yt+=tn.x,ze+=tn.y,Xt.pp(he),kt+=he.x,Ze+=he.y,ot=Ne.allocAt(yt+kt,ze+Ze),nt.move(ot),Ne.free(ot),Ne.free(tn),Ne.free(Fe),ai.free(he),zo.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),Ne.free(b)}};function Wo(a,y,x,b){if(wh(b)!==!1){var E=b.strokeWidth;E===0&&a instanceof bs&&a.type===ei.Link&&a.adornedObject instanceof Ko&&(E=a.adornedObject.strokeWidth),E*=b.Ca,a instanceof Gi&&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),jl(b,!1)}}function Ks(){this.xa="Base"}Tn(Ks,bn),Ks.prototype.measure=function(a,y,x,b,E,z,nt){var ot=a.Pb();a.graduatedBounds=[];var at=ot.margin,ut=at.right+at.left,ct=at.top+at.bottom;ot.measure(y,x,z,nt);var yt=ot.measuredBounds,kt=new ai(-at.left,-at.top,Math.max(yt.width+ut,0),Math.max(yt.height+ct,0));a.graduatedBounds.push(kt),E.assign(kt);for(var zt=ot.geometry,Xt=ot.strokeWidth,he=zt.flattenedSegments,ze=zt.flattenedLengths,Fe=zt.flattenedTotalLength,Ze=he.length,tn=0,on=0,Sn=ar(),Wn=0;Wn<Ze;Wn++){var rr=he[Wn],Fr=[];on=tn=0;for(var vr=rr.length,Ki=0;Ki<vr;Ki+=2){var Li=rr[Ki],Io=rr[Ki+1];if(Ki!==0){var vo=180*Math.atan2(Io-on,Li-tn)/Math.PI;0>vo&&(vo+=360),Fr.push(vo)}tn=Li,on=Io}Sn.push(Fr)}if(a.graduatedIntervals===null){for(var Ns=[],pa=a.O.s,Lu=pa.length,ju=0;ju<Lu;ju++){var Mh=pa[ju],Mu=[];if(Ns.push(Mu),Mh.visible){var jf=Mh.interval;if(!(0>jf)){for(var Jl=0;Jl<Lu;Jl++)if(Jl!==ju){var SA=pa[Jl];if(SA.visible&&Mh.constructor===SA.constructor){var Nh=SA.interval;Nh>jf&&Mu.push(Nh)}}}}}a.graduatedIntervals=Ns}var Uf=a.graduatedIntervals,ed=a.O.s,kd=ed.length,_c=0,Sc=0,fg=Fe;a.graduatedMarks=[];for(var CA,tm=0;tm<kd;tm++){var Hc=ed[tm];if(CA=[],Hc.visible&&Hc!==ot){var Ih=Math.abs(Hc.interval),Vm=a.graduatedTickUnit;if(!(2>Vm*Ih*Fe/a.graduatedRange&&Hc.graduatedSkip===null)){var dp=ze[0][0],DA=0,Cc=0;Sc=Fe*Hc.graduatedStart-1e-4,fg=Fe*Hc.graduatedEnd+1e-4;var jg=Vm*Ih,Qc=a.graduatedTickBase;if(Qc<a.graduatedMin){var gg=(a.graduatedMin-Qc)/jg;gg=gg%1===0?gg:Math.floor(gg+1),Qc+=gg*jg}else Qc>a.graduatedMin+jg&&(Qc-=Math.floor((Qc-a.graduatedMin)/jg)*jg);for(var av=Uf[tm],Zm=Qc,Py=1e-6*a.graduatedMax,of=1;Qc<=a.graduatedMax+Py;of++){t:{for(var Af=av.length,Ap=0;Ap<Af;Ap++){var pg=(Qc-a.graduatedTickBase)%(av[Ap]*a.graduatedTickUnit),em=1e-6*a.graduatedTickUnit;if(pg<em&&pg>-em){var mg=!1;break t}}mg=!0}if(mg&&(Qc>a.graduatedMax&&(Qc=a.graduatedMax),Hc.graduatedSkip===null||Hc instanceof ua&&!Hc.graduatedSkip(Qc,Hc)||Hc instanceof Ko&&!Hc.graduatedSkip(Qc,Hc))&&(_c=(Qc-a.graduatedMin)*Fe/a.graduatedRange,_c>Fe&&(_c=Fe),Sc<=_c&&_c<=fg)){for(var sf=Sn[DA][Cc],Rf=ze[DA][Cc];DA<ze.length;){for(;_c>dp&&Cc<ze[DA].length-1;)Cc++,sf=Sn[DA][Cc],Rf=ze[DA][Cc],dp+=Rf;if(_c<=dp)break;DA++,Cc=0,sf=Sn[DA][Cc],Rf=ze[DA][Cc],dp+=Rf}var Bc=he[DA],jA=Bc[2*Cc],lv=Bc[2*Cc+1],ff=(_c-(dp-Rf))/Rf,nm=new Ne(jA+(Bc[2*Cc+2]-jA)*ff+Xt/2-zt.bounds.x,lv+(Bc[2*Cc+3]-lv)*ff+Xt/2-zt.bounds.y);nm.scale(ot.scale,ot.scale);t:{var BA=sf,Ug=Sn[DA];if(!(.5005>ff&&.4995<ff)){var UA=BA;if(.5>ff?0<Cc?UA=Ug[Cc-1]:En.$(Bc[0],Bc[Bc.length-2])&&En.$(Bc[1],Bc[Bc.length-1])&&(UA=Ug[Ug.length-1]):.5<ff&&(Cc+1<Ug.length?UA=Ug[Cc+1]:En.$(Bc[0],Bc[Bc.length-2])&&En.$(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 im=1-Math.abs(.5-ff);sf=(BA*im+UA*(1-im))%360;break t}}}sf=BA}if(Hc instanceof ua){var rA="";Hc.graduatedFunction!==null?(rA=Hc.graduatedFunction(Qc,Hc),rA=rA!=null?rA.toString():""):rA=(+Qc.toFixed(2)).toString(),rA!==""&&CA.push({$l:nm,angle:sf,text:rA})}else CA.push({$l:nm,angle:sf})}Qc=Zm+of*jg}}}a.graduatedMarks.push(CA)}Lr(Sn);var Yu=a.graduatedMarks;if(Yu!==null)for(var Xm=b.length,Yh=0;Yh<Xm;Yh++){var ql=b[Yh],Jh=Yu[Yh];if(ql.visible&&ql!==ot&&Jh.length!==0){if(ql instanceof Ko){var gf=a,_f=E,Rg=ql.alignmentFocus;Rg.Mc()&&(Rg=Cl);var by=ql.angle;ql.Kb=0,ql.measure(1/0,1/0,0,0),ql.Kb=by;var uv=ql.measuredBounds,rm=uv.width,_g=uv.height,gp=ai.allocAt(0,0,rm,_g),Pc=Ne.alloc();Pc.xi(gp,Rg),ai.free(gp);for(var pf=-Pc.x,PA=-Pc.y,md=new ai,vg=Jh.length,om=0;om<vg;om++)for(var yg=Jh[om],hv=yg.$l.x,sm=yg.$l.y,_l=yg.angle,oA=0;4>oA;oA++){switch(oA){case 0:Pc.h(pf,PA);break;case 1:Pc.h(pf+rm,PA);break;case 2:Pc.h(pf,PA+_g);break;case 3:Pc.h(pf+rm,PA+_g)}Pc.rotate(_l+ql.angle),Pc.offset(hv,sm),om===0&&oA===0?md.h(Pc.x,Pc.y,0,0):md.Ye(Pc),Pc.offset(-hv,-sm),Pc.rotate(-_l-ql.angle)}Ne.free(Pc),gf.graduatedBounds!==null&&gf.graduatedBounds.push(md),Cs(_f,md.x,md.y,md.width,md.height)}else if(ql instanceof ua){var Td=a,cv=E;Td.temporaryTextBlock===null&&(Td.temporaryTextBlock=new ua);var zc=Td.temporaryTextBlock;cm(zc,ql);var Hf=ql.alignmentFocus;Hf.Mc()&&(Hf=Cl);for(var Od=ql.segmentOrientation,am=ql.segmentOffset,wg=new ai,$m=0,lm=0,RA=0,Hg=0,xg=0,um=Jh.length,Qf=0;Qf<um;Qf++){var af=Jh[Qf];$m=af.$l.x,lm=af.$l.y,RA=af.angle,xg=Hg=ql.angle,Od!==Wh&&(xg=Od===ym||Od===v0?RA+ql.angle:RA,Hg=Gi.computeAngle(Od,xg)),zc.Kb=Hg,zc.text=af.text||"",zc.measure(1/0,1/0,0,0);var zf=zc.measuredBounds,mf=zc.naturalBounds,Kf=mf.width,Qg=mf.height,bA=zo.alloc();bA.reset(),bA.translate(-zf.x,-zf.y),bA.scale(zc.scale,zc.scale),bA.rotate(xg,Kf/2,Qg/2),Od!==wm&&Od!==Sm||bA.rotate(90,Kf/2,Qg/2),Od!==xm&&Od!==Cm||bA.rotate(-90,Kf/2,Qg/2),Od===y0&&(45<RA&&135>RA||225<RA&&315>RA)&&bA.rotate(-RA,Kf/2,Qg/2);var pp=ai.allocAt(0,0,Kf,Qg),Gf=Ne.alloc();Gf.xi(pp,Hf),bA.Ga(Gf);var mp=-Gf.x,Ey=-Gf.y,vf=Ne.alloc();vf.assign(am),isNaN(vf.x)&&(vf.x=Kf/2+3),isNaN(vf.y)&&(vf.y=-(Qg/2+3)),vf.rotate(RA),$m+=vf.x+mp,lm+=vf.y+Ey;var zg=new ai($m,lm,zf.width,zf.height),Ym=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=zc.lineCount,af.lines=[zc.Cb,zc.Ih,zc.df,zc.Le,zc.Qc,zc.Qb,zc.ze],af.actualBounds=zg,af.measuredBounds=Ym,af.naturalBounds=Fy,Qf===0?wg.assign(zg):wg.ed(zg),Ne.free(vf),Ne.free(Gf),ai.free(pp),zo.free(bA)}Td.graduatedBounds!==null&&Td.graduatedBounds.push(wg),Cs(cv,wg.x,wg.y,wg.width,wg.height)}jl(ql,!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,ut=0;ut<at;ut++){var ct=y[ut];ot=E[ut],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 xh,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,ut=a.graduatedMarks,ct=at.length,yt=0;yt<ct;yt++){var kt=at[yt],zt=ut[yt],Xt=zt.length;if(kt.visible&&kt!==z&&zt.length!==0){if(kt instanceof Ko){if(!(2>a.graduatedTickUnit*kt.interval*z.geometry.flattenedTotalLength/a.graduatedRange*nt&&kt.graduatedSkip===null)){var he=kt.measuredBounds,ze=kt.strokeWidth*kt.scale,Fe=kt.alignmentFocus;Fe.Mc()&&(Fe=Cl);for(var Ze=0;Ze<Xt;Ze++){var tn=zt[Ze].$l,on=zt[Ze].angle,Sn=Fe,Wn=kt.Ab;Wn.reset(),Wn.translate(tn.x+ot.x,tn.y+ot.y),Wn.rotate(on+kt.angle,0,0),Wn.translate(-he.width*Sn.x+Sn.offsetX+ze/2,-he.height*Sn.y+Sn.offsetY+ze/2),Wn.scale(kt.scale,kt.scale),Eh(kt,!1),kt.wh.set(kt.Ab),kt.Kk=kt.scale,nh(kt,!1),kt.gc(y,x),E&&(a.svg.appendChild(kt.svg),kt.svg=null),kt.Ab.reset()}}}else if(kt instanceof ua)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new ua),he=a.temporaryTextBlock,cm(he,kt),ze=0;ze<Xt;ze++)Fe=zt[ze],Fe.actualBounds&&Fe.measuredBounds&&Fe.naturalBounds&&(he.ec=Fe.text||"",he.Kb=Fe.Sz||0,he.Gc=Fe.lineCount||0,Ze=Fe.lines,Ze!==void 0&&(he.Cb=Ze[0],he.Ih=Ze[1],he.df=Ze[2],he.Le=Ze[3],he.Qc=Ze[4],he.Qb=Ze[5],he.ze=Ze[6]),Fe.naturalBounds&&(he.dc=Fe.naturalBounds),Fe.actualBounds&&(Ze=Fe.actualBounds,he.arrange(Ze.x,Ze.y,Ze.width,Ze.height)),Ze=Fe.actualBounds,he.arrange(Ze.x,Ze.y,Ze.width,Ze.height),tn=Fe.measuredBounds,Fe=Fe.naturalBounds,on=he.Ab,on.reset(),on.translate(Ze.x+ot.x,Ze.y+ot.y),on.translate(-tn.x,-tn.y),he.no(on,Fe.x,Fe.y,Fe.width,Fe.height),Eh(he,!1),he.wh.set(he.Ab),he.Kk=he.scale,nh(he,!1),he.Ng=kt.part,he.Me=kt.panel,he.gc(y,x),he.Me=null,he.Ng=null,E&&(a.svg.appendChild(he.svg),he.svg=null))}}x.$i=b,y.restore(),y.Vc(!0)};function ei(a,y){if(wn.call(this),this.na=null,a===void 0)this.na=ei.Position;else if(typeof a=="string"){var x=Kh.I(a);x!==null&&(this.na=x)}else a instanceof bn?this.na=a:a&&(this.na=ei.Position,y=a);this.na===null&&qe("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===ei.Grid?1048576:0),this.O=new Ci,this.yb=yu,this.Tm=Bs,this.Uf=mo,this.$g=null,this.$e="",this.jg=new ai(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=br,this.jn=Ho,this.kn=ls,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}Tn(ei,wn),ei.prototype.cloneProtected=function(a){wn.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},ei.prototype.Af=function(a){wn.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},ei.prototype.copy=function(){var a=wn.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 hr&&(z.Te=!0);var ot=a.diagram;ot!==null&&ot.undoManager.isUndoingRedoing||z.cb(pl,"elements",a,null,E,null,nt)}}return a}return null},$t=ei.prototype,$t.toString=function(){return"Panel("+this.type.name+")#"+vs(this)},$t.Pn=function(a){wn.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,b=0;b<x;b++)y[b].Pn(a)},$t.hh=function(a,y){if(this.na===ei.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===ei.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===ei.Table)if(a.yc(),a instanceof xh){var x=a.yd;a.yd=Pg(a,"gojs-ts"),fl(this,a),a.nh.pop(),a.yd=x}else fl(this,a);(x=this.isClipping&&this.na===ei.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 fl(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,b=0<a.columnCount?a.colDefs:null;x!==null&&el(a,y,!0,x,!0),b!==null&&el(a,y,!1,b,!0),x!==null&&Ll(a,y,!0,x),b!==null&&Ll(a,y,!1,b),x!==null&&el(a,y,!0,x,!1),b!==null&&el(a,y,!1,b,!1)}function Ll(a,y,x,b){for(var E=b.length,z=a.actualBounds,nt=a.naturalBounds,ot=!0,at=0;at<E;at++){var ut=b[at];if(ut!==void 0&&ut.actual!==0)if(ot)ot=!1;else{if(x){if(ut.position>nt.height)continue}else if(ut.position>nt.width)continue;var ct=ut.separatorStrokeWidth;isNaN(ct)&&(ct=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var yt=ut.separatorStroke;if(yt===null&&(yt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ct!==0&&yt!==null){Ca(a,y,yt,!1,!1,nt,z),yt=!1;var kt=ut.separatorDashArray;kt===null&&(kt=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),kt!==null&&(yt=!0,y.js(kt,0)),y.beginPath(),kt=ut.position+ct,x?kt>nt.height&&(ct-=kt-nt.height):kt>nt.width&&(ct-=kt-nt.width),ut=ut.position+ct/2,y.lineWidth=ct,ct=a.yb,x?(ut+=ct.top,kt=nt.width-ct.right,y.moveTo(ct.left,ut),y.lineTo(kt,ut)):(ut+=ct.left,kt=nt.height-ct.bottom,y.moveTo(ut,ct.top),y.lineTo(ut,kt)),y.stroke(),y.Se(),yt&&y.fs()}}}}function el(a,y,x,b,E){for(var z=b.length,nt=a.actualBounds,ot=a.naturalBounds,at=Ra(a,!0),ut=Ra(a,!1),ct=0;ct<z;ct++){var yt=b[ct];if(yt!==void 0&&yt.background!==null&&yt.coversSeparators!==E&&yt.actual!==0){var kt=x?nt.height:nt.width;if(!(yt.position>kt)){var zt=yt.Wc(),Xt=yt.separatorStrokeWidth;isNaN(Xt)&&(Xt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var he=yt.separatorStroke;he===null&&(he=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(he===null||yt.index===(x?at:ut))&&(Xt=0),zt-=Xt,Xt=yt.position+Xt,zt+=yt.actual,Xt+zt>kt&&(zt=kt-Xt),0>=zt||(kt=a.yb,Ca(a,y,yt.background,!0,!1,ot,nt),x?y.fillRect(kt.left,Xt+kt.top,nt.width-(kt.left+kt.right),zt):y.fillRect(Xt+kt.left,kt.top,zt,nt.height-(kt.top+kt.bottom)))}}}}function Ra(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 Ul(a){return a==="LineV"||a==="BarV"}$t.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},$t.kk=function(a,y,x){if(!wn.prototype.kk.call(this,a,y,x))return!1;if(this.type===ei.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,fl(this,a),a.yd=null;else if(this.na===ei.Grid||this.na===ei.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},$t.nk=function(){return!0},$t.$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 wn.prototype.$o.call(this,a,y,x,b)},$t.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,ut=-nt.m12*ot,ct=-nt.m21*ot,yt=nt.m11*ot,kt=ot*(nt.m21*nt.dy-nt.m22*nt.dx),zt=ot*(nt.m12*nt.dx-nt.m11*nt.dy);if(this.areaBackground!==null)return nt=this.actualBounds,En.Ff(nt.left,nt.top,nt.right,nt.bottom,a,y,x,b,E);if(this.background!==null)return z=a*at+y*ct+kt,ot=a*ut+y*yt+zt,a=x*at+b*ct+kt,at=x*ut+b*yt+zt,E.h(0,0),x=this.naturalBounds,z=En.Ff(0,0,x.width,x.height,z,ot,a,at,E),E.transform(nt),z;z||(at=1,ct=ut=0,yt=1,zt=kt=0),ot=a*at+y*ct+kt,a=a*ut+y*yt+zt,at=x*at+b*ct+kt,x=x*ut+b*yt+zt,E.h(at,x),b=(at-ot)*(at-ot)+(x-a)*(x-a),ut=!1,yt=this.O.s,zt=yt.length,ct=Ne.alloc(),kt=null,y=1/0;var Xt=null,he=this.isClipping&&this.na===ei.Spot;he&&(Xt=Ne.alloc(),kt=this.Pb(),(ut=kt.Sj(ot,a,at,x,Xt))&&(y=(ot-Xt.x)*(ot-Xt.x)+(a-Xt.y)*(a-Xt.y)));for(var ze=0;ze<zt;ze++){var Fe=yt[ze];Fe.visible&&Fe!==kt&&Fe.Sj(ot,a,at,x,ct)&&(ut=!0,Fe=(ot-ct.x)*(ot-ct.x)+(a-ct.y)*(a-ct.y),Fe<b&&(b=Fe,E.set(ct)))}return he&&(y>b&&E.set(Xt),Ne.free(Xt)),Ne.free(ct),z&&E.transform(nt),ut},$t.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();wn.prototype.Gj.call(this)},$t.v=function(a){if(!wh(this)){wn.prototype.v.call(this,a),a=null,(this.na===ei.Auto||this.na===ei.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=Xu(E,!1);(E instanceof Gh||E instanceof ei||E instanceof ua||z!==bi)&&E.v(!0)}}}},$t.Uj=function(){if(!wh(this)){jl(this,!0),$c(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},$t.Uk=function(){if(!(this.l&2048)){Eh(this,!0),nh(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},$t.Wu=function(){nh(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},$t.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 ut=this.O.s;ut.length!==0&&this.na.measure(this,a,y,ut,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)},$t.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 ja(a){return a.part!==null?a.part.locationObject:null}$t.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=Xu(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=bi),a){case bi:(y>x||z>b)&&(this.v(),this.measure(y>x?x:y,z>b?b:z,0,0));break;case Mi:this.v(!0),this.measure(x+ot,b+nt,0,0);break;case Tr:this.v(!0),this.measure(x+ot,z+nt,0,0);break;case $r:this.v(!0),this.measure(y+ot,b+nt,0,0)}}this.na.arrange(this,E,this.jg)}},$t.gh=function(a){var y=this.naturalBounds,x=ja(this);if(Gs(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,E=Ne.allocAt(0,0);b--;){var z=y[b];if((z.visible||z===x)&&(Zo(E.set(a),z.transform),z.ca(E)))return Ne.free(E),!0}return Ne.free(E),!(this.Ma===null&&this.areaBackground===null)}return!1},$t.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},$t.qm=function(a,y){if(y(this,a),a instanceof ei){a=a.O.s;for(var x=a.length,b=0;b<x;b++)this.qm(a[b],y)}};function la(a,y){Ku(a,a,y)}function Ku(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 ei&&Ku(a,z,x)}}function Md(a,y){Fh(a,a,y)}function Fh(a,y,x){if(x(y),y instanceof ei){y=y.O.s;for(var b=y.length,E=0;E<b;E++)Fh(a,y[E],x)}}$t.Nl=function(a){return dd(this,this,a)};function dd(a,y,x){if(x(y))return y;if(y instanceof ei){y=y.O.s;for(var b=y.length,E=0;E<b;E++){var z=dd(a,y[E],x);if(z!==null)return z}}return null}$t.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=XA(this));for(var b=0;b<x;b++){var E=y[b];if(E instanceof ei){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 ei?x=Math.max(x,Bu(E)):E instanceof Ko&&(x=Math.max(x,E.ig/2*E.strokeMiterLimit*E.Df()))}return x}$t.se=function(){return!(this.type===ei.TableRow||this.type===ei.TableColumn)};function Sh(a){return a.type===ei.TableRow||a.type===ei.TableColumn}$t.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),zu(this)))return null;var b=this.naturalBounds,E=1/this.Df(),z=this.se(),nt=z?a:Zo(Ne.allocAt(a.x,a.y),this.transform),ot=this.diagram,at=10,ut=5;if(ot!==null&&(at=ot.Ql("extraTouchArea"),ut=at/2),Gs(-(ut*E),-(ut*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=Ne.alloc(),ut=(at=this.isClipping&&this.na===ei.Spot)?this.Pb():null,at&&(ut.se()?Zo(ot.set(a),ut.transform):ot.set(a),!ut.ca(ot)))return Ne.free(ot),z||Ne.free(nt),null;for(var yt=ja(this);ct--;){var kt=E[ct];if((kt.visible||kt===yt)&&(kt.se()?Zo(ot.set(a),kt.transform):ot.set(a),!at||kt!==ut)){var zt=null;if(kt instanceof ei?zt=kt.ic(ot,y,x):kt.pickable===!0&&kt.ca(ot)&&(zt=kt),zt!==null&&(y!==null&&(zt=y(zt)),zt!==null&&(x===null||x(zt))))return Ne.free(ot),z||Ne.free(nt),zt}}Ne.free(ot)}return this.background===null&&this.areaBackground===null?(z||Ne.free(nt),null):(a=Gs(0,0,b.width,b.height,nt.x,nt.y)?this:null,z||Ne.free(nt),a)}return z||Ne.free(nt),null},$t.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:Zo(Ne.allocAt(a.x,a.y),this.transform);if(E=Gs(0,0,E.width,E.height,nt.x,nt.y),Sh(this)||E){if(!this.isAtomic){for(var ot=this.O.s,at=ot.length,ut=Ne.alloc(),ct=ja(this);at--;){var yt=ot[at];if(yt.visible||yt===ct){yt.se()?Zo(ut.set(a),yt.transform):ut.set(a);var kt=yt;yt=yt instanceof ei?yt:null,(yt!==null?yt.ji(ut,y,x,b):kt.ca(ut))&&kt.pickable!==!1&&(y!==null&&(kt=y(kt)),kt===null||x!==null&&!x(kt)||b.add(kt))}}Ne.free(ut)}return z||Ne.free(nt),E&&(this.background!==null||this.areaBackground!==null)}return z||Ne.free(nt),!1},$t.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=zo.alloc(),nt.reset()),nt.multiply(this.transform),this.fh(a,nt))return Ad(this,y,x,E),z===void 0&&zo.free(nt),!0;if(this.Yc(a,nt)){if(!this.isAtomic)for(var ot=ja(this),at=this.O.s,ut=at.length;ut--;){var ct=at[ut];if(ct.visible||ct===ot){var yt=ct.actualBounds,kt=this.naturalBounds;yt.x>kt.width||yt.y>kt.height||0>yt.x+yt.width||0>yt.y+yt.height||(yt=ct,ct=ct instanceof ei?ct:null,kt=zo.alloc(),kt.set(nt),(ct!==null?ct.Cf(a,y,x,b,E,kt):Ol(yt,a,b,kt))&&(y!==null&&(yt=y(yt)),yt===null||x!==null&&!x(yt)||E.add(yt)),zo.free(kt))}}return z===void 0&&zo.free(nt),b}return z===void 0&&zo.free(nt),!1};function Ad(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 ei&&Ad(nt,y,x,b),y!==null&&(nt=y(nt)),nt===null||x!==null&&!x(nt)||b.add(nt))}}}$t.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:Zo(Ne.allocAt(a.x,a.y),this.transform),ut=ot?y:Zo(Ne.allocAt(y.x,y.y),this.transform),ct=at.Bf(ut),yt=0<at.x&&at.x<nt.width&&0<at.y&&at.y<nt.height||Vs(at.x,at.y,0,0,0,nt.height)<=ct||Vs(at.x,at.y,0,nt.height,nt.width,nt.height)<=ct||Vs(at.x,at.y,nt.width,nt.height,nt.width,0)<=ct||Vs(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||(Ne.free(at),Ne.free(ut)),yt){if(!this.isAtomic){at=Ne.alloc(),ut=Ne.alloc(),ct=ja(this);for(var kt=this.O.s,zt=kt.length;zt--;){var Xt=kt[zt];if(Xt.visible||Xt===ct){var he=Xt.actualBounds,ze=this.naturalBounds;(!ot||!(he.x>ze.width||he.y>ze.height||0>he.x+he.width||0>he.y+he.height))&&(Xt.se()?(he=Xt.transform,Zo(at.set(a),he),Zo(ut.set(y),he)):(at.set(a),ut.set(y)),he=Xt,Xt=Xt instanceof ei?Xt:null,(Xt!==null?Xt.og(at,ut,x,b,E,z):he.tx(at,ut,E))&&(x!==null&&(he=x(he)),he===null||b!==null&&!b(he)||z.add(he)))}}Ne.free(at),Ne.free(ut)}return E?yt:nt}return!1};function zh(a){var y=null;return a instanceof Ko&&(y=a.spot1,y===Bs&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=nl),y}function ac(a){var y=null;return a instanceof Ko&&(y=a.spot2,y===Bs&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=Zl),y}$t.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},$t.M=function(a){return this.O.M(a)},$t.Gb=function(a,y){y instanceof Vr&&qe("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&qe("Cannot make a Panel contain itself: "+this.toString()),qe("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&qe("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!==ei.Grid||y instanceof Ko||qe("Can only add Shapes to a Grid Panel, not: "+y),this.na!==ei.Graduated||y instanceof Ko||y instanceof ua||qe("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 xr),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 qe("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),wh(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof ei&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Yf(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof hr&&(x.Te=!0),x.Te&&x instanceof hr&&(x.wc=null),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||(b!==-1&&x.cb(Hl,"elements",this,y,null,b,null),x.cb(pl,"elements",this,null,y,null,a)))};function Tc(a,y){a.l=y?a.l|16777216:a.l&-16777217}$t.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)},$t.mb=function(a){0<=a&&this.pc(a,!0)},$t.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),jl(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 hr&&(b instanceof ei?b.qm(b,function(nt,ot){Ev(z,ot,y)}):Ev(z,b,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(Hl,"elements",this,b,null,a,null))},$t.Fb=function(a){0>a&&Pi(a,">= 0",ei,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Rl;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(pl,"rowdefs",this,null,x,null,a)}return y[a]},$t.oA=function(a){if(0>a&&Pi(a,">= 0",ei,"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(Hl,"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 Rl?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}$t.Eb=function(a){0>a&&Pi(a,">= 0",ei,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Rl;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(pl,"coldefs",this,null,x,null,a)}return y[a]},$t.jA=function(a){if(0>a&&Pi(a,">= 0",ei,"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(Hl,"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 Rl?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}$t.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Xg(y,a),this},$t.Hy=function(a,y){return(a=this.Fb(a))&&Xg(a,new Rl(y)),this},$t.By=function(a,y){return(a=this.Eb(a))&&Xg(a,new Rl(y)),this},$t.nz=function(a){if(0>a||this.type!==ei.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},$t.fz=function(a){if(0>a||this.type!==ei.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},$t.Fz=function(a,y){if(y===void 0&&(y=new Ne(NaN,NaN)),this.type!==ei.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)},$t.Gz=function(a){if(this.type!==ei.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&&qe("Template cannot have .data be non-null: "+a),a.allBindings=y=new Ci;else if(y._isFrozen)return;var x=new Ci;Tc(a,!1),a.qm(a,function(ut,ct){ct.th();var yt=ct.localBindings;if(yt!==null)for(Yd(ct,!1),yt=yt.iterator;yt.next();){var kt=yt.value;kt.mode===Nm&&Yd(ct,!0);var zt=kt.sourceName;zt!==null&&(zt==="/"&&Tc(ut,!0),zt=k1(kt,ut,ct),zt!==null&&(x.add(zt),zt.srcBindings===null&&(zt.srcBindings=new Ci),zt.srcBindings.add(kt))),y.add(kt)}if(ct instanceof ei&&ct.type===ei.Table){if(0<ct.rowCount){for(ut=ct.rowDefs,yt=ut.length,kt=0;kt<yt;kt++)if(zt=ut[kt],zt!==void 0&&zt.be!==null)for(var Xt=zt.be.iterator;Xt.next();){var he=Xt.value;he.xd=zt,he.to=2,he.wl=zt.index,y.add(he)}}if(0<ct.columnCount){for(ct=ct.colDefs,ut=ct.length,yt=0;yt<ut;yt++)if(kt=ct[yt],kt!==void 0&&kt.be!==null)for(zt=kt.be.iterator;zt.next();)Xt=zt.value,Xt.xd=kt,Xt.to=1,Xt.wl=kt.index,y.add(Xt)}}});for(var b=x.iterator;b.next();){var E=b.value;if(E.srcBindings!==null){Yd(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 ei&&(nt=ot.substring(0,at),ot=ot.substr(at+1),at=z.fb(nt),at!==null?(z=at,E.targetProperty=ot):er('Warning: unable to find GraphObject named "'+nt+'" for Binding: '+E.toString())),z instanceof Rl?(nt=vs(z.panel),E.Ai=nt===void 0?-1:nt,z.panel.bindingId=E.Ai):z instanceof wn?(nt=vs(z),E.Ai=nt===void 0?-1:nt,z.bindingId=E.Ai):qe("Unknown type of binding target: "+z)}y.freeze(),a instanceof Vr&&a.Zc()&&a.Va()}$t.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return Md(y,function(x){x instanceof ei&&(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},$t.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 ei))continue;E===1?z=z.Eb(x.wl):E===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,b)}}},$t.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 ei&&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 ei)||z.data!==y[nt])return!0;E++,nt++}return!1}function XA(a){if(a.type===ei.Spot||a.type===ei.Auto)return Math.min(a.O.length,1);if(a.type===ei.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var b=a.M(x);if(!(b instanceof Ko&&b.isPanelMain))break}return x}return a.type===ei.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof ei&&Sh(a))?1:0}$t.mv=function(){for(var a=XA(this);this.O.length>a;)this.pc(this.O.length-1,!1);uf(this,this.itemArray)};function uf(a,y){var x=XA(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++)ih(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 ei){if(nt.data!==z){var ot=Cp(a,nt.data),at=Cp(a,z),ut=at!==ot;ut||(ot=Bp(a,ot),ut=Bp(a,at)!==ot),ut?(a.pc(b,!1),ih(a,z,E,!1)):nt.data=z}}else ih(a,z,E,!1)}for(;b<a.O.length;)a.pc(b,!1);a.$g=null,Vg(a,x,0),wh(a)||a.v(),a.graduatedIntervals=null,a.If()||Yf(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof hr&&(y.Te=!0),y.Te&&y instanceof hr&&(y.wc=null))}}function ih(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&&Tc(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new xr),a.ge.add(y,E)),z=x+XA(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 ei){var E=y,z=x;b.type===ei.TableRow?b.row=E:b.type===ei.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=Wl(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;qe("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,er('No item template Panel found for category "'+y+'" on '+a),er(" Using default item template."),a=new ei,y=new ua,y.bind(new Yl("text","",Pr)),a.add(y),pA=a),b=pA)),b}function Yf(a,y,x){var b=y.enabledChanged;if(b!==null&&b(y,x),y instanceof ei){y=y.O.s,b=y.length;for(var E=0;E<b;E++){var z=y[E];x&&z instanceof ei&&!z.isEnabled||Yf(a,z,x)}}}function Oc(a,y){y.name=a,Kh.add(a,y)}De.Object.defineProperties(ei.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===ei.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&&Pi(a,">= 0",ei,"padding"),a=new Rr(a)):(0>a.left&&Pi(a.left,">= 0",ei,"padding:value.left"),0>a.right&&Pi(a.right,">= 0",ei,"padding:value.right"),0>a.top&&Pi(a.top,">= 0",ei,"padding:value.top"),0>a.bottom&&Pi(a.bottom,">= 0",ei,"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:yu},set:function(a){typeof a=="number"&&(a=new Rr(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 Us)&&(a instanceof Us&&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)||qe("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 Us)&&(a instanceof Us&&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)||qe("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||qe("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()||qe("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 Jc),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),lu(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 Jc),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),lu(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 Jc),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 Jc),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 Jc,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 Jc,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 Jc,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 Jc,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)&&qe("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)&&qe("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 Vr&&!(this instanceof bs);lh(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof Gi?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof Vr&&(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 xr}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof Vr||a.isPanelMain)&&qe("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(););No(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&&(No(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 Do&&(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&&Yf(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))}}}),De.Object.defineProperties(ei,{Position:{get:function(){return Kh.I("Position")}},Horizontal:{get:function(){return Kh.I("Horizontal")}},Vertical:{get:function(){return Kh.I("Vertical")}},Spot:{get:function(){return Kh.I("Spot")}},Auto:{get:function(){return Kh.I("Auto")}},Table:{get:function(){return Kh.I("Table")}},Viewbox:{get:function(){return Kh.I("Viewbox")}},TableRow:{get:function(){return Kh.I("TableRow")}},TableColumn:{get:function(){return Kh.I("TableColumn")}},Link:{get:function(){return Kh.I("Link")}},Grid:{get:function(){return Kh.I("Grid")}},Graduated:{get:function(){return Kh.I("Graduated")}}}),ei.prototype.rebuildItemElements=ei.prototype.mv,ei.prototype.findItemPanelForData=ei.prototype.sx,ei.prototype.updateTargetBindings=ei.prototype.La,ei.prototype.copyTemplate=ei.prototype.Uy,ei.prototype.graduatedValueForPoint=ei.prototype.Gz,ei.prototype.graduatedPointForValue=ei.prototype.Fz,ei.prototype.findColumnForLocalX=ei.prototype.fz,ei.prototype.findRowForLocalY=ei.prototype.nz,ei.prototype.addColumnDefinition=ei.prototype.By,ei.prototype.addRowDefinition=ei.prototype.Hy,ei.prototype.addRowColumnDefinition=ei.prototype.Gy,ei.prototype.removeColumnDefinition=ei.prototype.jA,ei.prototype.getColumnDefinition=ei.prototype.Eb,ei.prototype.removeRowDefinition=ei.prototype.oA,ei.prototype.getRowDefinition=ei.prototype.Fb,ei.prototype.removeAt=ei.prototype.mb,ei.prototype.remove=ei.prototype.remove,ei.prototype.insertAt=ei.prototype.Gb,ei.prototype.elt=ei.prototype.M,ei.prototype.add=ei.prototype.add,ei.prototype.findObject=ei.prototype.fb,ei.prototype.findInVisualTree=ei.prototype.Nl,ei.prototype.walkVisualTreeFrom=ei.prototype.qm,ei.prototype.findMainElement=ei.prototype.Pb;var Zg=!1,pA=null,Kh=new xr;ei.className="Panel",ei.definePanelLayout=Oc,Oc("Position",new Gn),Oc("Vertical",new Ni),Oc("Auto",new wr),Oc("Link",new es);function Jc(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}Jc.prototype.copy=function(){var a=new Jc;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},Jc.className="GradPanelSettings";function wc(){this.Pc=[],this.Oc=[],this.j=this.ob=Cf,this.hb=this.Hb=0,this.Qp=yu,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 Rl(a){Yo(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=mo,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))}Rl.prototype.copy=function(){var a=new Rl;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=Cr(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function Xg(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=Cr(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}$t=Rl.prototype,$t.qb=function(a){a.classType===Rl&&(this.sizing=a)},$t.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+vs(this)},$t.wi=function(a){this.Me=a},$t.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)},$t.Wc=function(){var a=0,y=this.Me,x=0,b=this.isRow;if(y!==null&&y.type===ei.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)},$t.Ob=function(a,y,x){var b=this.Me;if(b!==null&&(b.cb(Na,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}$t.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new Yl(a,y,x,b):E=a,E.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&lc(y)&&qe("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},De.Object.defineProperties(Rl.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&&Pi(a,">= 0",Rl,"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&&Pi(a,">= 0",Rl,"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))&&Pi(a,">= 0",Rl,"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&&Pi(a,">= 0",Rl,"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 Rr(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 Us&&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)||qe("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 Us&&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}}}),Rl.prototype.computeEffectiveSpacing=Rl.prototype.Wc,Rl.prototype.computeEffectiveSpacingTop=Rl.prototype.Io;var $g=new pi(Rl,"Default",0),Sf=new pi(Rl,"None",1),Cf=new pi(Rl,"ProportionalExtra",2);Rl.className="RowColumnDefinition",Rl.Default=$g,Rl.None=Sf,Rl.ProportionalExtra=Cf;function Ko(a,y){wn.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)}Tn(Ko,wn),Ko.prototype.cloneProtected=function(a){wn.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=Cr(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())}$t=Ko.prototype,$t.th=function(){wn.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},$t.qb=function(a){a===bi||a===br||a===Jo||a===mo?this.geometryStretch=a:wn.prototype.qb.call(this,a)},$t.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+vs(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],ut,ct,yt,kt,zt,Xt,he=0,ze=ar(),Fe=2;Fe<E;Fe+=2)ut=x[Fe],ct=x[Fe+1],yt=ut-ot,ot=ct-at,yt===0&&(yt=.001),kt=ot/yt,zt=Math.atan2(ot,yt),Xt=Math.sqrt(yt*yt+ot*ot),ze.push([yt,zt,kt,Xt]),he+=Xt,ot=ut,at=ct;ot=x[0],at=x[1],yt=b.measuredBounds.width,b instanceof Ko&&(yt-=b.strokeWidth),1>yt&&(yt=1),E=x=yt,ut=nt/2,ct=ut!==0,Fe=0,Xt=ze[Fe],yt=Xt[0],zt=Xt[1],kt=Xt[2],Xt=Xt[3];for(var Ze=0;.1<=he;){if(Ze===0&&(ct?(E=x,E-=ut,he-=ut,ct=!1):E=x,E===0&&(E=1)),E>he){Lr(ze);return}E>Xt?(Ze=E-Xt,E=Xt):Ze=0;var tn=Math.sqrt(E*E/(1+kt*kt));if(0>yt&&(tn=-tn),ot+=tn,at+=kt*tn,a.translate(ot,at),a.rotate(zt),a.translate(-(nt/2),-(z/2)),Ze===0&&b.hh(a,y),a.translate(nt/2,z/2),a.rotate(-zt),a.translate(-ot,-at),he-=E,Xt-=E,Ze!==0){if(Fe++,Fe===ze.length){Lr(ze);return}Xt=ze[Fe],yt=Xt[0],zt=Xt[1],kt=Xt[2],Xt=Xt[3],E=Ze}}Lr(ze)}}$t.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===ei.Link&&ot instanceof bs&&ot.category==="Selection"&&ot.adornedObject instanceof Ko&&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===Vi.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===Vi.u){var ut=E.startX;at=E.startY;var ct=E.endX,yt=E.endY;E=Math.min(ut,ct);var kt=Math.min(at,yt);ut=Math.abs(ct-ut),at=Math.abs(yt-at),a.beginPath(),a.rect(E,kt,ut,at),b!==null&&a.ng(b),x!==null&&(ot&&z&&Yc(a),a.jk(),ot&&z&&Qh(a)),a.Se()}else if(E.type===Vi.F)ut=E.startX,at=E.startY,ct=E.endX,yt=E.endY,E=Math.abs(ct-ut)/2,kt=Math.abs(yt-at)/2,ut=Math.min(ut,ct)+E,at=Math.min(at,yt)+kt,a.beginPath(),a.moveTo(ut,at-kt),a.bezierCurveTo(ut+En.wg*E,at-kt,ut+E,at-En.wg*kt,ut+E,at),a.bezierCurveTo(ut+E,at+En.wg*kt,ut+En.wg*E,at+kt,ut,at+kt),a.bezierCurveTo(ut-En.wg*E,at+kt,ut-E,at+En.wg*kt,ut-E,at),a.bezierCurveTo(ut-E,at-En.wg*kt,ut-En.wg*E,at-kt,ut,at-kt),a.closePath(),b!==null&&a.ng(b),x!==null&&(ot&&z&&Yc(a),a.jk(),ot&&z&&Qh(a)),a.Se();else if(E.type===Vi.o)for(E=E.figures,at=E.length,kt=0;kt<at;kt++){ut=E.s[kt],a.beginPath(),a.moveTo(ut.startX,ut.startY),ct=ut.segments.s,yt=ct.length;for(var zt=null,Xt=0;Xt<yt;Xt++){var he=ct[Xt];switch(he.type){case Bl:a.moveTo(he.endX,he.endY);break;case oa:a.lineTo(he.endX,he.endY);break;case Au:a.bezierCurveTo(he.point1X,he.point1Y,he.point2X,he.point2Y,he.endX,he.endY);break;case fh:a.quadraticCurveTo(he.point1X,he.point1Y,he.endX,he.endY);break;case wl:if(he.radiusX===he.radiusY){var ze=Math.PI/180;a.arc(he.point1X,he.point1Y,he.radiusX,he.startAngle*ze,(he.startAngle+he.sweepAngle)*ze,0>he.sweepAngle,zt!==null?zt.endX:ut.startX,zt!==null?zt.endY:ut.startY)}else if(zt=Ju(he,ut),ze=zt.length,ze===0)a.lineTo(he.centerX,he.centerY);else for(var Fe=0;Fe<ze;Fe++){var Ze=zt[Fe];Fe===0&&a.lineTo(Ze[0],Ze[1]),a.bezierCurveTo(Ze[2],Ze[3],Ze[4],Ze[5],Ze[6],Ze[7])}break;case Th:if(Fe=ze=0,zt!==null&&zt.type===wl){if(zt=Ju(zt,ut),Ze=zt.length,Ze===0){a.lineTo(he.endX,he.endY);break}zt=zt[Ze-1]||null,zt!==null&&(ze=zt[6],Fe=zt[7])}else ze=zt!==null?zt.endX:ut.startX,Fe=zt!==null?zt.endY:ut.startY;if(zt=Gu(he,ut,ze,Fe),ze=zt.length,ze===0){a.lineTo(he.endX,he.endY);break}for(Fe=0;Fe<ze;Fe++)Ze=zt[Fe],a.bezierCurveTo(Ze[2],Ze[3],Ze[4],Ze[5],Ze[6],Ze[7]);break;default:qe("Segment not of valid type: "+he.type)}he.isClosed&&a.closePath(),zt=he}ct=ut.isFilled,z?ut.isShadowed?(ct===!0&&b!=="transparent"&&b!==null&&a.ng(b,ut.isEvenOdd),x!==null&&(ct&&ot&&Yc(a),a.jk(),ct&&ot&&Qh(a))):(Yc(a),ct&&b!=="transparent"&&b!==null&&a.ng(b,ut.isEvenOdd),x!==null&&a.jk(),Qh(a)):(ct&&b!==null&&a.ng(b,ut.isEvenOdd),x!==null&&a.jk()),a.Se(kt)}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=ar(),z.type===Vi.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===Vi.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,kt=E,ut=ot.segments.s,ct=ut.length,yt=0;yt<ct;yt++){switch(Xt=ut[yt],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,kt=E;break;case oa:b.push(Xt.endX),b.push(Xt.endY),nt=Xt.endX,E=Xt.endY;break;case Au:En.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 fh:En.ep(nt,E,Xt.point1X,Xt.point1Y,Xt.endX,Xt.endY,.5,b),nt=Xt.endX,E=Xt.endY;break;case wl:if(he=Ju(Xt,ot),zt=he.length,zt===0){b.push(Xt.centerX),b.push(Xt.centerY),nt=Xt.centerX,E=Xt.centerY;break}for(ze=0;ze<zt;ze++)Fe=he[ze],En.Qe(nt,E,Fe[2],Fe[3],Fe[4],Fe[5],Fe[6],Fe[7],.5,b),nt=Fe[6],E=Fe[7];break;case Th:if(he=Gu(Xt,ot,nt,E),zt=he.length,zt===0){b.push(Xt.endX),b.push(Xt.endY),nt=Xt.endX,E=Xt.endY;break}for(ze=0;ze<zt;ze++)Fe=he[ze],En.Qe(nt,E,Fe[2],Fe[3],Fe[4],Fe[5],Fe[6],Fe[7],.5,b),nt=Fe[6],E=Fe[7];break;default:qe("Segment not of valid type: "+Xt.type)}Xt.isClosed&&(b.push(at),b.push(kt),Pf(a,y,b,x))}Pf(a,y,b,x)}else if(z.type===Vi.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===Vi.F){if(E=new tl,E.startX=z.endX,E.startY=(z.startY+z.endY)/2,nt=new As(wl),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=Ju(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++)kt=z[at],En.Qe(nt,E,kt[2],kt[3],kt[4],kt[5],kt[6],kt[7],.5,b),nt=kt[6],E=kt[7];Pf(a,y,b,x)}Lr(b),a.restore(),a.Vc(!1)}}}},$t.kk=function(a,y,x){return!wn.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)},$t.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:wn.prototype.nk.call(this,a)},$t.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)}},$t.ga=function(a,y){if(y===void 0&&(y=new Ne),a instanceof fr){a.Mc()&&qe("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},$t.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=Ne.allocAt(y.x,y.y).transform(x),a.h(b.x,b.y,0,0),b.h(y.right,y.y).transform(x),Cs(a,b.x,b.y,0,0),b.h(y.right,y.bottom).transform(x),Cs(a,b.x,b.y,0,0),b.h(y.x,y.bottom).transform(x),Cs(a,b.x,b.y,0,0),ai.free(y),Ne.free(b),a},$t.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!==Vi.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===Vi.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),En.Yb(x.startX,x.startY,x.endX,x.endY,E,a.x,a.y));if(x.type===Vi.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===Vi.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===Vi.o)return ai.free(z),this.fill===null?Ah(x,a.x,a.y,E):Ru(x,a,E,1<this.strokeWidth,y);qe("Unknown Geometry type: "+x.type)},$t.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 ut=En.Ze[ot];typeof ut=="string"&&(ut=En.Ze[ut]),typeof ut=="function"?(at=ut(null,100,100),Ep[ot]=at):qe("Unsupported Figure: "+ot)}nt=at.bounds}ot=nt.width,at=nt.height,ut=nt.width;var ct=nt.height;switch(Xu(this,!0)){case bi:b=x=0;break;case Mi:ut=Math.max(a-z,0),ct=Math.max(y-z,0);break;case Tr:ut=Math.max(a-z,0),b=0;break;case $r:x=0,ct=Math.max(y-z,0)}isFinite(E.width)&&(ut=E.width),isFinite(E.height)&&(ct=E.height);var yt=this.maxSize,kt=this.minSize;switch(x=Math.max(x-z,kt.width),b=Math.max(b-z,kt.height),ut=Math.min(yt.width,ut),ct=Math.min(yt.height,ct),ut=isFinite(ut)?Math.max(x,ut):Math.max(ot,x),ct=isFinite(ct)?Math.max(b,ct):Math.max(at,b),x=$A(this),x){case bi:break;case Mi:ot=ut,at=ct;break;case br:x=Math.min(ut/ot,ct/at),isFinite(x)||(x=1),ot*=x,at*=x;break;default:qe(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&&En.$(this.ua.Sk,a-z)&&En.$(this.ua.Rk,y-z)||(this.ua=Ko.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),ut+z,ct+z),E.w()?(ut=E.width,ct=E.height,ut=Math.min(yt.width,ut),ct=Math.min(yt.height,ct),ut=Math.max(kt.width,ut),ct=Math.max(kt.height,ct),this.dc.h(0,0,ut,ct)):this.dc.assign(nt)};function $A(a){var y=a.geometryStretch;return a.Rd!==null?y===mo?Mi:y:y===mo?Ep[a.figure].defaultStretch:y}$t.eh=function(a,y,x,b){zl(this,a,y,x,b)},$t.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},$t.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,ut=-z.m21*nt,ct=z.m11*nt,yt=nt*(z.m21*z.dy-z.m22*z.dx),kt=nt*(z.m12*z.dx-z.m11*z.dy);z=a*ot+y*ut+yt,nt=a*at+y*ct+kt,ot=x*ot+b*ut+yt,at=x*at+b*ct+kt,yt=this.ig/2,ut=this.ua,ut===null&&(this.measure(1/0,1/0),ut=this.ua);var zt=ut.bounds;if(ct=!1,ut.type===Vi.j)if(1.5>=this.strokeWidth)ct=En.Ve(ut.startX,ut.startY,ut.endX,ut.endY,z,nt,ot,at,E);else{if(ut.startX===ut.endX?(b=yt,ct=0):(y=(ut.endY-ut.startY)/(ut.endX-ut.startX),ct=yt/Math.sqrt(1+y*y),b=ct*y),y=ar(),a=new Ne,En.Ve(ut.startX+b,ut.startY+ct,ut.endX+b,ut.endY+ct,z,nt,ot,at,a)&&y.push(a),a=new Ne,En.Ve(ut.startX-b,ut.startY-ct,ut.endX-b,ut.endY-ct,z,nt,ot,at,a)&&y.push(a),a=new Ne,En.Ve(ut.startX+b,ut.startY+ct,ut.startX-b,ut.startY-ct,z,nt,ot,at,a)&&y.push(a),a=new Ne,En.Ve(ut.endX+b,ut.endY+ct,ut.endX-b,ut.endY-ct,z,nt,ot,at,a)&&y.push(a),ot=y.length,ot===0)return Lr(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);Lr(y)}else if(ut.type===Vi.u)ct=En.Ff(zt.x-yt,zt.y-yt,zt.x+zt.width+yt,zt.y+zt.height+yt,z,nt,ot,at,E);else if(ut.type===Vi.F){y=ai.allocAt(zt.x,zt.y,zt.width,zt.height).Bc(yt,yt);t:if(y.width===0)ct=En.Ve(y.x,y.y,y.x,y.y+y.height,z,nt,ot,at,E);else if(y.height===0)ct=En.Ve(y.x,y.y,y.x+y.width,y.y,z,nt,ot,at,E);else{if(a=y.width/2,ut=y.height/2,b=y.x+a,ct=y.y+ut,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+ut*ut-at*at){E.x=NaN,E.y=NaN,ct=!1;break t}yt=Math.sqrt(a*a*x*x+ut*ut-at*at),ot=(-(a*a*x*at)+a*ut*yt)/(ut*ut+a*a*x*x)+b,a=(-(a*a*x*at)-a*ut*yt)/(ut*ut+a*a*x*x)+b,ut=x*(ot-b)+at+ct,at=x*(a-b)+at+ct,Math.abs((z-ot)*(z-ot))+Math.abs((nt-ut)*(nt-ut))<Math.abs((z-a)*(z-a))+Math.abs((nt-at)*(nt-at))?(E.x=ot,E.y=ut):(E.x=a,E.y=at)}else{if(ot=ut*ut,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(ut.type===Vi.o){kt=Ne.alloc();var Xt=ot-z,he=at-nt,ze=Xt*Xt+he*he,Fe=z,Ze=nt;if(0<ze&&zt.contains(Fe,Ze)&&(kt.x=Fe,kt.y=Ze,this.ca(kt)))for(Xt!==0&&.5>Math.abs(Xt)?(he*=.5/Xt,Xt=.5):he!==0&&.5>Math.abs(he)&&(Xt*=.5/he,he=.5),Fe-=Xt,Ze-=he;zt.contains(Fe,Ze);)Fe-=Xt,Ze-=he;for(E.x=ot,E.y=at,he=0;he<ut.figures.count;he++){var tn=ut.figures.s[he],on=tn.isFilled?Fe:z,Sn=tn.isFilled?Ze:nt,Wn=tn.segments;zt=tn.startX,Xt=tn.startY;for(var rr=zt,Fr=Xt,vr=0;vr<Wn.count;vr++){var Ki=Wn.s[vr],Li=Ki.type,Io=Ki.endX,vo=Ki.endY,Ns=!1;switch(Li){case Bl:rr=Io,Fr=vo;break;case oa:Ns=bp(zt,Xt,Io,vo,on,Sn,ot,at,kt);break;case Au:Ns=En.Eo(zt,Xt,Ki.point1X,Ki.point1Y,Ki.point2X,Ki.point2Y,Io,vo,on,Sn,ot,at,.6,kt);break;case fh:Ns=En.Eo(zt,Xt,zt+2/3*(Ki.point1X-zt),Xt+2/3*(Ki.point1Y-Xt),Io+2/3*(Ki.point1X-Io),vo+2/3*(Ki.point1Y-vo),Io,vo,on,Sn,ot,at,.6,kt);break;case wl:case Th:Li=Ki.type===wl?Ju(Ki,tn):Gu(Ki,tn,zt,Xt);var pa=Li.length;if(pa===0){Ns=bp(zt,Xt,Ki.type===wl?Ki.centerX:Ki.endX,Ki.type===wl?Ki.centerY:Ki.endY,on,Sn,ot,at,kt);break}for(vo=null,Io=0;Io<pa;Io++){if(vo=Li[Io],Io===0&&bp(zt,Xt,vo[0],vo[1],on,Sn,ot,at,kt)){var Lu=Pp(on,Sn,kt,ze,E);Lu<ze&&(ze=Lu,ct=!0)}En.Eo(vo[0],vo[1],vo[2],vo[3],vo[4],vo[5],vo[6],vo[7],on,Sn,ot,at,.6,kt)&&(Lu=Pp(on,Sn,kt,ze,E),Lu<ze&&(ze=Lu,ct=!0))}Io=vo[6],vo=vo[7];break;default:qe("Unknown Segment type: "+Li)}zt=Io,Xt=vo,Ns&&(Ns=Pp(on,Sn,kt,ze,E),Ns<ze&&(ze=Ns,ct=!0)),Ki.isClosed&&(Io=rr,vo=Fr,bp(zt,Xt,Io,vo,on,Sn,ot,at,kt)&&(Ki=Pp(on,Sn,kt,ze,E),Ki<ze&&(ze=Ki,ct=!0)))}}z=x-a,nt=b-y,ot=Math.sqrt(z*z+nt*nt),ot!==0&&(z/=ot,nt/=ot),E.x-=z*yt,E.y-=nt*yt,Ne.free(kt)}else qe("Unknown Geometry type: "+ut.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(En.$(a,x)&&En.$(y,b)||En.$(E,nt)&&En.$(z,ot))return!1;var ut=!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||En.$(at.y,a))&&(at.y<y||En.$(at.y,y))&&(ut=!0)):(y=a<x?a:x,a=a<x?x:a,(at.x>y||En.$(at.x,y))&&(at.x<a||En.$(at.x,a))&&(ut=!0)),ut)}$t.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=Ne.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)))),Ne.free(z),E},$t.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=zo.alloc();x.set(y),x.Vj();var b=a.left,E=a.right,z=a.top;a=a.bottom;var nt=Ne.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 Ne.free(nt),!0;var ot=Ne.alloc(),at=Ne.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)))),Ne.free(nt),zo.free(x),Ne.free(ot),Ne.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)}$t.tx=function(a,y,x){function b(ze,Fe){for(var Ze=ze.length,tn=0;tn<Ze;tn+=2)if(Fe.zd(ze[tn],ze[tn+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,ut=nt.x+nt.width;if(nt=nt.y+nt.height,yl(a.x,a.y,ot,at)<=E&&yl(a.x,a.y,ut,at)<=E&&yl(a.x,a.y,ot,nt)<=E&&yl(a.x,a.y,ut,nt)<=E)return!0}if(ot=y.startX,at=y.startY,ut=y.endX,nt=y.endY,y.type===Vi.j){if(x=(ot-ut)*(a.x-ut)+(at-nt)*(a.y-nt),Vs(a.x,a.y,ot,at,ut,nt)<=(0<=(ut-ot)*(a.x-ot)+(nt-at)*(a.y-at)&&0<=x?E:z))return!0}else{if(y.type===Vi.u)return y=!1,x&&(y=Vs(a.x,a.y,ot,at,ot,nt)<=E||Vs(a.x,a.y,ot,at,ut,at)<=E||Vs(a.x,a.y,ut,at,ut,nt)<=E||Vs(a.x,a.y,ot,nt,ut,nt)<=E),y;if(y.type===Vi.F){y=a.x-(ot+ut)/2,z=a.y-(at+nt)/2;var ct=Math.abs(ut-ot)/2,yt=Math.abs(nt-at)/2;if(ct===0||yt===0)return Vs(a.x,a.y,ot,at,ut,nt)<=E;if(x){if(a=En.$y(ct,yt,y,z),a*a<=E)return!0}else return!(yl(y,z,-ct,0)>=E||yl(y,z,0,-yt)>=E||yl(y,z,0,yt)>=E||yl(y,z,ct,0)>=E)}else if(y.type===Vi.o){if(ut=y.bounds,z=ut.x,ot=ut.y,at=ut.x+ut.width,ut=ut.y+ut.height,a.x>at&&a.x<z&&a.y>ut&&a.y<ot&&Vs(a.x,a.y,z,ot,z,ut)>E&&Vs(a.x,a.y,z,ot,at,ot)>E&&Vs(a.x,a.y,at,ut,z,ut)>E&&Vs(a.x,a.y,at,ut,at,ot)>E)return!1;if(z=Math.sqrt(E),x){if(this.fill===null?Ah(y,a.x,a.y,z):Ru(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,ut=0;ut<at;ut++)switch(yt=ot[ut],yt.type){case Bl:case oa:if(nt=yt.endX,ct=yt.endY,a.zd(nt,ct)>E)return!1;break;case Au:var kt=ar();if(En.Qe(nt,ct,yt.point1X,yt.point1Y,yt.point2X,yt.point2Y,yt.endX,yt.endY,.8,kt),nt=b(kt,a),Lr(kt),nt||(nt=yt.endX,ct=yt.endY,a.zd(nt,ct)>E))return!1;break;case fh:if(kt=ar(),En.ep(nt,ct,yt.point1X,yt.point1Y,yt.endX,yt.endY,.8,kt),nt=b(kt,a),Lr(kt),nt||(nt=yt.endX,ct=yt.endY,a.zd(nt,ct)>E))return!1;break;case wl:case Th:kt=yt.type===wl?Ju(yt,z):Gu(yt,z,nt,ct);var zt=kt.length;if(zt===0){if(nt=yt.type===wl?yt.centerX:yt.endX,ct=yt.type===wl?yt.centerY:yt.endY,a.zd(nt,ct)>E)return!1;break}yt=null;for(var Xt=ar(),he=0;he<zt;he++)if(yt=kt[he],Xt.length=0,En.Qe(yt[0],yt[1],yt[2],yt[3],yt[4],yt[5],yt[6],yt[7],.8,Xt),b(Xt,a))return Lr(Xt),!1;Lr(Xt),yt!==null&&(nt=yt[6],ct=yt[7]);break;default:qe("Unknown Segment type: "+yt.type)}}return!0}}}return!1},$t.qc=function(){this.ua=null},$t.kq=function(){return this.ig};function hm(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=ym,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=qa):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new fr(1-qa.x,qa.y)))}Ko.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var b=qd[a.toArrow];else a.fromArrow!=="None"?b=qd[a.fromArrow]:(b=En.Ze[a.figure],typeof b=="string"&&(b=En.Ze[b]),b===void 0&&qe("Unknown Shape.figure: "+a.figure),b=b(a,y,x),b.Sk=y,b.Rk=x);if(b===null){var E=En.Ze.Rectangle;typeof E=="function"&&(b=E(a,y,x))}return b};function Yg(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 En.um)if(E.toLowerCase()===x){b=E;break}if(b!==null)return a=Vi.parse(En.um[b],!1),qd[b]=a,x!==b&&(qd[x]=b),b}}return typeof y=="string"?y:y instanceof Vi?a:null}De.Object.defineProperties(Ko.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),lu(this)&&(a=this.part,a!==null&&Js(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=Vi.parse(a);var y=a.normalize();this.geometry=a,this.position=a=Ne.allocAt(-y.x,-y.y),Ne.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 Us&&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 Us&&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 Pi(a,"value >= 0",Ko,"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"?Pi(a,'"butt", "round", or "square"',Ko,"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"?Pi(a,'"miter", "bevel", or "round"',Ko,"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)||qe("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=En.Ze[a];typeof x=="function"?x=a:(x=En.Ze[a.toLowerCase()])||qe("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=Yg(a);x===null?qe("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new MA),this.Ua.V=x,this.Rd=null,this.qc(),this.v(),hm(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=Yg(a);x===null?qe("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new MA),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),hm(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:mo},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 YA),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 YA),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 YA),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 YA),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),Ko.prototype.intersectsRect=Ko.prototype.Yc,Ko.prototype.containedInRect=Ko.prototype.fh,Ko.prototype.getNearestIntersectionPoint=Ko.prototype.rs,Ko.prototype.getDocumentBounds=Ko.prototype.mi,Ko.prototype.getDocumentPoint=Ko.prototype.ga;var qd=new uo,Ep=new uo;Ko.className="Shape",Ko.getFigureGenerators=function(){var a=new xr,y;for(y in En.Ze)y!==y.toLowerCase()&&a.add(y,En.Ze[y]);return a.freeze(),a},Ko.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),b=En.Ze;b[a]=y,b[x]=a},Ko.getArrowheadGeometries=function(){var a=new xr;for(b in En.um)if(qd[b]===void 0){var y=Vi.parse(En.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 Vi&&a.add(x,b)}return a.freeze(),a},Ko.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=Vi.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||qe("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=mo,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 ua(a,y){return wn.call(this),Ng||(Lh=js?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}Tn(ua,wn),ua.prototype.cloneProtected=function(a){wn.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 Dc(a){a.da===null?a.da=new tp:a.da.nc&&(a.da=a.da.copy())}$t=ua.prototype,$t.th=function(){wn.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function cm(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}$t.qb=function(a){a.classType===ua?this.wrap=a:wn.prototype.qb.call(this,a)},$t.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},$t.v=function(){wn.prototype.v.call(this)},$t.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 ut=this.isStrikethrough;Ca(this,a,this.xc,!0,!1,x,b),(at||ut)&&Ca(this,a,this.xc,!1,!1,x,b),b=0,x=!1;var ct=this.oe,yt=ct.dx-(nt*ct.m21+ct.dx);ct=ct.dy-(nt*ct.m22+ct.dy);var kt=y.scale;switch(8>(yt*yt+ct*ct)*kt*kt&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof xh&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,yt=this.spacingBelow,this.flip){case rs:a.translate(E,0),a.scale(-1,1);break;case Mo:a.translate(0,z),a.scale(1,-1);break;case Ts:a.translate(E,z),a.scale(-1,-1)}if(a.yc(),ct=this.Gc,kt=(y+nt+yt)*ct,z>kt&&(b=this.verticalAlignment,b=b.y*z-b.y*kt+b.offsetY),ct===1&&this.ze!==null)yt=this.Cb,yt>E&&(yt=E),this.Oj(this.ze,a,0,b+y,E,nt,yt,x,ot,at,ut);else if(this.Qc!==null&&this.Qb!==null)for(kt=0;kt<ct;kt++){var zt=this.Qc[kt];zt>E&&(zt=E),b+=y,this.Oj(this.Qb[kt],a,0,b,E,nt,zt,x,ot,at,ut),b+=nt+yt}switch(this.flip){case rs:a.scale(-1,1),a.translate(-E,0);break;case Mo:a.scale(1,-1),a.translate(0,-z);break;case Ts:a.scale(-1,-1),a.translate(-E,-z)}}},$t.Oj=function(a,y,x,b,E,z,nt,ot,at,ut,ct){var yt=0;if(ot)at==="left"?yt=0:at==="right"?yt=E-nt:at==="center"&&(yt=(E-nt)/2),y.fillRect(x+yt,b+.25*z,nt,1);else{if(at==="left"?yt=0:at==="right"?yt=E:at==="center"&&(yt=E/2),E=Fp!==null?Fp(this,z):.75*z,y.fillText(a,x+yt,b+E),a=z/20|0,a===0&&(a=1),at==="right"?yt-=nt:at==="center"&&(yt-=nt/2),ut){ot=qg!==null?qg(this,z):.8*z,at=x+yt,ut=b+ot,E=x+yt+nt,ot=b+ot;var kt=a;y.beginPath(),y.lineWidth=kt,y.moveTo(at,ut),y.lineTo(E,ot),y.stroke(),y.Se(),y instanceof xh&&y.ad.classList.add("gojs-td")}ct&&(ct=b+z-z/2.2|0,a%2!==0&&(ct+=.5),b=x+yt,z=ct,x=x+yt+nt,nt=ct,yt=a,y.beginPath(),y.lineWidth=yt,y.moveTo(b,z),y.lineTo(x,nt),y.stroke(),y.Se(),y instanceof xh&&y.ad.classList.add("gojs-td"))}},$t.kk=function(a,y,x){if(!wn.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++)Xf(a,y[x],!1)}else y=this.svg,y.innerHTML=this.text,Xf(a,y,!0);return!0},$t.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:wn.prototype.nk.call(this,a)},$t.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)}},$t.Wl=function(a,y,x,b){var E=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;Lh!==null&&fm!==z&&(fm=Lh.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 ut=z.indexOf(`
|
|
|
`,ot);ut===-1&&(ut=z.length,at=!0),ot=z.substr(ot,ut-ot),this.formatting===hf&&(ot=ot.trim()),nt=Math.max(nt,jc(ot)),ot=ut+1}z=nt}else nt=z.indexOf(`
|
|
|
`,0),0<=nt&&(z=z.substr(0,nt)),z=jc(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=Am(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?dm(y):0,ut=this.spacingAbove+this.spacingBelow,ut=Math.max(0,mA(this)+ut),at=Math.min(this.maxLines-1,Math.max(Math.floor(at/ut+.01)-1,0)),!(at+1>=this.Qb.length))){for(this.l|=16777216,ut=this.Qb[at],y=Math.max(1,a-y);jc(ut)>y&&1<ut.length;)ut=ut.substr(0,ut.length-1);ut+=tg,y=jc(ut),this.Qb[at]=ut,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===e0||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)},$t.eh=function(a,y,x,b){zl(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?dm(nt):0;if(a.Gc>=a.maxLines)b!==null&&b.h(0,ot);else if(nt=y,a.wrap===Ef){a.Le=1;var ut=jc(y);if(at===0||ut<=x)a.Cb=Math.max(a.Cb,ut),Jg(a,y,a.Cb),b!==null&&b.h(ut,ot);else{for(z=qf(a,nt),nt=nt.substr(z.length),y=qf(a,nt),ut=jc(z+y);0<y.length&&ut<=x;)z+=y,nt=nt.substr(y.length),y=qf(a,nt),ut=z+y,E&&(ut=ut.trim()),ut=jc(ut);for(E&&(y=y.trim()),z+=y,x=Math.max(1,x-at);jc(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=tg;var ct=jc(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);jc(y)>x;){var yt=1;for(ut=jc(y.substr(0,yt)),ct=0;ut<=x;)yt++,ct=ut,ut=jc(y.substr(0,yt));if(yt===1){var kt=ut;z=Math.max(z,ut)}else kt=ct,z=Math.max(z,ct);if(yt--,1>yt&&(yt=1),Jg(a,y.substr(0,yt),kt),at++,y=y.substr(yt),a.Gc+at>a.maxLines)break}for(ct=qf(a,nt),ut=jc(y+ct);0<ct.length&&ut<=x;)y+=ct,nt=nt.substr(ct.length),ct=qf(a,nt),ut=y+ct,E&&(ut=ut.trim()),ut=jc(ut);if(E&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),ct.length===0?(yt=ut,z=Math.max(z,ut)):(yt=ct=jc(y),z=Math.max(z,ct)),Jg(a,y,yt),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===n0)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 jc(a){return Lh===null?8*a.length:Lh.measureText(a).width}function mA(a){if(a.df!==null)return a.df;var y=a.Ae;if(Lh===null){var x=16;return a.df=x}return TA[y]!==void 0&&5e3>cf?x=TA[y]:(x=1.3*Lh.measureText("M").width,TA[y]=x,cf++),a.df=x}function dm(a){if(Lh===null)return 6;if(OA[a]!==void 0&&5e3>Mg)var y=OA[a];else y=Lh.measureText(tg).width,OA[a]=y,Mg++;return y}function Am(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=Zi.alloc();Lg(a,z,y,at),E+=at.height,Zi.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}De.Object.defineProperties(ua.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"||(Dc(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:bi},set:function(a){var y=this.flip;y!==a&&(Dc(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:Ja},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),Dc(this),this.da.Yr=a,Dl(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=Zi.alloc();Lg(this,this.ec,999999,a);var y=a.width;Zi.free(a),a=Am(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&&(Dc(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&&(Dc(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 Us&&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&&(Dc(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&&(Dc(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 YA),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 YA),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 YA),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 YA),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 YA),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&&(Dc(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&&(Dc(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&&(Dc(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&&(Dc(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&&(Dc(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&&Pi(a,"> 0",ua,"maxLines"),Dc(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 pi(ua,"None",0),e0=new pi(ua,"WrapFit",1),Lp=new pi(ua,"WrapDesiredSize",2),n0=new pi(ua,"WrapBreakAll",3),Mp=new pi(ua,"OverflowClip",0),Np=new pi(ua,"OverflowEllipsis",1),hf=new pi(ua,"FormatTrim",0),Ip=new pi(ua,"FormatNone",0),kp=/[ \u200b\u00ad]/,TA=new uo,cf=0,OA=new uo,Mg=0,tg="...",fm="",Lh=null,Ng=!1;ua.className="TextBlock";function tp(){this.nc=!1,this.Hd=null,this.Xf=bi,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=Ja,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},ua.getEllipsis=function(){return tg},ua.setEllipsis=function(a){tg=a,OA=new uo,Mg=0},ua.getBaseline=function(){return Fp},ua.setBaseline=function(a){Fp=a},ua.getUnderline=function(){return qg},ua.setUnderline=function(a){qg=a},ua.isValidFont=function(a){if(Ng||(Lh=js?new yc(null).context:null,Ng=!0),Lh===null)return!0;var y=Lh.font;if(a===y||a==="10px sans-serif")return!0;Lh.font="10px sans-serif",Lh.font=a;var x=Lh.font;if(x!=="10px sans-serif")return Lh.font=y,!0;Lh.font="19px serif";var b=Lh.font;return Lh.font=a,x=Lh.font,Lh.font=y,x!==b},ua.FormatNone=Ip,ua.FormatTrim=hf,ua.None=Ef,ua.OverflowClip=Mp,ua.OverflowEllipsis=Np,ua.WrapBreakAll=n0,ua.WrapDesiredSize=Lp,ua.WrapFit=e0;function YA(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}YA.prototype.copy=function(){var a=new YA;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},YA.className="GradElementSettings";function uc(a,y){wn.call(this),this.Eg=null,this.qo="",this.Xg=_s,this.Nk=Mi,this.Zg=this.Hd=null,this.Mk=Fo,this.Xf=bi,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;Tn(uc,wn),uc.prototype.cloneProtected=function(a){wn.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===bi||a===br||a===Jo?this.imageStretch=a:wn.prototype.qb.call(this,a)},uc.prototype.toString=function(){return"Picture("+this.source+")#"+vs(this)};function Op(a){a===void 0&&(a=""),a!==""?Tp[a]&&(delete Tp[a],i0--):(Tp=new uo,i0=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()||(jl(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=ar();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);Lr(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 xh;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 ut=at,ct=ot;this.sourceRect.w()&&(z=this.Xg.x,nt=this.Xg.y,at=this.Xg.width,ot=this.Xg.height);var yt=at,kt=ot,zt=this.Nk,Xt=this.Mk;switch(zt){case bi:if(this.sourceRect.w())break;yt>=b.width&&(z=z+Xt.offsetX+(yt*Xt.x-b.width*Xt.x)),kt>=b.height&&(nt=nt+Xt.offsetY+(kt*Xt.y-b.height*Xt.y)),at=Math.min(b.width,yt),ot=Math.min(b.height,kt);break;case Mi:yt=b.width,kt=b.height;break;case br:case Jo:zt===br?(zt=Math.min(b.height/kt,b.width/yt),yt*=zt,kt*=zt):zt===Jo&&(zt=Math.max(b.height/kt,b.width/yt),yt*=zt,kt*=zt,yt>=b.width&&(z=(z+Xt.offsetX+(yt*Xt.x-b.width*Xt.x)/yt)*at),kt>=b.height&&(nt=(nt+Xt.offsetY+(kt*Xt.y-b.height*Xt.y)/kt)*ot),at*=1/(yt/b.width),ot*=1/(kt/b.height),yt=b.width,kt=b.height)}zt=this.Df()*y.scale;var he=yt*zt*kt*zt,ze=at*ot/he,Fe=x.__goCache;zt=null;var Ze=Ew;if(!E){if(x.sq&&Fe!==void 0&&4<he&&ze>Ze*Ze)for(Fe.gi===null&&(Oy(Fe,4,ut,ct,x),Oy(Fe,16,ut,ct,x)),E=Fe.gi,ut=E.length,ct=0;ct<ut&&E[ct].ratio*E[ct].ratio<ze;ct++)zt=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(tn){this.en=!1}try{E.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(tn){this.vl=!0}}if(this.vl)return}}switch(E=yt<b.width?Xt.offsetX+(b.width*Xt.x-yt*Xt.x):0,Xt=kt<b.height?Xt.offsetY+(b.height*Xt.y-kt*Xt.y):0,this.flip){case rs:a.translate(Math.min(b.width,yt),0),a.scale(-1,1);break;case Mo:a.translate(0,Math.min(b.height,kt)),a.scale(1,-1);break;case Ts:a.translate(Math.min(b.width,yt),Math.min(b.height,kt)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&Fe!==void 0&&zt!==null&&zt.ratio!==1){a.save(),y=zt.ratio;try{a.drawImage(zt.source,z/y,nt/y,Math.min(zt.source.width,at/y),Math.min(zt.source.height,ot/y),E,Xt,Math.min(b.width,yt),Math.min(b.height,kt)),a instanceof xh&&(this.bt=[z/y,nt/y,Math.min(zt.source.width,at/y),Math.min(zt.source.height,ot/y),E,Xt,Math.min(b.width,yt),Math.min(b.height,kt)])}catch(tn){this.en=!1}a.restore()}else try{a.drawImage(x,z,nt,at,ot,E,Xt,Math.min(b.width,yt),Math.min(b.height,kt)),a instanceof xh&&(this.bt=[z,nt,at,ot,E,Xt,Math.min(b.width,yt),Math.min(b.height,kt)])}catch(tn){this.en=!1}switch(this.flip){case rs:a.scale(-1,1),a.translate(-Math.min(b.width,yt),0);break;case Mo:a.scale(1,-1),a.translate(0,-Math.min(b.height,kt));break;case Ts:a.scale(-1,-1),a.translate(-Math.min(b.width,yt),-Math.min(b.height,kt))}}}}},uc.prototype.Wl=function(a,y,x,b){var E=this.desiredSize,z=Xu(this,!0),nt=this.Eg,ot=this.qn,at=0,ut=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,ut=ot?+nt.height:nt.naturalHeight),isFinite(E.width)||z===Mi||z===Tr?(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===Mi||z===$r?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:nt!==null&&(y=ut)),b=0):nt!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:ut),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){zl(this,a,y,x,b)},De.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||qe("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 xi),b!==null&&x&&ad(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()||(jl(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(js){var b=null;if(x[a]!==void 0)b=x[a];else if(a!==""){30<i0&&(Op(),x=Tp),b=Oi("img"),b.hn=!0,ky(this,b);var E=this.rl;E!==null&&(b.crossOrigin=E(this)),b.src=a,x[a]=b,i0++}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 i0=0,Ew=4;uc.className="Picture",Tp=new uo,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 Vi,this.mc=null}Dp.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new Vi,this.mc=null};function jp(a,y,x,b,E,z){a.mc=new tl,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 As(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 As(oa);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 As(Au);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 r0(a,y,x,b,E){var z;z===void 0&&(z=!1);var nt=new As(fh);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 As(wl);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 As(Th,nt,ot,y,x,b,E,z),at&&y.close(),a.mc.segments.add(y)}function jy(a){var y=o0;return y!==null?(o0=null,y.reset(a),y):(y=new Dp,y.reset(a),y)}var o0=null;Dp.className="StreamGeometryContext";function Ch(a,y){var x=a.toLowerCase(),b=En.Ze;b[a]=y,b[x]=a}Ch("Rectangle",function(a,y,x){a="r"+y+","+x;var b=En.Mf[a];return b!==void 0||(b=new Vi(Vi.u),b.endX=y,b.endY=x,En.Nf<En.vm&&(En.Mf[a]=b,En.Nf++)),b}),Ch("Square",function(a,y,x){a="s"+y+","+x;var b=En.Mf[a];return b!==void 0||(b=new Vi(Vi.u),b.endX=y,b.endY=x,b.defaultStretch=br,En.Nf<En.vm&&(En.Mf[a]=b,En.Nf++)),b}),Ch("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=En.Mf[b];if(E!==void 0)return E;var z=a*En.wg;return E=new Vi().add(new tl(a,0,!0).add(new As(oa,y-a,0)).add(new As(Au,y,a,y-z,0,y,z)).add(new As(oa,y,x-a)).add(new As(Au,y-a,x,y,x-z,y-z,x)).add(new As(oa,a,x)).add(new As(Au,0,x-a,z,x,0,x-z)).add(new As(oa,0,a)).add(new As(Au,a,0,0,z,z,0).close())),1<z&&(E.spot1=new fr(0,0,z,z),E.spot2=new fr(1,1,-z,-z)),En.Nf<En.vm&&(En.Mf[b]=E,En.Nf++),E}),Ch("Border","RoundedRectangle"),Ch("Ellipse",function(a,y,x){a="e"+y+","+x;var b=En.Mf[a];return b!==void 0||(b=new Vi(Vi.F),b.endX=y,b.endY=x,b.spot1=Ac,b.spot2=rh,En.Nf<En.vm&&(En.Mf[a]=b,En.Nf++)),b}),Ch("Circle",function(a,y,x){a="c"+y+","+x;var b=En.Mf[a];return b!==void 0||(b=new Vi(Vi.F),b.endX=y,b.endY=x,b.spot1=Ac,b.spot2=rh,b.defaultStretch=br,En.Nf<En.vm&&(En.Mf[a]=b,En.Nf++)),b}),Ch("TriangleRight",function(a,y,x){return new Vi().add(new tl(0,0).add(new As(oa,y,.5*x)).add(new As(oa,0,x).close())).pm(0,.25,.5,.75)}),Ch("TriangleDown",function(a,y,x){return new Vi().add(new tl(0,0).add(new As(oa,y,0)).add(new As(oa,.5*y,x).close())).pm(.25,0,.75,.5)}),Ch("TriangleLeft",function(a,y,x){return new Vi().add(new tl(y,x).add(new As(oa,0,.5*x)).add(new As(oa,y,0).close())).pm(.5,.25,1,.75)}),Ch("TriangleUp",function(a,y,x){return new Vi().add(new tl(y,x).add(new As(oa,0,x)).add(new As(oa,.5*y,0).close())).pm(.25,.5,.75,1)}),Ch("Triangle","TriangleUp"),Ch("Diamond",function(a,y,x){return new Vi().add(new tl(.5*y,0).add(new As(oa,0,.5*x)).add(new As(oa,.5*y,x)).add(new As(oa,y,.5*x).close())).pm(.25,.25,.75,.75)}),Ch("LineH",function(a,y,x){return a=new Vi(Vi.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),Ch("LineV",function(a,y,x){return a=new Vi(Vi.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),Ch("None","Rectangle"),Ch("BarH","Rectangle"),Ch("BarV","Rectangle"),Ch("MinusLine","LineH"),Ch("PlusLine",function(a,y,x){return new Vi().add(new tl(0,x/2,!1).add(new As(oa,y,x/2)).add(new As(Bl,y/2,0)).add(new As(oa,y/2,x)))}),Ch("XLine",function(a,y,x){return new Vi().add(new tl(0,x,!1).add(new As(oa,y,0)).add(new As(Bl,0,0)).add(new As(oa,y,x)))}),Ch("LineRight",function(a,y,x){return new Vi().add(new tl(.25*y,0,!1).add(new As(oa,.75*y,.5*x)).add(new As(oa,.25*y,x)))}),Ch("LineDown",function(a,y,x){return new Vi().add(new tl(0,.25*x,!1).add(new As(oa,.5*y,.75*x)).add(new As(oa,y,.25*x)))}),Ch("LineLeft",function(a,y,x){return new Vi().add(new tl(.75*y,0,!1).add(new As(oa,.25*y,.5*x)).add(new As(oa,.75*y,x)))}),Ch("LineUp",function(a,y,x){return new Vi().add(new tl(0,.75*x,!1).add(new As(oa,.5*y,.25*x)).add(new As(oa,y,.75*x)))}),En.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=nl,this.Pq=ra,this.Kq=al,this.Up=null,this.Cq=127,this.zr=ll,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 Vr(a,y){a===void 0||a instanceof bn||typeof a=="string"?ei.call(this,a):(ei.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 Ne(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)}Tn(Vr,ei),Vr.prototype.cloneProtected=function(a){ei.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},$t=Vr.prototype,$t.Af=function(a){ei.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},$t.toString=function(){var a=nr(this.constructor)+"#"+vs(this);return this.data!==null&&(a+="("+Pr(this.data)+")"),a};function hc(a){a.P===null?a.P=new yv:a.P.nc&&(a.P=a.P.copy())}$t.th=function(){ei.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},$t.gk=function(a,y,x,b,E,z,nt){var ot=this.diagram;ot!==null&&(a===pl&&y==="elements"?E instanceof ei?la(E,function(at){Wv(ot.partManager,at),pc(ot,at)}):ad(ot,E):a===Hl&&y==="elements"&&(E instanceof ei?la(E,function(at){Vv(ot.partManager,at,ot)}):hA(ot,E)),ot.cb(a,y,x,b,E,z,nt))},$t.La=function(a){if(ei.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 ei&&la(E,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},Vr.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},Vr.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},Vr.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 xr),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)))}}},Vr.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)}},Vr.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=ar();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);Lr(y)}},Vr.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 Do?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof bs))break t;lh(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=ei.Link),x.adornedObject=y)}if(x!==null){x.type===ei.Link&&x.v(),this.bh("Selection",x);break t}}this.Jf("Selection")}for(Mw(this,a),y=this.adornments;y.next();)y.value.La()}},Vr.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 s0(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)}}Vr.prototype.Ge=function(a,y,x,b){var E=this.uc;E.h(a,y,x,b),this.Lb===null&&(this.Lb=new zo);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),this.Lb=z,z.ws()||z.pp(E)},Vr.prototype.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Fo;this.locationSpot.sb()&&(z=this.locationSpot);var nt=Ne.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),Ne.free(nt)}},Vr.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},Vr.prototype.moveTo=function(a,y,x){a=Ne.allocAt(a,y),this.move(a,x),Ne.free(a)},Vr.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())},Vr.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())},Vr.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new xr),y.I(a)!==null)return y.I(a);var x=ei.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 Ne),x=x.Mc()?Fo: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}Vr.prototype.mi=function(a){return a===void 0&&(a=new ai),a.assign(this.actualBounds)},Vr.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function Ry(a){var y=Ne.alloc(),x=a.locationObject,b=x.naturalBounds,E=x instanceof Ko?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}Vr.prototype.arrange=function(){if(zu(this)===!1)Uy(this);else{$c(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()||En.B(y.width,a.width)&&En.B(y.height,a.height)||0<=this.vw&&this.C(16),ai.free(y),Sv(this,!1)}},$t=Vr.prototype,$t.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()||kh(a,y)||(this instanceof hr&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},$t.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 Ne(b.x+(a.x-y),b.y+(a.y-x)),this.g("location",b,this.ke.copy())),eg(this)===!1&&zu(this)===!1&&(s0(this),Uy(this)),!0};function _y(a,y,x,b,E){y===null||a instanceof bs||(y=y.animationManager,y.zb&&Iu(y,a,new Ne(b,E),x))}$t.mm=function(a,y,x){var b=this.ke,E=this.pa;if(x){if(b.x===a&&b.y===y)return;eg(this)||zu(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)}s0(this)},$t.Av=function(){this.G&=-2097153,s0(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,Ne.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||Iu(x,a,new Ne(z,nt),y),b||y.x===z&&y.y===nt||a.g("position",new Ne(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 hr&&fo(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var b=x.viewportBounds;b.w()?ng(a)?(Ms(y,b)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(b)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}$t.si=function(){return!0},$t.Zc=function(){return!0},$t.ph=function(){return!1},$t.Dd=function(){return!0};function xv(a,y,x,b){y.constructor===a.constructor||Vy||(Vy=!0,er('Should not change the class of the Part when changing category from "'+x+'" to "'+b+'"'),er(" Old class: "+nr(a.constructor)+", new class: "+nr(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,ut=!1;a instanceof hr&&(ot=a.isTreeLeaf,at=a.isTreeExpanded,ut=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 hr&&(a.U=ot?a.U|4:a.U&-5,a.U=at?a.U|1:a.U&-2,a.U=ut?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)}Vr.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},Vr.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},Vr.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},Vr.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},Vr.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},Vr.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},Vr.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},Vr.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},Vr.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}$t=Vr.prototype,$t.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function a0(a,y){a.G=y?a.G|1048576:a.G&-1048577}$t.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},$t.N=function(){var a=this.diagram;a!==null&&!zu(this)&&!eg(this)&&this.isVisible()&&this.Ib.w()&&a.N(Ig(this,this.Ib))},$t.v=function(){ei.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof hr&&this.labeledLink!==null&&Dl(this.labeledLink),a.$b(!0))},$t.Vo=function(a){a||(a=this.Ah,a!==null&&Lv(a,this))},$t.Wo=function(a){a||(a=this.Ah,a!==null&&Mv(a,this))},$t.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},$t.oz=function(){return Bv(this,this)};function Bv(a,y){var x=y.containingGroup;return x!==null?1+Bv(a,x):y instanceof hr&&(y=y.labeledLink,y!==null)?Bv(a,y):0}$t.sz=function(){return Gy(this,this)};function Gy(a,y){var x=y.containingGroup;return x!==null||y instanceof hr&&(x=y.labeledLink,x!==null)?Gy(a,x):y}$t.Td=function(a){return a instanceof Do?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 hr&&(y=y.labeledLink,y!==null)?Pv(a,y,x):!1:!0}$t.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof Do&&a0(y,!0),y instanceof hr){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 hr&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof Do&&a0(y,!1),y instanceof hr&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},Vr.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof hr&&this.isLinkLabel)},Vr.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 hr&&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 hr){if(x&&y instanceof Do)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,ut=ot.toNode;at=at===null||a.contains(at),ut=ut===null||a.contains(ut),(E?at&&ut:at||ut)&&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 Gi)for(y=y.labelNodes;y.next();)ig(a,y.value,x,b,E,z)}}De.Object.defineProperties(Vr.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?di: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(Hl,"parts",y,this,null,b,!0),b=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=b&&x.cb(pl,"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&&Ou(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!==ei.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:ra},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:al},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:nl},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,zu(this)===!1&&(s0(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 Gi||(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 Gi?(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&&qe("Cannot make a Group a member of itself: "+this.toString()),qe("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 Do&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Lv(a,this):this instanceof Do&&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 Do){for(x=new xi,ig(x,this,!0,0,!0),x=x.iterator;x.next();)if(b=x.value,b instanceof hr)for(b=b.linksConnected;b.next();)Up(b.value)}if(this instanceof hr){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&&Ou(y,-1,a))}}else qe("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 hr&&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:ll},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))}}}),Vr.prototype.invalidateLayout=Vr.prototype.C,Vr.prototype.findCommonContainingGroup=Vr.prototype.px,Vr.prototype.isMemberOf=Vr.prototype.Td,Vr.prototype.findTopLevelPart=Vr.prototype.sz,Vr.prototype.findSubGraphLevel=Vr.prototype.oz,Vr.prototype.ensureBounds=Vr.prototype.Va,Vr.prototype.getDocumentBounds=Vr.prototype.mi,Vr.prototype.findObject=Vr.prototype.fb,Vr.prototype.moveTo=Vr.prototype.moveTo,Vr.prototype.invalidateAdornments=Vr.prototype.Wb,Vr.prototype.clearAdornments=Vr.prototype.Ej,Vr.prototype.removeAdornment=Vr.prototype.Jf,Vr.prototype.addAdornment=Vr.prototype.bh,Vr.prototype.findAdornment=Vr.prototype.Pj,Vr.prototype.updateTargetBindings=Vr.prototype.La;var Vy=!1;Vr.className="Part",Vr.LayoutNone=0,Vr.LayoutAdded=1,Vr.LayoutRemoved=2,Vr.LayoutShown=4,Vr.LayoutHidden=8,Vr.LayoutNodeSized=16,Vr.LayoutGroupLayout=32,Vr.LayoutNodeReplaced=64,Vr.LayoutStandard=127,Vr.LayoutAll=16777215;function bs(a,y){a===void 0||a instanceof bn||typeof a=="string"?Vr.call(this,a):(Vr.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)}Tn(bs,Vr),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 Gi&&y instanceof Ko){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 Ko&&(E.ua=a)}}},bs.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!zu(a))},bs.prototype.Zc=function(){return!1},bs.prototype.gk=function(a,y,x,b,E,z,nt){if(a===pl&&y==="elements"){if(E instanceof Gh)this.$a===null&&(this.$a=E);else if(E instanceof ei){var ot=E.Nl(function(at){return at instanceof Gh});ot instanceof Gh&&this.$a===null&&(this.$a=ot)}}else a===Hl&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof ei&&this.$a.rg(b)&&(this.$a=null));Vr.prototype.gk.call(this,a,y,x,b,E,z,nt)},bs.prototype.updateAdornments=function(){},bs.prototype.Lj=function(){},De.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=Uu,this.er=h0,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 hr(a,y){a===void 0||a instanceof bn||typeof a=="string"?Vr.call(this,a):(Vr.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)}Tn(hr,Vr),hr.prototype.cloneProtected=function(a){Vr.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},$t=hr.prototype,$t.Af=function(a){Vr.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())}$t.th=function(){Vr.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function Zy(a,y){y!==null&&(a.af===null&&(a.af=new xi),a.af.add(y))}function Xy(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}$t.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=Xy(this,a,y,x),a!==null&&a.Sl()},$t.gk=function(a,y,x,b,E,z,nt){a===pl&&y==="elements"?this.wc=null:a===Hl&&y==="elements"&&(this.wc=null),Vr.prototype.gk.call(this,a,y,x,b,E,z,nt)},$t.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(Uc(x.fromPort),Uc(x.toPort),x.bb())}};function $y(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(Uc(x.fromPort),Uc(x.toPort),x.bb())}}function Uc(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||Uc(y.port)}}$t.si=function(){return!0},hr.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},hr.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},hr.prototype.isVisible=function(){if(!Vr.prototype.isVisible.call(this))return!1;var a=!0,y=kc,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===kc){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},hr.prototype.Zb=function(a){Vr.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)}},hr.prototype.qx=function(){var a=new xi,y=new xi;return Yy(this,this,a,y),y.iterator};function Yy(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)&&Yy(a,E?nt.toNode:nt.fromNode,x,b):b.add(nt)})}}hr.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new jr(this.jb),x=this;return y.predicate=function(b){return b.fromNode===x&&b.fromPortId===a||b.toNode===x&&b.toPortId===a},y},$t=hr.prototype,$t.Mo=function(a){a===void 0&&(a=null);var y=new jr(this.jb),x=this;return y.predicate=function(b){return b.fromNode!==x?!1:a===null?!0:b.fromPortId===a},y},$t.Sd=function(a){a===void 0&&(a=null);var y=new jr(this.jb),x=this;return y.predicate=function(b){return b.toNode!==x?!1:a===null?!0:b.toPortId===a},y},$t.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 xi,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 xi,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Co(x):di},$t.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 xi,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Co(x):di},$t.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 xi,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Co(x):di},$t.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new jr(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},$t.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new jr(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 l0(a,y,x){Uc(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 u0(a,y,x){Uc(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)):gm(y)))}function gm(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}}}hr.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},$t=hr.prototype,$t.Vo=function(a){Vr.prototype.Vo.call(this,a),a||(gm(this),a=this.Yk,a!==null&&s1(a,this))},$t.Wo=function(a){Vr.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},$t.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,Vr.prototype.Lj.call(this)},$t.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 xr: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=ar()),x.push(b);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);Lr(x)}}}$t.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},$t.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}},$t.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)a0(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;)a0(y,!1),y=y.pg();return x},$t.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},$t.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof hr)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},$t.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 xi;return a(this,y),y},$t.uz=function(){return t1(this,this)};function t1(a,y){return y=y.pg(),y===null?0:1+t1(a,y)}$t.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new jr(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},$t.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 Co(x):di},$t.wz=function(a){a===void 0&&(a=1/0);var y=new xi;return ig(y,this,!1,a,!0),y},hr.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 xi;x.add(this),e1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===kc),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 ut=ot.value;if(ut.isTreeLink&&(ut=ut.To(a),ut!==null&&ut!==a)){var ct=y.contains(ut);if(ct||y.add(ut),nt){var yt=x?ut.Oo():ut.Po();at.uv=a,yt.all(function(kt){return function(zt){return zt===kt.uv||!zt.isTreeExpanded}}(at))&&b.Aj(ut,E),ut.oh(),ut.Zb(!1)}ut.isTreeExpanded&&(ut.wasTreeExpanded=ut.isTreeExpanded,ct||n1(ut,y,x,b,E,z))}at={uv:at.uv}}a.isTreeExpanded=!1}hr.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 xi;x.add(this),i1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===kc),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(),ut={};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 yt=x?ct.Oo():ct.Po();ut.vv=a,yt.all(function(kt){return function(zt){return zt===kt.vv||!zt.isTreeExpanded}}(ut))&&E.Cj(ct,z)}(2<b||ct.wasTreeExpanded)&&(ct.wasTreeExpanded=!1,i1(ct,y,x,b-1,E,z,nt))}ut={vv:ut.vv}}a.isTreeExpanded=!0}De.Object.defineProperties(hr.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:h0},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&&fo(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:Uu},set:function(a){typeof a=="number"&&(a=new Rr(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Mf(this),this.Ba.yp=a;var x=this.diagram;x!==null&&fo(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),Dl(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))}}}),hr.prototype.expandTree=hr.prototype.expandTree,hr.prototype.collapseTree=hr.prototype.collapseTree,hr.prototype.findTreeParts=hr.prototype.wz,hr.prototype.findTreeChildrenNodes=hr.prototype.Ou,hr.prototype.findTreeChildrenLinks=hr.prototype.Qo,hr.prototype.findTreeLevel=hr.prototype.uz,hr.prototype.findTreeParentChain=hr.prototype.vz,hr.prototype.findTreeParentNode=hr.prototype.pg,hr.prototype.findTreeParentLink=hr.prototype.kh,hr.prototype.findCommonTreeParent=hr.prototype.gz,hr.prototype.findTreeRoot=hr.prototype.xz,hr.prototype.isInTreeOf=hr.prototype.Nz,hr.prototype.findPort=hr.prototype.ns,hr.prototype.findLinksTo=hr.prototype.kz,hr.prototype.findLinksBetween=hr.prototype.jz,hr.prototype.findNodesInto=hr.prototype.Oo,hr.prototype.findNodesOutOf=hr.prototype.Po,hr.prototype.findNodesConnected=hr.prototype.Mu,hr.prototype.findLinksInto=hr.prototype.Sd,hr.prototype.findLinksOutOf=hr.prototype.Mo,hr.prototype.findExternalTreeLinksConnected=hr.prototype.qx,hr.prototype.invalidateConnectedLinks=hr.prototype.Bd,hr.prototype.invalidateLinkBundle=hr.prototype.Lz;var Nw=new pi(hr,"SpreadingNone",10),h0=new pi(hr,"SpreadingEvenly",11),Fv=new pi(hr,"SpreadingPacked",12);hr.className="Node",hr.SpreadingNone=Nw,hr.SpreadingEvenly=h0,hr.SpreadingPacked=Fv;function Do(a,y){a===void 0||a instanceof bn||typeof a=="string"?hr.call(this,a):(hr.call(this),a&&(y=a)),this.U|=4608,this.Gn=new xi,this.$a=null,this.Sc=new Ka,this.Sc.group=this,this.gl=new xi,this.tb=this.$p=null,y&&Object.assign(this,y)}Tn(Do,hr),Do.prototype.cloneProtected=function(a){hr.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof Gh});y instanceof Gh?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())},$t=Do.prototype,$t.Af=function(a){hr.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 hr)x.Bd(y);else if(x instanceof Gi)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},$t.gk=function(a,y,x,b,E,z,nt){if(a===pl&&y==="elements"){if(E instanceof Gh)this.$a===null?this.$a=E:this.$a!==E&&qe("Cannot insert a second Placeholder into the visual tree of a Group.");else if(E instanceof ei){var ot=E.Nl(function(at){return at instanceof Gh});ot instanceof Gh&&(this.$a===null?this.$a=ot:this.$a!==ot&&qe("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===Hl&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof ei&&this.$a.rg(b)&&(this.$a=null));hr.prototype.gk.call(this,a,y,x,b,E,z,nt)},$t.Xl=function(a,y){hr.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==ei.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof ei&&(a=a.Pb()),this.tb===null&&(this.tb=new ai),a.mi(this.tb),a instanceof Ko&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},$t.eh=function(a,y,x,b){this.nf=this.$a,hr.prototype.eh.call(this,a,y,x,b)},$t.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof Gi||y.Va()}),hr.prototype.Va.call(this)},$t.si=function(){if(!hr.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof hr){if(y.isVisible()&&zu(y))return!1}else if(y instanceof Gi&&y.isVisible()&&zu(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Lv(a,y){if(a.Gn.add(y)){y instanceof Do&&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 Gi&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Mv(a,y){if(a.Gn.remove(y)){y instanceof Do&&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 Gi&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}$t.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)}hr.prototype.Lj.call(this)},Do.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=$n(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},Do.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var b=!0;for(a=$n(a).iterator;a.next();){var E=a.value;!y||x.isValidMember(this,E)?E.containingGroup=this:b=!1}return b},Do.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))},$t=Do.prototype,$t.Bd=function(a){var y=(this.U&65536)!==0;if(hr.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()?(Uc(x.fromPort),Uc(x.toPort),x.bb()):(b=x.toNode,b!==null&&b!==this&&b.Td(this)&&!b.isVisible()&&(Uc(x.fromPort),Uc(x.toPort),x.bb()))}}},$t.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 xi,b=y.iterator;b.next();){var E=b.value;if(E instanceof hr)for(E=E.linksConnected;E.next();){var z=E.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},$t.iz=function(){var a=this.Rj();a.add(this);for(var y=new xi,x=a.iterator;x.next();){var b=x.value;if(b instanceof hr)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},$t.hz=function(){function a(x,b){x!==null&&(b.add(x),a(x.containingGroup,b))}var y=new xi;return a(this,y),y},$t.Rj=function(){var a=new xi;return ig(a,this,!0,0,!0),a.remove(this),a},$t.Zb=function(a){hr.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},Do.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 Do&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,r1(z,y,x,b)),z instanceof hr)z.Bd(y),x.Aj(z,b);else if(z instanceof Gi)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}Do.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 Do&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,o1(z,y,x,b)),z instanceof hr)z.Bd(y),x.Cj(z,b);else if(z instanceof Gi)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}Do.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=Ne.alloc(),hr.prototype.move.call(this,a,y),a=new xi,y=this.Rj().iterator;y.next();)E=y.value,E instanceof Gi&&(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 hr&&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 Gi&&(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());Ne.free(z)}},De.Object.defineProperties(Do.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&&qe("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)}}}),Do.prototype.expandSubGraph=Do.prototype.expandSubGraph,Do.prototype.collapseSubGraph=Do.prototype.collapseSubGraph,Do.prototype.findSubGraphParts=Do.prototype.Rj,Do.prototype.findContainingGroupChain=Do.prototype.hz,Do.prototype.findExternalNodesConnected=Do.prototype.iz,Do.prototype.findExternalLinksConnected=Do.prototype.Lu,Do.prototype.ensureBounds=Do.prototype.Va,Do.className="Group";function Gh(a){wn.call(this),this.yb=yu,this.ko=new ai(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}Tn(Gh,wn),Gh.prototype.cloneProtected=function(a){wn.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},Gh.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return Gs(0,0,y.width,y.height,a.x,a.y)},Gh.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof Do||a instanceof bs)||qe("Placeholder is not inside a Group or Adornment."),a instanceof Do){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=Ne.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),Ne.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 Ko&&(nt=z.strokeWidth);var ot=z.Df(),at=z.naturalBounds,ut=(at.width+nt)*ot;nt=(at.height+nt)*ot,a.type!==ei.Link&&(ot=z.ga(a.category==="Selection"?nl:a.locationSpot,Ne.alloc()),a.location=ot,Ne.free(ot)),isNaN(ut)||isNaN(nt)?(a=z.ga(nl,Ne.alloc()),ut=ai.allocAt(a.x,a.y,0,0),ut.Ye(z.ga(Zl,a)),ut.Ye(z.ga(ru,a)),ut.Ye(z.ga(Ya,a)),Ta(y,ut.width+b||0,ut.height+E||0),this.Ge(-x.left,-x.top,y.width,y.height),Ne.free(a),ai.free(ut)):(Ta(y,ut+b||0,nt+E||0),this.Ge(-x.left,-x.top,y.width,y.height))}},Gh.prototype.eh=function(a,y,x,b){this.actualBounds.h(a,y,x,b)},Gh.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,b=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof Do&&!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 Do&&!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 Do&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},Gh.prototype.computeMemberBounds=function(a){if(!(this.part instanceof Do))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 Gi&&(!y.computesBoundsIncludingLinks||wh(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},De.Object.defineProperties(Gh.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Rr(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),Gh.className="Placeholder";function Gi(a){Vr.call(this,ei.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Wh,this.Om=0,this.Qm=Wh,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 Vi,this.u=this.o=this.Sf=this.Wf=null,this.su=new Ne,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Tn(Gi,Vr),Gi.prototype.cloneProtected=function(a){Vr.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())},$t=Gi.prototype,$t.Af=function(a){Vr.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&&Uc(y),a=a.toPort,a!==null&&Uc(a)},$t.qb=function(a){a.classType===Gi?(a.value&2)===2?this.routing=a:a===qc||a===If||a===_p?this.curve=a:a===vm||a===p0||a===m0?this.adjusting=a:a!==Ov&&a!==Wh&&qe("Unknown Link enum value for a Link property: "+a):Vr.prototype.qb.call(this,a)},$t.Xc=function(){this.ba===null&&(this.ba=new Vf)},$t.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),zu(a)||eg(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),zu(a)||eg(a)))},$t.zv=function(){return!1},$t.Av=function(){},$t.Zc=function(){return!1},Gi.prototype.computeAngle=function(a,y,x){return Gi.computeAngle(y,x)},Gi.computeAngle=function(a,y){switch(a){default:case Wh:a=0;break;case ym:a=y;break;case wm:a=y+90;break;case xm:a=y-90;break;case Dv:a=y+180;break;case v0:a=En.bp(y),90<a&&270>a&&(a-=180);break;case Sm:a=En.bp(y+90),90<a&&270>a&&(a-=180);break;case Cm:a=En.bp(y-90),90<a&&270>a&&(a-=180);break;case y0:if(a=En.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return En.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}$t=Gi.prototype,$t.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Vr.prototype.oh.call(this)},$t.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},$t.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function s1(a,y){a.wd===null&&(a.wd=new xi),a.wd.add(y),a.v()}$t.Vo=function(a){if(Vr.prototype.Vo.call(this,a),kg(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,l0(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||l0(x,this,b)}pm(this)}},$t.Wo=function(a){if(Vr.prototype.Wo.call(this,a),kg(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,u0(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||u0(x,this,b)}mm(this)}},$t.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))},Gi.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Gi.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?Vr.prototype.move.call(this,a,!1):(a=Ne.allocAt(x.x+b,x.y+E),Vr.prototype.move.call(this,a,!1),Ne.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)},Gi.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},Gi.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},Gi.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(bl),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()===qc))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()===qc){if(y===3){x=this.i(0),b=this.i(1);var E=this.i(2);return En.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),En.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},Gi.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()===qc))return this.ua.wx(.5);if(this.computeCurve()===qc&&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),En.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)},$t=Gi.prototype,$t.i=function(a){return this.Nb.s[a]},$t.dd=function(a,y){this.Nb.cd(a,y)},$t.L=function(a,y,x){this.Nb.cd(a,new Ne(y,x))},$t.Kz=function(a,y){this.Nb.Gb(a,y)},$t.m=function(a,y,x){this.Nb.Gb(a,new Ne(y,x))},$t.ne=function(a){this.Nb.add(a)},$t.yf=function(a,y){this.Nb.add(new Ne(a,y))},$t.pv=function(a){this.Nb.mb(a)},$t.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 Ne(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),Dl(a)),b?c0(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),nt!==null&&nt.animationManager.zb&&Hs(nt.animationManager,a,E),a.g("points",z,E)}}$t.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},$t.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,ut=at.length,ct=0;ct<ut;ct++){var yt=at[ct];nt=Math.min(yt.x,nt),ot=Math.min(yt.y,ot),yt.freeze()}if(y.freeze(),ut===z){for(z=0;z<ut;z++)if(ct=E[z],yt=at[z],ct.x-x!==yt.x-nt||ct.y-b!==yt.y-ot){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&Hs(x.animationManager,this,y),c0(this),this.g("points",a,y)}},$t.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function c0(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),g0(a,!1))}$t.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())}},$t.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()}}},Gi.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(ip||(ip=new hr,ip.desiredSize=bo,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 hr,rp.desiredSize=bo,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),ut=y===E&&y!==null,ct=this.isOrthogonal,yt=this.curve===qc;this.Wf=ut&&!ct?yt=!0:!1;var kt=this.computeAdjusting()===Wh||ut;if(!ct&&!ut&&ot&&at){if(ot=!1,!kt&&3<=z&&(kt=this.getLinkPoint(a,y,nt,!0,!1,b,E),at=this.getLinkPoint(b,E,x,!1,!1,a,y),ot=this.adjustPoints(0,kt,z-1,at))&&(kt=this.getLinkPoint(a,y,nt,!0,!1,b,E),at=this.getLinkPoint(b,E,x,!1,!1,a,y),this.adjustPoints(0,kt,z-1,at)),!ot)if(this.Fj(),yt){z=this.getLinkPoint(a,y,nt,!0,!1,b,E),kt=this.getLinkPoint(b,E,x,!1,!1,a,y),ot=kt.x-z.x,at=kt.y-z.y,ut=this.computeCurviness(),yt=ct=0;var zt=z.x+ot/3,Xt=z.y+at/3,he=zt,ze=Xt;En.B(at,0)?ze=0<ot?ze-ut:ze+ut:(ct=-ot/at,yt=Math.sqrt(ut*ut/(ct*ct+1)),0>ut&&(yt=-yt),he=(0>at?-1:1)*yt+zt,ze=ct*(he-zt)+Xt),zt=z.x+2*ot/3,Xt=z.y+2*at/3;var Fe=zt,Ze=Xt;En.B(at,0)?Ze=0<ot?Ze-ut:Ze+ut:(Fe=(0>at?-1:1)*yt+zt,Ze=ct*(Fe-zt)+Xt),this.Fj(),this.ne(z),this.yf(he,ze),this.yf(Fe,Ze),this.ne(kt),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,kt=E,b=this.getLinkPoint(a,y,nt,!0,!1,z,kt),E=this.getLinkPoint(z,kt,x,!1,!1,a,y),this.hasCurviness()?(kt=E.x-b.x,x=E.y-b.y,nt=this.computeCurviness(),a=b.x+kt/2,y=b.y+x/2,z=a,ot=y,En.B(x,0)?ot=0<kt?ot-nt:ot+nt:(kt=-kt/x,z=Math.sqrt(nt*nt/(kt*kt+1)),0>nt&&(z=-z),z=(0>x?-1:1)*z+a,ot=kt*(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),kt.mi(ot),ut=ot.ca(b),(at||ut)&&(nt=y.ga(A0(nt),new Ne),this.dd(0,this.getLinkPointFromPoint(a,y,nt,E,!0,nt)),x=kt.ga(A0(x),new Ne),this.dd(1,this.getLinkPointFromPoint(z,kt,x,b,!1,x))),ai.free(ot))}else{yt=this.isAvoiding,kt&&(ct&&yt||ut)&&this.Fj();var tn=ut?this.computeCurviness():0;yt=this.getLinkPoint(a,y,nt,!0,ct,b,E),zt=he=Xt=0,(ct||!ot||ut)&&(ze=this.computeEndSegmentLength(a,y,nt,!0),zt=this.getLinkDirection(a,y,yt,nt,!0,ct,b,E),ut&&(ot||nt.D(x)||!ct&&nt.x+x.x===1&&nt.y+x.y===1)&&(zt-=ct?90:30,0>tn&&(zt-=180)),0>zt?zt+=360:360<=zt&&(zt-=360),ut&&(ze+=Math.abs(tn)*(ct?1:2)),zt===0?Xt=ze:zt===90?he=ze:zt===180?Xt=-ze:zt===270?he=-ze:(Xt=ze*Math.cos(zt*Math.PI/180),he=ze*Math.sin(zt*Math.PI/180)),nt.Mc()&&ut&&(ze=y.ga(Fo,Ne.alloc()),Fe=Ne.allocAt(ze.x+1e3*Xt,ze.y+1e3*he),this.getLinkPointFromPoint(a,y,ze,Fe,!0,yt),Ne.free(ze),Ne.free(Fe))),ze=this.getLinkPoint(b,E,x,!1,ct,a,y);var on=Ze=Fe=0;if(ct||!at||ut){var Sn=this.computeEndSegmentLength(b,E,x,!1);on=this.getLinkDirection(b,E,ze,x,!1,ct,a,y),ut&&(at||nt.D(x)||!ct&&nt.x+x.x===1&&nt.y+x.y===1)&&(on+=ct?0:30,0>tn&&(on+=180)),0>on?on+=360:360<=on&&(on-=360),ut&&(Sn+=Math.abs(tn)*(ct?1:2)),on===0?Fe=Sn:on===90?Ze=Sn:on===180?Fe=-Sn:on===270?Ze=-Sn:(Fe=Sn*Math.cos(on*Math.PI/180),Ze=Sn*Math.sin(on*Math.PI/180)),x.Mc()&&ut&&(x=E.ga(Fo,Ne.alloc()),nt=Ne.allocAt(x.x+1e3*Fe,x.y+1e3*Ze),this.getLinkPointFromPoint(b,E,x,nt,!1,ze),Ne.free(x),Ne.free(nt))}x=yt,(ct||!ot||ut)&&(x=new Ne(yt.x+Xt,yt.y+he)),nt=ze,(ct||!at||ut)&&(nt=new Ne(ze.x+Fe,ze.y+Ze)),!kt&&!ct&&ot&&3<z&&this.adjustPoints(0,yt,z-2,nt)?this.dd(z-1,ze):!kt&&!ct&&at&&3<z&&this.adjustPoints(1,x,z-1,ze)?this.dd(0,yt):!kt&&(ct?6<=z:4<z)&&this.adjustPoints(1,x,z-2,nt)?(this.dd(0,yt),this.dd(z-1,ze)):(this.Fj(),this.ne(yt),(ct||!ot||ut)&&this.ne(x),ct&&this.addOrthoPoints(x,zt,nt,on,a,b),(ct||!at||ut)&&this.ne(nt),this.ne(ze))}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}Gi.prototype.getLinkPointFromPoint=function(a,y,x,b,E,z){if(z===void 0&&(z=new Ne),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,ut=a.m11*E,ct=E*(a.m21*a.dy-a.m22*a.dx),yt=E*(a.m12*a.dx-a.m11*a.dy);E=b.x*nt+b.y*at+ct,b=b.x*ot+b.y*ut+yt,nt=x.x*nt+x.y*at+ct,x=x.x*ot+x.y*ut+yt}return y.Sj(E,b,nt,x,z),a!==null&&z.transform(a),z};function d0(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)}Gi.prototype.getLinkPoint=function(a,y,x,b,E,z,nt,ot){if(ot===void 0&&(ot=new Ne),x.sb()&&!Rp(x))return y.ga(x,ot),ot;if(x.$c()){var at=d0(this,y);if(at!==null){if(ot.assign(at.Zo),E&&this.routing===l1){var ut=d0(this,nt);if(ut!==null&&at.Gl<ut.Gl){at=Ne.alloc(),ut=Ne.alloc();var ct=new ai(y.ga(nl,at),y.ga(Zl,ut)),yt=this.computeSpot(!b,nt);a=this.getLinkPoint(z,nt,yt,!b,E,a,y,ut),(x.Hf(bu)||x.Hf(du))&&a.y>=ct.y&&a.y<=ct.y+ct.height?ot.y=a.y:(x.Hf(Pu)||x.Hf(tu))&&a.x>=ct.x&&a.x<=ct.x+ct.width&&(ot.x=a.x),Ne.free(at),Ne.free(ut)}}return ot}}return x=y.ga(A0(x),Ne.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=Ne.alloc(),nt=nt.ga(A0(at),z),E&&(nt=Nv(x,nt)),Ne.free(z)),this.getLinkPointFromPoint(a,y,x,nt,b,ot),Ne.free(x),ot},Gi.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=d0(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(Fo,Ne.alloc()),this.pointsCount>(z?6:2)?(ot=E?this.i(1):this.i(this.pointsCount-2),ot=z?Nv(at,ot.copy()):x):(x=Ne.alloc(),ot=ot.ga(Fo,x),Ne.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,Ne.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},Gi.prototype.computeEndSegmentLength=function(a,y,x,b){return y!==null&&x.$c()&&(a=d0(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)},Gi.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=Fo:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Bs?Wa:y)):(a=y||this.toPort,a===null?a=Fo:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Bs?Wa:y)),a};function Rp(a){return a===Wa||a.x===.5&&a.y===.5}function A0(a){return a.x===.5&&a.y===.5?a:Fo}Gi.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Wh&&4<this.pointsCount?this.computeMidPoint(new Ne):(a=y.Zn,a=a!==null?f1(a,this):null,a!==null?a.Zo:y.ga(Fo))},Gi.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},Gi.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=zo.alloc(),nt.reset()),nt.multiply(this.transform),this.fh(a,nt))return Ad(this,y,x,E),z===void 0&&zo.free(nt),!0;if(this.Yc(a,nt)){var ot=!1;if(!this.isAtomic)for(var at=this.O.s,ut=at.length;ut--;){var ct=at[ut];if(ct.visible||ct===this.locationObject){var yt=ct.actualBounds,kt=this.naturalBounds;if(!(yt.x>kt.width||yt.y>kt.height||0>yt.x+yt.width||0>yt.y+yt.height)){if(yt=zo.alloc(),yt.set(nt),ct instanceof ei)ot=ct.Cf(a,y,x,b,E,yt);else if(this.path===ct){if(ct instanceof Ko)if(ot=a,kt=b,ct.pickable===!1)ot=!1;else if(yt.multiply(ct.transform),kt)t:{var zt=ot,Xt=yt;if(ct.fh(zt,Xt))ot=!0;else{if(Xt===void 0&&(Xt=ct.transform,zt.Re(ct.actualBounds))){ot=!0;break t}ot=zt.left,kt=zt.right;var he=zt.top;zt=zt.bottom;var ze=Ne.alloc(),Fe=Ne.alloc(),Ze=Ne.alloc(),tn=zo.alloc();tn.set(Xt),tn.bv(ct.transform),tn.Vj(),Fe.x=kt,Fe.y=he,Fe.transform(tn),ze.x=ot,ze.y=he,ze.transform(tn),Xt=!1,bf(ct,ze,Fe,Ze)?Xt=!0:(ze.x=kt,ze.y=zt,ze.transform(tn),bf(ct,ze,Fe,Ze)?Xt=!0:(Fe.x=ot,Fe.y=zt,Fe.transform(tn),bf(ct,ze,Fe,Ze)?Xt=!0:(ze.x=ot,ze.y=he,ze.transform(tn),bf(ct,ze,Fe,Ze)&&(Xt=!0)))),zo.free(tn),Ne.free(ze),Ne.free(Fe),Ne.free(Ze),ot=Xt}}else ot=ct.fh(ot,yt)}else ot=Ol(ct,a,b,yt);ot&&(kt=ct,y!==null&&(kt=y(ct)),kt&&(x===null||x(kt))&&E.add(kt)),zo.free(yt)}}}return z===void 0&&zo.free(nt),ot||this.background!==null||this.areaBackground!==null}return z===void 0&&zo.free(nt),!1},Gi.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?qc:this.curve},Gi.prototype.computeCorner=function(){if(this.curve===qc)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Gi.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},Gi.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===ym||b===v0||b===Dv?a=Math.max(a,E):b===xm||b===Cm||b===wm||b===Sm?a=Math.max(a,nt):(y=y.ga(Fo).ab(x.ga(Fo))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*nt)+Math.abs(Math.cos(y)*E)+1)),this.curve===qc&&(a*=1.333)}}return a},Gi.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===Wh&&x.bb()}},Gi.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=u1;var y=this.Sf;if(y!==null){for(var x=ar(),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),Lr(x)}}return a},Gi.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},Gi.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},Gi.prototype.adjustPoints=function(a,y,x,b){var E=this.computeAdjusting();if(this.isOrthogonal){if(E===p0)return!1;E===m0&&(E=vm)}switch(E){case p0: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,ut=Math.sqrt(ot*ot+at*at);if(!En.$(ut,0)){if(En.$(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 yt=y.y;ot=b.x-nt;var kt=b.y-yt;for(at=Math.sqrt(ot*ot+kt*kt),En.$(ot,0)?kt=0>kt?-Math.PI/2:Math.PI/2:(kt=Math.atan(kt/Math.abs(ot)),0>ot&&(kt=Math.PI-kt)),ut=at/ut,ct=kt-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),En.$(y,0)||(En.$(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*=ut,this.L(a,nt+y*Math.cos(ot),yt+y*Math.sin(ot)));this.dd(x,b)}}return!0;case m0:if(z=this.i(a),yt=this.i(x),!z.Xa(y)||!yt.Xa(b)){E=z.x,z=z.y,nt=yt.x,yt=yt.y,ut=(nt-E)*(nt-E)+(yt-z)*(yt-z),ot=y.x,ct=y.y,at=b.x,kt=b.y;var zt=1;if(at-ot!==0){var Xt=(kt-ct)/(at-ot);zt=Math.sqrt(1+1/(Xt*Xt))}else Xt=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var he=y.x,ze=y.y,Fe=.5;ut!==0&&(Fe=((E-he)*(E-nt)+(z-ze)*(z-yt))/ut);var Ze=E+Fe*(nt-E),tn=z+Fe*(yt-z);y=Math.sqrt((he-Ze)*(he-Ze)+(ze-tn)*(ze-tn)),ze<Xt*(he-Ze)+tn&&(y=-y),0<Xt&&(y=-y),he=ot+Fe*(at-ot),Fe=ct+Fe*(kt-ct),Xt!==0?(y=he+y/zt,this.L(a,y,Fe-(y-he)/Xt)):this.L(a,he,Fe+y)}this.dd(x,b)}return!0;case vm:t:{if(this.isOrthogonal&&(E=this.i(a),z=this.i(a+1),nt=this.i(a+2),ot=z.x,ct=z.y,yt=ot,ut=ct,En.B(E.y,z.y)?En.B(z.x,nt.x)?ct=y.y:En.B(z.y,nt.y)&&(ot=y.x):En.B(E.x,z.x)&&(En.B(z.y,nt.y)?ot=y.x:En.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,kt=ct,En.B(E.y,z.y)?En.B(z.x,nt.x)?ct=b.y:En.B(z.y,nt.y)&&(ot=b.x):En.B(E.x,z.x)&&(En.B(z.y,nt.y)?ot=b.x:En.B(z.x,nt.x)&&(ct=b.y)),this.L(x-1,ot,ct),Iv(this))){this.L(a+1,yt,ut),this.L(x-1,at,kt),x=!1;break t}this.dd(a,y),this.dd(x,b),x=!0}return x;default:return!1}},Gi.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(Bm,Bm),at.Bc(Bm,Bm),ot.Ye(a),at.Ye(x);var ut=Ne.alloc(),ct=Ne.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?(ut.h(x.x,a.y),ct.h(x.x,(a.y+x.y)/2),b===180?(ut.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ct.x=ut.x,ct.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(ut.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=ut.x,ct.y=x.y):b===0&&a.x<at.left&&a.y>at.top&&a.y<at.bottom&&(ut.x=a.x,ut.y=a.y<x.y?Math.min(x.y,at.top):Math.max(x.y,at.bottom),ct.y=ut.y)):(ut.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))?ut.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===180||b===90)?ut.y=this.computeMidOrthoPosition(a.x,ot.top,x.x,Math.max(x.y,at.bottom),!0):x.y>a.y&&(b===180||b===270)&&(ut.y=this.computeMidOrthoPosition(a.x,ot.bottom,x.x,Math.min(x.y,at.top),!0)),ct.x=x.x,ct.y=ut.y),ut.y>ot.top&&ut.y<ot.bottom&&(x.x>=ot.left&&x.x<=a.x||a.x<=at.right&&a.x>=x.x?(b===90||b===270)&&(ut.h(Math.max((a.x+x.x)/2,a.x),a.y),ct.h(ut.x,x.y)):(ut.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=ut.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?(ut.h(x.x,a.y),ct.h(x.x,(a.y+x.y)/2),b===0?(ut.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ct.x=ut.x,ct.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(ut.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=ut.x,ct.y=x.y):b===180&&a.x>at.right&&a.y>at.top&&a.y<at.bottom&&(ut.x=a.x,ut.y=a.y<x.y?Math.min(x.y,at.top):Math.max(x.y,at.bottom),ct.y=ut.y)):(ut.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))?ut.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===0||b===90)?ut.y=this.computeMidOrthoPosition(a.x,ot.top,x.x,Math.max(x.y,at.bottom),!0):x.y>a.y&&(b===0||b===270)&&(ut.y=this.computeMidOrthoPosition(a.x,ot.bottom,x.x,Math.min(x.y,at.top),!0)),ct.x=x.x,ct.y=ut.y),ut.y>ot.top&&ut.y<ot.bottom&&(x.x<=ot.right&&x.x>=a.x||a.x>=at.left&&a.x<=x.x?(b===90||b===270)&&(ut.h(Math.min((a.x+x.x)/2,a.x),a.y),ct.h(ut.x,x.y)):(ut.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=ut.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?(ut.h(a.x,x.y),ct.h((a.x+x.x)/2,x.y),b===270?(ut.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ct.x=x.x,ct.y=ut.y):b===180&&x.x<a.x||b===0&&x.x>a.x?(ut.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=ut.y):b===90&&a.y<at.top&&a.x>at.left&&a.x<at.right&&(ut.x=a.x<x.x?Math.min(x.x,at.left):Math.max(x.x,at.right),ut.y=a.y,ct.x=ut.x)):(ut.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))?ut.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===270||b===0)?ut.x=this.computeMidOrthoPosition(ot.left,a.y,Math.max(x.x,at.right),x.y,!1):x.x>a.x&&(b===270||b===180)&&(ut.x=this.computeMidOrthoPosition(ot.right,a.y,Math.min(x.x,at.left),x.y,!1)),ct.x=ut.x,ct.y=x.y),ut.x>ot.left&&ut.x<ot.right&&(x.y>=ot.top&&x.y<=a.y||a.y<=at.bottom&&a.y>=x.y?(b===0||b===180)&&(ut.h(a.x,Math.max((a.y+x.y)/2,a.y)),ct.h(x.x,ut.y)):(ut.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=ut.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?(ut.h(a.x,x.y),ct.h((a.x+x.x)/2,x.y),b===90?(ut.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ct.x=x.x,ct.y=ut.y):b===180&&x.x<a.x||b===0&&x.x>=a.x?(ut.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=ut.y):b===270&&a.y>at.bottom&&a.x>at.left&&a.x<at.right&&(ut.x=a.x<x.x?Math.min(x.x,at.left):Math.max(x.x,at.right),ut.y=a.y,ct.x=ut.x)):(ut.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))?ut.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===90||b===0)?ut.x=this.computeMidOrthoPosition(ot.left,a.y,Math.max(x.x,at.right),x.y,!1):x.x>a.x&&(b===90||b===180)&&(ut.x=this.computeMidOrthoPosition(ot.right,a.y,Math.min(x.x,at.left),x.y,!1)),ct.x=ut.x,ct.y=x.y),ut.x>ot.left&&ut.x<ot.right&&(x.y<=ot.bottom&&x.y>=a.y||a.y>=at.top&&a.y<=x.y?(b===0||b===180)&&(ut.h(a.x,Math.min((a.y+x.y)/2,a.y)),ct.h(x.x,ut.y)):(ut.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=ut.x,ct.y=x.y)));var yt=x;if(this.isAvoiding){var kt=this.diagram;if(kt===null||E===z||this.layer.isTemporary||!vi(kt)||ot.ca(yt)&&!z.Td(E)||at.ca(a)&&!E.Td(z))y=!1;else{var zt=_i(kt,!0,this.containingGroup,null);if(this.segmentIndex!==17&&zt.Yj(Math.min(a.x,ut.x),Math.min(a.y,ut.y),Math.abs(a.x-ut.x),Math.abs(a.y-ut.y))&&zt.Yj(Math.min(ut.x,ct.x),Math.min(ut.y,ct.y),Math.abs(ut.x-ct.x),Math.abs(ut.y-ct.y))&&zt.Yj(Math.min(ct.x,yt.x),Math.min(ct.y,yt.y),Math.abs(ct.x-yt.x),Math.abs(ct.y-yt.y)))y=!1;else{E=a,z=yt;var Xt=x=null;if(kt.isVirtualized){kt=zt.bounds.copy(),kt.Bc(-zt.Ho,-zt.Go);var he=Ne.alloc();Hp(zt,a.x,a.y)||(En.Ff(kt.x,kt.y,kt.x+kt.width,kt.y+kt.height,a.x,a.y,ut.x,ut.y,he)?(x=a=he.copy(),y=he.ab(ut)):En.Ff(kt.x,kt.y,kt.x+kt.width,kt.y+kt.height,ut.x,ut.y,ct.x,ct.y,he)?(x=a=he.copy(),y=he.ab(ct)):En.Ff(kt.x,kt.y,kt.x+kt.width,kt.y+kt.height,ct.x,ct.y,yt.x,yt.y,he)&&(x=a=he.copy(),y=he.ab(yt))),Hp(zt,yt.x,yt.y)||(En.Ff(kt.x,kt.y,kt.x+kt.width,kt.y+kt.height,yt.x,yt.y,ct.x,ct.y,he)?(Xt=yt=he.copy(),b=ct.ab(he)):En.Ff(kt.x,kt.y,kt.x+kt.width,kt.y+kt.height,ct.x,ct.y,ut.x,ut.y,he)?(Xt=yt=he.copy(),b=ut.ab(he)):En.Ff(kt.x,kt.y,kt.x+kt.width,kt.y+kt.height,ut.x,ut.y,a.x,a.y,he)&&(Xt=yt=he.copy(),b=a.ab(he))),Ne.free(he)}ot=ot.copy().ed(at),ot.Bc(zt.Ho*zt.Os,zt.Go*zt.Os),d1(zt,a,y,yt,b,ot,!0),at=JA(zt,yt.x,yt.y),!zt.abort&&at>=Qp&&(c1(zt),ot.Bc(zt.Ho*zt.Hx,zt.Go*zt.Ix),d1(zt,a,y,yt,b,ot,!1),at=JA(zt,yt.x,yt.y)),!zt.abort&&at<Qp&&JA(zt,yt.x,yt.y)!==kf?(kv(this,zt,yt.x,yt.y,b,!0,nt),ot=this.i(2),4>this.pointsCount?(y===0||y===180?(ot.x=a.x,ot.y=yt.y):(ot.x=yt.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?En.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)):En.B(ot.y,nt.y)?(Math.abs(a.y-ot.y)<=zt.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)&&(En.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)):En.B(ot.x,nt.x)?(Math.abs(a.x-ot.x)<=zt.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(ut.copy()),this.ne(ct.copy())),Ne.free(ut),Ne.free(ct)}},Gi.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=_i(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,ut=JA(y,x,b),ct=x,yt=b;for(E===0?ct+=ot:E===90?yt+=at:E===180?ct-=ot:yt-=at,E!==nt&&ut>Tg&&JA(y,ct,yt)!==ut-1&&(JA(y,x-ot,b)===ut-1?(E=180,ct=x-ot,yt=b):JA(y,x+ot,b)===ut-1?(E=0,ct=x+ot,yt=b):JA(y,x,b-at)===ut-1?(E=270,ct=x,yt=b-at):JA(y,x,b+at)===ut-1&&(E=90,ct=x,yt=b+at));ut>Tg&&JA(y,ct,yt)===ut-1;)x=ct,b=yt,E===0?ct+=ot:E===90?yt+=at:E===180?ct-=ot:yt-=at,--ut;z?ut>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),ut>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)===ut-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)===ut-1&&kv(a,y,nt,ct,z,!1,z))),a.yf(x,b)}Gi.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),b=this.i(1),E=Vs(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=Vs(y,a,b.x,b.y,x.x,x.y);b=x,ot<E&&(z=nt,E=ot)}return z},Gi.prototype.qc=function(){this.lk=!1,this.v()},Gi.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 Ko&&(E.ua=this.ua)}}},Gi.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===qc&&3<=y&&!En.$(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=Vi.o,ot=jy(a),this.computeShortLength(!0)!==0&&(E=ep(this,E,!0,z)),jp(ot,E.x,E.y,!1),nt===qc&&3<=y&&!En.$(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=Ne.allocAt(b,at),x=Ne.alloc(),x.assign(this.i(1)),z=Ne.allocAt(b,at),E=Ne.allocAt(b,at),nt=this.i(0);for(var ut,ct=this.smoothness/3,yt=1;yt<this.pointsCount-1;yt++){ut=this.i(yt);var kt=nt,zt=ut,Xt=this.i(Tv(this,ut,yt,!1));if((!En.$(kt.x,zt.x)||!En.$(zt.x,Xt.x))&&(!En.$(kt.y,zt.y)||!En.$(zt.y,Xt.y))){var he=ct;isNaN(he)&&(he=this.smoothness/3);var ze=kt.x;kt=kt.y;var Fe=zt.x;zt=zt.y;var Ze=Xt.x;Xt=Xt.y;var tn=he*f0(ze,kt,Fe,zt);he*=f0(Fe,zt,Ze,Xt),En.$(kt,zt)&&En.$(Fe,Ze)&&(Fe>ze?Xt>zt?(z.x=Fe-tn,z.y=zt-tn,E.x=Fe+he,E.y=zt+he):(z.x=Fe-tn,z.y=zt+tn,E.x=Fe+he,E.y=zt-he):Xt>zt?(z.x=Fe+tn,z.y=zt-tn,E.x=Fe-he,E.y=zt+he):(z.x=Fe+tn,z.y=zt+tn,E.x=Fe-he,E.y=zt-he)),En.$(ze,Fe)&&En.$(zt,Xt)&&(zt>kt?(Ze>Fe?(z.x=Fe-tn,z.y=zt-tn,E.x=Fe+he):(z.x=Fe+tn,z.y=zt-tn,E.x=Fe-he),E.y=zt+he):(Ze>Fe?(z.x=Fe-tn,z.y=zt+tn,E.x=Fe+he):(z.x=Fe+tn,z.y=zt+tn,E.x=Fe-he),E.y=zt-he)),(En.$(ze,Fe)&&En.$(Fe,Ze)||En.$(kt,zt)&&En.$(zt,Xt))&&(ze=.5*(ze+Ze),kt=.5*(kt+Xt),z.x=ze,z.y=kt,E.x=ze,E.y=kt),(yt===1||yt===2&&En.$(nt.x,this.i(0).x)&&En.$(nt.y,this.i(0).y))&&(x.x=.5*(nt.x+ut.x),x.y=.5*(nt.y+ut.y)),Ff(ot,x.x-b,x.y-at,z.x-b,z.y-at,ut.x-b,ut.y-at),y.set(z),x.set(E),nt=ut}}ut=nt.x,nt=nt.y,ct=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ct=ep(this,ct.copy(),!1,ls)),ut=.5*(ut+ct.x),nt=.5*(nt+ct.y),Ff(ot,E.x-b,E.y-at,ut-b,nt-at,ct.x-b,ct.y-at),Ne.free(y),Ne.free(x),Ne.free(z),Ne.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,ls)),Ff(ot,z.x-b,z.y-at,E.x-b,E.y-at,nt.x-b,nt.y-at);else{for(z=Ne.alloc(),z.assign(this.i(0)),E=Ne.alloc(),E.assign(z),nt=this.computeCorner(),yt=1,ut=0;yt<y;){if(yt=Tv(this,z,yt,1<yt),ct=this.i(yt),yt>=y-1){if(!z.D(ct))this.computeShortLength(!1)!==0&&(ct=ep(this,ct.copy(),!1,ls)),np(this,ot,-b,-at,z,ct,x);else if(ut===0)for(yt=1;yt<y;)E.assign(z),ct=this.i(yt++),np(this,ot,-b,-at,z,ct,x),z.assign(ct);break}if(ut=Tv(this,ct,yt+1,yt<y-3),yt=-b,ze=-at,kt=ct,Fe=this.i(ut),he=x,En.B(z.y,kt.y)&&En.B(kt.x,Fe.x))if(Xt=Math.min(nt,Math.abs(kt.x-E.x)/2),Xt=tn=Math.min(Xt,Math.abs(Fe.y-kt.y)/2),En.B(Xt,0))np(this,ot,yt,ze,z,kt,he),z.assign(kt);else{var on=kt.x,Sn=kt.y;zt=on,Ze=Sn,kt.x>z.x?on=kt.x-Xt:on=kt.x+Xt,Fe.y>kt.y?Ze=kt.y+tn:Ze=kt.y-tn,Fe=Ne.allocAt(on,Sn),np(this,ot,yt,ze,z,Fe,he),Ne.free(Fe),r0(ot,kt.x+yt,kt.y+ze,zt+yt,Ze+ze),z.h(zt,Ze)}else En.B(z.x,kt.x)&&En.B(kt.y,Fe.y)?(Xt=Math.min(nt,Math.abs(kt.y-E.y)/2),Xt=tn=Math.min(Xt,Math.abs(Fe.x-kt.x)/2),En.B(tn,0)?(np(this,ot,yt,ze,z,kt,he),z.assign(kt)):(on=kt.x,Sn=kt.y,zt=on,Ze=Sn,kt.y>z.y?Sn=kt.y-Xt:Sn=kt.y+Xt,Fe.x>kt.x?zt=kt.x+tn:zt=kt.x-tn,Fe=Ne.allocAt(on,Sn),np(this,ot,yt,ze,z,Fe,he),Ne.free(Fe),r0(ot,kt.x+yt,kt.y+ze,zt+yt,Ze+ze),z.h(zt,Ze))):(np(this,ot,yt,ze,z,kt,he),z.assign(kt));E.assign(ct),yt=ut}Ne.free(z)}o0=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=Vi.j,a.startX=E.x,a.startY=E.y,a.endX=ot.x,a.endY=ot.y;return this.lk=!0,a};function f0(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),En.$(a,0)?y:En.$(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=f0(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=f0(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;En.$(y.x,z.x)&&En.$(y.y,z.y);){if(x>=E)return E-1;z=a.i(x++)}if(!En.$(y.x,z.x)&&!En.$(y.y,z.y))return x-1;for(var nt=z;En.$(y.x,z.x)&&En.$(z.x,nt.x)&&(!b||(y.y>=z.y?z.y>=nt.y:z.y<=nt.y))||En.$(y.y,z.y)&&En.$(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}Gi.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=[],ut=0;if(a.isVisible()&&(ut=Iw(a,E,z,at)),0<ut){if(En.B(E.y,z.y))if(E.x<z.x)for(var ct=0;ct<ut;){var yt=Math.max(E.x,Math.min(at[ct++]-ot,z.x-nt));y.lineTo(yt+x,z.y+b);for(var kt=yt+x,zt=Math.min(yt+nt,z.x);ct<ut&&(yt=at[ct],yt<zt+nt);)ct++,zt=Math.min(yt+ot,z.x);yt=z.y-nt+b,zt+=x;var Xt=z.y+b;a.curve===If?jp(y,zt,Xt,!1):Ff(y,kt,yt,zt,yt,zt,Xt)}else for(--ut;0<=ut;){for(ct=Math.min(E.x,Math.max(at[ut--]+ot,z.x+nt)),y.lineTo(ct+x,z.y+b),kt=ct+x,yt=Math.max(ct-nt,z.x);0<=ut&&(ct=at[ut],ct>yt-nt);)ut--,yt=Math.max(ct-ot,z.x);ct=z.y-nt+b,yt+=x,zt=z.y+b,a.curve===If?jp(y,yt,zt,!1):Ff(y,kt,ct,yt,ct,yt,zt)}else if(En.B(E.x,z.x))if(E.y<z.y)for(ct=0;ct<ut;){for(yt=Math.max(E.y,Math.min(at[ct++]-ot,z.y-nt)),y.lineTo(z.x+x,yt+b),kt=yt+b,yt=Math.min(yt+nt,z.y);ct<ut&&(zt=at[ct],zt<yt+nt);)ct++,yt=Math.min(zt+ot,z.y);zt=z.x-nt+x,Xt=z.x+x,yt+=b,a.curve===If?jp(y,Xt,yt,!1):Ff(y,zt,kt,zt,yt,Xt,yt)}else for(--ut;0<=ut;){for(ct=Math.min(E.y,Math.max(at[ut--]+ot,z.y+nt)),y.lineTo(z.x+x,ct+b),kt=ct+b,ct=Math.max(ct-nt,z.y);0<=ut&&(yt=at[ut],yt>ct-nt);)ut--,ct=Math.max(yt-ot,z.y);yt=z.x-nt+x,zt=z.x+x,ct+=b,a.curve===If?jp(y,zt,ct,!1):Ff(y,yt,kt,yt,ct,zt,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 Gi){if(at===a)return 0<b.length&&b.sort(function(ct,yt){return ct-yt}),b.length;if(at.isVisible()&&kg(at)){var ut=at.routeBounds;ut.w()&&a.routeBounds.Yc(ut)&&!a.usesSamePort(at)&&(ut=at.path,ut!==null&&ut.Ed()&&kw(y,x,b,at))}}}}}return 0<b.length&&b.sort(function(ct,yt){return ct-yt}),b.length}function kw(a,y,x,b){for(var E=En.B(a.y,y.y),z=b.pointsCount,nt=b.i(0),ot=Ne.alloc(),at=1;at<z;at++){var ut=b.i(at);if(at<z-1){var ct=b.i(at+1);if(nt.y===ut.y&&ut.y===ct.y){if(ut.x>nt.x&&ct.x>=ut.x||ut.x<nt.x&&ct.x<=ut.x)continue}else if(nt.x===ut.x&&ut.x===ct.x&&(ut.y>nt.y&&ct.y>=ut.y||ut.y<nt.y&&ct.y<=ut.y))continue}t:{ct=a.x;var yt=a.y,kt=y.x,zt=y.y,Xt=nt.x;nt=nt.y;var he=ut.x,ze=ut.y;if(En.B(ct,kt)){if(!En.B(yt,zt)&&En.B(nt,ze)&&Math.min(yt,zt)<nt&&Math.max(yt,zt)>nt&&Math.min(Xt,he)<ct&&Math.max(Xt,he)>ct&&!En.B(Xt,he)){ot.x=ct,ot.y=nt,ct=!0;break t}}else if(En.B(yt,zt)&&En.B(Xt,he)&&Math.min(ct,kt)<Xt&&Math.max(ct,kt)>Xt&&Math.min(nt,ze)<yt&&Math.max(nt,ze)>yt&&!En.B(nt,ze)){ot.x=Xt,ot.y=yt,ct=!0;break t}ot.x=0,ot.y=0,ct=!1}ct&&(E?x.push(ot.x):x.push(ot.y)),nt=ut}Ne.free(ot)}function kg(a){return a=a.curve,a===_p||a===If}function g0(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()))}Gi.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 Gi&&(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 Gi&&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())}}Gi.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},Gi.prototype.isVisible=function(){if(!Vr.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},Gi.prototype.Zb=function(a){if(Vr.prototype.Zb.call(this,a),a&&g0(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},Gi.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?vm:this.qk};function pm(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 ut=nt[at];(ut.ef===y&&ut.ff===b&&ut.uf===x&&ut.vf===E||ut.ef===x&&ut.ff===E&&ut.uf===y&&ut.vf===b)&&(z===null?z=ut:(a===null&&(a=[],a.push(z)),a.push(ut)))}if(a!==null){for(z=Xy(y,x,b,E),z===null&&(z=new w0(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 mm(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(zr(y.links,a),y.Sl()))}Gi.prototype.ph=function(){return!0},De.Object.defineProperties(Gi.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&&u0(y,this,x),mm(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&&l0(a,this,E),pm(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&&Uc(x),mm(this),this.ff=a;var b=this.fromPort;b!==null&&Uc(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))),pm(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&&u0(y,this,x),mm(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&&l0(a,this,E),pm(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&&Uc(x),mm(this),this.vf=a;var b=this.toPort;b!==null&&Uc(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))),pm(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&&Uc(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&&Pi(a,">= 0",Gi,"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&&Uc(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&&Pi(a,">= 0",Gi,"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?di: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&&gm(this.fromNode),this.toNode!==null&&gm(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof Ko?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()===qc&&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),En.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);En.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 Ne)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||c0(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);En.$(b.x,E.x)?(b=E.y-b.y,0>b&&(b=-b)):En.$(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 Ne(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(!On(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 Ne(E.x,E.y).freeze())}}else if(a instanceof Ci)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else qe("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),c0(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&Hs(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(),g0(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(),g0(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)}}}),Gi.prototype.invalidateOtherJumpOvers=Gi.prototype.Xo,Gi.prototype.findClosestSegment=Gi.prototype.ez,Gi.prototype.updateRoute=Gi.prototype.vg,Gi.prototype.invalidateRoute=Gi.prototype.bb,Gi.prototype.rollbackRoute=Gi.prototype.rv,Gi.prototype.commitRoute=Gi.prototype.zf,Gi.prototype.startRoute=Gi.prototype.uh,Gi.prototype.clearPoints=Gi.prototype.Fj,Gi.prototype.removePoint=Gi.prototype.pv,Gi.prototype.addPointAt=Gi.prototype.yf,Gi.prototype.addPoint=Gi.prototype.ne,Gi.prototype.insertPointAt=Gi.prototype.m,Gi.prototype.insertPoint=Gi.prototype.Kz,Gi.prototype.setPointAt=Gi.prototype.L,Gi.prototype.setPoint=Gi.prototype.dd,Gi.prototype.getPoint=Gi.prototype.i,Gi.prototype.getOtherPort=Gi.prototype.Cz,Gi.prototype.getOtherNode=Gi.prototype.To;var ip=null,rp=null,Ov=new pi(Gi,"Normal",1),Tw=new pi(Gi,"Orthogonal",2),Ow=new pi(Gi,"AvoidsNodes",6),l1=new pi(Gi,"AvoidsNodesStraight",7),Wh=new pi(Gi,"None",0),qc=new pi(Gi,"Bezier",9),If=new pi(Gi,"JumpGap",10),_p=new pi(Gi,"JumpOver",11),vm=new pi(Gi,"End",17),p0=new pi(Gi,"Scale",18),m0=new pi(Gi,"Stretch",19),ym=new pi(Gi,"OrientAlong",21),wm=new pi(Gi,"OrientPlus90",22),xm=new pi(Gi,"OrientMinus90",23),Dv=new pi(Gi,"OrientOpposite",24),v0=new pi(Gi,"OrientUpright",25),Sm=new pi(Gi,"OrientPlus90Upright",26),Cm=new pi(Gi,"OrientMinus90Upright",27),y0=new pi(Gi,"OrientUpright45",28),u1=16,h1=14,Bm=8;Gi.className="Link",Gi.Normal=Ov,Gi.Orthogonal=Tw,Gi.AvoidsNodes=Ow,Gi.AvoidsNodesStraight=l1,Gi.None=Wh,Gi.Bezier=qc,Gi.JumpGap=If,Gi.JumpOver=_p,Gi.End=vm,Gi.Scale=p0,Gi.Stretch=m0,Gi.OrientAlong=ym,Gi.OrientPlus90=wm,Gi.OrientMinus90=xm,Gi.OrientOpposite=Dv,Gi.OrientUpright=v0,Gi.OrientPlus90Upright=Sm,Gi.OrientMinus90Upright=Cm,Gi.OrientUpright45=y0,Gi.EndSegmentStep=8,Gi.CurvinessStart=u1,Gi.SpacingMin=h1,Gi.OrthoShortCut=Bm;function w0(a,y,x,b){Yo(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=b,this.links=[]}w0.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},w0.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))}},w0.className="LinkBundle";function Pm(a){Yo(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}Pm.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)}Pm.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 ut=y|0,ct=x|0,yt=a.ac[ut][ct];if(yt>=Tg&&yt<Qp)for(E?ct+=b:ut+=b,yt+=1;z<=ut&&ut<=nt&&ot<=ct&&ct<=at&&!(yt>=a.ac[ut][ct]);)a.ac[ut][ct]=yt,yt+=1,E?ct+=b:ut+=b;if(ut=E?ct:ut,E)if(0<b)for(x+=b;x<ut;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>ut;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<ut;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>ut;y+=b)qA(a,y,x,1,!E,z,nt,ot,at),qA(a,y,x,-1,!E,z,nt,ot,at)}}function x0(a,y,x,b,E,z,nt,ot,at){y|=0,x|=0;var ut=kf,ct=Tg;for(a.ac[y][x]=ct;ut===kf&&y>z&&y<nt&&x>ot&&x<at;)ct+=1,a.ac[y][x]=ct,E?x+=b:y+=b,ut=a.ac[y][x]}function S0(a,y,x,b,E,z,nt,ot,at){y|=0,x|=0;var ut=kf,ct=Qp;for(a.ac[y][x]=ct;ut===kf&&y>z&&y<nt&&x>ot&&x<at;)a.ac[y][x]=ct,E?x+=b:y+=b,ut=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 ut=b.x,ct=b.y;if(Hp(a,ut,ct))if(ut-=a.Nd,ut/=a.rc,ct-=a.Od,ct/=a.sc,1>=Math.abs(ot-ut)&&1>=Math.abs(at-ct))a.abort=!0;else{var yt=z.x;b=z.y,y=z.x+z.width;var kt=z.y+z.height;yt-=a.Nd,yt/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,kt-=a.Od,kt/=a.sc,z=Math.max(0,Math.min(a.di,yt|0)),y=Math.min(a.di,Math.max(0,y|0)),yt=Math.max(0,Math.min(a.ei,b|0)),kt=Math.min(a.ei,Math.max(0,kt|0)),b=a.ac,ot|=0,at|=0,ut|=0,ct|=0;var zt=x===0||x===90?1:-1;if(x=x===90||x===270,b[ot][at]===kf?(x0(a,ot,at,zt,x,z,y,yt,kt),x0(a,ot,at,1,!x,z,y,yt,kt),x0(a,ot,at,-1,!x,z,y,yt,kt)):x0(a,ot,at,zt,x,ot,at,ot,at),b[ut][ct]===kf?(S0(a,ut,ct,E===0||E===90?1:-1,E===90||E===270,z,y,yt,kt),S0(a,ut,ct,1,!(E===90||E===270),z,y,yt,kt),S0(a,ut,ct,-1,!(E===90||E===270),z,y,yt,kt)):S0(a,ut,ct,zt,x,ut,ct,ut,ct),x=ar(),nt&&A1(a,ut,ct,E,ot,at,x))for((x[0]!==ut||x[1]!==ct)&&(x.unshift(ct),x.unshift(ut)),(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],ut=x[z+1];y>E?E++:y<E?E--:ut>nt?nt++:ut<nt&&nt--,b[E][nt]=a++,E!==y||nt!==ut;);else qA(a,ot,at,1,!1,z,y,yt,kt),qA(a,ot,at,-1,!1,z,y,yt,kt),qA(a,ot,at,1,!0,z,y,yt,kt),qA(a,ot,at,-1,!0,z,y,yt,kt);Lr(x)}}}}function A1(a,y,x,b,E,z,nt){for(var ot=a.ac,at=y,ut=x;;){if(at===E&&ut===z)return!0;var ct=at,yt=ut;if(b===0)if(ct<E)ct++;else break;else if(b===90)if(yt<z)yt++;else break;else if(b===180)if(ct>E)ct--;else break;else if(yt>z)yt--;else break;var kt=ot[ct][yt];if(kt===0||kt===Uv)break;at=ct,ut=yt}for(;;){if(ct=b,yt=at,kt=ut,b===0?kt<z?(ct=90,kt++):kt>z&&(ct=270,kt--):b===90?yt<E?(ct=0,yt++):yt>E&&(ct=180,yt--):b===180?kt<z?(ct=90,kt++):kt>z&&(ct=270,kt--):yt<E?(ct=0,yt++):yt>E&&(ct=180,yt--),yt=ot[yt][kt],ct!==b&&yt!==0&&yt!==Uv){if(nt.push(at),nt.push(ut),A1(a,at,ut,ct,E,z,nt))return!0;nt.pop(),nt.pop()}if(ot[at][ut]=Uv,b===0){if(at===y)return!1;at--}else if(b===90){if(ut===x)return!1;ut--}else if(b===180){if(at===y)return!1;at++}else{if(ut===x)return!1;ut++}}}De.Object.defineProperties(Pm.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;Pm.className="PositionArray";function op(){Yo(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 Do?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(nl,Ne.alloc()),at=a.port.ga(Zl,Ne.alloc());for(E=ai.allocAt(ot.x,ot.y,0,0),E.Ye(at),Ne.free(ot),Ne.free(at),ot=Ne.allocAt(E.x+E.width/2,E.y+E.height/2),at=a.port.li(),nt=nt.iterator;nt.next();){var ut=nt.value;if(ut.isVisible()&&ut.fromPort!==ut.toPort){var ct=ut.fromPort===a.port||ut.fromNode!==null&&ut.fromNode.Td(b),yt=ut.computeSpot(ct,a.port);if(yt.$c()&&(ct=ct?ut.toPort:ut.fromPort,ct!==null)){var kt=ct.part;if(kt!==null){var zt=kt.findVisibleNode();zt!==null&&zt!==kt&&(kt=zt,ct=kt.port),ct=ut.computeOtherPoint(kt,ct),kt=ot.ab(ct),kt-=at,0>kt?kt+=360:360<=kt&&(kt-=360),yt=Dw(E,yt,kt,ut.isOrthogonal),yt===0?(yt=4,180<kt&&(kt-=360)):yt===90?(yt=8,270<kt&&(kt-=360)):yt===180?yt=2:(yt=1,90>kt&&(kt+=360)),zt=a.pe[z],zt===void 0?(zt=new Rv(ut,kt,yt),a.pe[z]=zt):(zt.link=ut,zt.angle=kt,zt.Nc=yt),zt.hv.set(ct),z++}}}}for(Ne.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,yt=a.port,b=a.node.portSpreading,ot=Ne.alloc(),at=Ne.alloc(),nt=Ne.alloc(),ut=Ne.alloc(),yt.ga(nl,ot),yt.ga(ru,at),yt.ga(Zl,nt),yt.ga(Ya,ut),zt=kt=ct=yt=0,b===Fv)for(var Xt=0;Xt<z.length;Xt++){var he=z[Xt];if(he!==null){var ze=he.link.computeThickness();switch(he.Nc){case 8:kt+=ze;break;case 2:zt+=ze;break;case 1:yt+=ze;break;default:case 4:ct+=ze}}}var Fe=Xt=0,Ze=1,tn=he=0;for(ze=0;ze<z.length;ze++){var on=z[ze];if(on!==null){if(Xt!==on.Nc){switch(Xt=on.Nc,Xt){case 8:var Sn=nt;Fe=ut;break;case 2:Sn=ut,Fe=ot;break;case 1:Sn=ot,Fe=at;break;default:case 4:Sn=at,Fe=nt}switch(he=Fe.x-Sn.x,tn=Fe.y-Sn.y,Xt){case 8:kt>Math.abs(he)?(Ze=Math.abs(he)/kt,kt=Math.abs(he)):Ze=1;break;case 2:zt>Math.abs(tn)?(Ze=Math.abs(tn)/zt,zt=Math.abs(tn)):Ze=1;break;case 1:yt>Math.abs(he)?(Ze=Math.abs(he)/yt,yt=Math.abs(he)):Ze=1;break;default:case 4:ct>Math.abs(tn)?(Ze=Math.abs(tn)/ct,ct=Math.abs(tn)):Ze=1}Fe=0}var Wn=on.Zo;if(b===Fv){switch(on=on.link.computeThickness(),on*=Ze,Wn.set(Sn),Xt){case 8:Wn.x=Sn.x+he/2+kt/2-Fe-on/2;break;case 2:Wn.y=Sn.y+tn/2+zt/2-Fe-on/2;break;case 1:Wn.x=Sn.x+he/2-yt/2+Fe+on/2;break;default:case 4:Wn.y=Sn.y+tn/2-ct/2+Fe+on/2}Fe+=on}else{var rr=.5;b===h0&&(rr=(on.Uo+1)/(on.Gl+1)),Wn.x=Sn.x+he*rr,Wn.y=Sn.y+tn*rr}}}for(Ne.free(ot),Ne.free(at),Ne.free(nt),Ne.free(ut),Sn=a.pe,z=0;z<Sn.length;z++)b=Sn[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,Wa,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 Ne,this.Gl=this.Uo=0,this.Zo=new Ne,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 Ka(a){Yo(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new Ne(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}Ka.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},Ka.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Ka.prototype.qb=function(){},Ka.prototype.toString=function(){var a=nr(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},Ka.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())}}},Ka.prototype.createNetwork=function(){return new Ba(this)},Ka.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof Un?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof Do?y.lg(a.memberParts):y.lg(a.iterator),y},Ka.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")}},Ka.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()}},Ka.prototype.doLayout=function(a){var y=new xi;a instanceof Un?(rg(this,y,a.nodes,!0,this.rh,!0,!1,!0),rg(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof Do?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},Ka.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;bm(ot);var at=ot.measuredBounds,ut=at.width;at=at.height,ot.moveTo(b,E),ot instanceof Do&&(ot.rh=!1),b+=Math.max(ut,50)+20,nt=Math.max(nt,Math.max(at,50)),z>=y-1?(z=0,b=x,E+=nt+20,nt=0):z++}},Ka.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 Gi)&&(bm(ot),this.rh(ot))){var at=ot.measuredBounds,ut=at.width;at=at.height,ot.moveTo(x,b),ot instanceof Do&&(ot.rh=!1),x+=Math.max(ut,50)+20,z=Math.max(z,Math.max(at,50)),E>=a-1?(E=0,x=y,b+=z+20,z=0):E++}}},Ka.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Do&&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 hr?at.isLinkLabel||(at instanceof Do&&at.layout===null?rg(a,y,at.memberParts,!1,E,z,nt,ot):(bm(at),y.add(at))):nt&&at instanceof Gi?y.add(at):!ot||!at.Zc()||at instanceof hr||(bm(at),y.add(at)))}}function bm(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Ka.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},Ka.prototype.ex=function(a){var y=new xi;return a instanceof Un?(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 Do?rg(this,y,a.memberParts,!1,null,!0,!0,!0):rg(this,y,a.iterator,!1,null,!0,!0,!0),y},Ka.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(nl),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},De.Object.defineProperties(Ka.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())}}}),Ka.prototype.collectParts=Ka.prototype.ex,Ka.prototype.getLayoutBounds=Ka.prototype.ni,Ka.prototype.invalidateLayout=Ka.prototype.C,Ka.className="Layout";function Ba(a){Yo(this),this.Sc=a,this.wf=new xi,this.ye=new xi,this.Es=new xr,this.zs=new xr}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 xi,this.ye=new xi,this.Es=new xr,this.zs=new xr},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 vu(this)},Ba.prototype.createEdge=function(){return new Rc(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 hr)return!nt.isLinkLabel;if(nt instanceof Gi){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 hr&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)){if(b instanceof Do&&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 Gi&&(!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},$t=Ba.prototype,$t.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},$t.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},$t.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}$t.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},$t.ki=function(a){return a===null?null:this.Es.I(a)},$t.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}}$t.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},$t.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))}$t.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},$t.Lo=function(a){return a===null?null:this.zs.I(a)},$t.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},$t.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))}},$t.Ko=function(){for(var a=ar(),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]);Lr(a)},Ba.prototype.deleteArtificialVertexes=function(){for(var a=ar(),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=ar(),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]);Lr(a),Lr(y)};function jw(a){for(var y=ar(),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]);Lr(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 xi,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},De.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 vu(a){Yo(this),this.ob=a,this.j=new ai(0,0,10,10).freeze(),this.o=new Ne(5,5).freeze(),this.Sh=this.ub=null,this.tg=new Ci,this.mg=new Ci}vu.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new Ci,this.mg=new Ci},vu.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+vs(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},vu.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;On(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 Do)){x=ai.alloc(),a.Va();var b=this.network.layout.ni(a,x),E=a.locationObject.ga(Fo);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)}},vu.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},vu.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},vu.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},vu.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}De.Object.defineProperties(vu.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 Do)&&(a=a.locationObject.ga(Fo),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 xi,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new xi,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new xi,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}}}),vu.prototype.deleteDestinationEdge=vu.prototype.Jl,vu.prototype.addDestinationEdge=vu.prototype.zl,vu.prototype.deleteSourceEdge=vu.prototype.Kl,vu.prototype.addSourceEdge=vu.prototype.Cl,vu.className="LayoutVertex",vu.standardComparer=zv,vu.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 Rc(a){Yo(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}Rc.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},Rc.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+vs(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},Rc.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Rc.prototype.commit=function(){},Rc.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},De.Object.defineProperties(Rc.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)}}}),Rc.prototype.getOtherVertex=Rc.prototype.Ax,Rc.className="LayoutEdge";function $u(a){Ka.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new Zi(NaN,NaN).freeze(),this.tf=new Zi(10,10).freeze(),this.Jb=Em,this.Rb=B0,this.nd=Fm,this.hd=p1,a&&Object.assign(this,a)}Tn($u,Ka),$u.prototype.cloneProtected=function(a){Ka.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},$u.prototype.qb=function(a){a.classType===$u?a===Fm||a===b0||a===Kv||a===P0?this.sorting=a:a===B0||a===vA?this.arrangement=a:a===Em||a===C0?this.alignment=a:qe("Unknown enum value: "+a):Ka.prototype.qb.call(this,a)},$u.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 Do)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 P0:E.reverse();break;case Fm:E.sort(this.comparer);break;case b0: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 C0:var ot=y,at=x,ut=ai.alloc(),ct=Math.max(this.cellSize.width,1);if(!isFinite(ct))for(var yt=ct=0;yt<E.length;yt++){var kt=this.ni(E[yt],ut);ct=Math.max(ct,kt.width)}if(ct=Math.max(ct+ot,1),yt=Math.max(this.cellSize.height,1),!isFinite(yt))for(kt=yt=0;kt<E.length;kt++){var zt=this.ni(E[kt],ut);yt=Math.max(yt,zt.height)}yt=Math.max(yt+at,1),kt=this.arrangement;for(var Xt=zt=this.arrangementOrigin.x,he=this.arrangementOrigin.y,ze=0,Fe=0,Ze=0;Ze<E.length;Ze++){var tn=E[Ze],on=this.ni(tn,ut),Sn=Math.ceil((on.width+ot)/ct)*ct,Wn=Math.ceil((on.height+at)/yt)*yt;switch(kt){case vA:var rr=Math.abs(Xt-on.width);break;default:rr=Xt+on.width}switch((0<z&&ze>z-1||0<nt&&0<ze&&rr-zt>nt)&&(b.push(new ai(0,he,nt+ot,Fe)),ze=0,Xt=zt,he+=Fe,Fe=0),Fe=Math.max(Fe,Wn),kt){case vA:on=-on.width;break;default:on=0}switch(tn.moveTo(Xt+on,he),kt){case vA:Xt-=Sn;break;default:Xt+=Sn}ze++}b.push(new ai(0,he,nt+ot,Fe)),ai.free(ut);break;case Em:for(at=nt,ct=z,yt=y,kt=x,nt=ai.alloc(),zt=Math.max(this.cellSize.width,1),z=he=ut=0,ot=Ne.alloc(),Xt=0;Xt<E.length;Xt++)Fe=E[Xt],ze=this.ni(Fe,nt),Fe=Lf(Fe,Fe.locationObject,Fe.locationSpot,ot),ut=Math.max(ut,Fe.x),he=Math.max(he,ze.width-Fe.x),z=Math.max(z,Fe.y);switch(Xt=this.arrangement,Xt){case vA:ut+=yt;break;default:he+=yt}zt=isFinite(zt)?Math.max(zt+yt,1):Math.max(ut+he,1);var Fr=Fe=this.arrangementOrigin.x;for(Ze=this.arrangementOrigin.y,he=0,at>=ut&&(at-=ut),ut=tn=0,Sn=Math.max(this.cellSize.height,1),on=z=0,Wn=!0,ze=Ne.alloc(),rr=0;rr<E.length;rr++){var vr=E[rr],Ki=this.ni(vr,nt),Li=Lf(vr,vr.locationObject,vr.locationSpot,ot);if(0<he)switch(Xt){case vA:Fr=(Fr-Fe-(Ki.width-Li.x))/zt,Fr=En.$(Math.round(Fr),Fr)?Math.round(Fr):Math.floor(Fr),Fr=Fr*zt+Fe;break;default:Fr=(Fr-Fe+Li.x)/zt,Fr=En.$(Math.round(Fr),Fr)?Math.round(Fr):Math.ceil(Fr),Fr=Fr*zt+Fe}else switch(Xt){case vA:tn=Fr+Li.x+Ki.width;break;default:tn=Fr-Li.x}switch(Xt){case vA:var Io=-(Fr+Li.x)+tn;break;default:Io=Fr+Ki.width-Li.x-tn}if(0<ct&&he>ct-1||0<at&&0<he&&Io>at){for(b.push(new ai(0,Wn?Ze-z:Ze,at+yt,on+z+kt)),Fr=0;Fr<he&&rr!==he;Fr++){Io=E[rr-he+Fr];var vo=Lf(Io,Io.locationObject,Io.locationSpot,ze);Io.moveTo(Io.position.x,Io.position.y+z-vo.y)}on+=kt,Ze=Wn?Ze+on:Ze+(on+z),he=on=z=0,Fr=Fe,Wn=!1}switch(Fr===Fe&&(ut=Xt===vA?Math.max(ut,Ki.width-Li.x):Math.min(ut,-Li.x)),z=Math.max(z,Li.y),on=Math.max(on,Ki.height-Li.y),isFinite(Sn)&&(on=Math.max(on,Math.max(Ki.height,Sn)-Li.y)),Wn?vr.moveTo(Fr-Li.x,Ze-Li.y):vr.moveTo(Fr-Li.x,Ze),Xt){case vA:Fr-=Li.x+yt;break;default:Fr+=Ki.width-Li.x+yt}he++}if(b.push(new ai(0,Ze,at+yt,(Wn?on:on+z)+kt)),E.length!==he)for(at=0;at<he;at++)ct=E[E.length-he+at],yt=Lf(ct,ct.locationObject,ct.locationSpot,ot),ct.moveTo(ct.position.x,ct.position.y+z-yt.y);if(Ne.free(ot),Ne.free(ze),Xt===vA)for(E=0;E<b.length;E++)z=b[E],z.width+=ut,z.x-=ut;else for(E=0;E<b.length;E++)z=b[E],z.x>ut&&(z.width+=z.x-ut,z.x=ut);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 Ne(E+y/2-(z+E),nt-x/2)):this.commitLayers(b,new Ne(E-y/2,nt-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},$u.prototype.commitLayers=function(){};function p1(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}De.Object.defineProperties($u.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!==Em&&a!==C0||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==B0&&a!==vA||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==Kv&&a!==P0&&a!==Fm&&a!==b0||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var C0=new pi($u,"Position",0),Em=new pi($u,"Location",1),B0=new pi($u,"LeftToRight",2),vA=new pi($u,"RightToLeft",3),Kv=new pi($u,"Forward",4),P0=new pi($u,"Reverse",5),Fm=new pi($u,"Ascending",6),b0=new pi($u,"Descending",7);$u.className="GridLayout",$u.standardComparer=p1,$u.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},$u.Position=C0,$u.Location=Em,$u.LeftToRight=B0,$u.RightToLeft=vA,$u.Forward=Kv,$u.Reverse=P0,$u.Ascending=Fm,$u.Descending=b0;function $s(){this.On=new xi,this.Dn=new xi,this.Pa=new xi,this.cf=new xr,this.bf=new xr,this.aj=new xr,this.H=null,this.tp=!1}$t=$s.prototype,$t.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},$t.Xe=function(a){this.H=a},$t.oi=function(a){if(a instanceof hr){if(this.On.add(a),a instanceof Do){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 Gi?this.Dn.add(a):a instanceof bs||this.Pa.add(a);y=a.data,y===null||a instanceof bs||(a instanceof Gi?this.bf.add(y,a):this.cf.add(y,a))},$t.pc=function(a){if(a.Ej(),a instanceof hr){if(this.On.remove(a),a instanceof Do){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 Gi?this.Dn.remove(a):a instanceof bs||this.Pa.remove(a);y=a.data,y===null||a instanceof bs||(a instanceof Gi?this.bf.remove(y):this.cf.remove(y))},$t.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 Do)&&qe('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 Do||qe('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 Gi||qe('Invalid link template in Diagram.linkTemplateMap: template for "'+b+'" must be a Link, not a normal Node or simple Part: '+x);for(y=ar(),x=a.selection.iterator;x.next();)(b=x.value.data)&&y.push(b);for(x=ar(),a=a.highlighteds.iterator;a.next();)(b=a.value.data)&&x.push(b);for(a=ar(),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]);Lr(y),Lr(x),Lr(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&&bd(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,er('No Group template found for category "'+x+'"'),er(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(w1||(w1=!0,er('No Node template found for category "'+x+'"'),er(" 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,er('No Link template found for category "'+a+'"'),er(" 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&&(jh(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 hr?a:null)},$s.prototype.findLinkForKey=function(){return null},$t=$s.prototype,$t.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},$t.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof hr?a:null)},$t.Kc=function(a){return a===null?null:this.bf.I(a)},$t.ms=function(a){for(var y=0;y<arguments.length;++y);y=new xi;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(On(nt)&&Gv(this,E,nt)){y.add(b);break}}}return y.iterator},$t.ls=function(a){for(var y=0;y<arguments.length;++y);y=new xi;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(On(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(ui(z)){if(!ui(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(On(y)&&On(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===Na){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===pl){var nt=a.newValue;b==="nodeDataArray"&&On(nt)&&m1(this,nt),y.isModified=!0}else if(x===Hl){var ot=a.oldValue;b==="nodeDataArray"&&On(ot)&&this.ip(ot),y.isModified=!0}else x===qu&&(b==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):b==="ModelDisplaced"&&this.Wd());else if(x===Na){var at=a.propertyName,ut=a.object;ut===y.model?(at==="nodeKeyProperty"||at==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(ut,at),y.isModified=!0}else if(x===pl||x===Hl){var ct=a.change===pl,yt=ct?a.newParam:a.oldParam,kt=ct?a.newValue:a.oldValue,zt=this.aj.I(a.object);if(Array.isArray(zt))for(a=0;a<zt.length;a++){var Xt=zt[a];if(ct)ih(Xt,kt,yt,!0);else if(!(0>yt)){var he=yt+XA(Xt);Xt.pc(he,!0),Vg(Xt,he,yt)}}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 xi,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=ar()),x.push(nt))}if(x!==null)break}if(x!==null){for(b=0;b<x.length;b++)x[b].La(y);Lr(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function Wv(a,y){var x=y.Hh;if(ui(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){la(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(ui(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 xr;if(ui(a))for(var E=0;E<a.length;E++)E0(this,a[E],y,b,x);else for(a=a.iterator;a.next();)E0(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 xi;for(var z=new xr,nt=b.iterator;nt.next();){var ot=nt.value;if(ot instanceof Gi)a||ot.fromNode!==null&&ot.toNode!==null||E.add(ot);else if(ot instanceof hr&&ot.data!==null&&x.Tl()){var at=ot;ot=nt.key;var ut=ot.pg();ut!==null&&(ut=b.I(ut),ut!==null?(x.qe(at.data,x.wa(ut.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 xr;b.each(function(yt){yt.key.data!==null&&ct.add(yt.key.data,yt.value.data)}),x(ct,y,this.H.model)}for(y=b.iterator;y.next();)y.value.La();return b};function E0(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 Vr))return null;if(z.isSelected=!1,z.isHighlighted=!1,b.add(y,z),y instanceof hr){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 Do&&z instanceof Do)for(y=y.memberParts;y.next();)nt=E0(a,y.value,x,b,E),nt instanceof Gi||nt===null||(nt.containingGroup=z)}else if(y instanceof Gi&&z instanceof Gi)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=E0(a,y.value,x,b,E),nt!==null&&nt instanceof hr&&(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 Gi||(b=E.copyNodeData(b),On(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 Gi||(E=y.copyNodeData(b)),On(E)&&(x.data=E)));return x},De.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 Du(a){$s.apply(this,arguments)}Tn(Du,$s),Du.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),C1(this,a.linkDataArray)},Du.prototype.addModeledParts=function(a){for($s.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)Up(a.value);bd(this.diagram,!1)};function C1(a,y){y.forEach(function(x){B1(a,x)}),bd(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=N0(x,y,!0);z!==""&&(E.fromPortId=z),z=td(x,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof hr&&(E.fromNode=z)),z=N0(x,y,!1),z!==""&&(E.toPortId=z),z=td(x,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof hr&&(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}}}}Du.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)})}Du.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},Du.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},Du.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},Du.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},Du.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},Du.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},Du.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},Du.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===Na){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 ut=this.Kc(a.object);if(ut!==null){var ct=a.newValue;typeof ct=="string"&&(ut.fromPortId=ct)}}else if(E==="linkToPortId"){var yt=this.Kc(a.object);if(yt!==null){var kt=a.newValue;typeof kt=="string"&&(yt.toPortId=kt)}}else if(E==="nodeGroupKey"){var zt=this.Lc(a.object);if(zt!==null){var Xt=a.newValue;if(Xt!==void 0){var he=this.Vb(Xt);he instanceof Do?zt.containingGroup=he:zt.containingGroup=null}else zt.containingGroup=null}}else if(E==="linkLabelKeys"){var ze=this.Kc(a.object);if(ze!==null){var Fe=a.oldValue,Ze=a.newValue;Array.isArray(Fe)&&Fe.forEach(function(Li){0<=Ze.indexOf(Li)||(Li=y.Vb(Li),Li!==null&&(Li.labeledLink=null))}),Array.isArray(Ze)&&Ze.forEach(function(Li){Li=y.Vb(Li),Li!==null&&(Li.labeledLink=ze)})}}else if(E==="linkCategory"){var tn=this.Kc(a.object),on=a.newValue;tn!==null&&typeof on=="string"&&(tn.category=on)}else E==="linkDataArray"&&(P1(this,a.oldValue),C1(this,a.newValue));x.isModified=!0}else if(b===pl){var Sn=a.newValue;if(E==="linkDataArray"&&typeof Sn=="object"&&Sn!==null)B1(this,Sn);else if(E==="linkLabelKeys"&&sg(Sn)){var Wn=this.Kc(a.object),rr=this.Vb(Sn);Wn!==null&&rr!==null&&(rr.labeledLink=Wn)}x.isModified=!0}else if(b===Hl){var Fr=a.oldValue;if(E==="linkDataArray"&&typeof Fr=="object"&&Fr!==null)this.ip(Fr);else if(E==="linkLabelKeys"&&sg(Fr)){var vr=this.Vb(Fr);vr!==null&&(vr.labeledLink=null)}x.isModified=!0}}else if(b===Na){var Ki=a.propertyName;a.object!==x.model||Ki!=="linkFromKeyProperty"&&Ki!=="linkToKeyProperty"&&Ki!=="linkFromPortIdProperty"&&Ki!=="linkToPortIdProperty"&&Ki!=="linkLabelKeysProperty"&&Ki!=="nodeIsGroupProperty"&&Ki!=="nodeGroupKeyProperty"&&Ki!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},Du.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new xi,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)})},Du.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 Gi){var E=td(b,y,!0);if(E=x.Vb(E),a.fromNode=E,E=td(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 xi().addAll(y);var nt=new xi;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 Do)&&(a.containingGroup=y)}}},Du.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=Lm(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 Do&&y.lh(nt)===x&&(nt=this.Lc(nt),nt!==null&&(nt.containingGroup=E)):(z.link=this.Kc(nt),z.link!==null&&E instanceof hr&&(td(y,nt,!0)===x&&(z.link.fromNode=E),td(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 Do&&(E.containingGroup=a))}},Du.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof hr){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 Do)for(a=a.memberParts;a.next();)b=a.value.data,y.lb(b)&&yA(y,x,b)}}},Du.prototype.copyPartData=function(a,y){var x=$s.prototype.copyPartData.call(this,a,y);if(a instanceof Gi)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},Du.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 Gi){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 hr&&(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 hr||(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},Du.prototype.findLinkForKey=Du.prototype.findLinkForKey,Du.prototype.findPartForKey=Du.prototype.findPartForKey,Du.prototype.removeAllModeledParts=Du.prototype.removeAllModeledParts,Du.prototype.addModeledParts=Du.prototype.addModeledParts,Du.prototype.addAllModeledParts=Du.prototype.addAllModeledParts,Du.className="GraphLinksPartManager";function fd(){$s.apply(this,arguments),this.Sg=null}Tn(fd,$s);function F0(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||!qn(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}}}fd.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},fd.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},fd.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}},fd.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))},fd.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},fd.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},fd.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===Na){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:F0(this,z,nt)}}else if(b==="parentLinkCategory"){var at=this.ii(a.object),ut=a.newValue;if(at!==null&&typeof ut=="string"){var ct=at.kh();ct!==null&&(ct.category=ut)}}y.isModified=!0}}else if(x===Na){var yt=a.propertyName;a.object===y.model&&yt==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},fd.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;a instanceof hr&&(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:F0(this,y,a):b!==null&&jh(x,b,!1)))}}},fd.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))},fd.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=Lm(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 hr&&y.mh(z)===x&&F0(this,E,this.ii(z))}wA(y,x)}a=y.mh(a),a!==void 0&&E instanceof hr&&(a=this.Vb(a),F0(this,a,E))}},fd.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof hr){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(Hl,"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)}},fd.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},fd.prototype.findLinkForKey=fd.prototype.findLinkForKey,fd.className="TreePartManager";function Or(a,y){this.kl=new xi,this.il=new xi,this.Wv=`,
|
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
|
"removedNodeKeys": `,this.vh=null,Yo(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new xr,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 xr,this.Lt=new Ci,this.Wg=!1,this.o=null,this.undoManager=new wt,a!==void 0&&(ui(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Or.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},Or.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Or.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},Or.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)+":"+Pr(E)}}return y},Or.prototype.xA=function(a){a.change!==qu&&qe("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof Et?(E1(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},Or.prototype.Qv=function(a,y){var x=this,b=!1,E=new xi,z=new xi,nt=new xi,ot=this.vh;a.changes.each(function(yt){yt.model===x&&(yt.modelChange==="nodeDataArray"?yt.change===pl?E.add(yt.newValue):yt.change===Hl&&nt.add(yt.oldValue):x.lb(yt.object)?z.add(yt.object):yt.change!==Na||x.modelData!==yt.object&&yt.propertyName!=="modelData"?yt.object!==null&&(ot&&ot.contains(yt.object)?ot.get(yt.object).each(function(kt){x.lb(kt)&&z.add(kt)}):yt.object instanceof Or||x.ri()&&x.Jc(yt.object)||F1(x,yt.object).each(function(kt){z.add(kt)})):b=!0)});var at=this.il;at.clear(),E.each(function(yt){at.add(x.wa(yt)),y||z.add(yt)});var ut=this.kl;ut.clear(),nt.each(function(yt){ut.add(x.wa(yt)),y&&z.add(yt)}),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<ut.count&&(ct===null&&(ct={}),y?ct.insertedNodeKeys=ut.Fa():ct.removedNodeKeys=ut.Fa()),ut.clear(),at.clear(),ct},Or.prototype.cloneDeep=function(a){return zp(this,a,!0)};function zp(a,y,x,b,E,z){function nt(yt,kt){ot?(yt.__gohashid===void 0&&z.push(yt),b.set(yt,kt)):(yt=da++,b.set(yt,kt),E.set(yt,y))}if(!On(y))return y;z||(z=[]);var ot=Object.isExtensible(y);if(b||(b=new xr),ot){var at=b.get(y);if(at)return at}else for(E||(E=new xr),at=E.iterator;at.next();){var ut=at.key;if(at.value===y&&(ut=b.get(ut)))return ut}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 Ne||y instanceof Zi||y instanceof ai||y instanceof Rr||y instanceof fr)at=y.copy(),nt(y,at);else{if(y instanceof Us||y instanceof Vi||y instanceof pi)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 xi)at=new xi().addAll(zp(a,y.Fa(),!1,b,E,z)),nt(y,at);else if(y instanceof xr)at=new xr().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(yt){delete yt.__gohashid}),at}$t=Or.prototype,$t.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},$t.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},$t.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,On(y)&&(a.dm(y),a.modelData=y)}$t.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)},$t.kv=function(a){b1(this,a),a=a.nodeDataArray,ui(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 xi,nt.add(z),b.add(E,nt)):nt.add(z)}}var b=a.vh;b===null&&(b=new xr,y.changes.each(function(E){if(E.diagram!==null){var z=E.change;z===Na?(E=E.object.panel)&&(z=E.data)&&x(z,E):(z===pl||z===Hl)&&(E=E.object,(z=E.itemArray)&&x(z,E))}}),a.vh=b)}function F1(a,y){for(var x=new xi,b=0;b<a.nodeDataArray.length;b++){var E=a.nodeDataArray[b];L0(a,y,E,E,x)}return x}function L0(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(L0(a,y,nt,b,E))return!0}else if(On(x)&&Object.getPrototypeOf(x)===Object.prototype)for(z in x){if(nt=x[z],nt===y)return E.add(b),!0;if(L0(a,y,nt,b,E))return!0}return!1}$t.Pv=function(a,y){var x=this,b=!1,E=new xi,z=new xi,nt=new xi,ot=this.vh;a.changes.each(function(ct){ct.model===x&&(ct.modelChange==="nodeDataArray"?ct.change===pl?E.add(ct.newValue):ct.change===Hl&&nt.add(ct.oldValue):x.lb(ct.object)?z.add(ct.object):ct.change!==Na||x.modelData!==ct.object&&ct.propertyName!=="modelData"?ct.object!==null&&(ot&&ot.contains(ct.object)?ot.get(ct.object).each(function(yt){x.lb(yt)&&z.add(yt)}):ct.object instanceof Or||x.ri()&&x.Jc(ct.object)||F1(x,ct.object).each(function(yt){z.add(yt)})):b=!0)});var at=this.il;at.clear(),E.each(function(ct){at.add(x.wa(ct)),y||z.add(ct)});var ut=this.kl;return ut.clear(),nt.each(function(ct){ut.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<ut.count&&(a+=(y?this.Wv:this.Yv)+og(this,ut.Fa(),!0)),ut.clear(),at.clear(),a},$t.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)&&qe("applyIncrementalJson cannot change Model properties"),b1(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,b=new xr;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)},$t.$x=function(a,y){a.change!==qu&&qe("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof Et?(y===void 0&&(y=Mm(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 }'},$t.yA=function(a,y){return this.$x(a,y)},$t.np=function(a){return a===void 0&&(a=Mm(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},$t.toJSON=function(a){return this.np(a)},$t.Zw=function(a){var y=null;if(typeof a=="string")try{y=Le.JSON.parse(a)}catch(b){}else typeof a=="object"?y=a:qe("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&qe("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},$t.Ky=function(a){return this.Zw(a)},Or.constructGraphLinksModel=function(){return new Or},$t=Or.prototype,$t.dm=function(a){if(ui(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];if(On(b)){var E=x;b=this.dm(b),Array.isArray(a)?a[E]=b:qe("Cannot replace an object in an HTMLCollection or NodeList at "+E)}}else if(On(a)){for(y in a)if(x=a[y],On(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 Ne(x[2*b],x[2*b+1]));E.freeze(),a[y]=E}}return Uw(a)}return a},$t.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()):ui(a)?og(this,a):On(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 Ur;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 Vh(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function Zv(a,y){var x=y;if(x instanceof Ne)y={class:"go.Point",x:Vh(x.x),y:Vh(x.y)};else if(x instanceof Zi)y={class:"go.Size",width:Vh(x.width),height:Vh(x.height)};else if(x instanceof ai)y={class:"go.Rect",x:Vh(x.x),y:Vh(x.y),width:Vh(x.width),height:Vh(x.height)};else if(x instanceof Rr)y={class:"go.Margin",top:Vh(x.top),right:Vh(x.right),bottom:Vh(x.bottom),left:Vh(x.left)};else if(x instanceof fr)x.sb()?y={class:"go.Spot",x:Vh(x.x),y:Vh(x.y),offsetX:Vh(x.offsetX),offsetY:Vh(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof Us){if(y={class:"go.Brush",type:x.type.name},x.type===fe?y.color=x.color:(x.type===Pe||x.type===$e)&&(y.start=x.start,y.end=x.end,x.type===$e&&(x.startRadius!==0&&(y.startRadius=Vh(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=Vh(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 Vi?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=Vh(x.startX)),x.startY!==0&&(y.startY=Vh(x.startY)),x.endX!==0&&(y.endX=Vh(x.endX)),x.endY!==0&&(y.endY=Vh(x.endY)),x.spot1.D(nl)||(y.spot1=x.spot1),x.spot2.D(Zl)||(y.spot2=x.spot2),x.type===Vi.o&&(y.path=Vi.ia(x))):x instanceof pi&&(y={class:"go.EnumValue",classType:Mm(a,x.classType),name:x.name});b="{",x=!0;for(var E in y){var z=Wl(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 Zh(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 Ne(Zh(a.x),Zh(a.y));else if(y==="Size")x=new Zi(Zh(a.width),Zh(a.height));else if(y==="Rect")x=new ai(Zh(a.x),Zh(a.y),Zh(a.width),Zh(a.height));else if(y==="Margin")x=new Rr(Zh(a.top),Zh(a.right),Zh(a.bottom),Zh(a.left));else if(y==="Spot")typeof a.enum=="string"?x=Ud(a.enum):x=new fr(Zh(a.x),Zh(a.y),Zh(a.offsetX),Zh(a.offsetY));else if(y==="Brush"){if(x=new Us,x.type=ur(Us,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof fr&&(x.start=a.start),a.end instanceof fr&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=Zh(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=Zh(a.endRadius)),a=a.colorStops,On(a))for(var b in a)x.addColorStop(parseFloat(b),a[b])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=Vi.parse(a.path):x=new Vi,x.type=ur(Vi,a.type),typeof a.startX=="number"&&(x.startX=Zh(a.startX)),typeof a.startY=="number"&&(x.startY=Zh(a.startY)),typeof a.endX=="number"&&(x.endX=Zh(a.endX)),typeof a.endY=="number"&&(x.endY=Zh(a.endY)),a.spot1 instanceof fr&&(x.spot1=a.spot1),a.spot2 instanceof fr&&(x.spot2=a.spot2)):y==="EnumValue"&&(b=a.classType,b.indexOf("go.")===0&&(b=b.substr(3)),b=$v(b),typeof b=="function"&&(x=ur(b,a.name)));return x}$t.Pe=function(a){return this.Lt.add(a),this},$t.ik=function(a){this.Lt.remove(a)},$t.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)},$t.cb=function(a,y,x,b,E,z,nt){uu(this,"",a,y,x,b,E,z,nt)},$t.g=function(a,y,x,b,E){uu(this,"",Na,a,this,y,x,b,E)},$t.Fs=function(a,y,x,b,E,z){uu(this,"",Na,y,a,x,b,E,z)};function uu(a,y,x,b,E,z,nt,ot,at){ot===void 0&&(ot=null),at===void 0&&(at=null);var ut=new Ma;ut.model=a,ut.change=x,ut.modelChange=y,ut.propertyName=b,ut.object=E,ut.oldValue=z,ut.oldParam=ot,ut.newValue=nt,ut.newParam=at,a.ds(ut)}Or.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===Na){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)),_a(x,b,E)}else a.change===pl?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,On(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]===a&&zr(this.Tc,x),b!==void 0&&this.kb.remove(b)):(this.Tc[x]!==a&&or(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!ui(b)&&a.propertyName&&(b=Wl(a.object,a.propertyName)),ui(b)&&typeof x=="number"&&(a=a.newValue,y?zr(b,x):or(b,x,a))):qe("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===Hl?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,On(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]!==a&&or(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)):(this.Tc[x]===a&&zr(this.Tc,x),b!==void 0&&this.kb.remove(b)))):a.modelChange===""?((b=a.object)&&!ui(b)&&a.propertyName&&(b=Wl(a.object,a.propertyName)),ui(b)&&typeof x=="number"&&(a=a.oldValue,y?or(b,x,a):zr(b,x))):qe("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==qu&&qe("unknown ChangedEvent: "+a.toString())},Or.prototype.Ea=function(a){return this.undoManager.Ea(a)},Or.prototype.eb=function(a){return this.undoManager.eb(a)},Or.prototype.Kf=function(){return this.undoManager.Kf()},Or.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}},$t=Or.prototype,$t.La=function(a,y){y===void 0&&(y=""),uu(this,"SourceChanged",qu,y,a,null,null)},$t.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=Wl(a,y),y!==void 0)){if(sg(y))return y;qe("Key value for node data "+a+" is not a number or a string: "+y)}}},$t.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var b=Wl(a,x);b!==y&&this.hc(y)===null&&(_a(a,x,y),b!==void 0&&this.kb.remove(b),this.kb.add(y,a),uu(this,"nodeKey",Na,x,a,b,y),typeof x=="string"&&this.La(a,x),this.jp(b,y))}else _a(a,x,y)}};function sg(a){return typeof a=="number"||typeof a=="string"}$t.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},$t.hc=function(a){return a===null&&qe("Model.findNodeDataForKey:key must not be null"),a!==void 0&&sg(a)?this.kb.I(a):null},$t.$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))){_a(a,y,x);return}if(typeof x=="string"){for(b=2;this.kb.contains(x+b);)b++;_a(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;_a(a,y,x)}}}}},$t.xf=function(a){a!==null&&(ha(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&&qe("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,x&&(b=a.Tc.length,or(a.Tc,b,y)),uu(a,"nodeDataArray",pl,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}$t.Fy=function(a){if(ui(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)},$t.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;zr(a.Tc,b)}uu(a,"nodeDataArray",Hl,"nodeDataArray",a,y,null,b,null),a.qp(y)}$t.nA=function(a){if(ui(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)},$t.$z=function(a){if(a!==this.nodeDataArray&&ui(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()}},$t.jp=function(a,y){y!==void 0&&(a=Lm(this,a),a instanceof xi&&this.Vf.add(y,a))},$t.Lv=function(){},$t.fm=function(){},$t.em=function(){},$t.qp=function(){};function yA(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b===null&&(b=new xi,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 xi&&(x==null?a.Vf.remove(y):(b.remove(x),b.count===0&&a.Vf.remove(y)))}}function Lm(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof xi?a:null)}$t.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},Or.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):M0(this,a,!0),On(a)&&Yo(a),a};function M0(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var b=[];for(x=0;x<y.length;x++){var E=M0(a,y[x],a.copiesArrayObjects);b.push(E)}return Yo(b),b}if(x&&On(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=Wl(y,b),nt=Mm(a,z);nt==="GraphObject"||nt==="Diagram"||nt==="Layer"||nt==="RowColumnDefinition"||nt==="AnimationManager"||nt==="Tool"||nt==="CommandHandler"||nt==="Layout"||nt==="InputEvent"||nt==="DiagramEvent"||z instanceof Or||z instanceof wt||z instanceof Et||z instanceof Ma||(z=M0(a,z,!1)),_a(x,b,z)}return Yo(x),x}return y instanceof Ne||y instanceof Zi||y instanceof ai||y instanceof fr||y instanceof Rr?y.copy():y}Or.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 wn&&(I1=!0,er('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),er(" Is that really your intent?"));var b=Wl(a,y);b!==x&&(_a(a,y,x),this.Fs(a,y,b,x))},$t=Or.prototype,$t.set=function(a,y,x){this.setDataProperty(a,y,x)},$t.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])}},$t.Ay=function(a,y){this.ts(a,-1,y)},$t.ts=function(a,y,x){0>y&&(y=a.length),or(a,y,x),uu(this,"",pl,"",a,null,x,null,y)},$t.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&qe("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];zr(a,y),uu(this,"",Hl,"",a,x,null,y,null)},$t.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=Wl(a,y),y===void 0))return"";if(typeof y=="string")return y;qe("getCategoryForNodeData found a non-string category for "+a+": "+y)},$t.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var b=Wl(a,x);b===void 0&&(b=""),b!==y&&(_a(a,x,y),uu(this,"nodeCategory",Na,x,a,b,y))}else _a(a,x,y)}},$t.lm=function(a,y){this.jm(y,this.Ro(a))},$t.Tl=function(){return!1},$t.Wj=function(){return!1},$t.ri=function(){return!1},$t.xs=function(){return!1},$t.Xj=function(){return!1};function Xv(){return new Or}function Mm(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 Mm(a,y.constructor);return typeof y}function $v(a){return tA[a]?tA[a]:Le.go!==void 0&&Le.go[a]?Le.go[a]:null}function Wl(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 _a(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){}}De.Object.defineProperties(Or.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===""&&qe("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&qe("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];On(E)||qe("Model.nodeDataArray must only contain Objects, not: "+E),ha(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(uu(this,"nodeDataArray",Na,"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"}}}),Or.prototype.setCategoryForNodeData=Or.prototype.jm,Or.prototype.getCategoryForNodeData=Or.prototype.Ro,Or.prototype.removeArrayItem=Or.prototype.ov,Or.prototype.insertArrayItem=Or.prototype.ts,Or.prototype.addArrayItem=Or.prototype.Ay,Or.prototype.assignAllDataProperties=Or.prototype.Do,Or.prototype.set=Or.prototype.set,Or.prototype.clearUnresolvedReferences=Or.prototype.Qy,Or.prototype.mergeNodeDataArray=Or.prototype.$z,Or.prototype.removeNodeDataCollection=Or.prototype.nA,Or.prototype.removeNodeData=Or.prototype.cm,Or.prototype.addNodeDataCollection=Or.prototype.Fy,Or.prototype.addNodeData=Or.prototype.xf,Or.prototype.makeNodeDataKeyUnique=Or.prototype.$u,Or.prototype.findNodeDataForKey=Or.prototype.hc,Or.prototype.containsNodeData=Or.prototype.lb,Or.prototype.setKeyForNodeData=Or.prototype.km,Or.prototype.getKeyForNodeData=Or.prototype.wa,Or.prototype.updateTargetBindings=Or.prototype.La,Or.prototype.commit=Or.prototype.commit,Or.prototype.rollbackTransaction=Or.prototype.Kf,Or.prototype.commitTransaction=Or.prototype.eb,Or.prototype.startTransaction=Or.prototype.Ea,Or.prototype.raiseDataChanged=Or.prototype.Fs,Or.prototype.raiseChanged=Or.prototype.g,Or.prototype.raiseChangedEvent=Or.prototype.cb,Or.prototype.removeChangedListener=Or.prototype.ik,Or.prototype.addChangedListener=Or.prototype.Pe,Or.prototype.writeJsonValue=Or.prototype.sm,Or.prototype.replaceJsonObjects=Or.prototype.dm,Or.prototype.applyIncrementalJSON=Or.prototype.Ky,Or.prototype.applyIncrementalJson=Or.prototype.Zw,Or.prototype.toJSON=Or.prototype.toJSON,Or.prototype.toJson=Or.prototype.np,Or.prototype.toIncrementalJSON=Or.prototype.yA,Or.prototype.toIncrementalJson=Or.prototype.$x,Or.prototype.toIncrementalData=Or.prototype.xA,Or.prototype.clear=Or.prototype.clear;var I1=!1,tA={};Or.className="Model",Or.fromJSON=Or.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=Le.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:qe("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=Le[b])),typeof E=="function"&&(a=new E)}catch(z){}a===null||a instanceof Or?y=a:qe("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=Or.constructGraphLinksModel()),y.gp(x),y.kv(x),y},Or.safePropertyValue=Wl,Or.safePropertySet=_a,tA.Brush=Us,tA.ChangedEvent=Ma,tA.Geometry=Vi,tA.Margin=Rr,tA.Panel=ei,tA.Point=Ne,tA.Rect=ai,tA.Size=Zi,tA.Spot=fr,tA.Transaction=Et,tA.UndoManager=wt;function Yl(a,y,x,b){Yo(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=Nm,this.wk=b),this.st=new xi}Yl.prototype.copy=function(){var a=new Yl;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},$t=Yl.prototype,$t.qb=function(a){a.classType===Yl&&(this.mode=a)},$t.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},$t.freeze=function(){return this._isFrozen=!0,this},$t.ka=function(){return this._isFrozen=!1,this},$t.Kx=function(a){return a===void 0&&(a=null),this.mode=Nm,this.backConverter=a,this},$t.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},$t.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)}$t.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==="")er("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(b!==""&&(z=Wl(y,b)),z!==void 0)if(E===null)x!==""&&_a(a,x,z);else try{if(x!==""){var nt=E(z,a);_a(a,x,nt)}else E(z,a)}catch(ot){}}}},$t.sp=function(a,y,x,b){if(this.el===Nm){var E=this.xl;if(x===void 0||E===x){x=this.sl;var z=this.wk,nt=a;if(E!==""&&(nt=Wl(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):_a(y,x,nt);else if(at!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var ut=b.itemIndex,ct=b.panel.itemArray;at.ov(ct,ut),at.ts(ct,ut,nt)}}else try{if(x!==""){var yt=z(nt,y,at);at!==null?at.setDataProperty(y,x,yt):_a(y,x,yt)}else{var kt=z(nt,y,at);if(kt!==void 0&&at!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var zt=b.itemIndex,Xt=b.panel.itemArray;at.ov(Xt,zt),at.ts(Xt,zt,kt)}}}catch(he){}}finally{this.st.remove(a)}}}},De.Object.defineProperties(Yl.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&oi(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&oi(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&oi(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&oi(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&oi(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&oi(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&oi(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&oi(this),this.el=a}}}),Yl.prototype.updateSource=Yl.prototype.sp,Yl.prototype.updateTarget=Yl.prototype.Mv,Yl.prototype.ofModel=Yl.prototype.dA,Yl.prototype.ofObject=Yl.prototype.cp,Yl.prototype.makeTwoWay=Yl.prototype.Kx;var Rw="Binding",T1=new pi(Yl,"OneWay",1),Nm=new pi(Yl,"TwoWay",2);Yl.className="Binding",Yl.parseEnum=function(a,y){return function(x){return x=ur(a,x),x===null?y:x}},Yl.toString=Pr,Yl.OneWay=T1,Yl.TwoWay=Nm;function gs(a,y,x){Or.call(this),this.Vv=`,
|
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
|
"removedLinkKeys": `,this.md=[],this.$f=new xi,this.wb=new xr,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&&(ui(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}Tn(gs,Or),gs.constructGraphLinksModel=Or.constructGraphLinksModel,gs.prototype.cloneProtected=function(a){Or.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},$t=gs.prototype,$t.clear=function(){Or.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},$t.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)+":"+Pr(E)}for(y+=`
|
|
|
link data:`,a=this.linkDataArray,x=a.length,b=0;b<x;b++)E=a[b],y+=" "+td(this,E,!0)+"-->"+td(this,E,!1)}return y},$t.Qv=function(a,y){this.linkKeyProperty===""&&qe("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=Or.prototype.Qv.call(this,a,y),b=this,E=new xi,z=new xi,nt=new xi,ot=this.vh;a.changes.each(function(ct){ct.model===b&&(ct.modelChange==="linkDataArray"?ct.change===pl?E.add(ct.newValue):ct.change===Hl&&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(yt){b.Jc(yt)&&z.add(yt)}):ct.object instanceof Or||b.lb(ct.object)||O1(b,ct.object).each(function(yt){z.add(yt)})))});var at=this.il;at.clear(),E.each(function(ct){at.add(b.Ac(ct)),y||z.add(ct)});var ut=this.kl;return ut.clear(),nt.each(function(ct){ut.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<ut.count&&(x===null&&(x={}),y?x.insertedLinkKeys=ut.Fa():x.removedLinkKeys=ut.Fa()),ut.clear(),at.clear(),x},$t.rm=function(){var a=Or.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},$t.gp=function(a){Or.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)},$t.Rv=function(){var a=Or.prototype.Rv.call(this),y=`,
|
|
|
"linkDataArray": `+og(this,this.linkDataArray,!0);return a+y},$t.kv=function(a){Or.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 xi,b=0;b<a.linkDataArray.length;b++){var E=a.linkDataArray[b];L0(a,y,E,E,x)}return x}$t.Pv=function(a,y){this.linkKeyProperty===""&&qe("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=Or.prototype.Pv.call(this,a,y),b=this,E=new xi,z=new xi,nt=new xi,ot=this.vh;a.changes.each(function(ct){ct.model===b&&(ct.modelChange==="linkDataArray"?ct.change===pl?E.add(ct.newValue):ct.change===Hl&&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(yt){b.Jc(yt)&&z.add(yt)}):ct.object instanceof Or||b.lb(ct.object)||O1(b,ct.object).each(function(yt){z.add(yt)})))});var at=this.il;at.clear(),E.each(function(ct){at.add(b.Ac(ct)),y||z.add(ct)});var ut=this.kl;return ut.clear(),nt.each(function(ct){ut.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<ut.count&&(a+=(y?this.Vv:this.Xv)+og(this,ut.Fa(),!0)),ut.clear(),at.clear(),a},$t.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)&&qe("applyIncrementalJson cannot change Model properties"),Or.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)},gs.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===Na){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),_a(x,b,E);return}}else if(a.change===pl){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,On(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===Hl){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,On(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}}Or.prototype.changeState.call(this,a,y)}},$t=gs.prototype,$t.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),_a(x,this.nodeKeyProperty,a),this.xf(x))}return a}},$t.yx=function(a){return td(this,a,!0)},$t.wv=function(a,y){Kp(this,a,y,!0)},$t.Bx=function(a){return td(this,a,!1)},$t.Bv=function(a,y){Kp(this,a,y,!1)};function td(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=Wl(y,a),a!==void 0))){if(sg(a))return a;qe((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=Wl(y,E);z!==x&&(wA(a,z,y),_a(y,E,x),a.hc(x)===null&&yA(a,x,y),uu(a,b?"linkFromKey":"linkToKey",Na,E,y,z,x),typeof E=="string"&&a.La(y,E))}else _a(y,E,x)}}$t.zx=function(a){return N0(this,a,!0)},$t.xv=function(a,y){Gp(this,a,y,!0)},$t.Cx=function(a){return N0(this,a,!1)},$t.Cv=function(a,y){Gp(this,a,y,!1)};function N0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=Wl(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=Wl(y,E);z===void 0&&(z=""),z!==x&&(_a(y,E,x),uu(a,b?"linkFromPortId":"linkToPortId",Na,E,y,z,x),typeof E=="string"&&a.La(y,E))}else _a(y,E,x)}}$t.Ef=function(a){if(a===null)return I0;var y=this.je;return y===""?I0:(a=Wl(a,y),a===void 0?I0:a)},$t.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var b=Wl(a,x);if(b===void 0&&(b=I0),b!==y){if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)wA(this,b[z],a);for(_a(a,x,y),E=y.length,z=0;z<E;z++){var nt=y[z];this.hc(nt)===null&&yA(this,nt,a)}uu(this,"linkLabelKeys",Na,x,a,b,y),typeof x=="string"&&this.La(a,x)}}else _a(a,x,y)}},$t.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=Wl(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),uu(this,"linkLabelKeys",pl,x,a,null,y,null,E)))}else qe(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},$t.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=Wl(a,x);if(Array.isArray(b)){var E=b.indexOf(y);0>E||(b.splice(E,1),this.Jc(a)&&(wA(this,y,a),uu(this,"linkLabelKeys",Hl,x,a,y,null,E,null)))}else b!==void 0&&qe(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},$t.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=Wl(a,y),y!==void 0)){if(sg(y))return y;qe("Key value for link data "+a+" is not a number or a string: "+y)}}},$t.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var b=Wl(a,x);b!==y&&this.jh(y)===null&&(_a(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),uu(this,"linkKey",Na,x,a,b,y),typeof x=="string"&&this.La(a,x))}else _a(a,x,y)}},$t.jh=function(a){return a===null&&qe("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&sg(a)?this.wb.I(a):null},$t.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))){_a(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;_a(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;_a(a,y,x)}}}}},$t.Jc=function(a){return a===null?!1:this.$f.contains(a)},$t.fi=function(a){a!==null&&(ha(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&&qe("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)),uu(a,"linkDataArray",pl,"linkDataArray",a,null,y,null,b),Yv(a,y)}$t.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)},$t.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(uu(a,"linkDataArray",Hl,"linkDataArray",a,y,null,b,null),x=td(a,y,!0),wA(a,x,y),x=td(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)}$t.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)},$t.Zz=function(a){if(this.linkKeyProperty===""&&qe("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&ui(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 Yv(a,y){var x=td(a,y,!0);x=a.Vl(x),a.hc(x)===null&&yA(a,x,y),x=td(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)}$t.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):M0(this,a,!0),On(a)&&(Yo(a),this.lf!==""&&_a(a,this.lf,void 0),this.mf!==""&&_a(a,this.mf,void 0),this.je!==""&&_a(a,this.je,[])),a},$t.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!Wl(a,y)},$t.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=Wl(a,y),y!==void 0)){if(sg(y))return y;qe("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},$t.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var b=Wl(a,x);b!==y&&(wA(this,b,a),_a(a,x,y),this.hc(y)===null&&yA(this,y,a),uu(this,"nodeGroupKey",Na,x,a,b,y),typeof x=="string"&&this.La(a,x))}else _a(a,x,y)}},gs.prototype.copyNodeData=function(a){return a===null?null:(a=Or.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||Wl(a,this.Je)===void 0||_a(a,this.Je,void 0),a)},gs.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=Wl(a,y);b!==x&&(_a(a,y,x),this.Fs(a,y,b,x))},$t=gs.prototype,$t.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&&Wl(a,E)===y[E]||b&&E===this.linkKeyProperty||this.setDataProperty(a,E,y[E])}},$t.jp=function(a,y){Or.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(td(this,b,!0)===E){var nt=this.lf;_a(b,nt,z),uu(this,"linkFromKey",Na,nt,b,E,z),typeof nt=="string"&&this.La(b,nt)}if(td(this,b,!1)===E&&(nt=this.mf,_a(b,nt,z),uu(this,"linkToKey",Na,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,ut=0;ut<ot;ut++)nt[ut]===E&&(nt[ut]=z,uu(this,"linkLabelKeys",pl,at,b,E,z,ut,ut))}},$t.qv=function(a,y,x){if(this.lh(a)===y){var b=this.Je;_a(a,b,x),uu(this,"nodeGroupKey",Na,b,a,y,x),typeof b=="string"&&this.La(a,b)}},$t.Lv=function(){Or.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)Yv(this,a[x])},$t.fm=function(a){Or.prototype.fm.call(this,a),a=this.wa(a);var y=Lm(this,a);if(y!==null){var x=ar();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)){if(this.lh(b)===a){var E=this.Je;uu(this,"nodeGroupKey",Na,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}else if(td(this,b,!0)===a&&(E=this.lf,uu(this,"linkFromKey",Na,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),td(this,b,!1)===a&&(E=this.mf,uu(this,"linkToKey",Na,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&&(uu(this,"linkLabelKeys",pl,nt,b,a,a,ot,ot),x.push(b))}for(y=0;y<x.length;y++)wA(this,a,x[y]);Lr(x)}},$t.em=function(a){Or.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&yA(this,y,a)},$t.qp=function(a){Or.prototype.qp.call(this,a);var y=this.lh(a);wA(this,y,a)},$t.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=Wl(a,y),y===void 0))return"";if(typeof y=="string")return y;qe("getCategoryForLinkData found a non-string category for "+a+": "+y)},gs.prototype.getLinkCategoryForData=function(a){return this.ps(a)},gs.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var b=Wl(a,x);b===void 0&&(b=""),b!==y&&(_a(a,x,y),uu(this,"linkCategory",Na,x,a,b,y),typeof x=="string"&&this.La(a,x))}else _a(a,x,y)}},gs.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},$t=gs.prototype,$t.lm=function(a,y){Or.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))}$t.Wj=function(){return!0},$t.ri=function(){return!0},$t.xs=function(){return!0},$t.Xj=function(){return!0},De.Object.defineProperties(gs.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];On(E)||qe("GraphLinksModel.linkDataArray must only contain Objects, not: "+E),ha(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 xi,E=0;E<x;E++)b.add(a[E]);for(this.$f=b,uu(this,"linkDataArray",Na,"linkDataArray",this,y,a),y=0;y<x;y++)Yv(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"}}}),gs.prototype.setCategoryForLinkData=gs.prototype.lp,gs.prototype.getCategoryForLinkData=gs.prototype.ps,gs.prototype.assignAllDataProperties=gs.prototype.Do,gs.prototype.setGroupKeyForNodeData=gs.prototype.mp,gs.prototype.getGroupKeyForNodeData=gs.prototype.lh,gs.prototype.isGroupForNodeData=gs.prototype.Yu,gs.prototype.copyLinkData=gs.prototype.Jo,gs.prototype.mergeLinkDataArray=gs.prototype.Zz,gs.prototype.removeLinkDataCollection=gs.prototype.lA,gs.prototype.removeLinkData=gs.prototype.bm,gs.prototype.addLinkDataCollection=gs.prototype.Ey,gs.prototype.addLinkData=gs.prototype.fi,gs.prototype.containsLinkData=gs.prototype.Jc,gs.prototype.makeLinkDataKeyUnique=gs.prototype.Bs,gs.prototype.findLinkDataForKey=gs.prototype.jh,gs.prototype.setKeyForLinkData=gs.prototype.Ks,gs.prototype.getKeyForLinkData=gs.prototype.Ac,gs.prototype.removeLabelKeyForLinkData=gs.prototype.Qx,gs.prototype.addLabelKeyForLinkData=gs.prototype.Bu,gs.prototype.setLabelKeysForLinkData=gs.prototype.Ls,gs.prototype.getLabelKeysForLinkData=gs.prototype.Ef,gs.prototype.setToPortIdForLinkData=gs.prototype.Cv,gs.prototype.getToPortIdForLinkData=gs.prototype.Cx,gs.prototype.setFromPortIdForLinkData=gs.prototype.xv,gs.prototype.getFromPortIdForLinkData=gs.prototype.zx,gs.prototype.setToKeyForLinkData=gs.prototype.Bv,gs.prototype.getToKeyForLinkData=gs.prototype.Bx,gs.prototype.setFromKeyForLinkData=gs.prototype.wv,gs.prototype.getFromKeyForLinkData=gs.prototype.yx,gs.prototype.clear=gs.prototype.clear;var I0=Object.freeze([]);gs.className="GraphLinksModel",tA.GraphLinksModel=gs,Or.constructGraphLinksModel=Or.constructGraphLinksModel=function(){return new gs},Or.initDiagramModel=Xv=function(){return new gs};function Xh(a,y){Or.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(ui(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Tn(Xh,Or),Xh.constructGraphLinksModel=Or.constructGraphLinksModel,Xh.prototype.cloneProtected=function(a){Or.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},$t=Xh.prototype,$t.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)+":"+Pr(E)}}return y},$t.rm=function(){var a=Or.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
|
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},$t.gp=function(a){Or.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},$t.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&qe("applyIncrementalJson cannot change Model properties"),Or.prototype.fp.call(this,a)},$t.Vl=function(a){return a},$t.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=Wl(a,y),y!==void 0)){if(sg(y))return y;qe("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},$t.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=Wl(a,x);b!==y&&(wA(this,b,a),_a(a,x,y),this.hc(y)===null&&yA(this,y,a),uu(this,"nodeParentKey",Na,x,a,b,y),typeof x=="string"&&this.La(a,x))}else _a(a,x,y)}},$t.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=Wl(a,y),y===void 0)?"":typeof y=="string"?y:(qe("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},Xh.prototype.getLinkCategoryForData=function(a){return this.ss(a)},Xh.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var b=Wl(a,x);b===void 0&&(b=""),b!==y&&(_a(a,x,y),uu(this,"parentLinkCategory",Na,x,a,b,y),typeof x=="string"&&this.La(a,x))}else _a(a,x,y)}},Xh.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},Xh.prototype.copyNodeData=function(a){return a===null?null:(a=Or.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||Wl(a,this.Ke)===void 0||_a(a,this.Ke,void 0),a)},Xh.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=Wl(a,y);b!==x&&(_a(a,y,x),this.Fs(a,y,b,x))},$t=Xh.prototype,$t.jp=function(a,y){Or.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},$t.qv=function(a,y,x){if(this.mh(a)===y){var b=this.Ke;_a(a,b,x),uu(this,"nodeParentKey",Na,b,a,y,x),typeof b=="string"&&this.La(a,b)}},$t.fm=function(a){Or.prototype.fm.call(this,a),a=this.wa(a);var y=Lm(this,a);if(y!==null){var x=ar();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)&&this.mh(b)===a){var E=this.Ke;uu(this,"nodeParentKey",Na,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]);Lr(x)}},$t.em=function(a){Or.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&yA(this,y,a)},$t.qp=function(a){Or.prototype.qp.call(this,a);var y=this.mh(a);wA(this,y,a)},$t.lm=function(a,y){Or.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},$t.Tl=function(){return!0},$t.xs=function(){return!0},De.Object.defineProperties(Xh.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"}}}),Xh.prototype.setParentLinkCategoryForNodeData=Xh.prototype.Ms,Xh.prototype.getParentLinkCategoryForNodeData=Xh.prototype.ss,Xh.prototype.setParentKeyForNodeData=Xh.prototype.qe,Xh.prototype.getParentKeyForNodeData=Xh.prototype.mh,Xh.className="TreeModel",tA.TreeModel=Xh;function gl(a){Ka.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=eA,this.Ti=0,this.Zv=new Ne,this.Jp=this.me=0,this.Xr=new Om,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=$h,this.nd=Vp,this.hd=zv,this.tf=6,this.Nn=R0,a&&Object.assign(this,a)}Tn(gl,Ka),gl.prototype.cloneProtected=function(a){Ka.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},gl.prototype.qb=function(a){a.classType===gl?a===j0||a===U0||a===O0||a===D0||a===Vp?this.sorting=a:a===Og||a===Wp||a===$h||a===lg?this.direction=a:a===Tf||a===ag||a===eA||a===nA?this.arrangement=a:(a===sp||a===R0)&&(this.nodeDiameterFormula=a):Ka.prototype.qb.call(this,a)},gl.prototype.createNetwork=function(){return new Zp(this)},gl.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,ut=this.radius;(!isFinite(ut)||0>=ut)&&(ut=NaN);var ct=this.aspectRatio;(!isFinite(ct)||0>=ct)&&(ct=1);var yt=this.startAngle;isFinite(yt)||(yt=0);var kt=this.sweepAngle;if((!isFinite(kt)||360<kt||1>kt)&&(kt=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 zt=z=E=0;zt<b.length;zt++){var Xt=yt+kt*z*(this.direction===$h?1:-1)/at,he=b.M(zt).diameter;isNaN(he)&&(he=ug(b.M(zt),Xt)),360>kt&&(zt===0||zt===b.length-1)&&(he/=2),E+=he,z++}if(isNaN(ut)||ot===nA){if(isNaN(y)&&(y=6),ot!==eA&&ot!==nA){for(z=-1/0,nt=0;nt<at;nt++)zt=b.M(nt),E=b.M(nt===at-1?0:nt+1),isNaN(zt.diameter)&&ug(zt,0),isNaN(E.diameter)&&ug(E,0),z=Math.max(z,(zt.diameter+E.diameter)/2);nt=z+y,ot===Tf?ut=(z+y)/(2*Math.PI/at):ut=k0(this,nt*(360<=kt?at:at-1),ct,yt*Math.PI/180,kt*Math.PI/180)}else ut=k0(this,E+(360<=kt?at:at-1)*(ot!==nA?y:1.6*y),ct,yt*Math.PI/180,kt*Math.PI/180);z=ut*ct}else if(z=ut*ct,zt=Jv(this,ut,z,yt*Math.PI/180,kt*Math.PI/180),isNaN(y))(ot===eA||ot===nA)&&(y=(zt-E)/(360<=kt?at:at-1));else if(ot===eA||ot===nA)zt=(zt-E)/(360<=kt?at:at-1),zt<y?(ut=k0(this,E+y*(360<=kt?at:at-1),ct,yt*Math.PI/180,kt*Math.PI/180),z=ut*ct):y=zt;else{for(nt=-1/0,E=0;E<at;E++)Xt=b.M(E),he=b.M(E===at-1?0:E+1),isNaN(Xt.diameter)&&ug(Xt,0),isNaN(he.diameter)&&ug(he,0),nt=Math.max(nt,(Xt.diameter+he.diameter)/2);nt+=y,E=k0(this,nt*(360<=kt?at:at-1),ct,yt*Math.PI/180,kt*Math.PI/180),E>ut?(ut=E,z=ut*ct):nt=zt/(360<=kt?at:at-1)}if(this.kw=ot,this.lc=ut,this.Zm=ct,this.lw=yt,this.Wp=kt,this.Ti=y,this.me=z,this.Jp=nt,y=b,b=this.kw,ot=this.lc,ut=this.lw,ct=this.Wp,yt=this.Ti,kt=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*T0(this,ot,kt,ut,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*T0(this,ot,kt,ut,yt+(y+at)/2)/Math.PI;break;case Tf:nt=ct/y.length}if(this.direction===Og){switch(b){case ag:Tm(this,a,ut,lg);break;case eA:km(this,a,ut,lg);break;case Tf:Im(this,a,ct/2,ut,lg)}switch(b){case ag:Tm(this,x,ut+nt,$h);break;case eA:km(this,x,ut+nt,$h);break;case Tf:Im(this,x,ct/2,ut+nt,$h)}}else{switch(b){case ag:Tm(this,x,ut,lg);break;case eA:km(this,x,ut,lg);break;case Tf:Im(this,x,ct/2,ut,lg)}switch(b){case ag:Tm(this,a,ut+nt,$h);break;case eA:km(this,a,ut+nt,$h);break;case Tf:Im(this,a,ct/2,ut+nt,$h)}}}else switch(b){case ag:Tm(this,y,ut,this.direction);break;case eA:km(this,y,ut,this.direction);break;case Tf:Im(this,y,ct,ut,this.direction);break;case nA:R1(this,y,ct,ut,this.direction)}else R1(this,y,ct,ut-ct/2,$h)}this.updateParts(),this.network=null,this.isValidLayout=!0};function Im(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 ut=b+(E===$h?at*x/(360<=z?ot:ot-1):-(at*x)/ot),ct=y.M(at),yt=nt*Math.tan(ut)/a;yt=Math.sqrt((nt*nt+a*a*yt*yt)/(1+yt*yt)),ct.centerX=yt*Math.cos(ut),ct.centerY=yt*Math.sin(ut),ct.actualAngle=180*ut/Math.PI}}function km(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 ut=y.M(at),ct=y.M(at===ot-1?0:at+1),yt=z*Math.sin(x);ut.centerX=E*Math.cos(x),ut.centerY=yt,ut.actualAngle=180*x/Math.PI,isNaN(ut.diameter)&&ug(ut,0),isNaN(ct.diameter)&&ug(ct,0),ut=T0(a,E,z,b===$h?x:-x,(ut.diameter+ct.diameter)/2+nt),x+=b===$h?ut:-ut}}function Tm(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 ut=y.M(at);ut.centerX=E*Math.cos(x),ut.centerY=z*Math.sin(x),ut.actualAngle=180*x/Math.PI,ut=T0(a,E,z,b===$h?x:-x,nt),x+=b===$h?ut:-ut}}function R1(a,y,x,b,E){var z=a.Wp;if(a.mj=0,a.Xr=new Om,360>x){for(z=b+(E===$h?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),ut=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=Ne.alloc();for(var yt=0;yt<ct.length&&(ct[yt].centerX=at,ct[yt].centerY=ut,!(yt>=ct.length-1));yt++)Q1(a,at,ut,ct,yt,E,z)||z1(a,at,ut,ct,yt,E,z),at=z.x,ut=z.y;if(Ne.free(z),a.mj++,!(23<a.mj)){at=ct[0].centerX,ut=ct[0].centerY,z=ct[ct.length-1].centerX,yt=ct[ct.length-1].centerY;var kt=Math.abs(at-z)-((ct[0].width+ct[ct.length-1].width)/2+nt),zt=Math.abs(ut-yt)-((ct[0].height+ct[ct.length-1].height)/2+nt);nt=0,1>Math.abs(zt)?Math.abs(at-z)<(ct[0].width+ct[ct.length-1].width)/2&&(nt=0):nt=0<zt?zt:1>Math.abs(kt)?0:kt,at=Math.abs(z)>Math.abs(yt)?0<z!=ut>yt:0<yt!=at<z,(at=E===$h?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),ut=nt*Math.sin(b*Math.PI/180),ct=Ne.alloc(),yt=y.Fa(),kt=0;kt<yt.length&&(yt[kt].centerX=at,yt[kt].centerY=ut,!(kt>=yt.length-1));kt++)Q1(a,at,ut,yt,kt,E,ct)||z1(a,at,ut,yt,kt,E,ct),at=ct.x,ut=ct.y;if(Ne.free(ct),a.mj++,!(23<a.mj)){if(at=Math.atan2(ut,at),at=E===$h?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<yt.length;at++)nt.mk[at]=yt[at].bounds.x,nt.tm[at]=yt[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,ut=0;a=(b[E].width+b[E+1].width)/2+a.Ti;var ct=!1;if(0<=x!=(z===$h)){if(z=y+a,z>ot){if(z=y-a,z<-ot)return nt.x=z,nt.y=ut,!1;ct=!0}}else if(z=y-a,z<-ot){if(z=y+a,z>ot)return nt.x=z,nt.y=ut,!1;ct=!0}return ut=Math.sqrt(1-Math.min(1,z*z/(ot*ot)))*at,0>x!==ct&&(ut=-ut),Math.abs(x-ut)>(b[E].height+b[E+1].height)/2?(nt.x=z,nt.y=ut,!1):(nt.x=z,nt.y=ut,!0)}function z1(a,y,x,b,E,z,nt){var ot=a.lc,at=a.me,ut=0;if(a=(b[E].height+b[E+1].height)/2+a.Ti,b=!1,0<=y!=(z===$h)){if(z=x-a,z<-at){if(z=x+a,z>at){nt.x=ut,nt.y=z;return}b=!0}}else if(z=x+a,z>at){if(z=x-a,z<-at){nt.x=ut,nt.y=z;return}b=!0}ut=Math.sqrt(1-Math.min(1,z*z/(at*at)))*ot,0>y!==b&&(ut=-ut),nt.x=ut,nt.y=z}gl.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},gl.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 Ne(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))},gl.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,ut=0;ut<=z;ut++){b!==void 0&&E!==void 0?at=b+ut*E/z:at=ut*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 k0(a,y,x,b,E){return y/(b!==void 0&&E!==void 0?Jv(a,1,x,b,E):Jv(a,1,x))}function T0(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}}gl.prototype.sort=function(a){switch(this.sorting){case O0:break;case D0:a.reverse();break;case j0:a.sort(this.comparer);break;case U0:a.sort(this.comparer),a.reverse();break;case Vp:return this.ak(_w(a));default:qe("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}gl.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,ut=0;ut<y.length;ut++){var ct=y[ut].length;if(ct===1)b.push(ut);else if(ct===0)E.add(a.M(ut));else{if(at===0)x.push(ut);else{for(var yt=ct=1/0,kt=-1,zt=[],Xt=0;Xt<x.length;Xt++)0>y[x[Xt]].indexOf(x[Xt===x.length-1?0:Xt+1])&&zt.push(Xt===x.length-1?0:Xt+1);if(zt.length===0)for(Xt=0;Xt<x.length;Xt++)zt.push(Xt);for(Xt=0;Xt<zt.length;Xt++){for(var he=zt[Xt],ze=y[ut],Fe=0,Ze=0;Ze<nt.length;Ze++){var tn=z[nt[Ze]],on=z[ot[Ze]];if(tn<on){var Sn=tn;tn=on}else Sn=on;if(Sn<he&&he<=tn)for(on=0;on<ze.length;on++){var Wn=ze[on];0>x.indexOf(Wn)||Sn<z[Wn]&&z[Wn]<tn||Sn===z[Wn]||tn===z[Wn]||Fe++}else for(on=0;on<ze.length;on++)Wn=ze[on],0>x.indexOf(Wn)||Sn<z[Wn]&&z[Wn]<tn&&Sn!==z[Wn]&&tn!==z[Wn]&&Fe++}for(ze=Fe,Ze=Fe=0;Ze<y[ut].length;Ze++)Sn=x.indexOf(y[ut][Ze]),0<=Sn&&(Sn=Math.abs(he-(Sn>=he?Sn+1:Sn)),Fe+=Sn<x.length+1-Sn?Sn:x.length+1-Sn);for(Ze=0;Ze<nt.length;Ze++)Sn=z[nt[Ze]],tn=z[ot[Ze]],Sn>=he&&Sn++,tn>=he&&tn++,Sn>tn&&(on=tn,tn=Sn,Sn=on),tn-Sn<(x.length+2)/2==(Sn<he&&he<=tn)&&Fe++;(ze<ct||ze===ct&&Fe<yt)&&(ct=ze,yt=Fe,kt=he)}for(x.splice(kt,0,ut),ct=0;ct<x.length;ct++)z[x[ct]]=ct;for(ct=0;ct<y[ut].length;ct++)yt=y[ut][ct],0<=x.indexOf(yt)&&(nt.push(ut),ot.push(yt))}at++}}for(nt=x.length;;){for(z=!0,ot=0;ot<b.length;ot++)if(at=b[ot],ut=y[at][0],ct=x.indexOf(ut),0<=ct){for(kt=yt=0;kt<y[ut].length;kt++)zt=x.indexOf(y[ut][kt]),0>zt||zt===ct||(Xt=zt>ct?zt-ct:ct-zt,yt+=zt<ct!=Xt>nt-Xt?1:-1);x.splice(0>yt?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},De.Object.defineProperties(gl.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!==$h&&a!==lg&&a!==Og&&a!==Wp||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==O0&&a!==D0&&a!==j0&&!U0&&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!==R0&&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 pi(gl,"ConstantSpacing",0),ag=new pi(gl,"ConstantDistance",1),Tf=new pi(gl,"ConstantAngle",2),nA=new pi(gl,"Packed",3),$h=new pi(gl,"Clockwise",4),lg=new pi(gl,"Counterclockwise",5),Og=new pi(gl,"BidirectionalLeft",6),Wp=new pi(gl,"BidirectionalRight",7),O0=new pi(gl,"Forwards",8),D0=new pi(gl,"Reverse",9),j0=new pi(gl,"Ascending",10),U0=new pi(gl,"Descending",11),Vp=new pi(gl,"Optimized",12),R0=new pi(gl,"Pythagorean",13),sp=new pi(gl,"Circular",14);gl.className="CircularLayout",gl.ConstantSpacing=eA,gl.ConstantDistance=ag,gl.ConstantAngle=Tf,gl.Packed=nA,gl.Clockwise=$h,gl.Counterclockwise=lg,gl.BidirectionalLeft=Og,gl.BidirectionalRight=Wp,gl.Forwards=O0,gl.Reverse=D0,gl.Ascending=j0,gl.Descending=U0,gl.Optimized=Vp,gl.Pythagorean=R0,gl.Circular=sp;function Om(){this.Pl=-1/0,this.tm=this.mk=null}Om.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},Om.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]}},Om.className="VertexArrangement";function Zp(a){Ba.call(this,a)}Tn(Zp,Ba),Zp.prototype.createVertex=function(){return new Dm(this)},Zp.prototype.createEdge=function(){return new _0(this)},Zp.className="CircularNetwork";function Dm(a){vu.call(this,a),this.u=this.Si=NaN}Tn(Dm,vu);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}De.Object.defineProperties(Dm.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)}}}),Dm.className="CircularVertex";function _0(a){Rc.call(this,a)}Tn(_0,Rc),_0.className="CircularEdge";function uh(a){Ka.call(this),this.ah=null,this.An=0,this.$d=new Zi(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)}Tn(uh,Ka),uh.prototype.cloneProtected=function(a){Ka.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 ut=ar(),ct=0;ct<ot+y.vertexes.count+2;ct++)ut[ct]=null;ot=0,nt.reset();for(var yt=ai.alloc();nt.next();)if(ct=nt.value,this.computeBounds(ct,yt),at)at=!1,E=yt.x+yt.width/2,z=yt.y+yt.height/2,ut[0]=new Ne(yt.x+yt.width+b.width,yt.y),ut[1]=new Ne(yt.x,yt.y+yt.height+b.height),ot=2;else{var kt=G1(ut,ot,E,z,yt.width,yt.height,b),zt=ut[kt],Xt=new Ne(zt.x+yt.width+b.width,zt.y),he=new Ne(zt.x,zt.y+yt.height+b.height);for(kt+1<ot&&ut.splice(kt+1,0,null),ut[kt]=Xt,ut[kt+1]=he,ot++,kt=zt.x-yt.x,zt=zt.y-yt.y,ct=ct.vertexes.iterator;ct.next();)Xt=ct.value,Xt.centerX+=kt,Xt.centerY+=zt}for(ai.free(yt),ct=y.vertexes.iterator;ct.next();)nt=ct.value,kt=nt.bounds,2>ot?(E=kt.x+kt.width/2,z=kt.y+kt.height/2,ut[0]=new Ne(kt.x+kt.width+b.width,kt.y),ut[1]=new Ne(kt.x,kt.y+kt.height+b.height),ot=2):(at=G1(ut,ot,E,z,kt.width,kt.height,b),yt=ut[at],zt=new Ne(yt.x+kt.width+b.width,yt.y),kt=new Ne(yt.x,yt.y+kt.height+b.height),at+1<ot&&ut.splice(at+1,0,null),ut[at]=zt,ut[at+1]=kt,ot++,nt.centerX=yt.x+nt.width/2,nt.centerY=yt.y+nt.height/2);for(Lr(ut),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,En.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 ut=ot=0,ct=at.count-nt;ct<at.count;ct++){var yt=at.M(ct),kt=null;for(z=yt.edges.iterator;z.next();){var zt=z.value;if(zt.Ax(yt)===E){kt=zt;break}}kt!==null&&(ut+=kt.length,ot+=yt.width*yt.height)}z=E.centerX,at=E.centerY,ct=E.width,yt=E.height,kt=E.focus,zt=ct*yt,1>zt&&(zt=1),ot=En.sqrt((ot+zt+ut*ut*4/(nt*nt))/zt),nt=(ot-1)*ct/2,ot=(ot-1)*yt/2,E.bounds=new ai(z-kt.x-nt,at-kt.y-ot,ct+2*nt,yt+2*ot),E.focus=new Ne(kt.x+nt,kt.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 Ne(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=En.sqrt(z*z+nt*nt)/2;for(var ot=!1,at=nt=0,ut=0,ct=y.vertexes.iterator;ct.next();){var yt=ct.value;1>=yt.Vd?at++:(ot=!0,ut++,nt+=Math.atan2(y.centerY-yt.centerY,y.centerX-yt.centerX))}if(at!==0){for(0<ut&&(nt/=ut),ut=y=0,y=ot?2*Math.PI/(at+1):2*Math.PI/at,at%2===0&&(ut=y/2),1<x.count&&x.sort(function(zt,Xt){return zt===null||Xt===null||zt===Xt?0:Xt.width*Xt.height-zt.width*zt.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,yt=at.edges.iterator;yt.next();){ct=yt.value;break}yt=at.width;var kt=at.height;yt=En.sqrt(yt*yt+kt*kt)/2,ct=z+ct.length+yt,yt=nt+(y*(ot/2>>1)+ut)*(ot%2===0?1:-1),at.centerX=b+ct*Math.cos(yt),at.centerY=E+ct*Math.sin(yt),ot++}}}}function G1(a,y,x,b,E,z,nt){var ot=9e19,at=-1,ut=0;t:for(;ut<y;ut++){var ct=a[ut],yt=ct.x-x,kt=ct.y-b;if(yt=yt*yt+kt*kt,yt<ot){for(kt=ut-1;0<=kt;kt--)if(a[kt].y>ct.y&&a[kt].x-ct.x<E+nt.width)continue t;for(kt=ut+1;kt<y;kt++)if(a[kt].x>ct.x&&a[kt].y-ct.y<z+nt.height)continue t;at=ut,ot=yt}}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,En.sqrt(x*x+a*a)):a+x<y?(b=b+E-nt,a=a+x-y,En.sqrt(b*b+a*a)):nt-(b+E):b>nt+ot?a>y+z?(x=b-nt-ot,a=a-y-z,En.sqrt(x*x+a*a)):a+x<y?(b=b-nt-ot,a=a+x-y,En.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(he,ze){return he===null||ze===null||he===ze?0:he.centerX-ze.centerX}):y.sort(function(he,ze){return he===null||ze===null||he===ze?0:he.centerY-ze.centerY}),x=a.Zf;var ut=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),ut=nt.charge*a.electricalFieldY(at,ct),b+=nt.mass*a.gravitationalFieldX(at,ct),ut+=nt.mass*a.gravitationalFieldY(at,ct),nt.forceX+=b,nt.forceY+=ut;for(var yt=z+1;yt<y.length;yt++){var kt=y[yt];if(kt!==nt){b=kt.bounds,ot=kt.focus,ut=b.x+ot.x;var zt=b.y+ot.y;if(at-ut>x||ut-at>x){if(E)break}else if(ct-zt>x||zt-ct>x){if(!E)break}else{var Xt=W1(nt,kt);1>Xt?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new H0),Xt=b.random(),ot=b.random(),at>ut?(b=Math.abs(kt.bounds.right-nt.bounds.x),b=(1+b)*Xt):at<ut?(b=Math.abs(kt.bounds.x-nt.bounds.right),b=-(1+b)*Xt):(b=Math.max(kt.width,nt.width),b=(1+b)*Xt-b/2),ct>zt?(ut=Math.abs(kt.bounds.bottom-nt.bounds.y),ut=(1+ut)*ot):at<ut?(ut=Math.abs(kt.bounds.y-nt.bounds.bottom),ut=-(1+ut)*ot):(ut=Math.max(kt.height,nt.height),ut=(1+ut)*ot-ut/2)):(ot=-(nt.charge*kt.charge)/(Xt*Xt),b=(ut-at)/Xt*ot,ut=(zt-ct)/Xt*ot),nt.forceX+=b,nt.forceY+=ut,kt.forceX-=b,kt.forceY-=ut}}}}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,yt=z.focus,at=ct.x+yt.x,ct=ct.y+yt.y,yt=W1(x,z),1>yt?(yt=a.randomNumberGenerator,yt===null&&(a.randomNumberGenerator=yt=new H0),ot=yt.random(),yt=yt.random(),b=(b>at?1:-1)*(1+(z.width>x.width?z.width:x.width))*ot,ut=(nt>ct?1:-1)*(1+(z.height>x.height?z.height:x.height))*yt):(ot=ot.stiffness*(yt-ot.length),b=(at-b)/yt*ot,ut=(ct-nt)/yt*ot),x.forceX+=b,x.forceY+=ut,z.forceX-=b,z.forceY-=ut;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},De.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"&&qe('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)}Tn(ap,Ba),ap.prototype.createVertex=function(){return new jm(this)},ap.prototype.createEdge=function(){return new Um(this)},ap.className="ForceDirectedNetwork";function jm(a){vu.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}Tn(jm,vu),De.Object.defineProperties(jm.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)}}}),jm.className="ForceDirectedVertex";function Um(a){Rc.call(this,a),this.j=this.o=NaN}Tn(Um,Rc),De.Object.defineProperties(Um.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)}}}),Um.className="ForceDirectedEdge";function H0(){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()}H0.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},H0.className="RandomNumberGenerator";function Ys(a){Ka.call(this),this.kc=this.ie=25,this.K=0,this.Dk=W0,this.Zk=V0,this.Qk=Z0,this.bj=4,this.rk=X0,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 Ne,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}Tn(Ys,Ka),Ys.prototype.cloneProtected=function(a){Ka.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},Ys.prototype.qb=function(a){a.classType===Ys?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:qe("Unknown enum value: "+a):Ka.prototype.qb.call(this,a)},Ys.prototype.createNetwork=function(){return new $p(this)},Ys.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!==_m&&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===_m&&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,ut=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 yt=ot.fromNode;at=ot.toNode;for(var kt=ot.fromPort;kt!==null&&!kt.Ed();)kt=kt.panel;for(ot=ot.toPort;ot!==null&&!ot.Ed();)ot=ot.panel;if(b.rev){ut=yt;var zt=kt;yt=at,kt=ot,at=ut,ot=zt}var Xt=E.focus;ut=z.focus;var he=b.rev?z.bounds:E.bounds;zt=Ne.alloc(),ct!==yt?he.w()&&yt.isVisible()?yt.actualBounds.w()?(Lf(yt,kt,Fo,zt),zt.x+=yt.actualBounds.x-he.x,zt.y+=yt.actualBounds.y-he.y):(Lf(yt,kt,Fo,zt),zt.w()||zt.assign(Xt)):zt.assign(Xt):he.w()?(Lf(yt,kt,Fo,zt),zt.w()||zt.assign(Xt)):zt.assign(Xt),yt=b.rev?E.bounds:z.bounds,ct=Ne.alloc(),nt!==at?yt.w()&&at.isVisible()?at.actualBounds.w()?(Lf(at,ot,Fo,ct),ct.x+=at.actualBounds.x-yt.x,ct.y+=at.actualBounds.y-yt.y):(Lf(at,ot,Fo,ct),ct.w()||ct.assign(ut)):ct.assign(ut):yt.w()?(Lf(at,ot,Fo,ct),ct.w()||ct.assign(ut)):ct.assign(ut),this.K===90||this.K===270?(nt=Math.round((zt.x-Xt.x)/this.kc),at=zt.x,ot=Math.round((ct.x-ut.x)/this.kc),ut=ct.x):(nt=Math.round((zt.y-Xt.y)/this.kc),at=zt.y,ot=Math.round((ct.y-ut.y)/this.kc),ut=ct.y),Ne.free(zt),Ne.free(ct),b.portFromColOffset=nt,b.portFromPos=at,b.portToColOffset=ot,b.portToPos=ut}else b.portFromColOffset=0,b.portFromPos=0,b.portToColOffset=0,b.portToPos=0;if(zt=E.layer,ct=z.layer,yt=0,he=b.link,he!==null){var ze=he.fromPort,Fe=he.toPort;if(ze!==null&&Fe!==null){var Ze=he.fromNode;if(kt=he.toNode,Ze!==null&&kt!==null){var tn=G0(this,!0),on=G0(this,!1),Sn=this.setsPortSpots?tn:he.computeSpot(!0,ze);Xt=this.setsPortSpots?on:he.computeSpot(!1,Fe);var Wn=he.isOrthogonal;Sn.$c()&&Sn.Hf(on)&&Xt.$c()&&Xt.Hf(tn)?yt=0:(tn=he.getLinkPoint(Ze,ze,Sn,!0,Wn,kt,Fe,Ne.alloc()),on=he.getLinkDirection(Ze,ze,tn,Sn,!0,Wn,kt,Fe),Ne.free(tn),Sn.ys()||on!==iw(this,b,!0)?this.setsPortSpots&&Ze!==null&&Ze.ports.count===1&&b.rev&&(yt+=1):yt+=1,Sn=he.getLinkPoint(kt,Fe,Xt,!1,Wn,Ze,ze,Ne.alloc()),he=he.getLinkDirection(kt,Fe,Sn,Xt,!1,Wn,Ze,ze),Ne.free(Sn),Xt.ys()||he!==iw(this,b,!1)?this.setsPortSpots&&kt!==null&&kt.ports.count===1&&b.rev&&(yt+=2):yt+=2)}}}if(kt=yt,yt=kt===1||kt===3,(kt=kt===2||kt===3)&&(Xt=a.createVertex(),Xt.node=null,Xt.Dj=1,Xt.layer=zt,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),he=1,yt&&he--,zt-ct>he&&0<zt){for(b.valid=!1,Xt=a.createVertex(),Xt.node=null,Xt.Dj=2,Xt.layer=zt-1,a.dh(Xt),E=a.Zj(E,Xt,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=kt?0:nt,E.portToColOffset=0,E.portFromPos=kt?0:at,E.portToPos=0,E=Xt,zt--;zt-ct>he&&0<zt;)Xt=a.createVertex(),Xt.node=null,Xt.Dj=3,Xt.layer=zt-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,zt--;E=a.Zj(Xt,z,b.link),E.valid=!yt,yt&&(Xt.near=z),E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=ot,E.portFromPos=0,E.portToPos=ut}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},Ys.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}Ys.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},Ys.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 gd(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 X1(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],ut=at.near;if(ut!==null&&ut.layer===at.layer)if(at=ut.index,at>nt)for(var ct=nt+1;ct<at;ct++){var yt=b[ct];yt.near===ut&&yt.Dj===ut.Dj||ot++}else for(ct=nt-1;ct>at;ct--)yt=b[ct],yt.near===ut&&yt.Dj===ut.Dj||ot++;var kt;if(0<=x)for(at=b[nt].sourceEdgesArrayAccess,ut=0;ut<at.length;ut++){var zt=at[ut];if(zt.valid&&zt.fromVertex.layer!==y)for(yt=zt.fromVertex.index,ct=zt.portToPos,zt=zt.portFromPos,kt=ut+1;kt<at.length;kt++){var Xt=at[kt];if(Xt.valid&&Xt.fromVertex.layer!==y){var he=Xt.fromVertex.index,ze=Xt.portToPos;Xt=Xt.portFromPos,ct<ze&&(yt>he||yt===he&&zt>Xt)&&ot++,ze<ct&&(he>yt||he===yt&&Xt>zt)&&ot++}}}if(0>=x){for(at=b[nt].destinationEdgesArrayAccess,ut=0;ut<at.length;ut++)if(zt=at[ut],zt.valid&&zt.toVertex.layer!==y)for(yt=zt.toVertex.index,ct=zt.portToPos,zt=zt.portFromPos,kt=ut+1;kt<at.length;kt++)Xt=at[kt],Xt.valid&&Xt.toVertex.layer!==y&&(he=Xt.toVertex.index,ze=Xt.portToPos,Xt=Xt.portFromPos,zt<Xt&&(yt>he||yt===he&&ct>ze)&&ot++,Xt<zt&&(he>yt||he===yt&&ze>ct)&&ot++)}for(z[nt*E+nt]=ot,at=nt+1;at<E;at++){var Fe=0,Ze=0;if(0<=x){ot=b[nt].sourceEdgesArrayAccess;var tn=b[at].sourceEdgesArrayAccess;for(ut=0;ut<ot.length;ut++)if(zt=ot[ut],zt.valid&&zt.fromVertex.layer!==y)for(yt=zt.fromVertex.index,zt=zt.portFromPos,kt=0;kt<tn.length;kt++)Xt=tn[kt],Xt.valid&&Xt.fromVertex.layer!==y&&(he=Xt.fromVertex.index,Xt=Xt.portFromPos,(yt<he||yt===he&&zt<Xt)&&Ze++,(he<yt||he===yt&&Xt<zt)&&Fe++)}if(0>=x){for(ot=b[nt].destinationEdgesArrayAccess,tn=b[at].destinationEdgesArrayAccess,ut=0;ut<ot.length;ut++)if(zt=ot[ut],zt.valid&&zt.toVertex.layer!==y)for(yt=zt.toVertex.index,ct=zt.portToPos,kt=0;kt<tn.length;kt++)Xt=tn[kt],Xt.valid&&Xt.toVertex.layer!==y&&(he=Xt.toVertex.index,ze=Xt.portToPos,(yt<he||yt===he&&ct<ze)&&Ze++,(he<yt||he===yt&&ze<ct)&&Fe++)}z[nt*E+at]=Fe,z[at*E+nt]=Ze}}return cg(a,y,b),z}Ys.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=X1(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 Q0(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 ut=z[at].destinationEdgesArrayAccess;if(ut!==null)for(var ct=0;ct<ut.length;ct++){var yt=ut[ct];if(yt.valid&&yt.toVertex.layer!==E){var kt=yt.fromVertex.column+yt.portFromColOffset,zt=yt.toVertex.column+yt.portToColOffset;ot+=(Math.abs(kt-zt)+1)*qv(yt)}}}cg(b,E,z),y+=ot}return y}Ys.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 ut=null;0<=x&&(ut=ot.destinationEdgesArrayAccess);var ct=0,yt=0,kt=ot.near;if(kt!==null&&kt.layer===ot.layer&&(ct+=kt.column-1,yt++),at!==null)for(kt=0;kt<at.length;kt++){ot=at[kt];var zt=ot.fromVertex;ot.valid&&!ot.rev&&zt.layer!==y&&(ct+=zt.column,yt++)}if(ut!==null)for(at=0;at<ut.length;at++)ot=ut[at],kt=ot.toVertex,ot.valid&&!ot.rev&&kt.layer!==y&&(ct+=kt.column,yt++);z[nt]=yt===0?-1:ct/yt}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 ut=null;0<=x&&(ut=ot.destinationEdgesArrayAccess);var ct=0,yt=[],kt=ot.near;if(kt!==null&&kt.layer===ot.layer&&(yt[ct]=kt.column-1,ct++),ot=void 0,at!==null)for(kt=0;kt<at.length;kt++){ot=at[kt];var zt=ot.fromVertex;ot.valid&&!ot.rev&&zt.layer!==y&&(yt[ct]=zt.column+ot.portFromColOffset,ct++)}if(ut!==null)for(at=0;at<ut.length;at++)ot=ut[at],kt=ot.toVertex,ot.valid&&!ot.rev&&kt.layer!==y&&(yt[ct]=kt.column+ot.portToColOffset,ct++);ct===0?z[nt]=-1:(yt.sort(function(Xt,he){return Xt-he}),ut=ct>>1,z[nt]=ct&1?yt[ut]:yt[ut-1]+yt[ut]>>1)}return cg(a,y,b),z}function Rm(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,ut=y.layer-at.layer;ot=a.linkMinLength(ot),ut===ot&&Rm(a,at,x,b,E,z)}if(z)for(nt=y.sourceEdges;nt.next();)ot=nt.value,at=ot.fromVertex,ut=at.layer-y.layer,ot=a.linkMinLength(ot),ut===ot&&Rm(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)}}Ys.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=Y1(a);E!==null;)b[x]=E,x--,E.valid=!1,E=Y1(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,ut=ot.destinationEdges;ut.next();)ut.value.toVertex.valid&&at++;ut=0;for(var ct=ot.sourceEdges;ct.next();)ct.value.fromVertex.valid&&ut++;(E===null||z<at-ut)&&(E=ot,z=at-ut)}}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 W0: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 _m: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 Y1(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++}Ys.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 V0: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&&Rm(a,ot,0,-1,!0,!1)}for(Rm(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 ut=nt.value;if(ut.component===1){var ct=0,yt=!1,kt=ut.sourceEdgesArrayAccess;E=kt.length;for(var zt=0;zt<E;zt++){var Xt=kt[zt],he=Xt.fromVertex;ct+=1,he.component!==1&&(z+=1,he=he.layer-ut.layer,Xt=a.linkMinLength(Xt),b=Math.min(b,he-Xt))}for(kt=ut.destinationEdgesArrayAccess,E=kt.length,zt=0;zt<E;zt++)Xt=kt[zt].toVertex,--ct,Xt.component!==1?--z:yt=!0;(at===null||ct<ot)&&!yt&&(at=ut,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(Rm(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(ut=0,ct=!1,kt=nt.sourceEdgesArrayAccess,yt=kt.length,zt=0;zt<yt;zt++)Xt=kt[zt].fromVertex,ut+=1,Xt.component!==1?b+=1:ct=!0;for(kt=nt.destinationEdgesArrayAccess,yt=kt.length,zt=0;zt<yt;zt++)Xt=kt[zt],he=Xt.toVertex,--ut,he.component!==1&&(--b,he=nt.layer-he.layer,Xt=a.linkMinLength(Xt),E=Math.min(E,he-Xt));(ot===null||ut>z)&&!ct&&(ot=nt,z=ut)}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}Ys.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 Z0: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))}Ys.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++)z0(this,b,1),Nd(this,b,1);var E=this.countCrossings();for(E<a&&(a=E,y=cc(this)),b=this.Ia;0<=b;b--)z0(this,b,-1),Nd(this,b,-1);E=this.countCrossings(),E<a&&(a=E,y=cc(this))}for(gd(this,y),x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)z0(this,b,0),Nd(this,b,0);for(E=this.countCrossings(),E<a&&(a=E,y=cc(this)),b=this.Ia;0<=b;b--)z0(this,b,0),Nd(this,b,0);E=this.countCrossings(),E<a&&(a=E,y=cc(this))}gd(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=Nd(this,b,-1)||z;for(E=this.countCrossings(),E>=a?gd(this,y):(a=E,y=cc(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Nd(this,b,1)||z;for(E=this.countCrossings(),E>=a?gd(this,y):(a=E,y=cc(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Nd(this,b,1)||z;for(E>=a?gd(this,y):(a=E,y=cc(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Nd(this,b,-1)||z;for(E>=a?gd(this,y):(a=E,y=cc(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Nd(this,b,0)||z;for(E>=a?gd(this,y):(a=E,y=cc(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Nd(this,b,0)||z;E>=a?gd(this,y):(a=E,y=cc(this))}break;default:case X0: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=Nd(this,b,-1)||z;for(E=this.countCrossings(),E>=a?gd(this,y):(a=E,y=cc(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Nd(this,b,1)||z;for(E=this.countCrossings(),E>=a?gd(this,y):(a=E,y=cc(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Nd(this,b,1)||z;for(E>=a?gd(this,y):(a=E,y=cc(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Nd(this,b,-1)||z;for(E>=a?gd(this,y):(a=E,y=cc(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Nd(this,b,0)||z;for(E>=a?gd(this,y):(a=E,y=cc(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Nd(this,b,0)||z;E>=a?gd(this,y):(a=E,y=cc(this))}}gd(this,y)};function z0(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 Nd(a,y,x){var b=hg(a,y),E=a.tc[y];x=X1(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,ut=!0;ut;)for(ut=!1,z=0;z<E-1;z++){var ct=x[b[z].index*E+b[z+1].index],yt=x[b[z+1].index*E+b[z].index],kt=0,zt=0,Xt=b[z].column,he=b[z+1].column,ze=a.nodeMinColumnSpace(b[z],!0),Fe=a.nodeMinColumnSpace(b[z],!1),Ze=a.nodeMinColumnSpace(b[z+1],!0),tn=a.nodeMinColumnSpace(b[z+1],!1);ze=Xt-ze+Ze,Fe=he-Fe+tn;var on=b[z].sourceEdges.iterator;for(on.reset();on.next();)if(Ze=on.value,tn=Ze.fromVertex,Ze.valid&&tn.layer===y){for(Ze=0;b[Ze]!==tn;)Ze++;Ze<z&&(kt+=2*(z-Ze),zt+=2*(z+1-Ze)),Ze===z+1&&(kt+=1),Ze>z+1&&(kt+=4*(Ze-z),zt+=4*(Ze-(z+1)))}for(on=b[z].destinationEdges.iterator,on.reset();on.next();)if(Ze=on.value,tn=Ze.toVertex,Ze.valid&&tn.layer===y){for(Ze=0;b[Ze]!==tn;)Ze++;Ze===z+1&&(zt+=1)}for(on=b[z+1].sourceEdges.iterator,on.reset();on.next();)if(Ze=on.value,tn=Ze.fromVertex,Ze.valid&&tn.layer===y){for(Ze=0;b[Ze]!==tn;)Ze++;Ze<z&&(kt+=2*(z+1-Ze),zt+=2*(z-Ze)),Ze===z&&(zt+=1),Ze>z+1&&(kt+=4*(Ze-(z+1)),zt+=4*(Ze-z))}for(on=b[z+1].destinationEdges.iterator,on.reset();on.next();)if(Ze=on.value,tn=Ze.toVertex,Ze.valid&&tn.layer===y){for(Ze=0;b[Ze]!==tn;)Ze++;Ze===z&&(kt+=1)}Ze=tn=0,on=nt[b[z].index];var Sn=ot[b[z].index],Wn=nt[b[z+1].index],rr=ot[b[z+1].index];on!==-1&&(tn+=Math.abs(on-Xt),Ze+=Math.abs(on-Fe)),Sn!==-1&&(tn+=Math.abs(Sn-Xt),Ze+=Math.abs(Sn-Fe)),Wn!==-1&&(tn+=Math.abs(Wn-he),Ze+=Math.abs(Wn-ze)),rr!==-1&&(tn+=Math.abs(rr-he),Ze+=Math.abs(rr-ze)),(zt<kt-.5||zt===kt&&yt<ct-.5||zt===kt&&yt===ct&&Ze<tn-.5)&&(ut=at=!0,b[z].column=Fe,b[z+1].column=ze,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}Ys.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&tx)!==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=Xp(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Xp(this,y,-1)||x;x=Xp(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=Xp(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Xp(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Xp(this,y,0)||x}}else $w(this)};function Xp(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,ut=!0;ut;)for(ut=!1,b=0;b<z;b++){var ct=E[b].column,yt=a.nodeMinColumnSpace(E[b],!0),kt=a.nodeMinColumnSpace(E[b],!1),zt=0;0>b-1||ct-E[b-1].column-1>yt+a.nodeMinColumnSpace(E[b-1],!1)?zt=ct-1:zt=ct,yt=b+1>=z||E[b+1].column-ct-1>kt+a.nodeMinColumnSpace(E[b+1],!0)?ct+1:ct;var Xt=kt=0,he=0;if(0>=x)for(var ze=E[b].sourceEdges.iterator;ze.next();){var Fe=ze.value,Ze=Fe.fromVertex;if(Fe.valid&&Ze.layer!==y){var tn=qv(Fe),on=Fe.portFromColOffset;Fe=Fe.portToColOffset,Ze=Ze.column,kt+=(Math.abs(ct+Fe-(Ze+on))+1)*tn,Xt+=(Math.abs(zt+Fe-(Ze+on))+1)*tn,he+=(Math.abs(yt+Fe-(Ze+on))+1)*tn}}if(0<=x)for(ze=E[b].destinationEdges.iterator;ze.next();)Fe=ze.value,Ze=Fe.toVertex,Fe.valid&&Ze.layer!==y&&(tn=qv(Fe),on=Fe.portFromColOffset,Fe=Fe.portToColOffset,Ze=Ze.column,kt+=(Math.abs(ct+on-(Ze+Fe))+1)*tn,Xt+=(Math.abs(zt+on-(Ze+Fe))+1)*tn,he+=(Math.abs(yt+on-(Ze+Fe))+1)*tn);Fe=on=tn=0,ze=nt[E[b].index],Ze=ot[E[b].index],ze!==-1&&(tn+=Math.abs(ze-ct),on+=Math.abs(ze-zt),Fe+=Math.abs(ze-yt)),Ze!==-1&&(tn+=Math.abs(Ze-ct),on+=Math.abs(Ze-zt),Fe+=Math.abs(Ze-yt)),Xt<kt||Xt===kt&&on<tn?(ut=at=!0,E[b].column=zt):(he<kt||he===kt&&Fe<tn)&&(ut=at=!0,E[b].column=yt)}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),ut=a.nodeMinColumnSpace(b[x],!1),ct=0;if(nt[x]===-1)if(x===0&&x===E-1)ct=ot;else if(x===0){var yt=b[x+1].column;yt-ot===ut+a.nodeMinColumnSpace(b[x+1],!0)?ct=ot-1:ct=ot}else x===E-1?(yt=b[x-1].column,ct=ot-yt===at+a.nodeMinColumnSpace(b[x-1],!1)?ot+1:ot):(yt=b[x-1].column,at=yt+a.nodeMinColumnSpace(b[x-1],!1)+at+1,yt=b[x+1].column,ut=yt-a.nodeMinColumnSpace(b[x+1],!0)-ut-1,ct=(at+ut)/2|0);else x===0&&x===E-1?ct=nt[x]:x===0?(yt=b[x+1].column,ut=yt-a.nodeMinColumnSpace(b[x+1],!0)-ut-1,ct=Math.min(nt[x],ut)):x===E-1?(yt=b[x-1].column,at=yt+a.nodeMinColumnSpace(b[x-1],!1)+at+1,ct=Math.max(nt[x],at)):(yt=b[x-1].column,at=yt+a.nodeMinColumnSpace(b[x-1],!1)+at+1,yt=b[x+1].column,ut=yt-a.nodeMinColumnSpace(b[x+1],!0)-ut-1,at<nt[x]&&nt[x]<ut?ct=nt[x]:at>=nt[x]?ct=at:ut<=nt[x]&&(ct=ut));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 Xw(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(;Xw(a,x););a.normalize();var b;if(0<y)for(x=0;x<=a.Ra;x++){var E=cc(a),z=Q0(a);for(b=z+1;z<b;){b=z,aw(a,x,1);var nt=Q0(a);nt>z?gd(a,E):nt<z&&(z=nt,E=cc(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(E=cc(a),z=Q0(a),b=z+1;z<b;)b=z,aw(a,x,-1),nt=Q0(a),nt>z?gd(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=ar(),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 xi,Yw(y,x);var z=null,nt=null,ot=null,at=null,ut=(a.ve&1)!==0,ct=(a.ve&2)!==0,yt=(a.ve&4)!==0,kt=(a.ve&8)!==0;for(ut&&(a.verticalAlignment(y,x,!0),z=K0(a,y,!0,!1)),y.reverse(),yt&&(a.verticalAlignment(y,x,!1),ot=K0(a,y,!1,!1)),b=ws(y),E=b.next();!E.done;E=b.next())E.value.reverse();kt&&(a.verticalAlignment(y,x,!1),at=K0(a,y,!1,!0)),y.reverse(),ct&&(a.verticalAlignment(y,x,!0),nt=K0(a,y,!0,!0)),Lr(y),a.u(z,nt,ot,at),a.network.vertexes.each(function(zt){var Xt=ar();ut&&Xt.push(z.get(zt)),ct&&Xt.push(nt.get(zt)),yt&&Xt.push(ot.get(zt)),kt&&Xt.push(at.get(zt)),Xt.sort(function(ze,Fe){return ze-Fe});var he=Xt.length;he=(Xt[Math.floor((he-1)/2)]+Xt[Math.ceil((he-1)/2)])/2,Lr(Xt),zt.zc=he})}function Yw(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 ut=ot[at];t:{if(ut.node===null){var ct=cy(ut);if(0<ct.length){ct=ct[0].node===null;break t}}ct=!1}var yt=ct;if(at===ot.length-1||yt){for(ct=nt.length-1,yt&&(ct=cy(ut)[0].index);z<=at;){if(ut=ot[z],!ut.bo){yt=[];for(var kt=ws(ut.sourceEdgesArrayAccess),zt=kt.next();!zt.done;zt=kt.next())zt=zt.value,zt.valid&&yt.push(zt);ut.bo=yt}for(ut=ws(ut.bo),yt=ut.next();!yt.done;yt=ut.next())yt=yt.value,kt=yt.fromVertex.index,(kt<E||kt>ct)&&y.add(yt);z++}E=ct}}}Ys.prototype.verticalAlignment=function(a,y,x){Jw(a),a=ws(a);for(var b=a.next();!b.done;b=a.next()){var E=-1;b=ws(b.value);for(var z=b.next();!z.done;z=b.next()){z=z.value;var nt=x?cy(z):ex(z),ot=nt.length;if(0<ot){nt.sort(function(yt,kt){return yt.vi-kt.vi});var at=(ot-1)/2;for(ot=Math.floor(at),at=Math.ceil(at);ot<=at;ot++)if(z.align===z){var ut=nt[ot],ct=void 0;ct=x?$0(ut,z):$0(z,ut),!y.contains(ct)&&E<ut.vi&&(ut.align=z,z.root=ut.root,z.align=ut.root,E=ut.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 K0(a,y,x,b){for(var E=a.K===90||a.K===270,z=ws(y),nt=z.next();!nt.done;nt=z.next()){var ot=ws(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=ws(y),ot=z.next();!ot.done;ot=z.next()){ot=ws(ot.value);for(var at=ot.next();!at.done;at=ot.next())if(at=at.value,at.root===at){for(var ut=0,ct=at;ct.align!==at;){var yt=ct.align,kt=nt?ct.width:ct.height,zt=nt?yt.width:yt.height;if(x){var Xt=$0(ct,yt),he=Xt.portFromPos,ze=Xt.portToPos;Xt.link!==null&&(ct.node&&ct.node!==Xt.link.fromNode&&(he=nt?ct.focusX:ct.focusY),yt.node&&yt.node!==Xt.link.toNode&&(ze=nt?yt.focusX:yt.focusY))}else Xt=$0(yt,ct),he=Xt.portToPos,ze=Xt.portFromPos,Xt.link!==null&&(ct.node&&ct.node!==Xt.link.toNode&&(he=nt?ct.focusX:ct.focusY),yt.node&&yt.node!==Xt.link.fromNode&&(ze=nt?yt.focusX:yt.focusY));kt=b?ct.qg+(kt-he)-(zt-ze):ct.qg+he-ze,yt.qg=kt,ut=Math.min(ut,kt),ct=ct.align}ct=at;do ct.qg=ct.qg-ut,ct=ct.align;while(ct!==at)}}for(x=ws(y),nt=x.next();!nt.done;nt=x.next())for(z=ws(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 xr,y=ws(y),nt=y.next();!nt.done;nt=y.next())for(x=ws(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&&qe("Could not determine previous vertex in layer"),y[x][a-1]}Ys.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var b=ar(),E=ar(),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(ut){ut.value+=at.delta}}(z)));Lr(b),Lr(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}Ys.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=G0(this,!0),y=G0(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 G0(a,y){return a.K===270?y?Ha:Nl:a.K===90?y?Nl:Ha:a.K===180?y?Aa:qa:y?qa:Aa}Ys.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,ut=at.layer,ct=at.column|0;b?(nt=y.x+this.kc*ct,ut=this.Kd[ut]):(nt=this.Kd[ut],ut=y.y+this.kc*ct),at.centerX=nt,at.centerY=ut,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 Ne(x&&b?0:z,x&&!b?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},Ys.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)},Ys.prototype.commitLayers=function(){},Ys.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 ut=y.computeSpot(!0,nt);at=y.computeSpot(!1,ot);var ct=x.fromVertex,yt=x.toVertex;if(x.valid)y.curve===qc&&y.pointsCount===4&&(ct.column===yt.column&&this.alignOption===0?(x=y.getLinkPoint(E,nt,ut,!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&&ut===Wa&&(b=!0),ot!==null&&at===Wa&&(x=!0),(b||x)&&(at=null,b&&(at=y.getLinkPointFromPoint(E,nt,nt.ga(Fo),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(Fo),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===yt.layer)y.zf();else{var kt=!1,zt=!1,Xt=this.ie,he=y.firstPickIndex+1;if(y.isOrthogonal){zt=!0;var ze=y.pointsCount;4<ze&&y.points.removeRange(2,ze-3)}else if(y.curve===qc)kt=!0,ze=y.pointsCount,4<ze&&y.points.removeRange(2,ze-3),ze===4&&(he=2);else{ze=y.pointsCount;var Fe=ut===Wa,Ze=at===Wa;2<ze&&Fe&&Ze?y.points.removeRange(1,ze-2):3<ze&&Fe&&!Ze?y.points.removeRange(1,ze-3):3<ze&&!Fe&&Ze?y.points.removeRange(2,ze-2):4<ze&&!Fe&&!Ze&&y.points.removeRange(2,ze-3)}if(x.rev){for(;yt!==null&&ct!==yt;){var tn=ze=null;for(Fe=yt.sourceEdges.iterator;Fe.next()&&(Ze=Fe.value,Ze.link!==x.link||(ze=Ze.fromVertex,tn=Ze.toVertex,ze.node!==null)););if(ze===null)break;if(ze!==ct){Fe=y.i(he-1).x,Ze=y.i(he-1).y;var on=ze.centerX,Sn=ze.centerY;if(zt)this.K===180||this.K===0?he===y.firstPickIndex+1?(y.m(he++,Fe,Ze),y.m(he++,Fe,Sn)):(tn!==null?tn.centerY:Ze)!==Sn&&(tn=this.Ta[ze.layer-1]+this.Rf.x,y.m(he++,tn,Ze),y.m(he++,tn,Sn)):he===y.firstPickIndex+1?(y.m(he++,Fe,Ze),y.m(he++,on,Ze)):(tn!==null?tn.centerX:Fe)!==on&&(tn=this.Ta[ze.layer-1]+this.Rf.y,y.m(he++,Fe,tn),y.m(he++,on,tn));else if(he===y.firstPickIndex+1){tn=Math.max(10,this.he[yt.layer]);var Wn=Math.max(10,this.Ld[yt.layer]);if(kt)this.K===180?on<=yt.bounds.x?(yt=yt.bounds.x,y.m(he++,yt-tn,Sn),y.m(he++,yt,Sn),y.m(he++,yt+Wn,Sn)):(y.m(he++,on-tn,Sn),y.m(he++,on,Sn),y.m(he++,on+Wn,Sn)):this.K===90?Sn>=yt.bounds.bottom?(yt=yt.bounds.y+yt.bounds.height,y.m(he++,on,yt+Wn),y.m(he++,on,yt),y.m(he++,on,yt-tn)):(y.m(he++,on,Sn+Wn),y.m(he++,on,Sn),y.m(he++,on,Sn-tn)):this.K===270?Sn<=yt.bounds.y?(yt=yt.bounds.y,y.m(he++,on,yt-tn),y.m(he++,on,yt),y.m(he++,on,yt+Wn)):(y.m(he++,on,Sn-tn),y.m(he++,on,Sn),y.m(he++,on,Sn+Wn)):this.K===0&&(on>=yt.bounds.right?(yt=yt.bounds.x+yt.bounds.width,y.m(he++,yt+Wn,Sn),y.m(he++,yt,Sn),y.m(he++,yt-tn,Sn)):(y.m(he++,on+Wn,Sn),y.m(he++,on,Sn),y.m(he++,on-tn,Sn)));else{y.m(he++,Fe,Ze);var rr=0;this.K===180||this.K===0?((this.K===180?on>=yt.bounds.right:on<=yt.bounds.x)&&(rr=(this.K===0?-tn:Wn)/2),y.m(he++,Fe+rr,Sn)):((this.K===270?Sn>=yt.bounds.bottom:Sn<=yt.bounds.y)&&(rr=(this.K===90?-tn:Wn)/2),y.m(he++,on,Ze+rr)),y.m(he++,on,Sn)}}else tn=Math.max(10,this.he[ze.layer]),Wn=Math.max(10,this.Ld[ze.layer]),kt?this.K===180?(y.m(he++,on-tn-Xt,Sn),y.m(he++,Math.min(on-tn+Xt/2,on),Sn),y.m(he++,on,Sn),y.m(he++,on,Sn),y.m(he++,Math.max(on+Wn-Xt/2,on),Sn),y.m(he++,on+Wn+Xt,Sn)):this.K===90?(y.m(he++,on,Sn+Wn+Xt),y.m(he++,on,Math.max(Sn+Wn-Xt/2,Sn)),y.m(he++,on,Sn),y.m(he++,on,Sn),y.m(he++,on,Math.min(Sn-tn+Xt/2,Sn)),y.m(he++,on,Sn-tn-Xt)):this.K===270?(y.m(he++,on,Sn-tn-Xt),y.m(he++,on,Math.min(Sn-tn+Xt/2,Sn)),y.m(he++,on,Sn),y.m(he++,on,Sn),y.m(he++,on,Math.max(Sn+Wn-Xt/2,Sn)),y.m(he++,on,Sn+Wn+Xt)):(y.m(he++,on+Wn+Xt,Sn),y.m(he++,Math.max(on+Wn-Xt/2,on),Sn),y.m(he++,on,Sn),y.m(he++,on,Sn),y.m(he++,Math.min(on-tn+Xt/2,on),Sn),y.m(he++,on-tn-Xt,Sn)):y.m(he++,on,Sn)}yt=ze}(ot===null||ut!==Wa||zt)&&(Fe=y.i(he-1).x,Ze=y.i(he-1).y,on=y.i(he).x,Sn=y.i(he).y,zt?(Xt=this.Ld[ct.layer],this.K===180||this.K===0?(zt=Ze,zt>=ct.bounds.y&&zt<=ct.bounds.bottom&&(this.K===180?on>=ct.bounds.x:on<=ct.bounds.right)&&(yt=ct.centerX+(this.K===180?-Xt:Xt),zt<ct.bounds.y+ct.bounds.height/2?zt=ct.bounds.y-this.kc/2:zt=ct.bounds.bottom+this.kc/2,y.m(he++,yt,Ze),y.m(he++,yt,zt)),y.m(he++,on,zt)):(zt=Fe,zt>=ct.bounds.x&&zt<=ct.bounds.right&&(this.K===270?Sn>=ct.bounds.y:Sn<=ct.bounds.bottom)&&(yt=ct.centerY+(this.K===270?-Xt:Xt),zt<ct.bounds.x+ct.bounds.width/2?zt=ct.bounds.x-this.kc/2:zt=ct.bounds.right+this.kc/2,y.m(he++,Fe,yt),y.m(he++,zt,yt)),y.m(he++,zt,Sn)),y.m(he++,on,Sn)):kt?(tn=Math.max(10,this.he[ct.layer]),Wn=Math.max(10,this.Ld[ct.layer]),this.K===180&&on>=ct.bounds.x?(yt=ct.bounds.x+ct.bounds.width,y.L(he-2,yt,Ze),y.L(he-1,yt+Wn,Ze)):this.K===90&&Sn<=ct.bounds.bottom?(yt=ct.bounds.y,y.L(he-2,Fe,yt),y.L(he-1,Fe,yt-tn)):this.K===270&&Sn>=ct.bounds.y?(yt=ct.bounds.y+ct.bounds.height,y.L(he-2,Fe,yt),y.L(he-1,Fe,yt+Wn)):this.K===0&&on<=ct.bounds.right&&(yt=ct.bounds.x,y.L(he-2,yt,Ze),y.L(he-1,yt-tn,Ze))):(tn=Math.max(10,this.he[ct.layer]),Wn=Math.max(10,this.Ld[ct.layer]),zt=0,this.K===180||this.K===0?((this.K===180?on<=ct.bounds.x:on>=ct.bounds.right)&&(zt=(this.K===0?Wn:-tn)/2),y.m(he++,on+zt,Ze)):((this.K===270?Sn<=ct.bounds.y:Sn>=ct.bounds.bottom)&&(zt=(this.K===90?Wn:-tn)/2),y.m(he++,Fe,Sn+zt)),y.m(he++,on,Sn)))}else{for(;ct!==null&&ct!==yt;){for(tn=ze=null,ct=ct.destinationEdges.iterator;ct.next()&&(Fe=ct.value,Fe.link!==x.link||(ze=Fe.toVertex,tn=Fe.fromVertex,tn.node!==null&&(tn=null),ze.node!==null)););if(ze===null)break;ze!==yt&&(Fe=y.i(he-1).x,Ze=y.i(he-1).y,on=ze.centerX,Sn=ze.centerY,zt?this.K===180||this.K===0?(tn!==null?tn.centerY:Ze)!==Sn&&(tn=this.Ta[ze.layer]+this.Rf.x,he===y.firstPickIndex+1&&(tn=this.K===0?Math.max(tn,Fe):Math.min(tn,Fe)),y.m(he++,tn,Ze),y.m(he++,tn,Sn)):(tn!==null?tn.centerX:Fe)!==on&&(tn=this.Ta[ze.layer]+this.Rf.y,he===y.firstPickIndex+1&&(tn=this.K===90?Math.max(tn,Ze):Math.min(tn,Ze)),y.m(he++,Fe,tn),y.m(he++,on,tn)):(tn=Math.max(10,this.he[ze.layer]),Wn=Math.max(10,this.Ld[ze.layer]),kt?this.K===180?(y.m(he++,on+Wn+Xt,Sn),y.m(he++,Math.max(on+Wn-Xt/2,on),Sn),y.m(he++,on,Sn),y.m(he++,on,Sn),y.m(he++,Math.min(on-tn+Xt/2,on),Sn),y.m(he++,on-tn-Xt,Sn)):this.K===90?(y.m(he++,on,Sn-tn-Xt),y.m(he++,on,Math.min(Sn-tn+Xt/2,Sn)),y.m(he++,on,Sn),y.m(he++,on,Sn),y.m(he++,on,Math.max(Sn+Wn-Xt/2,Sn)),y.m(he++,on,Sn+Wn+Xt)):this.K===270?(y.m(he++,on,Sn+Wn+Xt),y.m(he++,on,Math.max(Sn+Wn-Xt/2,Sn)),y.m(he++,on,Sn),y.m(he++,on,Sn),y.m(he++,on,Math.min(Sn-tn+Xt/2,Sn)),y.m(he++,on,Sn-tn-Xt)):(y.m(he++,on-tn-Xt,Sn),y.m(he++,Math.min(on-tn+Xt/2,on),Sn),y.m(he++,on,Sn),y.m(he++,on,Sn),y.m(he++,Math.max(on+Wn-Xt/2,on),Sn),y.m(he++,on+Wn+Xt,Sn)):this.K===180?(y.m(he++,on+Wn,Sn),y.m(he++,on-tn,Sn)):this.K===90?(y.m(he++,on,Sn-tn),y.m(he++,on,Sn+Wn)):this.K===270?(y.m(he++,on,Sn+Wn),y.m(he++,on,Sn-tn)):(y.m(he++,on-tn,Sn),y.m(he++,on+Wn,Sn)))),ct=ze}zt&&(Fe=y.i(he-1).x,Ze=y.i(he-1).y,on=y.i(he).x,Sn=y.i(he).y,this.K===180||this.K===0?Ze!==Sn&&(tn=this.K===0?Math.min(Math.max((on+Fe)/2,this.Ta[yt.layer]+this.Rf.x),on):Math.max(Math.min((on+Fe)/2,this.Ta[yt.layer]+this.Rf.x),on),y.m(he++,tn,Ze),y.m(he++,tn,Sn)):Fe!==on&&(tn=this.K===90?Math.min(Math.max((Sn+Ze)/2,this.Ta[yt.layer]+this.Rf.y),Sn):Math.max(Math.min((Sn+Ze)/2,this.Ta[yt.layer]+this.Rf.y),Sn),y.m(he++,Fe,tn),y.m(he++,on,tn)))}b!==null&&kt&&4<=y.pointsCount&&(nt!==null&&(nt=ut===Wa?y.getLinkPointFromPoint(E,nt,nt.ga(Fo),y.i(3),!0):y.i(0),ut===Wa&&(ut=y.i(2),b=y.i(3),this.direction===90||this.direction===270?(y.L(1,(nt.x+ut.x)/2,ut.y),y.L(2,b.x,(ut.y+b.y)/2)):(y.L(1,ut.x,(nt.y+ut.y)/2),y.L(2,(ut.x+b.x)/2,b.y))),nt.w()||nt.set(E.actualBounds.center),y.L(0,nt.x,nt.y)),ot!==null&&(E=at===Wa?y.getLinkPointFromPoint(z,ot,ot.ga(Fo),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),at===Wa&&(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()},Ys.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),ut=b.i(b.pointsCount-1);if(ot.first=at.x*at.x+at.y,ot.jc=ut.x*ut.x+ut.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),ut=b.i(E+2);var ct=0;at.y<z.y?ct=ut.y<z.y?3:z.x<nt.x?2:1:at.y>z.y&&(ct=ut.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++)ut=x[at],ut.jc!==ot&&(ct++,ot=ut.jc);this.zi(x,this.Ux,z,z+nt);var yt=1;for(ot=x[z].first,at=z;at<E;at++)ut=x[at],ut.first!==ot&&(yt++,ot=ut.first);for(at=!0,ut=yt,ct<yt?(at=!1,ut=ct,ot=x[z].jc,this.zi(x,this.Js,z,z+nt)):ot=x[z].first,ct=0,yt=z;yt<E;yt++){var kt=x[yt];(at?kt.first:kt.jc)!==ot&&(ct++,ot=at?kt.first:kt.jc);var zt=kt.link;z=zt.i(kt.index),nt=zt.i(kt.index+1);var Xt=this.linkSpacing*(ct-(ut-1)/2);y++,zt.uh(),zt.L(kt.index,z.x,z.y+Xt),zt.L(kt.index+1,nt.x,nt.y+Xt),zt.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),ut=b.i(b.pointsCount-1),ot.first=at.x+at.y*at.y,ot.jc=ut.x+ut.y*ut.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),ut=b.i(E+2),ct=0,at.x<z.x?ct=ut.x<z.x?3:z.y<nt.y?2:1:at.x>z.x&&(ct=ut.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++)ut=x[at],ut.jc!==ot&&(ct++,ot=ut.jc);for(this.zi(x,this.Ux,z,z+nt),yt=1,ot=x[z].first,at=z;at<E;at++)ut=x[at],ut.first!==ot&&(yt++,ot=ut.first);for(at=!0,ut=yt,ct<yt?(at=!1,ut=ct,ot=x[z].jc,this.zi(x,this.Js,z,z+nt)):ot=x[z].first,ct=0,yt=z;yt<E;yt++)kt=x[yt],(at?kt.first:kt.jc)!==ot&&(ct++,ot=at?kt.first:kt.jc),zt=kt.link,z=zt.i(kt.index),nt=zt.i(kt.index+1),Xt=this.linkSpacing*(ct-(ut-1)/2),y++,zt.uh(),zt.L(kt.index,z.x+Xt,z.y),zt.L(kt.index+1,nt.x+Xt,nt.y),zt.zf()}z=E}a=b}}}},$t=Ys.prototype,$t.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},$t.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},$t.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},$t.B=function(a,y){return a-=y,-1<a&&1>a},$t.zi=function(a,y,x,b){var E=a.length,z=b-x;if(!(1>=z))if((0>x||x>=E-1)&&qe("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}De.Object.defineProperties(Ys.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()):qe("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==ry&&a!==W0&&a!==_m||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==V0&&a!==oy&&a!==sy||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==Z0&&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!==X0&&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 W0=new pi(Ys,"CycleDepthFirst",0),ry=new pi(Ys,"CycleGreedy",1),_m=new pi(Ys,"CycleFromLayers",2),V0=new pi(Ys,"LayerOptimalLinkLength",0),oy=new pi(Ys,"LayerLongestPathSink",1),sy=new pi(Ys,"LayerLongestPathSource",2),Z0=new pi(Ys,"InitDepthFirstOut",0),ay=new pi(Ys,"InitDepthFirstIn",1),ly=new pi(Ys,"InitNaive",2),uy=new pi(Ys,"AggressiveNone",0),X0=new pi(Ys,"AggressiveLess",1),hy=new pi(Ys,"AggressiveMore",2),tx=8;Ys.className="LayeredDigraphLayout",Ys.CycleDepthFirst=W0,Ys.CycleGreedy=ry,Ys.CycleFromLayers=_m,Ys.LayerOptimalLinkLength=V0,Ys.LayerLongestPathSink=oy,Ys.LayerLongestPathSource=sy,Ys.InitDepthFirstOut=Z0,Ys.InitDepthFirstIn=ay,Ys.InitNaive=ly,Ys.AggressiveNone=uy,Ys.AggressiveLess=X0,Ys.AggressiveMore=hy,Ys.PackNone=0,Ys.PackExpand=1,Ys.PackStraighten=2,Ys.PackMedian=4,Ys.PackAll=15,Ys.AlignNone=0,Ys.AlignUpperLeft=1,Ys.AlignUpperRight=2,Ys.AlignLowerLeft=4,Ys.AlignLowerRight=8,Ys.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)}Tn($p,Ba),$p.prototype.createVertex=function(){return new pd(this)},$p.prototype.createEdge=function(){return new Hm(this)},$p.className="LayeredDigraphNetwork";function pd(a){vu.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}Tn(pd,vu);function hw(a,y){return a.index-y.index}function $0(a,y){if(!a.$n){for(var x=[],b=ws(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&x.push(E);a.$n=x}for(a=ws(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;qe("Unable to find destination edge to given vertex")}function cy(a){if(!a.co){for(var y=[],x=ws(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 ex(a){if(!a.ao){for(var y=[],x=ws(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}pd.prototype.Cl=function(a){vu.prototype.Cl.call(this,a),this.bo=this.co=null},pd.prototype.Kl=function(a){vu.prototype.Kl.call(this,a),this.bo=this.co=null},pd.prototype.zl=function(a){vu.prototype.zl.call(this,a),this.$n=this.ao=null},pd.prototype.Jl=function(a){vu.prototype.Jl.call(this,a),this.$n=this.ao=null},De.Object.defineProperties(pd.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)}}}),pd.prototype.deleteDestinationEdge=pd.prototype.Jl,pd.prototype.addDestinationEdge=pd.prototype.zl,pd.prototype.deleteSourceEdge=pd.prototype.Kl,pd.prototype.addSourceEdge=pd.prototype.Cl,pd.className="LayeredDigraphVertex";function Hm(a){Rc.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Tn(Hm,Rc),De.Object.defineProperties(Hm.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)}}}),Hm.className="LayeredDigraphEdge";function as(a){Ka.call(this),this.Ub=new xi,this.Wn=tv,this.ud=tf,this.vo=nv,this.Bq=Sy,this.$v=[],this.td=!0,this.Rb=iv,this.$d=new Zi(10,10).freeze();var y=new cp(this);this.W=new Id(y),this.Y=new Id(y),this.ru=[],a&&Object.assign(this,a)}Tn(as,Ka),as.prototype.cloneProtected=function(a){Ka.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)},as.prototype.qb=function(a){a.classType===as?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:qe("Unknown enum value: "+a):Ka.prototype.qb.call(this,a)},as.prototype.createNetwork=function(){return new cp(this)},as.prototype.makeNetwork=function(a){function y(b){if(b instanceof hr)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof Gi){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 Un?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof Do?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},as.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 Un&&(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 xi,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof hr?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof Id&&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=nx(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 Id&&Aw(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Id&&fw(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Id&&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 Id&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new xi,this.isValidLayout=!0};function nx(a){var y=new xi;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}as.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:qe("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:qe("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:qe("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}as.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 ix(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}}as.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(ix(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])}}as.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])}}as.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case Yp:break;case zm:a.children.reverse();break;case Km:a.children.sort(a.comparer);break;case Gm:a.children.sort(a.comparer),a.children.reverse();break;default:qe("Unhandled sorting value "+a.sorting.toString())}},as.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},as.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 ut=a.node.Mu();ut.next();){var ct=ut.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 Qm(a){return a===Of||a===rf}function Ay(a){var y=a.parent;if(y!==null){var x=y.alignment;if(Ag(x)){if(Qm(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}as.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,ut=a.comments,ct=ut.length,yt=Ne.alloc(),kt=0;kt<ct;kt++){var zt=ut[kt],Xt=zt.measuredBounds;if(b&&!nt||!z&&!x&&nt||z&&x&&nt){if(135<E&&!z||x&&ot)if(0<=a.commentMargin)for(yt.h(a.bounds.x-a.commentMargin-Xt.width,a.bounds.y+at),zt.move(yt),zt=zt.Sd();zt.next();){var he=zt.value;he.fromSpot=Aa,he.toSpot=qa}else for(yt.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+at),zt.move(yt),zt=zt.Sd();zt.next();)he=zt.value,he.fromSpot=qa,he.toSpot=Aa;else if(0<=a.commentMargin)for(yt.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+at),zt.move(yt),zt=zt.Sd();zt.next();)he=zt.value,he.fromSpot=qa,he.toSpot=Aa;else for(yt.h(a.bounds.x+a.commentMargin-Xt.width,a.bounds.y+at),zt.move(yt),zt=zt.Sd();zt.next();)he=zt.value,he.fromSpot=Aa,he.toSpot=qa;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(yt.h(a.bounds.x+at,a.bounds.y-a.commentMargin-Xt.height),zt.move(yt),zt=zt.Sd();zt.next();)he=zt.value,he.fromSpot=Ha,he.toSpot=Nl;else for(yt.h(a.bounds.x+at,a.bounds.y+2*a.focus.y-a.commentMargin),zt.move(yt),zt=zt.Sd();zt.next();)he=zt.value,he.fromSpot=Nl,he.toSpot=Ha;else if(0<=a.commentMargin)for(yt.h(a.bounds.x+at,a.bounds.y+2*a.focus.y+a.commentMargin),zt.move(yt),zt=zt.Sd();zt.next();)he=zt.value,he.fromSpot=Nl,he.toSpot=Ha;else for(yt.h(a.bounds.x+at,a.bounds.y+a.commentMargin-Xt.height),zt.move(yt),zt=zt.Sd();zt.next();)he=zt.value,he.fromSpot=Ha,he.toSpot=Nl;at=0<=a.commentSpacing?at+(Xt.width+a.commentSpacing):at+(a.commentSpacing-Xt.width)}}if(Ne.free(yt),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)}},as.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 Wm: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 ut=at===nf,ct=Ag(at),yt=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var kt=a.nodeSpacing,zt=this.computeNodeIndent(a),Xt=a.rowSpacing,he=0;(b||ut||a.hm||a.im&&a.maxGenerationCount===1)&&(he=Math.max(0,a.rowIndent)),b=a.width;var ze=a.height,Fe=0,Ze=0,tn=0,on=null,Sn=null,Wn=0,rr=0,Fr=0,vr=0,Ki=0,Li=0,Io=0,vo=0;if(ct&&!Qm(at)&&135<E&&nt.reverse(),Qm(at))if(1<ot)for(var Ns=0;Ns<ot;Ns++)Ns%2===0&&Ns!==ot-1&&(vo=Math.max(vo,y?nt[Ns].Da.width:nt[Ns].Da.height));else ot===1&&(vo=y?nt[0].Da.width:nt[0].Da.height);if(ct){switch(at){case Of:Ze=135>E?mw(this,a,nt,vo,Fe,Ze):vw(this,a,nt,vo,Fe,Ze),vo=Ze.x,Fe=Ze.width,Ze=Ze.height;break;case Df:for(on=0;on<ot;on++)Sn=nt[on],yt=Sn.Da,tn=Li===0?0:Xt,y?(Sn.S.h(z-yt.width,vr+tn),Fe=Math.max(Fe,yt.width),Ze=Math.max(Ze,vr+tn+yt.height),vr+=tn+yt.height):(Sn.S.h(Fr+tn,z-yt.height),Fe=Math.max(Fe,Fr+tn+yt.width),Ze=Math.max(Ze,yt.height),Fr+=tn+yt.width),Li++;break;case df:for(on=0;on<ot;on++)Sn=nt[on],z=Sn.Da,yt=Li===0?0:Xt,y?(Sn.S.h(kt/2+a.focus.x,vr+yt),Fe=Math.max(Fe,z.width),Ze=Math.max(Ze,vr+yt+z.height),vr+=yt+z.height):(Sn.S.h(Fr+yt,kt/2+a.focus.y),Fe=Math.max(Fe,Fr+yt+z.width),Ze=Math.max(Ze,z.height),Fr+=yt+z.width),Li++}on=xc(this,2),Sn=xc(this,2),y?(on[0].h(0,0),on[1].h(0,Ze),Sn[0].h(Fe,0)):(on[0].h(0,0),on[1].h(Fe,0),Sn[0].h(0,Ze)),Sn[1].h(Fe,Ze)}else for(Ns=0;Ns<ot;Ns++){var pa=nt[Ns],Lu=pa.Da;if(y){0<yt&&0<Li&&Fr+kt+Lu.width>yt&&(Fr<z&&Dg(a,at,z-Fr,0,Io,Ns-1),Ki++,Li=0,Io=Ns,tn=Ze,Fr=0,vr=135<E?-Ze-Xt:Ze+Xt),J0(this,pa,0,vr);var ju=0;if(Li===0)on=pa.Yo,Sn=pa.kp,Wn=Lu.width,rr=Lu.height,(on===null||Sn===null||E!==iA(pa))&&(on=xc(this,2),Sn=xc(this,2),on[0].h(0,0),on[1].h(0,rr),Sn[0].h(Wn,0),Sn[1].h(Wn,rr));else{var Mh=ar();rr=yw(this,a,pa,on,Sn,Wn,rr,Mh),ju=rr.x,on=Mh[0],Sn=Mh[1],Wn=rr.width,rr=rr.height,Lr(Mh),Fr<Lu.width&&0>ju&&(lp(a,-ju,0,Io,Ns-1),q0(on,-ju,0),q0(Sn,-ju,0),ju=0)}pa.S.h(ju,vr),Fe=Math.max(Fe,Wn),Ze=Math.max(Ze,tn+(Ki===0?0:Xt)+Lu.height),Fr=Wn}else 0<yt&&0<Li&&vr+kt+Lu.height>yt&&(vr<z&&Dg(a,at,0,z-vr,Io,Ns-1),Ki++,Li=0,Io=Ns,tn=Fe,vr=0,Fr=135<E?-Fe-Xt:Fe+Xt),J0(this,pa,Fr,0),ju=0,Li===0?(on=pa.Yo,Sn=pa.kp,Wn=Lu.width,rr=Lu.height,(on===null||Sn===null||E!==iA(pa))&&(on=xc(this,2),Sn=xc(this,2),on[0].h(0,0),on[1].h(Wn,0),Sn[0].h(0,rr),Sn[1].h(Wn,rr))):(Mh=ar(),rr=yw(this,a,pa,on,Sn,Wn,rr,Mh),ju=rr.x,on=Mh[0],Sn=Mh[1],Wn=rr.width,rr=rr.height,Lr(Mh),vr<Lu.height&&0>ju&&(lp(a,0,-ju,Io,Ns-1),q0(on,0,-ju),q0(Sn,0,-ju),ju=0)),pa.S.h(Fr,ju),Ze=Math.max(Ze,rr),Fe=Math.max(Fe,tn+(Ki===0?0:Xt)+Lu.width),vr=rr;Li++}switch(0<Ki&&(y?(Ze+=Math.max(0,x),Fr<Fe&&Dg(a,at,Fe-Fr,0,Io,ot-1),0<he&&(ut||lp(a,he,0,0,ot-1),Fe+=he)):(Fe+=Math.max(0,x),vr<Ze&&Dg(a,at,0,Ze-vr,Io,ot-1),0<he&&(ut||lp(a,0,he,0,ot-1),Ze+=he))),he=ut=0,at){case Jp:y?ut+=Fe/2-a.focus.x-zt/2:he+=Ze/2-a.focus.y-zt/2;break;case hp:0<Ki?y?ut+=Fe/2-a.focus.x-zt/2:he+=Ze/2-a.focus.y-zt/2:y?(vo=nt[0].S.x+nt[0].la.x,ut+=vo+(nt[ot-1].S.x+nt[ot-1].la.x+2*nt[ot-1].focus.x-vo)/2-a.focus.x-zt/2):(vo=nt[0].S.y+nt[0].la.y,he+=vo+(nt[ot-1].S.y+nt[ot-1].la.y+2*nt[ot-1].focus.y-vo)/2-a.focus.y-zt/2);break;case ef:y?(ut-=zt,Fe+=zt):(he-=zt,Ze+=zt);break;case nf:y?(ut+=Fe-a.width+zt,Fe+=zt):(he+=Ze-a.height+zt,Ze+=zt);break;case Of:y?1<ot?ut+=vo+kt/2-a.focus.x:ut+=nt[0].focus.x-a.focus.x+nt[0].la.x:1<ot?he+=vo+kt/2-a.focus.y:he+=nt[0].focus.y-a.focus.y+nt[0].la.y;break;case Df:y?ut+=Fe+kt/2-a.focus.x:he+=Ze+kt/2-a.focus.y;break;case df:break;default:Ze=this.customAlignment(a,ut,he,Fe,Ze),ut=Ze[0],he=Ze[1],Fe=Ze[2],Ze=Ze[3]}for(zt=0;zt<ot;zt++)vo=nt[zt],y?vo.S.h(vo.S.x+vo.la.x-ut,vo.S.y+(135<E?(ct?-Ze:-vo.Da.height)+vo.la.y-x:ze+x+vo.la.y)):vo.S.h(vo.S.x+(135<E?(ct?-Fe:-vo.Da.width)+vo.la.x-x:b+x+vo.la.x),vo.S.y+vo.la.y-he);if(ot=nt=0,ct?y?(Fe=fy(a,Fe,ut),0>ut&&(ut=0),135<E&&(he+=Ze+x),Ze+=ze+x,at===df&&(nt+=kt/2+a.focus.x),ot+=ze+x):(135<E&&(ut+=Fe+x),Fe+=b+x,Ze=gy(a,Ze,he),0>he&&(he=0),at===df&&(ot+=kt/2+a.focus.y),nt+=b+x):y?(a.comments===null?b>Fe&&(Fe=py(at,b-Fe,0),nt=Fe.x,ot=Fe.y,Fe=b,ut=0):Fe=fy(a,Fe,ut),0>ut&&(nt-=ut,ut=0),135<E&&(he+=Ze+x),Ze=Math.max(Math.max(Ze,ze),Ze+ze+x),ot+=ze+x):(135<E&&(ut+=Fe+x),Fe=Math.max(Math.max(Fe,b),Fe+b+x),a.comments===null?ze>Ze&&(Ze=py(at,0,ze-Ze),nt=Ze.x,ot=Ze.y,Ze=ze,he=0):Ze=gy(a,Ze,he),0>he&&(ot-=he,he=0),nt+=b+x),0<Ki)E=xc(this,4),Ki=xc(this,4),y?(E[2].h(0,ze+x),E[3].h(E[2].x,Ze),Ki[2].h(Fe,E[2].y),Ki[3].h(Ki[2].x,E[3].y)):(E[2].h(b+x,0),E[3].h(Fe,E[2].y),Ki[2].h(E[2].x,Ze),Ki[3].h(E[3].x,Ki[2].y));else{for(E=xc(this,on.length+2),Ki=xc(this,Sn.length+2),at=0;at<on.length;at++)ct=on[at],E[at+2].h(ct.x+nt,ct.y+ot);for(at=0;at<Sn.length;at++)ct=Sn[at],Ki[at+2].h(ct.x+nt,ct.y+ot)}y?(E[0].h(ut,0),E[1].h(E[0].x,ze),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])),Ki[0].h(ut+b,0),Ki[1].h(Ki[0].x,ze),Ki[2].y<Ki[1].y&&(Ki[2].x<Ki[0].x?Ki[2].assign(Ki[1]):Ki[1].assign(Ki[2])),Ki[3].y<Ki[2].y&&(Ki[3].x<Ki[0].x?Ki[3].assign(Ki[2]):Ki[2].assign(Ki[3])),E[2].y-=x/2,Ki[2].y-=x/2):(E[0].h(0,he),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])),Ki[0].h(0,he+ze),Ki[1].h(b,Ki[0].y),Ki[2].x<Ki[1].x&&(Ki[2].y<Ki[0].y?Ki[2].assign(Ki[1]):Ki[1].assign(Ki[2])),Ki[3].x<Ki[2].x&&(Ki[3].y<Ki[0].y?Ki[3].assign(Ki[2]):Ki[2].assign(Ki[3])),E[2].x-=x/2,Ki[2].x-=x/2),xA(this,on),xA(this,Sn),a.Yo=E,a.kp=Ki,a.la.h(ut,he),a.Da.h(Fe,Ze)}break;default:qe("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 ut=y.alignment,ct=ut===ef,yt=ut===nf;ot=Ag(ut);var kt=Math.max(0,y.breadthLimit);at=a.computeLayerSpacing(y);var zt=y.nodeSpacing,Xt=a.computeNodeIndent(y),he=ct||yt?0:Xt/2,ze=y.rowSpacing,Fe=0;(ct||yt||y.hm||y.im&&y.maxGenerationCount===1)&&(Fe=Math.max(0,y.rowIndent)),ct=y.width;var Ze=y.height,tn=0,on=0,Sn=0,Wn=0,rr=0,Fr=0,vr=0,Ki=0,Li=0,Io=0;if(ot&&!Qm(ut)&&135<b&&E.reverse(),Qm(ut))if(1<nt)for(var vo=0;vo<nt;vo++){var Ns=E[vo],pa=Ns.Da;vo%2===0&&vo!==nt-1?Li=Math.max(Li,(x?pa.width:pa.height)+a.computeBusNodeSpacing(Ns)-zt):vo%2!==0&&(Io=Math.max(Io,(x?pa.width:pa.height)+a.computeBusNodeSpacing(Ns)-zt))}else nt===1&&(Li=x?E[0].Da.width:E[0].Da.height);if(ot)switch(ut){case Of:case rf:on=135>b?mw(a,y,E,Li,tn,on):vw(a,y,E,Li,tn,on),Li=on.x,tn=on.width,on=on.height;break;case Df:for(kt=0;kt<nt;kt++)he=E[kt],Sn=he.Da,Io=vr===0?0:ze,x?(he.S.h(z-Sn.width,rr+Io),tn=Math.max(tn,Sn.width),on=Math.max(on,rr+Io+Sn.height),rr+=Io+Sn.height):(he.S.h(Wn+Io,z-Sn.height),tn=Math.max(tn,Wn+Io+Sn.width),on=Math.max(on,Sn.height),Wn+=Io+Sn.width),vr++;break;case df:for(z=0;z<nt;z++)kt=E[z],he=kt.Da,Sn=vr===0?0:ze,x?(kt.S.h(zt/2+y.focus.x,rr+Sn),tn=Math.max(tn,he.width),on=Math.max(on,rr+Sn+he.height),rr+=Sn+he.height):(kt.S.h(Wn+Sn,zt/2+y.focus.y),tn=Math.max(tn,Wn+Sn+he.width),on=Math.max(on,he.height),Wn+=Sn+he.width),vr++}else for(Io=0;Io<nt;Io++)vo=E[Io],Ns=vo.Da,x?(0<kt&&0<vr&&Wn+zt+Ns.width>kt&&(Wn<z&&Dg(y,ut,z-Wn,0,Ki,Io-1),Fr++,vr=0,Ki=Io,Sn=on,Wn=0,rr=135<b?-on-ze:on+ze),pa=vr===0?he:zt,J0(a,vo,0,rr),vo.S.h(Wn+pa,rr),tn=Math.max(tn,Wn+pa+Ns.width),on=Math.max(on,Sn+(Fr===0?0:ze)+Ns.height),Wn+=pa+Ns.width):(0<kt&&0<vr&&rr+zt+Ns.height>kt&&(rr<z&&Dg(y,ut,0,z-rr,Ki,Io-1),Fr++,vr=0,Ki=Io,Sn=tn,rr=0,Wn=135<b?-tn-ze:tn+ze),pa=vr===0?he:zt,J0(a,vo,Wn,0),vo.S.h(Wn,rr+pa),on=Math.max(on,rr+pa+Ns.height),tn=Math.max(tn,Sn+(Fr===0?0:ze)+Ns.width),rr+=pa+Ns.height),vr++;switch(0<Fr&&(x?(on+=Math.max(0,at),Wn<tn&&Dg(y,ut,tn-Wn,0,Ki,nt-1),0<Fe&&(yt||lp(y,Fe,0,0,nt-1),tn+=Fe)):(tn+=Math.max(0,at),rr<on&&Dg(y,ut,0,on-rr,Ki,nt-1),0<Fe&&(yt||lp(y,0,Fe,0,nt-1),on+=Fe))),Fe=yt=0,ut){case Jp:x?yt+=tn/2-y.focus.x-Xt/2:Fe+=on/2-y.focus.y-Xt/2;break;case hp:0<Fr?x?yt+=tn/2-y.focus.x-Xt/2:Fe+=on/2-y.focus.y-Xt/2:x?(a=E[0].S.x+E[0].la.x,yt+=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,Fe+=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?(yt-=Xt,tn+=Xt):(Fe-=Xt,on+=Xt);break;case nf:x?(yt+=tn-y.width+Xt,tn+=Xt):(Fe+=on-y.height+Xt,on+=Xt);break;case Of:case rf:x?1<nt?yt+=Li+zt/2-y.focus.x:yt+=E[0].focus.x-y.focus.x+E[0].la.x:1<nt?Fe+=Li+zt/2-y.focus.y:Fe+=E[0].focus.y-y.focus.y+E[0].la.y;break;case Df:x?yt+=tn+zt/2-y.focus.x:Fe+=on+zt/2-y.focus.y;break;case df:break;default:a=a.customAlignment(y,yt,Fe,tn,on),yt=a[0],Fe=a[1],tn=a[2],on=a[3]}for(a=0;a<nt;a++)Xt=E[a],x?Xt.S.h(Xt.S.x+Xt.la.x-yt,Xt.S.y+(135<b?(ot?-on:-Xt.Da.height)+Xt.la.y-at:Ze+at+Xt.la.y)):Xt.S.h(Xt.S.x+(135<b?(ot?-tn:-Xt.Da.width)+Xt.la.x-at:ct+at+Xt.la.x),Xt.S.y+Xt.la.y-Fe);x?(tn=fy(y,tn,yt),0>yt&&(yt=0),135<b&&(Fe+=on+at),on=Math.max(Math.max(on,Ze),on+Ze+at)):(135<b&&(yt+=tn+at),tn=Math.max(Math.max(tn,ct),tn+ct+at),on=gy(y,on,Fe),0>Fe&&(Fe=0)),y.la.h(yt,Fe),y.Da.h(tn,on)}}as.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,ut=iA(y)===90,ct=0,yt=0,kt=0,zt=0;zt<nt;zt++)if(!(zt%2!==0||1<nt&&zt===nt-1)){var Xt=x[zt],he=Xt.Da,ze=ct===0?0:at;if(ut){var Fe=a.computeBusNodeSpacing(Xt)-ot;Xt.S.h(b-(he.width+Fe),kt+ze),E=Math.max(E,he.width+Fe),z=Math.max(z,kt+ze+he.height),kt+=ze+he.height}else Fe=a.computeBusNodeSpacing(Xt)-ot,Xt.S.h(yt+ze,b-(he.height+Fe)),z=Math.max(z,he.height+Fe),E=Math.max(E,yt+ze+he.width),yt+=ze+he.width;ct++}for(ct=0,Xt=yt,zt=kt,ut?(yt=b+ot,kt=0):(yt=0,kt=b+ot),he=0;he<nt;he++)if(he%2!==0){ze=x[he],Fe=ze.Da;var Ze=ct===0?0:at;if(ut){var tn=a.computeBusNodeSpacing(ze)-ot;ze.S.h(yt+tn,kt+Ze),E=Math.max(E,yt+Fe.width+tn),z=Math.max(z,kt+Ze+Fe.height),kt+=Ze+Fe.height}else tn=a.computeBusNodeSpacing(ze)-ot,ze.S.h(yt+Ze,kt+tn),E=Math.max(E,yt+Ze+Fe.width),z=Math.max(z,kt+Fe.height+tn),yt+=Ze+Fe.width;ct++}return 1<nt&&nt%2===1&&(x=x[nt-1],nt=x.Da,a=a.computeBusLastRowSpacing(x,ut?Math.max(Math.abs(zt),Math.abs(kt)):Math.max(Math.abs(Xt),Math.abs(yt))),ut?(x.S.h(b+ot/2-x.focus.x-x.la.x,z+a),ut=b+ot/2-x.focus.x-x.la.x,E=Math.max(E,ut+nt.width),0>ut&&(E-=ut),z=Math.max(z,Math.max(zt,kt)+a+nt.height),0>x.S.x&&(b=Y0(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,yt)+a+nt.width),kt=b+ot/2-x.focus.y-x.la.y,z=Math.max(z,kt+nt.height),0>kt&&(z-=kt),0>x.S.y&&(b=Y0(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,ut=iA(y)===270,ct=0,yt=0,kt=0,zt=0;zt<nt;zt++)if(!(zt%2!==0||1<nt&&zt===nt-1)){var Xt=x[zt],he=Xt.Da,ze=ct===0?0:at;if(ut){var Fe=a.computeBusNodeSpacing(Xt)-ot;kt-=ze+he.height,Xt.S.h(b-(he.width+Fe),kt),E=Math.max(E,he.width+Fe),z=Math.max(z,Math.abs(kt))}else Fe=a.computeBusNodeSpacing(Xt)-ot,yt-=ze+he.width,Xt.S.h(yt,b-(he.height+Fe)),z=Math.max(z,he.height+Fe),E=Math.max(E,Math.abs(yt));ct++}for(ct=0,Xt=yt,zt=kt,ut?(yt=b+ot,kt=0):(yt=0,kt=b+ot),he=0;he<nt;he++)if(he%2!==0){ze=x[he],Fe=ze.Da;var Ze=ct===0?0:at;if(ut){var tn=a.computeBusNodeSpacing(ze)-ot;kt-=Ze+Fe.height,ze.S.h(yt+tn,kt),E=Math.max(E,yt+Fe.width+tn),z=Math.max(z,Math.abs(kt))}else tn=a.computeBusNodeSpacing(ze)-ot,yt-=Ze+Fe.width,ze.S.h(yt,kt+tn),z=Math.max(z,kt+Fe.height+tn),E=Math.max(E,Math.abs(yt));ct++}for(1<nt&&nt%2===1&&(at=x[nt-1],ct=at.Da,a=a.computeBusLastRowSpacing(at,ut?Math.max(Math.abs(zt),Math.abs(kt)):Math.max(Math.abs(Xt),Math.abs(yt))),ut?(at.S.h(b+ot/2-at.focus.x-at.la.x,-z-ct.height-a),yt=b+ot/2-at.focus.x-at.la.x,E=Math.max(E,yt+ct.width),0>yt&&(E-=yt),z=Math.max(z,Math.abs(Math.min(zt,kt))+a+ct.height),0>at.S.x&&(b=Y0(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,yt))+a+ct.width),kt=b+ot/2-at.focus.y-at.la.y,z=Math.max(z,kt+ct.height),0>kt&&(z-=kt),0>at.S.y&&(b=Y0(y,at.S.y,!0,b,ot)))),y=0;y<nt;y++)ot=x[y],ut?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)}as.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},as.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function Y0(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:qe("Unhandled alignment value "+a.toString())}return new Ne(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 J0(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:qe("Unhandled path value "+a.ud.toString())}}function q0(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),ut=at===90||at===270,ct=y.nodeSpacing;y=b;var yt=E;b=z;var kt=nt,zt=x.Yo,Xt=x.kp;nt=x.Da;var he=ut?Math.max(kt,nt.height):Math.max(b,nt.width);if((zt===null||at!==iA(x))&&(zt=xc(a,2),Xt=xc(a,2),ut?(zt[0].h(0,0),zt[1].h(0,nt.height),Xt[0].h(nt.width,0),Xt[1].h(Xt[0].x,zt[1].y)):(zt[0].h(0,0),zt[1].h(nt.width,0),Xt[0].h(0,nt.height),Xt[1].h(zt[1].x,Xt[0].y))),ut){if(kt=9999999,!(yt===null||2>yt.length||zt===null||2>zt.length))for(E=x=0;x<yt.length&&E<zt.length;){z=yt[x];var ze=zt[E];at=ze.x,ut=ze.y,at+=b;var Fe=z;x+1<yt.length&&(Fe=yt[x+1]);var Ze=ze;ze=Ze.x,Ze=Ze.y,E+1<zt.length&&(Ze=zt[E+1],ze=Ze.x,Ze=Ze.y,ze+=b);var tn=kt;z.y===ut?tn=at-z.x:z.y>ut&&z.y<Ze?tn=at+(z.y-ut)/(Ze-ut)*(ze-at)-z.x:ut>z.y&&ut<Fe.y&&(tn=at-(z.x+(ut-z.y)/(Fe.y-z.y)*(Fe.x-z.x))),tn<kt&&(kt=tn),Fe.y<=z.y?x++:Ze<=ut?E++:(Fe.y<=Ze&&x++,Ze<=Fe.y&&E++)}if(kt=b-kt,kt+=ct,x=zt,E=kt,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;)ut=x[z++],ct[b++].h(ut.x+E,ut.y);for(;at<y.length;)ut=y[at++],ct[b++].h(ut.x,ut.y);for(at=y[y.length-1].y;z<x.length&&x[z].y<=at;)z++;for(;z<x.length&&x[z].y>at;)ut=x[z++],ct[b++].h(ut.x+E,ut.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=kt,yt===null||2>yt.length||z===null||2>z.length)E=null;else{for(ct=xc(a,yt.length+z.length),E=ut=x=0;x<yt.length&&yt[x].y<z[0].y;)Fe=yt[x++],ct[E++].h(Fe.x,Fe.y);for(;ut<z.length;)Fe=z[ut++],ct[E++].h(Fe.x+at,Fe.y);for(z=z[z.length-1].y;x<yt.length&&yt[x].y<=z;)x++;for(;x<yt.length&&yt[x].y>z;)at=yt[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,kt)+nt.width,nt=he,xA(a,y),xA(a,zt),xA(a,yt),xA(a,Xt),ot[0]=b,ot[1]=E,new ai(kt,0,z,nt)}if(b=9999999,!(yt===null||2>yt.length||zt===null||2>zt.length))for(E=x=0;x<yt.length&&E<zt.length;)z=yt[x],ze=zt[E],at=ze.x,ut=ze.y,ut+=kt,Fe=z,x+1<yt.length&&(Fe=yt[x+1]),Ze=ze,ze=Ze.x,Ze=Ze.y,E+1<zt.length&&(Ze=zt[E+1],ze=Ze.x,Ze=Ze.y,Ze+=kt),tn=b,z.x===at?tn=ut-z.y:z.x>at&&z.x<ze?tn=ut+(z.x-at)/(ze-at)*(Ze-ut)-z.y:at>z.x&&at<Fe.x&&(tn=ut-(z.y+(at-z.x)/(Fe.x-z.x)*(Fe.y-z.y))),tn<b&&(b=tn),Fe.x<=z.x?x++:ze<=at?E++:(Fe.x<=ze&&x++,ze<=Fe.x&&E++);if(kt-=b,kt+=ct,x=zt,E=kt,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;)ut=x[z++],ct[b++].h(ut.x,ut.y+E);for(;at<y.length;)ut=y[at++],ct[b++].h(ut.x,ut.y);for(at=y[y.length-1].x;z<x.length&&x[z].x<=at;)z++;for(;z<x.length&&x[z].x>at;)ut=x[z++],ct[b++].h(ut.x,ut.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=kt,yt===null||2>yt.length||z===null||2>z.length)E=null;else{for(ct=xc(a,yt.length+z.length),E=ut=x=0;x<yt.length&&yt[x].x<z[0].x;)Fe=yt[x++],ct[E++].h(Fe.x,Fe.y);for(;ut<z.length;)Fe=z[ut++],ct[E++].h(Fe.x,Fe.y+at);for(z=z[z.length-1].x;x<yt.length&&yt[x].x<=z;)x++;for(;x<yt.length&&yt[x].x>z;)at=yt[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=he,nt=Math.max(0,kt)+nt.height,xA(a,y),xA(a,zt),xA(a,yt),xA(a,Xt),ot[0]=b,ot[1]=E,new ai(kt,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 Ne;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)}as.prototype.arrangeTrees=function(){if(this.Rb===rv)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof Id){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 Id&&a.push(x);switch(this.sorting){case Yp:break;case zm:a.reverse();break;case Km:a.sort(this.comparer);break;case Gm:a.sort(this.comparer),a.reverse();break;default:qe("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:qe("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)}}}as.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},as.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},as.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 Ne(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),b=new Ne(-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)}},as.prototype.commitLayers=function(){},as.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},as.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof Id&&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])}}as.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=qa;break;case 90:E=Nl;break;case 180:E=Aa;break;default:E=Ha}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:Ha;if(nt===1||y===nt-1&&nt%2===1)switch(b){case 0:at=Aa;break;case 90:at=Ha;break;case 180:at=qa;break;default:at=Nl}else y%2===0&&(at=b===90||b===270?qa:Nl);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?qa:Nl,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:Ha,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=qa;break;case 90:b.fromSpot=Nl;break;case 180:b.fromSpot=Aa;break;default:b.fromSpot=Ha}else b.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.toSpot=Aa;break;case 90:b.toSpot=Ha;break;case 180:b.toSpot=qa;break;default:b.toSpot=Nl}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=qa;break;case 90:b.toSpot=Nl;break;case 180:b.toSpot=Aa;break;default:b.toSpot=Ha}else b.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.fromSpot=Aa;break;case 90:b.fromSpot=Ha;break;case 180:b.fromSpot=qa;break;default:b.fromSpot=Nl}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}as.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},as.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)},De.Object.defineProperties(as.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!==Yp&&a!==zm&&a!==Km&&!Gm||(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()):qe("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!==Wm||(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!==Yp&&a!==zm&&a!==Km&&!Gm||(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!==Wm||(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 pi(as,"PathDefault",-1),tf=new pi(as,"PathDestination",0),up=new pi(as,"PathSource",1),Yp=new pi(as,"SortingForwards",10),zm=new pi(as,"SortingReverse",11),Km=new pi(as,"SortingAscending",12),Gm=new pi(as,"SortingDescending",13),Jp=new pi(as,"AlignmentCenterSubtrees",20),hp=new pi(as,"AlignmentCenterChildren",21),ef=new pi(as,"AlignmentStart",22),nf=new pi(as,"AlignmentEnd",23),Of=new pi(as,"AlignmentBus",24),rf=new pi(as,"AlignmentBusBranching",25),Df=new pi(as,"AlignmentTopLeftBus",26),df=new pi(as,"AlignmentBottomRightBus",27),ev=new pi(as,"CompactionNone",30),Wm=new pi(as,"CompactionBlock",31),nv=new pi(as,"StyleLayered",40),vy=new pi(as,"StyleLastParents",41),yy=new pi(as,"StyleAlternating",42),wy=new pi(as,"StyleRootOnly",43),iv=new pi(as,"ArrangementVertical",50),xy=new pi(as,"ArrangementHorizontal",51),rv=new pi(as,"ArrangementFixedRoots",52),Sy=new pi(as,"LayerIndividual",60),Cy=new pi(as,"LayerSiblings",61),ov=new pi(as,"LayerUniform",62);as.className="TreeLayout",as.PathDefault=tv,as.PathDestination=tf,as.PathSource=up,as.SortingForwards=Yp,as.SortingReverse=zm,as.SortingAscending=Km,as.SortingDescending=Gm,as.AlignmentCenterSubtrees=Jp,as.AlignmentCenterChildren=hp,as.AlignmentStart=ef,as.AlignmentEnd=nf,as.AlignmentBus=Of,as.AlignmentBusBranching=rf,as.AlignmentTopLeftBus=Df,as.AlignmentBottomRightBus=df,as.CompactionNone=ev,as.CompactionBlock=Wm,as.StyleLayered=nv,as.StyleLastParents=vy,as.StyleAlternating=yy,as.StyleRootOnly=wy,as.ArrangementVertical=iv,as.ArrangementHorizontal=xy,as.ArrangementFixedRoots=rv,as.LayerIndividual=Sy,as.LayerSiblings=Cy,as.LayerUniform=ov;function cp(a){Ba.call(this,a)}Tn(cp,Ba),cp.prototype.createVertex=function(){return new Id(this)},cp.prototype.createEdge=function(){return new qp(this)},cp.className="TreeNetwork";function Id(a){vu.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 Ne(0,0),this.Da=new Zi(0,0),this.la=new Ne(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Yp,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=Wm,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}Tn(Id,vu),Id.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)},De.Object.defineProperties(Id.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)}}}),Id.className="TreeVertex";function qp(a){Rc.call(this,a),this.$t=new Ne(0,0)}Tn(qp,Rc),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:qe("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===qc,ut=a.isOrthogonal,ct;if(a.uh(),ut||at){for(ct=2;4<a.pointsCount;)a.pv(2);var yt=a.i(1),kt=a.i(2)}else{for(ct=1;3<a.pointsCount;)a.pv(1);yt=a.i(0),kt=a.i(a.pointsCount-1)}var zt=a.i(a.pointsCount-1);z===0?(x.alignment===nf?(z=b.bottom+E.y,E.y===0&&yt.y>zt.y+x.rowIndent&&(z=Math.min(z,Math.max(yt.y,z-y.computeNodeIndent(x))))):x.alignment===ef?(z=b.top+E.y,E.y===0&&yt.y<zt.y-x.rowIndent&&(z=Math.max(z,Math.min(yt.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,yt.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,kt.x,z)):(ut&&(a.m(ct,b.right+nt/2,yt.y),ct++),a.m(ct,b.right+nt/2,z),ct++,a.m(ct,b.right+nt+E.x-(ut?ot/2:ot),z),ct++,ut&&a.m(ct,a.i(ct-1).x,kt.y))):z===90?(x.alignment===nf?(z=b.right+E.x,E.x===0&&yt.x>zt.x+x.rowIndent&&(z=Math.min(z,Math.max(yt.x,z-y.computeNodeIndent(x))))):x.alignment===ef?(z=b.left+E.x,E.x===0&&yt.x<zt.x-x.rowIndent&&(z=Math.max(z,Math.min(yt.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,yt.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,kt.y)):(ut&&(a.m(ct,yt.x,b.bottom+nt/2),ct++),a.m(ct,z,b.bottom+nt/2),ct++,a.m(ct,z,b.bottom+nt+E.y-(ut?ot/2:ot)),ct++,ut&&a.m(ct,kt.x,a.i(ct-1).y))):z===180?(x.alignment===nf?(z=b.bottom+E.y,E.y===0&&yt.y>zt.y+x.rowIndent&&(z=Math.min(z,Math.max(yt.y,z-y.computeNodeIndent(x))))):x.alignment===ef?(z=b.top+E.y,E.y===0&&yt.y<zt.y-x.rowIndent&&(z=Math.max(z,Math.min(yt.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,yt.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,kt.x,z)):(ut&&(a.m(ct,b.left-nt/2,yt.y),ct++),a.m(ct,b.left-nt/2,z),ct++,a.m(ct,b.left-nt+E.x+(ut?ot/2:ot),z),ct++,ut&&a.m(ct,a.i(ct-1).x,kt.y))):z===270?(x.alignment===nf?(z=b.right+E.x,E.x===0&&yt.x>zt.x+x.rowIndent&&(z=Math.min(z,Math.max(yt.x,z-y.computeNodeIndent(x))))):x.alignment===ef?(z=b.left+E.x,E.x===0&&yt.x<zt.x-x.rowIndent&&(z=Math.max(z,Math.min(yt.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,yt.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,kt.y)):(ut&&(a.m(ct,yt.x,b.top-nt/2),ct++),a.m(ct,z,b.top-nt/2),ct++,a.m(ct,z,b.top-nt+E.y+(ut?ot/2:ot)),ct++,ut&&a.m(ct,kt.x,a.i(ct-1).y))):qe("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===qc,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()))}}},De.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",Vt.prototype.initializeStandardTools=function(){this.gb("Action",new tr,this.mouseDownTools),this.gb("Relinking",new si,this.mouseDownTools),this.gb("LinkReshaping",new Ii,this.mouseDownTools),this.gb("Rotating",new no,this.mouseDownTools),this.gb("Resizing",new Hn,this.mouseDownTools),this.gb("Linking",new mn,this.mouseMoveTools),this.gb("Dragging",new Qe,this.mouseMoveTools),this.gb("DragSelecting",new Ar,this.mouseMoveTools),this.gb("Panning",new qi,this.mouseMoveTools),this.gb("ContextMenu",new po,this.mouseUpTools),this.gb("TextEditing",new Eo,this.mouseUpTools),this.gb("ClickCreating",new pr,this.mouseUpTools),this.gb("ClickSelecting",new ro,this.mouseUpTools)},Oc("Horizontal",new Bi),Oc("Spot",new Yi),Oc("Table",new Br),Oc("Viewbox",new Ir),Oc("TableRow",new Ui),Oc("TableColumn",new zi),Oc("Graduated",new Ks),Oc("Grid",new Jr),ba.add("GraphLinksModel",Du),ba.add("TreeModel",fd);var sv=Le.go,By={get licenseKey(){return Un.licenseKey},set licenseKey(a){Un.licenseKey=a},get version(){return Un.version},Group:Do,EnumValue:pi,List:Ci,Set:xi,Map:xr,Point:Ne,Size:Zi,Rect:ai,Margin:Rr,Spot:fr,Geometry:Vi,PathFigure:tl,PathSegment:As,InputEvent:wu,DiagramEvent:yd,ChangedEvent:Ma,Model:Or,GraphLinksModel:gs,TreeModel:Xh,Binding:Yl,Transaction:Et,UndoManager:wt,CommandHandler:je,Tool:Ut,DraggingTool:Qe,DraggingInfo:sc,DraggingOptions:st,LinkingBaseTool:hn,LinkingTool:mn,RelinkingTool:si,LinkReshapingTool:Ii,ResizingTool:Hn,RotatingTool:no,ClickSelectingTool:ro,ActionTool:tr,ClickCreatingTool:pr,HTMLInfo:Nr,ContextMenuTool:po,DragSelectingTool:Ar,PanningTool:qi,TextEditingTool:Eo,ToolManager:Vt,Animation:Qa,AnimationManager:fa,AnimationTrigger:Vu,Layer:ga,Diagram:Un,Palette:vt,Overview:Bt,Brush:Us,GraphObject:wn,Panel:ei,RowColumnDefinition:Rl,Shape:Ko,TextBlock:ua,Picture:uc,Part:Vr,Adornment:bs,Node:hr,Link:Gi,Placeholder:Gh,Layout:Ka,LayoutNetwork:Ba,LayoutVertex:vu,LayoutEdge:Rc,GridLayout:$u,PanelLayout:bn,CircularLayout:gl,CircularNetwork:Zp,CircularVertex:Dm,CircularEdge:_0,ForceDirectedLayout:uh,ForceDirectedNetwork:ap,ForceDirectedVertex:jm,ForceDirectedEdge:Um,LayeredDigraphLayout:Ys,LayeredDigraphNetwork:$p,LayeredDigraphVertex:pd,LayeredDigraphEdge:Hm,TreeLayout:as,TreeNetwork:cp,TreeVertex:Id,TreeEdge:qp};typeof sv=="object"&&sv.version&&er("WARNING: a `go` object on the root object is already defined. "+("Debug"in sv?"debug ":"")+"version: "+sv.version+", replaced with version: "+By.version),Un.prototype.go=By,Le.go=By,typeof hi.exports=="object"&&(hi.exports=typeof bt.g!="undefined"?bt.g.go:self.go)}();var Mt=typeof bt.g!="undefined"?bt.g.go:self.go;const ce=typeof bt.g!="undefined"?bt.g.go:self.go,ie=ce.Group,Ie=ce.EnumValue,ee=ce.List,Zt=ce.Set,Nt=ce.Map,jt=ce.Point,qt=ce.Size,Pt=ce.Rect,re=ce.Margin,Kt=ce.Spot,Yt=ce.Geometry,Ct=ce.PathFigure,et=ce.PathSegment,tt=ce.InputEvent,lt=ce.DiagramEvent,rt=ce.ChangedEvent,ht=ce.Model,dt=ce.GraphLinksModel,St=ce.TreeModel,It=ce.Binding,_t=ce.Transaction,Gt=ce.UndoManager,oe=ce.CommandHandler,ue=ce.Tool,de=ce.DraggingTool,be=ce.DraggingInfo,Jt=ce.LinkingBaseTool,Ke=ce.LinkingTool,Wt=ce.RelinkingTool,Ge=ce.LinkReshapingTool,He=ce.ResizingTool,Me=ce.RotatingTool,We=ce.ClickSelectingTool,_e=ce.ActionTool,ve=ce.ClickCreatingTool,ne=ce.HTMLInfo,Se=ce.ContextMenuTool,Pn=ce.DragSelectingTool,Mn=ce.PanningTool,Xe=ce.TextEditingTool,Nn=ce.ToolManager,Zn=ce.Animation,fi=ce.AnimationManager,zn=ce.AnimationTrigger,Si=ce.Layer,nn=ce.Diagram,Fi=ce.Palette,Ti=ce.Overview,Lt=ce.Brush,Ot=ce.GraphObject,mt=ce.Panel,ft=ce.RowColumnDefinition,pt=ce.Shape,At=ce.TextBlock,le=ce.TextBlockMetrics,we=ce.Picture,ae=ce.Part,me=ce.Adornment,Re=ce.Node,Oe=ce.Link,ke=ce.Placeholder,rn=ce.Layout,Vn=ce.LayoutNetwork,sn=ce.LayoutVertex,An=ce.LayoutEdge,Bn=ce.GridLayout,ii=ce.PanelLayout,_n=ce.CircularLayout,ji=ce.CircularNetwork,cr=ce.CircularVertex,Ji=ce.CircularEdge,mr=ce.ForceDirectedLayout,Mr=ce.ForceDirectedNetwork,ao=ce.ForceDirectedVertex,Yr=ce.ForceDirectedEdge,Zr=ce.LayeredDigraphLayout,kr=ce.LayeredDigraphNetwork,Gr=ce.LayeredDigraphVertex,lo=ce.LayeredDigraphEdge,_o=ce.TreeLayout,ns=ce.TreeNetwork,co=ce.TreeVertex,ys=ce.TreeEdge,jo=ce.version},64270:function(hi){(function(Cn,bt){hi.exports=bt()})(this,function(){"use strict";var Cn=function(Dt,Tt){return Cn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Qt,Ht){Qt.__proto__=Ht}||function(Qt,Ht){for(var Be in Ht)Object.prototype.hasOwnProperty.call(Ht,Be)&&(Qt[Be]=Ht[Be])},Cn(Dt,Tt)};function bt(Dt,Tt){if(typeof Tt!="function"&&Tt!==null)throw new TypeError("Class extends value "+String(Tt)+" is not a constructor or null");Cn(Dt,Tt);function Qt(){this.constructor=Dt}Dt.prototype=Tt===null?Object.create(Tt):(Qt.prototype=Tt.prototype,new Qt)}var Mt=function(){return Mt=Object.assign||function(Tt){for(var Qt,Ht=1,Be=arguments.length;Ht<Be;Ht++){Qt=arguments[Ht];for(var Je in Qt)Object.prototype.hasOwnProperty.call(Qt,Je)&&(Tt[Je]=Qt[Je])}return Tt},Mt.apply(this,arguments)};function ce(Dt,Tt,Qt,Ht){function Be(Je){return Je instanceof Qt?Je:new Qt(function(Ln){Ln(Je)})}return new(Qt||(Qt=Promise))(function(Je,Ln){function ni(Qi){try{Di(Ht.next(Qi))}catch(xt){Ln(xt)}}function jn(Qi){try{Di(Ht.throw(Qi))}catch(xt){Ln(xt)}}function Di(Qi){Qi.done?Je(Qi.value):Be(Qi.value).then(ni,jn)}Di((Ht=Ht.apply(Dt,Tt||[])).next())})}function ie(Dt,Tt){var Qt={label:0,sent:function(){if(Je[0]&1)throw Je[1];return Je[1]},trys:[],ops:[]},Ht,Be,Je,Ln;return Ln={next:ni(0),throw:ni(1),return:ni(2)},typeof Symbol=="function"&&(Ln[Symbol.iterator]=function(){return this}),Ln;function ni(Di){return function(Qi){return jn([Di,Qi])}}function jn(Di){if(Ht)throw new TypeError("Generator is already executing.");for(;Qt;)try{if(Ht=1,Be&&(Je=Di[0]&2?Be.return:Di[0]?Be.throw||((Je=Be.return)&&Je.call(Be),0):Be.next)&&!(Je=Je.call(Be,Di[1])).done)return Je;switch(Be=0,Je&&(Di=[Di[0]&2,Je.value]),Di[0]){case 0:case 1:Je=Di;break;case 4:return Qt.label++,{value:Di[1],done:!1};case 5:Qt.label++,Be=Di[1],Di=[0];continue;case 7:Di=Qt.ops.pop(),Qt.trys.pop();continue;default:if(Je=Qt.trys,!(Je=Je.length>0&&Je[Je.length-1])&&(Di[0]===6||Di[0]===2)){Qt=0;continue}if(Di[0]===3&&(!Je||Di[1]>Je[0]&&Di[1]<Je[3])){Qt.label=Di[1];break}if(Di[0]===6&&Qt.label<Je[1]){Qt.label=Je[1],Je=Di;break}if(Je&&Qt.label<Je[2]){Qt.label=Je[2],Qt.ops.push(Di);break}Je[2]&&Qt.ops.pop(),Qt.trys.pop();continue}Di=Tt.call(Dt,Qt)}catch(Qi){Di=[6,Qi],Be=0}finally{Ht=Je=0}if(Di[0]&5)throw Di[1];return{value:Di[0]?Di[1]:void 0,done:!0}}}function Ie(Dt,Tt,Qt){if(Qt||arguments.length===2)for(var Ht=0,Be=Tt.length,Je;Ht<Be;Ht++)(Je||!(Ht in Tt))&&(Je||(Je=Array.prototype.slice.call(Tt,0,Ht)),Je[Ht]=Tt[Ht]);return Dt.concat(Je||Tt)}for(var ee=function(){function Dt(Tt,Qt,Ht,Be){this.left=Tt,this.top=Qt,this.width=Ht,this.height=Be}return Dt.prototype.add=function(Tt,Qt,Ht,Be){return new Dt(this.left+Tt,this.top+Qt,this.width+Ht,this.height+Be)},Dt.fromClientRect=function(Tt,Qt){return new Dt(Qt.left+Tt.windowBounds.left,Qt.top+Tt.windowBounds.top,Qt.width,Qt.height)},Dt.fromDOMRectList=function(Tt,Qt){var Ht=Array.from(Qt).find(function(Be){return Be.width!==0});return Ht?new Dt(Ht.left+Tt.windowBounds.left,Ht.top+Tt.windowBounds.top,Ht.width,Ht.height):Dt.EMPTY},Dt.EMPTY=new Dt(0,0,0,0),Dt}(),Zt=function(Dt,Tt){return ee.fromClientRect(Dt,Tt.getBoundingClientRect())},Nt=function(Dt){var Tt=Dt.body,Qt=Dt.documentElement;if(!Tt||!Qt)throw new Error("Unable to get document size");var Ht=Math.max(Math.max(Tt.scrollWidth,Qt.scrollWidth),Math.max(Tt.offsetWidth,Qt.offsetWidth),Math.max(Tt.clientWidth,Qt.clientWidth)),Be=Math.max(Math.max(Tt.scrollHeight,Qt.scrollHeight),Math.max(Tt.offsetHeight,Qt.offsetHeight),Math.max(Tt.clientHeight,Qt.clientHeight));return new ee(0,0,Ht,Be)},jt=function(Dt){for(var Tt=[],Qt=0,Ht=Dt.length;Qt<Ht;){var Be=Dt.charCodeAt(Qt++);if(Be>=55296&&Be<=56319&&Qt<Ht){var Je=Dt.charCodeAt(Qt++);(Je&64512)===56320?Tt.push(((Be&1023)<<10)+(Je&1023)+65536):(Tt.push(Be),Qt--)}else Tt.push(Be)}return Tt},qt=function(){for(var Dt=[],Tt=0;Tt<arguments.length;Tt++)Dt[Tt]=arguments[Tt];if(String.fromCodePoint)return String.fromCodePoint.apply(String,Dt);var Qt=Dt.length;if(!Qt)return"";for(var Ht=[],Be=-1,Je="";++Be<Qt;){var Ln=Dt[Be];Ln<=65535?Ht.push(Ln):(Ln-=65536,Ht.push((Ln>>10)+55296,Ln%1024+56320)),(Be+1===Qt||Ht.length>16384)&&(Je+=String.fromCharCode.apply(String,Ht),Ht.length=0)}return Je},Pt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",re=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Kt=0;Kt<Pt.length;Kt++)re[Pt.charCodeAt(Kt)]=Kt;for(var Yt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ct=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),et=0;et<Yt.length;et++)Ct[Yt.charCodeAt(et)]=et;for(var tt=function(Dt){var Tt=Dt.length*.75,Qt=Dt.length,Ht,Be=0,Je,Ln,ni,jn;Dt[Dt.length-1]==="="&&(Tt--,Dt[Dt.length-2]==="="&&Tt--);var Di=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(Tt):new Array(Tt),Qi=Array.isArray(Di)?Di:new Uint8Array(Di);for(Ht=0;Ht<Qt;Ht+=4)Je=Ct[Dt.charCodeAt(Ht)],Ln=Ct[Dt.charCodeAt(Ht+1)],ni=Ct[Dt.charCodeAt(Ht+2)],jn=Ct[Dt.charCodeAt(Ht+3)],Qi[Be++]=Je<<2|Ln>>4,Qi[Be++]=(Ln&15)<<4|ni>>2,Qi[Be++]=(ni&3)<<6|jn&63;return Di},lt=function(Dt){for(var Tt=Dt.length,Qt=[],Ht=0;Ht<Tt;Ht+=2)Qt.push(Dt[Ht+1]<<8|Dt[Ht]);return Qt},rt=function(Dt){for(var Tt=Dt.length,Qt=[],Ht=0;Ht<Tt;Ht+=4)Qt.push(Dt[Ht+3]<<24|Dt[Ht+2]<<16|Dt[Ht+1]<<8|Dt[Ht]);return Qt},ht=5,dt=11,St=2,It=dt-ht,_t=65536>>ht,Gt=1<<ht,oe=Gt-1,ue=1024>>ht,de=_t+ue,be=de,Jt=32,Ke=be+Jt,Wt=65536>>dt,Ge=1<<It,He=Ge-1,Me=function(Dt,Tt,Qt){return Dt.slice?Dt.slice(Tt,Qt):new Uint16Array(Array.prototype.slice.call(Dt,Tt,Qt))},We=function(Dt,Tt,Qt){return Dt.slice?Dt.slice(Tt,Qt):new Uint32Array(Array.prototype.slice.call(Dt,Tt,Qt))},_e=function(Dt,Tt){var Qt=tt(Dt),Ht=Array.isArray(Qt)?rt(Qt):new Uint32Array(Qt),Be=Array.isArray(Qt)?lt(Qt):new Uint16Array(Qt),Je=24,Ln=Me(Be,Je/2,Ht[4]/2),ni=Ht[5]===2?Me(Be,(Je+Ht[4])/2):We(Ht,Math.ceil((Je+Ht[4])/4));return new ve(Ht[0],Ht[1],Ht[2],Ht[3],Ln,ni)},ve=function(){function Dt(Tt,Qt,Ht,Be,Je,Ln){this.initialValue=Tt,this.errorValue=Qt,this.highStart=Ht,this.highValueIndex=Be,this.index=Je,this.data=Ln}return Dt.prototype.get=function(Tt){var Qt;if(Tt>=0){if(Tt<55296||Tt>56319&&Tt<=65535)return Qt=this.index[Tt>>ht],Qt=(Qt<<St)+(Tt&oe),this.data[Qt];if(Tt<=65535)return Qt=this.index[_t+(Tt-55296>>ht)],Qt=(Qt<<St)+(Tt&oe),this.data[Qt];if(Tt<this.highStart)return Qt=Ke-Wt+(Tt>>dt),Qt=this.index[Qt],Qt+=Tt>>ht&He,Qt=this.index[Qt],Qt=(Qt<<St)+(Tt&oe),this.data[Qt];if(Tt<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Dt}(),ne="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Se=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Pn=0;Pn<ne.length;Pn++)Se[ne.charCodeAt(Pn)]=Pn;var Mn="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,Nn=1,Zn=2,fi=3,zn=4,Si=5,nn=7,Fi=8,Ti=9,Lt=10,Ot=11,mt=12,ft=13,pt=14,At=15,le=16,we=17,ae=18,me=19,Re=20,Oe=21,ke=22,rn=23,Vn=24,sn=25,An=26,Bn=27,ii=28,_n=29,ji=30,cr=31,Ji=32,mr=33,Mr=34,ao=35,Yr=36,Zr=37,kr=38,Gr=39,lo=40,_o=41,ns=42,co=43,ys=[9001,65288],jo="!",$t="\xD7",ri="\xF7",ws=_e(Mn),Is=[ji,Yr],ma=[Nn,Zn,fi,Si],va=[Lt,Fi],qs=[Bn,An],_r=ma.concat(va),Dr=[kr,Gr,lo,Mr,ao],kn=[At,ft],Tn=function(Dt,Tt){Tt===void 0&&(Tt="strict");var Qt=[],Ht=[],Be=[];return Dt.forEach(function(Je,Ln){var ni=ws.get(Je);if(ni>Xe?(Be.push(!0),ni-=Xe):Be.push(!1),["normal","auto","loose"].indexOf(Tt)!==-1&&[8208,8211,12316,12448].indexOf(Je)!==-1)return Ht.push(Ln),Qt.push(le);if(ni===zn||ni===Ot){if(Ln===0)return Ht.push(Ln),Qt.push(ji);var jn=Qt[Ln-1];return _r.indexOf(jn)===-1?(Ht.push(Ht[Ln-1]),Qt.push(jn)):(Ht.push(Ln),Qt.push(ji))}if(Ht.push(Ln),ni===cr)return Qt.push(Tt==="strict"?Oe:Zr);if(ni===ns||ni===_n)return Qt.push(ji);if(ni===co)return Je>=131072&&Je<=196605||Je>=196608&&Je<=262141?Qt.push(Zr):Qt.push(ji);Qt.push(ni)}),[Ht,Qt,Be]},De=function(Dt,Tt,Qt,Ht){var Be=Ht[Qt];if(Array.isArray(Dt)?Dt.indexOf(Be)!==-1:Dt===Be)for(var Je=Qt;Je<=Ht.length;){Je++;var Ln=Ht[Je];if(Ln===Tt)return!0;if(Ln!==Lt)break}if(Be===Lt)for(var Je=Qt;Je>0;){Je--;var ni=Ht[Je];if(Array.isArray(Dt)?Dt.indexOf(ni)!==-1:Dt===ni)for(var jn=Qt;jn<=Ht.length;){jn++;var Ln=Ht[jn];if(Ln===Tt)return!0;if(Ln!==Lt)break}if(ni!==Lt)break}return!1},ti=function(Dt,Tt){for(var Qt=Dt;Qt>=0;){var Ht=Tt[Qt];if(Ht===Lt)Qt--;else return Ht}return 0},yi=function(Dt,Tt,Qt,Ht,Be){if(Qt[Ht]===0)return $t;var Je=Ht-1;if(Array.isArray(Be)&&Be[Je]===!0)return $t;var Ln=Je-1,ni=Je+1,jn=Tt[Je],Di=Ln>=0?Tt[Ln]:0,Qi=Tt[ni];if(jn===Zn&&Qi===fi)return $t;if(ma.indexOf(jn)!==-1)return jo;if(ma.indexOf(Qi)!==-1||va.indexOf(Qi)!==-1)return $t;if(ti(Je,Tt)===Fi)return ri;if(ws.get(Dt[Je])===Ot||(jn===Ji||jn===mr)&&ws.get(Dt[ni])===Ot||jn===nn||Qi===nn||jn===Ti||[Lt,ft,At].indexOf(jn)===-1&&Qi===Ti||[we,ae,me,Vn,ii].indexOf(Qi)!==-1||ti(Je,Tt)===ke||De(rn,ke,Je,Tt)||De([we,ae],Oe,Je,Tt)||De(mt,mt,Je,Tt))return $t;if(jn===Lt)return ri;if(jn===rn||Qi===rn)return $t;if(Qi===le||jn===le)return ri;if([ft,At,Oe].indexOf(Qi)!==-1||jn===pt||Di===Yr&&kn.indexOf(jn)!==-1||jn===ii&&Qi===Yr||Qi===Re||Is.indexOf(Qi)!==-1&&jn===sn||Is.indexOf(jn)!==-1&&Qi===sn||jn===Bn&&[Zr,Ji,mr].indexOf(Qi)!==-1||[Zr,Ji,mr].indexOf(jn)!==-1&&Qi===An||Is.indexOf(jn)!==-1&&qs.indexOf(Qi)!==-1||qs.indexOf(jn)!==-1&&Is.indexOf(Qi)!==-1||[Bn,An].indexOf(jn)!==-1&&(Qi===sn||[ke,At].indexOf(Qi)!==-1&&Tt[ni+1]===sn)||[ke,At].indexOf(jn)!==-1&&Qi===sn||jn===sn&&[sn,ii,Vn].indexOf(Qi)!==-1)return $t;if([sn,ii,Vn,we,ae].indexOf(Qi)!==-1)for(var xt=Je;xt>=0;){var Rt=Tt[xt];if(Rt===sn)return $t;if([ii,Vn].indexOf(Rt)!==-1)xt--;else break}if([Bn,An].indexOf(Qi)!==-1)for(var xt=[we,ae].indexOf(jn)!==-1?Ln:Je;xt>=0;){var Rt=Tt[xt];if(Rt===sn)return $t;if([ii,Vn].indexOf(Rt)!==-1)xt--;else break}if(kr===jn&&[kr,Gr,Mr,ao].indexOf(Qi)!==-1||[Gr,Mr].indexOf(jn)!==-1&&[Gr,lo].indexOf(Qi)!==-1||[lo,ao].indexOf(jn)!==-1&&Qi===lo||Dr.indexOf(jn)!==-1&&[Re,An].indexOf(Qi)!==-1||Dr.indexOf(Qi)!==-1&&jn===Bn||Is.indexOf(jn)!==-1&&Is.indexOf(Qi)!==-1||jn===Vn&&Is.indexOf(Qi)!==-1||Is.concat(sn).indexOf(jn)!==-1&&Qi===ke&&ys.indexOf(Dt[ni])===-1||Is.concat(sn).indexOf(Qi)!==-1&&jn===ae)return $t;if(jn===_o&&Qi===_o){for(var fe=Qt[Je],Pe=1;fe>0&&(fe--,Tt[fe]===_o);)Pe++;if(Pe%2!==0)return $t}return jn===Ji&&Qi===mr?$t:ri},dn=function(Dt,Tt){Tt||(Tt={lineBreak:"normal",wordBreak:"normal"});var Qt=Tn(Dt,Tt.lineBreak),Ht=Qt[0],Be=Qt[1],Je=Qt[2];(Tt.wordBreak==="break-all"||Tt.wordBreak==="break-word")&&(Be=Be.map(function(ni){return[sn,ji,ns].indexOf(ni)!==-1?Zr:ni}));var Ln=Tt.wordBreak==="keep-all"?Je.map(function(ni,jn){return ni&&Dt[jn]>=19968&&Dt[jn]<=40959}):void 0;return[Ht,Be,Ln]},Le=function(){function Dt(Tt,Qt,Ht,Be){this.codePoints=Tt,this.required=Qt===jo,this.start=Ht,this.end=Be}return Dt.prototype.slice=function(){return qt.apply(void 0,this.codePoints.slice(this.start,this.end))},Dt}(),yn=function(Dt,Tt){var Qt=jt(Dt),Ht=dn(Qt,Tt),Be=Ht[0],Je=Ht[1],Ln=Ht[2],ni=Qt.length,jn=0,Di=0;return{next:function(){if(Di>=ni)return{done:!0,value:null};for(var Qi=$t;Di<ni&&(Qi=yi(Qt,Je,Be,++Di,Ln))===$t;);if(Qi!==$t||Di===ni){var xt=new Le(Qt,Qi,jn,Di);return jn=Di,{value:xt,done:!1}}return{done:!0,value:null}}}},Qn=1,wi=2,Oi=4,qe=8,oi=10,Pi=47,er=92,On=9,ui=32,Cr=34,or=61,zr=35,ar=36,Lr=37,nr=39,Pr=40,io=41,Uo=95,gi=45,Qo=33,ps=60,$o=62,pi=64,ur=91,Ur=93,uo=61,qr=123,ko=63,di=125,Co=124,jr=126,Sr=128,Ci=65533,Bo=42,xi=43,Yo=44,ha=58,vs=59,da=46,ta=0,To=8,Ro=11,us=14,os=31,xr=127,Ne=-1,ls=48,ra=97,al=101,ll=102,bl=117,is=122,Vo=65,Es=69,Zo=70,Vs=85,yl=90,Ao=function(Dt){return Dt>=ls&&Dt<=57},yo=function(Dt){return Dt>=55296&&Dt<=57343},Zi=function(Dt){return Ao(Dt)||Dt>=Vo&&Dt<=Zo||Dt>=ra&&Dt<=ll},bo=function(Dt){return Dt>=ra&&Dt<=is},xs=function(Dt){return Dt>=Vo&&Dt<=yl},ca=function(Dt){return bo(Dt)||xs(Dt)},aa=function(Dt){return Dt>=Sr},Ho=function(Dt){return Dt===oi||Dt===On||Dt===ui},Zs=function(Dt){return ca(Dt)||aa(Dt)||Dt===Uo},ka=function(Dt){return Zs(Dt)||Ao(Dt)||Dt===gi},Ml=function(Dt){return Dt>=ta&&Dt<=To||Dt===Ro||Dt>=us&&Dt<=os||Dt===xr},Ga=function(Dt,Tt){return Dt!==er?!1:Tt!==oi},Ss=function(Dt,Tt,Qt){return Dt===gi?Zs(Tt)||Ga(Tt,Qt):Zs(Dt)?!0:!!(Dt===er&&Ga(Dt,Tt))},ai=function(Dt,Tt,Qt){return Dt===xi||Dt===gi?Ao(Tt)?!0:Tt===da&&Ao(Qt):Ao(Dt===da?Tt:Dt)},Ta=function(Dt){var Tt=0,Qt=1;(Dt[Tt]===xi||Dt[Tt]===gi)&&(Dt[Tt]===gi&&(Qt=-1),Tt++);for(var Ht=[];Ao(Dt[Tt]);)Ht.push(Dt[Tt++]);var Be=Ht.length?parseInt(qt.apply(void 0,Ht),10):0;Dt[Tt]===da&&Tt++;for(var Je=[];Ao(Dt[Tt]);)Je.push(Dt[Tt++]);var Ln=Je.length,ni=Ln?parseInt(qt.apply(void 0,Je),10):0;(Dt[Tt]===Es||Dt[Tt]===al)&&Tt++;var jn=1;(Dt[Tt]===xi||Dt[Tt]===gi)&&(Dt[Tt]===gi&&(jn=-1),Tt++);for(var Di=[];Ao(Dt[Tt]);)Di.push(Dt[Tt++]);var Qi=Di.length?parseInt(qt.apply(void 0,Di),10):0;return Qt*(Be+ni*Math.pow(10,-Ln))*Math.pow(10,jn*Qi)},dc={type:2},hu={type:3},kh={type:4},Wr={type:13},zs={type:8},Ms={type:21},Cs={type:9},Gs={type:10},cu={type:11},qo={type:12},_s={type:14},ms={type:23},Rr={type:1},ul={type:25},Os={type:24},yu={type:26},Uu={type:27},Vl={type:28},fr={type:29},Wa={type:31},nl={type:32},Cl=function(){function Dt(){this._value=[]}return Dt.prototype.write=function(Tt){this._value=this._value.concat(jt(Tt))},Dt.prototype.read=function(){for(var Tt=[],Qt=this.consumeToken();Qt!==nl;)Tt.push(Qt),Qt=this.consumeToken();return Tt},Dt.prototype.consumeToken=function(){var Tt=this.consumeCodePoint();switch(Tt){case Cr:return this.consumeStringToken(Cr);case zr:var Qt=this.peekCodePoint(0),Ht=this.peekCodePoint(1),Be=this.peekCodePoint(2);if(ka(Qt)||Ga(Ht,Be)){var Je=Ss(Qt,Ht,Be)?wi:Qn,Ln=this.consumeName();return{type:5,value:Ln,flags:Je}}break;case ar:if(this.peekCodePoint(0)===or)return this.consumeCodePoint(),Wr;break;case nr:return this.consumeStringToken(nr);case Pr:return dc;case io:return hu;case Bo:if(this.peekCodePoint(0)===or)return this.consumeCodePoint(),_s;break;case xi:if(ai(Tt,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(Tt),this.consumeNumericToken();break;case Yo:return kh;case gi:var ni=Tt,jn=this.peekCodePoint(0),Di=this.peekCodePoint(1);if(ai(ni,jn,Di))return this.reconsumeCodePoint(Tt),this.consumeNumericToken();if(Ss(ni,jn,Di))return this.reconsumeCodePoint(Tt),this.consumeIdentLikeToken();if(jn===gi&&Di===$o)return this.consumeCodePoint(),this.consumeCodePoint(),Os;break;case da:if(ai(Tt,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(Tt),this.consumeNumericToken();break;case Pi:if(this.peekCodePoint(0)===Bo)for(this.consumeCodePoint();;){var Qi=this.consumeCodePoint();if(Qi===Bo&&(Qi=this.consumeCodePoint(),Qi===Pi))return this.consumeToken();if(Qi===Ne)return this.consumeToken()}break;case ha:return yu;case vs:return Uu;case ps:if(this.peekCodePoint(0)===Qo&&this.peekCodePoint(1)===gi&&this.peekCodePoint(2)===gi)return this.consumeCodePoint(),this.consumeCodePoint(),ul;break;case pi:var xt=this.peekCodePoint(0),Rt=this.peekCodePoint(1),fe=this.peekCodePoint(2);if(Ss(xt,Rt,fe)){var Ln=this.consumeName();return{type:7,value:Ln}}break;case ur:return Vl;case er:if(Ga(Tt,this.peekCodePoint(0)))return this.reconsumeCodePoint(Tt),this.consumeIdentLikeToken();break;case Ur:return fr;case uo:if(this.peekCodePoint(0)===or)return this.consumeCodePoint(),zs;break;case qr:return cu;case di:return qo;case bl:case Vs:var Pe=this.peekCodePoint(0),$e=this.peekCodePoint(1);return Pe===xi&&(Zi($e)||$e===ko)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(Tt),this.consumeIdentLikeToken();case Co:if(this.peekCodePoint(0)===or)return this.consumeCodePoint(),Cs;if(this.peekCodePoint(0)===Co)return this.consumeCodePoint(),Ms;break;case jr:if(this.peekCodePoint(0)===or)return this.consumeCodePoint(),Gs;break;case Ne:return nl}return Ho(Tt)?(this.consumeWhiteSpace(),Wa):Ao(Tt)?(this.reconsumeCodePoint(Tt),this.consumeNumericToken()):Zs(Tt)?(this.reconsumeCodePoint(Tt),this.consumeIdentLikeToken()):{type:6,value:qt(Tt)}},Dt.prototype.consumeCodePoint=function(){var Tt=this._value.shift();return typeof Tt=="undefined"?-1:Tt},Dt.prototype.reconsumeCodePoint=function(Tt){this._value.unshift(Tt)},Dt.prototype.peekCodePoint=function(Tt){return Tt>=this._value.length?-1:this._value[Tt]},Dt.prototype.consumeUnicodeRangeToken=function(){for(var Tt=[],Qt=this.consumeCodePoint();Zi(Qt)&&Tt.length<6;)Tt.push(Qt),Qt=this.consumeCodePoint();for(var Ht=!1;Qt===ko&&Tt.length<6;)Tt.push(Qt),Qt=this.consumeCodePoint(),Ht=!0;if(Ht){var Be=parseInt(qt.apply(void 0,Tt.map(function(jn){return jn===ko?ls:jn})),16),Je=parseInt(qt.apply(void 0,Tt.map(function(jn){return jn===ko?Zo:jn})),16);return{type:30,start:Be,end:Je}}var Ln=parseInt(qt.apply(void 0,Tt),16);if(this.peekCodePoint(0)===gi&&Zi(this.peekCodePoint(1))){this.consumeCodePoint(),Qt=this.consumeCodePoint();for(var ni=[];Zi(Qt)&&ni.length<6;)ni.push(Qt),Qt=this.consumeCodePoint();var Je=parseInt(qt.apply(void 0,ni),16);return{type:30,start:Ln,end:Je}}else return{type:30,start:Ln,end:Ln}},Dt.prototype.consumeIdentLikeToken=function(){var Tt=this.consumeName();return Tt.toLowerCase()==="url"&&this.peekCodePoint(0)===Pr?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Pr?(this.consumeCodePoint(),{type:19,value:Tt}):{type:20,value:Tt}},Dt.prototype.consumeUrlToken=function(){var Tt=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ne)return{type:22,value:""};var Qt=this.peekCodePoint(0);if(Qt===nr||Qt===Cr){var Ht=this.consumeStringToken(this.consumeCodePoint());return Ht.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ne||this.peekCodePoint(0)===io)?(this.consumeCodePoint(),{type:22,value:Ht.value}):(this.consumeBadUrlRemnants(),ms)}for(;;){var Be=this.consumeCodePoint();if(Be===Ne||Be===io)return{type:22,value:qt.apply(void 0,Tt)};if(Ho(Be))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Ne||this.peekCodePoint(0)===io?(this.consumeCodePoint(),{type:22,value:qt.apply(void 0,Tt)}):(this.consumeBadUrlRemnants(),ms);if(Be===Cr||Be===nr||Be===Pr||Ml(Be))return this.consumeBadUrlRemnants(),ms;if(Be===er)if(Ga(Be,this.peekCodePoint(0)))Tt.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),ms;else Tt.push(Be)}},Dt.prototype.consumeWhiteSpace=function(){for(;Ho(this.peekCodePoint(0));)this.consumeCodePoint()},Dt.prototype.consumeBadUrlRemnants=function(){for(;;){var Tt=this.consumeCodePoint();if(Tt===io||Tt===Ne)return;Ga(Tt,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},Dt.prototype.consumeStringSlice=function(Tt){for(var Qt=5e4,Ht="";Tt>0;){var Be=Math.min(Qt,Tt);Ht+=qt.apply(void 0,this._value.splice(0,Be)),Tt-=Be}return this._value.shift(),Ht},Dt.prototype.consumeStringToken=function(Tt){var Qt="",Ht=0;do{var Be=this._value[Ht];if(Be===Ne||Be===void 0||Be===Tt)return Qt+=this.consumeStringSlice(Ht),{type:0,value:Qt};if(Be===oi)return this._value.splice(0,Ht),Rr;if(Be===er){var Je=this._value[Ht+1];Je!==Ne&&Je!==void 0&&(Je===oi?(Qt+=this.consumeStringSlice(Ht),Ht=-1,this._value.shift()):Ga(Be,Je)&&(Qt+=this.consumeStringSlice(Ht),Qt+=qt(this.consumeEscapedCodePoint()),Ht=-1))}Ht++}while(!0)},Dt.prototype.consumeNumber=function(){var Tt=[],Qt=Oi,Ht=this.peekCodePoint(0);for((Ht===xi||Ht===gi)&&Tt.push(this.consumeCodePoint());Ao(this.peekCodePoint(0));)Tt.push(this.consumeCodePoint());Ht=this.peekCodePoint(0);var Be=this.peekCodePoint(1);if(Ht===da&&Ao(Be))for(Tt.push(this.consumeCodePoint(),this.consumeCodePoint()),Qt=qe;Ao(this.peekCodePoint(0));)Tt.push(this.consumeCodePoint());Ht=this.peekCodePoint(0),Be=this.peekCodePoint(1);var Je=this.peekCodePoint(2);if((Ht===Es||Ht===al)&&((Be===xi||Be===gi)&&Ao(Je)||Ao(Be)))for(Tt.push(this.consumeCodePoint(),this.consumeCodePoint()),Qt=qe;Ao(this.peekCodePoint(0));)Tt.push(this.consumeCodePoint());return[Ta(Tt),Qt]},Dt.prototype.consumeNumericToken=function(){var Tt=this.consumeNumber(),Qt=Tt[0],Ht=Tt[1],Be=this.peekCodePoint(0),Je=this.peekCodePoint(1),Ln=this.peekCodePoint(2);if(Ss(Be,Je,Ln)){var ni=this.consumeName();return{type:15,number:Qt,flags:Ht,unit:ni}}return Be===Lr?(this.consumeCodePoint(),{type:16,number:Qt,flags:Ht}):{type:17,number:Qt,flags:Ht}},Dt.prototype.consumeEscapedCodePoint=function(){var Tt=this.consumeCodePoint();if(Zi(Tt)){for(var Qt=qt(Tt);Zi(this.peekCodePoint(0))&&Qt.length<6;)Qt+=qt(this.consumeCodePoint());Ho(this.peekCodePoint(0))&&this.consumeCodePoint();var Ht=parseInt(Qt,16);return Ht===0||yo(Ht)||Ht>1114111?Ci:Ht}return Tt===Ne?Ci:Tt},Dt.prototype.consumeName=function(){for(var Tt="";;){var Qt=this.consumeCodePoint();if(ka(Qt))Tt+=qt(Qt);else if(Ga(Qt,this.peekCodePoint(0)))Tt+=qt(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(Qt),Tt}},Dt}(),ru=function(){function Dt(Tt){this._tokens=Tt}return Dt.create=function(Tt){var Qt=new Cl;return Qt.write(Tt),new Dt(Qt.read())},Dt.parseValue=function(Tt){return Dt.create(Tt).parseComponentValue()},Dt.parseValues=function(Tt){return Dt.create(Tt).parseComponentValues()},Dt.prototype.parseComponentValue=function(){for(var Tt=this.consumeToken();Tt.type===31;)Tt=this.consumeToken();if(Tt.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(Tt);var Qt=this.consumeComponentValue();do Tt=this.consumeToken();while(Tt.type===31);if(Tt.type===32)return Qt;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},Dt.prototype.parseComponentValues=function(){for(var Tt=[];;){var Qt=this.consumeComponentValue();if(Qt.type===32)return Tt;Tt.push(Qt),Tt.push()}},Dt.prototype.consumeComponentValue=function(){var Tt=this.consumeToken();switch(Tt.type){case 11:case 28:case 2:return this.consumeSimpleBlock(Tt.type);case 19:return this.consumeFunction(Tt)}return Tt},Dt.prototype.consumeSimpleBlock=function(Tt){for(var Qt={type:Tt,values:[]},Ht=this.consumeToken();;){if(Ht.type===32||du(Ht,Tt))return Qt;this.reconsumeToken(Ht),Qt.values.push(this.consumeComponentValue()),Ht=this.consumeToken()}},Dt.prototype.consumeFunction=function(Tt){for(var Qt={name:Tt.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())}},Dt.prototype.consumeToken=function(){var Tt=this._tokens.shift();return typeof Tt=="undefined"?nl:Tt},Dt.prototype.reconsumeToken=function(Tt){this._tokens.unshift(Tt)},Dt}(),$a=function(Dt){return Dt.type===15},Fo=function(Dt){return Dt.type===17},Ua=function(Dt){return Dt.type===20},Ya=function(Dt){return Dt.type===0},ou=function(Dt,Tt){return Ua(Dt)&&Dt.value===Tt},Zl=function(Dt){return Dt.type!==31},Pu=function(Dt){return Dt.type!==31&&Dt.type!==4},bu=function(Dt){var Tt=[],Qt=[];return Dt.forEach(function(Ht){if(Ht.type===4){if(Qt.length===0)throw new Error("Error parsing function args, zero tokens for arg");Tt.push(Qt),Qt=[];return}Ht.type!==31&&Qt.push(Ht)}),Qt.length&&Tt.push(Qt),Tt},du=function(Dt,Tt){return Tt===11&&Dt.type===12||Tt===28&&Dt.type===29?!0:Tt===2&&Dt.type===3},tu=function(Dt){return Dt.type===17||Dt.type===15},Go=function(Dt){return Dt.type===16||tu(Dt)},Dd=function(Dt){return Dt.length>1?[Dt[0],Dt[1]]:[Dt[0]]},Eu={type:17,number:0,flags:Oi},vd={type:16,number:50,flags:Oi},Bh={type:16,number:100,flags:Oi},qh=function(Dt,Tt,Qt){var Ht=Dt[0],Be=Dt[1];return[il(Ht,Tt),il(typeof Be!="undefined"?Be:Ht,Qt)]},il=function(Dt,Tt){if(Dt.type===16)return Dt.number/100*Tt;if($a(Dt))switch(Dt.unit){case"rem":case"em":return 16*Dt.number;case"px":default:return Dt.number}return Dt.number},ch="deg",jd="grad",Kc="rad",Gc="turn",Bs={name:"angle",parse:function(Dt,Tt){if(Tt.type===15)switch(Tt.unit){case ch:return Math.PI*Tt.number/180;case jd:return Math.PI/200*Tt.number;case Kc:return Tt.number;case Gc:return Math.PI*2*Tt.number}throw new Error("Unsupported angle type")}},ya=function(Dt){return Dt.type===15&&(Dt.unit===ch||Dt.unit===jd||Dt.unit===Kc||Dt.unit===Gc)},Nu=function(Dt){var Tt=Dt.filter(Ua).map(function(Qt){return Qt.value}).join(" ");switch(Tt){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Eu,Eu];case"to top":case"bottom":return Ja(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Eu,Bh];case"to right":case"left":return Ja(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Bh,Bh];case"to bottom":case"top":return Ja(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Bh,Eu];case"to left":case"right":return Ja(270)}return 0},Ja=function(Dt){return Math.PI*Dt/180},rl={name:"color",parse:function(Dt,Tt){if(Tt.type===18){var Qt=Ud[Tt.name];if(typeof Qt=="undefined")throw new Error('Attempting to parse an unsupported color function "'+Tt.name+'"');return Qt(Dt,Tt.values)}if(Tt.type===5){if(Tt.value.length===3){var Ht=Tt.value.substring(0,1),Be=Tt.value.substring(1,2),Je=Tt.value.substring(2,3);return qa(parseInt(Ht+Ht,16),parseInt(Be+Be,16),parseInt(Je+Je,16),1)}if(Tt.value.length===4){var Ht=Tt.value.substring(0,1),Be=Tt.value.substring(1,2),Je=Tt.value.substring(2,3),Ln=Tt.value.substring(3,4);return qa(parseInt(Ht+Ht,16),parseInt(Be+Be,16),parseInt(Je+Je,16),parseInt(Ln+Ln,16)/255)}if(Tt.value.length===6){var Ht=Tt.value.substring(0,2),Be=Tt.value.substring(2,4),Je=Tt.value.substring(4,6);return qa(parseInt(Ht,16),parseInt(Be,16),parseInt(Je,16),1)}if(Tt.value.length===8){var Ht=Tt.value.substring(0,2),Be=Tt.value.substring(2,4),Je=Tt.value.substring(4,6),Ln=Tt.value.substring(6,8);return qa(parseInt(Ht,16),parseInt(Be,16),parseInt(Je,16),parseInt(Ln,16)/255)}}if(Tt.type===20){var ni=dh[Tt.value.toUpperCase()];if(typeof ni!="undefined")return ni}return dh.TRANSPARENT}},Ha=function(Dt){return(255&Dt)===0},Aa=function(Dt){var Tt=255&Dt,Qt=255&Dt>>8,Ht=255&Dt>>16,Be=255&Dt>>24;return Tt<255?"rgba("+Be+","+Ht+","+Qt+","+Tt/255+")":"rgb("+Be+","+Ht+","+Qt+")"},qa=function(Dt,Tt,Qt,Ht){return(Dt<<24|Tt<<16|Qt<<8|Math.round(Ht*255)<<0)>>>0},Nl=function(Dt,Tt){if(Dt.type===17)return Dt.number;if(Dt.type===16){var Qt=Tt===3?1:255;return Tt===3?Dt.number/100*Qt:Math.round(Dt.number/100*Qt)}return 0},Ac=function(Dt,Tt){var Qt=Tt.filter(Pu);if(Qt.length===3){var Ht=Qt.map(Nl),Be=Ht[0],Je=Ht[1],Ln=Ht[2];return qa(Be,Je,Ln,1)}if(Qt.length===4){var ni=Qt.map(Nl),Be=ni[0],Je=ni[1],Ln=ni[2],jn=ni[3];return qa(Be,Je,Ln,jn)}return 0};function rh(Dt,Tt,Qt){return Qt<0&&(Qt+=1),Qt>=1&&(Qt-=1),Qt<1/6?(Tt-Dt)*Qt*6+Dt:Qt<1/2?Tt:Qt<2/3?(Tt-Dt)*6*(2/3-Qt)+Dt:Dt}var hl=function(Dt,Tt){var Qt=Tt.filter(Pu),Ht=Qt[0],Be=Qt[1],Je=Qt[2],Ln=Qt[3],ni=(Ht.type===17?Ja(Ht.number):Bs.parse(Dt,Ht))/(Math.PI*2),jn=Go(Be)?Be.number/100:0,Di=Go(Je)?Je.number/100:0,Qi=typeof Ln!="undefined"&&Go(Ln)?il(Ln,1):1;if(jn===0)return qa(Di*255,Di*255,Di*255,1);var xt=Di<=.5?Di*(jn+1):Di+jn-Di*jn,Rt=Di*2-xt,fe=rh(Rt,xt,ni+1/3),Pe=rh(Rt,xt,ni),$e=rh(Rt,xt,ni-1/3);return qa(fe*255,Pe*255,$e*255,Qi)},Ud={hsl:hl,hsla:hl,rgb:Ac,rgba:Ac},nd=function(Dt,Tt){return rl.parse(Dt,ru.create(Tt).parseComponentValue())},dh={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},zo={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(Dt,Tt){return Tt.map(function(Qt){if(Ua(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"},En=function(Dt,Tt){var Qt=rl.parse(Dt,Tt[0]),Ht=Tt[1];return Ht&&Go(Ht)?{color:Qt,stop:Ht}:{color:Qt,stop:null}},Vi=function(Dt,Tt){var Qt=Dt[0],Ht=Dt[Dt.length-1];Qt.stop===null&&(Qt.stop=Eu),Ht.stop===null&&(Ht.stop=Bh);for(var Be=[],Je=0,Ln=0;Ln<Dt.length;Ln++){var ni=Dt[Ln].stop;if(ni!==null){var jn=il(ni,Tt);jn>Je?Be.push(jn):Be.push(Je),Je=jn}else Be.push(null)}for(var Di=null,Ln=0;Ln<Be.length;Ln++){var Qi=Be[Ln];if(Qi===null)Di===null&&(Di=Ln);else if(Di!==null){for(var xt=Ln-Di,Rt=Be[Di-1],fe=(Qi-Rt)/(xt+1),Pe=1;Pe<=xt;Pe++)Be[Di+Pe-1]=fe*Pe;Di=null}}return Dt.map(function($e,pn){var cn=$e.color;return{color:cn,stop:Math.max(Math.min(1,Be[pn]/Tt),0)}})},aA=function(Dt,Tt,Qt){var Ht=Tt/2,Be=Qt/2,Je=il(Dt[0],Tt)-Ht,Ln=Be-il(Dt[1],Qt);return(Math.atan2(Ln,Je)+Math.PI*2)%(Math.PI*2)},tc=function(Dt,Tt,Qt){var Ht=typeof Dt=="number"?Dt:aA(Dt,Tt,Qt),Be=Math.abs(Tt*Math.sin(Ht))+Math.abs(Qt*Math.cos(Ht)),Je=Tt/2,Ln=Qt/2,ni=Be/2,jn=Math.sin(Ht-Math.PI/2)*ni,Di=Math.cos(Ht-Math.PI/2)*ni;return[Be,Je-Di,Je+Di,Ln-jn,Ln+jn]},Ru=function(Dt,Tt){return Math.sqrt(Dt*Dt+Tt*Tt)},_u=function(Dt,Tt,Qt,Ht,Be){var Je=[[0,0],[0,Tt],[Dt,0],[Dt,Tt]];return Je.reduce(function(Ln,ni){var jn=ni[0],Di=ni[1],Qi=Ru(Qt-jn,Ht-Di);return(Be?Qi<Ln.optimumDistance:Qi>Ln.optimumDistance)?{optimumCorner:ni,optimumDistance:Qi}:Ln},{optimumDistance:Be?1/0:-1/0,optimumCorner:null}).optimumCorner},Ah=function(Dt,Tt,Qt,Ht,Be){var Je=0,Ln=0;switch(Dt.size){case 0:Dt.shape===0?Je=Ln=Math.min(Math.abs(Tt),Math.abs(Tt-Ht),Math.abs(Qt),Math.abs(Qt-Be)):Dt.shape===1&&(Je=Math.min(Math.abs(Tt),Math.abs(Tt-Ht)),Ln=Math.min(Math.abs(Qt),Math.abs(Qt-Be)));break;case 2:if(Dt.shape===0)Je=Ln=Math.min(Ru(Tt,Qt),Ru(Tt,Qt-Be),Ru(Tt-Ht,Qt),Ru(Tt-Ht,Qt-Be));else if(Dt.shape===1){var ni=Math.min(Math.abs(Qt),Math.abs(Qt-Be))/Math.min(Math.abs(Tt),Math.abs(Tt-Ht)),jn=_u(Ht,Be,Tt,Qt,!0),Di=jn[0],Qi=jn[1];Je=Ru(Di-Tt,(Qi-Qt)/ni),Ln=ni*Je}break;case 1:Dt.shape===0?Je=Ln=Math.max(Math.abs(Tt),Math.abs(Tt-Ht),Math.abs(Qt),Math.abs(Qt-Be)):Dt.shape===1&&(Je=Math.max(Math.abs(Tt),Math.abs(Tt-Ht)),Ln=Math.max(Math.abs(Qt),Math.abs(Qt-Be)));break;case 3:if(Dt.shape===0)Je=Ln=Math.max(Ru(Tt,Qt),Ru(Tt,Qt-Be),Ru(Tt-Ht,Qt),Ru(Tt-Ht,Qt-Be));else if(Dt.shape===1){var ni=Math.max(Math.abs(Qt),Math.abs(Qt-Be))/Math.max(Math.abs(Tt),Math.abs(Tt-Ht)),xt=_u(Ht,Be,Tt,Qt,!1),Di=xt[0],Qi=xt[1];Je=Ru(Di-Tt,(Qi-Qt)/ni),Ln=ni*Je}break}return Array.isArray(Dt.size)&&(Je=il(Dt.size[0],Ht),Ln=Dt.size.length===2?il(Dt.size[1],Be):Je),[Je,Ln]},_A=function(Dt,Tt){var Qt=Ja(180),Ht=[];return bu(Tt).forEach(function(Be,Je){if(Je===0){var Ln=Be[0];if(Ln.type===20&&Ln.value==="to"){Qt=Nu(Be);return}else if(ya(Ln)){Qt=Bs.parse(Dt,Ln);return}}var ni=En(Dt,Be);Ht.push(ni)}),{angle:Qt,stops:Ht,type:1}},id=function(Dt,Tt){var Qt=Ja(180),Ht=[];return bu(Tt).forEach(function(Be,Je){if(Je===0){var Ln=Be[0];if(Ln.type===20&&["top","left","right","bottom"].indexOf(Ln.value)!==-1){Qt=Nu(Be);return}else if(ya(Ln)){Qt=(Bs.parse(Dt,Ln)+Ja(270))%Ja(360);return}}var ni=En(Dt,Be);Ht.push(ni)}),{angle:Qt,stops:Ht,type:1}},tl=function(Dt,Tt){var Qt=Ja(180),Ht=[],Be=1,Je=0,Ln=3,ni=[];return bu(Tt).forEach(function(jn,Di){var Qi=jn[0];if(Di===0){if(Ua(Qi)&&Qi.value==="linear"){Be=1;return}else if(Ua(Qi)&&Qi.value==="radial"){Be=2;return}}if(Qi.type===18){if(Qi.name==="from"){var xt=rl.parse(Dt,Qi.values[0]);Ht.push({stop:Eu,color:xt})}else if(Qi.name==="to"){var xt=rl.parse(Dt,Qi.values[0]);Ht.push({stop:Bh,color:xt})}else if(Qi.name==="color-stop"){var Rt=Qi.values.filter(Pu);if(Rt.length===2){var xt=rl.parse(Dt,Rt[1]),fe=Rt[0];Fo(fe)&&Ht.push({stop:{type:16,number:fe.number*100,flags:fe.flags},color:xt})}}}}),Be===1?{angle:(Qt+Ja(180))%Ja(360),stops:Ht,type:Be}:{size:Ln,shape:Je,stops:Ht,position:ni,type:Be}},As="closest-side",Ju="farthest-side",Gu="closest-corner",Bl="farthest-corner",oa="circle",Au="ellipse",fh="cover",wl="contain",Th=function(Dt,Tt){var Qt=0,Ht=3,Be=[],Je=[];return bu(Tt).forEach(function(Ln,ni){var jn=!0;if(ni===0){var Di=!1;jn=Ln.reduce(function(xt,Rt){if(Di)if(Ua(Rt))switch(Rt.value){case"center":return Je.push(vd),xt;case"top":case"left":return Je.push(Eu),xt;case"right":case"bottom":return Je.push(Bh),xt}else(Go(Rt)||tu(Rt))&&Je.push(Rt);else if(Ua(Rt))switch(Rt.value){case oa:return Qt=0,!1;case Au:return Qt=1,!1;case"at":return Di=!0,!1;case As:return Ht=0,!1;case fh:case Ju:return Ht=1,!1;case wl:case Gu:return Ht=2,!1;case Bl:return Ht=3,!1}else if(tu(Rt)||Go(Rt))return Array.isArray(Ht)||(Ht=[]),Ht.push(Rt),!1;return xt},jn)}if(jn){var Qi=En(Dt,Ln);Be.push(Qi)}}),{size:Ht,shape:Qt,stops:Be,position:Je,type:2}},wu=function(Dt,Tt){var Qt=0,Ht=3,Be=[],Je=[];return bu(Tt).forEach(function(Ln,ni){var jn=!0;if(ni===0?jn=Ln.reduce(function(Qi,xt){if(Ua(xt))switch(xt.value){case"center":return Je.push(vd),!1;case"top":case"left":return Je.push(Eu),!1;case"right":case"bottom":return Je.push(Bh),!1}else if(Go(xt)||tu(xt))return Je.push(xt),!1;return Qi},jn):ni===1&&(jn=Ln.reduce(function(Qi,xt){if(Ua(xt))switch(xt.value){case oa:return Qt=0,!1;case Au:return Qt=1,!1;case wl:case As:return Ht=0,!1;case Ju:return Ht=1,!1;case Gu:return Ht=2,!1;case fh:case Bl:return Ht=3,!1}else if(tu(xt)||Go(xt))return Array.isArray(Ht)||(Ht=[]),Ht.push(xt),!1;return Qi},jn)),jn){var Di=En(Dt,Ln);Be.push(Di)}}),{size:Ht,shape:Qt,stops:Be,position:Je,type:2}},yd=function(Dt){return Dt.type===1},Ma=function(Dt){return Dt.type===2},qu={name:"image",parse:function(Dt,Tt){if(Tt.type===22){var Qt={url:Tt.value,type:0};return Dt.cache.addImage(Tt.value),Qt}if(Tt.type===18){var Ht=pl[Tt.name];if(typeof Ht=="undefined")throw new Error('Attempting to parse an unsupported image function "'+Tt.name+'"');return Ht(Dt,Tt.values)}throw new Error("Unsupported image type "+Tt.type)}};function Na(Dt){return!(Dt.type===20&&Dt.value==="none")&&(Dt.type!==18||!!pl[Dt.name])}var pl={"linear-gradient":_A,"-moz-linear-gradient":id,"-ms-linear-gradient":id,"-o-linear-gradient":id,"-webkit-linear-gradient":id,"radial-gradient":Th,"-moz-radial-gradient":wu,"-ms-radial-gradient":wu,"-o-radial-gradient":wu,"-webkit-radial-gradient":wu,"-webkit-gradient":tl},Hl={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(Dt,Tt){if(Tt.length===0)return[];var Qt=Tt[0];return Qt.type===20&&Qt.value==="none"?[]:Tt.filter(function(Ht){return Pu(Ht)&&Na(Ht)}).map(function(Ht){return qu.parse(Dt,Ht)})}},Et={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(Dt,Tt){return Tt.map(function(Qt){if(Ua(Qt))switch(Qt.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},wt={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(Dt,Tt){return bu(Tt).map(function(Qt){return Qt.filter(Go)}).map(Dd)}},Ft={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(Dt,Tt){return bu(Tt).map(function(Qt){return Qt.filter(Ua).map(function(Ht){return Ht.value}).join(" ")}).map(Ut)}},Ut=function(Dt){switch(Dt){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}},se;(function(Dt){Dt.AUTO="auto",Dt.CONTAIN="contain",Dt.COVER="cover"})(se||(se={}));var Vt={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(Dt,Tt){return bu(Tt).map(function(Qt){return Qt.filter(pe)})}},pe=function(Dt){return Ua(Dt)||Go(Dt)},ye=function(Dt){return{name:"border-"+Dt+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Ee=ye("top"),Ye=ye("right"),gn=ye("bottom"),fn=ye("left"),In=function(Dt){return{name:"border-radius-"+Dt,initialValue:"0 0",prefix:!1,type:1,parse:function(Tt,Qt){return Dd(Qt.filter(Go))}}},Qe=In("top-left"),ci=In("top-right"),Yn=In("bottom-right"),mi=In("bottom-left"),Rn=function(Dt){return{name:"border-"+Dt+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(Tt,Qt){switch(Qt){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Ai=Rn("top"),Hi=Rn("right"),sr=Rn("bottom"),Er=Rn("left"),to=function(Dt){return{name:"border-"+Dt+"-width",initialValue:"0",type:0,prefix:!1,parse:function(Tt,Qt){return $a(Qt)?Qt.number:0}}},gr=to("top"),ki=to("right"),yr=to("bottom"),Kr=to("left"),Kn={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Jn={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(Dt,Tt){switch(Tt){case"rtl":return 1;case"ltr":default:return 0}}},Wi={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(Dt,Tt){return Tt.filter(Ua).reduce(function(Qt,Ht){return Qt|ge(Ht.value)},0)}},ge=function(Dt){switch(Dt){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},Ce={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(Dt,Tt){switch(Tt){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Ve={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(Dt,Tt){return Tt.type===20&&Tt.value==="normal"?0:Tt.type===17||Tt.type===15?Tt.number:0}},en;(function(Dt){Dt.NORMAL="normal",Dt.STRICT="strict"})(en||(en={}));var un={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(Dt,Tt){switch(Tt){case"strict":return en.STRICT;case"normal":default:return en.NORMAL}}},hn={name:"line-height",initialValue:"normal",prefix:!1,type:4},Dn=function(Dt,Tt){return Ua(Dt)&&Dt.value==="normal"?1.2*Tt:Dt.type===17?Tt*Dt.number:Go(Dt)?il(Dt,Tt):Tt},qn={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(Dt,Tt){return Tt.type===20&&Tt.value==="none"?null:qu.parse(Dt,Tt)}},Te={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(Dt,Tt){switch(Tt){case"inside":return 0;case"outside":default:return 1}}},ln={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(Dt,Tt){switch(Tt){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}}},mn=function(Dt){return{name:"margin-"+Dt,initialValue:"0",prefix:!1,type:4}},Fn=mn("top"),Xn=mn("right"),li=mn("bottom"),si=mn("left"),Ei={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(Dt,Tt){return Tt.filter(Ua).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}})}},Ii={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(Dt,Tt){switch(Tt){case"break-word":return"break-word";case"normal":default:return"normal"}}},Xi=function(Dt){return{name:"padding-"+Dt,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},ir=Xi("top"),dr=Xi("right"),Xr=Xi("bottom"),$i=Xi("left"),Hn={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(Dt,Tt){switch(Tt){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},no={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(Dt,Tt){switch(Tt){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},ro={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(Dt,Tt){return Tt.length===1&&ou(Tt[0],"none")?[]:bu(Tt).map(function(Qt){for(var Ht={color:dh.TRANSPARENT,offsetX:Eu,offsetY:Eu,blur:Eu},Be=0,Je=0;Je<Qt.length;Je++){var Ln=Qt[Je];tu(Ln)?(Be===0?Ht.offsetX=Ln:Be===1?Ht.offsetY=Ln:Ht.blur=Ln,Be++):Ht.color=rl.parse(Dt,Ln)}return Ht})}},tr={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(Dt,Tt){switch(Tt){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},pr={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(Dt,Tt){if(Tt.type===20&&Tt.value==="none")return null;if(Tt.type===18){var Qt=Nr[Tt.name];if(typeof Qt=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+Tt.name+'"');return Qt(Tt.values)}return null}},Ar=function(Dt){var Tt=Dt.filter(function(Qt){return Qt.type===17}).map(function(Qt){return Qt.number});return Tt.length===6?Tt:null},qi=function(Dt){var Tt=Dt.filter(function(jn){return jn.type===17}).map(function(jn){return jn.number}),Qt=Tt[0],Ht=Tt[1];Tt[2],Tt[3];var Be=Tt[4],Je=Tt[5];Tt[6],Tt[7],Tt[8],Tt[9],Tt[10],Tt[11];var Ln=Tt[12],ni=Tt[13];return Tt[14],Tt[15],Tt.length===16?[Qt,Ht,Be,Je,Ln,ni]:null},Nr={matrix:Ar,matrix3d:qi},oo={type:16,number:50,flags:Oi},po=[oo,oo],So={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(Dt,Tt){var Qt=Tt.filter(Go);return Qt.length!==2?po:[Qt[0],Qt[1]]}},Qr={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(Dt,Tt){switch(Tt){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Xo;(function(Dt){Dt.NORMAL="normal",Dt.BREAK_ALL="break-all",Dt.KEEP_ALL="keep-all"})(Xo||(Xo={}));for(var Po={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(Dt,Tt){switch(Tt){case"break-all":return Xo.BREAK_ALL;case"keep-all":return Xo.KEEP_ALL;case"normal":default:return Xo.NORMAL}}},hs={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(Dt,Tt){if(Tt.type===20)return{auto:!0,order:0};if(Fo(Tt))return{auto:!1,order:Tt.number};throw new Error("Invalid z-index number parsed")}},so={name:"time",parse:function(Dt,Tt){if(Tt.type===15)switch(Tt.unit.toLowerCase()){case"s":return 1e3*Tt.number;case"ms":return Tt.number}throw new Error("Unsupported time type")}},Pa={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(Dt,Tt){return Fo(Tt)?Tt.number:1}},ks={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(Dt,Tt){return Tt.filter(Ua).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})}},Eo={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(Dt,Tt){var Qt=[],Ht=[];return Tt.forEach(function(Be){switch(Be.type){case 20:case 0:Qt.push(Be.value);break;case 17:Qt.push(Be.number.toString());break;case 4:Ht.push(Qt.join(" ")),Qt.length=0;break}}),Qt.length&&Ht.push(Qt.join(" ")),Ht.map(function(Be){return Be.indexOf(" ")===-1?Be:"'"+Be+"'"})}},Fs={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Va={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(Dt,Tt){if(Fo(Tt))return Tt.number;if(Ua(Tt))switch(Tt.value){case"bold":return 700;case"normal":default:return 400}return 400}},Ds={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(Dt,Tt){return Tt.filter(Ua).map(function(Qt){return Qt.value})}},Il={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(Dt,Tt){switch(Tt){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},wo=function(Dt,Tt){return(Dt&Tt)!==0},ss={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(Dt,Tt){if(Tt.length===0)return[];var Qt=Tt[0];return Qt.type===20&&Qt.value==="none"?[]:Tt}},cs={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(Dt,Tt){if(Tt.length===0)return null;var Qt=Tt[0];if(Qt.type===20&&Qt.value==="none")return null;for(var Ht=[],Be=Tt.filter(Zl),Je=0;Je<Be.length;Je++){var Ln=Be[Je],ni=Be[Je+1];if(Ln.type===20){var jn=ni&&Fo(ni)?ni.number:1;Ht.push({counter:Ln.value,increment:jn})}}return Ht}},Lo={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(Dt,Tt){if(Tt.length===0)return[];for(var Qt=[],Ht=Tt.filter(Zl),Be=0;Be<Ht.length;Be++){var Je=Ht[Be],Ln=Ht[Be+1];if(Ua(Je)&&Je.value!=="none"){var ni=Ln&&Fo(Ln)?Ln.number:0;Qt.push({counter:Je.value,reset:ni})}}return Qt}},ts={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(Dt,Tt){return Tt.filter($a).map(function(Qt){return so.parse(Dt,Qt)})}},xo={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(Dt,Tt){if(Tt.length===0)return null;var Qt=Tt[0];if(Qt.type===20&&Qt.value==="none")return null;var Ht=[],Be=Tt.filter(Ya);if(Be.length%2!==0)return null;for(var Je=0;Je<Be.length;Je+=2){var Ln=Be[Je].value,ni=Be[Je+1].value;Ht.push({open:Ln,close:ni})}return Ht}},Ls=function(Dt,Tt,Qt){if(!Dt)return"";var Ht=Dt[Math.min(Tt,Dt.length-1)];return Ht?Qt?Ht.open:Ht.close:""},Rs={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(Dt,Tt){return Tt.length===1&&ou(Tt[0],"none")?[]:bu(Tt).map(function(Qt){for(var Ht={color:255,offsetX:Eu,offsetY:Eu,blur:Eu,spread:Eu,inset:!1},Be=0,Je=0;Je<Qt.length;Je++){var Ln=Qt[Je];ou(Ln,"inset")?Ht.inset=!0:tu(Ln)?(Be===0?Ht.offsetX=Ln:Be===1?Ht.offsetY=Ln:Be===2?Ht.blur=Ln:Ht.spread=Ln,Be++):Ht.color=rl.parse(Dt,Ln)}return Ht})}},ea={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(Dt,Tt){var Qt=[0,1,2],Ht=[];return Tt.filter(Ua).forEach(function(Be){switch(Be.value){case"stroke":Ht.push(1);break;case"fill":Ht.push(0);break;case"markers":Ht.push(2);break}}),Qt.forEach(function(Be){Ht.indexOf(Be)===-1&&Ht.push(Be)}),Ht}},Ql={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},ds={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(Dt,Tt){return $a(Tt)?Tt.number:0}},Xl=function(){function Dt(Tt,Qt){var Ht,Be;this.animationDuration=ho(Tt,ts,Qt.animationDuration),this.backgroundClip=ho(Tt,zo,Qt.backgroundClip),this.backgroundColor=ho(Tt,sA,Qt.backgroundColor),this.backgroundImage=ho(Tt,Hl,Qt.backgroundImage),this.backgroundOrigin=ho(Tt,Et,Qt.backgroundOrigin),this.backgroundPosition=ho(Tt,wt,Qt.backgroundPosition),this.backgroundRepeat=ho(Tt,Ft,Qt.backgroundRepeat),this.backgroundSize=ho(Tt,Vt,Qt.backgroundSize),this.borderTopColor=ho(Tt,Ee,Qt.borderTopColor),this.borderRightColor=ho(Tt,Ye,Qt.borderRightColor),this.borderBottomColor=ho(Tt,gn,Qt.borderBottomColor),this.borderLeftColor=ho(Tt,fn,Qt.borderLeftColor),this.borderTopLeftRadius=ho(Tt,Qe,Qt.borderTopLeftRadius),this.borderTopRightRadius=ho(Tt,ci,Qt.borderTopRightRadius),this.borderBottomRightRadius=ho(Tt,Yn,Qt.borderBottomRightRadius),this.borderBottomLeftRadius=ho(Tt,mi,Qt.borderBottomLeftRadius),this.borderTopStyle=ho(Tt,Ai,Qt.borderTopStyle),this.borderRightStyle=ho(Tt,Hi,Qt.borderRightStyle),this.borderBottomStyle=ho(Tt,sr,Qt.borderBottomStyle),this.borderLeftStyle=ho(Tt,Er,Qt.borderLeftStyle),this.borderTopWidth=ho(Tt,gr,Qt.borderTopWidth),this.borderRightWidth=ho(Tt,ki,Qt.borderRightWidth),this.borderBottomWidth=ho(Tt,yr,Qt.borderBottomWidth),this.borderLeftWidth=ho(Tt,Kr,Qt.borderLeftWidth),this.boxShadow=ho(Tt,Rs,Qt.boxShadow),this.color=ho(Tt,Kn,Qt.color),this.direction=ho(Tt,Jn,Qt.direction),this.display=ho(Tt,Wi,Qt.display),this.float=ho(Tt,Ce,Qt.cssFloat),this.fontFamily=ho(Tt,Eo,Qt.fontFamily),this.fontSize=ho(Tt,Fs,Qt.fontSize),this.fontStyle=ho(Tt,Il,Qt.fontStyle),this.fontVariant=ho(Tt,Ds,Qt.fontVariant),this.fontWeight=ho(Tt,Va,Qt.fontWeight),this.letterSpacing=ho(Tt,Ve,Qt.letterSpacing),this.lineBreak=ho(Tt,un,Qt.lineBreak),this.lineHeight=ho(Tt,hn,Qt.lineHeight),this.listStyleImage=ho(Tt,qn,Qt.listStyleImage),this.listStylePosition=ho(Tt,Te,Qt.listStylePosition),this.listStyleType=ho(Tt,ln,Qt.listStyleType),this.marginTop=ho(Tt,Fn,Qt.marginTop),this.marginRight=ho(Tt,Xn,Qt.marginRight),this.marginBottom=ho(Tt,li,Qt.marginBottom),this.marginLeft=ho(Tt,si,Qt.marginLeft),this.opacity=ho(Tt,Pa,Qt.opacity);var Je=ho(Tt,Ei,Qt.overflow);this.overflowX=Je[0],this.overflowY=Je[Je.length>1?1:0],this.overflowWrap=ho(Tt,Ii,Qt.overflowWrap),this.paddingTop=ho(Tt,ir,Qt.paddingTop),this.paddingRight=ho(Tt,dr,Qt.paddingRight),this.paddingBottom=ho(Tt,Xr,Qt.paddingBottom),this.paddingLeft=ho(Tt,$i,Qt.paddingLeft),this.paintOrder=ho(Tt,ea,Qt.paintOrder),this.position=ho(Tt,no,Qt.position),this.textAlign=ho(Tt,Hn,Qt.textAlign),this.textDecorationColor=ho(Tt,ks,(Ht=Qt.textDecorationColor)!==null&&Ht!==void 0?Ht:Qt.color),this.textDecorationLine=ho(Tt,Ps,(Be=Qt.textDecorationLine)!==null&&Be!==void 0?Be:Qt.textDecoration),this.textShadow=ho(Tt,ro,Qt.textShadow),this.textTransform=ho(Tt,tr,Qt.textTransform),this.transform=ho(Tt,pr,Qt.transform),this.transformOrigin=ho(Tt,So,Qt.transformOrigin),this.visibility=ho(Tt,Qr,Qt.visibility),this.webkitTextStrokeColor=ho(Tt,Ql,Qt.webkitTextStrokeColor),this.webkitTextStrokeWidth=ho(Tt,ds,Qt.webkitTextStrokeWidth),this.wordBreak=ho(Tt,Po,Qt.wordBreak),this.zIndex=ho(Tt,hs,Qt.zIndex)}return Dt.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},Dt.prototype.isTransparent=function(){return Ha(this.backgroundColor)},Dt.prototype.isTransformed=function(){return this.transform!==null},Dt.prototype.isPositioned=function(){return this.position!==0},Dt.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},Dt.prototype.isFloating=function(){return this.float!==0},Dt.prototype.isInlineLevel=function(){return wo(this.display,4)||wo(this.display,33554432)||wo(this.display,268435456)||wo(this.display,536870912)||wo(this.display,67108864)||wo(this.display,134217728)},Dt}(),fa=function(){function Dt(Tt,Qt){this.content=ho(Tt,ss,Qt.content),this.quotes=ho(Tt,xo,Qt.quotes)}return Dt}(),ml=function(){function Dt(Tt,Qt){this.counterIncrement=ho(Tt,cs,Qt.counterIncrement),this.counterReset=ho(Tt,Lo,Qt.counterReset)}return Dt}(),ho=function(Dt,Tt,Qt){var Ht=new Cl,Be=Qt!==null&&typeof Qt!="undefined"?Qt.toString():Tt.initialValue;Ht.write(Be);var Je=new ru(Ht.read());switch(Tt.type){case 2:var Ln=Je.parseComponentValue();return Tt.parse(Dt,Ua(Ln)?Ln.value:Tt.initialValue);case 0:return Tt.parse(Dt,Je.parseComponentValue());case 1:return Tt.parse(Dt,Je.parseComponentValues());case 4:return Je.parseComponentValue();case 3:switch(Tt.format){case"angle":return Bs.parse(Dt,Je.parseComponentValue());case"color":return rl.parse(Dt,Je.parseComponentValue());case"image":return qu.parse(Dt,Je.parseComponentValue());case"length":var ni=Je.parseComponentValue();return tu(ni)?ni:Eu;case"length-percentage":var jn=Je.parseComponentValue();return Go(jn)?jn:Eu;case"time":return so.parse(Dt,Je.parseComponentValue())}break}},Oa="data-html2canvas-debug",Iu=function(Dt){var Tt=Dt.getAttribute(Oa);switch(Tt){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},wa=function(Dt,Tt){var Qt=Iu(Dt);return Qt===1||Tt===Qt},na=function(){function Dt(Tt,Qt){if(this.context=Tt,this.textNodes=[],this.elements=[],this.flags=0,wa(Qt,3))debugger;this.styles=new Xl(Tt,window.getComputedStyle(Qt,null)),Hr(Qt)&&(this.styles.animationDuration.some(function(Ht){return Ht>0})&&(Qt.style.animationDuration="0s"),this.styles.transform!==null&&(Qt.style.transform="none")),this.bounds=Zt(this.context,Qt),wa(Qt,4)&&(this.flags|=16)}return Dt}(),Ea="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Za="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ol=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Hs=0;Hs<Za.length;Hs++)ol[Za.charCodeAt(Hs)]=Hs;for(var Fa=function(Dt){var Tt=Dt.length*.75,Qt=Dt.length,Ht,Be=0,Je,Ln,ni,jn;Dt[Dt.length-1]==="="&&(Tt--,Dt[Dt.length-2]==="="&&Tt--);var Di=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(Tt):new Array(Tt),Qi=Array.isArray(Di)?Di:new Uint8Array(Di);for(Ht=0;Ht<Qt;Ht+=4)Je=ol[Dt.charCodeAt(Ht)],Ln=ol[Dt.charCodeAt(Ht+1)],ni=ol[Dt.charCodeAt(Ht+2)],jn=ol[Dt.charCodeAt(Ht+3)],Qi[Be++]=Je<<2|Ln>>4,Qi[Be++]=(Ln&15)<<4|ni>>2,Qi[Be++]=(ni&3)<<6|jn&63;return Di},El=function(Dt){for(var Tt=Dt.length,Qt=[],Ht=0;Ht<Tt;Ht+=2)Qt.push(Dt[Ht+1]<<8|Dt[Ht]);return Qt},ku=function(Dt){for(var Tt=Dt.length,Qt=[],Ht=0;Ht<Tt;Ht+=4)Qt.push(Dt[Ht+3]<<24|Dt[Ht+2]<<16|Dt[Ht+1]<<8|Dt[Ht]);return Qt},fu=5,Tu=11,Wu=2,oh=Tu-fu,sh=65536>>fu,Qa=1<<fu,xu=Qa-1,xl=1024>>fu,cl=sh+xl,gh=cl,ec=32,Ph=gh+ec,Oh=65536>>Tu,fc=1<<oh,Vu=fc-1,La=function(Dt,Tt,Qt){return Dt.slice?Dt.slice(Tt,Qt):new Uint16Array(Array.prototype.slice.call(Dt,Tt,Qt))},ia=function(Dt,Tt,Qt){return Dt.slice?Dt.slice(Tt,Qt):new Uint32Array(Array.prototype.slice.call(Dt,Tt,Qt))},eu=function(Dt,Tt){var Qt=Fa(Dt),Ht=Array.isArray(Qt)?ku(Qt):new Uint32Array(Qt),Be=Array.isArray(Qt)?El(Qt):new Uint16Array(Qt),Je=24,Ln=La(Be,Je/2,Ht[4]/2),ni=Ht[5]===2?La(Be,(Je+Ht[4])/2):ia(Ht,Math.ceil((Je+Ht[4])/4));return new vl(Ht[0],Ht[1],Ht[2],Ht[3],Ln,ni)},vl=function(){function Dt(Tt,Qt,Ht,Be,Je,Ln){this.initialValue=Tt,this.errorValue=Qt,this.highStart=Ht,this.highValueIndex=Be,this.index=Je,this.data=Ln}return Dt.prototype.get=function(Tt){var Qt;if(Tt>=0){if(Tt<55296||Tt>56319&&Tt<=65535)return Qt=this.index[Tt>>fu],Qt=(Qt<<Wu)+(Tt&xu),this.data[Qt];if(Tt<=65535)return Qt=this.index[sh+(Tt-55296>>fu)],Qt=(Qt<<Wu)+(Tt&xu),this.data[Qt];if(Tt<this.highStart)return Qt=Ph-Oh+(Tt>>Tu),Qt=this.index[Qt],Qt+=Tt>>fu&Vu,Qt=this.index[Qt],Qt=(Qt<<Wu)+(Tt&xu),this.data[Qt];if(Tt<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Dt}(),ga="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nu=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Hu=0;Hu<ga.length;Hu++)nu[ga.charCodeAt(Hu)]=Hu;var Ou=1,Wc=2,Un=3,nc=4,Dh=5,EA=7,Vc=8,bc=9,rd=10,HA=11,gu=12,wd=13,Rd=14,od=15,Ec=function(Dt){for(var Tt=[],Qt=0,Ht=Dt.length;Qt<Ht;){var Be=Dt.charCodeAt(Qt++);if(Be>=55296&&Be<=56319&&Qt<Ht){var Je=Dt.charCodeAt(Qt++);(Je&64512)===56320?Tt.push(((Be&1023)<<10)+(Je&1023)+65536):(Tt.push(Be),Qt--)}else Tt.push(Be)}return Tt},_d=function(){for(var Dt=[],Tt=0;Tt<arguments.length;Tt++)Dt[Tt]=arguments[Tt];if(String.fromCodePoint)return String.fromCodePoint.apply(String,Dt);var Qt=Dt.length;if(!Qt)return"";for(var Ht=[],Be=-1,Je="";++Be<Qt;){var Ln=Dt[Be];Ln<=65535?Ht.push(Ln):(Ln-=65536,Ht.push((Ln>>10)+55296,Ln%1024+56320)),(Be+1===Qt||Ht.length>16384)&&(Je+=String.fromCharCode.apply(String,Ht),Ht.length=0)}return Je},xd=eu(Ea),ah="\xD7",kl="\xF7",Sd=function(Dt){return xd.get(Dt)},lA=function(Dt,Tt,Qt){var Ht=Qt-2,Be=Tt[Ht],Je=Tt[Qt-1],Ln=Tt[Qt];if(Je===Wc&&Ln===Un)return ah;if(Je===Wc||Je===Un||Je===nc||Ln===Wc||Ln===Un||Ln===nc)return kl;if(Je===Vc&&[Vc,bc,HA,gu].indexOf(Ln)!==-1||(Je===HA||Je===bc)&&(Ln===bc||Ln===rd)||(Je===gu||Je===rd)&&Ln===rd||Ln===wd||Ln===Dh||Ln===EA||Je===Ou)return ah;if(Je===wd&&Ln===Rd){for(;Be===Dh;)Be=Tt[--Ht];if(Be===Rd)return ah}if(Je===od&&Ln===od){for(var ni=0;Be===od;)ni++,Be=Tt[--Ht];if(ni%2===0)return ah}return kl},Xs=function(Dt){var Tt=Ec(Dt),Qt=Tt.length,Ht=0,Be=0,Je=Tt.map(Sd);return{next:function(){if(Ht>=Qt)return{done:!0,value:null};for(var Ln=ah;Ht<Qt&&(Ln=lA(Tt,Je,++Ht))===ah;);if(Ln!==ah||Ht===Qt){var ni=_d.apply(null,Tt.slice(Be,Ht));return Be=Ht,{value:ni,done:!1}}return{done:!0,value:null}}}},Zc=function(Dt){for(var Tt=Xs(Dt),Qt=[],Ht;!(Ht=Tt.next()).done;)Ht.value&&Qt.push(Ht.value.slice());return Qt},Cd=function(Dt){var Tt=123;if(Dt.createRange){var Qt=Dt.createRange();if(Qt.getBoundingClientRect){var Ht=Dt.createElement("boundtest");Ht.style.height=Tt+"px",Ht.style.display="block",Dt.body.appendChild(Ht),Qt.selectNode(Ht);var Be=Qt.getBoundingClientRect(),Je=Math.round(Be.height);if(Dt.body.removeChild(Ht),Je===Tt)return!0}}return!1},ph=function(Dt){var Tt=Dt.createElement("boundtest");Tt.style.width="50px",Tt.style.display="block",Tt.style.fontSize="12px",Tt.style.letterSpacing="0px",Tt.style.wordSpacing="0px",Dt.body.appendChild(Tt);var Qt=Dt.createRange();Tt.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var Ht=Tt.firstChild,Be=jt(Ht.data).map(function(jn){return qt(jn)}),Je=0,Ln={},ni=Be.every(function(jn,Di){Qt.setStart(Ht,Je),Qt.setEnd(Ht,Je+jn.length);var Qi=Qt.getBoundingClientRect();Je+=jn.length;var xt=Qi.x>Ln.x||Qi.y>Ln.y;return Ln=Qi,Di===0?!0:xt});return Dt.body.removeChild(Tt),ni},th=function(){return typeof new Image().crossOrigin!="undefined"},Hd=function(){return typeof new XMLHttpRequest().responseType=="string"},sd=function(Dt){var Tt=new Image,Qt=Dt.createElement("canvas"),Ht=Qt.getContext("2d");if(!Ht)return!1;Tt.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{Ht.drawImage(Tt,0,0),Qt.toDataURL()}catch(Be){return!1}return!0},eh=function(Dt){return Dt[0]===0&&Dt[1]===255&&Dt[2]===0&&Dt[3]===255},Bd=function(Dt){var Tt=Dt.createElement("canvas"),Qt=100;Tt.width=Qt,Tt.height=Qt;var Ht=Tt.getContext("2d");if(!Ht)return Promise.reject(!1);Ht.fillStyle="rgb(0, 255, 0)",Ht.fillRect(0,0,Qt,Qt);var Be=new Image,Je=Tt.toDataURL();Be.src=Je;var Ln=Pd(Qt,Qt,0,0,Be);return Ht.fillStyle="red",Ht.fillRect(0,0,Qt,Qt),Qd(Ln).then(function(ni){Ht.drawImage(ni,0,0);var jn=Ht.getImageData(0,0,Qt,Qt).data;Ht.fillStyle="red",Ht.fillRect(0,0,Qt,Qt);var Di=Dt.createElement("div");return Di.style.backgroundImage="url("+Je+")",Di.style.height=Qt+"px",eh(jn)?Qd(Pd(Qt,Qt,0,0,Di)):Promise.reject(!1)}).then(function(ni){return Ht.drawImage(ni,0,0),eh(Ht.getImageData(0,0,Qt,Qt).data)}).catch(function(){return!1})},Pd=function(Dt,Tt,Qt,Ht,Be){var Je="http://www.w3.org/2000/svg",Ln=document.createElementNS(Je,"svg"),ni=document.createElementNS(Je,"foreignObject");return Ln.setAttributeNS(null,"width",Dt.toString()),Ln.setAttributeNS(null,"height",Tt.toString()),ni.setAttributeNS(null,"width","100%"),ni.setAttributeNS(null,"height","100%"),ni.setAttributeNS(null,"x",Qt.toString()),ni.setAttributeNS(null,"y",Ht.toString()),ni.setAttributeNS(null,"externalResourcesRequired","true"),Ln.appendChild(ni),ni.appendChild(Be),Ln},Qd=function(Dt){return new Promise(function(Tt,Qt){var Ht=new Image;Ht.onload=function(){return Tt(Ht)},Ht.onerror=Qt,Ht.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(Dt))})},$l={get SUPPORT_RANGE_BOUNDS(){var Dt=Cd(document);return Object.defineProperty($l,"SUPPORT_RANGE_BOUNDS",{value:Dt}),Dt},get SUPPORT_WORD_BREAKING(){var Dt=$l.SUPPORT_RANGE_BOUNDS&&ph(document);return Object.defineProperty($l,"SUPPORT_WORD_BREAKING",{value:Dt}),Dt},get SUPPORT_SVG_DRAWING(){var Dt=sd(document);return Object.defineProperty($l,"SUPPORT_SVG_DRAWING",{value:Dt}),Dt},get SUPPORT_FOREIGNOBJECT_DRAWING(){var Dt=typeof Array.from=="function"&&typeof window.fetch=="function"?Bd(document):Promise.resolve(!1);return Object.defineProperty($l,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:Dt}),Dt},get SUPPORT_CORS_IMAGES(){var Dt=th();return Object.defineProperty($l,"SUPPORT_CORS_IMAGES",{value:Dt}),Dt},get SUPPORT_RESPONSE_TYPE(){var Dt=Hd();return Object.defineProperty($l,"SUPPORT_RESPONSE_TYPE",{value:Dt}),Dt},get SUPPORT_CORS_XHR(){var Dt="withCredentials"in new XMLHttpRequest;return Object.defineProperty($l,"SUPPORT_CORS_XHR",{value:Dt}),Dt},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var Dt=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty($l,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:Dt}),Dt}},iu=function(){function Dt(Tt,Qt){this.text=Tt,this.bounds=Qt}return Dt}(),Fc=function(Dt,Tt,Qt,Ht){var Be=mh(Tt,Qt),Je=[],Ln=0;return Be.forEach(function(ni){if(Qt.textDecorationLine.length||ni.trim().length>0)if($l.SUPPORT_RANGE_BOUNDS){var jn=xa(Ht,Ln,ni.length).getClientRects();if(jn.length>1){var Di=sl(ni),Qi=0;Di.forEach(function(Rt){Je.push(new iu(Rt,ee.fromDOMRectList(Dt,xa(Ht,Qi+Ln,Rt.length).getClientRects()))),Qi+=Rt.length})}else Je.push(new iu(ni,ee.fromDOMRectList(Dt,jn)))}else{var xt=Ht.splitText(ni.length);Je.push(new iu(ni,su(Dt,Ht))),Ht=xt}else $l.SUPPORT_RANGE_BOUNDS||(Ht=Ht.splitText(ni.length));Ln+=ni.length}),Je},su=function(Dt,Tt){var Qt=Tt.ownerDocument;if(Qt){var Ht=Qt.createElement("html2canvaswrapper");Ht.appendChild(Tt.cloneNode(!0));var Be=Tt.parentNode;if(Be){Be.replaceChild(Ht,Tt);var Je=Zt(Dt,Ht);return Ht.firstChild&&Be.replaceChild(Ht.firstChild,Ht),Je}}return ee.EMPTY},xa=function(Dt,Tt,Qt){var Ht=Dt.ownerDocument;if(!Ht)throw new Error("Node has no owner document");var Be=Ht.createRange();return Be.setStart(Dt,Tt),Be.setEnd(Dt,Tt+Qt),Be},sl=function(Dt){if($l.SUPPORT_NATIVE_TEXT_SEGMENTATION){var Tt=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(Tt.segment(Dt)).map(function(Qt){return Qt.segment})}return Zc(Dt)},Su=function(Dt,Tt){if($l.SUPPORT_NATIVE_TEXT_SEGMENTATION){var Qt=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(Qt.segment(Dt)).map(function(Ht){return Ht.segment})}return zd(Dt,Tt)},mh=function(Dt,Tt){return Tt.letterSpacing!==0?sl(Dt):Su(Dt,Tt)},vh=[32,160,4961,65792,65793,4153,4241],zd=function(Dt,Tt){for(var Qt=yn(Dt,{lineBreak:Tt.lineBreak,wordBreak:Tt.overflowWrap==="break-word"?"break-word":Tt.wordBreak}),Ht=[],Be,Je=function(){if(Be.value){var Ln=Be.value.slice(),ni=jt(Ln),jn="";ni.forEach(function(Di){vh.indexOf(Di)===-1?jn+=qt(Di):(jn.length&&Ht.push(jn),Ht.push(qt(Di)),jn="")}),jn.length&&Ht.push(jn)}};!(Be=Qt.next()).done;)Je();return Ht},Lc=function(){function Dt(Tt,Qt,Ht){this.text=jh(Qt.data,Ht.textTransform),this.textBounds=Fc(Tt,this.text,Ht,Qt)}return Dt}(),jh=function(Dt,Tt){switch(Tt){case 1:return Dt.toLowerCase();case 3:return Dt.replace(Zu,Mc);case 2:return Dt.toUpperCase();default:return Dt}},Zu=/(^|\s|:|-|\(|\))([a-z])/g,Mc=function(Dt,Tt,Qt){return Dt.length>0?Tt+Qt.toUpperCase():Dt},Xc=function(Dt){bt(Tt,Dt);function Tt(Qt,Ht){var Be=Dt.call(this,Qt,Ht)||this;return Be.src=Ht.currentSrc||Ht.src,Be.intrinsicWidth=Ht.naturalWidth,Be.intrinsicHeight=Ht.naturalHeight,Be.context.cache.addImage(Be.src),Be}return Tt}(na),ic=function(Dt){bt(Tt,Dt);function Tt(Qt,Ht){var Be=Dt.call(this,Qt,Ht)||this;return Be.canvas=Ht,Be.intrinsicWidth=Ht.width,Be.intrinsicHeight=Ht.height,Be}return Tt}(na),Kd=function(Dt){bt(Tt,Dt);function Tt(Qt,Ht){var Be=Dt.call(this,Qt,Ht)||this,Je=new XMLSerializer,Ln=Zt(Qt,Ht);return Ht.setAttribute("width",Ln.width+"px"),Ht.setAttribute("height",Ln.height+"px"),Be.svg="data:image/svg+xml,"+encodeURIComponent(Je.serializeToString(Ht)),Be.intrinsicWidth=Ht.width.baseVal.value,Be.intrinsicHeight=Ht.height.baseVal.value,Be.context.cache.addImage(Be.svg),Be}return Tt}(na),gc=function(Dt){bt(Tt,Dt);function Tt(Qt,Ht){var Be=Dt.call(this,Qt,Ht)||this;return Be.value=Ht.value,Be}return Tt}(na),FA=function(Dt){bt(Tt,Dt);function Tt(Qt,Ht){var Be=Dt.call(this,Qt,Ht)||this;return Be.start=Ht.start,Be.reversed=typeof Ht.reversed=="boolean"&&Ht.reversed===!0,Be}return Tt}(na),uA=[{type:15,flags:0,unit:"px",number:3}],lf=[{type:16,flags:0,number:50}],rc=function(Dt){return Dt.width>Dt.height?new ee(Dt.left+(Dt.width-Dt.height)/2,Dt.top,Dt.height,Dt.height):Dt.width<Dt.height?new ee(Dt.left,Dt.top+(Dt.height-Dt.width)/2,Dt.width,Dt.width):Dt},QA=function(Dt){var Tt=Dt.type===ad?new Array(Dt.value.length+1).join("\u2022"):Dt.value;return Tt.length===0?Dt.placeholder||"":Tt},Gd="checkbox",pc="radio",ad="password",hA=707406591,Uh=function(Dt){bt(Tt,Dt);function Tt(Qt,Ht){var Be=Dt.call(this,Qt,Ht)||this;switch(Be.type=Ht.type.toLowerCase(),Be.checked=Ht.checked,Be.value=QA(Ht),(Be.type===Gd||Be.type===pc)&&(Be.styles.backgroundColor=3739148031,Be.styles.borderTopColor=Be.styles.borderRightColor=Be.styles.borderBottomColor=Be.styles.borderLeftColor=2779096575,Be.styles.borderTopWidth=Be.styles.borderRightWidth=Be.styles.borderBottomWidth=Be.styles.borderLeftWidth=1,Be.styles.borderTopStyle=Be.styles.borderRightStyle=Be.styles.borderBottomStyle=Be.styles.borderLeftStyle=1,Be.styles.backgroundClip=[0],Be.styles.backgroundOrigin=[0],Be.bounds=rc(Be.bounds)),Be.type){case Gd:Be.styles.borderTopRightRadius=Be.styles.borderTopLeftRadius=Be.styles.borderBottomRightRadius=Be.styles.borderBottomLeftRadius=uA;break;case pc:Be.styles.borderTopRightRadius=Be.styles.borderTopLeftRadius=Be.styles.borderBottomRightRadius=Be.styles.borderBottomLeftRadius=lf;break}return Be}return Tt}(na),zA=function(Dt){bt(Tt,Dt);function Tt(Qt,Ht){var Be=Dt.call(this,Qt,Ht)||this,Je=Ht.options[Ht.selectedIndex||0];return Be.value=Je&&Je.text||"",Be}return Tt}(na),bd=function(Dt){bt(Tt,Dt);function Tt(Qt,Ht){var Be=Dt.call(this,Qt,Ht)||this;return Be.value=Ht.value,Be}return Tt}(na),Wd=function(Dt){bt(Tt,Dt);function Tt(Qt,Ht){var Be=Dt.call(this,Qt,Ht)||this;Be.src=Ht.src,Be.width=parseInt(Ht.width,10)||0,Be.height=parseInt(Ht.height,10)||0,Be.backgroundColor=Be.styles.backgroundColor;try{if(Ht.contentWindow&&Ht.contentWindow.document&&Ht.contentWindow.document.documentElement){Be.tree=Ae(Qt,Ht.contentWindow.document.documentElement);var Je=Ht.contentWindow.document.documentElement?nd(Qt,getComputedStyle(Ht.contentWindow.document.documentElement).backgroundColor):dh.TRANSPARENT,Ln=Ht.contentWindow.document.body?nd(Qt,getComputedStyle(Ht.contentWindow.document.body).backgroundColor):dh.TRANSPARENT;Be.backgroundColor=Ha(Je)?Ha(Ln)?Be.styles.backgroundColor:Ln:Je}}catch(ni){}return Be}return Tt}(na),LA=["OL","UL","MENU"],Nc=function(Dt,Tt,Qt,Ht){for(var Be=Tt.firstChild,Je=void 0;Be;Be=Je)if(Je=Be.nextSibling,_i(Be)&&Be.data.trim().length>0)Qt.textNodes.push(new Lc(Dt,Be,Qt.styles));else if(lr(Be))if(cA(Be)&&Be.assignedNodes)Be.assignedNodes().forEach(function(ni){return Nc(Dt,ni,Qt,Ht)});else{var Ln=KA(Dt,Be);Ln.styles.isVisible()&&(vn(Be,Ln,Ht)?Ln.flags|=4:vi(Ln.styles)&&(Ln.flags|=2),LA.indexOf(Be.tagName)!==-1&&(Ln.flags|=8),Qt.elements.push(Ln),Be.slot,Be.shadowRoot?Nc(Dt,Be.shadowRoot,Ln,Ht):!oc(Be)&&!Sl(Be)&&!Vd(Be)&&Nc(Dt,Be,Ln,Ht))}},KA=function(Dt,Tt){return dl(Tt)?new Xc(Dt,Tt):au(Tt)?new ic(Dt,Tt):Sl(Tt)?new Kd(Dt,Tt):fs(Tt)?new gc(Dt,Tt):Ws(Tt)?new FA(Dt,Tt):Da(Tt)?new Uh(Dt,Tt):Vd(Tt)?new zA(Dt,Tt):oc(Tt)?new bd(Dt,Tt):Fl(Tt)?new Wd(Dt,Tt):new na(Dt,Tt)},Ae=function(Dt,Tt){var Qt=KA(Dt,Tt);return Qt.flags|=4,Nc(Dt,Tt,Qt,Qt),Qt},vn=function(Dt,Tt,Qt){return Tt.styles.isPositionedWithZIndex()||Tt.styles.opacity<1||Tt.styles.isTransformed()||js(Dt)&&Qt.styles.isTransparent()},vi=function(Dt){return Dt.isPositioned()||Dt.isFloating()},_i=function(Dt){return Dt.nodeType===Node.TEXT_NODE},lr=function(Dt){return Dt.nodeType===Node.ELEMENT_NODE},Hr=function(Dt){return lr(Dt)&&typeof Dt.style!="undefined"&&!fo(Dt)},fo=function(Dt){return typeof Dt.className=="object"},fs=function(Dt){return Dt.tagName==="LI"},Ws=function(Dt){return Dt.tagName==="OL"},Da=function(Dt){return Dt.tagName==="INPUT"},ba=function(Dt){return Dt.tagName==="HTML"},Sl=function(Dt){return Dt.tagName==="svg"},js=function(Dt){return Dt.tagName==="BODY"},au=function(Dt){return Dt.tagName==="CANVAS"},pu=function(Dt){return Dt.tagName==="VIDEO"},dl=function(Dt){return Dt.tagName==="IMG"},Fl=function(Dt){return Dt.tagName==="IFRAME"},yh=function(Dt){return Dt.tagName==="STYLE"},bh=function(Dt){return Dt.tagName==="SCRIPT"},oc=function(Dt){return Dt.tagName==="TEXTAREA"},Vd=function(Dt){return Dt.tagName==="SELECT"},cA=function(Dt){return Dt.tagName==="SLOT"},dA=function(Dt){return Dt.tagName.indexOf("-")>0},AA=function(){function Dt(){this.counters={}}return Dt.prototype.getCounterValue=function(Tt){var Qt=this.counters[Tt];return Qt&&Qt.length?Qt[Qt.length-1]:1},Dt.prototype.getCounterValues=function(Tt){var Qt=this.counters[Tt];return Qt||[]},Dt.prototype.pop=function(Tt){var Qt=this;Tt.forEach(function(Ht){return Qt.counters[Ht].pop()})},Dt.prototype.parse=function(Tt){var Qt=this,Ht=Tt.counterIncrement,Be=Tt.counterReset,Je=!0;Ht!==null&&Ht.forEach(function(ni){var jn=Qt.counters[ni.counter];jn&&ni.increment!==0&&(Je=!1,jn.length||jn.push(1),jn[Math.max(0,jn.length-1)]+=ni.increment)});var Ln=[];return Je&&Be.forEach(function(ni){var jn=Qt.counters[ni.counter];Ln.push(ni.counter),jn||(jn=Qt.counters[ni.counter]=[]),jn.push(ni.reset)}),Ln},Dt}(),Ic={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"]},Ed={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"]},kc={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(Dt,Tt,Qt,Ht,Be,Je){return Dt<Tt||Dt>Qt?vt(Dt,Be,Je.length>0):Ht.integers.reduce(function(Ln,ni,jn){for(;Dt>=ni;)Dt-=ni,Ln+=Ht.values[jn];return Ln},"")+Je},Zd=function(Dt,Tt,Qt,Ht){var Be="";do Qt||Dt--,Be=Ht(Dt)+Be,Dt/=Tt;while(Dt*Tt>=Tt);return Be},Gl=function(Dt,Tt,Qt,Ht,Be){var Je=Qt-Tt+1;return(Dt<0?"-":"")+(Zd(Math.abs(Dt),Je,Ht,function(Ln){return qt(Math.floor(Ln%Je)+Tt)})+Be)},Rh=function(Dt,Tt,Qt){Qt===void 0&&(Qt=". ");var Ht=Tt.length;return Zd(Math.abs(Dt),Ht,!1,function(Be){return Tt[Math.floor(Be%Ht)]})+Qt},Qu=1,ld=2,Tl=4,Xd=8,Fu=function(Dt,Tt,Qt,Ht,Be,Je){if(Dt<-9999||Dt>9999)return vt(Dt,4,Be.length>0);var Ln=Math.abs(Dt),ni=Be;if(Ln===0)return Tt[0]+ni;for(var jn=0;Ln>0&&jn<=4;jn++){var Di=Ln%10;Di===0&&wo(Je,Qu)&&ni!==""?ni=Tt[Di]+ni:Di>1||Di===1&&jn===0||Di===1&&jn===1&&wo(Je,ld)||Di===1&&jn===1&&wo(Je,Tl)&&Dt>100||Di===1&&jn>1&&wo(Je,Xd)?ni=Tt[Di]+(jn>0?Qt[jn-1]:"")+ni:Di===1&&jn>0&&(ni=Qt[jn-1]+ni),Ln=Math.floor(Ln/10)}return(Dt<0?Ht:"")+ni},sc="\u5341\u767E\u5343\u842C",$d="\u62FE\u4F70\u4EDF\u842C",it="\u30DE\u30A4\u30CA\u30B9",st="\uB9C8\uC774\uB108\uC2A4",vt=function(Dt,Tt,Qt){var Ht=Qt?". ":"",Be=Qt?"\u3001":"",Je=Qt?", ":"",Ln=Qt?" ":"";switch(Tt){case 0:return"\u2022"+Ln;case 1:return"\u25E6"+Ln;case 2:return"\u25FE"+Ln;case 5:var ni=Gl(Dt,48,57,!0,Ht);return ni.length<4?"0"+ni:ni;case 4:return Rh(Dt,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Be);case 6:return mc(Dt,1,3999,Ic,3,Ht).toLowerCase();case 7:return mc(Dt,1,3999,Ic,3,Ht);case 8:return Gl(Dt,945,969,!1,Ht);case 9:return Gl(Dt,97,122,!1,Ht);case 10:return Gl(Dt,65,90,!1,Ht);case 11:return Gl(Dt,1632,1641,!0,Ht);case 12:case 49:return mc(Dt,1,9999,Ed,3,Ht);case 35:return mc(Dt,1,9999,Ed,3,Ht).toLowerCase();case 13:return Gl(Dt,2534,2543,!0,Ht);case 14:case 30:return Gl(Dt,6112,6121,!0,Ht);case 15:return Rh(Dt,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",Be);case 16:return Rh(Dt,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",Be);case 17:case 48:return Fu(Dt,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",sc,"\u8CA0",Be,ld|Tl|Xd);case 47:return Fu(Dt,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",$d,"\u8CA0",Be,Qu|ld|Tl|Xd);case 42:return Fu(Dt,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",sc,"\u8D1F",Be,ld|Tl|Xd);case 41:return Fu(Dt,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",$d,"\u8D1F",Be,Qu|ld|Tl|Xd);case 26:return Fu(Dt,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",it,Be,0);case 25:return Fu(Dt,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",it,Be,Qu|ld|Tl);case 31:return Fu(Dt,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",st,Je,Qu|ld|Tl);case 33:return Fu(Dt,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",st,Je,0);case 32:return Fu(Dt,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",st,Je,Qu|ld|Tl);case 18:return Gl(Dt,2406,2415,!0,Ht);case 20:return mc(Dt,1,19999,Sa,3,Ht);case 21:return Gl(Dt,2790,2799,!0,Ht);case 22:return Gl(Dt,2662,2671,!0,Ht);case 22:return mc(Dt,1,10999,kc,3,Ht);case 23:return Rh(Dt,"\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 Rh(Dt,"\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 Gl(Dt,3302,3311,!0,Ht);case 28:return Rh(Dt,"\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",Be);case 29:return Rh(Dt,"\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",Be);case 34:return Gl(Dt,3792,3801,!0,Ht);case 37:return Gl(Dt,6160,6169,!0,Ht);case 38:return Gl(Dt,4160,4169,!0,Ht);case 39:return Gl(Dt,2918,2927,!0,Ht);case 40:return Gl(Dt,1776,1785,!0,Ht);case 43:return Gl(Dt,3046,3055,!0,Ht);case 44:return Gl(Dt,3174,3183,!0,Ht);case 45:return Gl(Dt,3664,3673,!0,Ht);case 46:return Gl(Dt,3872,3881,!0,Ht);case 3:default:return Gl(Dt,48,57,!0,Ht)}},gt="data-html2canvas-ignore",Bt=function(){function Dt(Tt,Qt,Ht){if(this.context=Tt,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 Dt.prototype.toIFrame=function(Tt,Qt){var Ht=this,Be=xe(Tt,Qt);if(!Be.contentWindow)return Promise.reject("Unable to find iframe window");var Je=Tt.defaultView.pageXOffset,Ln=Tt.defaultView.pageYOffset,ni=Be.contentWindow,jn=ni.document,Di=an(Be).then(function(){return ce(Ht,void 0,void 0,function(){var Qi,xt;return ie(this,function(Rt){switch(Rt.label){case 0:return this.scrolledElements.forEach(br),ni&&(ni.scrollTo(Qt.left,Qt.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(ni.scrollY!==Qt.top||ni.scrollX!==Qt.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(ni.scrollX-Qt.left,ni.scrollY-Qt.top,0,0))),Qi=this.options.onclone,xt=this.clonedReferenceElement,typeof xt=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:jn.fonts&&jn.fonts.ready?[4,jn.fonts.ready]:[3,2];case 1:Rt.sent(),Rt.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,je(jn)]:[3,4];case 3:Rt.sent(),Rt.label=4;case 4:return typeof Qi=="function"?[2,Promise.resolve().then(function(){return Qi(jn,xt)}).then(function(){return Be})]:[2,Be]}})})});return jn.open(),jn.write(Mi(document.doctype)+"<html></html>"),bi(this.referenceElement.ownerDocument,Je,Ln),jn.replaceChild(jn.adoptNode(this.documentElement),jn.documentElement),jn.close(),Di},Dt.prototype.createElementClone=function(Tt){if(wa(Tt,2))debugger;if(au(Tt))return this.createCanvasClone(Tt);if(pu(Tt))return this.createVideoClone(Tt);if(yh(Tt))return this.createStyleClone(Tt);var Qt=Tt.cloneNode(!1);return dl(Qt)&&(dl(Tt)&&Tt.currentSrc&&Tt.currentSrc!==Tt.src&&(Qt.src=Tt.currentSrc,Qt.srcset=""),Qt.loading==="lazy"&&(Qt.loading="eager")),dA(Qt)?this.createCustomElementClone(Qt):Qt},Dt.prototype.createCustomElementClone=function(Tt){var Qt=document.createElement("html2canvascustomelement");return wn(Tt.style,Qt),Qt},Dt.prototype.createStyleClone=function(Tt){try{var Qt=Tt.sheet;if(Qt&&Qt.cssRules){var Ht=[].slice.call(Qt.cssRules,0).reduce(function(Je,Ln){return Ln&&typeof Ln.cssText=="string"?Je+Ln.cssText:Je},""),Be=Tt.cloneNode(!1);return Be.textContent=Ht,Be}}catch(Je){if(this.context.logger.error("Unable to access cssRules property",Je),Je.name!=="SecurityError")throw Je}return Tt.cloneNode(!1)},Dt.prototype.createCanvasClone=function(Tt){var Qt;if(this.options.inlineImages&&Tt.ownerDocument){var Ht=Tt.ownerDocument.createElement("img");try{return Ht.src=Tt.toDataURL(),Ht}catch(Di){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",Tt)}}var Be=Tt.cloneNode(!1);try{Be.width=Tt.width,Be.height=Tt.height;var Je=Tt.getContext("2d"),Ln=Be.getContext("2d");if(Ln)if(!this.options.allowTaint&&Je)Ln.putImageData(Je.getImageData(0,0,Tt.width,Tt.height),0,0);else{var ni=(Qt=Tt.getContext("webgl2"))!==null&&Qt!==void 0?Qt:Tt.getContext("webgl");if(ni){var jn=ni.getContextAttributes();(jn==null?void 0:jn.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",Tt)}Ln.drawImage(Tt,0,0)}return Be}catch(Di){this.context.logger.info("Unable to clone canvas as it is tainted",Tt)}return Be},Dt.prototype.createVideoClone=function(Tt){var Qt=Tt.ownerDocument.createElement("canvas");Qt.width=Tt.offsetWidth,Qt.height=Tt.offsetHeight;var Ht=Qt.getContext("2d");try{return Ht&&(Ht.drawImage(Tt,0,0,Qt.width,Qt.height),this.options.allowTaint||Ht.getImageData(0,0,Qt.width,Qt.height)),Qt}catch(Je){this.context.logger.info("Unable to clone video as it is tainted",Tt)}var Be=Tt.ownerDocument.createElement("canvas");return Be.width=Tt.offsetWidth,Be.height=Tt.offsetHeight,Be},Dt.prototype.appendChildNode=function(Tt,Qt,Ht){(!lr(Qt)||!bh(Qt)&&!Qt.hasAttribute(gt)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(Qt)))&&(!this.options.copyStyles||!lr(Qt)||!yh(Qt))&&Tt.appendChild(this.cloneNode(Qt,Ht))},Dt.prototype.cloneChildNodes=function(Tt,Qt,Ht){for(var Be=this,Je=Tt.shadowRoot?Tt.shadowRoot.firstChild:Tt.firstChild;Je;Je=Je.nextSibling)if(lr(Je)&&cA(Je)&&typeof Je.assignedNodes=="function"){var Ln=Je.assignedNodes();Ln.length&&Ln.forEach(function(ni){return Be.appendChildNode(Qt,ni,Ht)})}else this.appendChildNode(Qt,Je,Ht)},Dt.prototype.cloneNode=function(Tt,Qt){if(_i(Tt))return document.createTextNode(Tt.data);if(!Tt.ownerDocument)return Tt.cloneNode(!1);var Ht=Tt.ownerDocument.defaultView;if(Ht&&lr(Tt)&&(Hr(Tt)||fo(Tt))){var Be=this.createElementClone(Tt);Be.style.transitionProperty="none";var Je=Ht.getComputedStyle(Tt),Ln=Ht.getComputedStyle(Tt,":before"),ni=Ht.getComputedStyle(Tt,":after");this.referenceElement===Tt&&Hr(Be)&&(this.clonedReferenceElement=Be),js(Be)&&rs(Be);var jn=this.counters.parse(new ml(this.context,Je)),Di=this.resolvePseudoContent(Tt,Be,Ln,te.BEFORE);dA(Tt)&&(Qt=!0),pu(Tt)||this.cloneChildNodes(Tt,Be,Qt),Di&&Be.insertBefore(Di,Be.firstChild);var Qi=this.resolvePseudoContent(Tt,Be,ni,te.AFTER);return Qi&&Be.appendChild(Qi),this.counters.pop(jn),(Je&&(this.options.copyStyles||fo(Tt))&&!Fl(Tt)||Qt)&&wn(Je,Be),(Tt.scrollTop!==0||Tt.scrollLeft!==0)&&this.scrolledElements.push([Be,Tt.scrollLeft,Tt.scrollTop]),(oc(Tt)||Vd(Tt))&&(oc(Be)||Vd(Be))&&(Be.value=Tt.value),Be}return Tt.cloneNode(!1)},Dt.prototype.resolvePseudoContent=function(Tt,Qt,Ht,Be){var Je=this;if(Ht){var Ln=Ht.content,ni=Qt.ownerDocument;if(!(!ni||!Ln||Ln==="none"||Ln==="-moz-alt-content"||Ht.display==="none")){this.counters.parse(new ml(this.context,Ht));var jn=new fa(this.context,Ht),Di=ni.createElement("html2canvaspseudoelement");wn(Ht,Di),jn.content.forEach(function(xt){if(xt.type===0)Di.appendChild(ni.createTextNode(xt.value));else if(xt.type===22){var Rt=ni.createElement("img");Rt.src=xt.value,Rt.style.opacity="1",Di.appendChild(Rt)}else if(xt.type===18){if(xt.name==="attr"){var fe=xt.values.filter(Ua);fe.length&&Di.appendChild(ni.createTextNode(Tt.getAttribute(fe[0].value)||""))}else if(xt.name==="counter"){var Pe=xt.values.filter(Pu),$e=Pe[0],pn=Pe[1];if($e&&Ua($e)){var cn=Je.counters.getCounterValue($e.value),xn=pn&&Ua(pn)?ln.parse(Je.context,pn.value):3;Di.appendChild(ni.createTextNode(vt(cn,xn,!1)))}}else if(xt.name==="counters"){var bn=xt.values.filter(Pu),$e=bn[0],Gn=bn[1],pn=bn[2];if($e&&Ua($e)){var Bi=Je.counters.getCounterValues($e.value),Ni=pn&&Ua(pn)?ln.parse(Je.context,pn.value):3,Yi=Gn&&Gn.type===0?Gn.value:"",Ri=Bi.map(function(Ui){return vt(Ui,Ni,!1)}).join(Yi);Di.appendChild(ni.createTextNode(Ri))}}}else if(xt.type===20)switch(xt.value){case"open-quote":Di.appendChild(ni.createTextNode(Ls(jn.quotes,Je.quoteDepth++,!0)));break;case"close-quote":Di.appendChild(ni.createTextNode(Ls(jn.quotes,--Je.quoteDepth,!1)));break;default:Di.appendChild(ni.createTextNode(xt.value))}}),Di.className=mo+" "+Jo;var Qi=Be===te.BEFORE?" "+mo:" "+Jo;return fo(Qt)?Qt.className.baseValue+=Qi:Qt.className+=Qi,Di}}},Dt.destroy=function(Tt){return Tt.parentNode?(Tt.parentNode.removeChild(Tt),!0):!1},Dt}(),te;(function(Dt){Dt[Dt.BEFORE=0]="BEFORE",Dt[Dt.AFTER=1]="AFTER"})(te||(te={}));var xe=function(Dt,Tt){var Qt=Dt.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=Tt.width.toString(),Qt.height=Tt.height.toString(),Qt.scrolling="no",Qt.setAttribute(gt,"true"),Dt.body.appendChild(Qt),Qt},Ue=function(Dt){return new Promise(function(Tt){if(Dt.complete){Tt();return}if(!Dt.src){Tt();return}Dt.onload=Tt,Dt.onerror=Tt})},je=function(Dt){return Promise.all([].slice.call(Dt.images,0).map(Ue))},an=function(Dt){return new Promise(function(Tt,Qt){var Ht=Dt.contentWindow;if(!Ht)return Qt("No window assigned for iframe");var Be=Ht.document;Ht.onload=Dt.onload=function(){Ht.onload=Dt.onload=null;var Je=setInterval(function(){Be.body.childNodes.length>0&&Be.readyState==="complete"&&(clearInterval(Je),Tt(Dt))},50)}})},$n=["all","d","content"],wn=function(Dt,Tt){for(var Qt=Dt.length-1;Qt>=0;Qt--){var Ht=Dt.item(Qt);$n.indexOf(Ht)===-1&&Tt.style.setProperty(Ht,Dt.getPropertyValue(Ht))}return Tt},Mi=function(Dt){var Tt="";return Dt&&(Tt+="<!DOCTYPE ",Dt.name&&(Tt+=Dt.name),Dt.internalSubset&&(Tt+=Dt.internalSubset),Dt.publicId&&(Tt+='"'+Dt.publicId+'"'),Dt.systemId&&(Tt+='"'+Dt.systemId+'"'),Tt+=">"),Tt},bi=function(Dt,Tt,Qt){Dt&&Dt.defaultView&&(Tt!==Dt.defaultView.pageXOffset||Qt!==Dt.defaultView.pageYOffset)&&Dt.defaultView.scrollTo(Tt,Qt)},br=function(Dt){var Tt=Dt[0],Qt=Dt[1],Ht=Dt[2];Tt.scrollLeft=Qt,Tt.scrollTop=Ht},Tr=":before",$r=":after",mo="___html2canvas___pseudoelement_before",Jo="___html2canvas___pseudoelement_after",Mo=`{
|
|
|
content: "" !important;
|
|
|
display: none !important;
|
|
|
}`,rs=function(Dt){Ts(Dt,"."+mo+Tr+Mo+`
|
|
|
.`+Jo+$r+Mo)},Ts=function(Dt,Tt){var Qt=Dt.ownerDocument;if(Qt){var Ht=Qt.createElement("style");Ht.textContent=Tt,Dt.appendChild(Ht)}},No=function(){function Dt(){}return Dt.getOrigin=function(Tt){var Qt=Dt._link;return Qt?(Qt.href=Tt,Qt.href=Qt.href,Qt.protocol+Qt.hostname+Qt.port):"about:blank"},Dt.isSameOrigin=function(Tt){return Dt.getOrigin(Tt)===Dt._origin},Dt.setContext=function(Tt){Dt._link=Tt.document.createElement("a"),Dt._origin=Dt.getOrigin(Tt.location.href)},Dt._origin="about:blank",Dt}(),Js=function(){function Dt(Tt,Qt){this.context=Tt,this._options=Qt,this._cache={}}return Dt.prototype.addImage=function(Tt){var Qt=Promise.resolve();return this.has(Tt)||(Pl(Tt)||Xa(Tt))&&(this._cache[Tt]=this.loadImage(Tt)).catch(function(){}),Qt},Dt.prototype.match=function(Tt){return this._cache[Tt]},Dt.prototype.loadImage=function(Tt){return ce(this,void 0,void 0,function(){var Qt,Ht,Be,Je,Ln=this;return ie(this,function(ni){switch(ni.label){case 0:return Qt=No.isSameOrigin(Tt),Ht=!Ia(Tt)&&this._options.useCORS===!0&&$l.SUPPORT_CORS_IMAGES&&!Qt,Be=!Ia(Tt)&&!Qt&&!Pl(Tt)&&typeof this._options.proxy=="string"&&$l.SUPPORT_CORS_XHR&&!Ht,!Qt&&this._options.allowTaint===!1&&!Ia(Tt)&&!Pl(Tt)&&!Be&&!Ht?[2]:(Je=Tt,Be?[4,this.proxy(Je)]:[3,2]);case 1:Je=ni.sent(),ni.label=2;case 2:return this.context.logger.debug("Added image "+Tt.substring(0,256)),[4,new Promise(function(jn,Di){var Qi=new Image;Qi.onload=function(){return jn(Qi)},Qi.onerror=Di,(za(Je)||Ht)&&(Qi.crossOrigin="anonymous"),Qi.src=Je,Qi.complete===!0&&setTimeout(function(){return jn(Qi)},500),Ln._options.imageTimeout>0&&setTimeout(function(){return Di("Timed out ("+Ln._options.imageTimeout+"ms) loading image")},Ln._options.imageTimeout)})];case 3:return[2,ni.sent()]}})})},Dt.prototype.has=function(Tt){return typeof this._cache[Tt]!="undefined"},Dt.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},Dt.prototype.proxy=function(Tt){var Qt=this,Ht=this._options.proxy;if(!Ht)throw new Error("No proxy defined");var Be=Tt.substring(0,256);return new Promise(function(Je,Ln){var ni=$l.SUPPORT_RESPONSE_TYPE?"blob":"text",jn=new XMLHttpRequest;jn.onload=function(){if(jn.status===200)if(ni==="text")Je(jn.response);else{var xt=new FileReader;xt.addEventListener("load",function(){return Je(xt.result)},!1),xt.addEventListener("error",function(Rt){return Ln(Rt)},!1),xt.readAsDataURL(jn.response)}else Ln("Failed to proxy resource "+Be+" with status code "+jn.status)},jn.onerror=Ln;var Di=Ht.indexOf("?")>-1?"&":"?";if(jn.open("GET",""+Ht+Di+"url="+encodeURIComponent(Tt)+"&responseType="+ni),ni!=="text"&&jn instanceof XMLHttpRequest&&(jn.responseType=ni),Qt._options.imageTimeout){var Qi=Qt._options.imageTimeout;jn.timeout=Qi,jn.ontimeout=function(){return Ln("Timed out ("+Qi+"ms) proxying "+Be)}}jn.send()})},Dt}(),Ol=/^data:image\/svg\+xml/i,zl=/^data:image\/.*;base64,/i,Al=/^data:image\/.*/i,Xa=function(Dt){return $l.SUPPORT_SVG_DRAWING||!mu(Dt)},Ia=function(Dt){return Al.test(Dt)},za=function(Dt){return zl.test(Dt)},Pl=function(Dt){return Dt.substr(0,4)==="blob"},mu=function(Dt){return Dt.substr(-3).toLowerCase()==="svg"||Ol.test(Dt)},Oo=function(){function Dt(Tt,Qt){this.type=0,this.x=Tt,this.y=Qt}return Dt.prototype.add=function(Tt,Qt){return new Dt(this.x+Tt,this.y+Qt)},Dt}(),Ca=function(Dt,Tt,Qt){return new Oo(Dt.x+(Tt.x-Dt.x)*Qt,Dt.y+(Tt.y-Dt.y)*Qt)},Kl=function(){function Dt(Tt,Qt,Ht,Be){this.type=1,this.start=Tt,this.startControl=Qt,this.endControl=Ht,this.end=Be}return Dt.prototype.subdivide=function(Tt,Qt){var Ht=Ca(this.start,this.startControl,Tt),Be=Ca(this.startControl,this.endControl,Tt),Je=Ca(this.endControl,this.end,Tt),Ln=Ca(Ht,Be,Tt),ni=Ca(Be,Je,Tt),jn=Ca(Ln,ni,Tt);return Qt?new Dt(this.start,Ht,Ln,jn):new Dt(jn,ni,Je,this.end)},Dt.prototype.add=function(Tt,Qt){return new Dt(this.start.add(Tt,Qt),this.startControl.add(Tt,Qt),this.endControl.add(Tt,Qt),this.end.add(Tt,Qt))},Dt.prototype.reverse=function(){return new Dt(this.end,this.endControl,this.startControl,this.start)},Dt}(),Dl=function(Dt){return Dt.type===1},Xu=function(){function Dt(Tt){var Qt=Tt.styles,Ht=Tt.bounds,Be=qh(Qt.borderTopLeftRadius,Ht.width,Ht.height),Je=Be[0],Ln=Be[1],ni=qh(Qt.borderTopRightRadius,Ht.width,Ht.height),jn=ni[0],Di=ni[1],Qi=qh(Qt.borderBottomRightRadius,Ht.width,Ht.height),xt=Qi[0],Rt=Qi[1],fe=qh(Qt.borderBottomLeftRadius,Ht.width,Ht.height),Pe=fe[0],$e=fe[1],pn=[];pn.push((Je+jn)/Ht.width),pn.push((Pe+xt)/Ht.width),pn.push((Ln+$e)/Ht.height),pn.push((Di+Rt)/Ht.height);var cn=Math.max.apply(Math,pn);cn>1&&(Je/=cn,Ln/=cn,jn/=cn,Di/=cn,xt/=cn,Rt/=cn,Pe/=cn,$e/=cn);var xn=Ht.width-jn,bn=Ht.height-Rt,Gn=Ht.width-xt,Bi=Ht.height-$e,Ni=Qt.borderTopWidth,Yi=Qt.borderRightWidth,Ri=Qt.borderBottomWidth,wr=Qt.borderLeftWidth,Br=il(Qt.paddingTop,Tt.bounds.width),Ui=il(Qt.paddingRight,Tt.bounds.width),zi=il(Qt.paddingBottom,Tt.bounds.width),Ir=il(Qt.paddingLeft,Tt.bounds.width);this.topLeftBorderDoubleOuterBox=Je>0||Ln>0?Qs(Ht.left+wr/3,Ht.top+Ni/3,Je-wr/3,Ln-Ni/3,sa.TOP_LEFT):new Oo(Ht.left+wr/3,Ht.top+Ni/3),this.topRightBorderDoubleOuterBox=Je>0||Ln>0?Qs(Ht.left+xn,Ht.top+Ni/3,jn-Yi/3,Di-Ni/3,sa.TOP_RIGHT):new Oo(Ht.left+Ht.width-Yi/3,Ht.top+Ni/3),this.bottomRightBorderDoubleOuterBox=xt>0||Rt>0?Qs(Ht.left+Gn,Ht.top+bn,xt-Yi/3,Rt-Ri/3,sa.BOTTOM_RIGHT):new Oo(Ht.left+Ht.width-Yi/3,Ht.top+Ht.height-Ri/3),this.bottomLeftBorderDoubleOuterBox=Pe>0||$e>0?Qs(Ht.left+wr/3,Ht.top+Bi,Pe-wr/3,$e-Ri/3,sa.BOTTOM_LEFT):new Oo(Ht.left+wr/3,Ht.top+Ht.height-Ri/3),this.topLeftBorderDoubleInnerBox=Je>0||Ln>0?Qs(Ht.left+wr*2/3,Ht.top+Ni*2/3,Je-wr*2/3,Ln-Ni*2/3,sa.TOP_LEFT):new Oo(Ht.left+wr*2/3,Ht.top+Ni*2/3),this.topRightBorderDoubleInnerBox=Je>0||Ln>0?Qs(Ht.left+xn,Ht.top+Ni*2/3,jn-Yi*2/3,Di-Ni*2/3,sa.TOP_RIGHT):new Oo(Ht.left+Ht.width-Yi*2/3,Ht.top+Ni*2/3),this.bottomRightBorderDoubleInnerBox=xt>0||Rt>0?Qs(Ht.left+Gn,Ht.top+bn,xt-Yi*2/3,Rt-Ri*2/3,sa.BOTTOM_RIGHT):new Oo(Ht.left+Ht.width-Yi*2/3,Ht.top+Ht.height-Ri*2/3),this.bottomLeftBorderDoubleInnerBox=Pe>0||$e>0?Qs(Ht.left+wr*2/3,Ht.top+Bi,Pe-wr*2/3,$e-Ri*2/3,sa.BOTTOM_LEFT):new Oo(Ht.left+wr*2/3,Ht.top+Ht.height-Ri*2/3),this.topLeftBorderStroke=Je>0||Ln>0?Qs(Ht.left+wr/2,Ht.top+Ni/2,Je-wr/2,Ln-Ni/2,sa.TOP_LEFT):new Oo(Ht.left+wr/2,Ht.top+Ni/2),this.topRightBorderStroke=Je>0||Ln>0?Qs(Ht.left+xn,Ht.top+Ni/2,jn-Yi/2,Di-Ni/2,sa.TOP_RIGHT):new Oo(Ht.left+Ht.width-Yi/2,Ht.top+Ni/2),this.bottomRightBorderStroke=xt>0||Rt>0?Qs(Ht.left+Gn,Ht.top+bn,xt-Yi/2,Rt-Ri/2,sa.BOTTOM_RIGHT):new Oo(Ht.left+Ht.width-Yi/2,Ht.top+Ht.height-Ri/2),this.bottomLeftBorderStroke=Pe>0||$e>0?Qs(Ht.left+wr/2,Ht.top+Bi,Pe-wr/2,$e-Ri/2,sa.BOTTOM_LEFT):new Oo(Ht.left+wr/2,Ht.top+Ht.height-Ri/2),this.topLeftBorderBox=Je>0||Ln>0?Qs(Ht.left,Ht.top,Je,Ln,sa.TOP_LEFT):new Oo(Ht.left,Ht.top),this.topRightBorderBox=jn>0||Di>0?Qs(Ht.left+xn,Ht.top,jn,Di,sa.TOP_RIGHT):new Oo(Ht.left+Ht.width,Ht.top),this.bottomRightBorderBox=xt>0||Rt>0?Qs(Ht.left+Gn,Ht.top+bn,xt,Rt,sa.BOTTOM_RIGHT):new Oo(Ht.left+Ht.width,Ht.top+Ht.height),this.bottomLeftBorderBox=Pe>0||$e>0?Qs(Ht.left,Ht.top+Bi,Pe,$e,sa.BOTTOM_LEFT):new Oo(Ht.left,Ht.top+Ht.height),this.topLeftPaddingBox=Je>0||Ln>0?Qs(Ht.left+wr,Ht.top+Ni,Math.max(0,Je-wr),Math.max(0,Ln-Ni),sa.TOP_LEFT):new Oo(Ht.left+wr,Ht.top+Ni),this.topRightPaddingBox=jn>0||Di>0?Qs(Ht.left+Math.min(xn,Ht.width-Yi),Ht.top+Ni,xn>Ht.width+Yi?0:Math.max(0,jn-Yi),Math.max(0,Di-Ni),sa.TOP_RIGHT):new Oo(Ht.left+Ht.width-Yi,Ht.top+Ni),this.bottomRightPaddingBox=xt>0||Rt>0?Qs(Ht.left+Math.min(Gn,Ht.width-wr),Ht.top+Math.min(bn,Ht.height-Ri),Math.max(0,xt-Yi),Math.max(0,Rt-Ri),sa.BOTTOM_RIGHT):new Oo(Ht.left+Ht.width-Yi,Ht.top+Ht.height-Ri),this.bottomLeftPaddingBox=Pe>0||$e>0?Qs(Ht.left+wr,Ht.top+Math.min(Bi,Ht.height-Ri),Math.max(0,Pe-wr),Math.max(0,$e-Ri),sa.BOTTOM_LEFT):new Oo(Ht.left+wr,Ht.top+Ht.height-Ri),this.topLeftContentBox=Je>0||Ln>0?Qs(Ht.left+wr+Ir,Ht.top+Ni+Br,Math.max(0,Je-(wr+Ir)),Math.max(0,Ln-(Ni+Br)),sa.TOP_LEFT):new Oo(Ht.left+wr+Ir,Ht.top+Ni+Br),this.topRightContentBox=jn>0||Di>0?Qs(Ht.left+Math.min(xn,Ht.width+wr+Ir),Ht.top+Ni+Br,xn>Ht.width+wr+Ir?0:jn-wr+Ir,Di-(Ni+Br),sa.TOP_RIGHT):new Oo(Ht.left+Ht.width-(Yi+Ui),Ht.top+Ni+Br),this.bottomRightContentBox=xt>0||Rt>0?Qs(Ht.left+Math.min(Gn,Ht.width-(wr+Ir)),Ht.top+Math.min(bn,Ht.height+Ni+Br),Math.max(0,xt-(Yi+Ui)),Rt-(Ri+zi),sa.BOTTOM_RIGHT):new Oo(Ht.left+Ht.width-(Yi+Ui),Ht.top+Ht.height-(Ri+zi)),this.bottomLeftContentBox=Pe>0||$e>0?Qs(Ht.left+wr+Ir,Ht.top+Bi,Math.max(0,Pe-(wr+Ir)),$e-(Ri+zi),sa.BOTTOM_LEFT):new Oo(Ht.left+wr+Ir,Ht.top+Ht.height-(Ri+zi))}return Dt}(),sa;(function(Dt){Dt[Dt.TOP_LEFT=0]="TOP_LEFT",Dt[Dt.TOP_RIGHT=1]="TOP_RIGHT",Dt[Dt.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",Dt[Dt.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(sa||(sa={}));var Qs=function(Dt,Tt,Qt,Ht,Be){var Je=4*((Math.sqrt(2)-1)/3),Ln=Qt*Je,ni=Ht*Je,jn=Dt+Qt,Di=Tt+Ht;switch(Be){case sa.TOP_LEFT:return new Kl(new Oo(Dt,Di),new Oo(Dt,Di-ni),new Oo(jn-Ln,Tt),new Oo(jn,Tt));case sa.TOP_RIGHT:return new Kl(new Oo(Dt,Tt),new Oo(Dt+Ln,Tt),new Oo(jn,Di-ni),new Oo(jn,Di));case sa.BOTTOM_RIGHT:return new Kl(new Oo(jn,Tt),new Oo(jn,Tt+ni),new Oo(Dt+Ln,Di),new Oo(Dt,Di));case sa.BOTTOM_LEFT:default:return new Kl(new Oo(jn,Di),new Oo(jn-Ln,Di),new Oo(Dt,Tt+ni),new Oo(Dt,Tt))}},hh=function(Dt){return[Dt.topLeftBorderBox,Dt.topRightBorderBox,Dt.bottomRightBorderBox,Dt.bottomLeftBorderBox]},lu=function(Dt){return[Dt.topLeftContentBox,Dt.topRightContentBox,Dt.bottomRightContentBox,Dt.bottomLeftContentBox]},Yd=function(Dt){return[Dt.topLeftPaddingBox,Dt.topRightPaddingBox,Dt.bottomRightPaddingBox,Dt.bottomLeftPaddingBox]},Eh=function(){function Dt(Tt,Qt,Ht){this.offsetX=Tt,this.offsetY=Qt,this.matrix=Ht,this.type=0,this.target=6}return Dt}(),nh=function(){function Dt(Tt,Qt){this.path=Tt,this.target=Qt,this.type=1}return Dt}(),wh=function(){function Dt(Tt){this.opacity=Tt,this.type=2,this.target=6}return Dt}(),jl=function(Dt){return Dt.type===0},zu=function(Dt){return Dt.type===1},$c=function(Dt){return Dt.type===2},Fd=function(Dt,Tt){return Dt.length===Tt.length?Dt.some(function(Qt,Ht){return Qt===Tt[Ht]}):!1},Cg=function(Dt,Tt,Qt,Ht,Be){return Dt.map(function(Je,Ln){switch(Ln){case 0:return Je.add(Tt,Qt);case 1:return Je.add(Tt+Ht,Qt);case 2:return Je.add(Tt+Ht,Qt+Be);case 3:return Je.add(Tt,Qt+Be)}return Je})},_h=function(){function Dt(Tt){this.element=Tt,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return Dt}(),Bg=function(){function Dt(Tt,Qt){if(this.container=Tt,this.parent=Qt,this.effects=[],this.curves=new Xu(this.container),this.container.styles.opacity<1&&this.effects.push(new wh(this.container.styles.opacity)),this.container.styles.transform!==null){var Ht=this.container.bounds.left+this.container.styles.transformOrigin[0].number,Be=this.container.bounds.top+this.container.styles.transformOrigin[1].number,Je=this.container.styles.transform;this.effects.push(new Eh(Ht,Be,Je))}if(this.container.styles.overflowX!==0){var Ln=hh(this.curves),ni=Yd(this.curves);Fd(Ln,ni)?this.effects.push(new nh(Ln,6)):(this.effects.push(new nh(Ln,2)),this.effects.push(new nh(ni,4)))}}return Dt.prototype.getEffects=function(Tt){for(var Qt=[2,3].indexOf(this.container.styles.position)===-1,Ht=this.parent,Be=this.effects.slice(0);Ht;){var Je=Ht.effects.filter(function(jn){return!zu(jn)});if(Qt||Ht.container.styles.position!==0||!Ht.parent){if(Be.unshift.apply(Be,Je),Qt=[2,3].indexOf(Ht.container.styles.position)===-1,Ht.container.styles.overflowX!==0){var Ln=hh(Ht.curves),ni=Yd(Ht.curves);Fd(Ln,ni)||Be.unshift(new nh(ni,6))}}else Be.unshift.apply(Be,Je);Ht=Ht.parent}return Be.filter(function(jn){return wo(jn.target,Tt)})},Dt}(),ud=function(Dt,Tt,Qt,Ht){Dt.container.elements.forEach(function(Be){var Je=wo(Be.flags,4),Ln=wo(Be.flags,2),ni=new Bg(Be,Dt);wo(Be.styles.display,2048)&&Ht.push(ni);var jn=wo(Be.flags,8)?[]:Ht;if(Je||Ln){var Di=Je||Be.styles.isPositioned()?Qt:Tt,Qi=new _h(ni);if(Be.styles.isPositioned()||Be.styles.opacity<1||Be.styles.isTransformed()){var xt=Be.styles.zIndex.order;if(xt<0){var Rt=0;Di.negativeZIndex.some(function(Pe,$e){return xt>Pe.element.container.styles.zIndex.order?(Rt=$e,!1):Rt>0}),Di.negativeZIndex.splice(Rt,0,Qi)}else if(xt>0){var fe=0;Di.positiveZIndex.some(function(Pe,$e){return xt>=Pe.element.container.styles.zIndex.order?(fe=$e+1,!1):fe>0}),Di.positiveZIndex.splice(fe,0,Qi)}else Di.zeroOrAutoZIndexOrTransformedOrOpacity.push(Qi)}else Be.styles.isFloating()?Di.nonPositionedFloats.push(Qi):Di.nonPositionedInlineLevel.push(Qi);ud(ni,Qi,Je?Qi:Qt,jn)}else Be.styles.isInlineLevel()?Tt.inlineLevel.push(ni):Tt.nonInlineLevel.push(ni),ud(ni,Tt,Qt,jn);wo(Be.flags,8)&&Wf(Be,jn)})},Wf=function(Dt,Tt){for(var Qt=Dt instanceof FA?Dt.start:1,Ht=Dt instanceof FA?Dt.reversed:!1,Be=0;Be<Tt.length;Be++){var Je=Tt[Be];Je.container instanceof gc&&typeof Je.container.value=="number"&&Je.container.value!==0&&(Qt=Je.container.value),Je.listValue=vt(Qt,Je.container.styles.listStyleType,!0),Qt+=Ht?-1:1}},yf=function(Dt){var Tt=new Bg(Dt,null),Qt=new _h(Tt),Ht=[];return ud(Tt,Qt,Qt,Ht),Wf(Tt.container,Ht),Qt},GA=function(Dt,Tt){switch(Tt){case 0:return Cu(Dt.topLeftBorderBox,Dt.topLeftPaddingBox,Dt.topRightBorderBox,Dt.topRightPaddingBox);case 1:return Cu(Dt.topRightBorderBox,Dt.topRightPaddingBox,Dt.bottomRightBorderBox,Dt.bottomRightPaddingBox);case 2:return Cu(Dt.bottomRightBorderBox,Dt.bottomRightPaddingBox,Dt.bottomLeftBorderBox,Dt.bottomLeftPaddingBox);case 3:default:return Cu(Dt.bottomLeftBorderBox,Dt.bottomLeftPaddingBox,Dt.topLeftBorderBox,Dt.topLeftPaddingBox)}},MA=function(Dt,Tt){switch(Tt){case 0:return Cu(Dt.topLeftBorderBox,Dt.topLeftBorderDoubleOuterBox,Dt.topRightBorderBox,Dt.topRightBorderDoubleOuterBox);case 1:return Cu(Dt.topRightBorderBox,Dt.topRightBorderDoubleOuterBox,Dt.bottomRightBorderBox,Dt.bottomRightBorderDoubleOuterBox);case 2:return Cu(Dt.bottomRightBorderBox,Dt.bottomRightBorderDoubleOuterBox,Dt.bottomLeftBorderBox,Dt.bottomLeftBorderDoubleOuterBox);case 3:default:return Cu(Dt.bottomLeftBorderBox,Dt.bottomLeftBorderDoubleOuterBox,Dt.topLeftBorderBox,Dt.topLeftBorderDoubleOuterBox)}},Vf=function(Dt,Tt){switch(Tt){case 0:return Cu(Dt.topLeftBorderDoubleInnerBox,Dt.topLeftPaddingBox,Dt.topRightBorderDoubleInnerBox,Dt.topRightPaddingBox);case 1:return Cu(Dt.topRightBorderDoubleInnerBox,Dt.topRightPaddingBox,Dt.bottomRightBorderDoubleInnerBox,Dt.bottomRightPaddingBox);case 2:return Cu(Dt.bottomRightBorderDoubleInnerBox,Dt.bottomRightPaddingBox,Dt.bottomLeftBorderDoubleInnerBox,Dt.bottomLeftPaddingBox);case 3:default:return Cu(Dt.bottomLeftBorderDoubleInnerBox,Dt.bottomLeftPaddingBox,Dt.topLeftBorderDoubleInnerBox,Dt.topLeftPaddingBox)}},fA=function(Dt,Tt){switch(Tt){case 0:return Ld(Dt.topLeftBorderStroke,Dt.topRightBorderStroke);case 1:return Ld(Dt.topRightBorderStroke,Dt.bottomRightBorderStroke);case 2:return Ld(Dt.bottomRightBorderStroke,Dt.bottomLeftBorderStroke);case 3:default:return Ld(Dt.bottomLeftBorderStroke,Dt.topLeftBorderStroke)}},Ld=function(Dt,Tt){var Qt=[];return Dl(Dt)?Qt.push(Dt.subdivide(.5,!1)):Qt.push(Dt),Dl(Tt)?Qt.push(Tt.subdivide(.5,!0)):Qt.push(Tt),Qt},Cu=function(Dt,Tt,Qt,Ht){var Be=[];return Dl(Dt)?Be.push(Dt.subdivide(.5,!1)):Be.push(Dt),Dl(Qt)?Be.push(Qt.subdivide(.5,!0)):Be.push(Qt),Dl(Ht)?Be.push(Ht.subdivide(.5,!0).reverse()):Be.push(Ht),Dl(Tt)?Be.push(Tt.subdivide(.5,!1).reverse()):Be.push(Tt),Be},xh=function(Dt){var Tt=Dt.bounds,Qt=Dt.styles;return Tt.add(Qt.borderLeftWidth,Qt.borderTopWidth,-(Qt.borderRightWidth+Qt.borderLeftWidth),-(Qt.borderTopWidth+Qt.borderBottomWidth))},Zf=function(Dt){var Tt=Dt.styles,Qt=Dt.bounds,Ht=il(Tt.paddingLeft,Qt.width),Be=il(Tt.paddingRight,Qt.width),Je=il(Tt.paddingTop,Qt.width),Ln=il(Tt.paddingBottom,Qt.width);return Qt.add(Ht+Tt.borderLeftWidth,Je+Tt.borderTopWidth,-(Tt.borderRightWidth+Tt.borderLeftWidth+Ht+Be),-(Tt.borderTopWidth+Tt.borderBottomWidth+Je+Ln))},Kg=function(Dt,Tt){return Dt===0?Tt.bounds:Dt===2?Zf(Tt):xh(Tt)},wp=function(Dt,Tt){return Dt===0?Tt.bounds:Dt===2?Zf(Tt):xh(Tt)},WA=function(Dt,Tt,Qt){var Ht=Kg(Hh(Dt.styles.backgroundOrigin,Tt),Dt),Be=wp(Hh(Dt.styles.backgroundClip,Tt),Dt),Je=NA(Hh(Dt.styles.backgroundSize,Tt),Qt,Ht),Ln=Je[0],ni=Je[1],jn=qh(Hh(Dt.styles.backgroundPosition,Tt),Ht.width-Ln,Ht.height-ni),Di=hd(Hh(Dt.styles.backgroundRepeat,Tt),jn,Je,Ht,Be),Qi=Math.round(Ht.left+jn[0]),xt=Math.round(Ht.top+jn[1]);return[Di,Qi,xt,Ln,ni]},VA=function(Dt){return Ua(Dt)&&Dt.value===se.AUTO},Xf=function(Dt){return typeof Dt=="number"},NA=function(Dt,Tt,Qt){var Ht=Tt[0],Be=Tt[1],Je=Tt[2],Ln=Dt[0],ni=Dt[1];if(!Ln)return[0,0];if(Go(Ln)&&ni&&Go(ni))return[il(Ln,Qt.width),il(ni,Qt.height)];var jn=Xf(Je);if(Ua(Ln)&&(Ln.value===se.CONTAIN||Ln.value===se.COVER)){if(Xf(Je)){var Di=Qt.width/Qt.height;return Di<Je!=(Ln.value===se.COVER)?[Qt.width,Qt.width/Je]:[Qt.height*Je,Qt.height]}return[Qt.width,Qt.height]}var Qi=Xf(Ht),xt=Xf(Be),Rt=Qi||xt;if(VA(Ln)&&(!ni||VA(ni))){if(Qi&&xt)return[Ht,Be];if(!jn&&!Rt)return[Qt.width,Qt.height];if(Rt&&jn){var fe=Qi?Ht:Be*Je,Pe=xt?Be:Ht/Je;return[fe,Pe]}var $e=Qi?Ht:Qt.width,pn=xt?Be:Qt.height;return[$e,pn]}if(jn){var cn=0,xn=0;return Go(Ln)?cn=il(Ln,Qt.width):Go(ni)&&(xn=il(ni,Qt.height)),VA(Ln)?cn=xn*Je:(!ni||VA(ni))&&(xn=cn/Je),[cn,xn]}var bn=null,Gn=null;if(Go(Ln)?bn=il(Ln,Qt.width):ni&&Go(ni)&&(Gn=il(ni,Qt.height)),bn!==null&&(!ni||VA(ni))&&(Gn=Qi&&xt?bn/Ht*Be:Qt.height),Gn!==null&&VA(Ln)&&(bn=Qi&&xt?Gn/Be*Ht:Qt.width),bn!==null&&Gn!==null)return[bn,Gn];throw new Error("Unable to calculate background-size for element")},Hh=function(Dt,Tt){var Qt=Dt[Tt];return typeof Qt=="undefined"?Dt[0]:Qt},hd=function(Dt,Tt,Qt,Ht,Be){var Je=Tt[0],Ln=Tt[1],ni=Qt[0],jn=Qt[1];switch(Dt){case 2:return[new Oo(Math.round(Ht.left),Math.round(Ht.top+Ln)),new Oo(Math.round(Ht.left+Ht.width),Math.round(Ht.top+Ln)),new Oo(Math.round(Ht.left+Ht.width),Math.round(jn+Ht.top+Ln)),new Oo(Math.round(Ht.left),Math.round(jn+Ht.top+Ln))];case 3:return[new Oo(Math.round(Ht.left+Je),Math.round(Ht.top)),new Oo(Math.round(Ht.left+Je+ni),Math.round(Ht.top)),new Oo(Math.round(Ht.left+Je+ni),Math.round(Ht.height+Ht.top)),new Oo(Math.round(Ht.left+Je),Math.round(Ht.height+Ht.top))];case 1:return[new Oo(Math.round(Ht.left+Je),Math.round(Ht.top+Ln)),new Oo(Math.round(Ht.left+Je+ni),Math.round(Ht.top+Ln)),new Oo(Math.round(Ht.left+Je+ni),Math.round(Ht.top+Ln+jn)),new Oo(Math.round(Ht.left+Je),Math.round(Ht.top+Ln+jn))];default:return[new Oo(Math.round(Be.left),Math.round(Be.top)),new Oo(Math.round(Be.left+Be.width),Math.round(Be.top)),new Oo(Math.round(Be.left+Be.width),Math.round(Be.height+Be.top)),new Oo(Math.round(Be.left),Math.round(Be.height+Be.top))]}},Pg="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Yc="Hidden Text",Qh=function(){function Dt(Tt){this._data={},this._document=Tt}return Dt.prototype.parseMetrics=function(Tt,Qt){var Ht=this._document.createElement("div"),Be=this._document.createElement("img"),Je=this._document.createElement("span"),Ln=this._document.body;Ht.style.visibility="hidden",Ht.style.fontFamily=Tt,Ht.style.fontSize=Qt,Ht.style.margin="0",Ht.style.padding="0",Ht.style.whiteSpace="nowrap",Ln.appendChild(Ht),Be.src=Pg,Be.width=1,Be.height=1,Be.style.margin="0",Be.style.padding="0",Be.style.verticalAlign="baseline",Je.style.fontFamily=Tt,Je.style.fontSize=Qt,Je.style.margin="0",Je.style.padding="0",Je.appendChild(this._document.createTextNode(Yc)),Ht.appendChild(Je),Ht.appendChild(Be);var ni=Be.offsetTop-Je.offsetTop+2;Ht.removeChild(Je),Ht.appendChild(this._document.createTextNode(Yc)),Ht.style.lineHeight="normal",Be.style.verticalAlign="super";var jn=Be.offsetTop-Ht.offsetTop+2;return Ln.removeChild(Ht),{baseline:ni,middle:jn}},Dt.prototype.getMetrics=function(Tt,Qt){var Ht=Tt+" "+Qt;return typeof this._data[Ht]=="undefined"&&(this._data[Ht]=this.parseMetrics(Tt,Qt)),this._data[Ht]},Dt}(),vc=function(){function Dt(Tt,Qt){this.context=Tt,this.options=Qt}return Dt}(),yc=1e4,ZA=function(Dt){bt(Tt,Dt);function Tt(Qt,Ht){var Be=Dt.call(this,Qt,Ht)||this;return Be._activeEffects=[],Be.canvas=Ht.canvas?Ht.canvas:document.createElement("canvas"),Be.ctx=Be.canvas.getContext("2d"),Ht.canvas||(Be.canvas.width=Math.floor(Ht.width*Ht.scale),Be.canvas.height=Math.floor(Ht.height*Ht.scale),Be.canvas.style.width=Ht.width+"px",Be.canvas.style.height=Ht.height+"px"),Be.fontMetrics=new Qh(document),Be.ctx.scale(Be.options.scale,Be.options.scale),Be.ctx.translate(-Ht.x,-Ht.y),Be.ctx.textBaseline="bottom",Be._activeEffects=[],Be.context.logger.debug("Canvas renderer initialized ("+Ht.width+"x"+Ht.height+") with scale "+Ht.scale),Be}return Tt.prototype.applyEffects=function(Qt){for(var Ht=this;this._activeEffects.length;)this.popEffect();Qt.forEach(function(Be){return Ht.applyEffect(Be)})},Tt.prototype.applyEffect=function(Qt){this.ctx.save(),$c(Qt)&&(this.ctx.globalAlpha=Qt.opacity),jl(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)),zu(Qt)&&(this.path(Qt.path),this.ctx.clip()),this._activeEffects.push(Qt)},Tt.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},Tt.prototype.renderStack=function(Qt){return ce(this,void 0,void 0,function(){var Ht;return ie(this,function(Be){switch(Be.label){case 0:return Ht=Qt.element.container.styles,Ht.isVisible()?[4,this.renderStackContent(Qt)]:[3,2];case 1:Be.sent(),Be.label=2;case 2:return[2]}})})},Tt.prototype.renderNode=function(Qt){return ce(this,void 0,void 0,function(){return ie(this,function(Ht){switch(Ht.label){case 0:if(wo(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]}})})},Tt.prototype.renderTextWithLetterSpacing=function(Qt,Ht,Be){var Je=this;if(Ht===0)this.ctx.fillText(Qt.text,Qt.bounds.left,Qt.bounds.top+Be);else{var Ln=sl(Qt.text);Ln.reduce(function(ni,jn){return Je.ctx.fillText(jn,ni,Qt.bounds.top+Be),ni+Je.ctx.measureText(jn).width},Qt.bounds.left)}},Tt.prototype.createFontStyle=function(Qt){var Ht=Qt.fontVariant.filter(function(Ln){return Ln==="normal"||Ln==="small-caps"}).join(""),Be=Sp(Qt.fontFamily).join(", "),Je=$a(Qt.fontSize)?""+Qt.fontSize.number+Qt.fontSize.unit:Qt.fontSize.number+"px";return[[Qt.fontStyle,Ht,Qt.fontWeight,Je,Be].join(" "),Be,Je]},Tt.prototype.renderTextNode=function(Qt,Ht){return ce(this,void 0,void 0,function(){var Be,Je,Ln,ni,jn,Di,Qi,xt,Rt=this;return ie(this,function(fe){return Be=this.createFontStyle(Ht),Je=Be[0],Ln=Be[1],ni=Be[2],this.ctx.font=Je,this.ctx.direction=Ht.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",jn=this.fontMetrics.getMetrics(Ln,ni),Di=jn.baseline,Qi=jn.middle,xt=Ht.paintOrder,Qt.textBounds.forEach(function(Pe){xt.forEach(function($e){switch($e){case 0:Rt.ctx.fillStyle=Aa(Ht.color),Rt.renderTextWithLetterSpacing(Pe,Ht.letterSpacing,Di);var pn=Ht.textShadow;pn.length&&Pe.text.trim().length&&(pn.slice(0).reverse().forEach(function(cn){Rt.ctx.shadowColor=Aa(cn.color),Rt.ctx.shadowOffsetX=cn.offsetX.number*Rt.options.scale,Rt.ctx.shadowOffsetY=cn.offsetY.number*Rt.options.scale,Rt.ctx.shadowBlur=cn.blur.number,Rt.renderTextWithLetterSpacing(Pe,Ht.letterSpacing,Di)}),Rt.ctx.shadowColor="",Rt.ctx.shadowOffsetX=0,Rt.ctx.shadowOffsetY=0,Rt.ctx.shadowBlur=0),Ht.textDecorationLine.length&&(Rt.ctx.fillStyle=Aa(Ht.textDecorationColor||Ht.color),Ht.textDecorationLine.forEach(function(cn){switch(cn){case 1:Rt.ctx.fillRect(Pe.bounds.left,Math.round(Pe.bounds.top+Di),Pe.bounds.width,1);break;case 2:Rt.ctx.fillRect(Pe.bounds.left,Math.round(Pe.bounds.top),Pe.bounds.width,1);break;case 3:Rt.ctx.fillRect(Pe.bounds.left,Math.ceil(Pe.bounds.top+Qi),Pe.bounds.width,1);break}}));break;case 1:Ht.webkitTextStrokeWidth&&Pe.text.trim().length&&(Rt.ctx.strokeStyle=Aa(Ht.webkitTextStrokeColor),Rt.ctx.lineWidth=Ht.webkitTextStrokeWidth,Rt.ctx.lineJoin=window.chrome?"miter":"round",Rt.ctx.strokeText(Pe.text,Pe.bounds.left,Pe.bounds.top+Di)),Rt.ctx.strokeStyle="",Rt.ctx.lineWidth=0,Rt.ctx.lineJoin="miter";break}})}),[2]})})},Tt.prototype.renderReplacedElement=function(Qt,Ht,Be){if(Be&&Qt.intrinsicWidth>0&&Qt.intrinsicHeight>0){var Je=Zf(Qt),Ln=Yd(Ht);this.path(Ln),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(Be,0,0,Qt.intrinsicWidth,Qt.intrinsicHeight,Je.left,Je.top,Je.width,Je.height),this.ctx.restore()}},Tt.prototype.renderNodeContent=function(Qt){return ce(this,void 0,void 0,function(){var Ht,Be,Je,Ln,ni,jn,xn,xn,Di,Qi,xt,Rt,Gn,fe,Pe,Bi,$e,pn,cn,xn,bn,Gn,Bi;return ie(this,function(Ni){switch(Ni.label){case 0:this.applyEffects(Qt.getEffects(4)),Ht=Qt.container,Be=Qt.curves,Je=Ht.styles,Ln=0,ni=Ht.textNodes,Ni.label=1;case 1:return Ln<ni.length?(jn=ni[Ln],[4,this.renderTextNode(jn,Je)]):[3,4];case 2:Ni.sent(),Ni.label=3;case 3:return Ln++,[3,1];case 4:if(!(Ht instanceof Xc))return[3,8];Ni.label=5;case 5:return Ni.trys.push([5,7,,8]),[4,this.context.cache.match(Ht.src)];case 6:return xn=Ni.sent(),this.renderReplacedElement(Ht,Be,xn),[3,8];case 7:return Ni.sent(),this.context.logger.error("Error loading image "+Ht.src),[3,8];case 8:if(Ht instanceof ic&&this.renderReplacedElement(Ht,Be,Ht.canvas),!(Ht instanceof Kd))return[3,12];Ni.label=9;case 9:return Ni.trys.push([9,11,,12]),[4,this.context.cache.match(Ht.svg)];case 10:return xn=Ni.sent(),this.renderReplacedElement(Ht,Be,xn),[3,12];case 11:return Ni.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 Tt(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=Ni.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),Ni.label=14;case 14:if(Ht instanceof Uh&&(xt=Math.min(Ht.bounds.width,Ht.bounds.height),Ht.type===Gd?Ht.checked&&(this.ctx.save(),this.path([new Oo(Ht.bounds.left+xt*.39363,Ht.bounds.top+xt*.79),new Oo(Ht.bounds.left+xt*.16,Ht.bounds.top+xt*.5549),new Oo(Ht.bounds.left+xt*.27347,Ht.bounds.top+xt*.44071),new Oo(Ht.bounds.left+xt*.39694,Ht.bounds.top+xt*.5649),new Oo(Ht.bounds.left+xt*.72983,Ht.bounds.top+xt*.23),new Oo(Ht.bounds.left+xt*.84,Ht.bounds.top+xt*.34085),new Oo(Ht.bounds.left+xt*.39363,Ht.bounds.top+xt*.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+xt/2,Ht.bounds.top+xt/2,xt/4,0,Math.PI*2,!0),this.ctx.fillStyle=Aa(hA),this.ctx.fill(),this.ctx.restore())),xp(Ht)&&Ht.value.length){switch(Rt=this.createFontStyle(Je),Gn=Rt[0],fe=Rt[1],Pe=this.fontMetrics.getMetrics(Gn,fe).baseline,this.ctx.font=Gn,this.ctx.fillStyle=Aa(Je.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Us(Ht.styles.textAlign),Bi=Zf(Ht),$e=0,Ht.styles.textAlign){case 1:$e+=Bi.width/2;break;case 2:$e+=Bi.width;break}pn=Bi.add($e,0,0,-Bi.height/2+1),this.ctx.save(),this.path([new Oo(Bi.left,Bi.top),new Oo(Bi.left+Bi.width,Bi.top),new Oo(Bi.left+Bi.width,Bi.top+Bi.height),new Oo(Bi.left,Bi.top+Bi.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new iu(Ht.value,pn),Je.letterSpacing,Pe),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!wo(Ht.styles.display,2048))return[3,20];if(Ht.styles.listStyleImage===null)return[3,19];if(cn=Ht.styles.listStyleImage,cn.type!==0)return[3,18];xn=void 0,bn=cn.url,Ni.label=15;case 15:return Ni.trys.push([15,17,,18]),[4,this.context.cache.match(bn)];case 16:return xn=Ni.sent(),this.ctx.drawImage(xn,Ht.bounds.left-(xn.width+10),Ht.bounds.top),[3,18];case 17:return Ni.sent(),this.context.logger.error("Error loading list-style-image "+bn),[3,18];case 18:return[3,20];case 19:Qt.listValue&&Ht.styles.listStyleType!==-1&&(Gn=this.createFontStyle(Je)[0],this.ctx.font=Gn,this.ctx.fillStyle=Aa(Je.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",Bi=new ee(Ht.bounds.left,Ht.bounds.top+il(Ht.styles.paddingTop,Ht.bounds.width),Ht.bounds.width,Dn(Je.lineHeight,Je.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new iu(Qt.listValue,Bi),Je.letterSpacing,Dn(Je.lineHeight,Je.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),Ni.label=20;case 20:return[2]}})})},Tt.prototype.renderStackContent=function(Qt){return ce(this,void 0,void 0,function(){var Ht,Be,cn,Je,Ln,cn,ni,jn,cn,Di,Qi,cn,xt,Rt,cn,fe,Pe,cn,$e,pn,cn;return ie(this,function(xn){switch(xn.label){case 0:if(wo(Qt.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(Qt.element)];case 1:xn.sent(),Ht=0,Be=Qt.negativeZIndex,xn.label=2;case 2:return Ht<Be.length?(cn=Be[Ht],[4,this.renderStack(cn)]):[3,5];case 3:xn.sent(),xn.label=4;case 4:return Ht++,[3,2];case 5:return[4,this.renderNodeContent(Qt.element)];case 6:xn.sent(),Je=0,Ln=Qt.nonInlineLevel,xn.label=7;case 7:return Je<Ln.length?(cn=Ln[Je],[4,this.renderNode(cn)]):[3,10];case 8:xn.sent(),xn.label=9;case 9:return Je++,[3,7];case 10:ni=0,jn=Qt.nonPositionedFloats,xn.label=11;case 11:return ni<jn.length?(cn=jn[ni],[4,this.renderStack(cn)]):[3,14];case 12:xn.sent(),xn.label=13;case 13:return ni++,[3,11];case 14:Di=0,Qi=Qt.nonPositionedInlineLevel,xn.label=15;case 15:return Di<Qi.length?(cn=Qi[Di],[4,this.renderStack(cn)]):[3,18];case 16:xn.sent(),xn.label=17;case 17:return Di++,[3,15];case 18:xt=0,Rt=Qt.inlineLevel,xn.label=19;case 19:return xt<Rt.length?(cn=Rt[xt],[4,this.renderNode(cn)]):[3,22];case 20:xn.sent(),xn.label=21;case 21:return xt++,[3,19];case 22:fe=0,Pe=Qt.zeroOrAutoZIndexOrTransformedOrOpacity,xn.label=23;case 23:return fe<Pe.length?(cn=Pe[fe],[4,this.renderStack(cn)]):[3,26];case 24:xn.sent(),xn.label=25;case 25:return fe++,[3,23];case 26:$e=0,pn=Qt.positiveZIndex,xn.label=27;case 27:return $e<pn.length?(cn=pn[$e],[4,this.renderStack(cn)]):[3,30];case 28:xn.sent(),xn.label=29;case 29:return $e++,[3,27];case 30:return[2]}})})},Tt.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()},Tt.prototype.path=function(Qt){this.ctx.beginPath(),this.formatPath(Qt),this.ctx.closePath()},Tt.prototype.formatPath=function(Qt){var Ht=this;Qt.forEach(function(Be,Je){var Ln=Dl(Be)?Be.start:Be;Je===0?Ht.ctx.moveTo(Ln.x,Ln.y):Ht.ctx.lineTo(Ln.x,Ln.y),Dl(Be)&&Ht.ctx.bezierCurveTo(Be.startControl.x,Be.startControl.y,Be.endControl.x,Be.endControl.y,Be.end.x,Be.end.y)})},Tt.prototype.renderRepeat=function(Qt,Ht,Be,Je){this.path(Qt),this.ctx.fillStyle=Ht,this.ctx.translate(Be,Je),this.ctx.fill(),this.ctx.translate(-Be,-Je)},Tt.prototype.resizeImage=function(Qt,Ht,Be){var Je;if(Qt.width===Ht&&Qt.height===Be)return Qt;var Ln=(Je=this.canvas.ownerDocument)!==null&&Je!==void 0?Je:document,ni=Ln.createElement("canvas");ni.width=Math.max(1,Ht),ni.height=Math.max(1,Be);var jn=ni.getContext("2d");return jn.drawImage(Qt,0,0,Qt.width,Qt.height,0,0,Ht,Be),ni},Tt.prototype.renderBackgroundImage=function(Qt){return ce(this,void 0,void 0,function(){var Ht,Be,Je,Ln,ni,jn;return ie(this,function(Di){switch(Di.label){case 0:Ht=Qt.styles.backgroundImage.length-1,Be=function(Qi){var xt,Rt,fe,Br,es,Wo,Ir,Jr,Ri,Pe,Br,es,Wo,Ir,Jr,$e,pn,cn,xn,bn,Gn,Bi,Ni,Yi,Ri,wr,Br,Ui,zi,Ir,Jr,eo,es,Wo,Ks,ei,fl,Ll,el,Ra,Ul,ja;return ie(this,function(la){switch(la.label){case 0:if(Qi.type!==0)return[3,5];xt=void 0,Rt=Qi.url,la.label=1;case 1:return la.trys.push([1,3,,4]),[4,Je.context.cache.match(Rt)];case 2:return xt=la.sent(),[3,4];case 3:return la.sent(),Je.context.logger.error("Error loading background-image "+Rt),[3,4];case 4:return xt&&(fe=WA(Qt,Ht,[xt.width,xt.height,xt.width/xt.height]),Br=fe[0],es=fe[1],Wo=fe[2],Ir=fe[3],Jr=fe[4],Ri=Je.ctx.createPattern(Je.resizeImage(xt,Ir,Jr),"repeat"),Je.renderRepeat(Br,Ri,es,Wo)),[3,6];case 5:yd(Qi)?(Pe=WA(Qt,Ht,[null,null,null]),Br=Pe[0],es=Pe[1],Wo=Pe[2],Ir=Pe[3],Jr=Pe[4],$e=tc(Qi.angle,Ir,Jr),pn=$e[0],cn=$e[1],xn=$e[2],bn=$e[3],Gn=$e[4],Bi=document.createElement("canvas"),Bi.width=Ir,Bi.height=Jr,Ni=Bi.getContext("2d"),Yi=Ni.createLinearGradient(cn,bn,xn,Gn),Vi(Qi.stops,pn).forEach(function(Ku){return Yi.addColorStop(Ku.stop,Aa(Ku.color))}),Ni.fillStyle=Yi,Ni.fillRect(0,0,Ir,Jr),Ir>0&&Jr>0&&(Ri=Je.ctx.createPattern(Bi,"repeat"),Je.renderRepeat(Br,Ri,es,Wo))):Ma(Qi)&&(wr=WA(Qt,Ht,[null,null,null]),Br=wr[0],Ui=wr[1],zi=wr[2],Ir=wr[3],Jr=wr[4],eo=Qi.position.length===0?[vd]:Qi.position,es=il(eo[0],Ir),Wo=il(eo[eo.length-1],Jr),Ks=Ah(Qi,es,Wo,Ir,Jr),ei=Ks[0],fl=Ks[1],ei>0&&fl>0&&(Ll=Je.ctx.createRadialGradient(Ui+es,zi+Wo,0,Ui+es,zi+Wo,ei),Vi(Qi.stops,ei*2).forEach(function(Ku){return Ll.addColorStop(Ku.stop,Aa(Ku.color))}),Je.path(Br),Je.ctx.fillStyle=Ll,ei!==fl?(el=Qt.bounds.left+.5*Qt.bounds.width,Ra=Qt.bounds.top+.5*Qt.bounds.height,Ul=fl/ei,ja=1/Ul,Je.ctx.save(),Je.ctx.translate(el,Ra),Je.ctx.transform(1,0,0,Ul,0,0),Je.ctx.translate(-el,-Ra),Je.ctx.fillRect(Ui,ja*(zi-Ra)+Ra,Ir,Jr*ja),Je.ctx.restore()):Je.ctx.fill())),la.label=6;case 6:return Ht--,[2]}})},Je=this,Ln=0,ni=Qt.styles.backgroundImage.slice(0).reverse(),Di.label=1;case 1:return Ln<ni.length?(jn=ni[Ln],[5,Be(jn)]):[3,4];case 2:Di.sent(),Di.label=3;case 3:return Ln++,[3,1];case 4:return[2]}})})},Tt.prototype.renderSolidBorder=function(Qt,Ht,Be){return ce(this,void 0,void 0,function(){return ie(this,function(Je){return this.path(GA(Be,Ht)),this.ctx.fillStyle=Aa(Qt),this.ctx.fill(),[2]})})},Tt.prototype.renderDoubleBorder=function(Qt,Ht,Be,Je){return ce(this,void 0,void 0,function(){var Ln,ni;return ie(this,function(jn){switch(jn.label){case 0:return Ht<3?[4,this.renderSolidBorder(Qt,Be,Je)]:[3,2];case 1:return jn.sent(),[2];case 2:return Ln=MA(Je,Be),this.path(Ln),this.ctx.fillStyle=Aa(Qt),this.ctx.fill(),ni=Vf(Je,Be),this.path(ni),this.ctx.fill(),[2]}})})},Tt.prototype.renderNodeBackgroundAndBorders=function(Qt){return ce(this,void 0,void 0,function(){var Ht,Be,Je,Ln,ni,jn,Di,Qi,xt=this;return ie(this,function(Rt){switch(Rt.label){case 0:return this.applyEffects(Qt.getEffects(2)),Ht=Qt.container.styles,Be=!Ha(Ht.backgroundColor)||Ht.backgroundImage.length,Je=[{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}],Ln=wf(Hh(Ht.backgroundClip,0),Qt.curves),Be||Ht.boxShadow.length?(this.ctx.save(),this.path(Ln),this.ctx.clip(),Ha(Ht.backgroundColor)||(this.ctx.fillStyle=Aa(Ht.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(Qt.container)]):[3,2];case 1:Rt.sent(),this.ctx.restore(),Ht.boxShadow.slice(0).reverse().forEach(function(fe){xt.ctx.save();var Pe=hh(Qt.curves),$e=fe.inset?0:yc,pn=Cg(Pe,-$e+(fe.inset?1:-1)*fe.spread.number,(fe.inset?1:-1)*fe.spread.number,fe.spread.number*(fe.inset?-2:2),fe.spread.number*(fe.inset?-2:2));fe.inset?(xt.path(Pe),xt.ctx.clip(),xt.mask(pn)):(xt.mask(Pe),xt.ctx.clip(),xt.path(pn)),xt.ctx.shadowOffsetX=fe.offsetX.number+$e,xt.ctx.shadowOffsetY=fe.offsetY.number,xt.ctx.shadowColor=Aa(fe.color),xt.ctx.shadowBlur=fe.blur.number,xt.ctx.fillStyle=fe.inset?Aa(fe.color):"rgba(0,0,0,1)",xt.ctx.fill(),xt.ctx.restore()}),Rt.label=2;case 2:ni=0,jn=0,Di=Je,Rt.label=3;case 3:return jn<Di.length?(Qi=Di[jn],Qi.style!==0&&!Ha(Qi.color)&&Qi.width>0?Qi.style!==2?[3,5]:[4,this.renderDashedDottedBorder(Qi.color,Qi.width,ni,Qt.curves,2)]:[3,11]):[3,13];case 4:return Rt.sent(),[3,11];case 5:return Qi.style!==3?[3,7]:[4,this.renderDashedDottedBorder(Qi.color,Qi.width,ni,Qt.curves,3)];case 6:return Rt.sent(),[3,11];case 7:return Qi.style!==4?[3,9]:[4,this.renderDoubleBorder(Qi.color,Qi.width,ni,Qt.curves)];case 8:return Rt.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Qi.color,ni,Qt.curves)];case 10:Rt.sent(),Rt.label=11;case 11:ni++,Rt.label=12;case 12:return jn++,[3,3];case 13:return[2]}})})},Tt.prototype.renderDashedDottedBorder=function(Qt,Ht,Be,Je,Ln){return ce(this,void 0,void 0,function(){var ni,jn,Di,Qi,xt,Rt,fe,Pe,$e,pn,cn,xn,bn,Gn,Bi,Ni,Bi,Ni;return ie(this,function(Yi){return this.ctx.save(),ni=fA(Je,Be),jn=GA(Je,Be),Ln===2&&(this.path(jn),this.ctx.clip()),Dl(jn[0])?(Di=jn[0].start.x,Qi=jn[0].start.y):(Di=jn[0].x,Qi=jn[0].y),Dl(jn[1])?(xt=jn[1].end.x,Rt=jn[1].end.y):(xt=jn[1].x,Rt=jn[1].y),Be===0||Be===2?fe=Math.abs(Di-xt):fe=Math.abs(Qi-Rt),this.ctx.beginPath(),Ln===3?this.formatPath(ni):this.formatPath(jn.slice(0,2)),Pe=Ht<3?Ht*3:Ht*2,$e=Ht<3?Ht*2:Ht,Ln===3&&(Pe=Ht,$e=Ht),pn=!0,fe<=Pe*2?pn=!1:fe<=Pe*2+$e?(cn=fe/(2*Pe+$e),Pe*=cn,$e*=cn):(xn=Math.floor((fe+$e)/(Pe+$e)),bn=(fe-xn*Pe)/(xn-1),Gn=(fe-(xn+1)*Pe)/xn,$e=Gn<=0||Math.abs($e-bn)<Math.abs($e-Gn)?bn:Gn),pn&&(Ln===3?this.ctx.setLineDash([0,Pe+$e]):this.ctx.setLineDash([Pe,$e])),Ln===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([]),Ln===2&&(Dl(jn[0])&&(Bi=jn[3],Ni=jn[0],this.ctx.beginPath(),this.formatPath([new Oo(Bi.end.x,Bi.end.y),new Oo(Ni.start.x,Ni.start.y)]),this.ctx.stroke()),Dl(jn[1])&&(Bi=jn[1],Ni=jn[2],this.ctx.beginPath(),this.formatPath([new Oo(Bi.end.x,Bi.end.y),new Oo(Ni.start.x,Ni.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},Tt.prototype.render=function(Qt){return ce(this,void 0,void 0,function(){var Ht;return ie(this,function(Be){switch(Be.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 Be.sent(),this.applyEffects([]),[2,this.canvas]}})})},Tt}(vc),xp=function(Dt){return Dt instanceof bd||Dt instanceof zA?!0:Dt instanceof Uh&&Dt.type!==pc&&Dt.type!==Gd},wf=function(Dt,Tt){switch(Dt){case 0:return hh(Tt);case 2:return lu(Tt);case 1:default:return Yd(Tt)}},Us=function(Dt){switch(Dt){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Gg=["-apple-system","system-ui"],Sp=function(Dt){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?Dt.filter(function(Tt){return Gg.indexOf(Tt)===-1}):Dt},xf=function(Dt){bt(Tt,Dt);function Tt(Qt,Ht){var Be=Dt.call(this,Qt,Ht)||this;return Be.canvas=Ht.canvas?Ht.canvas:document.createElement("canvas"),Be.ctx=Be.canvas.getContext("2d"),Be.options=Ht,Be.canvas.width=Math.floor(Ht.width*Ht.scale),Be.canvas.height=Math.floor(Ht.height*Ht.scale),Be.canvas.style.width=Ht.width+"px",Be.canvas.style.height=Ht.height+"px",Be.ctx.scale(Be.options.scale,Be.options.scale),Be.ctx.translate(-Ht.x,-Ht.y),Be.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+Ht.width+"x"+Ht.height+" at "+Ht.x+","+Ht.y+") with scale "+Ht.scale),Be}return Tt.prototype.render=function(Qt){return ce(this,void 0,void 0,function(){var Ht,Be;return ie(this,function(Je){switch(Je.label){case 0:return Ht=Pd(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 Be=Je.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(Be,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},Tt}(vc),IA=function(Dt){return new Promise(function(Tt,Qt){var Ht=new Image;Ht.onload=function(){Tt(Ht)},Ht.onerror=Qt,Ht.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(Dt))})},gA=function(){function Dt(Tt){var Qt=Tt.id,Ht=Tt.enabled;this.id=Qt,this.enabled=Ht,this.start=Date.now()}return Dt.prototype.debug=function(){for(var Tt=[],Qt=0;Qt<arguments.length;Qt++)Tt[Qt]=arguments[Qt];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Ie([this.id,this.getTime()+"ms"],Tt)):this.info.apply(this,Tt))},Dt.prototype.getTime=function(){return Date.now()-this.start},Dt.prototype.info=function(){for(var Tt=[],Qt=0;Qt<arguments.length;Qt++)Tt[Qt]=arguments[Qt];this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Ie([this.id,this.getTime()+"ms"],Tt))},Dt.prototype.warn=function(){for(var Tt=[],Qt=0;Qt<arguments.length;Qt++)Tt[Qt]=arguments[Qt];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Ie([this.id,this.getTime()+"ms"],Tt)):this.info.apply(this,Tt))},Dt.prototype.error=function(){for(var Tt=[],Qt=0;Qt<arguments.length;Qt++)Tt[Qt]=arguments[Qt];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,Ie([this.id,this.getTime()+"ms"],Tt)):this.info.apply(this,Tt))},Dt.instances={},Dt}(),cd=function(){function Dt(Tt,Qt){var Ht;this.windowBounds=Qt,this.instanceName="#"+Dt.instanceCount++,this.logger=new gA({id:this.instanceName,enabled:Tt.logging}),this.cache=(Ht=Tt.cache)!==null&&Ht!==void 0?Ht:new Js(this,Tt)}return Dt.instanceCount=1,Dt}(),bg=function(Dt,Tt){return Tt===void 0&&(Tt={}),Wg(Dt,Tt)};typeof window!="undefined"&&No.setContext(window);var Wg=function(Dt,Tt){return ce(void 0,void 0,void 0,function(){var Qt,Ht,Be,Je,Ln,ni,jn,Di,Qi,xt,Rt,fe,Pe,$e,pn,cn,xn,bn,Gn,Bi,Yi,Ni,Yi,Ri,wr,Br,Ui,zi,Ir,Jr,eo,es,Wo,Ks,ei,fl,Ll,el,Ra,Ul;return ie(this,function(ja){switch(ja.label){case 0:if(!Dt||typeof Dt!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(Qt=Dt.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 Be={allowTaint:(Ri=Tt.allowTaint)!==null&&Ri!==void 0?Ri:!1,imageTimeout:(wr=Tt.imageTimeout)!==null&&wr!==void 0?wr:15e3,proxy:Tt.proxy,useCORS:(Br=Tt.useCORS)!==null&&Br!==void 0?Br:!1},Je=Mt({logging:(Ui=Tt.logging)!==null&&Ui!==void 0?Ui:!0,cache:Tt.cache},Be),Ln={windowWidth:(zi=Tt.windowWidth)!==null&&zi!==void 0?zi:Ht.innerWidth,windowHeight:(Ir=Tt.windowHeight)!==null&&Ir!==void 0?Ir:Ht.innerHeight,scrollX:(Jr=Tt.scrollX)!==null&&Jr!==void 0?Jr:Ht.pageXOffset,scrollY:(eo=Tt.scrollY)!==null&&eo!==void 0?eo:Ht.pageYOffset},ni=new ee(Ln.scrollX,Ln.scrollY,Ln.windowWidth,Ln.windowHeight),jn=new cd(Je,ni),Di=(es=Tt.foreignObjectRendering)!==null&&es!==void 0?es:!1,Qi={allowTaint:(Wo=Tt.allowTaint)!==null&&Wo!==void 0?Wo:!1,onclone:Tt.onclone,ignoreElements:Tt.ignoreElements,inlineImages:Di,copyStyles:Di},jn.logger.debug("Starting document clone with size "+ni.width+"x"+ni.height+" scrolled to "+-ni.left+","+-ni.top),xt=new Bt(jn,Dt,Qi),Rt=xt.clonedReferenceElement,Rt?[4,xt.toIFrame(Qt,ni)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return fe=ja.sent(),Pe=js(Rt)||ba(Rt)?Nt(Rt.ownerDocument):Zt(jn,Rt),$e=Pe.width,pn=Pe.height,cn=Pe.left,xn=Pe.top,bn=Eg(jn,Rt,Tt.backgroundColor),Gn={canvas:Tt.canvas,backgroundColor:bn,scale:(ei=(Ks=Tt.scale)!==null&&Ks!==void 0?Ks:Ht.devicePixelRatio)!==null&&ei!==void 0?ei:1,x:((fl=Tt.x)!==null&&fl!==void 0?fl:0)+cn,y:((Ll=Tt.y)!==null&&Ll!==void 0?Ll:0)+xn,width:(el=Tt.width)!==null&&el!==void 0?el:Math.ceil($e),height:(Ra=Tt.height)!==null&&Ra!==void 0?Ra:Math.ceil(pn)},Di?(jn.logger.debug("Document cloned, using foreign object rendering"),Yi=new xf(jn,Gn),[4,Yi.render(Rt)]):[3,3];case 2:return Bi=ja.sent(),[3,5];case 3:return jn.logger.debug("Document cloned, element located at "+cn+","+xn+" with size "+$e+"x"+pn+" using computed rendering"),jn.logger.debug("Starting DOM parsing"),Ni=Ae(jn,Rt),bn===Ni.styles.backgroundColor&&(Ni.styles.backgroundColor=dh.TRANSPARENT),jn.logger.debug("Starting renderer for element at "+Gn.x+","+Gn.y+" with size "+Gn.width+"x"+Gn.height),Yi=new ZA(jn,Gn),[4,Yi.render(Ni)];case 4:Bi=ja.sent(),ja.label=5;case 5:return(!((Ul=Tt.removeContainer)!==null&&Ul!==void 0)||Ul)&&(Bt.destroy(fe)||jn.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),jn.logger.debug("Finished rendering"),[2,Bi]}})})},Eg=function(Dt,Tt,Qt){var Ht=Tt.ownerDocument,Be=Ht.documentElement?nd(Dt,getComputedStyle(Ht.documentElement).backgroundColor):dh.TRANSPARENT,Je=Ht.body?nd(Dt,getComputedStyle(Ht.body).backgroundColor):dh.TRANSPARENT,Ln=typeof Qt=="string"?nd(Dt,Qt):Qt===null?dh.TRANSPARENT:4294967295;return Tt===Ht.documentElement?Ha(Be)?Ha(Je)?Ln:Je:Be:Ln};return bg})},44164:function(hi,Cn,bt){var Mt=bt(97671);(function(ie,Ie){hi.exports=Ie(bt(7348),bt(64270))})(self,function(ce,ie){return function(){var Ie={"./src/plugin/hyperlinks.js":function(jt,qt,Pt){"use strict";Pt.r(qt);var re=Pt("./node_modules/core-js/modules/web.dom-collections.for-each.js"),Kt=Pt.n(re),Yt=Pt("./node_modules/core-js/modules/es.string.link.js"),Ct=Pt.n(Yt),et=Pt("./src/worker.js"),tt=Pt("./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 St=this.prop.container,It=St.querySelectorAll("a"),_t=(0,tt.unitConvert)(St.getBoundingClientRect(),this.prop.pageSize.k);lt=[],Array.prototype.forEach.call(It,function(Gt){for(var oe=Gt.getClientRects(),ue=0;ue<oe.length;ue++){var de=(0,tt.unitConvert)(oe[ue],this.prop.pageSize.k);de.left-=_t.left,de.top-=_t.top;var be=Math.floor(de.top/this.prop.pageSize.inner.height)+1,Jt=this.opt.margin[0]+de.top%this.prop.pageSize.inner.height,Ke=this.opt.margin[1]+de.left;lt.push({page:be,top:Jt,left:Ke,clientRect:de,link:Gt})}},this)}})},et.default.prototype.toPdf=function(){return rt.toPdf.call(this).then(function(){if(this.opt.enableLinks){lt.forEach(function(It){this.prop.pdf.setPage(It.page),this.prop.pdf.link(It.left,It.top,It.clientRect.width,It.clientRect.height,{url:It.link.href})},this);var St=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(St)}})}},"./src/plugin/jspdf-plugin.js":function(jt,qt,Pt){"use strict";Pt.r(qt);var re=Pt("./node_modules/core-js/modules/es.symbol.js"),Kt=Pt.n(re),Yt=Pt("./node_modules/core-js/modules/es.symbol.description.js"),Ct=Pt.n(Yt),et=Pt("./node_modules/core-js/modules/es.object.to-string.js"),tt=Pt.n(et),lt=Pt("./node_modules/core-js/modules/es.symbol.iterator.js"),rt=Pt.n(lt),ht=Pt("./node_modules/core-js/modules/es.array.iterator.js"),dt=Pt.n(ht),St=Pt("./node_modules/core-js/modules/es.string.iterator.js"),It=Pt.n(St),_t=Pt("./node_modules/core-js/modules/web.dom-collections.iterator.js"),Gt=Pt.n(_t),oe=Pt("jspdf"),ue=Pt.n(oe);function de(be){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?de=function(Ke){return typeof Ke}:de=function(Ke){return Ke&&typeof Symbol=="function"&&Ke.constructor===Symbol&&Ke!==Symbol.prototype?"symbol":typeof Ke},de(be)}oe.jsPDF.getPageSize=function(be,Jt,Ke){if(de(be)==="object"){var Wt=be;be=Wt.orientation,Jt=Wt.unit||Jt,Ke=Wt.format||Ke}Jt=Jt||"mm",Ke=Ke||"a4",be=(""+(be||"P")).toLowerCase();var Ge=(""+Ke).toLowerCase(),He={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(Jt){case"pt":var Me=1;break;case"mm":var Me=72/25.4;break;case"cm":var Me=72/2.54;break;case"in":var Me=72;break;case"px":var Me=72/96;break;case"pc":var Me=12;break;case"em":var Me=12;break;case"ex":var Me=6;break;default:throw"Invalid unit: "+Jt}if(He.hasOwnProperty(Ge))var We=He[Ge][1]/Me,_e=He[Ge][0]/Me;else try{var We=Ke[1],_e=Ke[0]}catch(Se){throw new Error("Invalid format: "+Ke)}if(be==="p"||be==="portrait"){if(be="p",_e>We){var ve=_e;_e=We,We=ve}}else if(be==="l"||be==="landscape"){if(be="l",We>_e){var ve=_e;_e=We,We=ve}}else throw"Invalid orientation: "+be;var ne={width:_e,height:We,unit:Jt,k:Me};return ne},qt.default=oe.jsPDF},"./src/plugin/pagebreaks.js":function(jt,qt,Pt){"use strict";Pt.r(qt);var re=Pt("./node_modules/core-js/modules/es.array.concat.js"),Kt=Pt.n(re),Yt=Pt("./node_modules/core-js/modules/es.array.slice.js"),Ct=Pt.n(Yt),et=Pt("./node_modules/core-js/modules/es.array.join.js"),tt=Pt.n(et),lt=Pt("./node_modules/core-js/modules/web.dom-collections.for-each.js"),rt=Pt.n(lt),ht=Pt("./node_modules/core-js/modules/es.object.keys.js"),dt=Pt.n(ht),St=Pt("./src/worker.js"),It=Pt("./src/utils.js"),_t={toContainer:St.default.prototype.toContainer};St.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},St.default.prototype.toContainer=function(){return _t.toContainer.call(this).then(function(){var ue=this.prop.container,de=this.prop.pageSize.inner.px.height,be=[].concat(this.opt.pagebreak.mode),Jt={avoidAll:be.indexOf("avoid-all")!==-1,css:be.indexOf("css")!==-1,legacy:be.indexOf("legacy")!==-1},Ke={},Wt=this;["before","after","avoid"].forEach(function(Me){var We=Jt.avoidAll&&Me==="avoid";Ke[Me]=We?[]:[].concat(Wt.opt.pagebreak[Me]||[]),Ke[Me].length>0&&(Ke[Me]=Array.prototype.slice.call(ue.querySelectorAll(Ke[Me].join(", "))))});var Ge=ue.querySelectorAll(".html2pdf__page-break");Ge=Array.prototype.slice.call(Ge);var He=ue.querySelectorAll("*");Array.prototype.forEach.call(He,function(We){var _e={before:!1,after:Jt.legacy&&Ge.indexOf(We)!==-1,avoid:Jt.avoidAll};if(Jt.css){var ve=window.getComputedStyle(We),ne=["always","page","left","right"],Se=["avoid","avoid-page"];_e={before:_e.before||ne.indexOf(ve.breakBefore||ve.pageBreakBefore)!==-1,after:_e.after||ne.indexOf(ve.breakAfter||ve.pageBreakAfter)!==-1,avoid:_e.avoid||Se.indexOf(ve.breakInside||ve.pageBreakInside)!==-1}}Object.keys(_e).forEach(function(fi){_e[fi]=_e[fi]||Ke[fi].indexOf(We)!==-1});var Pn=We.getBoundingClientRect();if(_e.avoid&&!_e.before){var Mn=Math.floor(Pn.top/de),Xe=Math.floor(Pn.bottom/de),Nn=Math.abs(Pn.bottom-Pn.top)/de;Xe!==Mn&&Nn<=1&&(_e.before=!0)}if(_e.before){var Zn=(0,It.createElement)("div",{style:{display:"block",height:de-Pn.top%de+"px"}});We.parentNode.insertBefore(Zn,We)}if(_e.after){var Zn=(0,It.createElement)("div",{style:{display:"block",height:de-Pn.bottom%de+"px"}});We.parentNode.insertBefore(Zn,We.nextSibling)}})})}},"./src/utils.js":function(jt,qt,Pt){"use strict";Pt.r(qt),Pt.d(qt,{objType:function(){return be},createElement:function(){return Jt},cloneNode:function(){return Ke},unitConvert:function(){return Wt},toPx:function(){return Ge}});var re=Pt("./node_modules/core-js/modules/es.number.constructor.js"),Kt=Pt.n(re),Yt=Pt("./node_modules/core-js/modules/es.symbol.js"),Ct=Pt.n(Yt),et=Pt("./node_modules/core-js/modules/es.symbol.description.js"),tt=Pt.n(et),lt=Pt("./node_modules/core-js/modules/es.object.to-string.js"),rt=Pt.n(lt),ht=Pt("./node_modules/core-js/modules/es.symbol.iterator.js"),dt=Pt.n(ht),St=Pt("./node_modules/core-js/modules/es.array.iterator.js"),It=Pt.n(St),_t=Pt("./node_modules/core-js/modules/es.string.iterator.js"),Gt=Pt.n(_t),oe=Pt("./node_modules/core-js/modules/web.dom-collections.iterator.js"),ue=Pt.n(oe);function de(He){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?de=function(We){return typeof We}:de=function(We){return We&&typeof Symbol=="function"&&We.constructor===Symbol&&We!==Symbol.prototype?"symbol":typeof We},de(He)}var be=function(Me){var We=de(Me);return We==="undefined"?"undefined":We==="string"||Me instanceof String?"string":We==="number"||Me instanceof Number?"number":We==="function"||Me instanceof Function?"function":Me&&Me.constructor===Array?"array":Me&&Me.nodeType===1?"element":We==="object"?"object":"unknown"},Jt=function(Me,We){var _e=document.createElement(Me);if(We.className&&(_e.className=We.className),We.innerHTML){_e.innerHTML=We.innerHTML;for(var ve=_e.getElementsByTagName("script"),ne=ve.length;ne-- >0;null)ve[ne].parentNode.removeChild(ve[ne])}for(var Se in We.style)_e.style[Se]=We.style[Se];return _e},Ke=function He(Me,We){for(var _e=Me.nodeType===3?document.createTextNode(Me.nodeValue):Me.cloneNode(!1),ve=Me.firstChild;ve;ve=ve.nextSibling)(We===!0||ve.nodeType!==1||ve.nodeName!=="SCRIPT")&&_e.appendChild(He(ve,We));return Me.nodeType===1&&(Me.nodeName==="CANVAS"?(_e.width=Me.width,_e.height=Me.height,_e.getContext("2d").drawImage(Me,0,0)):(Me.nodeName==="TEXTAREA"||Me.nodeName==="SELECT")&&(_e.value=Me.value),_e.addEventListener("load",function(){_e.scrollTop=Me.scrollTop,_e.scrollLeft=Me.scrollLeft},!0)),_e},Wt=function(Me,We){if(be(Me)==="number")return Me*72/96/We;var _e={};for(var ve in Me)_e[ve]=Me[ve]*72/96/We;return _e},Ge=function(Me,We){return Math.floor(Me*We/72*96)}},"./src/worker.js":function(jt,qt,Pt){"use strict";Pt.r(qt);var re=Pt("./node_modules/core-js/modules/es.object.assign.js"),Kt=Pt.n(re),Yt=Pt("./node_modules/core-js/modules/es.array.map.js"),Ct=Pt.n(Yt),et=Pt("./node_modules/core-js/modules/es.object.keys.js"),tt=Pt.n(et),lt=Pt("./node_modules/core-js/modules/es.array.concat.js"),rt=Pt.n(lt),ht=Pt("./node_modules/core-js/modules/es.object.to-string.js"),dt=Pt.n(ht),St=Pt("./node_modules/core-js/modules/es.regexp.to-string.js"),It=Pt.n(St),_t=Pt("./node_modules/core-js/modules/es.function.name.js"),Gt=Pt.n(_t),oe=Pt("./node_modules/core-js/modules/web.dom-collections.for-each.js"),ue=Pt.n(oe),de=Pt("jspdf"),be=Pt.n(de),Jt=Pt("html2canvas"),Ke=Pt.n(Jt),Wt=Pt("./src/utils.js"),Ge=Pt("./node_modules/es6-promise/dist/es6-promise.js"),He=Pt.n(Ge),Me=He().Promise,We=function _e(ve){var ne=Object.assign(_e.convert(Me.resolve()),JSON.parse(JSON.stringify(_e.template))),Se=_e.convert(Me.resolve(),ne);return Se=Se.setProgress(1,_e,1,[_e]),Se=Se.set(ve),Se};We.prototype=Object.create(Me.prototype),We.prototype.constructor=We,We.convert=function(ve,ne){return ve.__proto__=ne||We.prototype,ve},We.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:{}}},We.prototype.from=function(ve,ne){function Se(Pn){switch((0,Wt.objType)(Pn)){case"string":return"string";case"element":return Pn.nodeName.toLowerCase&&Pn.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){switch(ne=ne||Se(ve),ne){case"string":return this.set({src:(0,Wt.createElement)("div",{innerHTML:ve})});case"element":return this.set({src:ve});case"canvas":return this.set({canvas:ve});case"img":return this.set({img:ve});default:return this.error("Unknown source type.")}})},We.prototype.to=function(ve){switch(ve){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.")}},We.prototype.toContainer=function(){var ve=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(ve).then(function(){var Se={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},Pn={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};Se.opacity=0;var Mn=(0,Wt.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,Wt.createElement)("div",{className:"html2pdf__overlay",style:Se}),this.prop.container=(0,Wt.createElement)("div",{className:"html2pdf__container",style:Pn}),this.prop.container.appendChild(Mn),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},We.prototype.toCanvas=function(){var ve=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(ve).then(function(){var Se=Object.assign({},this.opt.html2canvas);return delete Se.onrendered,Jt(this.prop.container,Se)}).then(function(Se){var Pn=this.opt.html2canvas.onrendered||function(){};Pn(Se),this.prop.canvas=Se,document.body.removeChild(this.prop.overlay)})},We.prototype.toImg=function(){var ve=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(ve).then(function(){var Se=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=Se})},We.prototype.toPdf=function(){var ve=[function(){return this.prop.canvas||this.toCanvas()},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(ve).then(function(){var Se=this.prop.canvas,Pn=this.opt,Mn=Se.height,Xe=Math.floor(Se.width*this.prop.pageSize.inner.ratio),Nn=Math.ceil(Mn/Xe),Zn=this.prop.pageSize.inner.height,fi=document.createElement("canvas"),zn=fi.getContext("2d");fi.width=Se.width,fi.height=Xe,this.prop.pdf=this.prop.pdf||new de.jsPDF(Pn.jsPDF);for(var Si=0;Si<Nn;Si++){Si===Nn-1&&Mn%Xe!==0&&(fi.height=Mn%Xe,Zn=fi.height*this.prop.pageSize.inner.width/fi.width);var nn=fi.width,Fi=fi.height;zn.fillStyle="white",zn.fillRect(0,0,nn,Fi),zn.drawImage(Se,0,Si*Xe,nn,Fi,0,0,nn,Fi),Si&&this.prop.pdf.addPage();var Ti=fi.toDataURL("image/"+Pn.image.type,Pn.image.quality);this.prop.pdf.addImage(Ti,Pn.image.type,Pn.margin[1],Pn.margin[0],this.prop.pageSize.inner.width,Zn)}})},We.prototype.output=function(ve,ne,Se){return Se=Se||"pdf",Se.toLowerCase()==="img"||Se.toLowerCase()==="image"?this.outputImg(ve,ne):this.outputPdf(ve,ne)},We.prototype.outputPdf=function(ve,ne){var Se=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(Se).then(function(){return this.prop.pdf.output(ve,ne)})},We.prototype.outputImg=function(ve,ne){var Se=[function(){return this.prop.img||this.toImg()}];return this.thenList(Se).then(function(){switch(ve){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 "'+ve+'" is not supported.'}})},We.prototype.save=function(ve){var ne=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(ne).set(ve?{filename:ve}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},We.prototype.set=function(ve){if((0,Wt.objType)(ve)!=="object")return this;var ne=Object.keys(ve||{}).map(function(Se){switch(Se){case"margin":return this.setMargin.bind(this,ve.margin);case"jsPDF":return function(){return this.opt.jsPDF=ve.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,ve.pageSize);default:return Se in We.template.prop?function(){this.prop[Se]=ve[Se]}:function(){this.opt[Se]=ve[Se]}}},this);return this.then(function(){return this.thenList(ne)})},We.prototype.get=function(ve,ne){return this.then(function(){var Pn=ve in We.template.prop?this.prop[ve]:this.opt[ve];return ne?ne(Pn):Pn})},We.prototype.setMargin=function(ve){return this.then(function(){switch((0,Wt.objType)(ve)){case"number":ve=[ve,ve,ve,ve];case"array":if(ve.length===2&&(ve=[ve[0],ve[1],ve[0],ve[1]]),ve.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=ve}).then(this.setPageSize)},We.prototype.setPageSize=function(ve){return this.then(function(){ve=ve||de.jsPDF.getPageSize(this.opt.jsPDF),ve.hasOwnProperty("inner")||(ve.inner={width:ve.width-this.opt.margin[1]-this.opt.margin[3],height:ve.height-this.opt.margin[0]-this.opt.margin[2]},ve.inner.px={width:(0,Wt.toPx)(ve.inner.width,ve.k),height:(0,Wt.toPx)(ve.inner.height,ve.k)},ve.inner.ratio=ve.inner.height/ve.inner.width),this.prop.pageSize=ve})},We.prototype.setProgress=function(ve,ne,Se,Pn){return ve!=null&&(this.progress.val=ve),ne!=null&&(this.progress.state=ne),Se!=null&&(this.progress.n=Se),Pn!=null&&(this.progress.stack=Pn),this.progress.ratio=this.progress.val/this.progress.state,this},We.prototype.updateProgress=function(ve,ne,Se,Pn){return this.setProgress(ve?this.progress.val+ve:null,ne||null,Se?this.progress.n+Se:null,Pn?this.progress.stack.concat(Pn):null)},We.prototype.then=function(ve,ne){var Se=this;return this.thenCore(ve,ne,function(Mn,Xe){return Se.updateProgress(null,null,1,[Mn]),Me.prototype.then.call(this,function(Zn){return Se.updateProgress(null,Mn),Zn}).then(Mn,Xe).then(function(Zn){return Se.updateProgress(1),Zn})})},We.prototype.thenCore=function(ve,ne,Se){Se=Se||Me.prototype.then;var Pn=this;ve&&(ve=ve.bind(Pn)),ne&&(ne=ne.bind(Pn));var Mn=Me.toString().indexOf("[native code]")!==-1&&Me.name==="Promise",Xe=Mn?Pn:We.convert(Object.assign({},Pn),Me.prototype),Nn=Se.call(Xe,ve,ne);return We.convert(Nn,Pn.__proto__)},We.prototype.thenExternal=function(ve,ne){return Me.prototype.then.call(this,ve,ne)},We.prototype.thenList=function(ve){var ne=this;return ve.forEach(function(Pn){ne=ne.thenCore(Pn)}),ne},We.prototype.catch=function(_e){_e&&(_e=_e.bind(this));var ve=Me.prototype.catch.call(this,_e);return We.convert(ve,this)},We.prototype.catchExternal=function(ve){return Me.prototype.catch.call(this,ve)},We.prototype.error=function(ve){return this.then(function(){throw new Error(ve)})},We.prototype.using=We.prototype.set,We.prototype.saveAs=We.prototype.save,We.prototype.export=We.prototype.output,We.prototype.run=We.prototype.then,qt.default=We},"./node_modules/core-js/internals/a-function.js":function(jt){jt.exports=function(qt){if(typeof qt!="function")throw TypeError(String(qt)+" is not a function");return qt}},"./node_modules/core-js/internals/a-possible-prototype.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/is-object.js");jt.exports=function(Kt){if(!re(Kt)&&Kt!==null)throw TypeError("Can't set "+String(Kt)+" as a prototype");return Kt}},"./node_modules/core-js/internals/add-to-unscopables.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/well-known-symbol.js"),Kt=Pt("./node_modules/core-js/internals/object-create.js"),Yt=Pt("./node_modules/core-js/internals/object-define-property.js"),Ct=re("unscopables"),et=Array.prototype;et[Ct]==null&&Yt.f(et,Ct,{configurable:!0,value:Kt(null)}),jt.exports=function(tt){et[Ct][tt]=!0}},"./node_modules/core-js/internals/an-object.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/is-object.js");jt.exports=function(Kt){if(!re(Kt))throw TypeError(String(Kt)+" is not an object");return Kt}},"./node_modules/core-js/internals/array-for-each.js":function(jt,qt,Pt){"use strict";var re=Pt("./node_modules/core-js/internals/array-iteration.js").forEach,Kt=Pt("./node_modules/core-js/internals/array-method-is-strict.js"),Yt=Kt("forEach");jt.exports=Yt?[].forEach:function(et){return re(this,et,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/to-indexed-object.js"),Kt=Pt("./node_modules/core-js/internals/to-length.js"),Yt=Pt("./node_modules/core-js/internals/to-absolute-index.js"),Ct=function(et){return function(tt,lt,rt){var ht=re(tt),dt=Kt(ht.length),St=Yt(rt,dt),It;if(et&<!=lt){for(;dt>St;)if(It=ht[St++],It!=It)return!0}else for(;dt>St;St++)if((et||St in ht)&&ht[St]===lt)return et||St||0;return!et&&-1}};jt.exports={includes:Ct(!0),indexOf:Ct(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/function-bind-context.js"),Kt=Pt("./node_modules/core-js/internals/indexed-object.js"),Yt=Pt("./node_modules/core-js/internals/to-object.js"),Ct=Pt("./node_modules/core-js/internals/to-length.js"),et=Pt("./node_modules/core-js/internals/array-species-create.js"),tt=[].push,lt=function(rt){var ht=rt==1,dt=rt==2,St=rt==3,It=rt==4,_t=rt==6,Gt=rt==7,oe=rt==5||_t;return function(ue,de,be,Jt){for(var Ke=Yt(ue),Wt=Kt(Ke),Ge=re(de,be,3),He=Ct(Wt.length),Me=0,We=Jt||et,_e=ht?We(ue,He):dt||Gt?We(ue,0):void 0,ve,ne;He>Me;Me++)if((oe||Me in Wt)&&(ve=Wt[Me],ne=Ge(ve,Me,Ke),rt))if(ht)_e[Me]=ne;else if(ne)switch(rt){case 3:return!0;case 5:return ve;case 6:return Me;case 2:tt.call(_e,ve)}else switch(rt){case 4:return!1;case 7:tt.call(_e,ve)}return _t?-1:St||It?It:_e}};jt.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(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/fails.js"),Kt=Pt("./node_modules/core-js/internals/well-known-symbol.js"),Yt=Pt("./node_modules/core-js/internals/engine-v8-version.js"),Ct=Kt("species");jt.exports=function(et){return Yt>=51||!re(function(){var tt=[],lt=tt.constructor={};return lt[Ct]=function(){return{foo:1}},tt[et](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(jt,qt,Pt){"use strict";var re=Pt("./node_modules/core-js/internals/fails.js");jt.exports=function(Kt,Yt){var Ct=[][Kt];return!!Ct&&re(function(){Ct.call(null,Yt||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/is-object.js"),Kt=Pt("./node_modules/core-js/internals/is-array.js"),Yt=Pt("./node_modules/core-js/internals/well-known-symbol.js"),Ct=Yt("species");jt.exports=function(et){var tt;return Kt(et)&&(tt=et.constructor,typeof tt=="function"&&(tt===Array||Kt(tt.prototype))?tt=void 0:re(tt)&&(tt=tt[Ct],tt===null&&(tt=void 0))),tt===void 0?Array:tt}},"./node_modules/core-js/internals/array-species-create.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/array-species-constructor.js");jt.exports=function(Kt,Yt){return new(re(Kt))(Yt===0?0:Yt)}},"./node_modules/core-js/internals/classof-raw.js":function(jt){var qt={}.toString;jt.exports=function(Pt){return qt.call(Pt).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/to-string-tag-support.js"),Kt=Pt("./node_modules/core-js/internals/classof-raw.js"),Yt=Pt("./node_modules/core-js/internals/well-known-symbol.js"),Ct=Yt("toStringTag"),et=Kt(function(){return arguments}())=="Arguments",tt=function(lt,rt){try{return lt[rt]}catch(ht){}};jt.exports=re?Kt:function(lt){var rt,ht,dt;return lt===void 0?"Undefined":lt===null?"Null":typeof(ht=tt(rt=Object(lt),Ct))=="string"?ht:et?Kt(rt):(dt=Kt(rt))=="Object"&&typeof rt.callee=="function"?"Arguments":dt}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/has.js"),Kt=Pt("./node_modules/core-js/internals/own-keys.js"),Yt=Pt("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),Ct=Pt("./node_modules/core-js/internals/object-define-property.js");jt.exports=function(et,tt){for(var lt=Kt(tt),rt=Ct.f,ht=Yt.f,dt=0;dt<lt.length;dt++){var St=lt[dt];re(et,St)||rt(et,St,ht(tt,St))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/fails.js");jt.exports=!re(function(){function Kt(){}return Kt.prototype.constructor=null,Object.getPrototypeOf(new Kt)!==Kt.prototype})},"./node_modules/core-js/internals/create-html.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/require-object-coercible.js"),Kt=Pt("./node_modules/core-js/internals/to-string.js"),Yt=/"/g;jt.exports=function(Ct,et,tt,lt){var rt=Kt(re(Ct)),ht="<"+et;return tt!==""&&(ht+=" "+tt+'="'+Kt(lt).replace(Yt,""")+'"'),ht+">"+rt+"</"+et+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(jt,qt,Pt){"use strict";var re=Pt("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,Kt=Pt("./node_modules/core-js/internals/object-create.js"),Yt=Pt("./node_modules/core-js/internals/create-property-descriptor.js"),Ct=Pt("./node_modules/core-js/internals/set-to-string-tag.js"),et=Pt("./node_modules/core-js/internals/iterators.js"),tt=function(){return this};jt.exports=function(lt,rt,ht){var dt=rt+" Iterator";return lt.prototype=Kt(re,{next:Yt(1,ht)}),Ct(lt,dt,!1,!0),et[dt]=tt,lt}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/descriptors.js"),Kt=Pt("./node_modules/core-js/internals/object-define-property.js"),Yt=Pt("./node_modules/core-js/internals/create-property-descriptor.js");jt.exports=re?function(Ct,et,tt){return Kt.f(Ct,et,Yt(1,tt))}:function(Ct,et,tt){return Ct[et]=tt,Ct}},"./node_modules/core-js/internals/create-property-descriptor.js":function(jt){jt.exports=function(qt,Pt){return{enumerable:!(qt&1),configurable:!(qt&2),writable:!(qt&4),value:Pt}}},"./node_modules/core-js/internals/create-property.js":function(jt,qt,Pt){"use strict";var re=Pt("./node_modules/core-js/internals/to-property-key.js"),Kt=Pt("./node_modules/core-js/internals/object-define-property.js"),Yt=Pt("./node_modules/core-js/internals/create-property-descriptor.js");jt.exports=function(Ct,et,tt){var lt=re(et);lt in Ct?Kt.f(Ct,lt,Yt(0,tt)):Ct[lt]=tt}},"./node_modules/core-js/internals/define-iterator.js":function(jt,qt,Pt){"use strict";var re=Pt("./node_modules/core-js/internals/export.js"),Kt=Pt("./node_modules/core-js/internals/create-iterator-constructor.js"),Yt=Pt("./node_modules/core-js/internals/object-get-prototype-of.js"),Ct=Pt("./node_modules/core-js/internals/object-set-prototype-of.js"),et=Pt("./node_modules/core-js/internals/set-to-string-tag.js"),tt=Pt("./node_modules/core-js/internals/create-non-enumerable-property.js"),lt=Pt("./node_modules/core-js/internals/redefine.js"),rt=Pt("./node_modules/core-js/internals/well-known-symbol.js"),ht=Pt("./node_modules/core-js/internals/is-pure.js"),dt=Pt("./node_modules/core-js/internals/iterators.js"),St=Pt("./node_modules/core-js/internals/iterators-core.js"),It=St.IteratorPrototype,_t=St.BUGGY_SAFARI_ITERATORS,Gt=rt("iterator"),oe="keys",ue="values",de="entries",be=function(){return this};jt.exports=function(Jt,Ke,Wt,Ge,He,Me,We){Kt(Wt,Ke,Ge);var _e=function(zn){if(zn===He&&Mn)return Mn;if(!_t&&zn in Se)return Se[zn];switch(zn){case oe:return function(){return new Wt(this,zn)};case ue:return function(){return new Wt(this,zn)};case de:return function(){return new Wt(this,zn)}}return function(){return new Wt(this)}},ve=Ke+" Iterator",ne=!1,Se=Jt.prototype,Pn=Se[Gt]||Se["@@iterator"]||He&&Se[He],Mn=!_t&&Pn||_e(He),Xe=Ke=="Array"&&Se.entries||Pn,Nn,Zn,fi;if(Xe&&(Nn=Yt(Xe.call(new Jt)),It!==Object.prototype&&Nn.next&&(!ht&&Yt(Nn)!==It&&(Ct?Ct(Nn,It):typeof Nn[Gt]!="function"&&tt(Nn,Gt,be)),et(Nn,ve,!0,!0),ht&&(dt[ve]=be))),He==ue&&Pn&&Pn.name!==ue&&(ne=!0,Mn=function(){return Pn.call(this)}),(!ht||We)&&Se[Gt]!==Mn&&tt(Se,Gt,Mn),dt[Ke]=Mn,He)if(Zn={values:_e(ue),keys:Me?Mn:_e(oe),entries:_e(de)},We)for(fi in Zn)(_t||ne||!(fi in Se))&<(Se,fi,Zn[fi]);else re({target:Ke,proto:!0,forced:_t||ne},Zn);return Zn}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/path.js"),Kt=Pt("./node_modules/core-js/internals/has.js"),Yt=Pt("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),Ct=Pt("./node_modules/core-js/internals/object-define-property.js").f;jt.exports=function(et){var tt=re.Symbol||(re.Symbol={});Kt(tt,et)||Ct(tt,et,{value:Yt.f(et)})}},"./node_modules/core-js/internals/descriptors.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/fails.js");jt.exports=!re(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/global.js"),Kt=Pt("./node_modules/core-js/internals/is-object.js"),Yt=re.document,Ct=Kt(Yt)&&Kt(Yt.createElement);jt.exports=function(et){return Ct?Yt.createElement(et):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(jt){jt.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(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/get-built-in.js");jt.exports=re("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/global.js"),Kt=Pt("./node_modules/core-js/internals/engine-user-agent.js"),Yt=re.process,Ct=re.Deno,et=Yt&&Yt.versions||Ct&&Ct.version,tt=et&&et.v8,lt,rt;tt?(lt=tt.split("."),rt=lt[0]<4?1:lt[0]+lt[1]):Kt&&(lt=Kt.match(/Edge\/(\d+)/),(!lt||lt[1]>=74)&&(lt=Kt.match(/Chrome\/(\d+)/),lt&&(rt=lt[1]))),jt.exports=rt&&+rt},"./node_modules/core-js/internals/enum-bug-keys.js":function(jt){jt.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/global.js"),Kt=Pt("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,Yt=Pt("./node_modules/core-js/internals/create-non-enumerable-property.js"),Ct=Pt("./node_modules/core-js/internals/redefine.js"),et=Pt("./node_modules/core-js/internals/set-global.js"),tt=Pt("./node_modules/core-js/internals/copy-constructor-properties.js"),lt=Pt("./node_modules/core-js/internals/is-forced.js");jt.exports=function(rt,ht){var dt=rt.target,St=rt.global,It=rt.stat,_t,Gt,oe,ue,de,be;if(St?Gt=re:It?Gt=re[dt]||et(dt,{}):Gt=(re[dt]||{}).prototype,Gt)for(oe in ht){if(de=ht[oe],rt.noTargetGet?(be=Kt(Gt,oe),ue=be&&be.value):ue=Gt[oe],_t=lt(St?oe:dt+(It?".":"#")+oe,rt.forced),!_t&&ue!==void 0){if(typeof de==typeof ue)continue;tt(de,ue)}(rt.sham||ue&&ue.sham)&&Yt(de,"sham",!0),Ct(Gt,oe,de,rt)}}},"./node_modules/core-js/internals/fails.js":function(jt){jt.exports=function(qt){try{return!!qt()}catch(Pt){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/a-function.js");jt.exports=function(Kt,Yt,Ct){if(re(Kt),Yt===void 0)return Kt;switch(Ct){case 0:return function(){return Kt.call(Yt)};case 1:return function(et){return Kt.call(Yt,et)};case 2:return function(et,tt){return Kt.call(Yt,et,tt)};case 3:return function(et,tt,lt){return Kt.call(Yt,et,tt,lt)}}return function(){return Kt.apply(Yt,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/global.js"),Kt=function(Yt){return typeof Yt=="function"?Yt:void 0};jt.exports=function(Yt,Ct){return arguments.length<2?Kt(re[Yt]):re[Yt]&&re[Yt][Ct]}},"./node_modules/core-js/internals/global.js":function(jt){var qt=function(Pt){return Pt&&Pt.Math==Math&&Pt};jt.exports=qt(typeof globalThis=="object"&&globalThis)||qt(typeof window=="object"&&window)||qt(typeof self=="object"&&self)||qt(typeof bt.g=="object"&&bt.g)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/to-object.js"),Kt={}.hasOwnProperty;jt.exports=Object.hasOwn||function(Ct,et){return Kt.call(re(Ct),et)}},"./node_modules/core-js/internals/hidden-keys.js":function(jt){jt.exports={}},"./node_modules/core-js/internals/html.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/get-built-in.js");jt.exports=re("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/descriptors.js"),Kt=Pt("./node_modules/core-js/internals/fails.js"),Yt=Pt("./node_modules/core-js/internals/document-create-element.js");jt.exports=!re&&!Kt(function(){return Object.defineProperty(Yt("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/fails.js"),Kt=Pt("./node_modules/core-js/internals/classof-raw.js"),Yt="".split;jt.exports=re(function(){return!Object("z").propertyIsEnumerable(0)})?function(Ct){return Kt(Ct)=="String"?Yt.call(Ct,""):Object(Ct)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/is-object.js"),Kt=Pt("./node_modules/core-js/internals/object-set-prototype-of.js");jt.exports=function(Yt,Ct,et){var tt,lt;return Kt&&typeof(tt=Ct.constructor)=="function"&&tt!==et&&re(lt=tt.prototype)&<!==et.prototype&&Kt(Yt,lt),Yt}},"./node_modules/core-js/internals/inspect-source.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/shared-store.js"),Kt=Function.toString;typeof re.inspectSource!="function"&&(re.inspectSource=function(Yt){return Kt.call(Yt)}),jt.exports=re.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/native-weak-map.js"),Kt=Pt("./node_modules/core-js/internals/global.js"),Yt=Pt("./node_modules/core-js/internals/is-object.js"),Ct=Pt("./node_modules/core-js/internals/create-non-enumerable-property.js"),et=Pt("./node_modules/core-js/internals/has.js"),tt=Pt("./node_modules/core-js/internals/shared-store.js"),lt=Pt("./node_modules/core-js/internals/shared-key.js"),rt=Pt("./node_modules/core-js/internals/hidden-keys.js"),ht="Object already initialized",dt=Kt.WeakMap,St,It,_t,Gt=function(Wt){return _t(Wt)?It(Wt):St(Wt,{})},oe=function(Wt){return function(Ge){var He;if(!Yt(Ge)||(He=It(Ge)).type!==Wt)throw TypeError("Incompatible receiver, "+Wt+" required");return He}};if(re||tt.state){var ue=tt.state||(tt.state=new dt),de=ue.get,be=ue.has,Jt=ue.set;St=function(Wt,Ge){if(be.call(ue,Wt))throw new TypeError(ht);return Ge.facade=Wt,Jt.call(ue,Wt,Ge),Ge},It=function(Wt){return de.call(ue,Wt)||{}},_t=function(Wt){return be.call(ue,Wt)}}else{var Ke=lt("state");rt[Ke]=!0,St=function(Wt,Ge){if(et(Wt,Ke))throw new TypeError(ht);return Ge.facade=Wt,Ct(Wt,Ke,Ge),Ge},It=function(Wt){return et(Wt,Ke)?Wt[Ke]:{}},_t=function(Wt){return et(Wt,Ke)}}jt.exports={set:St,get:It,has:_t,enforce:Gt,getterFor:oe}},"./node_modules/core-js/internals/is-array.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/classof-raw.js");jt.exports=Array.isArray||function(Yt){return re(Yt)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/fails.js"),Kt=/#|\.prototype\./,Yt=function(rt,ht){var dt=et[Ct(rt)];return dt==lt?!0:dt==tt?!1:typeof ht=="function"?re(ht):!!ht},Ct=Yt.normalize=function(rt){return String(rt).replace(Kt,".").toLowerCase()},et=Yt.data={},tt=Yt.NATIVE="N",lt=Yt.POLYFILL="P";jt.exports=Yt},"./node_modules/core-js/internals/is-object.js":function(jt){jt.exports=function(qt){return typeof qt=="object"?qt!==null:typeof qt=="function"}},"./node_modules/core-js/internals/is-pure.js":function(jt){jt.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/get-built-in.js"),Kt=Pt("./node_modules/core-js/internals/use-symbol-as-uid.js");jt.exports=Kt?function(Yt){return typeof Yt=="symbol"}:function(Yt){var Ct=re("Symbol");return typeof Ct=="function"&&Object(Yt)instanceof Ct}},"./node_modules/core-js/internals/iterators-core.js":function(jt,qt,Pt){"use strict";var re=Pt("./node_modules/core-js/internals/fails.js"),Kt=Pt("./node_modules/core-js/internals/object-get-prototype-of.js"),Yt=Pt("./node_modules/core-js/internals/create-non-enumerable-property.js"),Ct=Pt("./node_modules/core-js/internals/has.js"),et=Pt("./node_modules/core-js/internals/well-known-symbol.js"),tt=Pt("./node_modules/core-js/internals/is-pure.js"),lt=et("iterator"),rt=!1,ht=function(){return this},dt,St,It;[].keys&&(It=[].keys(),"next"in It?(St=Kt(Kt(It)),St!==Object.prototype&&(dt=St)):rt=!0);var _t=dt==null||re(function(){var Gt={};return dt[lt].call(Gt)!==Gt});_t&&(dt={}),(!tt||_t)&&!Ct(dt,lt)&&Yt(dt,lt,ht),jt.exports={IteratorPrototype:dt,BUGGY_SAFARI_ITERATORS:rt}},"./node_modules/core-js/internals/iterators.js":function(jt){jt.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/engine-v8-version.js"),Kt=Pt("./node_modules/core-js/internals/fails.js");jt.exports=!!Object.getOwnPropertySymbols&&!Kt(function(){var Yt=Symbol();return!String(Yt)||!(Object(Yt)instanceof Symbol)||!Symbol.sham&&re&&re<41})},"./node_modules/core-js/internals/native-weak-map.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/global.js"),Kt=Pt("./node_modules/core-js/internals/inspect-source.js"),Yt=re.WeakMap;jt.exports=typeof Yt=="function"&&/native code/.test(Kt(Yt))},"./node_modules/core-js/internals/object-assign.js":function(jt,qt,Pt){"use strict";var re=Pt("./node_modules/core-js/internals/descriptors.js"),Kt=Pt("./node_modules/core-js/internals/fails.js"),Yt=Pt("./node_modules/core-js/internals/object-keys.js"),Ct=Pt("./node_modules/core-js/internals/object-get-own-property-symbols.js"),et=Pt("./node_modules/core-js/internals/object-property-is-enumerable.js"),tt=Pt("./node_modules/core-js/internals/to-object.js"),lt=Pt("./node_modules/core-js/internals/indexed-object.js"),rt=Object.assign,ht=Object.defineProperty;jt.exports=!rt||Kt(function(){if(re&&rt({b:1},rt(ht({},"a",{enumerable:!0,get:function(){ht(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var dt={},St={},It=Symbol(),_t="abcdefghijklmnopqrst";return dt[It]=7,_t.split("").forEach(function(Gt){St[Gt]=Gt}),rt({},dt)[It]!=7||Yt(rt({},St)).join("")!=_t})?function(St,It){for(var _t=tt(St),Gt=arguments.length,oe=1,ue=Ct.f,de=et.f;Gt>oe;)for(var be=lt(arguments[oe++]),Jt=ue?Yt(be).concat(ue(be)):Yt(be),Ke=Jt.length,Wt=0,Ge;Ke>Wt;)Ge=Jt[Wt++],(!re||de.call(be,Ge))&&(_t[Ge]=be[Ge]);return _t}:rt},"./node_modules/core-js/internals/object-create.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/an-object.js"),Kt=Pt("./node_modules/core-js/internals/object-define-properties.js"),Yt=Pt("./node_modules/core-js/internals/enum-bug-keys.js"),Ct=Pt("./node_modules/core-js/internals/hidden-keys.js"),et=Pt("./node_modules/core-js/internals/html.js"),tt=Pt("./node_modules/core-js/internals/document-create-element.js"),lt=Pt("./node_modules/core-js/internals/shared-key.js"),rt=">",ht="<",dt="prototype",St="script",It=lt("IE_PROTO"),_t=function(){},Gt=function(Jt){return ht+St+rt+Jt+ht+"/"+St+rt},oe=function(Jt){Jt.write(Gt("")),Jt.close();var Ke=Jt.parentWindow.Object;return Jt=null,Ke},ue=function(){var Jt=tt("iframe"),Ke="java"+St+":",Wt;if(Jt.style)return Jt.style.display="none",et.appendChild(Jt),Jt.src=String(Ke),Wt=Jt.contentWindow.document,Wt.open(),Wt.write(Gt("document.F=Object")),Wt.close(),Wt.F},de,be=function(){try{de=new ActiveXObject("htmlfile")}catch(Ke){}be=document.domain&&de?oe(de):ue()||oe(de);for(var Jt=Yt.length;Jt--;)delete be[dt][Yt[Jt]];return be()};Ct[It]=!0,jt.exports=Object.create||function(Ke,Wt){var Ge;return Ke!==null?(_t[dt]=re(Ke),Ge=new _t,_t[dt]=null,Ge[It]=Ke):Ge=be(),Wt===void 0?Ge:Kt(Ge,Wt)}},"./node_modules/core-js/internals/object-define-properties.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/descriptors.js"),Kt=Pt("./node_modules/core-js/internals/object-define-property.js"),Yt=Pt("./node_modules/core-js/internals/an-object.js"),Ct=Pt("./node_modules/core-js/internals/object-keys.js");jt.exports=re?Object.defineProperties:function(tt,lt){Yt(tt);for(var rt=Ct(lt),ht=rt.length,dt=0,St;ht>dt;)Kt.f(tt,St=rt[dt++],lt[St]);return tt}},"./node_modules/core-js/internals/object-define-property.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/descriptors.js"),Kt=Pt("./node_modules/core-js/internals/ie8-dom-define.js"),Yt=Pt("./node_modules/core-js/internals/an-object.js"),Ct=Pt("./node_modules/core-js/internals/to-property-key.js"),et=Object.defineProperty;qt.f=re?et:function(lt,rt,ht){if(Yt(lt),rt=Ct(rt),Yt(ht),Kt)try{return et(lt,rt,ht)}catch(dt){}if("get"in ht||"set"in ht)throw TypeError("Accessors not supported");return"value"in ht&&(lt[rt]=ht.value),lt}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/descriptors.js"),Kt=Pt("./node_modules/core-js/internals/object-property-is-enumerable.js"),Yt=Pt("./node_modules/core-js/internals/create-property-descriptor.js"),Ct=Pt("./node_modules/core-js/internals/to-indexed-object.js"),et=Pt("./node_modules/core-js/internals/to-property-key.js"),tt=Pt("./node_modules/core-js/internals/has.js"),lt=Pt("./node_modules/core-js/internals/ie8-dom-define.js"),rt=Object.getOwnPropertyDescriptor;qt.f=re?rt:function(dt,St){if(dt=Ct(dt),St=et(St),lt)try{return rt(dt,St)}catch(It){}if(tt(dt,St))return Yt(!Kt.f.call(dt,St),dt[St])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/to-indexed-object.js"),Kt=Pt("./node_modules/core-js/internals/object-get-own-property-names.js").f,Yt={}.toString,Ct=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],et=function(tt){try{return Kt(tt)}catch(lt){return Ct.slice()}};jt.exports.f=function(lt){return Ct&&Yt.call(lt)=="[object Window]"?et(lt):Kt(re(lt))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/object-keys-internal.js"),Kt=Pt("./node_modules/core-js/internals/enum-bug-keys.js"),Yt=Kt.concat("length","prototype");qt.f=Object.getOwnPropertyNames||function(et){return re(et,Yt)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(jt,qt){qt.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/has.js"),Kt=Pt("./node_modules/core-js/internals/to-object.js"),Yt=Pt("./node_modules/core-js/internals/shared-key.js"),Ct=Pt("./node_modules/core-js/internals/correct-prototype-getter.js"),et=Yt("IE_PROTO"),tt=Object.prototype;jt.exports=Ct?Object.getPrototypeOf:function(lt){return lt=Kt(lt),re(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(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/has.js"),Kt=Pt("./node_modules/core-js/internals/to-indexed-object.js"),Yt=Pt("./node_modules/core-js/internals/array-includes.js").indexOf,Ct=Pt("./node_modules/core-js/internals/hidden-keys.js");jt.exports=function(et,tt){var lt=Kt(et),rt=0,ht=[],dt;for(dt in lt)!re(Ct,dt)&&re(lt,dt)&&ht.push(dt);for(;tt.length>rt;)re(lt,dt=tt[rt++])&&(~Yt(ht,dt)||ht.push(dt));return ht}},"./node_modules/core-js/internals/object-keys.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/object-keys-internal.js"),Kt=Pt("./node_modules/core-js/internals/enum-bug-keys.js");jt.exports=Object.keys||function(Ct){return re(Ct,Kt)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(jt,qt){"use strict";var Pt={}.propertyIsEnumerable,re=Object.getOwnPropertyDescriptor,Kt=re&&!Pt.call({1:2},1);qt.f=Kt?function(Ct){var et=re(this,Ct);return!!et&&et.enumerable}:Pt},"./node_modules/core-js/internals/object-set-prototype-of.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/an-object.js"),Kt=Pt("./node_modules/core-js/internals/a-possible-prototype.js");jt.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var Yt=!1,Ct={},et;try{et=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,et.call(Ct,[]),Yt=Ct instanceof Array}catch(tt){}return function(lt,rt){return re(lt),Kt(rt),Yt?et.call(lt,rt):lt.__proto__=rt,lt}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(jt,qt,Pt){"use strict";var re=Pt("./node_modules/core-js/internals/to-string-tag-support.js"),Kt=Pt("./node_modules/core-js/internals/classof.js");jt.exports=re?{}.toString:function(){return"[object "+Kt(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/is-object.js");jt.exports=function(Kt,Yt){var Ct,et;if(Yt==="string"&&typeof(Ct=Kt.toString)=="function"&&!re(et=Ct.call(Kt))||typeof(Ct=Kt.valueOf)=="function"&&!re(et=Ct.call(Kt))||Yt!=="string"&&typeof(Ct=Kt.toString)=="function"&&!re(et=Ct.call(Kt)))return et;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/get-built-in.js"),Kt=Pt("./node_modules/core-js/internals/object-get-own-property-names.js"),Yt=Pt("./node_modules/core-js/internals/object-get-own-property-symbols.js"),Ct=Pt("./node_modules/core-js/internals/an-object.js");jt.exports=re("Reflect","ownKeys")||function(tt){var lt=Kt.f(Ct(tt)),rt=Yt.f;return rt?lt.concat(rt(tt)):lt}},"./node_modules/core-js/internals/path.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/global.js");jt.exports=re},"./node_modules/core-js/internals/redefine.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/global.js"),Kt=Pt("./node_modules/core-js/internals/create-non-enumerable-property.js"),Yt=Pt("./node_modules/core-js/internals/has.js"),Ct=Pt("./node_modules/core-js/internals/set-global.js"),et=Pt("./node_modules/core-js/internals/inspect-source.js"),tt=Pt("./node_modules/core-js/internals/internal-state.js"),lt=tt.get,rt=tt.enforce,ht=String(String).split("String");(jt.exports=function(dt,St,It,_t){var Gt=_t?!!_t.unsafe:!1,oe=_t?!!_t.enumerable:!1,ue=_t?!!_t.noTargetGet:!1,de;if(typeof It=="function"&&(typeof St=="string"&&!Yt(It,"name")&&Kt(It,"name",St),de=rt(It),de.source||(de.source=ht.join(typeof St=="string"?St:""))),dt===re){oe?dt[St]=It:Ct(St,It);return}else Gt?!ue&&dt[St]&&(oe=!0):delete dt[St];oe?dt[St]=It:Kt(dt,St,It)})(Function.prototype,"toString",function(){return typeof this=="function"&<(this).source||et(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(jt,qt,Pt){"use strict";var re=Pt("./node_modules/core-js/internals/an-object.js");jt.exports=function(){var Kt=re(this),Yt="";return Kt.global&&(Yt+="g"),Kt.ignoreCase&&(Yt+="i"),Kt.multiline&&(Yt+="m"),Kt.dotAll&&(Yt+="s"),Kt.unicode&&(Yt+="u"),Kt.sticky&&(Yt+="y"),Yt}},"./node_modules/core-js/internals/require-object-coercible.js":function(jt){jt.exports=function(qt){if(qt==null)throw TypeError("Can't call method on "+qt);return qt}},"./node_modules/core-js/internals/set-global.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/global.js");jt.exports=function(Kt,Yt){try{Object.defineProperty(re,Kt,{value:Yt,configurable:!0,writable:!0})}catch(Ct){re[Kt]=Yt}return Yt}},"./node_modules/core-js/internals/set-to-string-tag.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/object-define-property.js").f,Kt=Pt("./node_modules/core-js/internals/has.js"),Yt=Pt("./node_modules/core-js/internals/well-known-symbol.js"),Ct=Yt("toStringTag");jt.exports=function(et,tt,lt){et&&!Kt(et=lt?et:et.prototype,Ct)&&re(et,Ct,{configurable:!0,value:tt})}},"./node_modules/core-js/internals/shared-key.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/shared.js"),Kt=Pt("./node_modules/core-js/internals/uid.js"),Yt=re("keys");jt.exports=function(Ct){return Yt[Ct]||(Yt[Ct]=Kt(Ct))}},"./node_modules/core-js/internals/shared-store.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/global.js"),Kt=Pt("./node_modules/core-js/internals/set-global.js"),Yt="__core-js_shared__",Ct=re[Yt]||Kt(Yt,{});jt.exports=Ct},"./node_modules/core-js/internals/shared.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/is-pure.js"),Kt=Pt("./node_modules/core-js/internals/shared-store.js");(jt.exports=function(Yt,Ct){return Kt[Yt]||(Kt[Yt]=Ct!==void 0?Ct:{})})("versions",[]).push({version:"3.16.0",mode:re?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/fails.js");jt.exports=function(Kt){return re(function(){var Yt=""[Kt]('"');return Yt!==Yt.toLowerCase()||Yt.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/to-integer.js"),Kt=Pt("./node_modules/core-js/internals/to-string.js"),Yt=Pt("./node_modules/core-js/internals/require-object-coercible.js"),Ct=function(et){return function(tt,lt){var rt=Kt(Yt(tt)),ht=re(lt),dt=rt.length,St,It;return ht<0||ht>=dt?et?"":void 0:(St=rt.charCodeAt(ht),St<55296||St>56319||ht+1===dt||(It=rt.charCodeAt(ht+1))<56320||It>57343?et?rt.charAt(ht):St:et?rt.slice(ht,ht+2):(St-55296<<10)+(It-56320)+65536)}};jt.exports={codeAt:Ct(!1),charAt:Ct(!0)}},"./node_modules/core-js/internals/string-trim.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/require-object-coercible.js"),Kt=Pt("./node_modules/core-js/internals/to-string.js"),Yt=Pt("./node_modules/core-js/internals/whitespaces.js"),Ct="["+Yt+"]",et=RegExp("^"+Ct+Ct+"*"),tt=RegExp(Ct+Ct+"*$"),lt=function(rt){return function(ht){var dt=Kt(re(ht));return rt&1&&(dt=dt.replace(et,"")),rt&2&&(dt=dt.replace(tt,"")),dt}};jt.exports={start:lt(1),end:lt(2),trim:lt(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/to-integer.js"),Kt=Math.max,Yt=Math.min;jt.exports=function(Ct,et){var tt=re(Ct);return tt<0?Kt(tt+et,0):Yt(tt,et)}},"./node_modules/core-js/internals/to-indexed-object.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/indexed-object.js"),Kt=Pt("./node_modules/core-js/internals/require-object-coercible.js");jt.exports=function(Yt){return re(Kt(Yt))}},"./node_modules/core-js/internals/to-integer.js":function(jt){var qt=Math.ceil,Pt=Math.floor;jt.exports=function(re){return isNaN(re=+re)?0:(re>0?Pt:qt)(re)}},"./node_modules/core-js/internals/to-length.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/to-integer.js"),Kt=Math.min;jt.exports=function(Yt){return Yt>0?Kt(re(Yt),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/require-object-coercible.js");jt.exports=function(Kt){return Object(re(Kt))}},"./node_modules/core-js/internals/to-primitive.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/is-object.js"),Kt=Pt("./node_modules/core-js/internals/is-symbol.js"),Yt=Pt("./node_modules/core-js/internals/ordinary-to-primitive.js"),Ct=Pt("./node_modules/core-js/internals/well-known-symbol.js"),et=Ct("toPrimitive");jt.exports=function(tt,lt){if(!re(tt)||Kt(tt))return tt;var rt=tt[et],ht;if(rt!==void 0){if(lt===void 0&&(lt="default"),ht=rt.call(tt,lt),!re(ht)||Kt(ht))return ht;throw TypeError("Can't convert object to primitive value")}return lt===void 0&&(lt="number"),Yt(tt,lt)}},"./node_modules/core-js/internals/to-property-key.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/to-primitive.js"),Kt=Pt("./node_modules/core-js/internals/is-symbol.js");jt.exports=function(Yt){var Ct=re(Yt,"string");return Kt(Ct)?Ct:String(Ct)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/well-known-symbol.js"),Kt=re("toStringTag"),Yt={};Yt[Kt]="z",jt.exports=String(Yt)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/is-symbol.js");jt.exports=function(Kt){if(re(Kt))throw TypeError("Cannot convert a Symbol value to a string");return String(Kt)}},"./node_modules/core-js/internals/uid.js":function(jt){var qt=0,Pt=Math.random();jt.exports=function(re){return"Symbol("+String(re===void 0?"":re)+")_"+(++qt+Pt).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/native-symbol.js");jt.exports=re&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/well-known-symbol.js");qt.f=re},"./node_modules/core-js/internals/well-known-symbol.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/global.js"),Kt=Pt("./node_modules/core-js/internals/shared.js"),Yt=Pt("./node_modules/core-js/internals/has.js"),Ct=Pt("./node_modules/core-js/internals/uid.js"),et=Pt("./node_modules/core-js/internals/native-symbol.js"),tt=Pt("./node_modules/core-js/internals/use-symbol-as-uid.js"),lt=Kt("wks"),rt=re.Symbol,ht=tt?rt:rt&&rt.withoutSetter||Ct;jt.exports=function(dt){return(!Yt(lt,dt)||!(et||typeof lt[dt]=="string"))&&(et&&Yt(rt,dt)?lt[dt]=rt[dt]:lt[dt]=ht("Symbol."+dt)),lt[dt]}},"./node_modules/core-js/internals/whitespaces.js":function(jt){jt.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(jt,qt,Pt){"use strict";var re=Pt("./node_modules/core-js/internals/export.js"),Kt=Pt("./node_modules/core-js/internals/fails.js"),Yt=Pt("./node_modules/core-js/internals/is-array.js"),Ct=Pt("./node_modules/core-js/internals/is-object.js"),et=Pt("./node_modules/core-js/internals/to-object.js"),tt=Pt("./node_modules/core-js/internals/to-length.js"),lt=Pt("./node_modules/core-js/internals/create-property.js"),rt=Pt("./node_modules/core-js/internals/array-species-create.js"),ht=Pt("./node_modules/core-js/internals/array-method-has-species-support.js"),dt=Pt("./node_modules/core-js/internals/well-known-symbol.js"),St=Pt("./node_modules/core-js/internals/engine-v8-version.js"),It=dt("isConcatSpreadable"),_t=9007199254740991,Gt="Maximum allowed index exceeded",oe=St>=51||!Kt(function(){var Jt=[];return Jt[It]=!1,Jt.concat()[0]!==Jt}),ue=ht("concat"),de=function(Jt){if(!Ct(Jt))return!1;var Ke=Jt[It];return Ke!==void 0?!!Ke:Yt(Jt)},be=!oe||!ue;re({target:"Array",proto:!0,forced:be},{concat:function(Ke){var Wt=et(this),Ge=rt(Wt,0),He=0,Me,We,_e,ve,ne;for(Me=-1,_e=arguments.length;Me<_e;Me++)if(ne=Me===-1?Wt:arguments[Me],de(ne)){if(ve=tt(ne.length),He+ve>_t)throw TypeError(Gt);for(We=0;We<ve;We++,He++)We in ne&<(Ge,He,ne[We])}else{if(He>=_t)throw TypeError(Gt);lt(Ge,He++,ne)}return Ge.length=He,Ge}})},"./node_modules/core-js/modules/es.array.iterator.js":function(jt,qt,Pt){"use strict";var re=Pt("./node_modules/core-js/internals/to-indexed-object.js"),Kt=Pt("./node_modules/core-js/internals/add-to-unscopables.js"),Yt=Pt("./node_modules/core-js/internals/iterators.js"),Ct=Pt("./node_modules/core-js/internals/internal-state.js"),et=Pt("./node_modules/core-js/internals/define-iterator.js"),tt="Array Iterator",lt=Ct.set,rt=Ct.getterFor(tt);jt.exports=et(Array,"Array",function(ht,dt){lt(this,{type:tt,target:re(ht),index:0,kind:dt})},function(){var ht=rt(this),dt=ht.target,St=ht.kind,It=ht.index++;return!dt||It>=dt.length?(ht.target=void 0,{value:void 0,done:!0}):St=="keys"?{value:It,done:!1}:St=="values"?{value:dt[It],done:!1}:{value:[It,dt[It]],done:!1}},"values"),Yt.Arguments=Yt.Array,Kt("keys"),Kt("values"),Kt("entries")},"./node_modules/core-js/modules/es.array.join.js":function(jt,qt,Pt){"use strict";var re=Pt("./node_modules/core-js/internals/export.js"),Kt=Pt("./node_modules/core-js/internals/indexed-object.js"),Yt=Pt("./node_modules/core-js/internals/to-indexed-object.js"),Ct=Pt("./node_modules/core-js/internals/array-method-is-strict.js"),et=[].join,tt=Kt!=Object,lt=Ct("join",",");re({target:"Array",proto:!0,forced:tt||!lt},{join:function(ht){return et.call(Yt(this),ht===void 0?",":ht)}})},"./node_modules/core-js/modules/es.array.map.js":function(jt,qt,Pt){"use strict";var re=Pt("./node_modules/core-js/internals/export.js"),Kt=Pt("./node_modules/core-js/internals/array-iteration.js").map,Yt=Pt("./node_modules/core-js/internals/array-method-has-species-support.js"),Ct=Yt("map");re({target:"Array",proto:!0,forced:!Ct},{map:function(tt){return Kt(this,tt,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(jt,qt,Pt){"use strict";var re=Pt("./node_modules/core-js/internals/export.js"),Kt=Pt("./node_modules/core-js/internals/is-object.js"),Yt=Pt("./node_modules/core-js/internals/is-array.js"),Ct=Pt("./node_modules/core-js/internals/to-absolute-index.js"),et=Pt("./node_modules/core-js/internals/to-length.js"),tt=Pt("./node_modules/core-js/internals/to-indexed-object.js"),lt=Pt("./node_modules/core-js/internals/create-property.js"),rt=Pt("./node_modules/core-js/internals/well-known-symbol.js"),ht=Pt("./node_modules/core-js/internals/array-method-has-species-support.js"),dt=ht("slice"),St=rt("species"),It=[].slice,_t=Math.max;re({target:"Array",proto:!0,forced:!dt},{slice:function(oe,ue){var de=tt(this),be=et(de.length),Jt=Ct(oe,be),Ke=Ct(ue===void 0?be:ue,be),Wt,Ge,He;if(Yt(de)&&(Wt=de.constructor,typeof Wt=="function"&&(Wt===Array||Yt(Wt.prototype))?Wt=void 0:Kt(Wt)&&(Wt=Wt[St],Wt===null&&(Wt=void 0)),Wt===Array||Wt===void 0))return It.call(de,Jt,Ke);for(Ge=new(Wt===void 0?Array:Wt)(_t(Ke-Jt,0)),He=0;Jt<Ke;Jt++,He++)Jt in de&<(Ge,He,de[Jt]);return Ge.length=He,Ge}})},"./node_modules/core-js/modules/es.function.name.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/descriptors.js"),Kt=Pt("./node_modules/core-js/internals/object-define-property.js").f,Yt=Function.prototype,Ct=Yt.toString,et=/^\s*function ([^ (]*)/,tt="name";re&&!(tt in Yt)&&Kt(Yt,tt,{configurable:!0,get:function(){try{return Ct.call(this).match(et)[1]}catch(lt){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(jt,qt,Pt){"use strict";var re=Pt("./node_modules/core-js/internals/descriptors.js"),Kt=Pt("./node_modules/core-js/internals/global.js"),Yt=Pt("./node_modules/core-js/internals/is-forced.js"),Ct=Pt("./node_modules/core-js/internals/redefine.js"),et=Pt("./node_modules/core-js/internals/has.js"),tt=Pt("./node_modules/core-js/internals/classof-raw.js"),lt=Pt("./node_modules/core-js/internals/inherit-if-required.js"),rt=Pt("./node_modules/core-js/internals/is-symbol.js"),ht=Pt("./node_modules/core-js/internals/to-primitive.js"),dt=Pt("./node_modules/core-js/internals/fails.js"),St=Pt("./node_modules/core-js/internals/object-create.js"),It=Pt("./node_modules/core-js/internals/object-get-own-property-names.js").f,_t=Pt("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,Gt=Pt("./node_modules/core-js/internals/object-define-property.js").f,oe=Pt("./node_modules/core-js/internals/string-trim.js").trim,ue="Number",de=Kt[ue],be=de.prototype,Jt=tt(St(be))==ue,Ke=function(We){if(rt(We))throw TypeError("Cannot convert a Symbol value to a number");var _e=ht(We,"number"),ve,ne,Se,Pn,Mn,Xe,Nn,Zn;if(typeof _e=="string"&&_e.length>2){if(_e=oe(_e),ve=_e.charCodeAt(0),ve===43||ve===45){if(ne=_e.charCodeAt(2),ne===88||ne===120)return NaN}else if(ve===48){switch(_e.charCodeAt(1)){case 66:case 98:Se=2,Pn=49;break;case 79:case 111:Se=8,Pn=55;break;default:return+_e}for(Mn=_e.slice(2),Xe=Mn.length,Nn=0;Nn<Xe;Nn++)if(Zn=Mn.charCodeAt(Nn),Zn<48||Zn>Pn)return NaN;return parseInt(Mn,Se)}}return+_e};if(Yt(ue,!de(" 0o1")||!de("0b1")||de("+0x1"))){for(var Wt=function(_e){var ve=arguments.length<1?0:_e,ne=this;return ne instanceof Wt&&(Jt?dt(function(){be.valueOf.call(ne)}):tt(ne)!=ue)?lt(new de(Ke(ve)),ne,Wt):Ke(ve)},Ge=re?It(de):"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(","),He=0,Me;Ge.length>He;He++)et(de,Me=Ge[He])&&!et(Wt,Me)&&Gt(Wt,Me,_t(de,Me));Wt.prototype=be,be.constructor=Wt,Ct(Kt,ue,Wt)}},"./node_modules/core-js/modules/es.object.assign.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/export.js"),Kt=Pt("./node_modules/core-js/internals/object-assign.js");re({target:"Object",stat:!0,forced:Object.assign!==Kt},{assign:Kt})},"./node_modules/core-js/modules/es.object.keys.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/export.js"),Kt=Pt("./node_modules/core-js/internals/to-object.js"),Yt=Pt("./node_modules/core-js/internals/object-keys.js"),Ct=Pt("./node_modules/core-js/internals/fails.js"),et=Ct(function(){Yt(1)});re({target:"Object",stat:!0,forced:et},{keys:function(lt){return Yt(Kt(lt))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/to-string-tag-support.js"),Kt=Pt("./node_modules/core-js/internals/redefine.js"),Yt=Pt("./node_modules/core-js/internals/object-to-string.js");re||Kt(Object.prototype,"toString",Yt,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(jt,qt,Pt){"use strict";var re=Pt("./node_modules/core-js/internals/redefine.js"),Kt=Pt("./node_modules/core-js/internals/an-object.js"),Yt=Pt("./node_modules/core-js/internals/to-string.js"),Ct=Pt("./node_modules/core-js/internals/fails.js"),et=Pt("./node_modules/core-js/internals/regexp-flags.js"),tt="toString",lt=RegExp.prototype,rt=lt[tt],ht=Ct(function(){return rt.call({source:"a",flags:"b"})!="/a/b"}),dt=rt.name!=tt;(ht||dt)&&re(RegExp.prototype,tt,function(){var It=Kt(this),_t=Yt(It.source),Gt=It.flags,oe=Yt(Gt===void 0&&It instanceof RegExp&&!("flags"in lt)?et.call(It):Gt);return"/"+_t+"/"+oe},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(jt,qt,Pt){"use strict";var re=Pt("./node_modules/core-js/internals/string-multibyte.js").charAt,Kt=Pt("./node_modules/core-js/internals/to-string.js"),Yt=Pt("./node_modules/core-js/internals/internal-state.js"),Ct=Pt("./node_modules/core-js/internals/define-iterator.js"),et="String Iterator",tt=Yt.set,lt=Yt.getterFor(et);Ct(String,"String",function(rt){tt(this,{type:et,string:Kt(rt),index:0})},function(){var ht=lt(this),dt=ht.string,St=ht.index,It;return St>=dt.length?{value:void 0,done:!0}:(It=re(dt,St),ht.index+=It.length,{value:It,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(jt,qt,Pt){"use strict";var re=Pt("./node_modules/core-js/internals/export.js"),Kt=Pt("./node_modules/core-js/internals/create-html.js"),Yt=Pt("./node_modules/core-js/internals/string-html-forced.js");re({target:"String",proto:!0,forced:Yt("link")},{link:function(et){return Kt(this,"a","href",et)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(jt,qt,Pt){"use strict";var re=Pt("./node_modules/core-js/internals/export.js"),Kt=Pt("./node_modules/core-js/internals/descriptors.js"),Yt=Pt("./node_modules/core-js/internals/global.js"),Ct=Pt("./node_modules/core-js/internals/has.js"),et=Pt("./node_modules/core-js/internals/is-object.js"),tt=Pt("./node_modules/core-js/internals/object-define-property.js").f,lt=Pt("./node_modules/core-js/internals/copy-constructor-properties.js"),rt=Yt.Symbol;if(Kt&&typeof rt=="function"&&(!("description"in rt.prototype)||rt().description!==void 0)){var ht={},dt=function(){var ue=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),de=this instanceof dt?new rt(ue):ue===void 0?rt():rt(ue);return ue===""&&(ht[de]=!0),de};lt(dt,rt);var St=dt.prototype=rt.prototype;St.constructor=dt;var It=St.toString,_t=String(rt("test"))=="Symbol(test)",Gt=/^Symbol\((.*)\)[^)]+$/;tt(St,"description",{configurable:!0,get:function(){var ue=et(this)?this.valueOf():this,de=It.call(ue);if(Ct(ht,ue))return"";var be=_t?de.slice(7,-1):de.replace(Gt,"$1");return be===""?void 0:be}}),re({global:!0,forced:!0},{Symbol:dt})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/define-well-known-symbol.js");re("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(jt,qt,Pt){"use strict";var re=Pt("./node_modules/core-js/internals/export.js"),Kt=Pt("./node_modules/core-js/internals/global.js"),Yt=Pt("./node_modules/core-js/internals/get-built-in.js"),Ct=Pt("./node_modules/core-js/internals/is-pure.js"),et=Pt("./node_modules/core-js/internals/descriptors.js"),tt=Pt("./node_modules/core-js/internals/native-symbol.js"),lt=Pt("./node_modules/core-js/internals/fails.js"),rt=Pt("./node_modules/core-js/internals/has.js"),ht=Pt("./node_modules/core-js/internals/is-array.js"),dt=Pt("./node_modules/core-js/internals/is-object.js"),St=Pt("./node_modules/core-js/internals/is-symbol.js"),It=Pt("./node_modules/core-js/internals/an-object.js"),_t=Pt("./node_modules/core-js/internals/to-object.js"),Gt=Pt("./node_modules/core-js/internals/to-indexed-object.js"),oe=Pt("./node_modules/core-js/internals/to-property-key.js"),ue=Pt("./node_modules/core-js/internals/to-string.js"),de=Pt("./node_modules/core-js/internals/create-property-descriptor.js"),be=Pt("./node_modules/core-js/internals/object-create.js"),Jt=Pt("./node_modules/core-js/internals/object-keys.js"),Ke=Pt("./node_modules/core-js/internals/object-get-own-property-names.js"),Wt=Pt("./node_modules/core-js/internals/object-get-own-property-names-external.js"),Ge=Pt("./node_modules/core-js/internals/object-get-own-property-symbols.js"),He=Pt("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),Me=Pt("./node_modules/core-js/internals/object-define-property.js"),We=Pt("./node_modules/core-js/internals/object-property-is-enumerable.js"),_e=Pt("./node_modules/core-js/internals/create-non-enumerable-property.js"),ve=Pt("./node_modules/core-js/internals/redefine.js"),ne=Pt("./node_modules/core-js/internals/shared.js"),Se=Pt("./node_modules/core-js/internals/shared-key.js"),Pn=Pt("./node_modules/core-js/internals/hidden-keys.js"),Mn=Pt("./node_modules/core-js/internals/uid.js"),Xe=Pt("./node_modules/core-js/internals/well-known-symbol.js"),Nn=Pt("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),Zn=Pt("./node_modules/core-js/internals/define-well-known-symbol.js"),fi=Pt("./node_modules/core-js/internals/set-to-string-tag.js"),zn=Pt("./node_modules/core-js/internals/internal-state.js"),Si=Pt("./node_modules/core-js/internals/array-iteration.js").forEach,nn=Se("hidden"),Fi="Symbol",Ti="prototype",Lt=Xe("toPrimitive"),Ot=zn.set,mt=zn.getterFor(Fi),ft=Object[Ti],pt=Kt.Symbol,At=Yt("JSON","stringify"),le=He.f,we=Me.f,ae=Wt.f,me=We.f,Re=ne("symbols"),Oe=ne("op-symbols"),ke=ne("string-to-symbol-registry"),rn=ne("symbol-to-string-registry"),Vn=ne("wks"),sn=Kt.QObject,An=!sn||!sn[Ti]||!sn[Ti].findChild,Bn=et&<(function(){return be(we({},"a",{get:function(){return we(this,"a",{value:7}).a}})).a!=7})?function(Zr,kr,Gr){var lo=le(ft,kr);lo&&delete ft[kr],we(Zr,kr,Gr),lo&&Zr!==ft&&we(ft,kr,lo)}:we,ii=function(Zr,kr){var Gr=Re[Zr]=be(pt[Ti]);return Ot(Gr,{type:Fi,tag:Zr,description:kr}),et||(Gr.description=kr),Gr},_n=function(kr,Gr,lo){kr===ft&&_n(Oe,Gr,lo),It(kr);var _o=oe(Gr);return It(lo),rt(Re,_o)?(lo.enumerable?(rt(kr,nn)&&kr[nn][_o]&&(kr[nn][_o]=!1),lo=be(lo,{enumerable:de(0,!1)})):(rt(kr,nn)||we(kr,nn,de(1,{})),kr[nn][_o]=!0),Bn(kr,_o,lo)):we(kr,_o,lo)},ji=function(kr,Gr){It(kr);var lo=Gt(Gr),_o=Jt(lo).concat(ao(lo));return Si(_o,function(ns){(!et||Ji.call(lo,ns))&&_n(kr,ns,lo[ns])}),kr},cr=function(kr,Gr){return Gr===void 0?be(kr):ji(be(kr),Gr)},Ji=function(kr){var Gr=oe(kr),lo=me.call(this,Gr);return this===ft&&rt(Re,Gr)&&!rt(Oe,Gr)?!1:lo||!rt(this,Gr)||!rt(Re,Gr)||rt(this,nn)&&this[nn][Gr]?lo:!0},mr=function(kr,Gr){var lo=Gt(kr),_o=oe(Gr);if(!(lo===ft&&rt(Re,_o)&&!rt(Oe,_o))){var ns=le(lo,_o);return ns&&rt(Re,_o)&&!(rt(lo,nn)&&lo[nn][_o])&&(ns.enumerable=!0),ns}},Mr=function(kr){var Gr=ae(Gt(kr)),lo=[];return Si(Gr,function(_o){!rt(Re,_o)&&!rt(Pn,_o)&&lo.push(_o)}),lo},ao=function(kr){var Gr=kr===ft,lo=ae(Gr?Oe:Gt(kr)),_o=[];return Si(lo,function(ns){rt(Re,ns)&&(!Gr||rt(ft,ns))&&_o.push(Re[ns])}),_o};if(tt||(pt=function(){if(this instanceof pt)throw TypeError("Symbol is not a constructor");var kr=!arguments.length||arguments[0]===void 0?void 0:ue(arguments[0]),Gr=Mn(kr),lo=function(_o){this===ft&&lo.call(Oe,_o),rt(this,nn)&&rt(this[nn],Gr)&&(this[nn][Gr]=!1),Bn(this,Gr,de(1,_o))};return et&&An&&Bn(ft,Gr,{configurable:!0,set:lo}),ii(Gr,kr)},ve(pt[Ti],"toString",function(){return mt(this).tag}),ve(pt,"withoutSetter",function(Zr){return ii(Mn(Zr),Zr)}),We.f=Ji,Me.f=_n,He.f=mr,Ke.f=Wt.f=Mr,Ge.f=ao,Nn.f=function(Zr){return ii(Xe(Zr),Zr)},et&&(we(pt[Ti],"description",{configurable:!0,get:function(){return mt(this).description}}),Ct||ve(ft,"propertyIsEnumerable",Ji,{unsafe:!0}))),re({global:!0,wrap:!0,forced:!tt,sham:!tt},{Symbol:pt}),Si(Jt(Vn),function(Zr){Zn(Zr)}),re({target:Fi,stat:!0,forced:!tt},{for:function(Zr){var kr=ue(Zr);if(rt(ke,kr))return ke[kr];var Gr=pt(kr);return ke[kr]=Gr,rn[Gr]=kr,Gr},keyFor:function(kr){if(!St(kr))throw TypeError(kr+" is not a symbol");if(rt(rn,kr))return rn[kr]},useSetter:function(){An=!0},useSimple:function(){An=!1}}),re({target:"Object",stat:!0,forced:!tt,sham:!et},{create:cr,defineProperty:_n,defineProperties:ji,getOwnPropertyDescriptor:mr}),re({target:"Object",stat:!0,forced:!tt},{getOwnPropertyNames:Mr,getOwnPropertySymbols:ao}),re({target:"Object",stat:!0,forced:lt(function(){Ge.f(1)})},{getOwnPropertySymbols:function(kr){return Ge.f(_t(kr))}}),At){var Yr=!tt||lt(function(){var Zr=pt();return At([Zr])!="[null]"||At({a:Zr})!="{}"||At(Object(Zr))!="{}"});re({target:"JSON",stat:!0,forced:Yr},{stringify:function(kr,Gr,lo){for(var _o=[kr],ns=1,co;arguments.length>ns;)_o.push(arguments[ns++]);if(co=Gr,!(!dt(Gr)&&kr===void 0||St(kr)))return ht(Gr)||(Gr=function(ys,jo){if(typeof co=="function"&&(jo=co.call(this,ys,jo)),!St(jo))return jo}),_o[1]=Gr,At.apply(null,_o)}})}pt[Ti][Lt]||_e(pt[Ti],Lt,pt[Ti].valueOf),fi(pt,Fi),Pn[nn]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/global.js"),Kt=Pt("./node_modules/core-js/internals/dom-iterables.js"),Yt=Pt("./node_modules/core-js/internals/array-for-each.js"),Ct=Pt("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var et in Kt){var tt=re[et],lt=tt&&tt.prototype;if(lt&<.forEach!==Yt)try{Ct(lt,"forEach",Yt)}catch(rt){lt.forEach=Yt}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(jt,qt,Pt){var re=Pt("./node_modules/core-js/internals/global.js"),Kt=Pt("./node_modules/core-js/internals/dom-iterables.js"),Yt=Pt("./node_modules/core-js/modules/es.array.iterator.js"),Ct=Pt("./node_modules/core-js/internals/create-non-enumerable-property.js"),et=Pt("./node_modules/core-js/internals/well-known-symbol.js"),tt=et("iterator"),lt=et("toStringTag"),rt=Yt.values;for(var ht in Kt){var dt=re[ht],St=dt&&dt.prototype;if(St){if(St[tt]!==rt)try{Ct(St,tt,rt)}catch(_t){St[tt]=rt}if(St[lt]||Ct(St,lt,ht),Kt[ht]){for(var It in Yt)if(St[It]!==Yt[It])try{Ct(St,It,Yt[It])}catch(_t){St[It]=Yt[It]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(jt){(function(qt,Pt){jt.exports=Pt()})(this,function(){"use strict";function qt(sn){var An=typeof sn;return sn!==null&&(An==="object"||An==="function")}function Pt(sn){return typeof sn=="function"}var re=void 0;Array.isArray?re=Array.isArray:re=function(sn){return Object.prototype.toString.call(sn)==="[object Array]"};var Kt=re,Yt=0,Ct=void 0,et=void 0,tt=function(An,Bn){Jt[Yt]=An,Jt[Yt+1]=Bn,Yt+=2,Yt===2&&(et?et(Ke):Ge())};function lt(sn){et=sn}function rt(sn){tt=sn}var ht=typeof window!="undefined"?window:void 0,dt=ht||{},St=dt.MutationObserver||dt.WebKitMutationObserver,It=typeof self=="undefined"&&typeof Mt!="undefined"&&{}.toString.call(Mt)==="[object process]",_t=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function Gt(){return function(){return Mt.nextTick(Ke)}}function oe(){return typeof Ct!="undefined"?function(){Ct(Ke)}:be()}function ue(){var sn=0,An=new St(Ke),Bn=document.createTextNode("");return An.observe(Bn,{characterData:!0}),function(){Bn.data=sn=++sn%2}}function de(){var sn=new MessageChannel;return sn.port1.onmessage=Ke,function(){return sn.port2.postMessage(0)}}function be(){var sn=setTimeout;return function(){return sn(Ke,1)}}var Jt=new Array(1e3);function Ke(){for(var sn=0;sn<Yt;sn+=2){var An=Jt[sn],Bn=Jt[sn+1];An(Bn),Jt[sn]=void 0,Jt[sn+1]=void 0}Yt=0}function Wt(){try{var sn=Function("return this")().require("vertx");return Ct=sn.runOnLoop||sn.runOnContext,oe()}catch(An){return be()}}var Ge=void 0;It?Ge=Gt():St?Ge=ue():_t?Ge=de():ht===void 0?Ge=Wt():Ge=be();function He(sn,An){var Bn=this,ii=new this.constructor(_e);ii[We]===void 0&&At(ii);var _n=Bn._state;if(_n){var ji=arguments[_n-1];tt(function(){return Ot(_n,ii,ji,Bn._result)})}else Ti(Bn,ii,sn,An);return ii}function Me(sn){var An=this;if(sn&&typeof sn=="object"&&sn.constructor===An)return sn;var Bn=new An(_e);return zn(Bn,sn),Bn}var We=Math.random().toString(36).substring(2);function _e(){}var ve=void 0,ne=1,Se=2;function Pn(){return new TypeError("You cannot resolve a promise with itself")}function Mn(){return new TypeError("A promises callback cannot return that same promise.")}function Xe(sn,An,Bn,ii){try{sn.call(An,Bn,ii)}catch(_n){return _n}}function Nn(sn,An,Bn){tt(function(ii){var _n=!1,ji=Xe(Bn,An,function(cr){_n||(_n=!0,An!==cr?zn(ii,cr):nn(ii,cr))},function(cr){_n||(_n=!0,Fi(ii,cr))},"Settle: "+(ii._label||" unknown promise"));!_n&&ji&&(_n=!0,Fi(ii,ji))},sn)}function Zn(sn,An){An._state===ne?nn(sn,An._result):An._state===Se?Fi(sn,An._result):Ti(An,void 0,function(Bn){return zn(sn,Bn)},function(Bn){return Fi(sn,Bn)})}function fi(sn,An,Bn){An.constructor===sn.constructor&&Bn===He&&An.constructor.resolve===Me?Zn(sn,An):Bn===void 0?nn(sn,An):Pt(Bn)?Nn(sn,An,Bn):nn(sn,An)}function zn(sn,An){if(sn===An)Fi(sn,Pn());else if(qt(An)){var Bn=void 0;try{Bn=An.then}catch(ii){Fi(sn,ii);return}fi(sn,An,Bn)}else nn(sn,An)}function Si(sn){sn._onerror&&sn._onerror(sn._result),Lt(sn)}function nn(sn,An){sn._state===ve&&(sn._result=An,sn._state=ne,sn._subscribers.length!==0&&tt(Lt,sn))}function Fi(sn,An){sn._state===ve&&(sn._state=Se,sn._result=An,tt(Si,sn))}function Ti(sn,An,Bn,ii){var _n=sn._subscribers,ji=_n.length;sn._onerror=null,_n[ji]=An,_n[ji+ne]=Bn,_n[ji+Se]=ii,ji===0&&sn._state&&tt(Lt,sn)}function Lt(sn){var An=sn._subscribers,Bn=sn._state;if(An.length!==0){for(var ii=void 0,_n=void 0,ji=sn._result,cr=0;cr<An.length;cr+=3)ii=An[cr],_n=An[cr+Bn],ii?Ot(Bn,ii,_n,ji):_n(ji);sn._subscribers.length=0}}function Ot(sn,An,Bn,ii){var _n=Pt(Bn),ji=void 0,cr=void 0,Ji=!0;if(_n){try{ji=Bn(ii)}catch(mr){Ji=!1,cr=mr}if(An===ji){Fi(An,Mn());return}}else ji=ii;An._state!==ve||(_n&&Ji?zn(An,ji):Ji===!1?Fi(An,cr):sn===ne?nn(An,ji):sn===Se&&Fi(An,ji))}function mt(sn,An){try{An(function(ii){zn(sn,ii)},function(ii){Fi(sn,ii)})}catch(Bn){Fi(sn,Bn)}}var ft=0;function pt(){return ft++}function At(sn){sn[We]=ft++,sn._state=void 0,sn._result=void 0,sn._subscribers=[]}function le(){return new Error("Array Methods must be provided an Array")}var we=function(){function sn(An,Bn){this._instanceConstructor=An,this.promise=new An(_e),this.promise[We]||At(this.promise),Kt(Bn)?(this.length=Bn.length,this._remaining=Bn.length,this._result=new Array(this.length),this.length===0?nn(this.promise,this._result):(this.length=this.length||0,this._enumerate(Bn),this._remaining===0&&nn(this.promise,this._result))):Fi(this.promise,le())}return sn.prototype._enumerate=function(Bn){for(var ii=0;this._state===ve&&ii<Bn.length;ii++)this._eachEntry(Bn[ii],ii)},sn.prototype._eachEntry=function(Bn,ii){var _n=this._instanceConstructor,ji=_n.resolve;if(ji===Me){var cr=void 0,Ji=void 0,mr=!1;try{cr=Bn.then}catch(ao){mr=!0,Ji=ao}if(cr===He&&Bn._state!==ve)this._settledAt(Bn._state,ii,Bn._result);else if(typeof cr!="function")this._remaining--,this._result[ii]=Bn;else if(_n===rn){var Mr=new _n(_e);mr?Fi(Mr,Ji):fi(Mr,Bn,cr),this._willSettleAt(Mr,ii)}else this._willSettleAt(new _n(function(ao){return ao(Bn)}),ii)}else this._willSettleAt(ji(Bn),ii)},sn.prototype._settledAt=function(Bn,ii,_n){var ji=this.promise;ji._state===ve&&(this._remaining--,Bn===Se?Fi(ji,_n):this._result[ii]=_n),this._remaining===0&&nn(ji,this._result)},sn.prototype._willSettleAt=function(Bn,ii){var _n=this;Ti(Bn,void 0,function(ji){return _n._settledAt(ne,ii,ji)},function(ji){return _n._settledAt(Se,ii,ji)})},sn}();function ae(sn){return new we(this,sn).promise}function me(sn){var An=this;return Kt(sn)?new An(function(Bn,ii){for(var _n=sn.length,ji=0;ji<_n;ji++)An.resolve(sn[ji]).then(Bn,ii)}):new An(function(Bn,ii){return ii(new TypeError("You must pass an array to race."))})}function Re(sn){var An=this,Bn=new An(_e);return Fi(Bn,sn),Bn}function Oe(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function ke(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var rn=function(){function sn(An){this[We]=pt(),this._result=this._state=void 0,this._subscribers=[],_e!==An&&(typeof An!="function"&&Oe(),this instanceof sn?mt(this,An):ke())}return sn.prototype.catch=function(Bn){return this.then(null,Bn)},sn.prototype.finally=function(Bn){var ii=this,_n=ii.constructor;return Pt(Bn)?ii.then(function(ji){return _n.resolve(Bn()).then(function(){return ji})},function(ji){return _n.resolve(Bn()).then(function(){throw ji})}):ii.then(Bn,Bn)},sn}();rn.prototype.then=He,rn.all=ae,rn.race=me,rn.resolve=Me,rn.reject=Re,rn._setScheduler=lt,rn._setAsap=rt,rn._asap=tt;function Vn(){var sn=void 0;if(typeof bt.g!="undefined")sn=bt.g;else if(typeof self!="undefined")sn=self;else try{sn=Function("return this")()}catch(ii){throw new Error("polyfill failed because global object is unavailable in this environment")}var An=sn.Promise;if(An){var Bn=null;try{Bn=Object.prototype.toString.call(An.resolve())}catch(ii){}if(Bn==="[object Promise]"&&!An.cast)return}sn.Promise=rn}return rn.polyfill=Vn,rn.Promise=rn,rn})},html2canvas:function(jt){"use strict";jt.exports=ie},jspdf:function(jt){"use strict";jt.exports=ce}},ee={};function Zt(jt){var qt=ee[jt];if(qt!==void 0)return qt.exports;var Pt=ee[jt]={exports:{}};return Ie[jt].call(Pt.exports,Pt,Pt.exports,Zt),Pt.exports}(function(){Zt.n=function(jt){var qt=jt&&jt.__esModule?function(){return jt.default}:function(){return jt};return Zt.d(qt,{a:qt}),qt}})(),function(){Zt.d=function(jt,qt){for(var Pt in qt)Zt.o(qt,Pt)&&!Zt.o(jt,Pt)&&Object.defineProperty(jt,Pt,{enumerable:!0,get:qt[Pt]})}}(),function(){Zt.o=function(jt,qt){return Object.prototype.hasOwnProperty.call(jt,qt)}}(),function(){Zt.r=function(jt){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(jt,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(jt,"__esModule",{value:!0})}}();var Nt={};return function(){"use strict";Zt.r(Nt);var jt=Zt("./src/worker.js"),qt=Zt("./src/plugin/jspdf-plugin.js"),Pt=Zt("./src/plugin/pagebreaks.js"),re=Zt("./src/plugin/hyperlinks.js"),Kt=function Yt(Ct,et){var tt=new Yt.Worker(et);return Ct?tt.from(Ct).save():tt};Kt.Worker=jt.default,Nt.default=Kt}(),Nt=Nt.default,Nt}()})},67467:function(hi,Cn){Cn.read=function(bt,Mt,ce,ie,Ie){var ee,Zt,Nt=Ie*8-ie-1,jt=(1<<Nt)-1,qt=jt>>1,Pt=-7,re=ce?Ie-1:0,Kt=ce?-1:1,Yt=bt[Mt+re];for(re+=Kt,ee=Yt&(1<<-Pt)-1,Yt>>=-Pt,Pt+=Nt;Pt>0;ee=ee*256+bt[Mt+re],re+=Kt,Pt-=8);for(Zt=ee&(1<<-Pt)-1,ee>>=-Pt,Pt+=ie;Pt>0;Zt=Zt*256+bt[Mt+re],re+=Kt,Pt-=8);if(ee===0)ee=1-qt;else{if(ee===jt)return Zt?NaN:(Yt?-1:1)*(1/0);Zt=Zt+Math.pow(2,ie),ee=ee-qt}return(Yt?-1:1)*Zt*Math.pow(2,ee-ie)},Cn.write=function(bt,Mt,ce,ie,Ie,ee){var Zt,Nt,jt,qt=ee*8-Ie-1,Pt=(1<<qt)-1,re=Pt>>1,Kt=Ie===23?Math.pow(2,-24)-Math.pow(2,-77):0,Yt=ie?0:ee-1,Ct=ie?1:-1,et=Mt<0||Mt===0&&1/Mt<0?1:0;for(Mt=Math.abs(Mt),isNaN(Mt)||Mt===1/0?(Nt=isNaN(Mt)?1:0,Zt=Pt):(Zt=Math.floor(Math.log(Mt)/Math.LN2),Mt*(jt=Math.pow(2,-Zt))<1&&(Zt--,jt*=2),Zt+re>=1?Mt+=Kt/jt:Mt+=Kt*Math.pow(2,1-re),Mt*jt>=2&&(Zt++,jt/=2),Zt+re>=Pt?(Nt=0,Zt=Pt):Zt+re>=1?(Nt=(Mt*jt-1)*Math.pow(2,Ie),Zt=Zt+re):(Nt=Mt*Math.pow(2,re-1)*Math.pow(2,Ie),Zt=0));Ie>=8;bt[ce+Yt]=Nt&255,Yt+=Ct,Nt/=256,Ie-=8);for(Zt=Zt<<Ie|Nt,qt+=Ie;qt>0;bt[ce+Yt]=Zt&255,Yt+=Ct,Zt/=256,qt-=8);bt[ce+Yt-Ct]|=et*128}},7348:function(hi,Cn,bt){"use strict";bt.r(Cn),bt.d(Cn,{AcroForm:function(){return Eu},AcroFormAppearance:function(){return Go},AcroFormButton:function(){return Ya},AcroFormCheckBox:function(){return bu},AcroFormChoiceField:function(){return ru},AcroFormComboBox:function(){return Fo},AcroFormEditBox:function(){return Ua},AcroFormListBox:function(){return $a},AcroFormPasswordField:function(){return tu},AcroFormPushButton:function(){return ou},AcroFormRadioButton:function(){return Zl},AcroFormTextField:function(){return du},GState:function(){return bo},ShadingPattern:function(){return ca},TilingPattern:function(){return aa},default:function(){return Ho},jsPDF:function(){return Ho}});var Mt=bt(20135),ce={},ie=function(Et,wt,Ft,Ut,se){var Vt=new Worker(ce[wt]||(ce[wt]=URL.createObjectURL(new Blob([Et+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return Vt.onmessage=function(pe){var ye=pe.data,Ee=ye.$e$;if(Ee){var Ye=new Error(Ee[0]);Ye.code=Ee[1],Ye.stack=Ee[2],se(Ye,null)}else se(null,ye)},Vt.postMessage(Ft,Ut),Vt},Ie=Uint8Array,ee=Uint16Array,Zt=Int32Array,Nt=new Ie([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]),jt=new Ie([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]),qt=new Ie([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Pt=function(Et,wt){for(var Ft=new ee(31),Ut=0;Ut<31;++Ut)Ft[Ut]=wt+=1<<Et[Ut-1];for(var se=new Zt(Ft[30]),Ut=1;Ut<30;++Ut)for(var Vt=Ft[Ut];Vt<Ft[Ut+1];++Vt)se[Vt]=Vt-Ft[Ut]<<5|Ut;return{b:Ft,r:se}},re=Pt(Nt,2),Kt=re.b,Yt=re.r;Kt[28]=258,Yt[258]=28;for(var Ct=Pt(jt,0),et=Ct.b,tt=Ct.r,lt=new ee(32768),rt=0;rt<32768;++rt){var ht=(rt&43690)>>1|(rt&21845)<<1;ht=(ht&52428)>>2|(ht&13107)<<2,ht=(ht&61680)>>4|(ht&3855)<<4,lt[rt]=((ht&65280)>>8|(ht&255)<<8)>>1}for(var dt=function(Et,wt,Ft){for(var Ut=Et.length,se=0,Vt=new ee(wt);se<Ut;++se)Et[se]&&++Vt[Et[se]-1];var pe=new ee(wt);for(se=1;se<wt;++se)pe[se]=pe[se-1]+Vt[se-1]<<1;var ye;if(Ft){ye=new ee(1<<wt);var Ee=15-wt;for(se=0;se<Ut;++se)if(Et[se])for(var Ye=se<<4|Et[se],gn=wt-Et[se],fn=pe[Et[se]-1]++<<gn,In=fn|(1<<gn)-1;fn<=In;++fn)ye[lt[fn]>>Ee]=Ye}else for(ye=new ee(Ut),se=0;se<Ut;++se)Et[se]&&(ye[se]=lt[pe[Et[se]-1]++]>>15-Et[se]);return ye},St=new Ie(288),rt=0;rt<144;++rt)St[rt]=8;for(var rt=144;rt<256;++rt)St[rt]=9;for(var rt=256;rt<280;++rt)St[rt]=7;for(var rt=280;rt<288;++rt)St[rt]=8;for(var It=new Ie(32),rt=0;rt<32;++rt)It[rt]=5;var _t=dt(St,9,0),Gt=dt(St,9,1),oe=dt(It,5,0),ue=dt(It,5,1),de=function(Et){for(var wt=Et[0],Ft=1;Ft<Et.length;++Ft)Et[Ft]>wt&&(wt=Et[Ft]);return wt},be=function(Et,wt,Ft){var Ut=wt/8|0;return(Et[Ut]|Et[Ut+1]<<8)>>(wt&7)&Ft},Jt=function(Et,wt){var Ft=wt/8|0;return(Et[Ft]|Et[Ft+1]<<8|Et[Ft+2]<<16)>>(wt&7)},Ke=function(Et){return(Et+7)/8|0},Wt=function(Et,wt,Ft){return(wt==null||wt<0)&&(wt=0),(Ft==null||Ft>Et.length)&&(Ft=Et.length),new Ie(Et.subarray(wt,Ft))},Ge={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},He=["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"],Me=function(Et,wt,Ft){var Ut=new Error(wt||He[Et]);if(Ut.code=Et,Error.captureStackTrace&&Error.captureStackTrace(Ut,Me),!Ft)throw Ut;return Ut},We=function(Et,wt,Ft,Ut){var se=Et.length,Vt=Ut?Ut.length:0;if(!se||wt.f&&!wt.l)return Ft||new Ie(0);var pe=!Ft,ye=pe||wt.i!=2,Ee=wt.i;pe&&(Ft=new Ie(se*3));var Ye=function(Xi){var ir=Ft.length;if(Xi>ir){var dr=new Ie(Math.max(ir*2,Xi));dr.set(Ft),Ft=dr}},gn=wt.f||0,fn=wt.p||0,In=wt.b||0,Qe=wt.l,ci=wt.d,Yn=wt.m,mi=wt.n,Rn=se*8;do{if(!Qe){gn=be(Et,fn,1);var Ai=be(Et,fn+1,3);if(fn+=3,Ai)if(Ai==1)Qe=Gt,ci=ue,Yn=9,mi=5;else if(Ai==2){var to=be(Et,fn,31)+257,gr=be(Et,fn+10,15)+4,ki=to+be(Et,fn+5,31)+1;fn+=14;for(var yr=new Ie(ki),Kr=new Ie(19),Kn=0;Kn<gr;++Kn)Kr[qt[Kn]]=be(Et,fn+Kn*3,7);fn+=gr*3;for(var Jn=de(Kr),Wi=(1<<Jn)-1,ge=dt(Kr,Jn,1),Kn=0;Kn<ki;){var Ce=ge[be(Et,fn,Wi)];fn+=Ce&15;var Hi=Ce>>4;if(Hi<16)yr[Kn++]=Hi;else{var Ve=0,en=0;for(Hi==16?(en=3+be(Et,fn,3),fn+=2,Ve=yr[Kn-1]):Hi==17?(en=3+be(Et,fn,7),fn+=3):Hi==18&&(en=11+be(Et,fn,127),fn+=7);en--;)yr[Kn++]=Ve}}var un=yr.subarray(0,to),hn=yr.subarray(to);Yn=de(un),mi=de(hn),Qe=dt(un,Yn,1),ci=dt(hn,mi,1)}else Me(1);else{var Hi=Ke(fn)+4,sr=Et[Hi-4]|Et[Hi-3]<<8,Er=Hi+sr;if(Er>se){Ee&&Me(0);break}ye&&Ye(In+sr),Ft.set(Et.subarray(Hi,Er),In),wt.b=In+=sr,wt.p=fn=Er*8,wt.f=gn;continue}if(fn>Rn){Ee&&Me(0);break}}ye&&Ye(In+131072);for(var Dn=(1<<Yn)-1,qn=(1<<mi)-1,Te=fn;;Te=fn){var Ve=Qe[Jt(Et,fn)&Dn],ln=Ve>>4;if(fn+=Ve&15,fn>Rn){Ee&&Me(0);break}if(Ve||Me(2),ln<256)Ft[In++]=ln;else if(ln==256){Te=fn,Qe=null;break}else{var mn=ln-254;if(ln>264){var Kn=ln-257,Fn=Nt[Kn];mn=be(Et,fn,(1<<Fn)-1)+Kt[Kn],fn+=Fn}var Xn=ci[Jt(Et,fn)&qn],li=Xn>>4;Xn||Me(3),fn+=Xn&15;var hn=et[li];if(li>3){var Fn=jt[li];hn+=Jt(Et,fn)&(1<<Fn)-1,fn+=Fn}if(fn>Rn){Ee&&Me(0);break}ye&&Ye(In+131072);var si=In+mn;if(In<hn){var Ei=Vt-hn,Ii=Math.min(hn,si);for(Ei+In<0&&Me(3);In<Ii;++In)Ft[In]=Ut[Ei+In]}for(;In<si;++In)Ft[In]=Ft[In-hn]}}wt.l=Qe,wt.p=Te,wt.b=In,wt.f=gn,Qe&&(gn=1,wt.m=Yn,wt.d=ci,wt.n=mi)}while(!gn);return In!=Ft.length&&pe?Wt(Ft,0,In):Ft.subarray(0,In)},_e=function(Et,wt,Ft){Ft<<=wt&7;var Ut=wt/8|0;Et[Ut]|=Ft,Et[Ut+1]|=Ft>>8},ve=function(Et,wt,Ft){Ft<<=wt&7;var Ut=wt/8|0;Et[Ut]|=Ft,Et[Ut+1]|=Ft>>8,Et[Ut+2]|=Ft>>16},ne=function(Et,wt){for(var Ft=[],Ut=0;Ut<Et.length;++Ut)Et[Ut]&&Ft.push({s:Ut,f:Et[Ut]});var se=Ft.length,Vt=Ft.slice();if(!se)return{t:fi,l:0};if(se==1){var pe=new Ie(Ft[0].s+1);return pe[Ft[0].s]=1,{t:pe,l:1}}Ft.sort(function(Er,to){return Er.f-to.f}),Ft.push({s:-1,f:25001});var ye=Ft[0],Ee=Ft[1],Ye=0,gn=1,fn=2;for(Ft[0]={s:-1,f:ye.f+Ee.f,l:ye,r:Ee};gn!=se-1;)ye=Ft[Ft[Ye].f<Ft[fn].f?Ye++:fn++],Ee=Ft[Ye!=gn&&Ft[Ye].f<Ft[fn].f?Ye++:fn++],Ft[gn++]={s:-1,f:ye.f+Ee.f,l:ye,r:Ee};for(var In=Vt[0].s,Ut=1;Ut<se;++Ut)Vt[Ut].s>In&&(In=Vt[Ut].s);var Qe=new ee(In+1),ci=Se(Ft[gn-1],Qe,0);if(ci>wt){var Ut=0,Yn=0,mi=ci-wt,Rn=1<<mi;for(Vt.sort(function(to,gr){return Qe[gr.s]-Qe[to.s]||to.f-gr.f});Ut<se;++Ut){var Ai=Vt[Ut].s;if(Qe[Ai]>wt)Yn+=Rn-(1<<ci-Qe[Ai]),Qe[Ai]=wt;else break}for(Yn>>=mi;Yn>0;){var Hi=Vt[Ut].s;Qe[Hi]<wt?Yn-=1<<wt-Qe[Hi]++-1:++Ut}for(;Ut>=0&&Yn;--Ut){var sr=Vt[Ut].s;Qe[sr]==wt&&(--Qe[sr],++Yn)}ci=wt}return{t:new Ie(Qe),l:ci}},Se=function(Et,wt,Ft){return Et.s==-1?Math.max(Se(Et.l,wt,Ft+1),Se(Et.r,wt,Ft+1)):wt[Et.s]=Ft},Pn=function(Et){for(var wt=Et.length;wt&&!Et[--wt];);for(var Ft=new ee(++wt),Ut=0,se=Et[0],Vt=1,pe=function(Ee){Ft[Ut++]=Ee},ye=1;ye<=wt;++ye)if(Et[ye]==se&&ye!=wt)++Vt;else{if(!se&&Vt>2){for(;Vt>138;Vt-=138)pe(32754);Vt>2&&(pe(Vt>10?Vt-11<<5|28690:Vt-3<<5|12305),Vt=0)}else if(Vt>3){for(pe(se),--Vt;Vt>6;Vt-=6)pe(8304);Vt>2&&(pe(Vt-3<<5|8208),Vt=0)}for(;Vt--;)pe(se);Vt=1,se=Et[ye]}return{c:Ft.subarray(0,Ut),n:wt}},Mn=function(Et,wt){for(var Ft=0,Ut=0;Ut<wt.length;++Ut)Ft+=Et[Ut]*wt[Ut];return Ft},Xe=function(Et,wt,Ft){var Ut=Ft.length,se=Ke(wt+2);Et[se]=Ut&255,Et[se+1]=Ut>>8,Et[se+2]=Et[se]^255,Et[se+3]=Et[se+1]^255;for(var Vt=0;Vt<Ut;++Vt)Et[se+Vt+4]=Ft[Vt];return(se+4+Ut)*8},Nn=function(Et,wt,Ft,Ut,se,Vt,pe,ye,Ee,Ye,gn){_e(wt,gn++,Ft),++se[256];for(var fn=ne(se,15),In=fn.t,Qe=fn.l,ci=ne(Vt,15),Yn=ci.t,mi=ci.l,Rn=Pn(In),Ai=Rn.c,Hi=Rn.n,sr=Pn(Yn),Er=sr.c,to=sr.n,gr=new ee(19),ki=0;ki<Ai.length;++ki)++gr[Ai[ki]&31];for(var ki=0;ki<Er.length;++ki)++gr[Er[ki]&31];for(var yr=ne(gr,7),Kr=yr.t,Kn=yr.l,Jn=19;Jn>4&&!Kr[qt[Jn-1]];--Jn);var Wi=Ye+5<<3,ge=Mn(se,St)+Mn(Vt,It)+pe,Ce=Mn(se,In)+Mn(Vt,Yn)+pe+14+3*Jn+Mn(gr,Kr)+2*gr[16]+3*gr[17]+7*gr[18];if(Ee>=0&&Wi<=ge&&Wi<=Ce)return Xe(wt,gn,Et.subarray(Ee,Ee+Ye));var Ve,en,un,hn;if(_e(wt,gn,1+(Ce<ge)),gn+=2,Ce<ge){Ve=dt(In,Qe,0),en=In,un=dt(Yn,mi,0),hn=Yn;var Dn=dt(Kr,Kn,0);_e(wt,gn,Hi-257),_e(wt,gn+5,to-1),_e(wt,gn+10,Jn-4),gn+=14;for(var ki=0;ki<Jn;++ki)_e(wt,gn+3*ki,Kr[qt[ki]]);gn+=3*Jn;for(var qn=[Ai,Er],Te=0;Te<2;++Te)for(var ln=qn[Te],ki=0;ki<ln.length;++ki){var mn=ln[ki]&31;_e(wt,gn,Dn[mn]),gn+=Kr[mn],mn>15&&(_e(wt,gn,ln[ki]>>5&127),gn+=ln[ki]>>12)}}else Ve=_t,en=St,un=oe,hn=It;for(var ki=0;ki<ye;++ki){var Fn=Ut[ki];if(Fn>255){var mn=Fn>>18&31;ve(wt,gn,Ve[mn+257]),gn+=en[mn+257],mn>7&&(_e(wt,gn,Fn>>23&31),gn+=Nt[mn]);var Xn=Fn&31;ve(wt,gn,un[Xn]),gn+=hn[Xn],Xn>3&&(ve(wt,gn,Fn>>5&8191),gn+=jt[Xn])}else ve(wt,gn,Ve[Fn]),gn+=en[Fn]}return ve(wt,gn,Ve[256]),gn+en[256]},Zn=new Zt([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),fi=new Ie(0),zn=function(Et,wt,Ft,Ut,se,Vt){var pe=Vt.z||Et.length,ye=new Ie(Ut+pe+5*(1+Math.ceil(pe/7e3))+se),Ee=ye.subarray(Ut,ye.length-se),Ye=Vt.l,gn=(Vt.r||0)&7;if(wt){gn&&(Ee[0]=Vt.r>>3);for(var fn=Zn[wt-1],In=fn>>13,Qe=fn&8191,ci=(1<<Ft)-1,Yn=Vt.p||new ee(32768),mi=Vt.h||new ee(ci+1),Rn=Math.ceil(Ft/3),Ai=2*Rn,Hi=function(Xr){return(Et[Xr]^Et[Xr+1]<<Rn^Et[Xr+2]<<Ai)&ci},sr=new Zt(25e3),Er=new ee(288),to=new ee(32),gr=0,ki=0,yr=Vt.i||0,Kr=0,Kn=Vt.w||0,Jn=0;yr+2<pe;++yr){var Wi=Hi(yr),ge=yr&32767,Ce=mi[Wi];if(Yn[ge]=Ce,mi[Wi]=ge,Kn<=yr){var Ve=pe-yr;if((gr>7e3||Kr>24576)&&(Ve>423||!Ye)){gn=Nn(Et,Ee,0,sr,Er,to,ki,Kr,Jn,yr-Jn,gn),Kr=gr=ki=0,Jn=yr;for(var en=0;en<286;++en)Er[en]=0;for(var en=0;en<30;++en)to[en]=0}var un=2,hn=0,Dn=Qe,qn=ge-Ce&32767;if(Ve>2&&Wi==Hi(yr-qn))for(var Te=Math.min(In,Ve)-1,ln=Math.min(32767,yr),mn=Math.min(258,Ve);qn<=ln&&--Dn&&ge!=Ce;){if(Et[yr+un]==Et[yr+un-qn]){for(var Fn=0;Fn<mn&&Et[yr+Fn]==Et[yr+Fn-qn];++Fn);if(Fn>un){if(un=Fn,hn=qn,Fn>Te)break;for(var Xn=Math.min(qn,Fn-2),li=0,en=0;en<Xn;++en){var si=yr-qn+en&32767,Ei=Yn[si],Ii=si-Ei&32767;Ii>li&&(li=Ii,Ce=si)}}}ge=Ce,Ce=Yn[ge],qn+=ge-Ce&32767}if(hn){sr[Kr++]=268435456|Yt[un]<<18|tt[hn];var Xi=Yt[un]&31,ir=tt[hn]&31;ki+=Nt[Xi]+jt[ir],++Er[257+Xi],++to[ir],Kn=yr+un,++gr}else sr[Kr++]=Et[yr],++Er[Et[yr]]}}for(yr=Math.max(yr,Kn);yr<pe;++yr)sr[Kr++]=Et[yr],++Er[Et[yr]];gn=Nn(Et,Ee,Ye,sr,Er,to,ki,Kr,Jn,yr-Jn,gn),Ye||(Vt.r=gn&7|Ee[gn/8|0]<<3,gn-=7,Vt.h=mi,Vt.p=Yn,Vt.i=yr,Vt.w=Kn)}else{for(var yr=Vt.w||0;yr<pe+Ye;yr+=65535){var dr=yr+65535;dr>=pe&&(Ee[gn/8|0]=Ye,dr=pe),gn=Xe(Ee,gn+1,Et.subarray(yr,dr))}Vt.i=pe}return Wt(ye,0,Ut+Ke(gn)+se)},Si=null,nn=function(){var Et=-1;return{p:function(wt){for(var Ft=Et,Ut=0;Ut<wt.length;++Ut)Ft=Si[Ft&255^wt[Ut]]^Ft>>>8;Et=Ft},d:function(){return~Et}}},Fi=function(){var Et=1,wt=0;return{p:function(Ft){for(var Ut=Et,se=wt,Vt=Ft.length|0,pe=0;pe!=Vt;){for(var ye=Math.min(pe+2655,Vt);pe<ye;++pe)se+=Ut+=Ft[pe];Ut=(Ut&65535)+15*(Ut>>16),se=(se&65535)+15*(se>>16)}Et=Ut,wt=se},d:function(){return Et%=65521,wt%=65521,(Et&255)<<24|(Et&65280)<<8|(wt&255)<<8|wt>>8}}},Ti=function(Et,wt,Ft,Ut,se){if(!se&&(se={l:1},wt.dictionary)){var Vt=wt.dictionary.subarray(-32768),pe=new Ie(Vt.length+Et.length);pe.set(Vt),pe.set(Et,Vt.length),Et=pe,se.w=Vt.length}return zn(Et,wt.level==null?6:wt.level,wt.mem==null?se.l?Math.ceil(Math.max(8,Math.min(13,Math.log(Et.length)))*1.5):20:12+wt.mem,Ft,Ut,se)},Lt=function(Et,wt){var Ft={};for(var Ut in Et)Ft[Ut]=Et[Ut];for(var Ut in wt)Ft[Ut]=wt[Ut];return Ft},Ot=function(Et,wt,Ft){for(var Ut=Et(),se=Et.toString(),Vt=se.slice(se.indexOf("[")+1,se.lastIndexOf("]")).replace(/\s+/g,"").split(","),pe=0;pe<Ut.length;++pe){var ye=Ut[pe],Ee=Vt[pe];if(typeof ye=="function"){wt+=";"+Ee+"=";var Ye=ye.toString();if(ye.prototype)if(Ye.indexOf("[native code]")!=-1){var gn=Ye.indexOf(" ",8)+1;wt+=Ye.slice(gn,Ye.indexOf("(",gn))}else{wt+=Ye;for(var fn in ye.prototype)wt+=";"+Ee+".prototype."+fn+"="+ye.prototype[fn].toString()}else wt+=Ye}else Ft[Ee]=ye}return wt},mt=null,ft=function(Et){var wt=[];for(var Ft in Et)Et[Ft].buffer&&wt.push((Et[Ft]=new Et[Ft].constructor(Et[Ft])).buffer);return wt},pt=function(Et,wt,Ft,Ut){if(!mt[Ft]){for(var se="",Vt={},pe=Et.length-1,ye=0;ye<pe;++ye)se=Ot(Et[ye],se,Vt);mt[Ft]={c:Ot(Et[pe],se,Vt),e:Vt}}var Ee=Lt({},mt[Ft].e);return ie(mt[Ft].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+wt.toString()+"}",Ft,Ee,ft(Ee),Ut)},At=function(){return[Ie,ee,Zt,Nt,jt,qt,Kt,et,Gt,ue,lt,He,dt,de,be,Jt,Ke,Wt,Me,We,ys,Oe,ke]},le=function(){return[Ie,ee,Zt,Nt,jt,qt,Yt,tt,_t,St,oe,It,lt,Zn,fi,dt,_e,ve,ne,Se,Pn,Mn,Xe,Nn,Ke,Wt,zn,Ti,lo,Oe]},we=function(){return[ji,mr,_n,nn,Si]},ae=function(){return[cr,Ji]},me=function(){return[Mr,_n,Fi]},Re=function(){return[ao]},Oe=function(Et){return postMessage(Et,[Et.buffer])},ke=function(Et){return Et&&{out:Et.size&&new Ie(Et.size),dictionary:Et.dictionary}},rn=function(Et,wt,Ft,Ut,se,Vt){var pe=pt(Ft,Ut,se,function(ye,Ee){pe.terminate(),Vt(ye,Ee)});return pe.postMessage([Et,wt],wt.consume?[Et.buffer]:[]),function(){pe.terminate()}},Vn=function(Et){return Et.ondata=function(wt,Ft){return postMessage([wt,Ft],[wt.buffer])},function(wt){wt.data.length?(Et.push(wt.data[0],wt.data[1]),postMessage([wt.data[0].length])):Et.flush()}},sn=function(Et,wt,Ft,Ut,se,Vt,pe){var ye,Ee=pt(Et,Ut,se,function(Ye,gn){Ye?(Ee.terminate(),wt.ondata.call(wt,Ye)):Array.isArray(gn)?gn.length==1?(wt.queuedSize-=gn[0],wt.ondrain&&wt.ondrain(gn[0])):(gn[1]&&Ee.terminate(),wt.ondata.call(wt,Ye,gn[0],gn[1])):pe(gn)});Ee.postMessage(Ft),wt.queuedSize=0,wt.push=function(Ye,gn){wt.ondata||Me(5),ye&&wt.ondata(Me(4,0,1),null,!!gn),wt.queuedSize+=Ye.length,Ee.postMessage([Ye,ye=gn],[Ye.buffer])},wt.terminate=function(){Ee.terminate()},Vt&&(wt.flush=function(){Ee.postMessage([])})},An=function(Et,wt){return Et[wt]|Et[wt+1]<<8},Bn=function(Et,wt){return(Et[wt]|Et[wt+1]<<8|Et[wt+2]<<16|Et[wt+3]<<24)>>>0},ii=function(Et,wt){return Bn(Et,wt)+Bn(Et,wt+4)*4294967296},_n=function(Et,wt,Ft){for(;Ft;++wt)Et[wt]=Ft,Ft>>>=8},ji=function(Et,wt){var Ft=wt.filename;if(Et[0]=31,Et[1]=139,Et[2]=8,Et[8]=wt.level<2?4:wt.level==9?2:0,Et[9]=3,wt.mtime!=0&&_n(Et,4,Math.floor(new Date(wt.mtime||Date.now())/1e3)),Ft){Et[3]=8;for(var Ut=0;Ut<=Ft.length;++Ut)Et[Ut+10]=Ft.charCodeAt(Ut)}},cr=function(Et){(Et[0]!=31||Et[1]!=139||Et[2]!=8)&&Me(6,"invalid gzip data");var wt=Et[3],Ft=10;wt&4&&(Ft+=(Et[10]|Et[11]<<8)+2);for(var Ut=(wt>>3&1)+(wt>>4&1);Ut>0;Ut-=!Et[Ft++]);return Ft+(wt&2)},Ji=function(Et){var wt=Et.length;return(Et[wt-4]|Et[wt-3]<<8|Et[wt-2]<<16|Et[wt-1]<<24)>>>0},mr=function(Et){return 10+(Et.filename?Et.filename.length+1:0)},Mr=function(Et,wt){var Ft=wt.level,Ut=Ft==0?0:Ft<6?1:Ft==9?3:2;if(Et[0]=120,Et[1]=Ut<<6|(wt.dictionary&&32),Et[1]|=31-(Et[0]<<8|Et[1])%31,wt.dictionary){var se=Fi();se.p(wt.dictionary),_n(Et,2,se.d())}},ao=function(Et,wt){return((Et[0]&15)!=8||Et[0]>>4>7||(Et[0]<<8|Et[1])%31)&&Me(6,"invalid zlib data"),(Et[1]>>5&1)==+!wt&&Me(6,"invalid zlib data: "+(Et[1]&32?"need":"unexpected")+" dictionary"),(Et[1]>>3&4)+2};function Yr(Et,wt){return typeof Et=="function"&&(wt=Et,Et={}),this.ondata=wt,Et}var Zr=null,kr=null;function Gr(Et,wt,Ft){return Ft||(Ft=wt,wt={}),typeof Ft!="function"&&Me(7),rn(Et,wt,[le],function(Ut){return Oe(lo(Ut.data[0],Ut.data[1]))},0,Ft)}function lo(Et,wt){return Ti(Et,wt||{},0,0)}var _o=null,ns=null;function co(Et,wt,Ft){return Ft||(Ft=wt,wt={}),typeof Ft!="function"&&Me(7),rn(Et,wt,[At],function(Ut){return Oe(ys(Ut.data[0],ke(Ut.data[1])))},1,Ft)}function ys(Et,wt){return We(Et,{i:2},wt&&wt.out,wt&&wt.dictionary)}var jo=null,$t=null;function ri(Et,wt,Ft){return Ft||(Ft=wt,wt={}),typeof Ft!="function"&&Me(7),rn(Et,wt,[le,we,function(){return[ws]}],function(Ut){return Oe(ws(Ut.data[0],Ut.data[1]))},2,Ft)}function ws(Et,wt){wt||(wt={});var Ft=nn(),Ut=Et.length;Ft.p(Et);var se=Ti(Et,wt,mr(wt),8),Vt=se.length;return ji(se,wt),_n(se,Vt-8,Ft.d()),_n(se,Vt-4,Ut),se}var Is=null,ma=null;function va(Et,wt,Ft){return Ft||(Ft=wt,wt={}),typeof Ft!="function"&&Me(7),rn(Et,wt,[At,ae,function(){return[qs]}],function(Ut){return Oe(qs(Ut.data[0],Ut.data[1]))},3,Ft)}function qs(Et,wt){var Ft=cr(Et);return Ft+8>Et.length&&Me(6,"invalid gzip data"),We(Et.subarray(Ft,-8),{i:2},wt&&wt.out||new Ie(Ji(Et)),wt&&wt.dictionary)}var _r=null,Dr=null;function kn(Et,wt,Ft){return Ft||(Ft=wt,wt={}),typeof Ft!="function"&&Me(7),rn(Et,wt,[le,me,function(){return[Tn]}],function(Ut){return Oe(Tn(Ut.data[0],Ut.data[1]))},4,Ft)}function Tn(Et,wt){wt||(wt={});var Ft=Fi();Ft.p(Et);var Ut=Ti(Et,wt,wt.dictionary?6:2,4);return Mr(Ut,wt),_n(Ut,Ut.length-4,Ft.d()),Ut}var De=null,ti=null;function yi(Et,wt,Ft){return Ft||(Ft=wt,wt={}),typeof Ft!="function"&&Me(7),rn(Et,wt,[At,Re,function(){return[dn]}],function(Ut){return Oe(dn(Ut.data[0],ke(Ut.data[1])))},5,Ft)}function dn(Et,wt){return We(Et.subarray(ao(Et,wt&&wt.dictionary),-4),{i:2},wt&&wt.out,wt&&wt.dictionary)}var Le=null,yn=null;function Qn(Et,wt,Ft){return Ft||(Ft=wt,wt={}),typeof Ft!="function"&&Me(7),Et[0]==31&&Et[1]==139&&Et[2]==8?va(Et,wt,Ft):(Et[0]&15)!=8||Et[0]>>4>7||(Et[0]<<8|Et[1])%31?co(Et,wt,Ft):yi(Et,wt,Ft)}function wi(Et,wt){return Et[0]==31&&Et[1]==139&&Et[2]==8?qs(Et,wt):(Et[0]&15)!=8||Et[0]>>4>7||(Et[0]<<8|Et[1])%31?ys(Et,wt):dn(Et,wt)}var Oi=function(Et,wt,Ft,Ut){for(var se in Et){var Vt=Et[se],pe=wt+se,ye=Ut;Array.isArray(Vt)&&(ye=Lt(Ut,Vt[1]),Vt=Vt[0]),Vt instanceof Ie?Ft[pe]=[Vt,ye]:(Ft[pe+="/"]=[new Ie(0),ye],Oi(Vt,pe,Ft,Ut))}},qe=typeof TextEncoder!="undefined"&&new TextEncoder,oi=typeof TextDecoder!="undefined"&&new TextDecoder,Pi=0;try{oi.decode(fi,{stream:!0}),Pi=1}catch(Et){}var er=function(Et){for(var wt="",Ft=0;;){var Ut=Et[Ft++],se=(Ut>127)+(Ut>223)+(Ut>239);if(Ft+se>Et.length)return{s:wt,r:Wt(Et,Ft-1)};se?se==3?(Ut=((Ut&15)<<18|(Et[Ft++]&63)<<12|(Et[Ft++]&63)<<6|Et[Ft++]&63)-65536,wt+=String.fromCharCode(55296|Ut>>10,56320|Ut&1023)):se&1?wt+=String.fromCharCode((Ut&31)<<6|Et[Ft++]&63):wt+=String.fromCharCode((Ut&15)<<12|(Et[Ft++]&63)<<6|Et[Ft++]&63):wt+=String.fromCharCode(Ut)}},On=null,ui=null;function Cr(Et,wt){if(wt){for(var Ft=new Ie(Et.length),Ut=0;Ut<Et.length;++Ut)Ft[Ut]=Et.charCodeAt(Ut);return Ft}if(qe)return qe.encode(Et);for(var se=Et.length,Vt=new Ie(Et.length+(Et.length>>1)),pe=0,ye=function(gn){Vt[pe++]=gn},Ut=0;Ut<se;++Ut){if(pe+5>Vt.length){var Ee=new Ie(pe+8+(se-Ut<<1));Ee.set(Vt),Vt=Ee}var Ye=Et.charCodeAt(Ut);Ye<128||wt?ye(Ye):Ye<2048?(ye(192|Ye>>6),ye(128|Ye&63)):Ye>55295&&Ye<57344?(Ye=65536+(Ye&1047552)|Et.charCodeAt(++Ut)&1023,ye(240|Ye>>18),ye(128|Ye>>12&63),ye(128|Ye>>6&63),ye(128|Ye&63)):(ye(224|Ye>>12),ye(128|Ye>>6&63),ye(128|Ye&63))}return Wt(Vt,0,pe)}function or(Et,wt){if(wt){for(var Ft="",Ut=0;Ut<Et.length;Ut+=16384)Ft+=String.fromCharCode.apply(null,Et.subarray(Ut,Ut+16384));return Ft}else{if(oi)return oi.decode(Et);var se=er(Et),Vt=se.s,Ft=se.r;return Ft.length&&Me(8),Vt}}var zr=function(Et){return Et==1?3:Et<6?2:Et==9?1:0},ar=function(Et,wt){return wt+30+An(Et,wt+26)+An(Et,wt+28)},Lr=function(Et,wt,Ft){var Ut=An(Et,wt+28),se=or(Et.subarray(wt+46,wt+46+Ut),!(An(Et,wt+8)&2048)),Vt=wt+46+Ut,pe=Bn(Et,wt+20),ye=Ft&&pe==4294967295?nr(Et,Vt):[pe,Bn(Et,wt+24),Bn(Et,wt+42)],Ee=ye[0],Ye=ye[1],gn=ye[2];return[An(Et,wt+10),Ee,Ye,se,Vt+An(Et,wt+30)+An(Et,wt+32),gn]},nr=function(Et,wt){for(;An(Et,wt)!=1;wt+=4+An(Et,wt+2));return[ii(Et,wt+12),ii(Et,wt+4),ii(Et,wt+20)]},Pr=function(Et){var wt=0;if(Et)for(var Ft in Et){var Ut=Et[Ft].length;Ut>65535&&Me(9),wt+=Ut+4}return wt},io=function(Et,wt,Ft,Ut,se,Vt,pe,ye){var Ee=Ut.length,Ye=Ft.extra,gn=ye&&ye.length,fn=Pr(Ye);_n(Et,wt,pe!=null?33639248:67324752),wt+=4,pe!=null&&(Et[wt++]=20,Et[wt++]=Ft.os),Et[wt]=20,wt+=2,Et[wt++]=Ft.flag<<1|(Vt<0&&8),Et[wt++]=se&&8,Et[wt++]=Ft.compression&255,Et[wt++]=Ft.compression>>8;var In=new Date(Ft.mtime==null?Date.now():Ft.mtime),Qe=In.getFullYear()-1980;if((Qe<0||Qe>119)&&Me(10),_n(Et,wt,Qe<<25|In.getMonth()+1<<21|In.getDate()<<16|In.getHours()<<11|In.getMinutes()<<5|In.getSeconds()>>1),wt+=4,Vt!=-1&&(_n(Et,wt,Ft.crc),_n(Et,wt+4,Vt<0?-Vt-2:Vt),_n(Et,wt+8,Ft.size)),_n(Et,wt+12,Ee),_n(Et,wt+14,fn),wt+=16,pe!=null&&(_n(Et,wt,gn),_n(Et,wt+6,Ft.attrs),_n(Et,wt+10,pe),wt+=14),Et.set(Ut,wt),wt+=Ee,fn)for(var ci in Ye){var Yn=Ye[ci],mi=Yn.length;_n(Et,wt,+ci),_n(Et,wt+2,mi),Et.set(Yn,wt+4),wt+=4+mi}return gn&&(Et.set(ye,wt),wt+=gn),wt},Uo=function(Et,wt,Ft,Ut,se){_n(Et,wt,101010256),_n(Et,wt+8,Ft),_n(Et,wt+10,Ft),_n(Et,wt+12,Ut),_n(Et,wt+16,se)},gi=null,Qo=null,ps=null,$o=null;function pi(Et,wt,Ft){Ft||(Ft=wt,wt={}),typeof Ft!="function"&&Me(7);var Ut={};Oi(Et,"",Ut,wt);var se=Object.keys(Ut),Vt=se.length,pe=0,ye=0,Ee=Vt,Ye=new Array(Vt),gn=[],fn=function(){for(var mi=0;mi<gn.length;++mi)gn[mi]()},In=function(mi,Rn){di(function(){Ft(mi,Rn)})};di(function(){In=Ft});var Qe=function(){var mi=new Ie(ye+22),Rn=pe,Ai=ye-pe;ye=0;for(var Hi=0;Hi<Ee;++Hi){var sr=Ye[Hi];try{var Er=sr.c.length;io(mi,ye,sr,sr.f,sr.u,Er);var to=30+sr.f.length+Pr(sr.extra),gr=ye+to;mi.set(sr.c,gr),io(mi,pe,sr,sr.f,sr.u,Er,ye,sr.m),pe+=16+to+(sr.m?sr.m.length:0),ye=gr+Er}catch(ki){return In(ki,null)}}Uo(mi,pe,Ye.length,Ai,Rn),In(null,mi)};Vt||Qe();for(var ci=function(mi){var Rn=se[mi],Ai=Ut[Rn],Hi=Ai[0],sr=Ai[1],Er=nn(),to=Hi.length;Er.p(Hi);var gr=Cr(Rn),ki=gr.length,yr=sr.comment,Kr=yr&&Cr(yr),Kn=Kr&&Kr.length,Jn=Pr(sr.extra),Wi=sr.level==0?0:8,ge=function(Ce,Ve){if(Ce)fn(),In(Ce,null);else{var en=Ve.length;Ye[mi]=Lt(sr,{size:to,crc:Er.d(),c:Ve,f:gr,m:Kr,u:ki!=Rn.length||Kr&&yr.length!=Kn,compression:Wi}),pe+=30+ki+Jn+en,ye+=76+2*(ki+Jn)+(Kn||0)+en,--Vt||Qe()}};if(ki>65535&&ge(Me(11,0,1),null),!Wi)ge(null,Hi);else if(to<16e4)try{ge(null,lo(Hi,sr))}catch(Ce){ge(Ce,null)}else gn.push(Gr(Hi,sr,ge))},Yn=0;Yn<Ee;++Yn)ci(Yn);return fn}function ur(Et,wt){wt||(wt={});var Ft={},Ut=[];Oi(Et,"",Ft,wt);var se=0,Vt=0;for(var pe in Ft){var ye=Ft[pe],Ee=ye[0],Ye=ye[1],gn=Ye.level==0?0:8,fn=Cr(pe),In=fn.length,Qe=Ye.comment,ci=Qe&&Cr(Qe),Yn=ci&&ci.length,mi=Pr(Ye.extra);In>65535&&Me(11);var Rn=gn?lo(Ee,Ye):Ee,Ai=Rn.length,Hi=nn();Hi.p(Ee),Ut.push(Lt(Ye,{size:Ee.length,crc:Hi.d(),c:Rn,f:fn,m:ci,u:In!=pe.length||ci&&Qe.length!=Yn,o:se,compression:gn})),se+=30+In+mi+Ai,Vt+=76+2*(In+mi)+(Yn||0)+Ai}for(var sr=new Ie(Vt+22),Er=se,to=Vt-se,gr=0;gr<Ut.length;++gr){var fn=Ut[gr];io(sr,fn.o,fn,fn.f,fn.u,fn.c.length);var ki=30+fn.f.length+Pr(fn.extra);sr.set(fn.c,fn.o+ki),io(sr,se,fn,fn.f,fn.u,fn.c.length,fn.o,fn.m),se+=16+ki+(fn.m?fn.m.length:0)}return Uo(sr,se,Ut.length,to,Er),sr}var Ur=null,uo=null,qr=null,ko=null,di=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(Et){Et()};function Co(Et,wt,Ft){Ft||(Ft=wt,wt={}),typeof Ft!="function"&&Me(7);var Ut=[],se=function(){for(var mi=0;mi<Ut.length;++mi)Ut[mi]()},Vt={},pe=function(mi,Rn){di(function(){Ft(mi,Rn)})};di(function(){pe=Ft});for(var ye=Et.length-22;Bn(Et,ye)!=101010256;--ye)if(!ye||Et.length-ye>65558)return pe(Me(13,0,1),null),se;var Ee=An(Et,ye+8);if(Ee){var Ye=Ee,gn=Bn(Et,ye+16),fn=gn==4294967295||Ye==65535;if(fn){var In=Bn(Et,ye-12);fn=Bn(Et,In)==101075792,fn&&(Ye=Ee=Bn(Et,In+32),gn=Bn(Et,In+48))}for(var Qe=wt&&wt.filter,ci=function(mi){var Rn=Lr(Et,gn,fn),Ai=Rn[0],Hi=Rn[1],sr=Rn[2],Er=Rn[3],to=Rn[4],gr=Rn[5],ki=ar(Et,gr);gn=to;var yr=function(Kn,Jn){Kn?(se(),pe(Kn,null)):(Jn&&(Vt[Er]=Jn),--Ee||pe(null,Vt))};if(!Qe||Qe({name:Er,size:Hi,originalSize:sr,compression:Ai}))if(!Ai)yr(null,Wt(Et,ki,ki+Hi));else if(Ai==8){var Kr=Et.subarray(ki,ki+Hi);if(sr<524288||Hi>.8*sr)try{yr(null,ys(Kr,{out:new Ie(sr)}))}catch(Kn){yr(Kn,null)}else Ut.push(co(Kr,{size:sr},yr))}else yr(Me(14,"unknown compression type "+Ai,1),null);else yr(null,null)},Yn=0;Yn<Ye;++Yn)ci(Yn)}else pe(null,{});return se}function jr(Et,wt){for(var Ft={},Ut=Et.length-22;Bn(Et,Ut)!=101010256;--Ut)(!Ut||Et.length-Ut>65558)&&Me(13);var se=An(Et,Ut+8);if(!se)return{};var Vt=Bn(Et,Ut+16),pe=Vt==4294967295||se==65535;if(pe){var ye=Bn(Et,Ut-12);pe=Bn(Et,ye)==101075792,pe&&(se=Bn(Et,ye+32),Vt=Bn(Et,ye+48))}for(var Ee=wt&&wt.filter,Ye=0;Ye<se;++Ye){var gn=Lr(Et,Vt,pe),fn=gn[0],In=gn[1],Qe=gn[2],ci=gn[3],Yn=gn[4],mi=gn[5],Rn=ar(Et,mi);Vt=Yn,(!Ee||Ee({name:ci,size:In,originalSize:Qe,compression:fn}))&&(fn?fn==8?Ft[ci]=ys(Et.subarray(Rn,Rn+In),{out:new Ie(Qe)}):Me(14,"unknown compression type "+fn):Ft[ci]=Wt(Et,Rn,Rn+In))}return Ft}var Sr=function(){return typeof window!="undefined"?window:typeof bt.g!="undefined"?bt.g:typeof self!="undefined"?self:this}();function Ci(){Sr.console&&typeof Sr.console.log=="function"&&Sr.console.log.apply(Sr.console,arguments)}var Bo={log:Ci,warn:function(Et){Sr.console&&(typeof Sr.console.warn=="function"?Sr.console.warn.apply(Sr.console,arguments):Ci.call(null,arguments))},error:function(Et){Sr.console&&(typeof Sr.console.error=="function"?Sr.console.error.apply(Sr.console,arguments):Ci(Et))}};function xi(Et,wt,Ft){var Ut=new XMLHttpRequest;Ut.open("GET",Et),Ut.responseType="blob",Ut.onload=function(){ta(Ut.response,wt,Ft)},Ut.onerror=function(){Bo.error("could not download file")},Ut.send()}function Yo(Et){var wt=new XMLHttpRequest;wt.open("HEAD",Et,!1);try{wt.send()}catch(Ft){}return wt.status>=200&&wt.status<=299}function ha(Et){try{Et.dispatchEvent(new MouseEvent("click"))}catch(Ft){var wt=document.createEvent("MouseEvents");wt.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Et.dispatchEvent(wt)}}var vs,da,ta=Sr.saveAs||((typeof window=="undefined"?"undefined":(0,Mt.Z)(window))!=="object"||window!==Sr?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(Et,wt,Ft){var Ut=Sr.URL||Sr.webkitURL,se=document.createElement("a");wt=wt||Et.name||"download",se.download=wt,se.rel="noopener",typeof Et=="string"?(se.href=Et,se.origin!==location.origin?Yo(se.href)?xi(Et,wt,Ft):ha(se,se.target="_blank"):ha(se)):(se.href=Ut.createObjectURL(Et),setTimeout(function(){Ut.revokeObjectURL(se.href)},4e4),setTimeout(function(){ha(se)},0))}:"msSaveOrOpenBlob"in navigator?function(Et,wt,Ft){if(wt=wt||Et.name||"download",typeof Et=="string")if(Yo(Et))xi(Et,wt,Ft);else{var Ut=document.createElement("a");Ut.href=Et,Ut.target="_blank",setTimeout(function(){ha(Ut)})}else navigator.msSaveOrOpenBlob(function(se,Vt){return Vt===void 0?Vt={autoBom:!1}:(0,Mt.Z)(Vt)!=="object"&&(Bo.warn("Deprecated: Expected third argument to be a object"),Vt={autoBom:!Vt}),Vt.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(se.type)?new Blob(["\uFEFF",se],{type:se.type}):se}(Et,Ft),wt)}:function(Et,wt,Ft,Ut){if((Ut=Ut||open("","_blank"))&&(Ut.document.title=Ut.document.body.innerText="downloading..."),typeof Et=="string")return xi(Et,wt,Ft);var se=Et.type==="application/octet-stream",Vt=/constructor/i.test(Sr.HTMLElement)||Sr.safari,pe=/CriOS\/[\d]+/.test(navigator.userAgent);if((pe||se&&Vt)&&(typeof FileReader=="undefined"?"undefined":(0,Mt.Z)(FileReader))==="object"){var ye=new FileReader;ye.onloadend=function(){var gn=ye.result;gn=pe?gn:gn.replace(/^data:[^;]*;/,"data:attachment/file;"),Ut?Ut.location.href=gn:location=gn,Ut=null},ye.readAsDataURL(Et)}else{var Ee=Sr.URL||Sr.webkitURL,Ye=Ee.createObjectURL(Et);Ut?Ut.location=Ye:location.href=Ye,Ut=null,setTimeout(function(){Ee.revokeObjectURL(Ye)},4e4)}});function To(Et){var wt;Et=Et||"",this.ok=!1,Et.charAt(0)=="#"&&(Et=Et.substr(1,6)),Et={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"}[Et=(Et=Et.replace(/ /g,"")).toLowerCase()]||Et;for(var Ft=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(ye){return[parseInt(ye[1]),parseInt(ye[2]),parseInt(ye[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(ye){return[parseInt(ye[1],16),parseInt(ye[2],16),parseInt(ye[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(ye){return[parseInt(ye[1]+ye[1],16),parseInt(ye[2]+ye[2],16),parseInt(ye[3]+ye[3],16)]}}],Ut=0;Ut<Ft.length;Ut++){var se=Ft[Ut].re,Vt=Ft[Ut].process,pe=se.exec(Et);pe&&(wt=Vt(pe),this.r=wt[0],this.g=wt[1],this.b=wt[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 ye=this.r.toString(16),Ee=this.g.toString(16),Ye=this.b.toString(16);return ye.length==1&&(ye="0"+ye),Ee.length==1&&(Ee="0"+Ee),Ye.length==1&&(Ye="0"+Ye),"#"+ye+Ee+Ye}}function Ro(Et,wt){var Ft=Et[0],Ut=Et[1],se=Et[2],Vt=Et[3];Ft=os(Ft,Ut,se,Vt,wt[0],7,-680876936),Vt=os(Vt,Ft,Ut,se,wt[1],12,-389564586),se=os(se,Vt,Ft,Ut,wt[2],17,606105819),Ut=os(Ut,se,Vt,Ft,wt[3],22,-1044525330),Ft=os(Ft,Ut,se,Vt,wt[4],7,-176418897),Vt=os(Vt,Ft,Ut,se,wt[5],12,1200080426),se=os(se,Vt,Ft,Ut,wt[6],17,-1473231341),Ut=os(Ut,se,Vt,Ft,wt[7],22,-45705983),Ft=os(Ft,Ut,se,Vt,wt[8],7,1770035416),Vt=os(Vt,Ft,Ut,se,wt[9],12,-1958414417),se=os(se,Vt,Ft,Ut,wt[10],17,-42063),Ut=os(Ut,se,Vt,Ft,wt[11],22,-1990404162),Ft=os(Ft,Ut,se,Vt,wt[12],7,1804603682),Vt=os(Vt,Ft,Ut,se,wt[13],12,-40341101),se=os(se,Vt,Ft,Ut,wt[14],17,-1502002290),Ft=xr(Ft,Ut=os(Ut,se,Vt,Ft,wt[15],22,1236535329),se,Vt,wt[1],5,-165796510),Vt=xr(Vt,Ft,Ut,se,wt[6],9,-1069501632),se=xr(se,Vt,Ft,Ut,wt[11],14,643717713),Ut=xr(Ut,se,Vt,Ft,wt[0],20,-373897302),Ft=xr(Ft,Ut,se,Vt,wt[5],5,-701558691),Vt=xr(Vt,Ft,Ut,se,wt[10],9,38016083),se=xr(se,Vt,Ft,Ut,wt[15],14,-660478335),Ut=xr(Ut,se,Vt,Ft,wt[4],20,-405537848),Ft=xr(Ft,Ut,se,Vt,wt[9],5,568446438),Vt=xr(Vt,Ft,Ut,se,wt[14],9,-1019803690),se=xr(se,Vt,Ft,Ut,wt[3],14,-187363961),Ut=xr(Ut,se,Vt,Ft,wt[8],20,1163531501),Ft=xr(Ft,Ut,se,Vt,wt[13],5,-1444681467),Vt=xr(Vt,Ft,Ut,se,wt[2],9,-51403784),se=xr(se,Vt,Ft,Ut,wt[7],14,1735328473),Ft=Ne(Ft,Ut=xr(Ut,se,Vt,Ft,wt[12],20,-1926607734),se,Vt,wt[5],4,-378558),Vt=Ne(Vt,Ft,Ut,se,wt[8],11,-2022574463),se=Ne(se,Vt,Ft,Ut,wt[11],16,1839030562),Ut=Ne(Ut,se,Vt,Ft,wt[14],23,-35309556),Ft=Ne(Ft,Ut,se,Vt,wt[1],4,-1530992060),Vt=Ne(Vt,Ft,Ut,se,wt[4],11,1272893353),se=Ne(se,Vt,Ft,Ut,wt[7],16,-155497632),Ut=Ne(Ut,se,Vt,Ft,wt[10],23,-1094730640),Ft=Ne(Ft,Ut,se,Vt,wt[13],4,681279174),Vt=Ne(Vt,Ft,Ut,se,wt[0],11,-358537222),se=Ne(se,Vt,Ft,Ut,wt[3],16,-722521979),Ut=Ne(Ut,se,Vt,Ft,wt[6],23,76029189),Ft=Ne(Ft,Ut,se,Vt,wt[9],4,-640364487),Vt=Ne(Vt,Ft,Ut,se,wt[12],11,-421815835),se=Ne(se,Vt,Ft,Ut,wt[15],16,530742520),Ft=ls(Ft,Ut=Ne(Ut,se,Vt,Ft,wt[2],23,-995338651),se,Vt,wt[0],6,-198630844),Vt=ls(Vt,Ft,Ut,se,wt[7],10,1126891415),se=ls(se,Vt,Ft,Ut,wt[14],15,-1416354905),Ut=ls(Ut,se,Vt,Ft,wt[5],21,-57434055),Ft=ls(Ft,Ut,se,Vt,wt[12],6,1700485571),Vt=ls(Vt,Ft,Ut,se,wt[3],10,-1894986606),se=ls(se,Vt,Ft,Ut,wt[10],15,-1051523),Ut=ls(Ut,se,Vt,Ft,wt[1],21,-2054922799),Ft=ls(Ft,Ut,se,Vt,wt[8],6,1873313359),Vt=ls(Vt,Ft,Ut,se,wt[15],10,-30611744),se=ls(se,Vt,Ft,Ut,wt[6],15,-1560198380),Ut=ls(Ut,se,Vt,Ft,wt[13],21,1309151649),Ft=ls(Ft,Ut,se,Vt,wt[4],6,-145523070),Vt=ls(Vt,Ft,Ut,se,wt[11],10,-1120210379),se=ls(se,Vt,Ft,Ut,wt[2],15,718787259),Ut=ls(Ut,se,Vt,Ft,wt[9],21,-343485551),Et[0]=Zo(Ft,Et[0]),Et[1]=Zo(Ut,Et[1]),Et[2]=Zo(se,Et[2]),Et[3]=Zo(Vt,Et[3])}function us(Et,wt,Ft,Ut,se,Vt){return wt=Zo(Zo(wt,Et),Zo(Ut,Vt)),Zo(wt<<se|wt>>>32-se,Ft)}function os(Et,wt,Ft,Ut,se,Vt,pe){return us(wt&Ft|~wt&Ut,Et,wt,se,Vt,pe)}function xr(Et,wt,Ft,Ut,se,Vt,pe){return us(wt&Ut|Ft&~Ut,Et,wt,se,Vt,pe)}function Ne(Et,wt,Ft,Ut,se,Vt,pe){return us(wt^Ft^Ut,Et,wt,se,Vt,pe)}function ls(Et,wt,Ft,Ut,se,Vt,pe){return us(Ft^(wt|~Ut),Et,wt,se,Vt,pe)}function ra(Et){var wt,Ft=Et.length,Ut=[1732584193,-271733879,-1732584194,271733878];for(wt=64;wt<=Et.length;wt+=64)Ro(Ut,al(Et.substring(wt-64,wt)));Et=Et.substring(wt-64);var se=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(wt=0;wt<Et.length;wt++)se[wt>>2]|=Et.charCodeAt(wt)<<(wt%4<<3);if(se[wt>>2]|=128<<(wt%4<<3),wt>55)for(Ro(Ut,se),wt=0;wt<16;wt++)se[wt]=0;return se[14]=8*Ft,Ro(Ut,se),Ut}function al(Et){var wt,Ft=[];for(wt=0;wt<64;wt+=4)Ft[wt>>2]=Et.charCodeAt(wt)+(Et.charCodeAt(wt+1)<<8)+(Et.charCodeAt(wt+2)<<16)+(Et.charCodeAt(wt+3)<<24);return Ft}vs=Sr.atob.bind(Sr),da=Sr.btoa.bind(Sr);var ll="0123456789abcdef".split("");function bl(Et){for(var wt="",Ft=0;Ft<4;Ft++)wt+=ll[Et>>8*Ft+4&15]+ll[Et>>8*Ft&15];return wt}function is(Et){return String.fromCharCode((255&Et)>>0,(65280&Et)>>8,(16711680&Et)>>16,(4278190080&Et)>>24)}function Vo(Et){return ra(Et).map(is).join("")}var Es=function(Et){for(var wt=0;wt<Et.length;wt++)Et[wt]=bl(Et[wt]);return Et.join("")}(ra("hello"))!="5d41402abc4b2a76b9719d911017c592";function Zo(Et,wt){if(Es){var Ft=(65535&Et)+(65535&wt);return(Et>>16)+(wt>>16)+(Ft>>16)<<16|65535&Ft}return Et+wt&4294967295}function Vs(Et,wt){var Ft,Ut,se,Vt;if(Et!==Ft){for(var pe=(se=Et,Vt=1+(256/Et.length>>0),new Array(Vt+1).join(se)),ye=[],Ee=0;Ee<256;Ee++)ye[Ee]=Ee;var Ye=0;for(Ee=0;Ee<256;Ee++){var gn=ye[Ee];Ye=(Ye+gn+pe.charCodeAt(Ee))%256,ye[Ee]=ye[Ye],ye[Ye]=gn}Ft=Et,Ut=ye}else ye=Ut;var fn=wt.length,In=0,Qe=0,ci="";for(Ee=0;Ee<fn;Ee++)Qe=(Qe+(gn=ye[In=(In+1)%256]))%256,ye[In]=ye[Qe],ye[Qe]=gn,pe=ye[(ye[In]+ye[Qe])%256],ci+=String.fromCharCode(wt.charCodeAt(Ee)^pe);return ci}var yl={print:4,modify:8,copy:16,"annot-forms":32};function Ao(Et,wt,Ft,Ut){this.v=1,this.r=2;var se=192;Et.forEach(function(ye){if(yl.perm!==void 0)throw new Error("Invalid permission: "+ye);se+=yl[ye]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var Vt=(wt+this.padding).substr(0,32),pe=(Ft+this.padding).substr(0,32);this.O=this.processOwnerPassword(Vt,pe),this.P=-(1+(255^se)),this.encryptionKey=Vo(Vt+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(Ut)).substr(0,5),this.U=Vs(this.encryptionKey,this.padding)}function yo(Et){if(/[^\u0000-\u00ff]/.test(Et))throw new Error("Invalid PDF Name Object: "+Et+", Only accept ASCII characters.");for(var wt="",Ft=Et.length,Ut=0;Ut<Ft;Ut++){var se=Et.charCodeAt(Ut);se<33||se===35||se===37||se===40||se===41||se===47||se===60||se===62||se===91||se===93||se===123||se===125||se>126?wt+="#"+("0"+se.toString(16)).slice(-2):wt+=Et[Ut]}return wt}function Zi(Et){if((0,Mt.Z)(Et)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var wt={};this.subscribe=function(Ft,Ut,se){if(se=se||!1,typeof Ft!="string"||typeof Ut!="function"||typeof se!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");wt.hasOwnProperty(Ft)||(wt[Ft]={});var Vt=Math.random().toString(35);return wt[Ft][Vt]=[Ut,!!se],Vt},this.unsubscribe=function(Ft){for(var Ut in wt)if(wt[Ut][Ft])return delete wt[Ut][Ft],Object.keys(wt[Ut]).length===0&&delete wt[Ut],!0;return!1},this.publish=function(Ft){if(wt.hasOwnProperty(Ft)){var Ut=Array.prototype.slice.call(arguments,1),se=[];for(var Vt in wt[Ft]){var pe=wt[Ft][Vt];try{pe[0].apply(Et,Ut)}catch(ye){Sr.console&&Bo.error("jsPDF PubSub Error",ye.message,ye)}pe[1]&&se.push(Vt)}se.length&&se.forEach(this.unsubscribe)}},this.getTopics=function(){return wt}}function bo(Et){if(!(this instanceof bo))return new bo(Et);var wt="opacity,stroke-opacity".split(",");for(var Ft in Et)Et.hasOwnProperty(Ft)&&wt.indexOf(Ft)>=0&&(this[Ft]=Et[Ft]);this.id="",this.objectNumber=-1}function xs(Et,wt){this.gState=Et,this.matrix=wt,this.id="",this.objectNumber=-1}function ca(Et,wt,Ft,Ut,se){if(!(this instanceof ca))return new ca(Et,wt,Ft,Ut,se);this.type=Et==="axial"?2:3,this.coords=wt,this.colors=Ft,xs.call(this,Ut,se)}function aa(Et,wt,Ft,Ut,se){if(!(this instanceof aa))return new aa(Et,wt,Ft,Ut,se);this.boundingBox=Et,this.xStep=wt,this.yStep=Ft,this.stream="",this.cloneIndex=0,xs.call(this,Ut,se)}function Ho(Et){var wt,Ft=typeof arguments[0]=="string"?arguments[0]:"p",Ut=arguments[1],se=arguments[2],Vt=arguments[3],pe=[],ye=1,Ee=16,Ye="S",gn=null;(0,Mt.Z)(Et=Et||{})==="object"&&(Ft=Et.orientation,Ut=Et.unit||Ut,se=Et.format||se,Vt=Et.compress||Et.compressPdf||Vt,(gn=Et.encryption||null)!==null&&(gn.userPassword=gn.userPassword||"",gn.ownerPassword=gn.ownerPassword||"",gn.userPermissions=gn.userPermissions||[]),ye=typeof Et.userUnit=="number"?Math.abs(Et.userUnit):1,Et.precision!==void 0&&(wt=Et.precision),Et.floatPrecision!==void 0&&(Ee=Et.floatPrecision),Ye=Et.defaultPathOperation||"S"),pe=Et.filters||(Vt===!0?["FlateEncode"]:pe),Ut=Ut||"mm",Ft=(""+(Ft||"P")).toLowerCase();var fn=Et.putOnlyUsedFonts||!1,In={},Qe={internal:{},__private__:{}};Qe.__private__.PubSub=Zi;var ci="1.3",Yn=Qe.__private__.getPdfVersion=function(){return ci};Qe.__private__.setPdfVersion=function(Ae){ci=Ae};var mi={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]};Qe.__private__.getPageFormats=function(){return mi};var Rn=Qe.__private__.getPageFormat=function(Ae){return mi[Ae]};se=se||"a4";var Ai={COMPAT:"compat",ADVANCED:"advanced"},Hi=Ai.COMPAT;function sr(){this.saveGraphicsState(),Hn(new ds(so,0,0,-so,0,Nc()*so).toString()+" cm"),this.setFontSize(this.getFontSize()/so),Ye="n",Hi=Ai.ADVANCED}function Er(){this.restoreGraphicsState(),Ye="S",Hi=Ai.COMPAT}var to=Qe.__private__.combineFontStyleAndFontWeight=function(Ae,vn){if(Ae=="bold"&&vn=="normal"||Ae=="bold"&&vn==400||Ae=="normal"&&vn=="italic"||Ae=="bold"&&vn=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return vn&&(Ae=vn==400||vn==="normal"?Ae==="italic"?"italic":"normal":vn!=700&&vn!=="bold"||Ae!=="normal"?(vn==700?"bold":vn)+""+Ae:"bold"),Ae};Qe.advancedAPI=function(Ae){var vn=Hi===Ai.COMPAT;return vn&&sr.call(this),typeof Ae!="function"||(Ae(this),vn&&Er.call(this)),this},Qe.compatAPI=function(Ae){var vn=Hi===Ai.ADVANCED;return vn&&Er.call(this),typeof Ae!="function"||(Ae(this),vn&&sr.call(this)),this},Qe.isAdvancedAPI=function(){return Hi===Ai.ADVANCED};var gr,ki=function(Ae){if(Hi!==Ai.ADVANCED)throw new Error(Ae+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},yr=Qe.roundToPrecision=Qe.__private__.roundToPrecision=function(Ae,vn){var vi=wt||vn;if(isNaN(Ae)||isNaN(vi))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return Ae.toFixed(vi).replace(/0+$/,"")};gr=Qe.hpf=Qe.__private__.hpf=typeof Ee=="number"?function(Ae){if(isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.hpf");return yr(Ae,Ee)}:Ee==="smart"?function(Ae){if(isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.hpf");return yr(Ae,Ae>-1&&Ae<1?16:5)}:function(Ae){if(isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.hpf");return yr(Ae,16)};var Kr=Qe.f2=Qe.__private__.f2=function(Ae){if(isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.f2");return yr(Ae,2)},Kn=Qe.__private__.f3=function(Ae){if(isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.f3");return yr(Ae,3)},Jn=Qe.scale=Qe.__private__.scale=function(Ae){if(isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.scale");return Hi===Ai.COMPAT?Ae*so:Hi===Ai.ADVANCED?Ae:void 0},Wi=function(Ae){return Hi===Ai.COMPAT?Nc()-Ae:Hi===Ai.ADVANCED?Ae:void 0},ge=function(Ae){return Jn(Wi(Ae))};Qe.__private__.setPrecision=Qe.setPrecision=function(Ae){typeof parseInt(Ae,10)=="number"&&(wt=parseInt(Ae,10))};var Ce,Ve="00000000000000000000000000000000",en=Qe.__private__.getFileId=function(){return Ve},un=Qe.__private__.setFileId=function(Ae){return Ve=Ae!==void 0&&/^[a-fA-F0-9]{32}$/.test(Ae)?Ae.toUpperCase():Ve.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),gn!==null&&(kl=new Ao(gn.userPermissions,gn.userPassword,gn.ownerPassword,Ve)),Ve};Qe.setFileId=function(Ae){return un(Ae),this},Qe.getFileId=function(){return en()};var hn=Qe.__private__.convertDateToPDFDate=function(Ae){var vn=Ae.getTimezoneOffset(),vi=vn<0?"+":"-",_i=Math.floor(Math.abs(vn/60)),lr=Math.abs(vn%60),Hr=[vi,mn(_i),"'",mn(lr),"'"].join("");return["D:",Ae.getFullYear(),mn(Ae.getMonth()+1),mn(Ae.getDate()),mn(Ae.getHours()),mn(Ae.getMinutes()),mn(Ae.getSeconds()),Hr].join("")},Dn=Qe.__private__.convertPDFDateToDate=function(Ae){var vn=parseInt(Ae.substr(2,4),10),vi=parseInt(Ae.substr(6,2),10)-1,_i=parseInt(Ae.substr(8,2),10),lr=parseInt(Ae.substr(10,2),10),Hr=parseInt(Ae.substr(12,2),10),fo=parseInt(Ae.substr(14,2),10);return new Date(vn,vi,_i,lr,Hr,fo,0)},qn=Qe.__private__.setCreationDate=function(Ae){var vn;if(Ae===void 0&&(Ae=new Date),Ae instanceof Date)vn=hn(Ae);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(Ae))throw new Error("Invalid argument passed to jsPDF.setCreationDate");vn=Ae}return Ce=vn},Te=Qe.__private__.getCreationDate=function(Ae){var vn=Ce;return Ae==="jsDate"&&(vn=Dn(Ce)),vn};Qe.setCreationDate=function(Ae){return qn(Ae),this},Qe.getCreationDate=function(Ae){return Te(Ae)};var ln,mn=Qe.__private__.padd2=function(Ae){return("0"+parseInt(Ae)).slice(-2)},Fn=Qe.__private__.padd2Hex=function(Ae){return("00"+(Ae=Ae.toString())).substr(Ae.length)},Xn=0,li=[],si=[],Ei=0,Ii=[],Xi=[],ir=!1,dr=si,Xr=function(){Xn=0,Ei=0,si=[],li=[],Ii=[],na=Oa(),Ea=Oa()};Qe.__private__.setCustomOutputDestination=function(Ae){ir=!0,dr=Ae};var $i=function(Ae){ir||(dr=Ae)};Qe.__private__.resetCustomOutputDestination=function(){ir=!1,dr=si};var Hn=Qe.__private__.out=function(Ae){return Ae=Ae.toString(),Ei+=Ae.length+1,dr.push(Ae),dr},no=Qe.__private__.write=function(Ae){return Hn(arguments.length===1?Ae.toString():Array.prototype.join.call(arguments," "))},ro=Qe.__private__.getArrayBuffer=function(Ae){for(var vn=Ae.length,vi=new ArrayBuffer(vn),_i=new Uint8Array(vi);vn--;)_i[vn]=Ae.charCodeAt(vn);return vi},tr=[["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]];Qe.__private__.getStandardFonts=function(){return tr};var pr=Et.fontSize||16;Qe.__private__.setFontSize=Qe.setFontSize=function(Ae){return pr=Hi===Ai.ADVANCED?Ae/so:Ae,this};var Ar,qi=Qe.__private__.getFontSize=Qe.getFontSize=function(){return Hi===Ai.COMPAT?pr:pr*so},Nr=Et.R2L||!1;Qe.__private__.setR2L=Qe.setR2L=function(Ae){return Nr=Ae,this},Qe.__private__.getR2L=Qe.getR2L=function(){return Nr};var oo,po=Qe.__private__.setZoomMode=function(Ae){var vn=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(Ae))Ar=Ae;else if(isNaN(Ae)){if(vn.indexOf(Ae)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+Ae+'" is not recognized.');Ar=Ae}else Ar=parseInt(Ae,10)};Qe.__private__.getZoomMode=function(){return Ar};var So,Qr=Qe.__private__.setPageMode=function(Ae){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(Ae)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+Ae+'" is not recognized.');oo=Ae};Qe.__private__.getPageMode=function(){return oo};var Xo=Qe.__private__.setLayoutMode=function(Ae){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(Ae)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+Ae+'" is not recognized.');So=Ae};Qe.__private__.getLayoutMode=function(){return So},Qe.__private__.setDisplayMode=Qe.setDisplayMode=function(Ae,vn,vi){return po(Ae),Xo(vn),Qr(vi),this};var Po={title:"",subject:"",author:"",keywords:"",creator:""};Qe.__private__.getDocumentProperty=function(Ae){if(Object.keys(Po).indexOf(Ae)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Po[Ae]},Qe.__private__.getDocumentProperties=function(){return Po},Qe.__private__.setDocumentProperties=Qe.setProperties=Qe.setDocumentProperties=function(Ae){for(var vn in Po)Po.hasOwnProperty(vn)&&Ae[vn]&&(Po[vn]=Ae[vn]);return this},Qe.__private__.setDocumentProperty=function(Ae,vn){if(Object.keys(Po).indexOf(Ae)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Po[Ae]=vn};var hs,so,Pa,ks,Ps,Eo={},Fs={},Va=[],Ds={},Il={},wo={},ss={},cs=null,Lo=0,ts=[],xo=new Zi(Qe),Ls=Et.hotfixes||[],Rs={},ea={},Ql=[],ds=function Ae(vn,vi,_i,lr,Hr,fo){if(!(this instanceof Ae))return new Ae(vn,vi,_i,lr,Hr,fo);isNaN(vn)&&(vn=1),isNaN(vi)&&(vi=0),isNaN(_i)&&(_i=0),isNaN(lr)&&(lr=1),isNaN(Hr)&&(Hr=0),isNaN(fo)&&(fo=0),this._matrix=[vn,vi,_i,lr,Hr,fo]};Object.defineProperty(ds.prototype,"sx",{get:function(){return this._matrix[0]},set:function(Ae){this._matrix[0]=Ae}}),Object.defineProperty(ds.prototype,"shy",{get:function(){return this._matrix[1]},set:function(Ae){this._matrix[1]=Ae}}),Object.defineProperty(ds.prototype,"shx",{get:function(){return this._matrix[2]},set:function(Ae){this._matrix[2]=Ae}}),Object.defineProperty(ds.prototype,"sy",{get:function(){return this._matrix[3]},set:function(Ae){this._matrix[3]=Ae}}),Object.defineProperty(ds.prototype,"tx",{get:function(){return this._matrix[4]},set:function(Ae){this._matrix[4]=Ae}}),Object.defineProperty(ds.prototype,"ty",{get:function(){return this._matrix[5]},set:function(Ae){this._matrix[5]=Ae}}),Object.defineProperty(ds.prototype,"a",{get:function(){return this._matrix[0]},set:function(Ae){this._matrix[0]=Ae}}),Object.defineProperty(ds.prototype,"b",{get:function(){return this._matrix[1]},set:function(Ae){this._matrix[1]=Ae}}),Object.defineProperty(ds.prototype,"c",{get:function(){return this._matrix[2]},set:function(Ae){this._matrix[2]=Ae}}),Object.defineProperty(ds.prototype,"d",{get:function(){return this._matrix[3]},set:function(Ae){this._matrix[3]=Ae}}),Object.defineProperty(ds.prototype,"e",{get:function(){return this._matrix[4]},set:function(Ae){this._matrix[4]=Ae}}),Object.defineProperty(ds.prototype,"f",{get:function(){return this._matrix[5]},set:function(Ae){this._matrix[5]=Ae}}),Object.defineProperty(ds.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(ds.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(ds.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(ds.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),ds.prototype.join=function(Ae){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(gr).join(Ae)},ds.prototype.multiply=function(Ae){var vn=Ae.sx*this.sx+Ae.shy*this.shx,vi=Ae.sx*this.shy+Ae.shy*this.sy,_i=Ae.shx*this.sx+Ae.sy*this.shx,lr=Ae.shx*this.shy+Ae.sy*this.sy,Hr=Ae.tx*this.sx+Ae.ty*this.shx+this.tx,fo=Ae.tx*this.shy+Ae.ty*this.sy+this.ty;return new ds(vn,vi,_i,lr,Hr,fo)},ds.prototype.decompose=function(){var Ae=this.sx,vn=this.shy,vi=this.shx,_i=this.sy,lr=this.tx,Hr=this.ty,fo=Math.sqrt(Ae*Ae+vn*vn),fs=(Ae/=fo)*vi+(vn/=fo)*_i;vi-=Ae*fs,_i-=vn*fs;var Ws=Math.sqrt(vi*vi+_i*_i);return fs/=Ws,Ae*(_i/=Ws)<vn*(vi/=Ws)&&(Ae=-Ae,vn=-vn,fs=-fs,fo=-fo),{scale:new ds(fo,0,0,Ws,0,0),translate:new ds(1,0,0,1,lr,Hr),rotate:new ds(Ae,vn,-vn,Ae,0,0),skew:new ds(1,0,fs,1,0,0)}},ds.prototype.toString=function(Ae){return this.join(" ")},ds.prototype.inversed=function(){var Ae=this.sx,vn=this.shy,vi=this.shx,_i=this.sy,lr=this.tx,Hr=this.ty,fo=1/(Ae*_i-vn*vi),fs=_i*fo,Ws=-vn*fo,Da=-vi*fo,ba=Ae*fo;return new ds(fs,Ws,Da,ba,-fs*lr-Da*Hr,-Ws*lr-ba*Hr)},ds.prototype.applyToPoint=function(Ae){var vn=Ae.x*this.sx+Ae.y*this.shx+this.tx,vi=Ae.x*this.shy+Ae.y*this.sy+this.ty;return new pc(vn,vi)},ds.prototype.applyToRectangle=function(Ae){var vn=this.applyToPoint(Ae),vi=this.applyToPoint(new pc(Ae.x+Ae.w,Ae.y+Ae.h));return new ad(vn.x,vn.y,vi.x-vn.x,vi.y-vn.y)},ds.prototype.clone=function(){var Ae=this.sx,vn=this.shy,vi=this.shx,_i=this.sy,lr=this.tx,Hr=this.ty;return new ds(Ae,vn,vi,_i,lr,Hr)},Qe.Matrix=ds;var Xl=Qe.matrixMult=function(Ae,vn){return vn.multiply(Ae)},fa=new ds(1,0,0,1,0,0);Qe.unitMatrix=Qe.identityMatrix=fa;var ml=function(Ae,vn){if(!Il[Ae]){var vi=(vn instanceof ca?"Sh":"P")+(Object.keys(Ds).length+1).toString(10);vn.id=vi,Il[Ae]=vi,Ds[vi]=vn,xo.publish("addPattern",vn)}};Qe.ShadingPattern=ca,Qe.TilingPattern=aa,Qe.addShadingPattern=function(Ae,vn){return ki("addShadingPattern()"),ml(Ae,vn),this},Qe.beginTilingPattern=function(Ae){ki("beginTilingPattern()"),Uh(Ae.boundingBox[0],Ae.boundingBox[1],Ae.boundingBox[2]-Ae.boundingBox[0],Ae.boundingBox[3]-Ae.boundingBox[1],Ae.matrix)},Qe.endTilingPattern=function(Ae,vn){ki("endTilingPattern()"),vn.stream=Xi[ln].join(`
|
|
|
`),ml(Ae,vn),xo.publish("endTilingPattern",vn),Ql.pop().restore()};var ho=Qe.__private__.newObject=function(){var Ae=Oa();return Iu(Ae,!0),Ae},Oa=Qe.__private__.newObjectDeferred=function(){return Xn++,li[Xn]=function(){return Ei},Xn},Iu=function(Ae,vn){return vn=typeof vn=="boolean"&&vn,li[Ae]=Ei,vn&&Hn(Ae+" 0 obj"),Ae},wa=Qe.__private__.newAdditionalObject=function(){var Ae={objId:Oa(),content:""};return Ii.push(Ae),Ae},na=Oa(),Ea=Oa(),Za=Qe.__private__.decodeColorString=function(Ae){var vn=Ae.split(" ");if(vn.length!==2||vn[1]!=="g"&&vn[1]!=="G")vn.length===5&&(vn[4]==="k"||vn[4]==="K")&&(vn=[(1-vn[0])*(1-vn[3]),(1-vn[1])*(1-vn[3]),(1-vn[2])*(1-vn[3]),"r"]);else{var vi=parseFloat(vn[0]);vn=[vi,vi,vi,"r"]}for(var _i="#",lr=0;lr<3;lr++)_i+=("0"+Math.floor(255*parseFloat(vn[lr])).toString(16)).slice(-2);return _i},ol=Qe.__private__.encodeColorString=function(Ae){var vn;typeof Ae=="string"&&(Ae={ch1:Ae});var vi=Ae.ch1,_i=Ae.ch2,lr=Ae.ch3,Hr=Ae.ch4,fo=Ae.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof vi=="string"&&vi.charAt(0)!=="#"){var fs=new To(vi);if(fs.ok)vi=fs.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,_i=Ws>>8&255,lr=255&Ws}if(_i===void 0||Hr===void 0&&vi===_i&&_i===lr)if(typeof vi=="string")vn=vi+" "+fo[0];else switch(Ae.precision){case 2:vn=Kr(vi/255)+" "+fo[0];break;case 3:default:vn=Kn(vi/255)+" "+fo[0]}else if(Hr===void 0||(0,Mt.Z)(Hr)==="object"){if(Hr&&!isNaN(Hr.a)&&Hr.a===0)return vn=["1.","1.","1.",fo[1]].join(" ");if(typeof vi=="string")vn=[vi,_i,lr,fo[1]].join(" ");else switch(Ae.precision){case 2:vn=[Kr(vi/255),Kr(_i/255),Kr(lr/255),fo[1]].join(" ");break;default:case 3:vn=[Kn(vi/255),Kn(_i/255),Kn(lr/255),fo[1]].join(" ")}}else if(typeof vi=="string")vn=[vi,_i,lr,Hr,fo[2]].join(" ");else switch(Ae.precision){case 2:vn=[Kr(vi),Kr(_i),Kr(lr),Kr(Hr),fo[2]].join(" ");break;case 3:default:vn=[Kn(vi),Kn(_i),Kn(lr),Kn(Hr),fo[2]].join(" ")}return vn},Hs=Qe.__private__.getFilters=function(){return pe},Fa=Qe.__private__.putStream=function(Ae){var vn=(Ae=Ae||{}).data||"",vi=Ae.filters||Hs(),_i=Ae.alreadyAppliedFilters||[],lr=Ae.addLength1||!1,Hr=vn.length,fo=Ae.objectId,fs=function(dl){return dl};if(gn!==null&&fo===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");gn!==null&&(fs=kl.encryptor(fo,0));var Ws={};vi===!0&&(vi=["FlateEncode"]);var Da=Ae.additionalKeyValues||[],ba=(Ws=Ho.API.processDataByFilters!==void 0?Ho.API.processDataByFilters(vn,vi):{data:vn,reverseChain:[]}).reverseChain+(Array.isArray(_i)?_i.join(" "):_i.toString());if(Ws.data.length!==0&&(Da.push({key:"Length",value:Ws.data.length}),lr===!0&&Da.push({key:"Length1",value:Hr})),ba.length!=0)if(ba.split("/").length-1==1)Da.push({key:"Filter",value:ba});else{Da.push({key:"Filter",value:"["+ba+"]"});for(var Sl=0;Sl<Da.length;Sl+=1)if(Da[Sl].key==="DecodeParms"){for(var js=[],au=0;au<Ws.reverseChain.split("/").length-1;au+=1)js.push("null");js.push(Da[Sl].value),Da[Sl].value="["+js.join(" ")+"]"}}Hn("<<");for(var pu=0;pu<Da.length;pu++)Hn("/"+Da[pu].key+" "+Da[pu].value);Hn(">>"),Ws.data.length!==0&&(Hn("stream"),Hn(fs(Ws.data)),Hn("endstream"))},El=Qe.__private__.putPage=function(Ae){var vn=Ae.number,vi=Ae.data,_i=Ae.objId,lr=Ae.contentsObjId;Iu(_i,!0),Hn("<</Type /Page"),Hn("/Parent "+Ae.rootDictionaryObjId+" 0 R"),Hn("/Resources "+Ae.resourceDictionaryObjId+" 0 R"),Hn("/MediaBox ["+parseFloat(gr(Ae.mediaBox.bottomLeftX))+" "+parseFloat(gr(Ae.mediaBox.bottomLeftY))+" "+gr(Ae.mediaBox.topRightX)+" "+gr(Ae.mediaBox.topRightY)+"]"),Ae.cropBox!==null&&Hn("/CropBox ["+gr(Ae.cropBox.bottomLeftX)+" "+gr(Ae.cropBox.bottomLeftY)+" "+gr(Ae.cropBox.topRightX)+" "+gr(Ae.cropBox.topRightY)+"]"),Ae.bleedBox!==null&&Hn("/BleedBox ["+gr(Ae.bleedBox.bottomLeftX)+" "+gr(Ae.bleedBox.bottomLeftY)+" "+gr(Ae.bleedBox.topRightX)+" "+gr(Ae.bleedBox.topRightY)+"]"),Ae.trimBox!==null&&Hn("/TrimBox ["+gr(Ae.trimBox.bottomLeftX)+" "+gr(Ae.trimBox.bottomLeftY)+" "+gr(Ae.trimBox.topRightX)+" "+gr(Ae.trimBox.topRightY)+"]"),Ae.artBox!==null&&Hn("/ArtBox ["+gr(Ae.artBox.bottomLeftX)+" "+gr(Ae.artBox.bottomLeftY)+" "+gr(Ae.artBox.topRightX)+" "+gr(Ae.artBox.topRightY)+"]"),typeof Ae.userUnit=="number"&&Ae.userUnit!==1&&Hn("/UserUnit "+Ae.userUnit),xo.publish("putPage",{objId:_i,pageContext:ts[vn],pageNumber:vn,page:vi}),Hn("/Contents "+lr+" 0 R"),Hn(">>"),Hn("endobj");var Hr=vi.join(`
|
|
|
`);return Hi===Ai.ADVANCED&&(Hr+=`
|
|
|
Q`),Iu(lr,!0),Fa({data:Hr,filters:Hs(),objectId:lr}),Hn("endobj"),_i},ku=Qe.__private__.putPages=function(){var Ae,vn,vi=[];for(Ae=1;Ae<=Lo;Ae++)ts[Ae].objId=Oa(),ts[Ae].contentsObjId=Oa();for(Ae=1;Ae<=Lo;Ae++)vi.push(El({number:Ae,data:Xi[Ae],objId:ts[Ae].objId,contentsObjId:ts[Ae].contentsObjId,mediaBox:ts[Ae].mediaBox,cropBox:ts[Ae].cropBox,bleedBox:ts[Ae].bleedBox,trimBox:ts[Ae].trimBox,artBox:ts[Ae].artBox,userUnit:ts[Ae].userUnit,rootDictionaryObjId:na,resourceDictionaryObjId:Ea}));Iu(na,!0),Hn("<</Type /Pages");var _i="/Kids [";for(vn=0;vn<Lo;vn++)_i+=vi[vn]+" 0 R ";Hn(_i+"]"),Hn("/Count "+Lo),Hn(">>"),Hn("endobj"),xo.publish("postPutPages")},fu=function(Ae){xo.publish("putFont",{font:Ae,out:Hn,newObject:ho,putStream:Fa}),Ae.isAlreadyPutted!==!0&&(Ae.objectNumber=ho(),Hn("<<"),Hn("/Type /Font"),Hn("/BaseFont /"+yo(Ae.postScriptName)),Hn("/Subtype /Type1"),typeof Ae.encoding=="string"&&Hn("/Encoding /"+Ae.encoding),Hn("/FirstChar 32"),Hn("/LastChar 255"),Hn(">>"),Hn("endobj"))},Tu=function(){for(var Ae in Eo)Eo.hasOwnProperty(Ae)&&(fn===!1||fn===!0&&In.hasOwnProperty(Ae))&&fu(Eo[Ae])},Wu=function(Ae){Ae.objectNumber=ho();var vn=[];vn.push({key:"Type",value:"/XObject"}),vn.push({key:"Subtype",value:"/Form"}),vn.push({key:"BBox",value:"["+[gr(Ae.x),gr(Ae.y),gr(Ae.x+Ae.width),gr(Ae.y+Ae.height)].join(" ")+"]"}),vn.push({key:"Matrix",value:"["+Ae.matrix.toString()+"]"});var vi=Ae.pages[1].join(`
|
|
|
`);Fa({data:vi,additionalKeyValues:vn,objectId:Ae.objectNumber}),Hn("endobj")},oh=function(){for(var Ae in Rs)Rs.hasOwnProperty(Ae)&&Wu(Rs[Ae])},sh=function(Ae,vn){var vi,_i=[],lr=1/(vn-1);for(vi=0;vi<1;vi+=lr)_i.push(vi);if(_i.push(1),Ae[0].offset!=0){var Hr={offset:0,color:Ae[0].color};Ae.unshift(Hr)}if(Ae[Ae.length-1].offset!=1){var fo={offset:1,color:Ae[Ae.length-1].color};Ae.push(fo)}for(var fs="",Ws=0,Da=0;Da<_i.length;Da++){for(vi=_i[Da];vi>Ae[Ws+1].offset;)Ws++;var ba=Ae[Ws].offset,Sl=(vi-ba)/(Ae[Ws+1].offset-ba),js=Ae[Ws].color,au=Ae[Ws+1].color;fs+=Fn(Math.round((1-Sl)*js[0]+Sl*au[0]).toString(16))+Fn(Math.round((1-Sl)*js[1]+Sl*au[1]).toString(16))+Fn(Math.round((1-Sl)*js[2]+Sl*au[2]).toString(16))}return fs.trim()},Qa=function(Ae,vn){vn||(vn=21);var vi=ho(),_i=sh(Ae.colors,vn),lr=[];lr.push({key:"FunctionType",value:"0"}),lr.push({key:"Domain",value:"[0.0 1.0]"}),lr.push({key:"Size",value:"["+vn+"]"}),lr.push({key:"BitsPerSample",value:"8"}),lr.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),lr.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Fa({data:_i,additionalKeyValues:lr,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:vi}),Hn("endobj"),Ae.objectNumber=ho(),Hn("<< /ShadingType "+Ae.type),Hn("/ColorSpace /DeviceRGB");var Hr="/Coords ["+gr(parseFloat(Ae.coords[0]))+" "+gr(parseFloat(Ae.coords[1]))+" ";Ae.type===2?Hr+=gr(parseFloat(Ae.coords[2]))+" "+gr(parseFloat(Ae.coords[3])):Hr+=gr(parseFloat(Ae.coords[2]))+" "+gr(parseFloat(Ae.coords[3]))+" "+gr(parseFloat(Ae.coords[4]))+" "+gr(parseFloat(Ae.coords[5])),Hn(Hr+="]"),Ae.matrix&&Hn("/Matrix ["+Ae.matrix.toString()+"]"),Hn("/Function "+vi+" 0 R"),Hn("/Extend [true true]"),Hn(">>"),Hn("endobj")},xu=function(Ae,vn){var vi=Oa(),_i=ho();vn.push({resourcesOid:vi,objectOid:_i}),Ae.objectNumber=_i;var lr=[];lr.push({key:"Type",value:"/Pattern"}),lr.push({key:"PatternType",value:"1"}),lr.push({key:"PaintType",value:"1"}),lr.push({key:"TilingType",value:"1"}),lr.push({key:"BBox",value:"["+Ae.boundingBox.map(gr).join(" ")+"]"}),lr.push({key:"XStep",value:gr(Ae.xStep)}),lr.push({key:"YStep",value:gr(Ae.yStep)}),lr.push({key:"Resources",value:vi+" 0 R"}),Ae.matrix&&lr.push({key:"Matrix",value:"["+Ae.matrix.toString()+"]"}),Fa({data:Ae.stream,additionalKeyValues:lr,objectId:Ae.objectNumber}),Hn("endobj")},xl=function(Ae){var vn;for(vn in Ds)Ds.hasOwnProperty(vn)&&(Ds[vn]instanceof ca?Qa(Ds[vn]):Ds[vn]instanceof aa&&xu(Ds[vn],Ae))},cl=function(Ae){for(var vn in Ae.objectNumber=ho(),Hn("<<"),Ae)switch(vn){case"opacity":Hn("/ca "+Kr(Ae[vn]));break;case"stroke-opacity":Hn("/CA "+Kr(Ae[vn]))}Hn(">>"),Hn("endobj")},gh=function(){var Ae;for(Ae in wo)wo.hasOwnProperty(Ae)&&cl(wo[Ae])},ec=function(){for(var Ae in Hn("/XObject <<"),Rs)Rs.hasOwnProperty(Ae)&&Rs[Ae].objectNumber>=0&&Hn("/"+Ae+" "+Rs[Ae].objectNumber+" 0 R");xo.publish("putXobjectDict"),Hn(">>")},Ph=function(){kl.oid=ho(),Hn("<<"),Hn("/Filter /Standard"),Hn("/V "+kl.v),Hn("/R "+kl.r),Hn("/U <"+kl.toHexString(kl.U)+">"),Hn("/O <"+kl.toHexString(kl.O)+">"),Hn("/P "+kl.P),Hn(">>"),Hn("endobj")},Oh=function(){for(var Ae in Hn("/Font <<"),Eo)Eo.hasOwnProperty(Ae)&&(fn===!1||fn===!0&&In.hasOwnProperty(Ae))&&Hn("/"+Ae+" "+Eo[Ae].objectNumber+" 0 R");Hn(">>")},fc=function(){if(Object.keys(Ds).length>0){for(var Ae in Hn("/Shading <<"),Ds)Ds.hasOwnProperty(Ae)&&Ds[Ae]instanceof ca&&Ds[Ae].objectNumber>=0&&Hn("/"+Ae+" "+Ds[Ae].objectNumber+" 0 R");xo.publish("putShadingPatternDict"),Hn(">>")}},Vu=function(Ae){if(Object.keys(Ds).length>0){for(var vn in Hn("/Pattern <<"),Ds)Ds.hasOwnProperty(vn)&&Ds[vn]instanceof Qe.TilingPattern&&Ds[vn].objectNumber>=0&&Ds[vn].objectNumber<Ae&&Hn("/"+vn+" "+Ds[vn].objectNumber+" 0 R");xo.publish("putTilingPatternDict"),Hn(">>")}},La=function(){if(Object.keys(wo).length>0){var Ae;for(Ae in Hn("/ExtGState <<"),wo)wo.hasOwnProperty(Ae)&&wo[Ae].objectNumber>=0&&Hn("/"+Ae+" "+wo[Ae].objectNumber+" 0 R");xo.publish("putGStateDict"),Hn(">>")}},ia=function(Ae){Iu(Ae.resourcesOid,!0),Hn("<<"),Hn("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Oh(),fc(),Vu(Ae.objectOid),La(),ec(),Hn(">>"),Hn("endobj")},eu=function(){var Ae=[];Tu(),gh(),oh(),xl(Ae),xo.publish("putResources"),Ae.forEach(ia),ia({resourcesOid:Ea,objectOid:Number.MAX_SAFE_INTEGER}),xo.publish("postPutResources")},vl=function(){xo.publish("putAdditionalObjects");for(var Ae=0;Ae<Ii.length;Ae++){var vn=Ii[Ae];Iu(vn.objId,!0),Hn(vn.content),Hn("endobj")}xo.publish("postPutAdditionalObjects")},ga=function(Ae){Fs[Ae.fontName]=Fs[Ae.fontName]||{},Fs[Ae.fontName][Ae.fontStyle]=Ae.id},nu=function(Ae,vn,vi,_i,lr){var Hr={id:"F"+(Object.keys(Eo).length+1).toString(10),postScriptName:Ae,fontName:vn,fontStyle:vi,encoding:_i,isStandardFont:lr||!1,metadata:{}};return xo.publish("addFont",{font:Hr,instance:this}),Eo[Hr.id]=Hr,ga(Hr),Hr.id},Hu=function(Ae){for(var vn=0,vi=tr.length;vn<vi;vn++){var _i=nu.call(this,Ae[vn][0],Ae[vn][1],Ae[vn][2],tr[vn][3],!0);fn===!1&&(In[_i]=!0);var lr=Ae[vn][0].split("-");ga({id:_i,fontName:lr[0],fontStyle:lr[1]||""})}xo.publish("addFonts",{fonts:Eo,dictionary:Fs})},Ou=function(Ae){return Ae.foo=function(){try{return Ae.apply(this,arguments)}catch(_i){var vn=_i.stack||"";~vn.indexOf(" at ")&&(vn=vn.split(" at ")[1]);var vi="Error in function "+vn.split(`
|
|
|
`)[0].split("<")[0]+": "+_i.message;if(!Sr.console)throw new Error(vi);Sr.console.error(vi,_i),Sr.alert&&alert(vi)}},Ae.foo.bar=Ae,Ae.foo},Wc=function(Ae,vn){var vi,_i,lr,Hr,fo,fs,Ws,Da,ba;if(lr=(vn=vn||{}).sourceEncoding||"Unicode",fo=vn.outputEncoding,(vn.autoencode||fo)&&Eo[hs].metadata&&Eo[hs].metadata[lr]&&Eo[hs].metadata[lr].encoding&&(Hr=Eo[hs].metadata[lr].encoding,!fo&&Eo[hs].encoding&&(fo=Eo[hs].encoding),!fo&&Hr.codePages&&(fo=Hr.codePages[0]),typeof fo=="string"&&(fo=Hr[fo]),fo)){for(Ws=!1,fs=[],vi=0,_i=Ae.length;vi<_i;vi++)(Da=fo[Ae.charCodeAt(vi)])?fs.push(String.fromCharCode(Da)):fs.push(Ae[vi]),fs[vi].charCodeAt(0)>>8&&(Ws=!0);Ae=fs.join("")}for(vi=Ae.length;Ws===void 0&&vi!==0;)Ae.charCodeAt(vi-1)>>8&&(Ws=!0),vi--;if(!Ws)return Ae;for(fs=vn.noBOM?[]:[254,255],vi=0,_i=Ae.length;vi<_i;vi++){if((ba=(Da=Ae.charCodeAt(vi))>>8)>>8)throw new Error("Character at position "+vi+" of string '"+Ae+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");fs.push(ba),fs.push(Da-(ba<<8))}return String.fromCharCode.apply(void 0,fs)},Un=Qe.__private__.pdfEscape=Qe.pdfEscape=function(Ae,vn){return Wc(Ae,vn).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},nc=Qe.__private__.beginPage=function(Ae){Xi[++Lo]=[],ts[Lo]={objId:0,contentsObjId:0,userUnit:Number(ye),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(Ae[0]),topRightY:Number(Ae[1])}},Vc(Lo),$i(Xi[ln])},Dh=function(Ae,vn){var vi,_i,lr;switch(Ft=vn||Ft,typeof Ae=="string"&&(vi=Rn(Ae.toLowerCase()),Array.isArray(vi)&&(_i=vi[0],lr=vi[1])),Array.isArray(Ae)&&(_i=Ae[0]*so,lr=Ae[1]*so),isNaN(_i)&&(_i=se[0],lr=se[1]),(_i>14400||lr>14400)&&(Bo.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),_i=Math.min(14400,_i),lr=Math.min(14400,lr)),se=[_i,lr],Ft.substr(0,1)){case"l":lr>_i&&(se=[lr,_i]);break;case"p":_i>lr&&(se=[lr,_i])}nc(se),mh(sl),Hn(ic),rc!==0&&Hn(rc+" J"),QA!==0&&Hn(QA+" j"),xo.publish("addPage",{pageNumber:Lo})},EA=function(Ae){Ae>0&&Ae<=Lo&&(Xi.splice(Ae,1),ts.splice(Ae,1),Lo--,ln>Lo&&(ln=Lo),this.setPage(ln))},Vc=function(Ae){Ae>0&&Ae<=Lo&&(ln=Ae)},bc=Qe.__private__.getNumberOfPages=Qe.getNumberOfPages=function(){return Xi.length-1},rd=function(Ae,vn,vi){var _i,lr=void 0;return vi=vi||{},Ae=Ae!==void 0?Ae:Eo[hs].fontName,vn=vn!==void 0?vn:Eo[hs].fontStyle,_i=Ae.toLowerCase(),Fs[_i]!==void 0&&Fs[_i][vn]!==void 0?lr=Fs[_i][vn]:Fs[Ae]!==void 0&&Fs[Ae][vn]!==void 0?lr=Fs[Ae][vn]:vi.disableWarning===!1&&Bo.warn("Unable to look up font label for font '"+Ae+"', '"+vn+"'. Refer to getFontList() for available fonts."),lr||vi.noFallback||(lr=Fs.times[vn])==null&&(lr=Fs.times.normal),lr},HA=Qe.__private__.putInfo=function(){var Ae=ho(),vn=function(_i){return _i};for(var vi in gn!==null&&(vn=kl.encryptor(Ae,0)),Hn("<<"),Hn("/Producer ("+Un(vn("jsPDF "+Ho.version))+")"),Po)Po.hasOwnProperty(vi)&&Po[vi]&&Hn("/"+vi.substr(0,1).toUpperCase()+vi.substr(1)+" ("+Un(vn(Po[vi]))+")");Hn("/CreationDate ("+Un(vn(Ce))+")"),Hn(">>"),Hn("endobj")},gu=Qe.__private__.putCatalog=function(Ae){var vn=(Ae=Ae||{}).rootDictionaryObjId||na;switch(ho(),Hn("<<"),Hn("/Type /Catalog"),Hn("/Pages "+vn+" 0 R"),Ar||(Ar="fullwidth"),Ar){case"fullwidth":Hn("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Hn("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Hn("/OpenAction [3 0 R /Fit]");break;case"original":Hn("/OpenAction [3 0 R /XYZ null null 1]");break;default:var vi=""+Ar;vi.substr(vi.length-1)==="%"&&(Ar=parseInt(Ar)/100),typeof Ar=="number"&&Hn("/OpenAction [3 0 R /XYZ null null "+Kr(Ar)+"]")}switch(So||(So="continuous"),So){case"continuous":Hn("/PageLayout /OneColumn");break;case"single":Hn("/PageLayout /SinglePage");break;case"two":case"twoleft":Hn("/PageLayout /TwoColumnLeft");break;case"tworight":Hn("/PageLayout /TwoColumnRight")}oo&&Hn("/PageMode /"+oo),xo.publish("putCatalog"),Hn(">>"),Hn("endobj")},wd=Qe.__private__.putTrailer=function(){Hn("trailer"),Hn("<<"),Hn("/Size "+(Xn+1)),Hn("/Root "+Xn+" 0 R"),Hn("/Info "+(Xn-1)+" 0 R"),gn!==null&&Hn("/Encrypt "+kl.oid+" 0 R"),Hn("/ID [ <"+Ve+"> <"+Ve+"> ]"),Hn(">>")},Rd=Qe.__private__.putHeader=function(){Hn("%PDF-"+ci),Hn("%\xBA\xDF\xAC\xE0")},od=Qe.__private__.putXRef=function(){var Ae="0000000000";Hn("xref"),Hn("0 "+(Xn+1)),Hn("0000000000 65535 f ");for(var vn=1;vn<=Xn;vn++)typeof li[vn]=="function"?Hn((Ae+li[vn]()).slice(-10)+" 00000 n "):li[vn]!==void 0?Hn((Ae+li[vn]).slice(-10)+" 00000 n "):Hn("0000000000 00000 n ")},Ec=Qe.__private__.buildDocument=function(){Xr(),$i(si),xo.publish("buildDocument"),Rd(),ku(),vl(),eu(),gn!==null&&Ph(),HA(),gu();var Ae=Ei;return od(),wd(),Hn("startxref"),Hn(""+Ae),Hn("%%EOF"),$i(Xi[ln]),si.join(`
|
|
|
`)},_d=Qe.__private__.getBlob=function(Ae){return new Blob([ro(Ae)],{type:"application/pdf"})},xd=Qe.output=Qe.__private__.output=Ou(function(Ae,vn){switch(typeof(vn=vn||{})=="string"?vn={filename:vn}:vn.filename=vn.filename||"generated.pdf",Ae){case void 0:return Ec();case"save":Qe.save(vn.filename);break;case"arraybuffer":return ro(Ec());case"blob":return _d(Ec());case"bloburi":case"bloburl":if(Sr.URL!==void 0&&typeof Sr.URL.createObjectURL=="function")return Sr.URL&&Sr.URL.createObjectURL(_d(Ec()))||void 0;Bo.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var vi="",_i=Ec();try{vi=da(_i)}catch(au){vi=da(unescape(encodeURIComponent(_i)))}return"data:application/pdf;filename="+vn.filename+";base64,"+vi;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Sr)==="[object Window]"){var lr="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Hr=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';vn.pdfObjectUrl&&(lr=vn.pdfObjectUrl,Hr="");var fo='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+lr+'"'+Hr+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(vn)+");<\/script></body></html>",fs=Sr.open();return fs!==null&&fs.document.write(fo),fs}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Sr)==="[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="'+(vn.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+vn.filename+'" width="500px" height="400px" /></body></html>',Da=Sr.open();if(Da!==null){Da.document.write(Ws);var ba=this;Da.document.documentElement.querySelector("#pdfViewer").onload=function(){Da.document.title=vn.filename,Da.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(ba.output("bloburl"))}}return Da}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Sr)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Sl='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",vn)+'"></iframe></body></html>',js=Sr.open();if(js!==null&&(js.document.write(Sl),js.document.title=vn.filename),js||typeof safari=="undefined")return js;break;case"datauri":case"dataurl":return Sr.document.location.href=this.output("datauristring",vn);default:return null}}),ah=function(Ae){return Array.isArray(Ls)===!0&&Ls.indexOf(Ae)>-1};switch(Ut){case"pt":so=1;break;case"mm":so=72/25.4;break;case"cm":so=72/2.54;break;case"in":so=72;break;case"px":so=ah("px_scaling")==1?.75:96/72;break;case"pc":case"em":so=12;break;case"ex":so=6;break;default:if(typeof Ut!="number")throw new Error("Invalid unit: "+Ut);so=Ut}var kl=null;qn(),un();var Sd=function(Ae){return gn!==null?kl.encryptor(Ae,0):function(vn){return vn}},lA=Qe.__private__.getPageInfo=Qe.getPageInfo=function(Ae){if(isNaN(Ae)||Ae%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:ts[Ae].objId,pageNumber:Ae,pageContext:ts[Ae]}},Xs=Qe.__private__.getPageInfoByObjId=function(Ae){if(isNaN(Ae)||Ae%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var vn in ts)if(ts[vn].objId===Ae)break;return lA(vn)},Zc=Qe.__private__.getCurrentPageInfo=Qe.getCurrentPageInfo=function(){return{objId:ts[ln].objId,pageNumber:ln,pageContext:ts[ln]}};Qe.addPage=function(){return Dh.apply(this,arguments),this},Qe.setPage=function(){return Vc.apply(this,arguments),$i.call(this,Xi[ln]),this},Qe.insertPage=function(Ae){return this.addPage(),this.movePage(ln,Ae),this},Qe.movePage=function(Ae,vn){var vi,_i;if(Ae>vn){vi=Xi[Ae],_i=ts[Ae];for(var lr=Ae;lr>vn;lr--)Xi[lr]=Xi[lr-1],ts[lr]=ts[lr-1];Xi[vn]=vi,ts[vn]=_i,this.setPage(vn)}else if(Ae<vn){vi=Xi[Ae],_i=ts[Ae];for(var Hr=Ae;Hr<vn;Hr++)Xi[Hr]=Xi[Hr+1],ts[Hr]=ts[Hr+1];Xi[vn]=vi,ts[vn]=_i,this.setPage(vn)}return this},Qe.deletePage=function(){return EA.apply(this,arguments),this},Qe.__private__.text=Qe.text=function(Ae,vn,vi,_i,lr){var Hr,fo,fs,Ws,Da,ba,Sl,js,au,pu=(_i=_i||{}).scope||this;if(typeof Ae=="number"&&typeof vn=="number"&&(typeof vi=="string"||Array.isArray(vi))){var dl=vi;vi=vn,vn=Ae,Ae=dl}if(arguments[3]instanceof ds?(ki("The transform parameter of text() with a Matrix value"),au=lr):(fs=arguments[4],Ws=arguments[5],(0,Mt.Z)(Sl=arguments[3])==="object"&&Sl!==null||(typeof fs=="string"&&(Ws=fs,fs=null),typeof Sl=="string"&&(Ws=Sl,Sl=null),typeof Sl=="number"&&(fs=Sl,Sl=null),_i={flags:Sl,angle:fs,align:Ws})),isNaN(vn)||isNaN(vi)||Ae==null)throw new Error("Invalid arguments passed to jsPDF.text");if(Ae.length===0)return pu;var Fl="",yh=!1,bh=typeof _i.lineHeightFactor=="number"?_i.lineHeightFactor:xa,oc=pu.internal.scaleFactor;function Vd(Xa){return Xa=Xa.split(" ").join(Array(_i.TabLen||9).join(" ")),Un(Xa,Sl)}function cA(Xa){for(var Ia,za=Xa.concat(),Pl=[],mu=za.length;mu--;)typeof(Ia=za.shift())=="string"?Pl.push(Ia):Array.isArray(Xa)&&(Ia.length===1||Ia[1]===void 0&&Ia[2]===void 0)?Pl.push(Ia[0]):Pl.push([Ia[0],Ia[1],Ia[2]]);return Pl}function dA(Xa,Ia){var za;if(typeof Xa=="string")za=Ia(Xa)[0];else if(Array.isArray(Xa)){for(var Pl,mu,Oo=Xa.concat(),Ca=[],Kl=Oo.length;Kl--;)typeof(Pl=Oo.shift())=="string"?Ca.push(Ia(Pl)[0]):Array.isArray(Pl)&&typeof Pl[0]=="string"&&(mu=Ia(Pl[0],Pl[1],Pl[2]),Ca.push([mu[0],mu[1],mu[2]]));za=Ca}return za}var AA=!1,Ic=!0;if(typeof Ae=="string")AA=!0;else if(Array.isArray(Ae)){var Ed=Ae.concat();fo=[];for(var kc,Sa=Ed.length;Sa--;)(typeof(kc=Ed.shift())!="string"||Array.isArray(kc)&&typeof kc[0]!="string")&&(Ic=!1);AA=Ic}if(AA===!1)throw new Error('Type of text must be string or Array. "'+Ae+'" is not recognized.');typeof Ae=="string"&&(Ae=Ae.match(/[\r?\n]/)?Ae.split(/\r\n|\r|\n/g):[Ae]);var mc=pr/pu.internal.scaleFactor,Zd=mc*(bh-1);switch(_i.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=_i.maxWidth||0)>0&&(typeof Ae=="string"?Ae=pu.splitTextToSize(Ae,ba):Object.prototype.toString.call(Ae)==="[object Array]"&&(Ae=Ae.reduce(function(Xa,Ia){return Xa.concat(pu.splitTextToSize(Ia,ba))},[]))),Hr={text:Ae,x:vn,y:vi,options:_i,mutex:{pdfEscape:Un,activeFontKey:hs,fonts:Eo,activeFontSize:pr}},xo.publish("preProcessText",Hr),Ae=Hr.text,fs=(_i=Hr.options).angle,!(au instanceof ds)&&fs&&typeof fs=="number"){fs*=Math.PI/180,_i.rotationDirection===0&&(fs=-fs),Hi===Ai.ADVANCED&&(fs=-fs);var Gl=Math.cos(fs),Rh=Math.sin(fs);au=new ds(Gl,Rh,-Rh,Gl,0,0)}else fs&&fs instanceof ds&&(au=fs);Hi!==Ai.ADVANCED||au||(au=fa),(Da=_i.charSpace||uA)!==void 0&&(Fl+=gr(Jn(Da))+` Tc
|
|
|
`,this.setCharSpace(this.getCharSpace()||0)),(js=_i.horizontalScale)!==void 0&&(Fl+=gr(100*js)+` Tz
|
|
|
`),_i.lang;var Qu=-1,ld=_i.renderingMode!==void 0?_i.renderingMode:_i.stroke,Tl=pu.internal.getCurrentPageInfo().pageContext;switch(ld){case 0:case!1:case"fill":Qu=0;break;case 1:case!0:case"stroke":Qu=1;break;case 2:case"fillThenStroke":Qu=2;break;case 3:case"invisible":Qu=3;break;case 4:case"fillAndAddForClipping":Qu=4;break;case 5:case"strokeAndAddPathForClipping":Qu=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Qu=6;break;case 7:case"addToPathForClipping":Qu=7}var Xd=Tl.usedRenderingMode!==void 0?Tl.usedRenderingMode:-1;Qu!==-1?Fl+=Qu+` Tr
|
|
|
`:Xd!==-1&&(Fl+=`0 Tr
|
|
|
`),Qu!==-1&&(Tl.usedRenderingMode=Qu),Ws=_i.align||"left";var Fu,sc=pr*bh,$d=pu.internal.pageSize.getWidth(),it=Eo[hs];Da=_i.charSpace||uA,ba=_i.maxWidth||0,Sl=Object.assign({autoencode:!0,noBOM:!0},_i.flags);var st=[],vt=function(Xa){return pu.getStringUnitWidth(Xa,{font:it,charSpace:Da,fontSize:pr,doKerning:!1})*pr/oc};if(Object.prototype.toString.call(Ae)==="[object Array]"){var gt;fo=cA(Ae),Ws!=="left"&&(Fu=fo.map(vt));var Bt,te=0;if(Ws==="right"){vn-=Fu[0],Ae=[],Sa=fo.length;for(var xe=0;xe<Sa;xe++)xe===0?(Bt=jh(vn),gt=Zu(vi)):(Bt=Jn(te-Fu[xe]),gt=-sc),Ae.push([fo[xe],Bt,gt]),te=Fu[xe]}else if(Ws==="center"){vn-=Fu[0]/2,Ae=[],Sa=fo.length;for(var Ue=0;Ue<Sa;Ue++)Ue===0?(Bt=jh(vn),gt=Zu(vi)):(Bt=Jn((te-Fu[Ue])/2),gt=-sc),Ae.push([fo[Ue],Bt,gt]),te=Fu[Ue]}else if(Ws==="left"){Ae=[],Sa=fo.length;for(var je=0;je<Sa;je++)Ae.push(fo[je])}else if(Ws==="justify"&&it.encoding==="Identity-H"){Ae=[],Sa=fo.length,ba=ba!==0?ba:$d;for(var an=0,$n=0;$n<Sa;$n++)if(gt=$n===0?Zu(vi):-sc,Bt=$n===0?jh(vn):an,$n<Sa-1){var wn=Jn((ba-Fu[$n])/(fo[$n].split(" ").length-1)),Mi=fo[$n].split(" ");Ae.push([Mi[0]+" ",Bt,gt]),an=0;for(var bi=1;bi<Mi.length;bi++){var br=(vt(Mi[bi-1]+" "+Mi[bi])-vt(Mi[bi]))*oc+wn;bi==Mi.length-1?Ae.push([Mi[bi],br,0]):Ae.push([Mi[bi]+" ",br,0]),an-=br}}else Ae.push([fo[$n],Bt,gt]);Ae.push(["",an,0])}else{if(Ws!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(Ae=[],Sa=fo.length,ba=ba!==0?ba:$d,$n=0;$n<Sa;$n++)gt=$n===0?Zu(vi):-sc,Bt=$n===0?jh(vn):0,$n<Sa-1?st.push(gr(Jn((ba-Fu[$n])/(fo[$n].split(" ").length-1)))):st.push(0),Ae.push([fo[$n],Bt,gt])}}var Tr=typeof _i.R2L=="boolean"?_i.R2L:Nr;Tr===!0&&(Ae=dA(Ae,function(Xa,Ia,za){return[Xa.split("").reverse().join(""),Ia,za]})),Hr={text:Ae,x:vn,y:vi,options:_i,mutex:{pdfEscape:Un,activeFontKey:hs,fonts:Eo,activeFontSize:pr}},xo.publish("postProcessText",Hr),Ae=Hr.text,yh=Hr.mutex.isHex||!1;var $r=Eo[hs].encoding;$r!=="WinAnsiEncoding"&&$r!=="StandardEncoding"||(Ae=dA(Ae,function(Xa,Ia,za){return[Vd(Xa),Ia,za]})),fo=cA(Ae),Ae=[];for(var mo,Jo,Mo,rs=0,Ts=1,No=Array.isArray(fo[0])?Ts:rs,Js="",Ol=function(Xa,Ia,za){var Pl="";return za instanceof ds?(za=typeof _i.angle=="number"?Xl(za,new ds(1,0,0,1,Xa,Ia)):Xl(new ds(1,0,0,1,Xa,Ia),za),Hi===Ai.ADVANCED&&(za=Xl(new ds(1,0,0,-1,0,0),za)),Pl=za.join(" ")+` Tm
|
|
|
`):Pl=gr(Xa)+" "+gr(Ia)+` Td
|
|
|
`,Pl},zl=0;zl<fo.length;zl++){switch(Js="",No){case Ts:Mo=(yh?"<":"(")+fo[zl][0]+(yh?">":")"),mo=parseFloat(fo[zl][1]),Jo=parseFloat(fo[zl][2]);break;case rs:Mo=(yh?"<":"(")+fo[zl]+(yh?">":")"),mo=jh(vn),Jo=Zu(vi)}st!==void 0&&st[zl]!==void 0&&(Js=st[zl]+` Tw
|
|
|
`),zl===0?Ae.push(Js+Ol(mo,Jo,au)+Mo):No===rs?Ae.push(Js+Mo):No===Ts&&Ae.push(Js+Ol(mo,Jo,au)+Mo)}Ae=No===rs?Ae.join(` Tj
|
|
|
T* `):Ae.join(` Tj
|
|
|
`),Ae+=` Tj
|
|
|
`;var Al=`BT
|
|
|
/`;return Al+=hs+" "+pr+` Tf
|
|
|
`,Al+=gr(pr*bh)+` TL
|
|
|
`,Al+=gc+`
|
|
|
`,Al+=Fl,Al+=Ae,Hn(Al+="ET"),In[hs]=!0,pu};var Cd=Qe.__private__.clip=Qe.clip=function(Ae){return Hn(Ae==="evenodd"?"W*":"W"),this};Qe.clipEvenOdd=function(){return Cd("evenodd")},Qe.__private__.discardPath=Qe.discardPath=function(){return Hn("n"),this};var ph=Qe.__private__.isValidStyle=function(Ae){var vn=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(Ae)!==-1&&(vn=!0),vn};Qe.__private__.setDefaultPathOperation=Qe.setDefaultPathOperation=function(Ae){return ph(Ae)&&(Ye=Ae),this};var th=Qe.__private__.getStyle=Qe.getStyle=function(Ae){var vn=Ye;switch(Ae){case"D":case"S":vn="S";break;case"F":vn="f";break;case"FD":case"DF":vn="B";break;case"f":case"f*":case"B":case"B*":vn=Ae}return vn},Hd=Qe.close=function(){return Hn("h"),this};Qe.stroke=function(){return Hn("S"),this},Qe.fill=function(Ae){return sd("f",Ae),this},Qe.fillEvenOdd=function(Ae){return sd("f*",Ae),this},Qe.fillStroke=function(Ae){return sd("B",Ae),this},Qe.fillStrokeEvenOdd=function(Ae){return sd("B*",Ae),this};var sd=function(Ae,vn){(0,Mt.Z)(vn)==="object"?Pd(vn,Ae):Hn(Ae)},eh=function(Ae){Ae===null||Hi===Ai.ADVANCED&&Ae===void 0||(Ae=th(Ae),Hn(Ae))};function Bd(Ae,vn,vi,_i,lr){var Hr=new aa(vn||this.boundingBox,vi||this.xStep,_i||this.yStep,this.gState,lr||this.matrix);Hr.stream=this.stream;var fo=Ae+"$$"+this.cloneIndex+++"$$";return ml(fo,Hr),Hr}var Pd=function(Ae,vn){var vi=Il[Ae.key],_i=Ds[vi];if(_i instanceof ca)Hn("q"),Hn(Qd(vn)),_i.gState&&Qe.setGState(_i.gState),Hn(Ae.matrix.toString()+" cm"),Hn("/"+vi+" sh"),Hn("Q");else if(_i instanceof aa){var lr=new ds(1,0,0,-1,0,Nc());Ae.matrix&&(lr=lr.multiply(Ae.matrix||fa),vi=Bd.call(_i,Ae.key,Ae.boundingBox,Ae.xStep,Ae.yStep,lr).id),Hn("q"),Hn("/Pattern cs"),Hn("/"+vi+" scn"),_i.gState&&Qe.setGState(_i.gState),Hn(vn),Hn("Q")}},Qd=function(Ae){switch(Ae){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"}},$l=Qe.moveTo=function(Ae,vn){return Hn(gr(Jn(Ae))+" "+gr(ge(vn))+" m"),this},iu=Qe.lineTo=function(Ae,vn){return Hn(gr(Jn(Ae))+" "+gr(ge(vn))+" l"),this},Fc=Qe.curveTo=function(Ae,vn,vi,_i,lr,Hr){return Hn([gr(Jn(Ae)),gr(ge(vn)),gr(Jn(vi)),gr(ge(_i)),gr(Jn(lr)),gr(ge(Hr)),"c"].join(" ")),this};Qe.__private__.line=Qe.line=function(Ae,vn,vi,_i,lr){if(isNaN(Ae)||isNaN(vn)||isNaN(vi)||isNaN(_i)||!ph(lr))throw new Error("Invalid arguments passed to jsPDF.line");return Hi===Ai.COMPAT?this.lines([[vi-Ae,_i-vn]],Ae,vn,[1,1],lr||"S"):this.lines([[vi-Ae,_i-vn]],Ae,vn,[1,1]).stroke()},Qe.__private__.lines=Qe.lines=function(Ae,vn,vi,_i,lr,Hr){var fo,fs,Ws,Da,ba,Sl,js,au,pu,dl,Fl,yh;if(typeof Ae=="number"&&(yh=vi,vi=vn,vn=Ae,Ae=yh),_i=_i||[1,1],Hr=Hr||!1,isNaN(vn)||isNaN(vi)||!Array.isArray(Ae)||!Array.isArray(_i)||!ph(lr)||typeof Hr!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for($l(vn,vi),fo=_i[0],fs=_i[1],Da=Ae.length,dl=vn,Fl=vi,Ws=0;Ws<Da;Ws++)(ba=Ae[Ws]).length===2?(dl=ba[0]*fo+dl,Fl=ba[1]*fs+Fl,iu(dl,Fl)):(Sl=ba[0]*fo+dl,js=ba[1]*fs+Fl,au=ba[2]*fo+dl,pu=ba[3]*fs+Fl,dl=ba[4]*fo+dl,Fl=ba[5]*fs+Fl,Fc(Sl,js,au,pu,dl,Fl));return Hr&&Hd(),eh(lr),this},Qe.path=function(Ae){for(var vn=0;vn<Ae.length;vn++){var vi=Ae[vn],_i=vi.c;switch(vi.op){case"m":$l(_i[0],_i[1]);break;case"l":iu(_i[0],_i[1]);break;case"c":Fc.apply(this,_i);break;case"h":Hd()}}return this},Qe.__private__.rect=Qe.rect=function(Ae,vn,vi,_i,lr){if(isNaN(Ae)||isNaN(vn)||isNaN(vi)||isNaN(_i)||!ph(lr))throw new Error("Invalid arguments passed to jsPDF.rect");return Hi===Ai.COMPAT&&(_i=-_i),Hn([gr(Jn(Ae)),gr(ge(vn)),gr(Jn(vi)),gr(Jn(_i)),"re"].join(" ")),eh(lr),this},Qe.__private__.triangle=Qe.triangle=function(Ae,vn,vi,_i,lr,Hr,fo){if(isNaN(Ae)||isNaN(vn)||isNaN(vi)||isNaN(_i)||isNaN(lr)||isNaN(Hr)||!ph(fo))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[vi-Ae,_i-vn],[lr-vi,Hr-_i],[Ae-lr,vn-Hr]],Ae,vn,[1,1],fo,!0),this},Qe.__private__.roundedRect=Qe.roundedRect=function(Ae,vn,vi,_i,lr,Hr,fo){if(isNaN(Ae)||isNaN(vn)||isNaN(vi)||isNaN(_i)||isNaN(lr)||isNaN(Hr)||!ph(fo))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var fs=4/3*(Math.SQRT2-1);return lr=Math.min(lr,.5*vi),Hr=Math.min(Hr,.5*_i),this.lines([[vi-2*lr,0],[lr*fs,0,lr,Hr-Hr*fs,lr,Hr],[0,_i-2*Hr],[0,Hr*fs,-lr*fs,Hr,-lr,Hr],[2*lr-vi,0],[-lr*fs,0,-lr,-Hr*fs,-lr,-Hr],[0,2*Hr-_i],[0,-Hr*fs,lr*fs,-Hr,lr,-Hr]],Ae+lr,vn,[1,1],fo,!0),this},Qe.__private__.ellipse=Qe.ellipse=function(Ae,vn,vi,_i,lr){if(isNaN(Ae)||isNaN(vn)||isNaN(vi)||isNaN(_i)||!ph(lr))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Hr=4/3*(Math.SQRT2-1)*vi,fo=4/3*(Math.SQRT2-1)*_i;return $l(Ae+vi,vn),Fc(Ae+vi,vn-fo,Ae+Hr,vn-_i,Ae,vn-_i),Fc(Ae-Hr,vn-_i,Ae-vi,vn-fo,Ae-vi,vn),Fc(Ae-vi,vn+fo,Ae-Hr,vn+_i,Ae,vn+_i),Fc(Ae+Hr,vn+_i,Ae+vi,vn+fo,Ae+vi,vn),eh(lr),this},Qe.__private__.circle=Qe.circle=function(Ae,vn,vi,_i){if(isNaN(Ae)||isNaN(vn)||isNaN(vi)||!ph(_i))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(Ae,vn,vi,vi,_i)},Qe.setFont=function(Ae,vn,vi){return vi&&(vn=to(vn,vi)),hs=rd(Ae,vn,{disableWarning:!1}),this};var su=Qe.__private__.getFont=Qe.getFont=function(){return Eo[rd.apply(Qe,arguments)]};Qe.__private__.getFontList=Qe.getFontList=function(){var Ae,vn,vi={};for(Ae in Fs)if(Fs.hasOwnProperty(Ae))for(vn in vi[Ae]=[],Fs[Ae])Fs[Ae].hasOwnProperty(vn)&&vi[Ae].push(vn);return vi},Qe.addFont=function(Ae,vn,vi,_i,lr){var Hr=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Hr.indexOf(arguments[3])!==-1?lr=arguments[3]:arguments[3]&&Hr.indexOf(arguments[3])==-1&&(vi=to(vi,_i)),lr=lr||"Identity-H",nu.call(this,Ae,vn,vi,lr)};var xa,sl=Et.lineWidth||.200025,Su=Qe.__private__.getLineWidth=Qe.getLineWidth=function(){return sl},mh=Qe.__private__.setLineWidth=Qe.setLineWidth=function(Ae){return sl=Ae,Hn(gr(Jn(Ae))+" w"),this};Qe.__private__.setLineDash=Ho.API.setLineDash=Ho.API.setLineDashPattern=function(Ae,vn){if(Ae=Ae||[],vn=vn||0,isNaN(vn)||!Array.isArray(Ae))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return Ae=Ae.map(function(vi){return gr(Jn(vi))}).join(" "),vn=gr(Jn(vn)),Hn("["+Ae+"] "+vn+" d"),this};var vh=Qe.__private__.getLineHeight=Qe.getLineHeight=function(){return pr*xa};Qe.__private__.getLineHeight=Qe.getLineHeight=function(){return pr*xa};var zd=Qe.__private__.setLineHeightFactor=Qe.setLineHeightFactor=function(Ae){return typeof(Ae=Ae||1.15)=="number"&&(xa=Ae),this},Lc=Qe.__private__.getLineHeightFactor=Qe.getLineHeightFactor=function(){return xa};zd(Et.lineHeight);var jh=Qe.__private__.getHorizontalCoordinate=function(Ae){return Jn(Ae)},Zu=Qe.__private__.getVerticalCoordinate=function(Ae){return Hi===Ai.ADVANCED?Ae:ts[ln].mediaBox.topRightY-ts[ln].mediaBox.bottomLeftY-Jn(Ae)},Mc=Qe.__private__.getHorizontalCoordinateString=Qe.getHorizontalCoordinateString=function(Ae){return gr(jh(Ae))},Xc=Qe.__private__.getVerticalCoordinateString=Qe.getVerticalCoordinateString=function(Ae){return gr(Zu(Ae))},ic=Et.strokeColor||"0 G";Qe.__private__.getStrokeColor=Qe.getDrawColor=function(){return Za(ic)},Qe.__private__.setStrokeColor=Qe.setDrawColor=function(Ae,vn,vi,_i){return ic=ol({ch1:Ae,ch2:vn,ch3:vi,ch4:_i,pdfColorType:"draw",precision:2}),Hn(ic),this};var Kd=Et.fillColor||"0 g";Qe.__private__.getFillColor=Qe.getFillColor=function(){return Za(Kd)},Qe.__private__.setFillColor=Qe.setFillColor=function(Ae,vn,vi,_i){return Kd=ol({ch1:Ae,ch2:vn,ch3:vi,ch4:_i,pdfColorType:"fill",precision:2}),Hn(Kd),this};var gc=Et.textColor||"0 g",FA=Qe.__private__.getTextColor=Qe.getTextColor=function(){return Za(gc)};Qe.__private__.setTextColor=Qe.setTextColor=function(Ae,vn,vi,_i){return gc=ol({ch1:Ae,ch2:vn,ch3:vi,ch4:_i,pdfColorType:"text",precision:3}),this};var uA=Et.charSpace,lf=Qe.__private__.getCharSpace=Qe.getCharSpace=function(){return parseFloat(uA||0)};Qe.__private__.setCharSpace=Qe.setCharSpace=function(Ae){if(isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return uA=Ae,this};var rc=0;Qe.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},Qe.__private__.setLineCap=Qe.setLineCap=function(Ae){var vn=Qe.CapJoinStyles[Ae];if(vn===void 0)throw new Error("Line cap style of '"+Ae+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return rc=vn,Hn(vn+" J"),this};var QA=0;Qe.__private__.setLineJoin=Qe.setLineJoin=function(Ae){var vn=Qe.CapJoinStyles[Ae];if(vn===void 0)throw new Error("Line join style of '"+Ae+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return QA=vn,Hn(vn+" j"),this},Qe.__private__.setLineMiterLimit=Qe.__private__.setMiterLimit=Qe.setLineMiterLimit=Qe.setMiterLimit=function(Ae){if(Ae=Ae||0,isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Hn(gr(Jn(Ae))+" M"),this},Qe.GState=bo,Qe.setGState=function(Ae){(Ae=typeof Ae=="string"?wo[ss[Ae]]:Gd(null,Ae)).equals(cs)||(Hn("/"+Ae.id+" gs"),cs=Ae)};var Gd=function(Ae,vn){if(!Ae||!ss[Ae]){var vi=!1;for(var _i in wo)if(wo.hasOwnProperty(_i)&&wo[_i].equals(vn)){vi=!0;break}if(vi)vn=wo[_i];else{var lr="GS"+(Object.keys(wo).length+1).toString(10);wo[lr]=vn,vn.id=lr}return Ae&&(ss[Ae]=vn.id),xo.publish("addGState",vn),vn}};Qe.addGState=function(Ae,vn){return Gd(Ae,vn),this},Qe.saveGraphicsState=function(){return Hn("q"),Va.push({key:hs,size:pr,color:gc}),this},Qe.restoreGraphicsState=function(){Hn("Q");var Ae=Va.pop();return hs=Ae.key,pr=Ae.size,gc=Ae.color,cs=null,this},Qe.setCurrentTransformationMatrix=function(Ae){return Hn(Ae.toString()+" cm"),this},Qe.comment=function(Ae){return Hn("#"+Ae),this};var pc=function(Ae,vn){var vi=Ae||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return vi},set:function(Hr){isNaN(Hr)||(vi=parseFloat(Hr))}});var _i=vn||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return _i},set:function(Hr){isNaN(Hr)||(_i=parseFloat(Hr))}});var lr="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return lr},set:function(Hr){lr=Hr.toString()}}),this},ad=function(Ae,vn,vi,_i){pc.call(this,Ae,vn),this.type="rect";var lr=vi||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return lr},set:function(fo){isNaN(fo)||(lr=parseFloat(fo))}});var Hr=_i||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Hr},set:function(fo){isNaN(fo)||(Hr=parseFloat(fo))}}),this},hA=function(){this.page=Lo,this.currentPage=ln,this.pages=Xi.slice(0),this.pagesContext=ts.slice(0),this.x=Pa,this.y=ks,this.matrix=Ps,this.width=Wd(ln),this.height=Nc(ln),this.outputDestination=dr,this.id="",this.objectNumber=-1};hA.prototype.restore=function(){Lo=this.page,ln=this.currentPage,ts=this.pagesContext,Xi=this.pages,Pa=this.x,ks=this.y,Ps=this.matrix,LA(ln,this.width),KA(ln,this.height),dr=this.outputDestination};var Uh=function(Ae,vn,vi,_i,lr){Ql.push(new hA),Lo=ln=0,Xi=[],Pa=Ae,ks=vn,Ps=lr,nc([vi,_i])},zA=function(Ae){if(ea[Ae])Ql.pop().restore();else{var vn=new hA,vi="Xo"+(Object.keys(Rs).length+1).toString(10);vn.id=vi,ea[Ae]=vi,Rs[vi]=vn,xo.publish("addFormObject",vn),Ql.pop().restore()}};for(var bd in Qe.beginFormObject=function(Ae,vn,vi,_i,lr){return Uh(Ae,vn,vi,_i,lr),this},Qe.endFormObject=function(Ae){return zA(Ae),this},Qe.doFormObject=function(Ae,vn){var vi=Rs[ea[Ae]];return Hn("q"),Hn(vn.toString()+" cm"),Hn("/"+vi.id+" Do"),Hn("Q"),this},Qe.getFormObject=function(Ae){var vn=Rs[ea[Ae]];return{x:vn.x,y:vn.y,width:vn.width,height:vn.height,matrix:vn.matrix}},Qe.save=function(Ae,vn){return Ae=Ae||"generated.pdf",(vn=vn||{}).returnPromise=vn.returnPromise||!1,vn.returnPromise===!1?(ta(_d(Ec()),Ae),typeof ta.unload=="function"&&Sr.setTimeout&&setTimeout(ta.unload,911),this):new Promise(function(vi,_i){try{var lr=ta(_d(Ec()),Ae);typeof ta.unload=="function"&&Sr.setTimeout&&setTimeout(ta.unload,911),vi(lr)}catch(Hr){_i(Hr.message)}})},Ho.API)Ho.API.hasOwnProperty(bd)&&(bd==="events"&&Ho.API.events.length?function(Ae,vn){var vi,_i,lr;for(lr=vn.length-1;lr!==-1;lr--)vi=vn[lr][0],_i=vn[lr][1],Ae.subscribe.apply(Ae,[vi].concat(typeof _i=="function"?[_i]:_i))}(xo,Ho.API.events):Qe[bd]=Ho.API[bd]);var Wd=Qe.getPageWidth=function(Ae){return(ts[Ae=Ae||ln].mediaBox.topRightX-ts[Ae].mediaBox.bottomLeftX)/so},LA=Qe.setPageWidth=function(Ae,vn){ts[Ae].mediaBox.topRightX=vn*so+ts[Ae].mediaBox.bottomLeftX},Nc=Qe.getPageHeight=function(Ae){return(ts[Ae=Ae||ln].mediaBox.topRightY-ts[Ae].mediaBox.bottomLeftY)/so},KA=Qe.setPageHeight=function(Ae,vn){ts[Ae].mediaBox.topRightY=vn*so+ts[Ae].mediaBox.bottomLeftY};return Qe.internal={pdfEscape:Un,getStyle:th,getFont:su,getFontSize:qi,getCharSpace:lf,getTextColor:FA,getLineHeight:vh,getLineHeightFactor:Lc,getLineWidth:Su,write:no,getHorizontalCoordinate:jh,getVerticalCoordinate:Zu,getCoordinateString:Mc,getVerticalCoordinateString:Xc,collections:{},newObject:ho,newAdditionalObject:wa,newObjectDeferred:Oa,newObjectDeferredBegin:Iu,getFilters:Hs,putStream:Fa,events:xo,scaleFactor:so,pageSize:{getWidth:function(){return Wd(ln)},setWidth:function(Ae){LA(ln,Ae)},getHeight:function(){return Nc(ln)},setHeight:function(Ae){KA(ln,Ae)}},encryptionOptions:gn,encryption:kl,getEncryptor:Sd,output:xd,getNumberOfPages:bc,pages:Xi,out:Hn,f2:Kr,f3:Kn,getPageInfo:lA,getPageInfoByObjId:Xs,getCurrentPageInfo:Zc,getPDFVersion:Yn,Point:pc,Rectangle:ad,Matrix:ds,hasHotfix:ah},Object.defineProperty(Qe.internal.pageSize,"width",{get:function(){return Wd(ln)},set:function(Ae){LA(ln,Ae)},enumerable:!0,configurable:!0}),Object.defineProperty(Qe.internal.pageSize,"height",{get:function(){return Nc(ln)},set:function(Ae){KA(ln,Ae)},enumerable:!0,configurable:!0}),Hu.call(Qe,tr),hs="F1",Dh(se,Ft),xo.publish("initialized"),Qe}Ao.prototype.lsbFirstWord=function(Et){return String.fromCharCode(Et>>0&255,Et>>8&255,Et>>16&255,Et>>24&255)},Ao.prototype.toHexString=function(Et){return Et.split("").map(function(wt){return("0"+(255&wt.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Ao.prototype.hexToBytes=function(Et){for(var wt=[],Ft=0;Ft<Et.length;Ft+=2)wt.push(String.fromCharCode(parseInt(Et.substr(Ft,2),16)));return wt.join("")},Ao.prototype.processOwnerPassword=function(Et,wt){return Vs(Vo(wt).substr(0,5),Et)},Ao.prototype.encryptor=function(Et,wt){var Ft=Vo(this.encryptionKey+String.fromCharCode(255&Et,Et>>8&255,Et>>16&255,255&wt,wt>>8&255)).substr(0,10);return function(Ut){return Vs(Ft,Ut)}},bo.prototype.equals=function(Et){var wt,Ft="id,objectNumber,equals";if(!Et||(0,Mt.Z)(Et)!==(0,Mt.Z)(this))return!1;var Ut=0;for(wt in this)if(!(Ft.indexOf(wt)>=0)){if(this.hasOwnProperty(wt)&&!Et.hasOwnProperty(wt)||this[wt]!==Et[wt])return!1;Ut++}for(wt in Et)Et.hasOwnProperty(wt)&&Ft.indexOf(wt)<0&&Ut--;return Ut===0},Ho.API={events:[]},Ho.version="3.0.1";var Zs=Ho.API,ka=1,Ml=function(Et){return Et.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ga=function(Et){return Et.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Ss=function(Et){return Et.toFixed(2)},ai=function(Et){return Et.toFixed(5)};Zs.__acroform__={};var Ta=function(Et,wt){Et.prototype=Object.create(wt.prototype),Et.prototype.constructor=Et},dc=function(Et){return Et*ka},hu=function(Et){var wt=new Wa,Ft=Go.internal.getHeight(Et)||0,Ut=Go.internal.getWidth(Et)||0;return wt.BBox=[0,0,Number(Ss(Ut)),Number(Ss(Ft))],wt},kh=Zs.__acroform__.setBit=function(Et,wt){if(Et=Et||0,wt=wt||0,isNaN(Et)||isNaN(wt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return Et|=1<<wt},Wr=Zs.__acroform__.clearBit=function(Et,wt){if(Et=Et||0,wt=wt||0,isNaN(Et)||isNaN(wt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return Et&=~(1<<wt)},zs=Zs.__acroform__.getBit=function(Et,wt){if(isNaN(Et)||isNaN(wt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return Et&1<<wt?1:0},Ms=Zs.__acroform__.getBitForPdf=function(Et,wt){if(isNaN(Et)||isNaN(wt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return zs(Et,wt-1)},Cs=Zs.__acroform__.setBitForPdf=function(Et,wt){if(isNaN(Et)||isNaN(wt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return kh(Et,wt-1)},Gs=Zs.__acroform__.clearBitForPdf=function(Et,wt){if(isNaN(Et)||isNaN(wt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Wr(Et,wt-1)},cu=Zs.__acroform__.calculateCoordinates=function(Et,wt){var Ft=wt.internal.getHorizontalCoordinate,Ut=wt.internal.getVerticalCoordinate,se=Et[0],Vt=Et[1],pe=Et[2],ye=Et[3],Ee={};return Ee.lowerLeft_X=Ft(se)||0,Ee.lowerLeft_Y=Ut(Vt+ye)||0,Ee.upperRight_X=Ft(se+pe)||0,Ee.upperRight_Y=Ut(Vt)||0,[Number(Ss(Ee.lowerLeft_X)),Number(Ss(Ee.lowerLeft_Y)),Number(Ss(Ee.upperRight_X)),Number(Ss(Ee.upperRight_Y))]},qo=function(Et){if(Et.appearanceStreamContent)return Et.appearanceStreamContent;if(Et.V||Et.DV){var wt=[],Ft=Et._V||Et.DV,Ut=_s(Et,Ft),se=Et.scope.internal.getFont(Et.fontName,Et.fontStyle).id;wt.push("/Tx BMC"),wt.push("q"),wt.push("BT"),wt.push(Et.scope.__private__.encodeColorString(Et.color)),wt.push("/"+se+" "+Ss(Ut.fontSize)+" Tf"),wt.push("1 0 0 1 0 0 Tm"),wt.push(Ut.text),wt.push("ET"),wt.push("Q"),wt.push("EMC");var Vt=hu(Et);return Vt.scope=Et.scope,Vt.stream=wt.join(`
|
|
|
`),Vt}},_s=function(Et,wt){var Ft=Et.fontSize===0?Et.maxFontSize:Et.fontSize,Ut={text:"",fontSize:""},se=(wt=(wt=wt.substr(0,1)=="("?wt.substr(1):wt).substr(wt.length-1)==")"?wt.substr(0,wt.length-1):wt).split(" ");se=Et.multiline?se.map(function(Kn){return Kn.split(`
|
|
|
`)}):se.map(function(Kn){return[Kn]});var Vt=Ft,pe=Go.internal.getHeight(Et)||0;pe=pe<0?-pe:pe;var ye=Go.internal.getWidth(Et)||0;ye=ye<0?-ye:ye;var Ee=function(Kn,Jn,Wi){if(Kn+1<se.length){var ge=Jn+" "+se[Kn+1][0];return ms(ge,Et,Wi).width<=ye-4}return!1};Vt++;t:for(;Vt>0;){wt="",Vt--;var Ye,gn,fn=ms("3",Et,Vt).height,In=Et.multiline?pe-Vt:(pe-fn)/2,Qe=In+=2,ci=0,Yn=0,mi=0;if(Vt<=0){wt=`(...) Tj
|
|
|
`,wt+="% Width of Text: "+ms(wt,Et,Vt=12).width+", FieldWidth:"+ye+`
|
|
|
`;break}for(var Rn="",Ai=0,Hi=0;Hi<se.length;Hi++)if(se.hasOwnProperty(Hi)){var sr=!1;if(se[Hi].length!==1&&mi!==se[Hi].length-1){if((fn+2)*(Ai+2)+2>pe)continue t;Rn+=se[Hi][mi],sr=!0,Yn=Hi,Hi--}else{Rn=(Rn+=se[Hi][mi]+" ").substr(Rn.length-1)==" "?Rn.substr(0,Rn.length-1):Rn;var Er=parseInt(Hi),to=Ee(Er,Rn,Vt),gr=Hi>=se.length-1;if(to&&!gr){Rn+=" ",mi=0;continue}if(to||gr){if(gr)Yn=Er;else if(Et.multiline&&(fn+2)*(Ai+2)+2>pe)continue t}else{if(!Et.multiline||(fn+2)*(Ai+2)+2>pe)continue t;Yn=Er}}for(var ki="",yr=ci;yr<=Yn;yr++){var Kr=se[yr];if(Et.multiline){if(yr===Yn){ki+=Kr[mi]+" ",mi=(mi+1)%Kr.length;continue}if(yr===ci){ki+=Kr[Kr.length-1]+" ";continue}}ki+=Kr[0]+" "}switch(ki=ki.substr(ki.length-1)==" "?ki.substr(0,ki.length-1):ki,gn=ms(ki,Et,Vt).width,Et.textAlign){case"right":Ye=ye-gn-2;break;case"center":Ye=(ye-gn)/2;break;case"left":default:Ye=2}wt+=Ss(Ye)+" "+Ss(Qe)+` Td
|
|
|
`,wt+="("+Ml(ki)+`) Tj
|
|
|
`,wt+=-Ss(Ye)+` 0 Td
|
|
|
`,Qe=-(Vt+2),gn=0,ci=sr?Yn:Yn+1,Ai++,Rn=""}break}return Ut.text=wt,Ut.fontSize=Vt,Ut},ms=function(Et,wt,Ft){var Ut=wt.scope.internal.getFont(wt.fontName,wt.fontStyle),se=wt.scope.getStringUnitWidth(Et,{font:Ut,fontSize:parseFloat(Ft),charSpace:0})*parseFloat(Ft);return{height:wt.scope.getStringUnitWidth("3",{font:Ut,fontSize:parseFloat(Ft),charSpace:0})*parseFloat(Ft)*1.5,width:se}},Rr={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},ul=function(Et,wt){var Ft={type:"reference",object:Et};wt.internal.getPageInfo(Et.page).pageContext.annotations.find(function(Ut){return Ut.type===Ft.type&&Ut.object===Ft.object})===void 0&&wt.internal.getPageInfo(Et.page).pageContext.annotations.push(Ft)},Os=function(Et,wt){for(var Ft in Et)if(Et.hasOwnProperty(Ft)){var Ut=Ft,se=Et[Ft];wt.internal.newObjectDeferredBegin(se.objId,!0),(0,Mt.Z)(se)==="object"&&typeof se.putStream=="function"&&se.putStream(),delete Et[Ut]}},yu=function(Et,wt){if(wt.scope=Et,Et.internal!==void 0&&(Et.internal.acroformPlugin===void 0||Et.internal.acroformPlugin.isInitialized===!1)){if(Cl.FieldNum=0,Et.internal.acroformPlugin=JSON.parse(JSON.stringify(Rr)),Et.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");ka=Et.internal.scaleFactor,Et.internal.acroformPlugin.acroFormDictionaryRoot=new nl,Et.internal.acroformPlugin.acroFormDictionaryRoot.scope=Et,Et.internal.acroformPlugin.acroFormDictionaryRoot._eventID=Et.internal.events.subscribe("postPutResources",function(){(function(Ft){Ft.internal.events.unsubscribe(Ft.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete Ft.internal.acroformPlugin.acroFormDictionaryRoot._eventID,Ft.internal.acroformPlugin.printedOut=!0})(Et)}),Et.internal.events.subscribe("buildDocument",function(){(function(Ft){Ft.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var Ut=Ft.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var se in Ut)if(Ut.hasOwnProperty(se)){var Vt=Ut[se];Vt.objId=void 0,Vt.hasAnnotation&&ul(Vt,Ft)}})(Et)}),Et.internal.events.subscribe("putCatalog",function(){(function(Ft){if(Ft.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");Ft.internal.write("/AcroForm "+Ft.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(Et)}),Et.internal.events.subscribe("postPutPages",function(Ft){(function(Ut,se){var Vt=!Ut;for(var pe in Ut||(se.internal.newObjectDeferredBegin(se.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),se.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),Ut=Ut||se.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(Ut.hasOwnProperty(pe)){var ye=Ut[pe],Ee=[],Ye=ye.Rect;if(ye.Rect&&(ye.Rect=cu(ye.Rect,se)),se.internal.newObjectDeferredBegin(ye.objId,!0),ye.DA=Go.createDefaultAppearanceStream(ye),(0,Mt.Z)(ye)==="object"&&typeof ye.getKeyValueListForStream=="function"&&(Ee=ye.getKeyValueListForStream()),ye.Rect=Ye,ye.hasAppearanceStream&&!ye.appearanceStreamContent){var gn=qo(ye);Ee.push({key:"AP",value:"<</N "+gn+">>"}),se.internal.acroformPlugin.xForms.push(gn)}if(ye.appearanceStreamContent){var fn="";for(var In in ye.appearanceStreamContent)if(ye.appearanceStreamContent.hasOwnProperty(In)){var Qe=ye.appearanceStreamContent[In];if(fn+="/"+In+" ",fn+="<<",Object.keys(Qe).length>=1||Array.isArray(Qe)){for(var pe in Qe)if(Qe.hasOwnProperty(pe)){var ci=Qe[pe];typeof ci=="function"&&(ci=ci.call(se,ye)),fn+="/"+pe+" "+ci+" ",se.internal.acroformPlugin.xForms.indexOf(ci)>=0||se.internal.acroformPlugin.xForms.push(ci)}}else typeof(ci=Qe)=="function"&&(ci=ci.call(se,ye)),fn+="/"+pe+" "+ci,se.internal.acroformPlugin.xForms.indexOf(ci)>=0||se.internal.acroformPlugin.xForms.push(ci);fn+=">>"}Ee.push({key:"AP",value:`<<
|
|
|
`+fn+">>"})}se.internal.putStream({additionalKeyValues:Ee,objectId:ye.objId}),se.internal.out("endobj")}Vt&&Os(se.internal.acroformPlugin.xForms,se)})(Ft,Et)}),Et.internal.acroformPlugin.isInitialized=!0}},Uu=Zs.__acroform__.arrayToPdfArray=function(Et,wt,Ft){var Ut=function(pe){return pe};if(Array.isArray(Et)){for(var se="[",Vt=0;Vt<Et.length;Vt++)switch(Vt!==0&&(se+=" "),(0,Mt.Z)(Et[Vt])){case"boolean":case"number":case"object":se+=Et[Vt].toString();break;case"string":Et[Vt].substr(0,1)!=="/"?(wt!==void 0&&Ft&&(Ut=Ft.internal.getEncryptor(wt)),se+="("+Ml(Ut(Et[Vt].toString()))+")"):se+=Et[Vt].toString()}return se+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Vl=function(Et,wt,Ft){var Ut=function(se){return se};return wt!==void 0&&Ft&&(Ut=Ft.internal.getEncryptor(wt)),(Et=Et||"").toString(),Et="("+Ml(Ut(Et))+")"},fr=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(Et){this._objId=Et}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};fr.prototype.toString=function(){return this.objId+" 0 R"},fr.prototype.putStream=function(){var Et=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:Et,objectId:this.objId}),this.scope.internal.out("endobj")},fr.prototype.getKeyValueListForStream=function(){var Et=[],wt=Object.getOwnPropertyNames(this).filter(function(Vt){return Vt!="content"&&Vt!="appearanceStreamContent"&&Vt!="scope"&&Vt!="objId"&&Vt.substring(0,1)!="_"});for(var Ft in wt)if(Object.getOwnPropertyDescriptor(this,wt[Ft]).configurable===!1){var Ut=wt[Ft],se=this[Ut];se&&(Array.isArray(se)?Et.push({key:Ut,value:Uu(se,this.objId,this.scope)}):se instanceof fr?(se.scope=this.scope,Et.push({key:Ut,value:se.objId+" 0 R"})):typeof se!="function"&&Et.push({key:Ut,value:se}))}return Et};var Wa=function(){fr.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 Et,wt=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return wt},set:function(Ft){wt=Ft}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(Ft){Et=Ft.trim()},get:function(){return Et||null}})};Ta(Wa,fr);var nl=function(){fr.call(this);var Et,wt=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return wt.length>0?wt:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return wt}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(Et){var Ft=function(Ut){return Ut};return this.scope&&(Ft=this.scope.internal.getEncryptor(this.objId)),"("+Ml(Ft(Et))+")"}},set:function(Ft){Et=Ft}})};Ta(nl,fr);var Cl=function Et(){fr.call(this);var wt=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return wt},set:function(Rn){if(isNaN(Rn))throw new Error('Invalid value "'+Rn+'" for attribute F supplied.');wt=Rn}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Ms(wt,3)},set:function(Rn){Rn?this.F=Cs(wt,3):this.F=Gs(wt,3)}});var Ft=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return Ft},set:function(Rn){if(isNaN(Rn))throw new Error('Invalid value "'+Rn+'" for attribute Ff supplied.');Ft=Rn}});var Ut=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(Ut.length!==0)return Ut},set:function(Rn){Ut=Rn!==void 0?Rn:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!Ut||isNaN(Ut[0])?0:Ut[0]},set:function(Rn){Ut[0]=Rn}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!Ut||isNaN(Ut[1])?0:Ut[1]},set:function(Rn){Ut[1]=Rn}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!Ut||isNaN(Ut[2])?0:Ut[2]},set:function(Rn){Ut[2]=Rn}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!Ut||isNaN(Ut[3])?0:Ut[3]},set:function(Rn){Ut[3]=Rn}});var se="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return se},set:function(Rn){switch(Rn){case"/Btn":case"/Tx":case"/Ch":case"/Sig":se=Rn;break;default:throw new Error('Invalid value "'+Rn+'" for attribute FT supplied.')}}});var Vt=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!Vt||Vt.length<1){if(this instanceof Pu)return;Vt="FieldObject"+Et.FieldNum++}var Rn=function(Ai){return Ai};return this.scope&&(Rn=this.scope.internal.getEncryptor(this.objId)),"("+Ml(Rn(Vt))+")"},set:function(Rn){Vt=Rn.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return Vt},set:function(Rn){Vt=Rn}});var pe="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return pe},set:function(Rn){pe=Rn}});var ye="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return ye},set:function(Rn){ye=Rn}});var Ee=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return Ee},set:function(Rn){Ee=Rn}});var Ye=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return Ye===void 0?50/ka:Ye},set:function(Rn){Ye=Rn}});var gn="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return gn},set:function(Rn){gn=Rn}});var fn="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!fn||this instanceof Pu||this instanceof du))return Vl(fn,this.objId,this.scope)},set:function(Rn){Rn=Rn.toString(),fn=Rn}});var In=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(In)return this instanceof Ya?In:Vl(In,this.objId,this.scope)},set:function(Rn){Rn=Rn.toString(),In=this instanceof Ya?Rn:Rn.substr(0,1)==="("?Ga(Rn.substr(1,Rn.length-2)):Ga(Rn)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ya?Ga(In.substr(1,In.length-1)):In},set:function(Rn){Rn=Rn.toString(),In=this instanceof Ya?"/"+Rn:Rn}});var Qe=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(Qe)return Qe},set:function(Rn){this.V=Rn}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(Qe)return this instanceof Ya?Qe:Vl(Qe,this.objId,this.scope)},set:function(Rn){Rn=Rn.toString(),Qe=this instanceof Ya?Rn:Rn.substr(0,1)==="("?Ga(Rn.substr(1,Rn.length-2)):Ga(Rn)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ya?Ga(Qe.substr(1,Qe.length-1)):Qe},set:function(Rn){Rn=Rn.toString(),Qe=this instanceof Ya?"/"+Rn:Rn}}),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 ci,Yn=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return Yn},set:function(Rn){Rn=!!Rn,Yn=Rn}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(ci)return ci},set:function(Rn){ci=Rn}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,1)},set:function(Rn){Rn?this.Ff=Cs(this.Ff,1):this.Ff=Gs(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,2)},set:function(Rn){Rn?this.Ff=Cs(this.Ff,2):this.Ff=Gs(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,3)},set:function(Rn){Rn?this.Ff=Cs(this.Ff,3):this.Ff=Gs(this.Ff,3)}});var mi=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(mi!==null)return mi},set:function(Rn){if([0,1,2].indexOf(Rn)===-1)throw new Error('Invalid value "'+Rn+'" for attribute Q supplied.');mi=Rn}}),Object.defineProperty(this,"textAlign",{get:function(){var Rn;switch(mi){case 0:default:Rn="left";break;case 1:Rn="center";break;case 2:Rn="right"}return Rn},configurable:!0,enumerable:!0,set:function(Rn){switch(Rn){case"right":case 2:mi=2;break;case"center":case 1:mi=1;break;case"left":case 0:default:mi=0}}})};Ta(Cl,fr);var ru=function(){Cl.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var Et=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return Et},set:function(Ft){Et=Ft}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return Et},set:function(Ft){Et=Ft}});var wt=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Uu(wt,this.objId,this.scope)},set:function(Ft){var Ut,se;se=[],typeof(Ut=Ft)=="string"&&(se=function(Vt,pe,ye){ye||(ye=1);for(var Ee,Ye=[];Ee=pe.exec(Vt);)Ye.push(Ee[ye]);return Ye}(Ut,/\((.*?)\)/g)),wt=se}}),this.getOptions=function(){return wt},this.setOptions=function(Ft){wt=Ft,this.sort&&wt.sort()},this.addOption=function(Ft){Ft=(Ft=Ft||"").toString(),wt.push(Ft),this.sort&&wt.sort()},this.removeOption=function(Ft,Ut){for(Ut=Ut||!1,Ft=(Ft=Ft||"").toString();wt.indexOf(Ft)!==-1&&(wt.splice(wt.indexOf(Ft),1),Ut!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,18)},set:function(Ft){Ft?this.Ff=Cs(this.Ff,18):this.Ff=Gs(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,19)},set:function(Ft){this.combo===!0&&(Ft?this.Ff=Cs(this.Ff,19):this.Ff=Gs(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,20)},set:function(Ft){Ft?(this.Ff=Cs(this.Ff,20),wt.sort()):this.Ff=Gs(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,22)},set:function(Ft){Ft?this.Ff=Cs(this.Ff,22):this.Ff=Gs(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,23)},set:function(Ft){Ft?this.Ff=Cs(this.Ff,23):this.Ff=Gs(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,27)},set:function(Ft){Ft?this.Ff=Cs(this.Ff,27):this.Ff=Gs(this.Ff,27)}}),this.hasAppearanceStream=!1};Ta(ru,Cl);var $a=function(){ru.call(this),this.fontName="helvetica",this.combo=!1};Ta($a,ru);var Fo=function(){$a.call(this),this.combo=!0};Ta(Fo,$a);var Ua=function(){Fo.call(this),this.edit=!0};Ta(Ua,Fo);var Ya=function(){Cl.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,15)},set:function(Ft){Ft?this.Ff=Cs(this.Ff,15):this.Ff=Gs(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,16)},set:function(Ft){Ft?this.Ff=Cs(this.Ff,16):this.Ff=Gs(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,17)},set:function(Ft){Ft?this.Ff=Cs(this.Ff,17):this.Ff=Gs(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,26)},set:function(Ft){Ft?this.Ff=Cs(this.Ff,26):this.Ff=Gs(this.Ff,26)}});var Et,wt={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var Ft=function(Vt){return Vt};if(this.scope&&(Ft=this.scope.internal.getEncryptor(this.objId)),Object.keys(wt).length!==0){var Ut,se=[];for(Ut in se.push("<<"),wt)se.push("/"+Ut+" ("+Ml(Ft(wt[Ut]))+")");return se.push(">>"),se.join(`
|
|
|
`)}},set:function(Ft){(0,Mt.Z)(Ft)==="object"&&(wt=Ft)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return wt.CA||""},set:function(Ft){typeof Ft=="string"&&(wt.CA=Ft)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Et},set:function(Ft){Et=Ft}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Et.substr(1,Et.length-1)},set:function(Ft){Et="/"+Ft}})};Ta(Ya,Cl);var ou=function(){Ya.call(this),this.pushButton=!0};Ta(ou,Ya);var Zl=function(){Ya.call(this),this.radio=!0,this.pushButton=!1;var Et=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return Et},set:function(wt){Et=wt!==void 0?wt:[]}})};Ta(Zl,Ya);var Pu=function(){var Et,wt;Cl.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return Et},set:function(se){Et=se}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return wt},set:function(se){wt=se}});var Ft,Ut={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var se=function(ye){return ye};this.scope&&(se=this.scope.internal.getEncryptor(this.objId));var Vt,pe=[];for(Vt in pe.push("<<"),Ut)pe.push("/"+Vt+" ("+Ml(se(Ut[Vt]))+")");return pe.push(">>"),pe.join(`
|
|
|
`)},set:function(se){(0,Mt.Z)(se)==="object"&&(Ut=se)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return Ut.CA||""},set:function(se){typeof se=="string"&&(Ut.CA=se)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Ft},set:function(se){Ft=se}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Ft.substr(1,Ft.length-1)},set:function(se){Ft="/"+se}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Go.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Ta(Pu,Cl),Zl.prototype.setAppearance=function(Et){if(!("createAppearanceStream"in Et)||!("getCA"in Et))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var wt in this.Kids)if(this.Kids.hasOwnProperty(wt)){var Ft=this.Kids[wt];Ft.appearanceStreamContent=Et.createAppearanceStream(Ft.optionName),Ft.caption=Et.getCA()}},Zl.prototype.createOption=function(Et){var wt=new Pu;return wt.Parent=this,wt.optionName=Et,this.Kids.push(wt),Dd.call(this.scope,wt),wt};var bu=function(){Ya.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Go.CheckBox.createAppearanceStream()};Ta(bu,Ya);var du=function(){Cl.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,13)},set:function(wt){wt?this.Ff=Cs(this.Ff,13):this.Ff=Gs(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,21)},set:function(wt){wt?this.Ff=Cs(this.Ff,21):this.Ff=Gs(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,23)},set:function(wt){wt?this.Ff=Cs(this.Ff,23):this.Ff=Gs(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,24)},set:function(wt){wt?this.Ff=Cs(this.Ff,24):this.Ff=Gs(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,25)},set:function(wt){wt?this.Ff=Cs(this.Ff,25):this.Ff=Gs(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,26)},set:function(wt){wt?this.Ff=Cs(this.Ff,26):this.Ff=Gs(this.Ff,26)}});var Et=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return Et},set:function(wt){Et=wt}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return Et},set:function(wt){Number.isInteger(wt)&&(Et=wt)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Ta(du,Cl);var tu=function(){du.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,14)},set:function(Et){Et?this.Ff=Cs(this.Ff,14):this.Ff=Gs(this.Ff,14)}}),this.password=!0};Ta(tu,du);var Go={CheckBox:{createAppearanceStream:function(){return{N:{On:Go.CheckBox.YesNormal},D:{On:Go.CheckBox.YesPushDown,Off:Go.CheckBox.OffPushDown}}},YesPushDown:function(Et){var wt=hu(Et);wt.scope=Et.scope;var Ft=[],Ut=Et.scope.internal.getFont(Et.fontName,Et.fontStyle).id,se=Et.scope.__private__.encodeColorString(Et.color),Vt=_s(Et,Et.caption);return Ft.push("0.749023 g"),Ft.push("0 0 "+Ss(Go.internal.getWidth(Et))+" "+Ss(Go.internal.getHeight(Et))+" re"),Ft.push("f"),Ft.push("BMC"),Ft.push("q"),Ft.push("0 0 1 rg"),Ft.push("/"+Ut+" "+Ss(Vt.fontSize)+" Tf "+se),Ft.push("BT"),Ft.push(Vt.text),Ft.push("ET"),Ft.push("Q"),Ft.push("EMC"),wt.stream=Ft.join(`
|
|
|
`),wt},YesNormal:function(Et){var wt=hu(Et);wt.scope=Et.scope;var Ft=Et.scope.internal.getFont(Et.fontName,Et.fontStyle).id,Ut=Et.scope.__private__.encodeColorString(Et.color),se=[],Vt=Go.internal.getHeight(Et),pe=Go.internal.getWidth(Et),ye=_s(Et,Et.caption);return se.push("1 g"),se.push("0 0 "+Ss(pe)+" "+Ss(Vt)+" re"),se.push("f"),se.push("q"),se.push("0 0 1 rg"),se.push("0 0 "+Ss(pe-1)+" "+Ss(Vt-1)+" re"),se.push("W"),se.push("n"),se.push("0 g"),se.push("BT"),se.push("/"+Ft+" "+Ss(ye.fontSize)+" Tf "+Ut),se.push(ye.text),se.push("ET"),se.push("Q"),wt.stream=se.join(`
|
|
|
`),wt},OffPushDown:function(Et){var wt=hu(Et);wt.scope=Et.scope;var Ft=[];return Ft.push("0.749023 g"),Ft.push("0 0 "+Ss(Go.internal.getWidth(Et))+" "+Ss(Go.internal.getHeight(Et))+" re"),Ft.push("f"),wt.stream=Ft.join(`
|
|
|
`),wt}},RadioButton:{Circle:{createAppearanceStream:function(Et){var wt={D:{Off:Go.RadioButton.Circle.OffPushDown},N:{}};return wt.N[Et]=Go.RadioButton.Circle.YesNormal,wt.D[Et]=Go.RadioButton.Circle.YesPushDown,wt},getCA:function(){return"l"},YesNormal:function(Et){var wt=hu(Et);wt.scope=Et.scope;var Ft=[],Ut=Go.internal.getWidth(Et)<=Go.internal.getHeight(Et)?Go.internal.getWidth(Et)/4:Go.internal.getHeight(Et)/4;Ut=Number((.9*Ut).toFixed(5));var se=Go.internal.Bezier_C,Vt=Number((Ut*se).toFixed(5));return Ft.push("q"),Ft.push("1 0 0 1 "+ai(Go.internal.getWidth(Et)/2)+" "+ai(Go.internal.getHeight(Et)/2)+" cm"),Ft.push(Ut+" 0 m"),Ft.push(Ut+" "+Vt+" "+Vt+" "+Ut+" 0 "+Ut+" c"),Ft.push("-"+Vt+" "+Ut+" -"+Ut+" "+Vt+" -"+Ut+" 0 c"),Ft.push("-"+Ut+" -"+Vt+" -"+Vt+" -"+Ut+" 0 -"+Ut+" c"),Ft.push(Vt+" -"+Ut+" "+Ut+" -"+Vt+" "+Ut+" 0 c"),Ft.push("f"),Ft.push("Q"),wt.stream=Ft.join(`
|
|
|
`),wt},YesPushDown:function(Et){var wt=hu(Et);wt.scope=Et.scope;var Ft=[],Ut=Go.internal.getWidth(Et)<=Go.internal.getHeight(Et)?Go.internal.getWidth(Et)/4:Go.internal.getHeight(Et)/4;Ut=Number((.9*Ut).toFixed(5));var se=Number((2*Ut).toFixed(5)),Vt=Number((se*Go.internal.Bezier_C).toFixed(5)),pe=Number((Ut*Go.internal.Bezier_C).toFixed(5));return Ft.push("0.749023 g"),Ft.push("q"),Ft.push("1 0 0 1 "+ai(Go.internal.getWidth(Et)/2)+" "+ai(Go.internal.getHeight(Et)/2)+" cm"),Ft.push(se+" 0 m"),Ft.push(se+" "+Vt+" "+Vt+" "+se+" 0 "+se+" c"),Ft.push("-"+Vt+" "+se+" -"+se+" "+Vt+" -"+se+" 0 c"),Ft.push("-"+se+" -"+Vt+" -"+Vt+" -"+se+" 0 -"+se+" c"),Ft.push(Vt+" -"+se+" "+se+" -"+Vt+" "+se+" 0 c"),Ft.push("f"),Ft.push("Q"),Ft.push("0 g"),Ft.push("q"),Ft.push("1 0 0 1 "+ai(Go.internal.getWidth(Et)/2)+" "+ai(Go.internal.getHeight(Et)/2)+" cm"),Ft.push(Ut+" 0 m"),Ft.push(Ut+" "+pe+" "+pe+" "+Ut+" 0 "+Ut+" c"),Ft.push("-"+pe+" "+Ut+" -"+Ut+" "+pe+" -"+Ut+" 0 c"),Ft.push("-"+Ut+" -"+pe+" -"+pe+" -"+Ut+" 0 -"+Ut+" c"),Ft.push(pe+" -"+Ut+" "+Ut+" -"+pe+" "+Ut+" 0 c"),Ft.push("f"),Ft.push("Q"),wt.stream=Ft.join(`
|
|
|
`),wt},OffPushDown:function(Et){var wt=hu(Et);wt.scope=Et.scope;var Ft=[],Ut=Go.internal.getWidth(Et)<=Go.internal.getHeight(Et)?Go.internal.getWidth(Et)/4:Go.internal.getHeight(Et)/4;Ut=Number((.9*Ut).toFixed(5));var se=Number((2*Ut).toFixed(5)),Vt=Number((se*Go.internal.Bezier_C).toFixed(5));return Ft.push("0.749023 g"),Ft.push("q"),Ft.push("1 0 0 1 "+ai(Go.internal.getWidth(Et)/2)+" "+ai(Go.internal.getHeight(Et)/2)+" cm"),Ft.push(se+" 0 m"),Ft.push(se+" "+Vt+" "+Vt+" "+se+" 0 "+se+" c"),Ft.push("-"+Vt+" "+se+" -"+se+" "+Vt+" -"+se+" 0 c"),Ft.push("-"+se+" -"+Vt+" -"+Vt+" -"+se+" 0 -"+se+" c"),Ft.push(Vt+" -"+se+" "+se+" -"+Vt+" "+se+" 0 c"),Ft.push("f"),Ft.push("Q"),wt.stream=Ft.join(`
|
|
|
`),wt}},Cross:{createAppearanceStream:function(Et){var wt={D:{Off:Go.RadioButton.Cross.OffPushDown},N:{}};return wt.N[Et]=Go.RadioButton.Cross.YesNormal,wt.D[Et]=Go.RadioButton.Cross.YesPushDown,wt},getCA:function(){return"8"},YesNormal:function(Et){var wt=hu(Et);wt.scope=Et.scope;var Ft=[],Ut=Go.internal.calculateCross(Et);return Ft.push("q"),Ft.push("1 1 "+Ss(Go.internal.getWidth(Et)-2)+" "+Ss(Go.internal.getHeight(Et)-2)+" re"),Ft.push("W"),Ft.push("n"),Ft.push(Ss(Ut.x1.x)+" "+Ss(Ut.x1.y)+" m"),Ft.push(Ss(Ut.x2.x)+" "+Ss(Ut.x2.y)+" l"),Ft.push(Ss(Ut.x4.x)+" "+Ss(Ut.x4.y)+" m"),Ft.push(Ss(Ut.x3.x)+" "+Ss(Ut.x3.y)+" l"),Ft.push("s"),Ft.push("Q"),wt.stream=Ft.join(`
|
|
|
`),wt},YesPushDown:function(Et){var wt=hu(Et);wt.scope=Et.scope;var Ft=Go.internal.calculateCross(Et),Ut=[];return Ut.push("0.749023 g"),Ut.push("0 0 "+Ss(Go.internal.getWidth(Et))+" "+Ss(Go.internal.getHeight(Et))+" re"),Ut.push("f"),Ut.push("q"),Ut.push("1 1 "+Ss(Go.internal.getWidth(Et)-2)+" "+Ss(Go.internal.getHeight(Et)-2)+" re"),Ut.push("W"),Ut.push("n"),Ut.push(Ss(Ft.x1.x)+" "+Ss(Ft.x1.y)+" m"),Ut.push(Ss(Ft.x2.x)+" "+Ss(Ft.x2.y)+" l"),Ut.push(Ss(Ft.x4.x)+" "+Ss(Ft.x4.y)+" m"),Ut.push(Ss(Ft.x3.x)+" "+Ss(Ft.x3.y)+" l"),Ut.push("s"),Ut.push("Q"),wt.stream=Ut.join(`
|
|
|
`),wt},OffPushDown:function(Et){var wt=hu(Et);wt.scope=Et.scope;var Ft=[];return Ft.push("0.749023 g"),Ft.push("0 0 "+Ss(Go.internal.getWidth(Et))+" "+Ss(Go.internal.getHeight(Et))+" re"),Ft.push("f"),wt.stream=Ft.join(`
|
|
|
`),wt}}},createDefaultAppearanceStream:function(Et){var wt=Et.scope.internal.getFont(Et.fontName,Et.fontStyle).id,Ft=Et.scope.__private__.encodeColorString(Et.color);return"/"+wt+" "+Et.fontSize+" Tf "+Ft}};Go.internal={Bezier_C:.551915024494,calculateCross:function(Et){var wt=Go.internal.getWidth(Et),Ft=Go.internal.getHeight(Et),Ut=Math.min(wt,Ft);return{x1:{x:(wt-Ut)/2,y:(Ft-Ut)/2+Ut},x2:{x:(wt-Ut)/2+Ut,y:(Ft-Ut)/2},x3:{x:(wt-Ut)/2,y:(Ft-Ut)/2},x4:{x:(wt-Ut)/2+Ut,y:(Ft-Ut)/2+Ut}}}},Go.internal.getWidth=function(Et){var wt=0;return(0,Mt.Z)(Et)==="object"&&(wt=dc(Et.Rect[2])),wt},Go.internal.getHeight=function(Et){var wt=0;return(0,Mt.Z)(Et)==="object"&&(wt=dc(Et.Rect[3])),wt};var Dd=Zs.addField=function(Et){if(yu(this,Et),!(Et instanceof Cl))throw new Error("Invalid argument passed to jsPDF.addField.");var wt;return(wt=Et).scope.internal.acroformPlugin.printedOut&&(wt.scope.internal.acroformPlugin.printedOut=!1,wt.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),wt.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(wt),Et.page=Et.scope.internal.getCurrentPageInfo().pageNumber,this};Zs.AcroFormChoiceField=ru,Zs.AcroFormListBox=$a,Zs.AcroFormComboBox=Fo,Zs.AcroFormEditBox=Ua,Zs.AcroFormButton=Ya,Zs.AcroFormPushButton=ou,Zs.AcroFormRadioButton=Zl,Zs.AcroFormCheckBox=bu,Zs.AcroFormTextField=du,Zs.AcroFormPasswordField=tu,Zs.AcroFormAppearance=Go,Zs.AcroForm={ChoiceField:ru,ListBox:$a,ComboBox:Fo,EditBox:Ua,Button:Ya,PushButton:ou,RadioButton:Zl,CheckBox:bu,TextField:du,PasswordField:tu,Appearance:Go},Ho.AcroForm={ChoiceField:ru,ListBox:$a,ComboBox:Fo,EditBox:Ua,Button:Ya,PushButton:ou,RadioButton:Zl,CheckBox:bu,TextField:du,PasswordField:tu,Appearance:Go};var Eu=Ho.AcroForm;function vd(Et){return Et.reduce(function(wt,Ft,Ut){return wt[Ft]=Ut,wt},{})}(function(Et){Et.__addimage__={};var wt="UNKNOWN",Ft={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]]},Ut=Et.__addimage__.getImageFileTypeByImageData=function(Kn,Jn){var Wi,ge,Ce,Ve,en,un=wt;if((Jn=Jn||wt)==="RGBA"||Kn.data!==void 0&&Kn.data instanceof Uint8ClampedArray&&"height"in Kn&&"width"in Kn)return"RGBA";if(to(Kn))for(en in Ft)for(Ce=Ft[en],Wi=0;Wi<Ce.length;Wi+=1){for(Ve=!0,ge=0;ge<Ce[Wi].length;ge+=1)if(Ce[Wi][ge]!==void 0&&Ce[Wi][ge]!==Kn[ge]){Ve=!1;break}if(Ve===!0){un=en;break}}else for(en in Ft)for(Ce=Ft[en],Wi=0;Wi<Ce.length;Wi+=1){for(Ve=!0,ge=0;ge<Ce[Wi].length;ge+=1)if(Ce[Wi][ge]!==void 0&&Ce[Wi][ge]!==Kn.charCodeAt(ge)){Ve=!1;break}if(Ve===!0){un=en;break}}return un===wt&&Jn!==wt&&(un=Jn),un},se=function Kn(Jn){for(var Wi=this.internal.write,ge=this.internal.putStream,Ce=(0,this.internal.getFilters)();Ce.indexOf("FlateEncode")!==-1;)Ce.splice(Ce.indexOf("FlateEncode"),1);Jn.objectId=this.internal.newObject();var Ve=[];if(Ve.push({key:"Type",value:"/XObject"}),Ve.push({key:"Subtype",value:"/Image"}),Ve.push({key:"Width",value:Jn.width}),Ve.push({key:"Height",value:Jn.height}),Jn.colorSpace===mi.INDEXED?Ve.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(Jn.palette.length/3-1)+" "+("sMask"in Jn&&Jn.sMask!==void 0?Jn.objectId+2:Jn.objectId+1)+" 0 R]"}):(Ve.push({key:"ColorSpace",value:"/"+Jn.colorSpace}),Jn.colorSpace===mi.DEVICE_CMYK&&Ve.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Ve.push({key:"BitsPerComponent",value:Jn.bitsPerComponent}),"decodeParameters"in Jn&&Jn.decodeParameters!==void 0&&Ve.push({key:"DecodeParms",value:"<<"+Jn.decodeParameters+">>"}),"transparency"in Jn&&Array.isArray(Jn.transparency)){for(var en="",un=0,hn=Jn.transparency.length;un<hn;un++)en+=Jn.transparency[un]+" "+Jn.transparency[un]+" ";Ve.push({key:"Mask",value:"["+en+"]"})}Jn.sMask!==void 0&&Ve.push({key:"SMask",value:Jn.objectId+1+" 0 R"});var Dn=Jn.filter!==void 0?["/"+Jn.filter]:void 0;if(ge({data:Jn.data,additionalKeyValues:Ve,alreadyAppliedFilters:Dn,objectId:Jn.objectId}),Wi("endobj"),"sMask"in Jn&&Jn.sMask!==void 0){var qn="/Predictor "+Jn.predictor+" /Colors 1 /BitsPerComponent "+Jn.bitsPerComponent+" /Columns "+Jn.width,Te={width:Jn.width,height:Jn.height,colorSpace:"DeviceGray",bitsPerComponent:Jn.bitsPerComponent,decodeParameters:qn,data:Jn.sMask};"filter"in Jn&&(Te.filter=Jn.filter),Kn.call(this,Te)}if(Jn.colorSpace===mi.INDEXED){var ln=this.internal.newObject();ge({data:ki(new Uint8Array(Jn.palette)),objectId:ln}),Wi("endobj")}},Vt=function(){var Kn=this.internal.collections.addImage_images;for(var Jn in Kn)se.call(this,Kn[Jn])},pe=function(){var Kn,Jn=this.internal.collections.addImage_images,Wi=this.internal.write;for(var ge in Jn)Wi("/I"+(Kn=Jn[ge]).index,Kn.objectId,"0","R")},ye=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",Vt),this.internal.events.subscribe("putXobjectDict",pe))},Ee=function(){var Kn=this.internal.collections.addImage_images;return ye.call(this),Kn},Ye=function(){return Object.keys(this.internal.collections.addImage_images).length},gn=function(Kn){return typeof Et["process"+Kn.toUpperCase()]=="function"},fn=function(Kn){return(0,Mt.Z)(Kn)==="object"&&Kn.nodeType===1},In=function(Kn,Jn){if(Kn.nodeName==="IMG"&&Kn.hasAttribute("src")){var Wi=""+Kn.getAttribute("src");if(Wi.indexOf("data:image/")===0)return vs(unescape(Wi).split("base64,").pop());var ge=Et.loadFile(Wi,!0);if(ge!==void 0)return ge}if(Kn.nodeName==="CANVAS"){if(Kn.width===0||Kn.height===0)throw new Error("Given canvas must have data. Canvas width: "+Kn.width+", height: "+Kn.height);var Ce;switch(Jn){case"PNG":Ce="image/png";break;case"WEBP":Ce="image/webp";break;case"JPEG":case"JPG":default:Ce="image/jpeg"}return vs(Kn.toDataURL(Ce,1).split("base64,").pop())}},Qe=function(Kn){var Jn=this.internal.collections.addImage_images;if(Jn){for(var Wi in Jn)if(Kn===Jn[Wi].alias)return Jn[Wi]}},ci=function(Kn,Jn,Wi){return Kn||Jn||(Kn=-96,Jn=-96),Kn<0&&(Kn=-1*Wi.width*72/Kn/this.internal.scaleFactor),Jn<0&&(Jn=-1*Wi.height*72/Jn/this.internal.scaleFactor),Kn===0&&(Kn=Jn*Wi.width/Wi.height),Jn===0&&(Jn=Kn*Wi.height/Wi.width),[Kn,Jn]},Yn=function(Kn,Jn,Wi,ge,Ce,Ve){var en=ci.call(this,Wi,ge,Ce),un=this.internal.getCoordinateString,hn=this.internal.getVerticalCoordinateString,Dn=Ee.call(this);if(Wi=en[0],ge=en[1],Dn[Ce.index]=Ce,Ve){Ve*=Math.PI/180;var qn=Math.cos(Ve),Te=Math.sin(Ve),ln=function(Fn){return Fn.toFixed(4)},mn=[ln(qn),ln(Te),ln(-1*Te),ln(qn),0,0,"cm"]}this.internal.write("q"),Ve?(this.internal.write([1,"0","0",1,un(Kn),hn(Jn+ge),"cm"].join(" ")),this.internal.write(mn.join(" ")),this.internal.write([un(Wi),"0","0",un(ge),"0","0","cm"].join(" "))):this.internal.write([un(Wi),"0","0",un(ge),un(Kn),hn(Jn+ge),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+Ce.index+" Do"),this.internal.write("Q")},mi=Et.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"};Et.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 Rn=Et.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},Ai=Et.__addimage__.sHashCode=function(Kn){var Jn,Wi,ge=0;if(typeof Kn=="string")for(Wi=Kn.length,Jn=0;Jn<Wi;Jn++)ge=(ge<<5)-ge+Kn.charCodeAt(Jn),ge|=0;else if(to(Kn))for(Wi=Kn.byteLength/2,Jn=0;Jn<Wi;Jn++)ge=(ge<<5)-ge+Kn[Jn],ge|=0;return ge},Hi=Et.__addimage__.validateStringAsBase64=function(Kn){(Kn=Kn||"").toString().trim();var Jn=!0;return Kn.length===0&&(Jn=!1),Kn.length%4!=0&&(Jn=!1),/^[A-Za-z0-9+/]+$/.test(Kn.substr(0,Kn.length-2))===!1&&(Jn=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(Kn.substr(-2))===!1&&(Jn=!1),Jn},sr=Et.__addimage__.extractImageFromDataUrl=function(Kn){if(Kn==null||!(Kn=Kn.trim()).startsWith("data:"))return null;var Jn=Kn.indexOf(",");return Jn<0?null:Kn.substring(0,Jn).trim().endsWith("base64")?Kn.substring(Jn+1):null},Er=Et.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"};Et.__addimage__.isArrayBuffer=function(Kn){return Er()&&Kn instanceof ArrayBuffer};var to=Et.__addimage__.isArrayBufferView=function(Kn){return Er()&&typeof Uint32Array!="undefined"&&(Kn instanceof Int8Array||Kn instanceof Uint8Array||typeof Uint8ClampedArray!="undefined"&&Kn instanceof Uint8ClampedArray||Kn instanceof Int16Array||Kn instanceof Uint16Array||Kn instanceof Int32Array||Kn instanceof Uint32Array||Kn instanceof Float32Array||Kn instanceof Float64Array)},gr=Et.__addimage__.binaryStringToUint8Array=function(Kn){for(var Jn=Kn.length,Wi=new Uint8Array(Jn),ge=0;ge<Jn;ge++)Wi[ge]=Kn.charCodeAt(ge);return Wi},ki=Et.__addimage__.arrayBufferToBinaryString=function(Kn){for(var Jn="",Wi=to(Kn)?Kn:new Uint8Array(Kn),ge=0;ge<Wi.length;ge+=8192)Jn+=String.fromCharCode.apply(null,Wi.subarray(ge,ge+8192));return Jn};Et.addImage=function(){var Kn,Jn,Wi,ge,Ce,Ve,en,un,hn;if(typeof arguments[1]=="number"?(Jn=wt,Wi=arguments[1],ge=arguments[2],Ce=arguments[3],Ve=arguments[4],en=arguments[5],un=arguments[6],hn=arguments[7]):(Jn=arguments[1],Wi=arguments[2],ge=arguments[3],Ce=arguments[4],Ve=arguments[5],en=arguments[6],un=arguments[7],hn=arguments[8]),(0,Mt.Z)(Kn=arguments[0])==="object"&&!fn(Kn)&&"imageData"in Kn){var Dn=Kn;Kn=Dn.imageData,Jn=Dn.format||Jn||wt,Wi=Dn.x||Wi||0,ge=Dn.y||ge||0,Ce=Dn.w||Dn.width||Ce,Ve=Dn.h||Dn.height||Ve,en=Dn.alias||en,un=Dn.compression||un,hn=Dn.rotation||Dn.angle||hn}var qn=this.internal.getFilters();if(un===void 0&&qn.indexOf("FlateEncode")!==-1&&(un="SLOW"),isNaN(Wi)||isNaN(ge))throw new Error("Invalid coordinates passed to jsPDF.addImage");ye.call(this);var Te=yr.call(this,Kn,Jn,en,un);return Yn.call(this,Wi,ge,Ce,Ve,Te,hn),this};var yr=function(Kn,Jn,Wi,ge){var Ce,Ve,en;if(typeof Kn=="string"&&Ut(Kn)===wt){Kn=unescape(Kn);var un=Kr(Kn,!1);(un!==""||(un=Et.loadFile(Kn,!0))!==void 0)&&(Kn=un)}if(fn(Kn)&&(Kn=In(Kn,Jn)),Jn=Ut(Kn,Jn),!gn(Jn))throw new Error("addImage does not support files of type '"+Jn+"', please ensure that a plugin for '"+Jn+"' support is added.");if(((en=Wi)==null||en.length===0)&&(Wi=function(hn){return typeof hn=="string"||to(hn)?Ai(hn):to(hn.data)?Ai(hn.data):null}(Kn)),(Ce=Qe.call(this,Wi))||(Er()&&(Kn instanceof Uint8Array||Jn==="RGBA"||(Ve=Kn,Kn=gr(Kn))),Ce=this["process"+Jn.toUpperCase()](Kn,Ye.call(this),Wi,function(hn){return hn&&typeof hn=="string"&&(hn=hn.toUpperCase()),hn in Et.image_compression?hn:Rn.NONE}(ge),Ve)),!Ce)throw new Error("An unknown error occurred whilst processing the image.");return Ce},Kr=Et.__addimage__.convertBase64ToBinaryString=function(Kn,Jn){Jn=typeof Jn!="boolean"||Jn;var Wi,ge="";if(typeof Kn=="string"){var Ce;Wi=(Ce=sr(Kn))!==null&&Ce!==void 0?Ce:Kn;try{ge=vs(Wi)}catch(Ve){if(Jn)throw Hi(Wi)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Ve.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return ge};Et.getImageProperties=function(Kn){var Jn,Wi,ge="";if(fn(Kn)&&(Kn=In(Kn)),typeof Kn=="string"&&Ut(Kn)===wt&&((ge=Kr(Kn,!1))===""&&(ge=Et.loadFile(Kn)||""),Kn=ge),Wi=Ut(Kn),!gn(Wi))throw new Error("addImage does not support files of type '"+Wi+"', please ensure that a plugin for '"+Wi+"' support is added.");if(!Er()||Kn instanceof Uint8Array||(Kn=gr(Kn)),!(Jn=this["process"+Wi.toUpperCase()](Kn)))throw new Error("An unknown error occurred whilst processing the image");return Jn.fileType=Wi,Jn}})(Ho.API),function(Et){var wt=function(Ft){if(Ft!==void 0&&Ft!="")return!0};Ho.API.events.push(["addPage",function(Ft){this.internal.getPageInfo(Ft.pageNumber).pageContext.annotations=[]}]),Et.events.push(["putPage",function(Ft){for(var Ut,se,Vt,pe=this.internal.getCoordinateString,ye=this.internal.getVerticalCoordinateString,Ee=this.internal.getPageInfoByObjId(Ft.objId),Ye=Ft.pageContext.annotations,gn=!1,fn=0;fn<Ye.length&&!gn;fn++)switch((Ut=Ye[fn]).type){case"link":(wt(Ut.options.url)||wt(Ut.options.pageNumber))&&(gn=!0);break;case"reference":case"text":case"freetext":gn=!0}if(gn!=0){this.internal.write("/Annots [");for(var In=0;In<Ye.length;In++){Ut=Ye[In];var Qe=this.internal.pdfEscape,ci=this.internal.getEncryptor(Ft.objId);switch(Ut.type){case"reference":this.internal.write(" "+Ut.object.objId+" 0 R ");break;case"text":var Yn=this.internal.newAdditionalObject(),mi=this.internal.newAdditionalObject(),Rn=this.internal.getEncryptor(Yn.objId),Ai=Ut.title||"Note";Vt="<</Type /Annot /Subtype /Text "+(se="/Rect ["+pe(Ut.bounds.x)+" "+ye(Ut.bounds.y+Ut.bounds.h)+" "+pe(Ut.bounds.x+Ut.bounds.w)+" "+ye(Ut.bounds.y)+"] ")+"/Contents ("+Qe(Rn(Ut.contents))+")",Vt+=" /Popup "+mi.objId+" 0 R",Vt+=" /P "+Ee.objId+" 0 R",Vt+=" /T ("+Qe(Rn(Ai))+") >>",Yn.content=Vt;var Hi=Yn.objId+" 0 R";Vt="<</Type /Annot /Subtype /Popup "+(se="/Rect ["+pe(Ut.bounds.x+30)+" "+ye(Ut.bounds.y+Ut.bounds.h)+" "+pe(Ut.bounds.x+Ut.bounds.w+30)+" "+ye(Ut.bounds.y)+"] ")+" /Parent "+Hi,Ut.open&&(Vt+=" /Open true"),Vt+=" >>",mi.content=Vt,this.internal.write(Yn.objId,"0 R",mi.objId,"0 R");break;case"freetext":se="/Rect ["+pe(Ut.bounds.x)+" "+ye(Ut.bounds.y)+" "+pe(Ut.bounds.x+Ut.bounds.w)+" "+ye(Ut.bounds.y+Ut.bounds.h)+"] ";var sr=Ut.color||"#000000";Vt="<</Type /Annot /Subtype /FreeText "+se+"/Contents ("+Qe(ci(Ut.contents))+")",Vt+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+sr+")",Vt+=" /Border [0 0 0]",Vt+=" >>",this.internal.write(Vt);break;case"link":if(Ut.options.name){var Er=this.annotations._nameMap[Ut.options.name];Ut.options.pageNumber=Er.page,Ut.options.top=Er.y}else Ut.options.top||(Ut.options.top=0);if(se="/Rect ["+Ut.finalBounds.x+" "+Ut.finalBounds.y+" "+Ut.finalBounds.w+" "+Ut.finalBounds.h+"] ",Vt="",Ut.options.url)Vt="<</Type /Annot /Subtype /Link "+se+"/Border [0 0 0] /A <</S /URI /URI ("+Qe(ci(Ut.options.url))+") >>";else if(Ut.options.pageNumber)switch(Vt="<</Type /Annot /Subtype /Link "+se+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(Ut.options.pageNumber).objId+" 0 R",Ut.options.magFactor=Ut.options.magFactor||"XYZ",Ut.options.magFactor){case"Fit":Vt+=" /Fit]";break;case"FitH":Vt+=" /FitH "+Ut.options.top+"]";break;case"FitV":Ut.options.left=Ut.options.left||0,Vt+=" /FitV "+Ut.options.left+"]";break;case"XYZ":default:var to=ye(Ut.options.top);Ut.options.left=Ut.options.left||0,Ut.options.zoom===void 0&&(Ut.options.zoom=0),Vt+=" /XYZ "+Ut.options.left+" "+to+" "+Ut.options.zoom+"]"}Vt!=""&&(Vt+=" >>",this.internal.write(Vt))}}this.internal.write("]")}}]),Et.createAnnotation=function(Ft){var Ut=this.internal.getCurrentPageInfo();switch(Ft.type){case"link":this.link(Ft.bounds.x,Ft.bounds.y,Ft.bounds.w,Ft.bounds.h,Ft);break;case"text":case"freetext":Ut.pageContext.annotations.push(Ft)}},Et.link=function(Ft,Ut,se,Vt,pe){var ye=this.internal.getCurrentPageInfo(),Ee=this.internal.getCoordinateString,Ye=this.internal.getVerticalCoordinateString;ye.pageContext.annotations.push({finalBounds:{x:Ee(Ft),y:Ye(Ut),w:Ee(Ft+se),h:Ye(Ut+Vt)},options:pe,type:"link"})},Et.textWithLink=function(Ft,Ut,se,Vt){var pe,ye,Ee=this.getTextWidth(Ft),Ye=this.internal.getLineHeight()/this.internal.scaleFactor;if(Vt.maxWidth!==void 0){ye=Vt.maxWidth;var gn=this.splitTextToSize(Ft,ye).length;pe=Math.ceil(Ye*gn)}else ye=Ee,pe=Ye;return this.text(Ft,Ut,se,Vt),se+=.2*Ye,Vt.align==="center"&&(Ut-=Ee/2),Vt.align==="right"&&(Ut-=Ee),this.link(Ut,se-Ye,ye,pe,Vt),Ee},Et.getTextWidth=function(Ft){var Ut=this.internal.getFontSize();return this.getStringUnitWidth(Ft)*Ut/this.internal.scaleFactor}}(Ho.API),function(Et){var wt={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]},Ft={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}},Ut={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},se=[1570,1571,1573,1575];Et.__arabicParser__={};var Vt=Et.__arabicParser__.isInArabicSubstitutionA=function(Yn){return wt[Yn.charCodeAt(0)]!==void 0},pe=Et.__arabicParser__.isArabicLetter=function(Yn){return typeof Yn=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(Yn)},ye=Et.__arabicParser__.isArabicEndLetter=function(Yn){return pe(Yn)&&Vt(Yn)&&wt[Yn.charCodeAt(0)].length<=2},Ee=Et.__arabicParser__.isArabicAlfLetter=function(Yn){return pe(Yn)&&se.indexOf(Yn.charCodeAt(0))>=0};Et.__arabicParser__.arabicLetterHasIsolatedForm=function(Yn){return pe(Yn)&&Vt(Yn)&&wt[Yn.charCodeAt(0)].length>=1};var Ye=Et.__arabicParser__.arabicLetterHasFinalForm=function(Yn){return pe(Yn)&&Vt(Yn)&&wt[Yn.charCodeAt(0)].length>=2};Et.__arabicParser__.arabicLetterHasInitialForm=function(Yn){return pe(Yn)&&Vt(Yn)&&wt[Yn.charCodeAt(0)].length>=3};var gn=Et.__arabicParser__.arabicLetterHasMedialForm=function(Yn){return pe(Yn)&&Vt(Yn)&&wt[Yn.charCodeAt(0)].length==4},fn=Et.__arabicParser__.resolveLigatures=function(Yn){var mi=0,Rn=Ft,Ai="",Hi=0;for(mi=0;mi<Yn.length;mi+=1)Rn[Yn.charCodeAt(mi)]!==void 0?(Hi++,typeof(Rn=Rn[Yn.charCodeAt(mi)])=="number"&&(Ai+=String.fromCharCode(Rn),Rn=Ft,Hi=0),mi===Yn.length-1&&(Rn=Ft,Ai+=Yn.charAt(mi-(Hi-1)),mi-=Hi-1,Hi=0)):(Rn=Ft,Ai+=Yn.charAt(mi-Hi),mi-=Hi,Hi=0);return Ai};Et.__arabicParser__.isArabicDiacritic=function(Yn){return Yn!==void 0&&Ut[Yn.charCodeAt(0)]!==void 0};var In=Et.__arabicParser__.getCorrectForm=function(Yn,mi,Rn){return pe(Yn)?Vt(Yn)===!1?-1:!Ye(Yn)||!pe(mi)&&!pe(Rn)||!pe(Rn)&&ye(mi)||ye(Yn)&&!pe(mi)||ye(Yn)&&Ee(mi)||ye(Yn)&&ye(mi)?0:gn(Yn)&&pe(mi)&&!ye(mi)&&pe(Rn)&&Ye(Rn)?3:ye(Yn)||!pe(Rn)?1:2:-1},Qe=function(Yn){var mi=0,Rn=0,Ai=0,Hi="",sr="",Er="",to=(Yn=Yn||"").split("\\s+"),gr=[];for(mi=0;mi<to.length;mi+=1){for(gr.push(""),Rn=0;Rn<to[mi].length;Rn+=1)Hi=to[mi][Rn],sr=to[mi][Rn-1],Er=to[mi][Rn+1],pe(Hi)?(Ai=In(Hi,sr,Er),gr[mi]+=Ai!==-1?String.fromCharCode(wt[Hi.charCodeAt(0)][Ai]):Hi):gr[mi]+=Hi;gr[mi]=fn(gr[mi])}return gr.join(" ")},ci=Et.__arabicParser__.processArabic=Et.processArabic=function(){var Yn,mi=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,Rn=[];if(Array.isArray(mi)){var Ai=0;for(Rn=[],Ai=0;Ai<mi.length;Ai+=1)Array.isArray(mi[Ai])?Rn.push([Qe(mi[Ai][0]),mi[Ai][1],mi[Ai][2]]):Rn.push([Qe(mi[Ai])]);Yn=Rn}else Yn=Qe(mi);return typeof arguments[0]=="string"?Yn:(arguments[0].text=Yn,arguments[0])};Et.events.push(["preProcessText",ci])}(Ho.API),Ho.API.autoPrint=function(Et){var wt;switch((Et=Et||{}).variant=Et.variant||"non-conform",Et.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){wt=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 "+wt+" 0 R")})}return this},function(Et){var wt=function(){var Ft=void 0;Object.defineProperty(this,"pdf",{get:function(){return Ft},set:function(ye){Ft=ye}});var Ut=150;Object.defineProperty(this,"width",{get:function(){return Ut},set:function(ye){Ut=isNaN(ye)||Number.isInteger(ye)===!1||ye<0?150:ye,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=Ut+1)}});var se=300;Object.defineProperty(this,"height",{get:function(){return se},set:function(ye){se=isNaN(ye)||Number.isInteger(ye)===!1||ye<0?300:ye,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=se+1)}});var Vt=[];Object.defineProperty(this,"childNodes",{get:function(){return Vt},set:function(ye){Vt=ye}});var pe={};Object.defineProperty(this,"style",{get:function(){return pe},set:function(ye){pe=ye}}),Object.defineProperty(this,"parentNode",{})};wt.prototype.getContext=function(Ft,Ut){var se;if((Ft=Ft||"2d")!=="2d")return null;for(se in Ut)this.pdf.context2d.hasOwnProperty(se)&&(this.pdf.context2d[se]=Ut[se]);return this.pdf.context2d._canvas=this,this.pdf.context2d},wt.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},Et.events.push(["initialized",function(){this.canvas=new wt,this.canvas.pdf=this}])}(Ho.API),function(Et){var wt={left:0,top:0,bottom:0,right:0},Ft=!1,Ut=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({},wt),this.internal.__cell__.margins.width=this.getPageWidth(),se.call(this))},se=function(){this.internal.__cell__.lastCell=new Vt,this.internal.__cell__.pages=1},Vt=function(){var Ee=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Ee},set:function(Yn){Ee=Yn}});var Ye=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Ye},set:function(Yn){Ye=Yn}});var gn=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return gn},set:function(Yn){gn=Yn}});var fn=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return fn},set:function(Yn){fn=Yn}});var In=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return In},set:function(Yn){In=Yn}});var Qe=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return Qe},set:function(Yn){Qe=Yn}});var ci=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return ci},set:function(Yn){ci=Yn}}),this};Vt.prototype.clone=function(){return new Vt(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},Vt.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},Et.setHeaderFunction=function(Ee){return Ut.call(this),this.internal.__cell__.headerFunction=typeof Ee=="function"?Ee:void 0,this},Et.getTextDimensions=function(Ee,Ye){Ut.call(this);var gn=(Ye=Ye||{}).fontSize||this.getFontSize(),fn=Ye.font||this.getFont(),In=Ye.scaleFactor||this.internal.scaleFactor,Qe=0,ci=0,Yn=0,mi=this;if(!Array.isArray(Ee)&&typeof Ee!="string"){if(typeof Ee!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");Ee=String(Ee)}var Rn=Ye.maxWidth;Rn>0?typeof Ee=="string"?Ee=this.splitTextToSize(Ee,Rn):Object.prototype.toString.call(Ee)==="[object Array]"&&(Ee=Ee.reduce(function(Hi,sr){return Hi.concat(mi.splitTextToSize(sr,Rn))},[])):Ee=Array.isArray(Ee)?Ee:[Ee];for(var Ai=0;Ai<Ee.length;Ai++)Qe<(Yn=this.getStringUnitWidth(Ee[Ai],{font:fn})*gn)&&(Qe=Yn);return Qe!==0&&(ci=Ee.length),{w:Qe/=In,h:Math.max((ci*gn*this.getLineHeightFactor()-gn*(this.getLineHeightFactor()-1))/In,0)}},Et.cellAddPage=function(){Ut.call(this),this.addPage();var Ee=this.internal.__cell__.margins||wt;return this.internal.__cell__.lastCell=new Vt(Ee.left,Ee.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var pe=Et.cell=function(){var Ee;Ee=arguments[0]instanceof Vt?arguments[0]:new Vt(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),Ut.call(this);var Ye=this.internal.__cell__.lastCell,gn=this.internal.__cell__.padding,fn=this.internal.__cell__.margins||wt,In=this.internal.__cell__.tableHeaderRow,Qe=this.internal.__cell__.printHeaders;return Ye.lineNumber!==void 0&&(Ye.lineNumber===Ee.lineNumber?(Ee.x=(Ye.x||0)+(Ye.width||0),Ee.y=Ye.y||0):Ye.y+Ye.height+Ee.height+fn.bottom>this.getPageHeight()?(this.cellAddPage(),Ee.y=fn.top,Qe&&In&&(this.printHeaderRow(Ee.lineNumber,!0),Ee.y+=In[0].height)):Ee.y=Ye.y+Ye.height||Ee.y),Ee.text[0]!==void 0&&(this.rect(Ee.x,Ee.y,Ee.width,Ee.height,Ft===!0?"FD":void 0),Ee.align==="right"?this.text(Ee.text,Ee.x+Ee.width-gn,Ee.y+gn,{align:"right",baseline:"top"}):Ee.align==="center"?this.text(Ee.text,Ee.x+Ee.width/2,Ee.y+gn,{align:"center",baseline:"top",maxWidth:Ee.width-gn-gn}):this.text(Ee.text,Ee.x+gn,Ee.y+gn,{align:"left",baseline:"top",maxWidth:Ee.width-gn-gn})),this.internal.__cell__.lastCell=Ee,this};Et.table=function(Ee,Ye,gn,fn,In){if(Ut.call(this),!gn)throw new Error("No data for PDF table.");var Qe,ci,Yn,mi,Rn=[],Ai=[],Hi=[],sr={},Er={},to=[],gr=[],ki=(In=In||{}).autoSize||!1,yr=In.printHeaders!==!1,Kr=In.css&&In.css["font-size"]!==void 0?16*In.css["font-size"]:In.fontSize||12,Kn=In.margins||Object.assign({width:this.getPageWidth()},wt),Jn=typeof In.padding=="number"?In.padding:3,Wi=In.headerBackgroundColor||"#c8c8c8",ge=In.headerTextColor||"#000";if(se.call(this),this.internal.__cell__.printHeaders=yr,this.internal.__cell__.margins=Kn,this.internal.__cell__.table_font_size=Kr,this.internal.__cell__.padding=Jn,this.internal.__cell__.headerBackgroundColor=Wi,this.internal.__cell__.headerTextColor=ge,this.setFontSize(Kr),fn==null)Ai=Rn=Object.keys(gn[0]),Hi=Rn.map(function(){return"left"});else if(Array.isArray(fn)&&(0,Mt.Z)(fn[0])==="object")for(Rn=fn.map(function(Dn){return Dn.name}),Ai=fn.map(function(Dn){return Dn.prompt||Dn.name||""}),Hi=fn.map(function(Dn){return Dn.align||"left"}),Qe=0;Qe<fn.length;Qe+=1)Er[fn[Qe].name]=fn[Qe].width*(19.049976/25.4);else Array.isArray(fn)&&typeof fn[0]=="string"&&(Ai=Rn=fn,Hi=Rn.map(function(){return"left"}));if(ki||Array.isArray(fn)&&typeof fn[0]=="string")for(Qe=0;Qe<Rn.length;Qe+=1){for(sr[mi=Rn[Qe]]=gn.map(function(Dn){return Dn[mi]}),this.setFont(void 0,"bold"),to.push(this.getTextDimensions(Ai[Qe],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),ci=sr[mi],this.setFont(void 0,"normal"),Yn=0;Yn<ci.length;Yn+=1)to.push(this.getTextDimensions(ci[Yn],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Er[mi]=Math.max.apply(null,to)+Jn+Jn,to=[]}if(yr){var Ce={};for(Qe=0;Qe<Rn.length;Qe+=1)Ce[Rn[Qe]]={},Ce[Rn[Qe]].text=Ai[Qe],Ce[Rn[Qe]].align=Hi[Qe];var Ve=ye.call(this,Ce,Er);gr=Rn.map(function(Dn){return new Vt(Ee,Ye,Er[Dn],Ve,Ce[Dn].text,void 0,Ce[Dn].align)}),this.setTableHeaderRow(gr),this.printHeaderRow(1,!1)}var en=fn.reduce(function(Dn,qn){return Dn[qn.name]=qn.align,Dn},{});for(Qe=0;Qe<gn.length;Qe+=1){"rowStart"in In&&In.rowStart instanceof Function&&In.rowStart({row:Qe,data:gn[Qe]},this);var un=ye.call(this,gn[Qe],Er);for(Yn=0;Yn<Rn.length;Yn+=1){var hn=gn[Qe][Rn[Yn]];"cellStart"in In&&In.cellStart instanceof Function&&In.cellStart({row:Qe,col:Yn,data:hn},this),pe.call(this,new Vt(Ee,Ye,Er[Rn[Yn]],un,hn,Qe+2,en[Rn[Yn]]))}}return this.internal.__cell__.table_x=Ee,this.internal.__cell__.table_y=Ye,this};var ye=function(Ee,Ye){var gn=this.internal.__cell__.padding,fn=this.internal.__cell__.table_font_size,In=this.internal.scaleFactor;return Object.keys(Ee).map(function(Qe){var ci=Ee[Qe];return this.splitTextToSize(ci.hasOwnProperty("text")?ci.text:ci,Ye[Qe]-gn-gn)},this).map(function(Qe){return this.getLineHeightFactor()*Qe.length*fn/In+gn+gn},this).reduce(function(Qe,ci){return Math.max(Qe,ci)},0)};Et.setTableHeaderRow=function(Ee){Ut.call(this),this.internal.__cell__.tableHeaderRow=Ee},Et.printHeaderRow=function(Ee,Ye){if(Ut.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var gn;if(Ft=!0,typeof this.internal.__cell__.headerFunction=="function"){var fn=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new Vt(fn[0],fn[1],fn[2],fn[3],void 0,-1)}this.setFont(void 0,"bold");for(var In=[],Qe=0;Qe<this.internal.__cell__.tableHeaderRow.length;Qe+=1){gn=this.internal.__cell__.tableHeaderRow[Qe].clone(),Ye&&(gn.y=this.internal.__cell__.margins.top||0,In.push(gn)),gn.lineNumber=Ee;var ci=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),pe.call(this,gn),this.setTextColor(ci)}In.length>0&&this.setTableHeaderRow(In),this.setFont(void 0,"normal"),Ft=!1}}(Ho.API);var Bh={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},qh=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],il=vd(qh),ch=[100,200,300,400,500,600,700,800,900],jd=vd(ch);function Kc(Et){var wt=Et.family.replace(/"|'/g,"").toLowerCase(),Ft=function(Vt){return Bh[Vt=Vt||"normal"]?Vt:"normal"}(Et.style),Ut=function(Vt){if(!Vt)return 400;if(typeof Vt=="number")return Vt>=100&&Vt<=900&&Vt%100==0?Vt:400;if(/^\d00$/.test(Vt))return parseInt(Vt);switch(Vt){case"bold":return 700;case"normal":default:return 400}}(Et.weight),se=function(Vt){return typeof il[Vt=Vt||"normal"]=="number"?Vt:"normal"}(Et.stretch);return{family:wt,style:Ft,weight:Ut,stretch:se,src:Et.src||[],ref:Et.ref||{name:wt,style:[se,Ft,Ut].join(" ")}}}function Gc(Et,wt,Ft,Ut){var se;for(se=Ft;se>=0&&se<wt.length;se+=Ut)if(Et[wt[se]])return Et[wt[se]];for(se=Ft;se>=0&&se<wt.length;se-=Ut)if(Et[wt[se]])return Et[wt[se]]}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 Nu(Et){return[Et.stretch,Et.style,Et.weight,Et.family].join(" ")}function Ja(Et,wt,Ft){for(var Ut=(Ft=Ft||{}).defaultFontFamily||"times",se=Object.assign({},Bs,Ft.genericFontFamilies||{}),Vt=null,pe=null,ye=0;ye<wt.length;++ye)if(se[(Vt=Kc(wt[ye])).family]&&(Vt.family=se[Vt.family]),Et.hasOwnProperty(Vt.family)){pe=Et[Vt.family];break}if(!(pe=pe||Et[Ut]))throw new Error("Could not find a font-family for the rule '"+Nu(Vt)+"' and default family '"+Ut+"'.");if(pe=function(Ee,Ye){if(Ye[Ee])return Ye[Ee];var gn=il[Ee],fn=gn<=il.normal?-1:1,In=Gc(Ye,qh,gn,fn);if(!In)throw new Error("Could not find a matching font-stretch value for "+Ee);return In}(Vt.stretch,pe),pe=function(Ee,Ye){if(Ye[Ee])return Ye[Ee];for(var gn=Bh[Ee],fn=0;fn<gn.length;++fn)if(Ye[gn[fn]])return Ye[gn[fn]];throw new Error("Could not find a matching font-style for "+Ee)}(Vt.style,pe),!(pe=function(Ee,Ye){if(Ye[Ee])return Ye[Ee];if(Ee===400&&Ye[500])return Ye[500];if(Ee===500&&Ye[400])return Ye[400];var gn=jd[Ee],fn=Gc(Ye,ch,gn,Ee<400?-1:1);if(!fn)throw new Error("Could not find a matching font-weight for value "+Ee);return fn}(Vt.weight,pe)))throw new Error("Failed to resolve a font for the rule '"+Nu(Vt)+"'.");return pe}function rl(Et){return Et.trimLeft()}function Ha(Et,wt){for(var Ft=0;Ft<Et.length;){if(Et.charAt(Ft)===wt)return[Et.substring(0,Ft),Et.substring(Ft+1)];Ft+=1}return null}function Aa(Et){var wt=Et.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return wt===null?null:[wt[0],Et.substring(wt[0].length)]}var qa,Nl,Ac,rh=["times"];(function(Et){var wt,Ft,Ut,se,Vt,pe,ye,Ee,Ye,gn=function(Te){return Te=Te||{},this.isStrokeTransparent=Te.isStrokeTransparent||!1,this.strokeOpacity=Te.strokeOpacity||1,this.strokeStyle=Te.strokeStyle||"#000000",this.fillStyle=Te.fillStyle||"#000000",this.isFillTransparent=Te.isFillTransparent||!1,this.fillOpacity=Te.fillOpacity||1,this.font=Te.font||"10px sans-serif",this.textBaseline=Te.textBaseline||"alphabetic",this.textAlign=Te.textAlign||"left",this.lineWidth=Te.lineWidth||1,this.lineJoin=Te.lineJoin||"miter",this.lineCap=Te.lineCap||"butt",this.path=Te.path||[],this.transform=Te.transform!==void 0?Te.transform.clone():new Ee,this.globalCompositeOperation=Te.globalCompositeOperation||"normal",this.globalAlpha=Te.globalAlpha||1,this.clip_path=Te.clip_path||[],this.currentPoint=Te.currentPoint||new pe,this.miterLimit=Te.miterLimit||10,this.lastPoint=Te.lastPoint||new pe,this.lineDashOffset=Te.lineDashOffset||0,this.lineDash=Te.lineDash||[],this.margin=Te.margin||[0,0,0,0],this.prevPageLastElemOffset=Te.prevPageLastElemOffset||0,this.ignoreClearRect=typeof Te.ignoreClearRect!="boolean"||Te.ignoreClearRect,this};Et.events.push(["initialized",function(){this.context2d=new fn(this),wt=this.internal.f2,Ft=this.internal.getCoordinateString,Ut=this.internal.getVerticalCoordinateString,se=this.internal.getHorizontalCoordinate,Vt=this.internal.getVerticalCoordinate,pe=this.internal.Point,ye=this.internal.Rectangle,Ee=this.internal.Matrix,Ye=new gn}]);var fn=function(Te){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var ln=Te;Object.defineProperty(this,"pdf",{get:function(){return ln}});var mn=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return mn},set:function($i){mn=!!$i}});var Fn=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return Fn},set:function($i){Fn=!!$i}});var Xn=0;Object.defineProperty(this,"posX",{get:function(){return Xn},set:function($i){isNaN($i)||(Xn=$i)}});var li=0;Object.defineProperty(this,"posY",{get:function(){return li},set:function($i){isNaN($i)||(li=$i)}}),Object.defineProperty(this,"margin",{get:function(){return Ye.margin},set:function($i){var Hn;typeof $i=="number"?Hn=[$i,$i,$i,$i]:((Hn=new Array(4))[0]=$i[0],Hn[1]=$i.length>=2?$i[1]:Hn[0],Hn[2]=$i.length>=3?$i[2]:Hn[0],Hn[3]=$i.length>=4?$i[3]:Hn[1]),Ye.margin=Hn}});var si=!1;Object.defineProperty(this,"autoPaging",{get:function(){return si},set:function($i){si=$i}});var Ei=0;Object.defineProperty(this,"lastBreak",{get:function(){return Ei},set:function($i){Ei=$i}});var Ii=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Ii},set:function($i){Ii=$i}}),Object.defineProperty(this,"ctx",{get:function(){return Ye},set:function($i){$i instanceof gn&&(Ye=$i)}}),Object.defineProperty(this,"path",{get:function(){return Ye.path},set:function($i){Ye.path=$i}});var Xi=[];Object.defineProperty(this,"ctxStack",{get:function(){return Xi},set:function($i){Xi=$i}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function($i){var Hn;Hn=In($i),this.ctx.fillStyle=Hn.style,this.ctx.isFillTransparent=Hn.a===0,this.ctx.fillOpacity=Hn.a,this.pdf.setFillColor(Hn.r,Hn.g,Hn.b,{a:Hn.a}),this.pdf.setTextColor(Hn.r,Hn.g,Hn.b,{a:Hn.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function($i){var Hn=In($i);this.ctx.strokeStyle=Hn.style,this.ctx.isStrokeTransparent=Hn.a===0,this.ctx.strokeOpacity=Hn.a,Hn.a===0?this.pdf.setDrawColor(255,255,255):(Hn.a,this.pdf.setDrawColor(Hn.r,Hn.g,Hn.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function($i){["butt","round","square"].indexOf($i)!==-1&&(this.ctx.lineCap=$i,this.pdf.setLineCap($i))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function($i){isNaN($i)||(this.ctx.lineWidth=$i,this.pdf.setLineWidth($i))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function($i){["bevel","round","miter"].indexOf($i)!==-1&&(this.ctx.lineJoin=$i,this.pdf.setLineJoin($i))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function($i){isNaN($i)||(this.ctx.miterLimit=$i,this.pdf.setMiterLimit($i))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function($i){this.ctx.textBaseline=$i}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function($i){["right","end","center","left","start"].indexOf($i)!==-1&&(this.ctx.textAlign=$i)}});var ir=null;function dr($i,Hn){if(ir===null){var no=function(ro){var tr=[];return Object.keys(ro).forEach(function(pr){ro[pr].forEach(function(Ar){var qi=null;switch(Ar){case"bold":qi={family:pr,weight:"bold"};break;case"italic":qi={family:pr,style:"italic"};break;case"bolditalic":qi={family:pr,weight:"bold",style:"italic"};break;case"":case"normal":qi={family:pr}}qi!==null&&(qi.ref={name:pr,style:Ar},tr.push(qi))})}),tr}($i.getFontList());ir=function(ro){for(var tr={},pr=0;pr<ro.length;++pr){var Ar=Kc(ro[pr]),qi=Ar.family,Nr=Ar.stretch,oo=Ar.style,po=Ar.weight;tr[qi]=tr[qi]||{},tr[qi][Nr]=tr[qi][Nr]||{},tr[qi][Nr][oo]=tr[qi][Nr][oo]||{},tr[qi][Nr][oo][po]=Ar}return tr}(no.concat(Hn))}return ir}var Xr=null;Object.defineProperty(this,"fontFaces",{get:function(){return Xr},set:function($i){ir=null,Xr=$i}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function($i){var Hn;if(this.ctx.font=$i,(Hn=/^\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($i))!==null){var no=Hn[1];Hn[2];var ro=Hn[3],tr=Hn[4];Hn[5];var pr=Hn[6],Ar=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(tr)[2];tr=Math.floor(Ar==="px"?parseFloat(tr)*this.pdf.internal.scaleFactor:Ar==="em"?parseFloat(tr)*this.pdf.getFontSize():parseFloat(tr)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(tr);var qi=function(Po){var hs,so,Pa=[],ks=Po.trim();if(ks==="")return rh;if(ks in ya)return[ya[ks]];for(;ks!=="";){switch(so=null,hs=(ks=rl(ks)).charAt(0)){case'"':case"'":so=Ha(ks.substring(1),hs);break;default:so=Aa(ks)}if(so===null||(Pa.push(so[0]),(ks=rl(so[1]))!==""&&ks.charAt(0)!==","))return rh;ks=ks.replace(/^,/,"")}return Pa}(pr);if(this.fontFaces){var Nr=Ja(dr(this.pdf,this.fontFaces),qi.map(function(Po){return{family:Po,stretch:"normal",weight:ro,style:no}}));this.pdf.setFont(Nr.ref.name,Nr.ref.style)}else{var oo="";(ro==="bold"||parseInt(ro,10)>=700||no==="bold")&&(oo="bold"),no==="italic"&&(oo+="italic"),oo.length===0&&(oo="normal");for(var po="",So={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"},Qr=0;Qr<qi.length;Qr++){if(this.pdf.internal.getFont(qi[Qr],oo,{noFallback:!0,disableWarning:!0})!==void 0){po=qi[Qr];break}if(oo==="bolditalic"&&this.pdf.internal.getFont(qi[Qr],"bold",{noFallback:!0,disableWarning:!0})!==void 0)po=qi[Qr],oo="bold";else if(this.pdf.internal.getFont(qi[Qr],"normal",{noFallback:!0,disableWarning:!0})!==void 0){po=qi[Qr],oo="normal";break}}if(po===""){for(var Xo=0;Xo<qi.length;Xo++)if(So[qi[Xo]]){po=So[qi[Xo]];break}}po=po===""?"Times":po,this.pdf.setFont(po,oo)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function($i){this.ctx.globalCompositeOperation=$i}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function($i){this.ctx.globalAlpha=$i}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function($i){this.ctx.lineDashOffset=$i,qn.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function($i){this.ctx.lineDash=$i,qn.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function($i){this.ctx.ignoreClearRect=!!$i}})};fn.prototype.setLineDash=function(Te){this.lineDash=Te},fn.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},fn.prototype.fill=function(){sr.call(this,"fill",!1)},fn.prototype.stroke=function(){sr.call(this,"stroke",!1)},fn.prototype.beginPath=function(){this.path=[{type:"begin"}]},fn.prototype.moveTo=function(Te,ln){if(isNaN(Te)||isNaN(ln))throw Bo.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var mn=this.ctx.transform.applyToPoint(new pe(Te,ln));this.path.push({type:"mt",x:mn.x,y:mn.y}),this.ctx.lastPoint=new pe(Te,ln)},fn.prototype.closePath=function(){var Te=new pe(0,0),ln=0;for(ln=this.path.length-1;ln!==-1;ln--)if(this.path[ln].type==="begin"&&(0,Mt.Z)(this.path[ln+1])==="object"&&typeof this.path[ln+1].x=="number"){Te=new pe(this.path[ln+1].x,this.path[ln+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new pe(Te.x,Te.y)},fn.prototype.lineTo=function(Te,ln){if(isNaN(Te)||isNaN(ln))throw Bo.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var mn=this.ctx.transform.applyToPoint(new pe(Te,ln));this.path.push({type:"lt",x:mn.x,y:mn.y}),this.ctx.lastPoint=new pe(mn.x,mn.y)},fn.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),sr.call(this,null,!0)},fn.prototype.quadraticCurveTo=function(Te,ln,mn,Fn){if(isNaN(mn)||isNaN(Fn)||isNaN(Te)||isNaN(ln))throw Bo.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Xn=this.ctx.transform.applyToPoint(new pe(mn,Fn)),li=this.ctx.transform.applyToPoint(new pe(Te,ln));this.path.push({type:"qct",x1:li.x,y1:li.y,x:Xn.x,y:Xn.y}),this.ctx.lastPoint=new pe(Xn.x,Xn.y)},fn.prototype.bezierCurveTo=function(Te,ln,mn,Fn,Xn,li){if(isNaN(Xn)||isNaN(li)||isNaN(Te)||isNaN(ln)||isNaN(mn)||isNaN(Fn))throw Bo.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var si=this.ctx.transform.applyToPoint(new pe(Xn,li)),Ei=this.ctx.transform.applyToPoint(new pe(Te,ln)),Ii=this.ctx.transform.applyToPoint(new pe(mn,Fn));this.path.push({type:"bct",x1:Ei.x,y1:Ei.y,x2:Ii.x,y2:Ii.y,x:si.x,y:si.y}),this.ctx.lastPoint=new pe(si.x,si.y)},fn.prototype.arc=function(Te,ln,mn,Fn,Xn,li){if(isNaN(Te)||isNaN(ln)||isNaN(mn)||isNaN(Fn)||isNaN(Xn))throw Bo.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(li=!!li,!this.ctx.transform.isIdentity){var si=this.ctx.transform.applyToPoint(new pe(Te,ln));Te=si.x,ln=si.y;var Ei=this.ctx.transform.applyToPoint(new pe(0,mn)),Ii=this.ctx.transform.applyToPoint(new pe(0,0));mn=Math.sqrt(Math.pow(Ei.x-Ii.x,2)+Math.pow(Ei.y-Ii.y,2))}Math.abs(Xn-Fn)>=2*Math.PI&&(Fn=0,Xn=2*Math.PI),this.path.push({type:"arc",x:Te,y:ln,radius:mn,startAngle:Fn,endAngle:Xn,counterclockwise:li})},fn.prototype.arcTo=function(Te,ln,mn,Fn,Xn){throw new Error("arcTo not implemented.")},fn.prototype.rect=function(Te,ln,mn,Fn){if(isNaN(Te)||isNaN(ln)||isNaN(mn)||isNaN(Fn))throw Bo.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(Te,ln),this.lineTo(Te+mn,ln),this.lineTo(Te+mn,ln+Fn),this.lineTo(Te,ln+Fn),this.lineTo(Te,ln),this.lineTo(Te+mn,ln),this.lineTo(Te,ln)},fn.prototype.fillRect=function(Te,ln,mn,Fn){if(isNaN(Te)||isNaN(ln)||isNaN(mn)||isNaN(Fn))throw Bo.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!Qe.call(this)){var Xn={};this.lineCap!=="butt"&&(Xn.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Xn.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(Te,ln,mn,Fn),this.fill(),Xn.hasOwnProperty("lineCap")&&(this.lineCap=Xn.lineCap),Xn.hasOwnProperty("lineJoin")&&(this.lineJoin=Xn.lineJoin)}},fn.prototype.strokeRect=function(Te,ln,mn,Fn){if(isNaN(Te)||isNaN(ln)||isNaN(mn)||isNaN(Fn))throw Bo.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");ci.call(this)||(this.beginPath(),this.rect(Te,ln,mn,Fn),this.stroke())},fn.prototype.clearRect=function(Te,ln,mn,Fn){if(isNaN(Te)||isNaN(ln)||isNaN(mn)||isNaN(Fn))throw Bo.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(Te,ln,mn,Fn))},fn.prototype.save=function(Te){Te=typeof Te!="boolean"||Te;for(var ln=this.pdf.internal.getCurrentPageInfo().pageNumber,mn=0;mn<this.pdf.internal.getNumberOfPages();mn++)this.pdf.setPage(mn+1),this.pdf.internal.out("q");if(this.pdf.setPage(ln),Te){this.ctx.fontSize=this.pdf.internal.getFontSize();var Fn=new gn(this.ctx);this.ctxStack.push(this.ctx),this.ctx=Fn}},fn.prototype.restore=function(Te){Te=typeof Te!="boolean"||Te;for(var ln=this.pdf.internal.getCurrentPageInfo().pageNumber,mn=0;mn<this.pdf.internal.getNumberOfPages();mn++)this.pdf.setPage(mn+1),this.pdf.internal.out("Q");this.pdf.setPage(ln),Te&&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)},fn.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var In=function(Te){var ln,mn,Fn,Xn;if(Te.isCanvasGradient===!0&&(Te=Te.getColor()),!Te)return{r:0,g:0,b:0,a:0,style:Te};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(Te))ln=0,mn=0,Fn=0,Xn=0;else{var li=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(Te);if(li!==null)ln=parseInt(li[1]),mn=parseInt(li[2]),Fn=parseInt(li[3]),Xn=1;else if((li=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(Te))!==null)ln=parseInt(li[1]),mn=parseInt(li[2]),Fn=parseInt(li[3]),Xn=parseFloat(li[4]);else{if(Xn=1,typeof Te=="string"&&Te.charAt(0)!=="#"){var si=new To(Te);Te=si.ok?si.toHex():"#000000"}Te.length===4?(ln=Te.substring(1,2),ln+=ln,mn=Te.substring(2,3),mn+=mn,Fn=Te.substring(3,4),Fn+=Fn):(ln=Te.substring(1,3),mn=Te.substring(3,5),Fn=Te.substring(5,7)),ln=parseInt(ln,16),mn=parseInt(mn,16),Fn=parseInt(Fn,16)}}return{r:ln,g:mn,b:Fn,a:Xn,style:Te}},Qe=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},ci=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};fn.prototype.fillText=function(Te,ln,mn,Fn){if(isNaN(ln)||isNaN(mn)||typeof Te!="string")throw Bo.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(Fn=isNaN(Fn)?void 0:Fn,!Qe.call(this)){var Xn=un(this.ctx.transform.rotation),li=this.ctx.transform.scaleX;Jn.call(this,{text:Te,x:ln,y:mn,scale:li,angle:Xn,align:this.textAlign,maxWidth:Fn})}},fn.prototype.strokeText=function(Te,ln,mn,Fn){if(isNaN(ln)||isNaN(mn)||typeof Te!="string")throw Bo.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!ci.call(this)){Fn=isNaN(Fn)?void 0:Fn;var Xn=un(this.ctx.transform.rotation),li=this.ctx.transform.scaleX;Jn.call(this,{text:Te,x:ln,y:mn,scale:li,renderingMode:"stroke",angle:Xn,align:this.textAlign,maxWidth:Fn})}},fn.prototype.measureText=function(Te){if(typeof Te!="string")throw Bo.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var ln=this.pdf,mn=this.pdf.internal.scaleFactor,Fn=ln.internal.getFontSize(),Xn=ln.getStringUnitWidth(Te)*Fn/ln.internal.scaleFactor,li=function(si){var Ei=(si=si||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return Ei}}),this};return new li({width:Xn*=Math.round(96*mn/72*1e4)/1e4})},fn.prototype.scale=function(Te,ln){if(isNaN(Te)||isNaN(ln))throw Bo.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var mn=new Ee(Te,0,0,ln,0,0);this.ctx.transform=this.ctx.transform.multiply(mn)},fn.prototype.rotate=function(Te){if(isNaN(Te))throw Bo.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var ln=new Ee(Math.cos(Te),Math.sin(Te),-Math.sin(Te),Math.cos(Te),0,0);this.ctx.transform=this.ctx.transform.multiply(ln)},fn.prototype.translate=function(Te,ln){if(isNaN(Te)||isNaN(ln))throw Bo.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var mn=new Ee(1,0,0,1,Te,ln);this.ctx.transform=this.ctx.transform.multiply(mn)},fn.prototype.transform=function(Te,ln,mn,Fn,Xn,li){if(isNaN(Te)||isNaN(ln)||isNaN(mn)||isNaN(Fn)||isNaN(Xn)||isNaN(li))throw Bo.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var si=new Ee(Te,ln,mn,Fn,Xn,li);this.ctx.transform=this.ctx.transform.multiply(si)},fn.prototype.setTransform=function(Te,ln,mn,Fn,Xn,li){Te=isNaN(Te)?1:Te,ln=isNaN(ln)?0:ln,mn=isNaN(mn)?0:mn,Fn=isNaN(Fn)?1:Fn,Xn=isNaN(Xn)?0:Xn,li=isNaN(li)?0:li,this.ctx.transform=new Ee(Te,ln,mn,Fn,Xn,li)};var Yn=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};fn.prototype.drawImage=function(Te,ln,mn,Fn,Xn,li,si,Ei,Ii){var Xi=this.pdf.getImageProperties(Te),ir=1,dr=1,Xr=1,$i=1;Fn!==void 0&&Ei!==void 0&&(Xr=Ei/Fn,$i=Ii/Xn,ir=Xi.width/Fn*Ei/Fn,dr=Xi.height/Xn*Ii/Xn),li===void 0&&(li=ln,si=mn,ln=0,mn=0),Fn!==void 0&&Ei===void 0&&(Ei=Fn,Ii=Xn),Fn===void 0&&Ei===void 0&&(Ei=Xi.width,Ii=Xi.height);for(var Hn,no=this.ctx.transform.decompose(),ro=un(no.rotate.shx),tr=new Ee,pr=(tr=(tr=(tr=tr.multiply(no.translate)).multiply(no.skew)).multiply(no.scale)).applyToRectangle(new ye(li-ln*Xr,si-mn*$i,Fn*ir,Xn*dr)),Ar=mi.call(this,pr),qi=[],Nr=0;Nr<Ar.length;Nr+=1)qi.indexOf(Ar[Nr])===-1&&qi.push(Ar[Nr]);if(Hi(qi),this.autoPaging)for(var oo=qi[0],po=qi[qi.length-1],So=oo;So<po+1;So++){this.pdf.setPage(So);var Qr=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Xo=So===1?this.posY+this.margin[0]:this.margin[0],Po=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],so=So===1?0:Po+(So-2)*hs;if(this.ctx.clip_path.length!==0){var Pa=this.path;Hn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Ai(Hn,this.posX+this.margin[3],-so+Xo+this.ctx.prevPageLastElemOffset),Er.call(this,"fill",!0),this.path=Pa}var ks=JSON.parse(JSON.stringify(pr));ks=Ai([ks],this.posX+this.margin[3],-so+Xo+this.ctx.prevPageLastElemOffset)[0];var Ps=(So>oo||So<po)&&Yn.call(this);Ps&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Qr,hs,null).clip().discardPath()),this.pdf.addImage(Te,"JPEG",ks.x,ks.y,ks.w,ks.h,null,null,ro),Ps&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(Te,"JPEG",pr.x,pr.y,pr.w,pr.h,null,null,ro)};var mi=function(Te,ln,mn){var Fn=[];ln=ln||this.pdf.internal.pageSize.width,mn=mn||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var Xn=this.posY+this.ctx.prevPageLastElemOffset;switch(Te.type){default:case"mt":case"lt":Fn.push(Math.floor((Te.y+Xn)/mn)+1);break;case"arc":Fn.push(Math.floor((Te.y+Xn-Te.radius)/mn)+1),Fn.push(Math.floor((Te.y+Xn+Te.radius)/mn)+1);break;case"qct":var li=hn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Te.x1,Te.y1,Te.x,Te.y);Fn.push(Math.floor((li.y+Xn)/mn)+1),Fn.push(Math.floor((li.y+li.h+Xn)/mn)+1);break;case"bct":var si=Dn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Te.x1,Te.y1,Te.x2,Te.y2,Te.x,Te.y);Fn.push(Math.floor((si.y+Xn)/mn)+1),Fn.push(Math.floor((si.y+si.h+Xn)/mn)+1);break;case"rect":Fn.push(Math.floor((Te.y+Xn)/mn)+1),Fn.push(Math.floor((Te.y+Te.h+Xn)/mn)+1)}for(var Ei=0;Ei<Fn.length;Ei+=1)for(;this.pdf.internal.getNumberOfPages()<Fn[Ei];)Rn.call(this);return Fn},Rn=function(){var Te=this.fillStyle,ln=this.strokeStyle,mn=this.font,Fn=this.lineCap,Xn=this.lineWidth,li=this.lineJoin;this.pdf.addPage(),this.fillStyle=Te,this.strokeStyle=ln,this.font=mn,this.lineCap=Fn,this.lineWidth=Xn,this.lineJoin=li},Ai=function(Te,ln,mn){for(var Fn=0;Fn<Te.length;Fn++)switch(Te[Fn].type){case"bct":Te[Fn].x2+=ln,Te[Fn].y2+=mn;case"qct":Te[Fn].x1+=ln,Te[Fn].y1+=mn;case"mt":case"lt":case"arc":default:Te[Fn].x+=ln,Te[Fn].y+=mn}return Te},Hi=function(Te){return Te.sort(function(ln,mn){return ln-mn})},sr=function(Te,ln){for(var mn,Fn,Xn=this.fillStyle,li=this.strokeStyle,si=this.lineCap,Ei=this.lineWidth,Ii=Math.abs(Ei*this.ctx.transform.scaleX),Xi=this.lineJoin,ir=JSON.parse(JSON.stringify(this.path)),dr=JSON.parse(JSON.stringify(this.path)),Xr=[],$i=0;$i<dr.length;$i++)if(dr[$i].x!==void 0)for(var Hn=mi.call(this,dr[$i]),no=0;no<Hn.length;no+=1)Xr.indexOf(Hn[no])===-1&&Xr.push(Hn[no]);for(var ro=0;ro<Xr.length;ro++)for(;this.pdf.internal.getNumberOfPages()<Xr[ro];)Rn.call(this);if(Hi(Xr),this.autoPaging)for(var tr=Xr[0],pr=Xr[Xr.length-1],Ar=tr;Ar<pr+1;Ar++){this.pdf.setPage(Ar),this.fillStyle=Xn,this.strokeStyle=li,this.lineCap=si,this.lineWidth=Ii,this.lineJoin=Xi;var qi=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Nr=Ar===1?this.posY+this.margin[0]:this.margin[0],oo=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],po=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],So=Ar===1?0:oo+(Ar-2)*po;if(this.ctx.clip_path.length!==0){var Qr=this.path;mn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Ai(mn,this.posX+this.margin[3],-So+Nr+this.ctx.prevPageLastElemOffset),Er.call(this,Te,!0),this.path=Qr}if(Fn=JSON.parse(JSON.stringify(ir)),this.path=Ai(Fn,this.posX+this.margin[3],-So+Nr+this.ctx.prevPageLastElemOffset),ln===!1||Ar===0){var Xo=(Ar>tr||Ar<pr)&&Yn.call(this);Xo&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],qi,po,null).clip().discardPath()),Er.call(this,Te,ln),Xo&&this.pdf.restoreGraphicsState()}this.lineWidth=Ei}else this.lineWidth=Ii,Er.call(this,Te,ln),this.lineWidth=Ei;this.path=ir},Er=function(Te,ln){if((Te!=="stroke"||ln||!ci.call(this))&&(Te==="stroke"||ln||!Qe.call(this))){for(var mn,Fn,Xn=[],li=this.path,si=0;si<li.length;si++){var Ei=li[si];switch(Ei.type){case"begin":Xn.push({begin:!0});break;case"close":Xn.push({close:!0});break;case"mt":Xn.push({start:Ei,deltas:[],abs:[]});break;case"lt":var Ii=Xn.length;if(li[si-1]&&!isNaN(li[si-1].x)&&(mn=[Ei.x-li[si-1].x,Ei.y-li[si-1].y],Ii>0)){for(;Ii>=0;Ii--)if(Xn[Ii-1].close!==!0&&Xn[Ii-1].begin!==!0){Xn[Ii-1].deltas.push(mn),Xn[Ii-1].abs.push(Ei);break}}break;case"bct":mn=[Ei.x1-li[si-1].x,Ei.y1-li[si-1].y,Ei.x2-li[si-1].x,Ei.y2-li[si-1].y,Ei.x-li[si-1].x,Ei.y-li[si-1].y],Xn[Xn.length-1].deltas.push(mn);break;case"qct":var Xi=li[si-1].x+2/3*(Ei.x1-li[si-1].x),ir=li[si-1].y+2/3*(Ei.y1-li[si-1].y),dr=Ei.x+2/3*(Ei.x1-Ei.x),Xr=Ei.y+2/3*(Ei.y1-Ei.y),$i=Ei.x,Hn=Ei.y;mn=[Xi-li[si-1].x,ir-li[si-1].y,dr-li[si-1].x,Xr-li[si-1].y,$i-li[si-1].x,Hn-li[si-1].y],Xn[Xn.length-1].deltas.push(mn);break;case"arc":Xn.push({deltas:[],abs:[],arc:!0}),Array.isArray(Xn[Xn.length-1].abs)&&Xn[Xn.length-1].abs.push(Ei)}}Fn=ln?null:Te==="stroke"?"stroke":"fill";for(var no=!1,ro=0;ro<Xn.length;ro++)if(Xn[ro].arc)for(var tr=Xn[ro].abs,pr=0;pr<tr.length;pr++){var Ar=tr[pr];Ar.type==="arc"?ki.call(this,Ar.x,Ar.y,Ar.radius,Ar.startAngle,Ar.endAngle,Ar.counterclockwise,void 0,ln,!no):Wi.call(this,Ar.x,Ar.y),no=!0}else if(Xn[ro].close===!0)this.pdf.internal.out("h"),no=!1;else if(Xn[ro].begin!==!0){var qi=Xn[ro].start.x,Nr=Xn[ro].start.y;ge.call(this,Xn[ro].deltas,qi,Nr),no=!0}Fn&&yr.call(this,Fn),ln&&Kr.call(this)}},to=function(Te){var ln=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,mn=ln*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return Te-mn;case"top":return Te+ln-mn;case"hanging":return Te+ln-2*mn;case"middle":return Te+ln/2-mn;case"ideographic":return Te;case"alphabetic":default:return Te}},gr=function(Te){return Te+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};fn.prototype.createLinearGradient=function(){var Te=function(){};return Te.colorStops=[],Te.addColorStop=function(ln,mn){this.colorStops.push([ln,mn])},Te.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},Te.isCanvasGradient=!0,Te},fn.prototype.createPattern=function(){return this.createLinearGradient()},fn.prototype.createRadialGradient=function(){return this.createLinearGradient()};var ki=function(Te,ln,mn,Fn,Xn,li,si,Ei,Ii){for(var Xi=Ve.call(this,mn,Fn,Xn,li),ir=0;ir<Xi.length;ir++){var dr=Xi[ir];ir===0&&(Ii?Kn.call(this,dr.x1+Te,dr.y1+ln):Wi.call(this,dr.x1+Te,dr.y1+ln)),Ce.call(this,Te,ln,dr.x2,dr.y2,dr.x3,dr.y3,dr.x4,dr.y4)}Ei?Kr.call(this):yr.call(this,si)},yr=function(Te){switch(Te){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Kr=function(){this.pdf.clip(),this.pdf.discardPath()},Kn=function(Te,ln){this.pdf.internal.out(Ft(Te)+" "+Ut(ln)+" m")},Jn=function(Te){var ln;switch(Te.align){case"right":case"end":ln="right";break;case"center":ln="center";break;case"left":case"start":default:ln="left"}var mn=this.pdf.getTextDimensions(Te.text),Fn=to.call(this,Te.y),Xn=gr.call(this,Fn)-mn.h,li=this.ctx.transform.applyToPoint(new pe(Te.x,Fn)),si=this.ctx.transform.decompose(),Ei=new Ee;Ei=(Ei=(Ei=Ei.multiply(si.translate)).multiply(si.skew)).multiply(si.scale);for(var Ii,Xi,ir,dr=this.ctx.transform.applyToRectangle(new ye(Te.x,Fn,mn.w,mn.h)),Xr=Ei.applyToRectangle(new ye(Te.x,Xn,mn.w,mn.h)),$i=mi.call(this,Xr),Hn=[],no=0;no<$i.length;no+=1)Hn.indexOf($i[no])===-1&&Hn.push($i[no]);if(Hi(Hn),this.autoPaging)for(var ro=Hn[0],tr=Hn[Hn.length-1],pr=ro;pr<tr+1;pr++){this.pdf.setPage(pr);var Ar=pr===1?this.posY+this.margin[0]:this.margin[0],qi=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Nr=this.pdf.internal.pageSize.height-this.margin[2],oo=Nr-this.margin[0],po=this.pdf.internal.pageSize.width-this.margin[1],So=po-this.margin[3],Qr=pr===1?0:qi+(pr-2)*oo;if(this.ctx.clip_path.length!==0){var Xo=this.path;Ii=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Ai(Ii,this.posX+this.margin[3],-1*Qr+Ar),Er.call(this,"fill",!0),this.path=Xo}var Po=Ai([JSON.parse(JSON.stringify(Xr))],this.posX+this.margin[3],-Qr+Ar+this.ctx.prevPageLastElemOffset)[0];Te.scale>=.01&&(Xi=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Xi*Te.scale),ir=this.lineWidth,this.lineWidth=ir*Te.scale);var hs=this.autoPaging!=="text";if(hs||Po.y+Po.h<=Nr){if(hs||Po.y>=Ar&&Po.x<=po){var so=hs?Te.text:this.pdf.splitTextToSize(Te.text,Te.maxWidth||po-Po.x)[0],Pa=Ai([JSON.parse(JSON.stringify(dr))],this.posX+this.margin[3],-Qr+Ar+this.ctx.prevPageLastElemOffset)[0],ks=hs&&(pr>ro||pr<tr)&&Yn.call(this);ks&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],So,oo,null).clip().discardPath()),this.pdf.text(so,Pa.x,Pa.y,{angle:Te.angle,align:ln,renderingMode:Te.renderingMode}),ks&&this.pdf.restoreGraphicsState()}}else Po.y<Nr&&(this.ctx.prevPageLastElemOffset+=Nr-Po.y);Te.scale>=.01&&(this.pdf.setFontSize(Xi),this.lineWidth=ir)}else Te.scale>=.01&&(Xi=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Xi*Te.scale),ir=this.lineWidth,this.lineWidth=ir*Te.scale),this.pdf.text(Te.text,li.x+this.posX,li.y+this.posY,{angle:Te.angle,align:ln,renderingMode:Te.renderingMode,maxWidth:Te.maxWidth}),Te.scale>=.01&&(this.pdf.setFontSize(Xi),this.lineWidth=ir)},Wi=function(Te,ln,mn,Fn){mn=mn||0,Fn=Fn||0,this.pdf.internal.out(Ft(Te+mn)+" "+Ut(ln+Fn)+" l")},ge=function(Te,ln,mn){return this.pdf.lines(Te,ln,mn,null,null)},Ce=function(Te,ln,mn,Fn,Xn,li,si,Ei){this.pdf.internal.out([wt(se(mn+Te)),wt(Vt(Fn+ln)),wt(se(Xn+Te)),wt(Vt(li+ln)),wt(se(si+Te)),wt(Vt(Ei+ln)),"c"].join(" "))},Ve=function(Te,ln,mn,Fn){for(var Xn=2*Math.PI,li=Math.PI/2;ln>mn;)ln-=Xn;var si=Math.abs(mn-ln);si<Xn&&Fn&&(si=Xn-si);for(var Ei=[],Ii=Fn?-1:1,Xi=ln;si>1e-5;){var ir=Xi+Ii*Math.min(si,li);Ei.push(en.call(this,Te,Xi,ir)),si-=Math.abs(ir-Xi),Xi=ir}return Ei},en=function(Te,ln,mn){var Fn=(mn-ln)/2,Xn=Te*Math.cos(Fn),li=Te*Math.sin(Fn),si=Xn,Ei=-li,Ii=si*si+Ei*Ei,Xi=Ii+si*Xn+Ei*li,ir=4/3*(Math.sqrt(2*Ii*Xi)-Xi)/(si*li-Ei*Xn),dr=si-ir*Ei,Xr=Ei+ir*si,$i=dr,Hn=-Xr,no=Fn+ln,ro=Math.cos(no),tr=Math.sin(no);return{x1:Te*Math.cos(ln),y1:Te*Math.sin(ln),x2:dr*ro-Xr*tr,y2:dr*tr+Xr*ro,x3:$i*ro-Hn*tr,y3:$i*tr+Hn*ro,x4:Te*Math.cos(mn),y4:Te*Math.sin(mn)}},un=function(Te){return 180*Te/Math.PI},hn=function(Te,ln,mn,Fn,Xn,li){var si=Te+.5*(mn-Te),Ei=ln+.5*(Fn-ln),Ii=Xn+.5*(mn-Xn),Xi=li+.5*(Fn-li),ir=Math.min(Te,Xn,si,Ii),dr=Math.max(Te,Xn,si,Ii),Xr=Math.min(ln,li,Ei,Xi),$i=Math.max(ln,li,Ei,Xi);return new ye(ir,Xr,dr-ir,$i-Xr)},Dn=function(Te,ln,mn,Fn,Xn,li,si,Ei){var Ii,Xi,ir,dr,Xr,$i,Hn,no,ro,tr,pr,Ar,qi,Nr,oo=mn-Te,po=Fn-ln,So=Xn-mn,Qr=li-Fn,Xo=si-Xn,Po=Ei-li;for(Xi=0;Xi<41;Xi++)ro=(Hn=(ir=Te+(Ii=Xi/40)*oo)+Ii*((Xr=mn+Ii*So)-ir))+Ii*(Xr+Ii*(Xn+Ii*Xo-Xr)-Hn),tr=(no=(dr=ln+Ii*po)+Ii*(($i=Fn+Ii*Qr)-dr))+Ii*($i+Ii*(li+Ii*Po-$i)-no),Xi==0?(pr=ro,Ar=tr,qi=ro,Nr=tr):(pr=Math.min(pr,ro),Ar=Math.min(Ar,tr),qi=Math.max(qi,ro),Nr=Math.max(Nr,tr));return new ye(Math.round(pr),Math.round(Ar),Math.round(qi-pr),Math.round(Nr-Ar))},qn=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var Te,ln,mn=(Te=this.ctx.lineDash,ln=this.ctx.lineDashOffset,JSON.stringify({lineDash:Te,lineDashOffset:ln}));this.prevLineDash!==mn&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=mn)}}})(Ho.API),function(Et){var wt=function(Vt){var pe,ye,Ee,Ye,gn,fn,In,Qe,ci,Yn;for(/[^\x00-\xFF]/.test(Vt),ye=[],Ee=0,Ye=(Vt+=pe="\0\0\0\0".slice(Vt.length%4||4)).length;Ye>Ee;Ee+=4)(gn=(Vt.charCodeAt(Ee)<<24)+(Vt.charCodeAt(Ee+1)<<16)+(Vt.charCodeAt(Ee+2)<<8)+Vt.charCodeAt(Ee+3))!==0?(fn=(gn=((gn=((gn=((gn=(gn-(Yn=gn%85))/85)-(ci=gn%85))/85)-(Qe=gn%85))/85)-(In=gn%85))/85)%85,ye.push(fn+33,In+33,Qe+33,ci+33,Yn+33)):ye.push(122);return function(mi,Rn){for(var Ai=Rn;Ai>0;Ai--)mi.pop()}(ye,pe.length),String.fromCharCode.apply(String,ye)+"~>"},Ft=function(Vt){var pe,ye,Ee,Ye,gn,fn=String,In="length",Qe=255,ci="charCodeAt",Yn="slice",mi="replace";for(Vt[Yn](-2),Vt=Vt[Yn](0,-2)[mi](/\s/g,"")[mi]("z","!!!!!"),Ee=[],Ye=0,gn=(Vt+=pe="uuuuu"[Yn](Vt[In]%5||5))[In];gn>Ye;Ye+=5)ye=52200625*(Vt[ci](Ye)-33)+614125*(Vt[ci](Ye+1)-33)+7225*(Vt[ci](Ye+2)-33)+85*(Vt[ci](Ye+3)-33)+(Vt[ci](Ye+4)-33),Ee.push(Qe&ye>>24,Qe&ye>>16,Qe&ye>>8,Qe&ye);return function(Rn,Ai){for(var Hi=Ai;Hi>0;Hi--)Rn.pop()}(Ee,pe[In]),fn.fromCharCode.apply(fn,Ee)},Ut=function(Vt){var pe=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((Vt=Vt.replace(/\s/g,"")).indexOf(">")!==-1&&(Vt=Vt.substr(0,Vt.indexOf(">"))),Vt.length%2&&(Vt+="0"),pe.test(Vt)===!1)return"";for(var ye="",Ee=0;Ee<Vt.length;Ee+=2)ye+=String.fromCharCode("0x"+(Vt[Ee]+Vt[Ee+1]));return ye},se=function(Vt){for(var pe=new Uint8Array(Vt.length),ye=Vt.length;ye--;)pe[ye]=Vt.charCodeAt(ye);return Vt=(pe=Tn(pe)).reduce(function(Ee,Ye){return Ee+String.fromCharCode(Ye)},"")};Et.processDataByFilters=function(Vt,pe){var ye=0,Ee=Vt||"",Ye=[];for(typeof(pe=pe||[])=="string"&&(pe=[pe]),ye=0;ye<pe.length;ye+=1)switch(pe[ye]){case"ASCII85Decode":case"/ASCII85Decode":Ee=Ft(Ee),Ye.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":Ee=wt(Ee),Ye.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":Ee=Ut(Ee),Ye.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":Ee=Ee.split("").map(function(gn){return("0"+gn.charCodeAt().toString(16)).slice(-2)}).join("")+">",Ye.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":Ee=se(Ee),Ye.push("/FlateDecode");break;default:throw new Error('The filter: "'+pe[ye]+'" is not implemented')}return{data:Ee,reverseChain:Ye.reverse().join(" ")}}}(Ho.API),function(Et){Et.loadFile=function(wt,Ft,Ut){return function(se,Vt,pe){Vt=Vt!==!1,pe=typeof pe=="function"?pe:function(){};var ye=void 0;try{ye=function(Ee,Ye,gn){var fn=new XMLHttpRequest,In=0,Qe=function(ci){var Yn=ci.length,mi=[],Rn=String.fromCharCode;for(In=0;In<Yn;In+=1)mi.push(Rn(255&ci.charCodeAt(In)));return mi.join("")};if(fn.open("GET",Ee,!Ye),fn.overrideMimeType("text/plain; charset=x-user-defined"),Ye===!1&&(fn.onload=function(){fn.status===200?gn(Qe(this.responseText)):gn(void 0)}),fn.send(null),Ye&&fn.status===200)return Qe(fn.responseText)}(se,Vt,pe)}catch(Ee){}return ye}(wt,Ft,Ut)},Et.loadImageFile=Et.loadFile}(Ho.API),function(Et){function wt(){return(Sr.html2canvas?Promise.resolve(Sr.html2canvas):Promise.resolve().then(bt.t.bind(bt,64270,23))).catch(function(pe){return Promise.reject(new Error("Could not load html2canvas: "+pe))}).then(function(pe){return pe.default?pe.default:pe})}function Ft(){return(Sr.DOMPurify?Promise.resolve(Sr.DOMPurify):bt.e(7631).then(bt.bind(bt,87631))).catch(function(pe){return Promise.reject(new Error("Could not load dompurify: "+pe))}).then(function(pe){return pe.default?pe.default:pe})}var Ut=function(pe){var ye=(0,Mt.Z)(pe);return ye==="undefined"?"undefined":ye==="string"||pe instanceof String?"string":ye==="number"||pe instanceof Number?"number":ye==="function"||pe instanceof Function?"function":pe&&pe.constructor===Array?"array":pe&&pe.nodeType===1?"element":ye==="object"?"object":"unknown"},se=function(pe,ye){var Ee=document.createElement(pe);for(var Ye in ye.className&&(Ee.className=ye.className),ye.innerHTML&&ye.dompurify&&(Ee.innerHTML=ye.dompurify.sanitize(ye.innerHTML)),ye.style)Ee.style[Ye]=ye.style[Ye];return Ee},Vt=function pe(ye){var Ee=Object.assign(pe.convert(Promise.resolve()),JSON.parse(JSON.stringify(pe.template))),Ye=pe.convert(Promise.resolve(),Ee);return Ye=(Ye=Ye.setProgress(1,pe,1,[pe])).set(ye)};(Vt.prototype=Object.create(Promise.prototype)).constructor=Vt,Vt.convert=function(pe,ye){return pe.__proto__=ye||Vt.prototype,pe},Vt.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"}},Vt.prototype.from=function(pe,ye){return this.then(function(){switch(ye=ye||function(Ee){switch(Ut(Ee)){case"string":return"string";case"element":return Ee.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(pe)){case"string":return this.then(Ft).then(function(Ee){return this.set({src:se("div",{innerHTML:pe,dompurify:Ee})})});case"element":return this.set({src:pe});case"canvas":return this.set({canvas:pe});case"img":return this.set({img:pe});default:return this.error("Unknown source type.")}})},Vt.prototype.to=function(pe){switch(pe){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.")}},Vt.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 pe={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},ye=function Ee(Ye,gn){for(var fn=Ye.nodeType===3?document.createTextNode(Ye.nodeValue):Ye.cloneNode(!1),In=Ye.firstChild;In;In=In.nextSibling)gn!==!0&&In.nodeType===1&&In.nodeName==="SCRIPT"||fn.appendChild(Ee(In,gn));return Ye.nodeType===1&&(Ye.nodeName==="CANVAS"?(fn.width=Ye.width,fn.height=Ye.height,fn.getContext("2d").drawImage(Ye,0,0)):Ye.nodeName!=="TEXTAREA"&&Ye.nodeName!=="SELECT"||(fn.value=Ye.value),fn.addEventListener("load",function(){fn.scrollTop=Ye.scrollTop,fn.scrollLeft=Ye.scrollLeft},!0)),fn}(this.prop.src,this.opt.html2canvas.javascriptEnabled);ye.tagName==="BODY"&&(pe.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=se("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=se("div",{className:"html2pdf__container",style:pe}),this.prop.container.appendChild(ye),this.prop.container.firstChild.appendChild(se("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"})},Vt.prototype.toCanvas=function(){var pe=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(pe).then(wt).then(function(ye){var Ee=Object.assign({},this.opt.html2canvas);return delete Ee.onrendered,ye(this.prop.container,Ee)}).then(function(ye){(this.opt.html2canvas.onrendered||function(){})(ye),this.prop.canvas=ye,document.body.removeChild(this.prop.overlay)})},Vt.prototype.toContext2d=function(){var pe=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(pe).then(wt).then(function(ye){var Ee=this.opt.jsPDF,Ye=this.opt.fontFaces,gn=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,fn=Object.assign({async:!0,allowTaint:!0,scale:gn,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 fn.onrendered,Ee.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,Ee.context2d.posX=this.opt.x,Ee.context2d.posY=this.opt.y,Ee.context2d.margin=this.opt.margin,Ee.context2d.fontFaces=Ye,Ye)for(var In=0;In<Ye.length;++In){var Qe=Ye[In],ci=Qe.src.find(function(Yn){return Yn.format==="truetype"});ci&&Ee.addFont(ci.url,Qe.ref.name,Qe.ref.style)}return fn.windowHeight=fn.windowHeight||0,fn.windowHeight=fn.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):fn.windowHeight,Ee.context2d.save(!0),ye(this.prop.container,fn)}).then(function(ye){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(ye),this.prop.canvas=ye,document.body.removeChild(this.prop.overlay)})},Vt.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).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})},Vt.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},Vt.prototype.output=function(pe,ye,Ee){return(Ee=Ee||"pdf").toLowerCase()==="img"||Ee.toLowerCase()==="image"?this.outputImg(pe,ye):this.outputPdf(pe,ye)},Vt.prototype.outputPdf=function(pe,ye){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(pe,ye)})},Vt.prototype.outputImg=function(pe){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(pe){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 "'+pe+'" is not supported.'}})},Vt.prototype.save=function(pe){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(pe?{filename:pe}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},Vt.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},Vt.prototype.set=function(pe){if(Ut(pe)!=="object")return this;var ye=Object.keys(pe||{}).map(function(Ee){if(Ee in Vt.template.prop)return function(){this.prop[Ee]=pe[Ee]};switch(Ee){case"margin":return this.setMargin.bind(this,pe.margin);case"jsPDF":return function(){return this.opt.jsPDF=pe.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,pe.pageSize);default:return function(){this.opt[Ee]=pe[Ee]}}},this);return this.then(function(){return this.thenList(ye)})},Vt.prototype.get=function(pe,ye){return this.then(function(){var Ee=pe in Vt.template.prop?this.prop[pe]:this.opt[pe];return ye?ye(Ee):Ee})},Vt.prototype.setMargin=function(pe){return this.then(function(){switch(Ut(pe)){case"number":pe=[pe,pe,pe,pe];case"array":if(pe.length===2&&(pe=[pe[0],pe[1],pe[0],pe[1]]),pe.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=pe}).then(this.setPageSize)},Vt.prototype.setPageSize=function(pe){function ye(Ee,Ye){return Math.floor(Ee*Ye/72*96)}return this.then(function(){(pe=pe||Ho.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(pe.inner={width:pe.width-this.opt.margin[1]-this.opt.margin[3],height:pe.height-this.opt.margin[0]-this.opt.margin[2]},pe.inner.px={width:ye(pe.inner.width,pe.k),height:ye(pe.inner.height,pe.k)},pe.inner.ratio=pe.inner.height/pe.inner.width),this.prop.pageSize=pe})},Vt.prototype.setProgress=function(pe,ye,Ee,Ye){return pe!=null&&(this.progress.val=pe),ye!=null&&(this.progress.state=ye),Ee!=null&&(this.progress.n=Ee),Ye!=null&&(this.progress.stack=Ye),this.progress.ratio=this.progress.val/this.progress.state,this},Vt.prototype.updateProgress=function(pe,ye,Ee,Ye){return this.setProgress(pe?this.progress.val+pe:null,ye||null,Ee?this.progress.n+Ee:null,Ye?this.progress.stack.concat(Ye):null)},Vt.prototype.then=function(pe,ye){var Ee=this;return this.thenCore(pe,ye,function(Ye,gn){return Ee.updateProgress(null,null,1,[Ye]),Promise.prototype.then.call(this,function(fn){return Ee.updateProgress(null,Ye),fn}).then(Ye,gn).then(function(fn){return Ee.updateProgress(1),fn})})},Vt.prototype.thenCore=function(pe,ye,Ee){Ee=Ee||Promise.prototype.then,pe&&(pe=pe.bind(this)),ye&&(ye=ye.bind(this));var Ye=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:Vt.convert(Object.assign({},this),Promise.prototype),gn=Ee.call(Ye,pe,ye);return Vt.convert(gn,this.__proto__)},Vt.prototype.thenExternal=function(pe,ye){return Promise.prototype.then.call(this,pe,ye)},Vt.prototype.thenList=function(pe){var ye=this;return pe.forEach(function(Ee){ye=ye.thenCore(Ee)}),ye},Vt.prototype.catch=function(pe){pe&&(pe=pe.bind(this));var ye=Promise.prototype.catch.call(this,pe);return Vt.convert(ye,this)},Vt.prototype.catchExternal=function(pe){return Promise.prototype.catch.call(this,pe)},Vt.prototype.error=function(pe){return this.then(function(){throw new Error(pe)})},Vt.prototype.using=Vt.prototype.set,Vt.prototype.saveAs=Vt.prototype.save,Vt.prototype.export=Vt.prototype.output,Vt.prototype.run=Vt.prototype.then,Ho.getPageSize=function(pe,ye,Ee){if((0,Mt.Z)(pe)==="object"){var Ye=pe;pe=Ye.orientation,ye=Ye.unit||ye,Ee=Ye.format||Ee}ye=ye||"mm",Ee=Ee||"a4",pe=(""+(pe||"P")).toLowerCase();var gn,fn=(""+Ee).toLowerCase(),In={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(ye){case"pt":gn=1;break;case"mm":gn=72/25.4;break;case"cm":gn=72/2.54;break;case"in":gn=72;break;case"px":gn=.75;break;case"pc":case"em":gn=12;break;case"ex":gn=6;break;default:throw"Invalid unit: "+ye}var Qe,ci=0,Yn=0;if(In.hasOwnProperty(fn))ci=In[fn][1]/gn,Yn=In[fn][0]/gn;else try{ci=Ee[1],Yn=Ee[0]}catch(mi){throw new Error("Invalid format: "+Ee)}if(pe==="p"||pe==="portrait")pe="p",Yn>ci&&(Qe=Yn,Yn=ci,ci=Qe);else{if(pe!=="l"&&pe!=="landscape")throw"Invalid orientation: "+pe;pe="l",ci>Yn&&(Qe=Yn,Yn=ci,ci=Qe)}return{width:Yn,height:ci,unit:ye,k:gn,orientation:pe}},Et.html=function(pe,ye){(ye=ye||{}).callback=ye.callback||function(){},ye.html2canvas=ye.html2canvas||{},ye.html2canvas.canvas=ye.html2canvas.canvas||this.canvas,ye.jsPDF=ye.jsPDF||this,ye.fontFaces=ye.fontFaces?ye.fontFaces.map(Kc):null;var Ee=new Vt(ye);return ye.worker?Ee:Ee.from(pe).doCallback()}}(Ho.API),Ho.API.addJS=function(Et){return Ac=Et,this.internal.events.subscribe("postPutResources",function(){qa=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(qa+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Nl=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(){qa!==void 0&&Nl!==void 0&&this.internal.out("/Names <</JavaScript "+qa+" 0 R>>")}),this},function(Et){var wt;Et.events.push(["postPutResources",function(){var Ft=this,Ut=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var se=Ft.outline.render().split(/\r\n/),Vt=0;Vt<se.length;Vt++){var pe=se[Vt],ye=Ut.exec(pe);if(ye!=null){var Ee=ye[1];Ft.internal.newObjectDeferredBegin(Ee,!1)}Ft.internal.write(pe)}if(this.outline.createNamedDestinations){var Ye=this.internal.pages.length,gn=[];for(Vt=0;Vt<Ye;Vt++){var fn=Ft.internal.newObject();gn.push(fn);var In=Ft.internal.getPageInfo(Vt+1);Ft.internal.write("<< /D["+In.objId+" 0 R /XYZ null null null]>> endobj")}var Qe=Ft.internal.newObject();for(Ft.internal.write("<< /Names [ "),Vt=0;Vt<gn.length;Vt++)Ft.internal.write("(page_"+(Vt+1)+")"+gn[Vt]+" 0 R");Ft.internal.write(" ] >>","endobj"),wt=Ft.internal.newObject(),Ft.internal.write("<< /Dests "+Qe+" 0 R"),Ft.internal.write(">>","endobj")}}]),Et.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 "+wt+" 0 R"))}]),Et.events.push(["initialized",function(){var Ft=this;Ft.outline={createNamedDestinations:!1,root:{children:[]}},Ft.outline.add=function(Ut,se,Vt){var pe={title:se,options:Vt,children:[]};return Ut==null&&(Ut=this.root),Ut.children.push(pe),pe},Ft.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=Ft,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},Ft.outline.genIds_r=function(Ut){Ut.id=Ft.internal.newObjectDeferred();for(var se=0;se<Ut.children.length;se++)this.genIds_r(Ut.children[se])},Ft.outline.renderRoot=function(Ut){this.objStart(Ut),this.line("/Type /Outlines"),Ut.children.length>0&&(this.line("/First "+this.makeRef(Ut.children[0])),this.line("/Last "+this.makeRef(Ut.children[Ut.children.length-1]))),this.line("/Count "+this.count_r({count:0},Ut)),this.objEnd()},Ft.outline.renderItems=function(Ut){for(var se=this.ctx.pdf.internal.getVerticalCoordinateString,Vt=0;Vt<Ut.children.length;Vt++){var pe=Ut.children[Vt];this.objStart(pe),this.line("/Title "+this.makeString(pe.title)),this.line("/Parent "+this.makeRef(Ut)),Vt>0&&this.line("/Prev "+this.makeRef(Ut.children[Vt-1])),Vt<Ut.children.length-1&&this.line("/Next "+this.makeRef(Ut.children[Vt+1])),pe.children.length>0&&(this.line("/First "+this.makeRef(pe.children[0])),this.line("/Last "+this.makeRef(pe.children[pe.children.length-1])));var ye=this.count=this.count_r({count:0},pe);if(ye>0&&this.line("/Count "+ye),pe.options&&pe.options.pageNumber){var Ee=Ft.internal.getPageInfo(pe.options.pageNumber);this.line("/Dest ["+Ee.objId+" 0 R /XYZ 0 "+se(0)+" 0]")}this.objEnd()}for(var Ye=0;Ye<Ut.children.length;Ye++)this.renderItems(Ut.children[Ye])},Ft.outline.line=function(Ut){this.ctx.val+=Ut+`\r
|
|
|
`},Ft.outline.makeRef=function(Ut){return Ut.id+" 0 R"},Ft.outline.makeString=function(Ut){return"("+Ft.internal.pdfEscape(Ut)+")"},Ft.outline.objStart=function(Ut){this.ctx.val+=`\r
|
|
|
`+Ut.id+` 0 obj\r
|
|
|
<<\r
|
|
|
`},Ft.outline.objEnd=function(){this.ctx.val+=`>> \r
|
|
|
endobj\r
|
|
|
`},Ft.outline.count_r=function(Ut,se){for(var Vt=0;Vt<se.children.length;Vt++)Ut.count++,this.count_r(Ut,se.children[Vt]);return Ut.count}}])}(Ho.API),function(Et){var wt=[192,193,194,195,196,197,198,199];Et.processJPEG=function(Ft,Ut,se,Vt,pe,ye){var Ee,Ye=this.decode.DCT_DECODE,gn=null;if(typeof Ft=="string"||this.__addimage__.isArrayBuffer(Ft)||this.__addimage__.isArrayBufferView(Ft)){switch(Ft=pe||Ft,Ft=this.__addimage__.isArrayBuffer(Ft)?new Uint8Array(Ft):Ft,(Ee=function(fn){for(var In,Qe=256*fn.charCodeAt(4)+fn.charCodeAt(5),ci=fn.length,Yn={width:0,height:0,numcomponents:1},mi=4;mi<ci;mi+=2){if(mi+=Qe,wt.indexOf(fn.charCodeAt(mi+1))!==-1){In=256*fn.charCodeAt(mi+5)+fn.charCodeAt(mi+6),Yn={width:256*fn.charCodeAt(mi+7)+fn.charCodeAt(mi+8),height:In,numcomponents:fn.charCodeAt(mi+9)};break}Qe=256*fn.charCodeAt(mi+2)+fn.charCodeAt(mi+3)}return Yn}(Ft=this.__addimage__.isArrayBufferView(Ft)?this.__addimage__.arrayBufferToBinaryString(Ft):Ft)).numcomponents){case 1:ye=this.color_spaces.DEVICE_GRAY;break;case 4:ye=this.color_spaces.DEVICE_CMYK;break;case 3:ye=this.color_spaces.DEVICE_RGB}gn={data:Ft,width:Ee.width,height:Ee.height,colorSpace:ye,bitsPerComponent:8,filter:Ye,index:Ut,alias:se}}return gn}}(Ho.API);var hl,Ud,nd,dh,zo,sA=function(){var Et,wt,Ft;function Ut(Vt){var pe,ye,Ee,Ye,gn,fn,In,Qe,ci,Yn,mi,Rn,Ai,Hi;for(this.data=Vt,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},fn=null;;){switch(pe=this.readUInt32(),ci=function(){var sr,Er;for(Er=[],sr=0;sr<4;++sr)Er.push(String.fromCharCode(this.data[this.pos++]));return Er}.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(pe);break;case"fcTL":fn&&this.animation.frames.push(fn),this.pos+=4,fn={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},gn=this.readUInt16(),Ye=this.readUInt16()||100,fn.delay=1e3*gn/Ye,fn.disposeOp=this.data[this.pos++],fn.blendOp=this.data[this.pos++],fn.data=[];break;case"IDAT":case"fdAT":for(ci==="fdAT"&&(this.pos+=4,pe-=4),Vt=(fn!=null?fn.data:void 0)||this.imgData,Rn=0;0<=pe?Rn<pe:Rn>pe;0<=pe?++Rn:--Rn)Vt.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(Ee=this.palette.length/3,this.transparency.indexed=this.read(pe),this.transparency.indexed.length>Ee)throw new Error("More transparent colors than palette size");if((Yn=Ee-this.transparency.indexed.length)>0)for(Ai=0;0<=Yn?Ai<Yn:Ai>Yn;0<=Yn?++Ai:--Ai)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(pe)[0];break;case 2:this.transparency.rgb=this.read(pe)}break;case"tEXt":In=(mi=this.read(pe)).indexOf(0),Qe=String.fromCharCode.apply(String,mi.slice(0,In)),this.text[Qe]=String.fromCharCode.apply(String,mi.slice(In+1));break;case"IEND":return fn&&this.animation.frames.push(fn),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,ye=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*ye,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+=pe}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}Ut.prototype.read=function(Vt){var pe,ye;for(ye=[],pe=0;0<=Vt?pe<Vt:pe>Vt;0<=Vt?++pe:--pe)ye.push(this.data[this.pos++]);return ye},Ut.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},Ut.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},Ut.prototype.decodePixels=function(Vt){var pe=this.pixelBitlength/8,ye=new Uint8Array(this.width*this.height*pe),Ee=0,Ye=this;if(Vt==null&&(Vt=this.imgData),Vt.length===0)return new Uint8Array(0);function gn(fn,In,Qe,ci){var Yn,mi,Rn,Ai,Hi,sr,Er,to,gr,ki,yr,Kr,Kn,Jn,Wi,ge,Ce,Ve,en,un,hn,Dn=Math.ceil((Ye.width-fn)/Qe),qn=Math.ceil((Ye.height-In)/ci),Te=Ye.width==Dn&&Ye.height==qn;for(Jn=pe*Dn,Kr=Te?ye:new Uint8Array(Jn*qn),sr=Vt.length,Kn=0,mi=0;Kn<qn&&Ee<sr;){switch(Vt[Ee++]){case 0:for(Ai=Ce=0;Ce<Jn;Ai=Ce+=1)Kr[mi++]=Vt[Ee++];break;case 1:for(Ai=Ve=0;Ve<Jn;Ai=Ve+=1)Yn=Vt[Ee++],Hi=Ai<pe?0:Kr[mi-pe],Kr[mi++]=(Yn+Hi)%256;break;case 2:for(Ai=en=0;en<Jn;Ai=en+=1)Yn=Vt[Ee++],Rn=(Ai-Ai%pe)/pe,Wi=Kn&&Kr[(Kn-1)*Jn+Rn*pe+Ai%pe],Kr[mi++]=(Wi+Yn)%256;break;case 3:for(Ai=un=0;un<Jn;Ai=un+=1)Yn=Vt[Ee++],Rn=(Ai-Ai%pe)/pe,Hi=Ai<pe?0:Kr[mi-pe],Wi=Kn&&Kr[(Kn-1)*Jn+Rn*pe+Ai%pe],Kr[mi++]=(Yn+Math.floor((Hi+Wi)/2))%256;break;case 4:for(Ai=hn=0;hn<Jn;Ai=hn+=1)Yn=Vt[Ee++],Rn=(Ai-Ai%pe)/pe,Hi=Ai<pe?0:Kr[mi-pe],Kn===0?Wi=ge=0:(Wi=Kr[(Kn-1)*Jn+Rn*pe+Ai%pe],ge=Rn&&Kr[(Kn-1)*Jn+(Rn-1)*pe+Ai%pe]),Er=Hi+Wi-ge,to=Math.abs(Er-Hi),ki=Math.abs(Er-Wi),yr=Math.abs(Er-ge),gr=to<=ki&&to<=yr?Hi:ki<=yr?Wi:ge,Kr[mi++]=(Yn+gr)%256;break;default:throw new Error("Invalid filter algorithm: "+Vt[Ee-1])}if(!Te){var ln=((In+Kn*ci)*Ye.width+fn)*pe,mn=Kn*Jn;for(Ai=0;Ai<Dn;Ai+=1){for(var Fn=0;Fn<pe;Fn+=1)ye[ln++]=Kr[mn++];ln+=(Qe-1)*pe}}Kn++}}return Vt=dn(Vt),Ye.interlaceMethod==1?(gn(0,0,8,8),gn(4,0,8,8),gn(0,4,4,8),gn(2,0,4,4),gn(0,2,2,4),gn(1,0,2,2),gn(0,1,1,2)):gn(0,0,1,1),ye},Ut.prototype.decodePalette=function(){var Vt,pe,ye,Ee,Ye,gn,fn,In,Qe;for(ye=this.palette,gn=this.transparency.indexed||[],Ye=new Uint8Array((gn.length||0)+ye.length),Ee=0,Vt=0,pe=fn=0,In=ye.length;fn<In;pe=fn+=3)Ye[Ee++]=ye[pe],Ye[Ee++]=ye[pe+1],Ye[Ee++]=ye[pe+2],Ye[Ee++]=(Qe=gn[Vt++])!=null?Qe:255;return Ye},Ut.prototype.copyToImageData=function(Vt,pe){var ye,Ee,Ye,gn,fn,In,Qe,ci,Yn,mi,Rn;if(Ee=this.colors,Yn=null,ye=this.hasAlphaChannel,this.palette.length&&(Yn=(Rn=this._decodedPalette)!=null?Rn:this._decodedPalette=this.decodePalette(),Ee=4,ye=!0),ci=(Ye=Vt.data||Vt).length,fn=Yn||pe,gn=In=0,Ee===1)for(;gn<ci;)Qe=Yn?4*pe[gn/4]:In,mi=fn[Qe++],Ye[gn++]=mi,Ye[gn++]=mi,Ye[gn++]=mi,Ye[gn++]=ye?fn[Qe++]:255,In=Qe;else for(;gn<ci;)Qe=Yn?4*pe[gn/4]:In,Ye[gn++]=fn[Qe++],Ye[gn++]=fn[Qe++],Ye[gn++]=fn[Qe++],Ye[gn++]=ye?fn[Qe++]:255,In=Qe},Ut.prototype.decode=function(){var Vt;return Vt=new Uint8Array(this.width*this.height*4),this.copyToImageData(Vt,this.decodePixels()),Vt};var se=function(){if(Object.prototype.toString.call(Sr)==="[object Window]"){try{wt=Sr.document.createElement("canvas"),Ft=wt.getContext("2d")}catch(Vt){return!1}return!0}return!1};return se(),Et=function(Vt){var pe;if(se()===!0)return Ft.width=Vt.width,Ft.height=Vt.height,Ft.clearRect(0,0,Vt.width,Vt.height),Ft.putImageData(Vt,0,0),(pe=new Image).src=wt.toDataURL(),pe;throw new Error("This method requires a Browser with Canvas-capability.")},Ut.prototype.decodeFrames=function(Vt){var pe,ye,Ee,Ye,gn,fn,In,Qe;if(this.animation){for(Qe=[],ye=gn=0,fn=(In=this.animation.frames).length;gn<fn;ye=++gn)pe=In[ye],Ee=Vt.createImageData(pe.width,pe.height),Ye=this.decodePixels(new Uint8Array(pe.data)),this.copyToImageData(Ee,Ye),pe.imageData=Ee,Qe.push(pe.image=Et(Ee));return Qe}},Ut.prototype.renderFrame=function(Vt,pe){var ye,Ee,Ye;return ye=(Ee=this.animation.frames)[pe],Ye=Ee[pe-1],pe===0&&Vt.clearRect(0,0,this.width,this.height),(Ye!=null?Ye.disposeOp:void 0)===1?Vt.clearRect(Ye.xOffset,Ye.yOffset,Ye.width,Ye.height):(Ye!=null?Ye.disposeOp:void 0)===2&&Vt.putImageData(Ye.imageData,Ye.xOffset,Ye.yOffset),ye.blendOp===0&&Vt.clearRect(ye.xOffset,ye.yOffset,ye.width,ye.height),Vt.drawImage(ye.image,ye.xOffset,ye.yOffset)},Ut.prototype.animate=function(Vt){var pe,ye,Ee,Ye,gn,fn,In=this;return ye=0,fn=this.animation,Ye=fn.numFrames,Ee=fn.frames,gn=fn.numPlays,(pe=function(){var Qe,ci;if(Qe=ye++%Ye,ci=Ee[Qe],In.renderFrame(Vt,Qe),Ye>1&&ye/Ye<gn)return In.animation._timeout=setTimeout(pe,ci.delay)})()},Ut.prototype.stopAnimation=function(){var Vt;return clearTimeout((Vt=this.animation)!=null?Vt._timeout:void 0)},Ut.prototype.render=function(Vt){var pe,ye;return Vt._png&&Vt._png.stopAnimation(),Vt._png=this,Vt.width=this.width,Vt.height=this.height,pe=Vt.getContext("2d"),this.animation?(this.decodeFrames(pe),this.animate(pe)):(ye=pe.createImageData(this.width,this.height),this.copyToImageData(ye,this.decodePixels()),pe.putImageData(ye,0,0))},Ut}();function En(Et){var wt=0;if(Et[wt++]!==71||Et[wt++]!==73||Et[wt++]!==70||Et[wt++]!==56||(Et[wt++]+1&253)!=56||Et[wt++]!==97)throw new Error("Invalid GIF 87a/89a header.");var Ft=Et[wt++]|Et[wt++]<<8,Ut=Et[wt++]|Et[wt++]<<8,se=Et[wt++],Vt=se>>7,pe=1<<(7&se)+1;Et[wt++],Et[wt++];var ye=null,Ee=null;Vt&&(ye=wt,Ee=pe,wt+=3*pe);var Ye=!0,gn=[],fn=0,In=null,Qe=0,ci=null;for(this.width=Ft,this.height=Ut;Ye&&wt<Et.length;)switch(Et[wt++]){case 33:switch(Et[wt++]){case 255:if(Et[wt]!==11||Et[wt+1]==78&&Et[wt+2]==69&&Et[wt+3]==84&&Et[wt+4]==83&&Et[wt+5]==67&&Et[wt+6]==65&&Et[wt+7]==80&&Et[wt+8]==69&&Et[wt+9]==50&&Et[wt+10]==46&&Et[wt+11]==48&&Et[wt+12]==3&&Et[wt+13]==1&&Et[wt+16]==0)wt+=14,ci=Et[wt++]|Et[wt++]<<8,wt++;else for(wt+=12;;){if(!((Kn=Et[wt++])>=0))throw Error("Invalid block size");if(Kn===0)break;wt+=Kn}break;case 249:if(Et[wt++]!==4||Et[wt+4]!==0)throw new Error("Invalid graphics extension block.");var Yn=Et[wt++];fn=Et[wt++]|Et[wt++]<<8,In=Et[wt++],!(1&Yn)&&(In=null),Qe=Yn>>2&7,wt++;break;case 254:for(;;){if(!((Kn=Et[wt++])>=0))throw Error("Invalid block size");if(Kn===0)break;wt+=Kn}break;default:throw new Error("Unknown graphic control label: 0x"+Et[wt-1].toString(16))}break;case 44:var mi=Et[wt++]|Et[wt++]<<8,Rn=Et[wt++]|Et[wt++]<<8,Ai=Et[wt++]|Et[wt++]<<8,Hi=Et[wt++]|Et[wt++]<<8,sr=Et[wt++],Er=sr>>6&1,to=1<<(7&sr)+1,gr=ye,ki=Ee,yr=!1;sr>>7&&(yr=!0,gr=wt,ki=to,wt+=3*to);var Kr=wt;for(wt++;;){var Kn;if(!((Kn=Et[wt++])>=0))throw Error("Invalid block size");if(Kn===0)break;wt+=Kn}gn.push({x:mi,y:Rn,width:Ai,height:Hi,has_local_palette:yr,palette_offset:gr,palette_size:ki,data_offset:Kr,data_length:wt-Kr,transparent_index:In,interlaced:!!Er,delay:fn,disposal:Qe});break;case 59:Ye=!1;break;default:throw new Error("Unknown gif block: 0x"+Et[wt-1].toString(16))}this.numFrames=function(){return gn.length},this.loopCount=function(){return ci},this.frameInfo=function(Jn){if(Jn<0||Jn>=gn.length)throw new Error("Frame index out of range.");return gn[Jn]},this.decodeAndBlitFrameBGRA=function(Jn,Wi){var ge=this.frameInfo(Jn),Ce=ge.width*ge.height,Ve=new Uint8Array(Ce);Vi(Et,ge.data_offset,Ve,Ce);var en=ge.palette_offset,un=ge.transparent_index;un===null&&(un=256);var hn=ge.width,Dn=Ft-hn,qn=hn,Te=4*(ge.y*Ft+ge.x),ln=4*((ge.y+ge.height)*Ft+ge.x),mn=Te,Fn=4*Dn;ge.interlaced===!0&&(Fn+=4*Ft*7);for(var Xn=8,li=0,si=Ve.length;li<si;++li){var Ei=Ve[li];if(qn===0&&(qn=hn,(mn+=Fn)>=ln&&(Fn=4*Dn+4*Ft*(Xn-1),mn=Te+(hn+Dn)*(Xn<<1),Xn>>=1)),Ei===un)mn+=4;else{var Ii=Et[en+3*Ei],Xi=Et[en+3*Ei+1],ir=Et[en+3*Ei+2];Wi[mn++]=ir,Wi[mn++]=Xi,Wi[mn++]=Ii,Wi[mn++]=255}--qn}},this.decodeAndBlitFrameRGBA=function(Jn,Wi){var ge=this.frameInfo(Jn),Ce=ge.width*ge.height,Ve=new Uint8Array(Ce);Vi(Et,ge.data_offset,Ve,Ce);var en=ge.palette_offset,un=ge.transparent_index;un===null&&(un=256);var hn=ge.width,Dn=Ft-hn,qn=hn,Te=4*(ge.y*Ft+ge.x),ln=4*((ge.y+ge.height)*Ft+ge.x),mn=Te,Fn=4*Dn;ge.interlaced===!0&&(Fn+=4*Ft*7);for(var Xn=8,li=0,si=Ve.length;li<si;++li){var Ei=Ve[li];if(qn===0&&(qn=hn,(mn+=Fn)>=ln&&(Fn=4*Dn+4*Ft*(Xn-1),mn=Te+(hn+Dn)*(Xn<<1),Xn>>=1)),Ei===un)mn+=4;else{var Ii=Et[en+3*Ei],Xi=Et[en+3*Ei+1],ir=Et[en+3*Ei+2];Wi[mn++]=Ii,Wi[mn++]=Xi,Wi[mn++]=ir,Wi[mn++]=255}--qn}}}function Vi(Et,wt,Ft,Ut){for(var se=Et[wt++],Vt=1<<se,pe=Vt+1,ye=pe+1,Ee=se+1,Ye=(1<<Ee)-1,gn=0,fn=0,In=0,Qe=Et[wt++],ci=new Int32Array(4096),Yn=null;;){for(;gn<16&&Qe!==0;)fn|=Et[wt++]<<gn,gn+=8,Qe===1?Qe=Et[wt++]:--Qe;if(gn<Ee)break;var mi=fn&Ye;if(fn>>=Ee,gn-=Ee,mi!==Vt){if(mi===pe)break;for(var Rn=mi<ye?mi:Yn,Ai=0,Hi=Rn;Hi>Vt;)Hi=ci[Hi]>>8,++Ai;var sr=Hi;if(In+Ai+(Rn!==mi?1:0)>Ut)return void Bo.log("Warning, gif stream longer than expected.");Ft[In++]=sr;var Er=In+=Ai;for(Rn!==mi&&(Ft[In++]=sr),Hi=Rn;Ai--;)Hi=ci[Hi],Ft[--Er]=255&Hi,Hi>>=8;Yn!==null&&ye<4096&&(ci[ye++]=Yn<<8|sr,ye>=Ye+1&&Ee<12&&(++Ee,Ye=Ye<<1|1)),Yn=mi}else ye=pe+1,Ye=(1<<(Ee=se+1))-1,Yn=null}return In!==Ut&&Bo.log("Warning, gif stream shorter than expected."),Ft}function aA(Et){var wt,Ft,Ut,se,Vt,pe=Math.floor,ye=new Array(64),Ee=new Array(64),Ye=new Array(64),gn=new Array(64),fn=new Array(65535),In=new Array(65535),Qe=new Array(64),ci=new Array(64),Yn=[],mi=0,Rn=7,Ai=new Array(64),Hi=new Array(64),sr=new Array(64),Er=new Array(256),to=new Array(2048),gr=[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],ki=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],yr=[0,1,2,3,4,5,6,7,8,9,10,11],Kr=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],Kn=[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],Jn=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Wi=[0,1,2,3,4,5,6,7,8,9,10,11],ge=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Ce=[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 Ve(Te,ln){for(var mn=0,Fn=0,Xn=new Array,li=1;li<=16;li++){for(var si=1;si<=Te[li];si++)Xn[ln[Fn]]=[],Xn[ln[Fn]][0]=mn,Xn[ln[Fn]][1]=li,Fn++,mn++;mn*=2}return Xn}function en(Te){for(var ln=Te[0],mn=Te[1]-1;mn>=0;)ln&1<<mn&&(mi|=1<<Rn),mn--,--Rn<0&&(mi==255?(un(255),un(0)):un(mi),Rn=7,mi=0)}function un(Te){Yn.push(Te)}function hn(Te){un(Te>>8&255),un(255&Te)}function Dn(Te,ln,mn,Fn,Xn){for(var li,si=Xn[0],Ei=Xn[240],Ii=function(tr,pr){var Ar,qi,Nr,oo,po,So,Qr,Xo,Po,hs,so=0;for(Po=0;Po<8;++Po){Ar=tr[so],qi=tr[so+1],Nr=tr[so+2],oo=tr[so+3],po=tr[so+4],So=tr[so+5],Qr=tr[so+6];var Pa=Ar+(Xo=tr[so+7]),ks=Ar-Xo,Ps=qi+Qr,Eo=qi-Qr,Fs=Nr+So,Va=Nr-So,Ds=oo+po,Il=oo-po,wo=Pa+Ds,ss=Pa-Ds,cs=Ps+Fs,Lo=Ps-Fs;tr[so]=wo+cs,tr[so+4]=wo-cs;var ts=.707106781*(Lo+ss);tr[so+2]=ss+ts,tr[so+6]=ss-ts;var xo=.382683433*((wo=Il+Va)-(Lo=Eo+ks)),Ls=.5411961*wo+xo,Rs=1.306562965*Lo+xo,ea=.707106781*(cs=Va+Eo),Ql=ks+ea,ds=ks-ea;tr[so+5]=ds+Ls,tr[so+3]=ds-Ls,tr[so+1]=Ql+Rs,tr[so+7]=Ql-Rs,so+=8}for(so=0,Po=0;Po<8;++Po){Ar=tr[so],qi=tr[so+8],Nr=tr[so+16],oo=tr[so+24],po=tr[so+32],So=tr[so+40],Qr=tr[so+48];var Xl=Ar+(Xo=tr[so+56]),fa=Ar-Xo,ml=qi+Qr,ho=qi-Qr,Oa=Nr+So,Iu=Nr-So,wa=oo+po,na=oo-po,Ea=Xl+wa,Za=Xl-wa,ol=ml+Oa,Hs=ml-Oa;tr[so]=Ea+ol,tr[so+32]=Ea-ol;var Fa=.707106781*(Hs+Za);tr[so+16]=Za+Fa,tr[so+48]=Za-Fa;var El=.382683433*((Ea=na+Iu)-(Hs=ho+fa)),ku=.5411961*Ea+El,fu=1.306562965*Hs+El,Tu=.707106781*(ol=Iu+ho),Wu=fa+Tu,oh=fa-Tu;tr[so+40]=oh+ku,tr[so+24]=oh-ku,tr[so+8]=Wu+fu,tr[so+56]=Wu-fu,so++}for(Po=0;Po<64;++Po)hs=tr[Po]*pr[Po],Qe[Po]=hs>0?hs+.5|0:hs-.5|0;return Qe}(Te,ln),Xi=0;Xi<64;++Xi)ci[gr[Xi]]=Ii[Xi];var ir=ci[0]-mn;mn=ci[0],ir==0?en(Fn[0]):(en(Fn[In[li=32767+ir]]),en(fn[li]));for(var dr=63;dr>0&&ci[dr]==0;)dr--;if(dr==0)return en(si),mn;for(var Xr,$i=1;$i<=dr;){for(var Hn=$i;ci[$i]==0&&$i<=dr;)++$i;var no=$i-Hn;if(no>=16){Xr=no>>4;for(var ro=1;ro<=Xr;++ro)en(Ei);no&=15}li=32767+ci[$i],en(Xn[(no<<4)+In[li]]),en(fn[li]),$i++}return dr!=63&&en(si),mn}function qn(Te){Te=Math.min(Math.max(Te,1),100),Vt!=Te&&(function(ln){for(var mn=[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],Fn=0;Fn<64;Fn++){var Xn=pe((mn[Fn]*ln+50)/100);Xn=Math.min(Math.max(Xn,1),255),ye[gr[Fn]]=Xn}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],si=0;si<64;si++){var Ei=pe((li[si]*ln+50)/100);Ei=Math.min(Math.max(Ei,1),255),Ee[gr[si]]=Ei}for(var Ii=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Xi=0,ir=0;ir<8;ir++)for(var dr=0;dr<8;dr++)Ye[Xi]=1/(ye[gr[Xi]]*Ii[ir]*Ii[dr]*8),gn[Xi]=1/(Ee[gr[Xi]]*Ii[ir]*Ii[dr]*8),Xi++}(Te<50?Math.floor(5e3/Te):Math.floor(200-2*Te)),Vt=Te)}this.encode=function(Te,ln){ln&&qn(ln),Yn=new Array,mi=0,Rn=7,hn(65496),hn(65504),hn(16),un(74),un(70),un(73),un(70),un(0),un(1),un(1),un(0),hn(1),hn(1),un(0),un(0),function(){hn(65499),hn(132),un(0);for(var qi=0;qi<64;qi++)un(ye[qi]);un(1);for(var Nr=0;Nr<64;Nr++)un(Ee[Nr])}(),function(qi,Nr){hn(65472),hn(17),un(8),hn(Nr),hn(qi),un(3),un(1),un(17),un(0),un(2),un(17),un(1),un(3),un(17),un(1)}(Te.width,Te.height),function(){hn(65476),hn(418),un(0);for(var qi=0;qi<16;qi++)un(ki[qi+1]);for(var Nr=0;Nr<=11;Nr++)un(yr[Nr]);un(16);for(var oo=0;oo<16;oo++)un(Kr[oo+1]);for(var po=0;po<=161;po++)un(Kn[po]);un(1);for(var So=0;So<16;So++)un(Jn[So+1]);for(var Qr=0;Qr<=11;Qr++)un(Wi[Qr]);un(17);for(var Xo=0;Xo<16;Xo++)un(ge[Xo+1]);for(var Po=0;Po<=161;Po++)un(Ce[Po])}(),hn(65498),hn(12),un(3),un(1),un(0),un(2),un(17),un(3),un(17),un(0),un(63),un(0);var mn=0,Fn=0,Xn=0;mi=0,Rn=7,this.encode.displayName="_encode_";for(var li,si,Ei,Ii,Xi,ir,dr,Xr,$i,Hn=Te.data,no=Te.width,ro=Te.height,tr=4*no,pr=0;pr<ro;){for(li=0;li<tr;){for(Xi=tr*pr+li,dr=-1,Xr=0,$i=0;$i<64;$i++)ir=Xi+(Xr=$i>>3)*tr+(dr=4*(7&$i)),pr+Xr>=ro&&(ir-=tr*(pr+1+Xr-ro)),li+dr>=tr&&(ir-=li+dr-tr+4),si=Hn[ir++],Ei=Hn[ir++],Ii=Hn[ir++],Ai[$i]=(to[si]+to[Ei+256>>0]+to[Ii+512>>0]>>16)-128,Hi[$i]=(to[si+768>>0]+to[Ei+1024>>0]+to[Ii+1280>>0]>>16)-128,sr[$i]=(to[si+1280>>0]+to[Ei+1536>>0]+to[Ii+1792>>0]>>16)-128;mn=Dn(Ai,Ye,mn,wt,Ut),Fn=Dn(Hi,gn,Fn,Ft,se),Xn=Dn(sr,gn,Xn,Ft,se),li+=32}pr+=8}if(Rn>=0){var Ar=[];Ar[1]=Rn+1,Ar[0]=(1<<Rn+1)-1,en(Ar)}return hn(65497),new Uint8Array(Yn)},Et=Et||50,function(){for(var Te=String.fromCharCode,ln=0;ln<256;ln++)Er[ln]=Te(ln)}(),wt=Ve(ki,yr),Ft=Ve(Jn,Wi),Ut=Ve(Kr,Kn),se=Ve(ge,Ce),function(){for(var Te=1,ln=2,mn=1;mn<=15;mn++){for(var Fn=Te;Fn<ln;Fn++)In[32767+Fn]=mn,fn[32767+Fn]=[],fn[32767+Fn][1]=mn,fn[32767+Fn][0]=Fn;for(var Xn=-(ln-1);Xn<=-Te;Xn++)In[32767+Xn]=mn,fn[32767+Xn]=[],fn[32767+Xn][1]=mn,fn[32767+Xn][0]=ln-1+Xn;Te<<=1,ln<<=1}}(),function(){for(var Te=0;Te<256;Te++)to[Te]=19595*Te,to[Te+256>>0]=38470*Te,to[Te+512>>0]=7471*Te+32768,to[Te+768>>0]=-11059*Te,to[Te+1024>>0]=-21709*Te,to[Te+1280>>0]=32768*Te+8421375,to[Te+1536>>0]=-27439*Te,to[Te+1792>>0]=-5329*Te}(),qn(Et)}function tc(Et,wt){if(this.pos=0,this.buffer=Et,this.datav=new DataView(Et.buffer),this.is_with_alpha=!!wt,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 Ru(Et){function wt(ki){if(!ki)throw Error("assert :P")}function Ft(ki,yr,Kr){for(var Kn=0;4>Kn;Kn++)if(ki[yr+Kn]!=Kr.charCodeAt(Kn))return!0;return!1}function Ut(ki,yr,Kr,Kn,Jn){for(var Wi=0;Wi<Jn;Wi++)ki[yr+Wi]=Kr[Kn+Wi]}function se(ki,yr,Kr,Kn){for(var Jn=0;Jn<Kn;Jn++)ki[yr+Jn]=Kr}function Vt(ki){return new Int32Array(ki)}function pe(ki,yr){for(var Kr=[],Kn=0;Kn<ki;Kn++)Kr.push(new yr);return Kr}function ye(ki,yr){var Kr=[];return function Kn(Jn,Wi,ge){for(var Ce=ge[Wi],Ve=0;Ve<Ce&&(Jn.push(ge.length>Wi+1?[]:new yr),!(ge.length<Wi+1));Ve++)Kn(Jn[Ve],Wi+1,ge)}(Kr,0,ki),Kr}var Ee=function(){var ki=this;function yr(xt,Rt){for(var fe=1<<Rt-1>>>0;xt&fe;)fe>>>=1;return fe?(xt&fe-1)+fe:xt}function Kr(xt,Rt,fe,Pe,$e){wt(!(Pe%fe));do xt[Rt+(Pe-=fe)]=$e;while(0<Pe)}function Kn(xt,Rt,fe,Pe,$e){if(wt(2328>=$e),512>=$e)var pn=Vt(512);else if((pn=Vt($e))==null)return 0;return function(cn,xn,bn,Gn,Bi,Ni){var Yi,Ri,wr=xn,Br=1<<bn,Ui=Vt(16),zi=Vt(16);for(wt(Bi!=0),wt(Gn!=null),wt(cn!=null),wt(0<bn),Ri=0;Ri<Bi;++Ri){if(15<Gn[Ri])return 0;++Ui[Gn[Ri]]}if(Ui[0]==Bi)return 0;for(zi[1]=0,Yi=1;15>Yi;++Yi){if(Ui[Yi]>1<<Yi)return 0;zi[Yi+1]=zi[Yi]+Ui[Yi]}for(Ri=0;Ri<Bi;++Ri)Yi=Gn[Ri],0<Gn[Ri]&&(Ni[zi[Yi]++]=Ri);if(zi[15]==1)return(Gn=new Jn).g=0,Gn.value=Ni[0],Kr(cn,wr,1,Br,Gn),Br;var Ir,Jr=-1,eo=Br-1,es=0,Wo=1,Ks=1,ei=1<<bn;for(Ri=0,Yi=1,Bi=2;Yi<=bn;++Yi,Bi<<=1){if(Wo+=Ks<<=1,0>(Ks-=Ui[Yi]))return 0;for(;0<Ui[Yi];--Ui[Yi])(Gn=new Jn).g=Yi,Gn.value=Ni[Ri++],Kr(cn,wr+es,Bi,ei,Gn),es=yr(es,Yi)}for(Yi=bn+1,Bi=2;15>=Yi;++Yi,Bi<<=1){if(Wo+=Ks<<=1,0>(Ks-=Ui[Yi]))return 0;for(;0<Ui[Yi];--Ui[Yi]){if(Gn=new Jn,(es&eo)!=Jr){for(wr+=ei,Ir=1<<(Jr=Yi)-bn;15>Jr&&!(0>=(Ir-=Ui[Jr]));)++Jr,Ir<<=1;Br+=ei=1<<(Ir=Jr-bn),cn[xn+(Jr=es&eo)].g=Ir+bn,cn[xn+Jr].value=wr-xn-Jr}Gn.g=Yi-bn,Gn.value=Ni[Ri++],Kr(cn,wr+(es>>bn),Bi,ei,Gn),es=yr(es,Yi)}}return Wo!=2*zi[15]-1?0:Br}(xt,Rt,fe,Pe,$e,pn)}function Jn(){this.value=this.g=0}function Wi(){this.value=this.g=0}function ge(){this.G=pe(5,Jn),this.H=Vt(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=pe(Sa,Wi)}function Ce(xt,Rt,fe,Pe){wt(xt!=null),wt(Rt!=null),wt(2147483648>Pe),xt.Ca=254,xt.I=0,xt.b=-8,xt.Ka=0,xt.oa=Rt,xt.pa=fe,xt.Jd=Rt,xt.Yc=fe+Pe,xt.Zc=4<=Pe?fe+Pe-4+1:fe,li(xt)}function Ve(xt,Rt){for(var fe=0;0<Rt--;)fe|=Ei(xt,128)<<Rt;return fe}function en(xt,Rt){var fe=Ve(xt,Rt);return si(xt)?-fe:fe}function un(xt,Rt,fe,Pe){var $e,pn=0;for(wt(xt!=null),wt(Rt!=null),wt(4294967288>Pe),xt.Sb=Pe,xt.Ra=0,xt.u=0,xt.h=0,4<Pe&&(Pe=4),$e=0;$e<Pe;++$e)pn+=Rt[fe+$e]<<8*$e;xt.Ra=pn,xt.bb=Pe,xt.oa=Rt,xt.pa=fe}function hn(xt){for(;8<=xt.u&&xt.bb<xt.Sb;)xt.Ra>>>=8,xt.Ra+=xt.oa[xt.pa+xt.bb]<<Gl-8>>>0,++xt.bb,xt.u-=8;mn(xt)&&(xt.h=1,xt.u=0)}function Dn(xt,Rt){if(wt(0<=Rt),!xt.h&&Rt<=Zd){var fe=ln(xt)&mc[Rt];return xt.u+=Rt,hn(xt),fe}return xt.h=1,xt.u=0}function qn(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function Te(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function ln(xt){return xt.Ra>>>(xt.u&Gl-1)>>>0}function mn(xt){return wt(xt.bb<=xt.Sb),xt.h||xt.bb==xt.Sb&&xt.u>Gl}function Fn(xt,Rt){xt.u=Rt,xt.h=mn(xt)}function Xn(xt){xt.u>=Rh&&(wt(xt.u>=Rh),hn(xt))}function li(xt){wt(xt!=null&&xt.oa!=null),xt.pa<xt.Zc?(xt.I=(xt.oa[xt.pa++]|xt.I<<8)>>>0,xt.b+=8):(wt(xt!=null&&xt.oa!=null),xt.pa<xt.Yc?(xt.b+=8,xt.I=xt.oa[xt.pa++]|xt.I<<8):xt.Ka?xt.b=0:(xt.I<<=8,xt.b+=8,xt.Ka=1))}function si(xt){return Ve(xt,1)}function Ei(xt,Rt){var fe=xt.Ca;0>xt.b&&li(xt);var Pe=xt.b,$e=fe*Rt>>>8,pn=(xt.I>>>Pe>$e)+0;for(pn?(fe-=$e,xt.I-=$e+1<<Pe>>>0):fe=$e+1,Pe=fe,$e=0;256<=Pe;)$e+=8,Pe>>=8;return Pe=7^$e+Qu[Pe],xt.b-=Pe,xt.Ca=(fe<<Pe)-1,pn}function Ii(xt,Rt,fe){xt[Rt+0]=fe>>24&255,xt[Rt+1]=fe>>16&255,xt[Rt+2]=fe>>8&255,xt[Rt+3]=fe>>0&255}function Xi(xt,Rt){return xt[Rt+0]<<0|xt[Rt+1]<<8}function ir(xt,Rt){return Xi(xt,Rt)|xt[Rt+2]<<16}function dr(xt,Rt){return Xi(xt,Rt)|Xi(xt,Rt+2)<<16}function Xr(xt,Rt){var fe=1<<Rt;return wt(xt!=null),wt(0<Rt),xt.X=Vt(fe),xt.X==null?0:(xt.Mb=32-Rt,xt.Xa=Rt,1)}function $i(xt,Rt){wt(xt!=null),wt(Rt!=null),wt(xt.Xa==Rt.Xa),Ut(Rt.X,0,xt.X,0,1<<Rt.Xa)}function Hn(){this.X=[],this.Xa=this.Mb=0}function no(xt,Rt,fe,Pe){wt(fe!=null),wt(Pe!=null);var $e=fe[0],pn=Pe[0];return $e==0&&($e=(xt*pn+Rt/2)/Rt),pn==0&&(pn=(Rt*$e+xt/2)/xt),0>=$e||0>=pn?0:(fe[0]=$e,Pe[0]=pn,1)}function ro(xt,Rt){return xt+(1<<Rt)-1>>>Rt}function tr(xt,Rt){return((4278255360&xt)+(4278255360&Rt)>>>0&4278255360)+((16711935&xt)+(16711935&Rt)>>>0&16711935)>>>0}function pr(xt,Rt){ki[Rt]=function(fe,Pe,$e,pn,cn,xn,bn){var Gn;for(Gn=0;Gn<cn;++Gn){var Bi=ki[xt](xn[bn+Gn-1],$e,pn+Gn);xn[bn+Gn]=tr(fe[Pe+Gn],Bi)}}}function Ar(){this.ud=this.hd=this.jd=0}function qi(xt,Rt){return((4278124286&(xt^Rt))>>>1)+(xt&Rt)>>>0}function Nr(xt){return 0<=xt&&256>xt?xt:0>xt?0:255<xt?255:void 0}function oo(xt,Rt){return Nr(xt+(xt-Rt+.5>>1))}function po(xt,Rt,fe){return Math.abs(Rt-fe)-Math.abs(xt-fe)}function So(xt,Rt,fe,Pe,$e,pn,cn){for(Pe=pn[cn-1],fe=0;fe<$e;++fe)pn[cn+fe]=Pe=tr(xt[Rt+fe],Pe)}function Qr(xt,Rt,fe,Pe,$e){var pn;for(pn=0;pn<fe;++pn){var cn=xt[Rt+pn],xn=cn>>8&255,bn=16711935&(bn=(bn=16711935&cn)+((xn<<16)+xn));Pe[$e+pn]=(4278255360&cn)+bn>>>0}}function Xo(xt,Rt){Rt.jd=xt>>0&255,Rt.hd=xt>>8&255,Rt.ud=xt>>16&255}function Po(xt,Rt,fe,Pe,$e,pn){var cn;for(cn=0;cn<Pe;++cn){var xn=Rt[fe+cn],bn=xn>>>8,Gn=xn,Bi=255&(Bi=(Bi=xn>>>16)+((xt.jd<<24>>24)*(bn<<24>>24)>>>5));Gn=255&(Gn=(Gn=Gn+((xt.hd<<24>>24)*(bn<<24>>24)>>>5))+((xt.ud<<24>>24)*(Bi<<24>>24)>>>5)),$e[pn+cn]=(4278255360&xn)+(Bi<<16)+Gn}}function hs(xt,Rt,fe,Pe,$e){ki[Rt]=function(pn,cn,xn,bn,Gn,Bi,Ni,Yi,Ri){for(bn=Ni;bn<Yi;++bn)for(Ni=0;Ni<Ri;++Ni)Gn[Bi++]=$e(xn[Pe(pn[cn++])])},ki[xt]=function(pn,cn,xn,bn,Gn,Bi,Ni){var Yi=8>>pn.b,Ri=pn.Ea,wr=pn.K[0],Br=pn.w;if(8>Yi)for(pn=(1<<pn.b)-1,Br=(1<<Yi)-1;cn<xn;++cn){var Ui,zi=0;for(Ui=0;Ui<Ri;++Ui)Ui&pn||(zi=Pe(bn[Gn++])),Bi[Ni++]=$e(wr[zi&Br]),zi>>=Yi}else ki["VP8LMapColor"+fe](bn,Gn,wr,Br,Bi,Ni,cn,xn,Ri)}}function so(xt,Rt,fe,Pe,$e){for(fe=Rt+fe;Rt<fe;){var pn=xt[Rt++];Pe[$e++]=pn>>16&255,Pe[$e++]=pn>>8&255,Pe[$e++]=pn>>0&255}}function Pa(xt,Rt,fe,Pe,$e){for(fe=Rt+fe;Rt<fe;){var pn=xt[Rt++];Pe[$e++]=pn>>16&255,Pe[$e++]=pn>>8&255,Pe[$e++]=pn>>0&255,Pe[$e++]=pn>>24&255}}function ks(xt,Rt,fe,Pe,$e){for(fe=Rt+fe;Rt<fe;){var pn=(cn=xt[Rt++])>>16&240|cn>>12&15,cn=cn>>0&240|cn>>28&15;Pe[$e++]=pn,Pe[$e++]=cn}}function Ps(xt,Rt,fe,Pe,$e){for(fe=Rt+fe;Rt<fe;){var pn=(cn=xt[Rt++])>>16&248|cn>>13&7,cn=cn>>5&224|cn>>3&31;Pe[$e++]=pn,Pe[$e++]=cn}}function Eo(xt,Rt,fe,Pe,$e){for(fe=Rt+fe;Rt<fe;){var pn=xt[Rt++];Pe[$e++]=pn>>0&255,Pe[$e++]=pn>>8&255,Pe[$e++]=pn>>16&255}}function Fs(xt,Rt,fe,Pe,$e,pn){if(pn==0)for(fe=Rt+fe;Rt<fe;)Ii(Pe,((pn=xt[Rt++])[0]>>24|pn[1]>>8&65280|pn[2]<<8&16711680|pn[3]<<24)>>>0),$e+=32;else Ut(Pe,$e,xt,Rt,fe)}function Va(xt,Rt){ki[Rt][0]=ki[xt+"0"],ki[Rt][1]=ki[xt+"1"],ki[Rt][2]=ki[xt+"2"],ki[Rt][3]=ki[xt+"3"],ki[Rt][4]=ki[xt+"4"],ki[Rt][5]=ki[xt+"5"],ki[Rt][6]=ki[xt+"6"],ki[Rt][7]=ki[xt+"7"],ki[Rt][8]=ki[xt+"8"],ki[Rt][9]=ki[xt+"9"],ki[Rt][10]=ki[xt+"10"],ki[Rt][11]=ki[xt+"11"],ki[Rt][12]=ki[xt+"12"],ki[Rt][13]=ki[xt+"13"],ki[Rt][14]=ki[xt+"0"],ki[Rt][15]=ki[xt+"0"]}function Ds(xt){return xt==zu||xt==$c||xt==Fd||xt==Cg}function Il(){this.eb=[],this.size=this.A=this.fb=0}function wo(){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 ss(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Il,this.f.kb=new wo,this.sd=null}function cs(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Lo(){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 ts(xt){return alert("todo:WebPSamplerProcessPlane"),xt.T}function xo(xt,Rt){var fe=xt.T,Pe=Rt.ba.f.RGBA,$e=Pe.eb,pn=Pe.fb+xt.ka*Pe.A,cn=vc[Rt.ba.S],xn=xt.y,bn=xt.O,Gn=xt.f,Bi=xt.N,Ni=xt.ea,Yi=xt.W,Ri=Rt.cc,wr=Rt.dc,Br=Rt.Mc,Ui=Rt.Nc,zi=xt.ka,Ir=xt.ka+xt.T,Jr=xt.U,eo=Jr+1>>1;for(zi==0?cn(xn,bn,null,null,Gn,Bi,Ni,Yi,Gn,Bi,Ni,Yi,$e,pn,null,null,Jr):(cn(Rt.ec,Rt.fc,xn,bn,Ri,wr,Br,Ui,Gn,Bi,Ni,Yi,$e,pn-Pe.A,$e,pn,Jr),++fe);zi+2<Ir;zi+=2)Ri=Gn,wr=Bi,Br=Ni,Ui=Yi,Bi+=xt.Rc,Yi+=xt.Rc,pn+=2*Pe.A,cn(xn,(bn+=2*xt.fa)-xt.fa,xn,bn,Ri,wr,Br,Ui,Gn,Bi,Ni,Yi,$e,pn-Pe.A,$e,pn,Jr);return bn+=xt.fa,xt.j+Ir<xt.o?(Ut(Rt.ec,Rt.fc,xn,bn,Jr),Ut(Rt.cc,Rt.dc,Gn,Bi,eo),Ut(Rt.Mc,Rt.Nc,Ni,Yi,eo),fe--):1&Ir||cn(xn,bn,null,null,Gn,Bi,Ni,Yi,Gn,Bi,Ni,Yi,$e,pn+Pe.A,null,null,Jr),fe}function Ls(xt,Rt,fe){var Pe=xt.F,$e=[xt.J];if(Pe!=null){var pn=xt.U,cn=Rt.ba.S,xn=cn==nh||cn==Fd;Rt=Rt.ba.f.RGBA;var bn=[0],Gn=xt.ka;bn[0]=xt.T,xt.Kb&&(Gn==0?--bn[0]:(--Gn,$e[0]-=xt.width),xt.j+xt.ka+xt.T==xt.o&&(bn[0]=xt.o-xt.j-Gn));var Bi=Rt.eb;Gn=Rt.fb+Gn*Rt.A,xt=Ia(Pe,$e[0],xt.width,pn,bn,Bi,Gn+(xn?0:3),Rt.A),wt(fe==bn),xt&&Ds(cn)&&Al(Bi,Gn,xn,pn,bn,Rt.A)}return 0}function Rs(xt){var Rt=xt.ma,fe=Rt.ba.S,Pe=11>fe,$e=fe==lu||fe==Eh||fe==nh||fe==wh||fe==12||Ds(fe);if(Rt.memory=null,Rt.Ib=null,Rt.Jb=null,Rt.Nd=null,!Ic(Rt.Oa,xt,$e?11:12))return 0;if($e&&Ds(fe)&&fo(),xt.da)alert("todo:use_scaling");else{if(Pe){if(Rt.Ib=ts,xt.Kb){if(fe=xt.U+1>>1,Rt.memory=Vt(xt.U+2*fe),Rt.memory==null)return 0;Rt.ec=Rt.memory,Rt.fc=0,Rt.cc=Rt.ec,Rt.dc=Rt.fc+xt.U,Rt.Mc=Rt.cc,Rt.Nc=Rt.dc+fe,Rt.Ib=xo,fo()}}else alert("todo:EmitYUV");$e&&(Rt.Jb=Ls,Pe&&lr())}if(Pe&&!Eg){for(xt=0;256>xt;++xt)Dt[xt]=89858*(xt-128)+IA>>xf,Ht[xt]=-22014*(xt-128)+IA,Qt[xt]=-45773*(xt-128),Tt[xt]=113618*(xt-128)+IA>>xf;for(xt=gA;xt<cd;++xt)Rt=76283*(xt-16)+IA>>xf,Be[xt-gA]=bh(Rt,255),Je[xt-gA]=bh(Rt+8>>4,15);Eg=1}return 1}function ea(xt){var Rt=xt.ma,fe=xt.U,Pe=xt.T;return wt(!(1&xt.ka)),0>=fe||0>=Pe?0:(fe=Rt.Ib(xt,Rt),Rt.Jb!=null&&Rt.Jb(xt,Rt,fe),Rt.Dc+=fe,1)}function Ql(xt){xt.ma.memory=null}function ds(xt,Rt,fe,Pe){return Dn(xt,8)!=47?0:(Rt[0]=Dn(xt,14)+1,fe[0]=Dn(xt,14)+1,Pe[0]=Dn(xt,1),Dn(xt,3)!=0?0:!xt.h)}function Xl(xt,Rt){if(4>xt)return xt+1;var fe=xt-2>>1;return(2+(1&xt)<<fe)+Dn(Rt,fe)+1}function fa(xt,Rt){return 120<Rt?Rt-120:1<=(fe=((fe=GA[Rt-1])>>4)*xt+(8-(15&fe)))?fe:1;var fe}function ml(xt,Rt,fe){var Pe=ln(fe),$e=xt[Rt+=255&Pe].g-8;return 0<$e&&(Fn(fe,fe.u+8),Pe=ln(fe),Rt+=xt[Rt].value,Rt+=Pe&(1<<$e)-1),Fn(fe,fe.u+xt[Rt].g),xt[Rt].value}function ho(xt,Rt,fe){return fe.g+=xt.g,fe.value+=xt.value<<Rt>>>0,wt(8>=fe.g),xt.g}function Oa(xt,Rt,fe){var Pe=xt.xc;return wt((Rt=Pe==0?0:xt.vc[xt.md*(fe>>Pe)+(Rt>>Pe)])<xt.Wb),xt.Ya[Rt]}function Iu(xt,Rt,fe,Pe){var $e=xt.ab,pn=xt.c*Rt,cn=xt.C;Rt=cn+Rt;var xn=fe,bn=Pe;for(Pe=xt.Ta,fe=xt.Ua;0<$e--;){var Gn=xt.gc[$e],Bi=cn,Ni=Rt,Yi=xn,Ri=bn,wr=(bn=Pe,xn=fe,Gn.Ea);switch(wt(Bi<Ni),wt(Ni<=Gn.nc),Gn.hc){case 2:Xd(Yi,Ri,(Ni-Bi)*wr,bn,xn);break;case 0:var Br=Bi,Ui=Ni,zi=bn,Ir=xn,Jr=(ei=Gn).Ea;Br==0&&(ld(Yi,Ri,null,null,1,zi,Ir),So(Yi,Ri+1,0,0,Jr-1,zi,Ir+1),Ri+=Jr,Ir+=Jr,++Br);for(var eo=1<<ei.b,es=eo-1,Wo=ro(Jr,ei.b),Ks=ei.K,ei=ei.w+(Br>>ei.b)*Wo;Br<Ui;){var fl=Ks,Ll=ei,el=1;for(Tl(Yi,Ri,zi,Ir-Jr,1,zi,Ir);el<Jr;){var Ra=(el&~es)+eo;Ra>Jr&&(Ra=Jr),(0,st[fl[Ll++]>>8&15])(Yi,Ri+ +el,zi,Ir+el-Jr,Ra-el,zi,Ir+el),el=Ra}Ri+=Jr,Ir+=Jr,++Br&es||(ei+=Wo)}Ni!=Gn.nc&&Ut(bn,xn-wr,bn,xn+(Ni-Bi-1)*wr,wr);break;case 1:for(wr=Yi,Ui=Ri,Jr=(Yi=Gn.Ea)-(Ir=Yi&~(zi=(Ri=1<<Gn.b)-1)),Br=ro(Yi,Gn.b),eo=Gn.K,Gn=Gn.w+(Bi>>Gn.b)*Br;Bi<Ni;){for(es=eo,Wo=Gn,Ks=new Ar,ei=Ui+Ir,fl=Ui+Yi;Ui<ei;)Xo(es[Wo++],Ks),vt(Ks,wr,Ui,Ri,bn,xn),Ui+=Ri,xn+=Ri;Ui<fl&&(Xo(es[Wo++],Ks),vt(Ks,wr,Ui,Jr,bn,xn),Ui+=Jr,xn+=Jr),++Bi&zi||(Gn+=Br)}break;case 3:if(Yi==bn&&Ri==xn&&0<Gn.b){for(Ui=bn,Yi=wr=xn+(Ni-Bi)*wr-(Ir=(Ni-Bi)*ro(Gn.Ea,Gn.b)),Ri=bn,zi=xn,Br=[],Ir=(Jr=Ir)-1;0<=Ir;--Ir)Br[Ir]=Ri[zi+Ir];for(Ir=Jr-1;0<=Ir;--Ir)Ui[Yi+Ir]=Br[Ir];Fu(Gn,Bi,Ni,bn,wr,bn,xn)}else Fu(Gn,Bi,Ni,Yi,Ri,bn,xn)}xn=Pe,bn=fe}bn!=fe&&Ut(Pe,fe,xn,bn,pn)}function wa(xt,Rt){var fe=xt.V,Pe=xt.Ba+xt.c*xt.C,$e=Rt-xt.C;if(wt(Rt<=xt.l.o),wt(16>=$e),0<$e){var pn=xt.l,cn=xt.Ta,xn=xt.Ua,bn=pn.width;if(Iu(xt,$e,fe,Pe),$e=xn=[xn],wt((fe=xt.C)<(Pe=Rt)),wt(pn.v<pn.va),Pe>pn.o&&(Pe=pn.o),fe<pn.j){var Gn=pn.j-fe;fe=pn.j,$e[0]+=Gn*bn}if(fe>=Pe?fe=0:($e[0]+=4*pn.v,pn.ka=fe-pn.j,pn.U=pn.va-pn.v,pn.T=Pe-fe,fe=1),fe){if(xn=xn[0],11>(fe=xt.ca).S){var Bi=fe.f.RGBA,Ni=(Pe=fe.S,$e=pn.U,pn=pn.T,Gn=Bi.eb,Bi.A),Yi=pn;for(Bi=Bi.fb+xt.Ma*Bi.A;0<Yi--;){var Ri=cn,wr=xn,Br=$e,Ui=Gn,zi=Bi;switch(Pe){case hh:gt(Ri,wr,Br,Ui,zi);break;case lu:Bt(Ri,wr,Br,Ui,zi);break;case zu:Bt(Ri,wr,Br,Ui,zi),Al(Ui,zi,0,Br,1,0);break;case Yd:Ue(Ri,wr,Br,Ui,zi);break;case Eh:Fs(Ri,wr,Br,Ui,zi,1);break;case $c:Fs(Ri,wr,Br,Ui,zi,1),Al(Ui,zi,0,Br,1,0);break;case nh:Fs(Ri,wr,Br,Ui,zi,0);break;case Fd:Fs(Ri,wr,Br,Ui,zi,0),Al(Ui,zi,1,Br,1,0);break;case wh:te(Ri,wr,Br,Ui,zi);break;case Cg:te(Ri,wr,Br,Ui,zi),Xa(Ui,zi,Br,1,0);break;case jl:xe(Ri,wr,Br,Ui,zi);break;default:wt(0)}xn+=bn,Bi+=Ni}xt.Ma+=pn}else alert("todo:EmitRescaledRowsYUVA");wt(xt.Ma<=fe.height)}}xt.C=Rt,wt(xt.C<=xt.i)}function na(xt){var Rt;if(0<xt.ua)return 0;for(Rt=0;Rt<xt.Wb;++Rt){var fe=xt.Ya[Rt].G,Pe=xt.Ya[Rt].H;if(0<fe[1][Pe[1]+0].g||0<fe[2][Pe[2]+0].g||0<fe[3][Pe[3]+0].g)return 0}return 1}function Ea(xt,Rt,fe,Pe,$e,pn){if(xt.Z!=0){var cn=xt.qd,xn=xt.rd;for(wt(Qh[xt.Z]!=null);Rt<fe;++Rt)Qh[xt.Z](cn,xn,Pe,$e,Pe,$e,pn),cn=Pe,xn=$e,$e+=pn;xt.qd=cn,xt.rd=xn}}function Za(xt,Rt){var fe=xt.l.ma,Pe=fe.Z==0||fe.Z==1?xt.l.j:xt.C;if(Pe=xt.C<Pe?Pe:xt.C,wt(Rt<=xt.l.o),Rt>Pe){var $e=xt.l.width,pn=fe.ca,cn=fe.tb+$e*Pe,xn=xt.V,bn=xt.Ba+xt.c*Pe,Gn=xt.gc;wt(xt.ab==1),wt(Gn[0].hc==3),$d(Gn[0],Pe,Rt,xn,bn,pn,cn),Ea(fe,Pe,Rt,pn,cn,$e)}xt.C=xt.Ma=Rt}function ol(xt,Rt,fe,Pe,$e,pn,cn){var xn=xt.$/Pe,bn=xt.$%Pe,Gn=xt.m,Bi=xt.s,Ni=fe+xt.$,Yi=Ni;$e=fe+Pe*$e;var Ri=fe+Pe*pn,wr=280+Bi.ua,Br=xt.Pb?xn:16777216,Ui=0<Bi.ua?Bi.Wa:null,zi=Bi.wc,Ir=Ni<Ri?Oa(Bi,bn,xn):null;wt(xt.C<pn),wt(Ri<=$e);var Jr=!1;t:for(;;){for(;Jr||Ni<Ri;){var eo=0;if(xn>=Br){var es=Ni-fe;wt((Br=xt).Pb),Br.wd=Br.m,Br.xd=es,0<Br.s.ua&&$i(Br.s.Wa,Br.s.vb),Br=xn+Vf}if(bn&zi||(Ir=Oa(Bi,bn,xn)),wt(Ir!=null),Ir.Qb&&(Rt[Ni]=Ir.qb,Jr=!0),!Jr)if(Xn(Gn),Ir.jc){eo=Gn,es=Rt;var Wo=Ni,Ks=Ir.pd[ln(eo)&Sa-1];wt(Ir.jc),256>Ks.g?(Fn(eo,eo.u+Ks.g),es[Wo]=Ks.value,eo=0):(Fn(eo,eo.u+Ks.g-256),wt(256<=Ks.value),eo=Ks.value),eo==0&&(Jr=!0)}else eo=ml(Ir.G[0],Ir.H[0],Gn);if(Gn.h)break;if(Jr||256>eo){if(!Jr)if(Ir.nd)Rt[Ni]=(Ir.qb|eo<<8)>>>0;else{if(Xn(Gn),Jr=ml(Ir.G[1],Ir.H[1],Gn),Xn(Gn),es=ml(Ir.G[2],Ir.H[2],Gn),Wo=ml(Ir.G[3],Ir.H[3],Gn),Gn.h)break;Rt[Ni]=(Wo<<24|Jr<<16|eo<<8|es)>>>0}if(Jr=!1,++Ni,++bn>=Pe&&(bn=0,++xn,cn!=null&&xn<=pn&&!(xn%16)&&cn(xt,xn),Ui!=null))for(;Yi<Ni;)eo=Rt[Yi++],Ui.X[(506832829*eo&4294967295)>>>Ui.Mb]=eo}else if(280>eo){if(eo=Xl(eo-256,Gn),es=ml(Ir.G[4],Ir.H[4],Gn),Xn(Gn),es=fa(Pe,es=Xl(es,Gn)),Gn.h)break;if(Ni-fe<es||$e-Ni<eo)break t;for(Wo=0;Wo<eo;++Wo)Rt[Ni+Wo]=Rt[Ni+Wo-es];for(Ni+=eo,bn+=eo;bn>=Pe;)bn-=Pe,++xn,cn!=null&&xn<=pn&&!(xn%16)&&cn(xt,xn);if(wt(Ni<=$e),bn&zi&&(Ir=Oa(Bi,bn,xn)),Ui!=null)for(;Yi<Ni;)eo=Rt[Yi++],Ui.X[(506832829*eo&4294967295)>>>Ui.Mb]=eo}else{if(!(eo<wr))break t;for(Jr=eo-280,wt(Ui!=null);Yi<Ni;)eo=Rt[Yi++],Ui.X[(506832829*eo&4294967295)>>>Ui.Mb]=eo;eo=Ni,wt(!(Jr>>>(es=Ui).Xa)),Rt[eo]=es.X[Jr],Jr=!0}Jr||wt(Gn.h==mn(Gn))}if(xt.Pb&&Gn.h&&Ni<$e)wt(xt.m.h),xt.a=5,xt.m=xt.wd,xt.$=xt.xd,0<xt.s.ua&&$i(xt.s.vb,xt.s.Wa);else{if(Gn.h)break t;cn!=null&&cn(xt,xn>pn?pn:xn),xt.a=0,xt.$=Ni-fe}return 1}return xt.a=3,0}function Hs(xt){wt(xt!=null),xt.vc=null,xt.yc=null,xt.Ya=null;var Rt=xt.Wa;Rt!=null&&(Rt.X=null),xt.vb=null,wt(xt!=null)}function Fa(){var xt=new zA;return xt==null?null:(xt.a=0,xt.xb=Yc,Va("Predictor","VP8LPredictors"),Va("Predictor","VP8LPredictors_C"),Va("PredictorAdd","VP8LPredictorsAdd"),Va("PredictorAdd","VP8LPredictorsAdd_C"),Xd=Qr,vt=Po,gt=so,Bt=Pa,te=ks,xe=Ps,Ue=Eo,ki.VP8LMapColor32b=sc,ki.VP8LMapColor8b=it,xt)}function El(xt,Rt,fe,Pe,$e){var pn=1,cn=[xt],xn=[Rt],bn=Pe.m,Gn=Pe.s,Bi=null,Ni=0;t:for(;;){if(fe)for(;pn&&Dn(bn,1);){var Yi=cn,Ri=xn,wr=Pe,Br=1,Ui=wr.m,zi=wr.gc[wr.ab],Ir=Dn(Ui,2);if(wr.Oc&1<<Ir)pn=0;else{switch(wr.Oc|=1<<Ir,zi.hc=Ir,zi.Ea=Yi[0],zi.nc=Ri[0],zi.K=[null],++wr.ab,wt(4>=wr.ab),Ir){case 0:case 1:zi.b=Dn(Ui,3)+2,Br=El(ro(zi.Ea,zi.b),ro(zi.nc,zi.b),0,wr,zi.K),zi.K=zi.K[0];break;case 3:var Jr,eo=Dn(Ui,8)+1,es=16<eo?0:4<eo?1:2<eo?2:3;if(Yi[0]=ro(zi.Ea,es),zi.b=es,Jr=Br=El(eo,1,0,wr,zi.K)){var Wo,Ks=eo,ei=zi,fl=1<<(8>>ei.b),Ll=Vt(fl);if(Ll==null)Jr=0;else{var el=ei.K[0],Ra=ei.w;for(Ll[0]=ei.K[0][0],Wo=1;Wo<1*Ks;++Wo)Ll[Wo]=tr(el[Ra+Wo],Ll[Wo-1]);for(;Wo<4*fl;++Wo)Ll[Wo]=0;ei.K[0]=null,ei.K[0]=Ll,Jr=1}}Br=Jr;break;case 2:break;default:wt(0)}pn=Br}}if(cn=cn[0],xn=xn[0],pn&&Dn(bn,1)&&!(pn=1<=(Ni=Dn(bn,4))&&11>=Ni)){Pe.a=3;break t}var Ul;if(Ul=pn)e:{var ja,la,Ku,Md=Pe,Fh=cn,dd=xn,Bu=Ni,Sh=fe,Ad=Md.m,zh=Md.s,ac=[null],Tc=1,Jd=0,kA=MA[Bu];n:for(;;){if(Sh&&Dn(Ad,1)){var lc=Dn(Ad,3)+2,lh=ro(Fh,lc),$f=ro(dd,lc),XA=lh*$f;if(!El(lh,$f,0,Md,ac))break n;for(ac=ac[0],zh.xc=lc,ja=0;ja<XA;++ja){var uf=ac[ja]>>8&65535;ac[ja]=uf,uf>=Tc&&(Tc=uf+1)}}if(Ad.h)break n;for(la=0;5>la;++la){var ih=ud[la];!la&&0<Bu&&(ih+=1<<Bu),Jd<ih&&(Jd=ih)}var Vg=pe(Tc*kA,Jn),Cp=Tc,Bp=pe(Cp,ge);if(Bp==null)var Yf=null;else wt(65536>=Cp),Yf=Bp;var Oc=Vt(Jd);if(Yf==null||Oc==null||Vg==null){Md.a=1;break n}var Zg=Vg;for(ja=Ku=0;ja<Tc;++ja){var pA=Yf[ja],Kh=pA.G,Jc=pA.H,wc=0,Rl=1,Xg=0;for(la=0;5>la;++la){ih=ud[la],Kh[la]=Zg,Jc[la]=Ku,!la&&0<Bu&&(ih+=1<<Bu);r:{var Jf,$g=ih,Sf=Md,Cf=Oc,Ko=Zg,Bf=Ku,Pf=0,$A=Sf.m,Pp=Dn($A,1);if(se(Cf,0,0,$g),Pp){var bp=Dn($A,1)+1,bf=Dn($A,1),hm=Dn($A,bf==0?1:8);Cf[hm]=1,bp==2&&(Cf[hm=Dn($A,8)]=1);var Yg=1}else{var qd=Vt(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 ua=void 0,Dc=void 0,cm=Sf,Jg=qd,Lg=$g,qf=Cf,jc=0,mA=cm.m,dm=8,Am=pe(128,Jn);i:for(;Kn(Am,0,7,Jg,19);){if(Dn(mA,1)){var Fp=2+2*Dn(mA,3);if((ua=2+Dn(mA,Fp))>Lg)break i}else ua=Lg;for(Dc=0;Dc<Lg&&ua--;){Xn(mA);var qg=Am[0+(127&ln(mA))];Fn(mA,mA.u+qg.g);var Ef=qg.value;if(16>Ef)qf[Dc++]=Ef,Ef!=0&&(dm=Ef);else{var e0=Ef==16,Lp=Ef-16,n0=Bg[Lp],Mp=Dn(mA,_h[Lp])+n0;if(Dc+Mp>Lg)break i;for(var Np=e0?dm:0;0<Mp--;)qf[Dc++]=Np}}jc=1;break i}jc||(cm.a=3),Yg=jc}(Yg=Yg&&!$A.h)&&(Pf=Kn(Ko,Bf,8,Cf,$g)),Yg&&Pf!=0?Fg=Pf:(Sf.a=3,Fg=0)}if(Fg==0)break n;if(Rl&&Wf[la]==1&&(Rl=Zg[Ku].g==0),wc+=Zg[Ku].g,Ku+=Fg,3>=la){var hf,Ip=Oc[0];for(hf=1;hf<ih;++hf)Oc[hf]>Ip&&(Ip=Oc[hf]);Xg+=Ip}}if(pA.nd=Rl,pA.Qb=0,Rl&&(pA.qb=(Kh[3][Jc[3]+0].value<<24|Kh[1][Jc[1]+0].value<<16|Kh[2][Jc[2]+0].value)>>>0,wc==0&&256>Kh[0][Jc[0]+0].value&&(pA.Qb=1,pA.qb+=Kh[0][Jc[0]+0].value<<8)),pA.jc=!pA.Qb&&6>Xg,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>>=ho(Mg,8,OA),cf>>=ho(TA.G[1][TA.H[1]+cf],16,OA),cf>>=ho(TA.G[2][TA.H[2]+cf],0,OA),ho(TA.G[3][TA.H[3]+cf],24,OA))}}}zh.vc=ac,zh.Wb=Tc,zh.Ya=Yf,zh.yc=Vg,Ul=1;break e}Ul=0}if(!(pn=Ul)){Pe.a=3;break t}if(0<Ni){if(Gn.ua=1<<Ni,!Xr(Gn.Wa,Ni)){Pe.a=1,pn=0;break t}}else Gn.ua=0;var tg=Pe,fm=cn,Lh=xn,Ng=tg.s,tp=Ng.xc;if(tg.c=fm,tg.i=Lh,Ng.md=ro(fm,tp),Ng.wc=tp==0?-1:(1<<tp)-1,fe){Pe.xb=Pg;break t}if((Bi=Vt(cn*xn))==null){Pe.a=1,pn=0;break t}pn=(pn=ol(Pe,Bi,0,cn,xn,xn,null))&&!bn.h;break t}return pn?($e!=null?$e[0]=Bi:(wt(Bi==null),wt(fe)),Pe.$=0,fe||Hs(Gn)):Hs(Gn),pn}function ku(xt,Rt){var fe=xt.c*xt.i,Pe=fe+Rt+16*Rt;return wt(xt.c<=Rt),xt.V=Vt(Pe),xt.V==null?(xt.Ta=null,xt.Ua=0,xt.a=1,0):(xt.Ta=xt.V,xt.Ua=xt.Ba+fe+Rt,1)}function fu(xt,Rt){var fe=xt.C,Pe=Rt-fe,$e=xt.V,pn=xt.Ba+xt.c*fe;for(wt(Rt<=xt.l.o);0<Pe;){var cn=16<Pe?16:Pe,xn=xt.l.ma,bn=xt.l.width,Gn=bn*cn,Bi=xn.ca,Ni=xn.tb+bn*fe,Yi=xt.Ta,Ri=xt.Ua;Iu(xt,cn,$e,pn),za(Yi,Ri,Bi,Ni,Gn),Ea(xn,fe,fe+cn,Bi,Ni,bn),Pe-=cn,$e+=cn*xt.c,fe+=cn}wt(fe==Rt),xt.C=xt.Ma=Rt}function Tu(){this.ub=this.yd=this.td=this.Rb=0}function Wu(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function oh(){this.Fb=this.Bb=this.Cb=0,this.Zb=Vt(4),this.Lb=Vt(4)}function sh(){this.Yb=function(){var xt=[];return function Rt(fe,Pe,$e){for(var pn=$e[Pe],cn=0;cn<pn&&(fe.push($e.length>Pe+1?[]:0),!($e.length<Pe+1));cn++)Rt(fe[cn],Pe+1,$e)}(xt,0,[3,11]),xt}()}function Qa(){this.jb=Vt(3),this.Wc=ye([4,8],sh),this.Xc=ye([4,17],sh)}function xu(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new Vt(4),this.od=new Vt(4)}function xl(){this.ld=this.La=this.dd=this.tc=0}function cl(){this.Na=this.la=0}function gh(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function ec(){this.ad=Vt(384),this.Za=0,this.Ob=Vt(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Ph(){this.uc=this.M=this.Nb=0,this.wa=Array(new xl),this.Y=0,this.ya=Array(new ec),this.aa=0,this.l=new Vu}function Oh(){this.y=Vt(16),this.f=Vt(8),this.ea=Vt(8)}function fc(){this.cb=this.a=0,this.sc="",this.m=new qn,this.Od=new Tu,this.Kc=new Wu,this.ed=new xu,this.Qa=new oh,this.Ic=this.$c=this.Aa=0,this.D=new Ph,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=pe(8,qn),this.ia=0,this.pb=pe(4,gh),this.Pa=new Qa,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Oh),this.Hd=0,this.rb=Array(new cl),this.sb=0,this.wa=Array(new xl),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=ye([4,2],xl),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 Vu(){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 La(){var xt=new fc;return xt!=null&&(xt.a=0,xt.sc="OK",xt.cb=0,xt.Xb=0,Cu||(Cu=ga)),xt}function ia(xt,Rt,fe){return xt.a==0&&(xt.a=Rt,xt.sc=fe,xt.cb=0),0}function eu(xt,Rt,fe){return 3<=fe&&xt[Rt+0]==157&&xt[Rt+1]==1&&xt[Rt+2]==42}function vl(xt,Rt){if(xt==null)return 0;if(xt.a=0,xt.sc="OK",Rt==null)return ia(xt,2,"null VP8Io passed to VP8GetHeaders()");var fe=Rt.data,Pe=Rt.w,$e=Rt.ha;if(4>$e)return ia(xt,7,"Truncated header.");var pn=fe[Pe+0]|fe[Pe+1]<<8|fe[Pe+2]<<16,cn=xt.Od;if(cn.Rb=!(1&pn),cn.td=pn>>1&7,cn.yd=pn>>4&1,cn.ub=pn>>5,3<cn.td)return ia(xt,3,"Incorrect keyframe parameters.");if(!cn.yd)return ia(xt,4,"Frame not displayable.");Pe+=3,$e-=3;var xn=xt.Kc;if(cn.Rb){if(7>$e)return ia(xt,7,"cannot parse picture header");if(!eu(fe,Pe,$e))return ia(xt,3,"Bad code word");xn.c=16383&(fe[Pe+4]<<8|fe[Pe+3]),xn.Td=fe[Pe+4]>>6,xn.i=16383&(fe[Pe+6]<<8|fe[Pe+5]),xn.Ud=fe[Pe+6]>>6,Pe+=7,$e-=7,xt.za=xn.c+15>>4,xt.Ub=xn.i+15>>4,Rt.width=xn.c,Rt.height=xn.i,Rt.Da=0,Rt.j=0,Rt.v=0,Rt.va=Rt.width,Rt.o=Rt.height,Rt.da=0,Rt.ib=Rt.width,Rt.hb=Rt.height,Rt.U=Rt.width,Rt.T=Rt.height,se((pn=xt.Pa).jb,0,255,pn.jb.length),wt((pn=xt.Qa)!=null),pn.Cb=0,pn.Bb=0,pn.Fb=1,se(pn.Zb,0,0,pn.Zb.length),se(pn.Lb,0,0,pn.Lb)}if(cn.ub>$e)return ia(xt,7,"bad partition length");Ce(pn=xt.m,fe,Pe,cn.ub),Pe+=cn.ub,$e-=cn.ub,cn.Rb&&(xn.Ld=si(pn),xn.Kd=si(pn)),xn=xt.Qa;var bn,Gn=xt.Pa;if(wt(pn!=null),wt(xn!=null),xn.Cb=si(pn),xn.Cb){if(xn.Bb=si(pn),si(pn)){for(xn.Fb=si(pn),bn=0;4>bn;++bn)xn.Zb[bn]=si(pn)?en(pn,7):0;for(bn=0;4>bn;++bn)xn.Lb[bn]=si(pn)?en(pn,6):0}if(xn.Bb)for(bn=0;3>bn;++bn)Gn.jb[bn]=si(pn)?Ve(pn,8):255}else xn.Bb=0;if(pn.Ka)return ia(xt,3,"cannot parse segment header");if((xn=xt.ed).zd=si(pn),xn.Tb=Ve(pn,6),xn.wb=Ve(pn,3),xn.Pc=si(pn),xn.Pc&&si(pn)){for(Gn=0;4>Gn;++Gn)si(pn)&&(xn.vd[Gn]=en(pn,6));for(Gn=0;4>Gn;++Gn)si(pn)&&(xn.od[Gn]=en(pn,6))}if(xt.L=xn.Tb==0?0:xn.zd?1:2,pn.Ka)return ia(xt,3,"cannot parse filter header");var Bi=$e;if($e=bn=Pe,Pe=bn+Bi,xn=Bi,xt.Xb=(1<<Ve(xt.m,2))-1,Bi<3*(Gn=xt.Xb))fe=7;else{for(bn+=3*Gn,xn-=3*Gn,Bi=0;Bi<Gn;++Bi){var Ni=fe[$e+0]|fe[$e+1]<<8|fe[$e+2]<<16;Ni>xn&&(Ni=xn),Ce(xt.Jc[+Bi],fe,bn,Ni),bn+=Ni,xn-=Ni,$e+=3}Ce(xt.Jc[+Gn],fe,bn,xn),fe=bn<Pe?0:5}if(fe!=0)return ia(xt,fe,"cannot parse partitions");for(fe=Ve(bn=xt.m,7),$e=si(bn)?en(bn,4):0,Pe=si(bn)?en(bn,4):0,xn=si(bn)?en(bn,4):0,Gn=si(bn)?en(bn,4):0,bn=si(bn)?en(bn,4):0,Bi=xt.Qa,Ni=0;4>Ni;++Ni){if(Bi.Cb){var Yi=Bi.Zb[Ni];Bi.Fb||(Yi+=fe)}else{if(0<Ni){xt.pb[Ni]=xt.pb[0];continue}Yi=fe}var Ri=xt.pb[Ni];Ri.Sc[0]=fA[bh(Yi+$e,127)],Ri.Sc[1]=Ld[bh(Yi+0,127)],Ri.Eb[0]=2*fA[bh(Yi+Pe,127)],Ri.Eb[1]=101581*Ld[bh(Yi+xn,127)]>>16,8>Ri.Eb[1]&&(Ri.Eb[1]=8),Ri.Qc[0]=fA[bh(Yi+Gn,117)],Ri.Qc[1]=Ld[bh(Yi+bn,127)],Ri.lc=Yi+bn}if(!cn.Rb)return ia(xt,4,"Not a key frame.");for(si(pn),cn=xt.Pa,fe=0;4>fe;++fe){for($e=0;8>$e;++$e)for(Pe=0;3>Pe;++Pe)for(xn=0;11>xn;++xn)Gn=Ei(pn,VA[fe][$e][Pe][xn])?Ve(pn,8):wp[fe][$e][Pe][xn],cn.Wc[fe][$e].Yb[Pe][xn]=Gn;for($e=0;17>$e;++$e)cn.Xc[fe][$e]=cn.Wc[fe][Xf[$e]]}return xt.kc=si(pn),xt.kc&&(xt.Bd=Ve(pn,8)),xt.cb=1}function ga(xt,Rt,fe,Pe,$e,pn,cn){var xn=Rt[$e].Yb[fe];for(fe=0;16>$e;++$e){if(!Ei(xt,xn[fe+0]))return $e;for(;!Ei(xt,xn[fe+1]);)if(xn=Rt[++$e].Yb[0],fe=0,$e==16)return 16;var bn=Rt[$e+1].Yb;if(Ei(xt,xn[fe+2])){var Gn=xt,Bi=0;if(Ei(Gn,(Yi=xn)[(Ni=fe)+3]))if(Ei(Gn,Yi[Ni+6])){for(xn=0,Ni=2*(Bi=Ei(Gn,Yi[Ni+8]))+(Yi=Ei(Gn,Yi[Ni+9+Bi])),Bi=0,Yi=xh[Ni];Yi[xn];++xn)Bi+=Bi+Ei(Gn,Yi[xn]);Bi+=3+(8<<Ni)}else Ei(Gn,Yi[Ni+7])?(Bi=7+2*Ei(Gn,165),Bi+=Ei(Gn,145)):Bi=5+Ei(Gn,159);else Bi=Ei(Gn,Yi[Ni+4])?3+Ei(Gn,Yi[Ni+5]):2;xn=bn[2]}else Bi=1,xn=bn[1];bn=cn+Zf[$e],0>(Gn=xt).b&&li(Gn);var Ni,Yi=Gn.b,Ri=(Ni=Gn.Ca>>1)-(Gn.I>>Yi)>>31;--Gn.b,Gn.Ca+=Ri,Gn.Ca|=1,Gn.I-=(Ni+1&Ri)<<Yi,pn[bn]=((Bi^Ri)-Ri)*Pe[(0<$e)+0]}return 16}function nu(xt){var Rt=xt.rb[xt.sb-1];Rt.la=0,Rt.Na=0,se(xt.zc,0,0,xt.zc.length),xt.ja=0}function Hu(xt,Rt){if(xt==null)return 0;if(Rt==null)return ia(xt,2,"NULL VP8Io parameter in VP8Decode().");if(!xt.cb&&!vl(xt,Rt))return 0;if(wt(xt.cb),Rt.ac==null||Rt.ac(Rt)){Rt.ob&&(xt.L=0);var fe=ni[xt.L];if(xt.L==2?(xt.yb=0,xt.zb=0):(xt.yb=Rt.v-fe>>4,xt.zb=Rt.j-fe>>4,0>xt.yb&&(xt.yb=0),0>xt.zb&&(xt.zb=0)),xt.Va=Rt.o+15+fe>>4,xt.Hb=Rt.va+15+fe>>4,xt.Hb>xt.za&&(xt.Hb=xt.za),xt.Va>xt.Ub&&(xt.Va=xt.Ub),0<xt.L){var Pe=xt.ed;for(fe=0;4>fe;++fe){var $e;if(xt.Qa.Cb){var pn=xt.Qa.Lb[fe];xt.Qa.Fb||(pn+=Pe.Tb)}else pn=Pe.Tb;for($e=0;1>=$e;++$e){var cn=xt.gd[fe][$e],xn=pn;if(Pe.Pc&&(xn+=Pe.vd[0],$e&&(xn+=Pe.od[0])),0<(xn=0>xn?0:63<xn?63:xn)){var bn=xn;0<Pe.wb&&(bn=4<Pe.wb?bn>>2:bn>>1)>9-Pe.wb&&(bn=9-Pe.wb),1>bn&&(bn=1),cn.dd=bn,cn.tc=2*xn+bn,cn.ld=40<=xn?2:15<=xn?1:0}else cn.tc=0;cn.La=$e}}}fe=0}else ia(xt,6,"Frame setup failed"),fe=xt.a;if(fe=fe==0){if(fe){xt.$c=0,0<xt.Aa||(xt.Ic=Di);t:{fe=xt.Ic,Pe=4*(bn=xt.za);var Gn=32*bn,Bi=bn+1,Ni=0<xt.L?bn*(0<xt.Aa?2:1):0,Yi=(xt.Aa==2?2:1)*bn;if((cn=Pe+832+($e=3*(16*fe+ni[xt.L])/2*Gn)+(pn=xt.Fa!=null&&0<xt.Fa.length?xt.Kc.c*xt.Kc.i:0))!=cn)fe=0;else{if(cn>xt.Vb){if(xt.Vb=0,xt.Ec=Vt(cn),xt.Fc=0,xt.Ec==null){fe=ia(xt,1,"no memory during frame initialization.");break t}xt.Vb=cn}cn=xt.Ec,xn=xt.Fc,xt.Ac=cn,xt.Bc=xn,xn+=Pe,xt.Gd=pe(Gn,Oh),xt.Hd=0,xt.rb=pe(Bi+1,cl),xt.sb=1,xt.wa=Ni?pe(Ni,xl):null,xt.Y=0,xt.D.Nb=0,xt.D.wa=xt.wa,xt.D.Y=xt.Y,0<xt.Aa&&(xt.D.Y+=bn),wt(!0),xt.oc=cn,xt.pc=xn,xn+=832,xt.ya=pe(Yi,ec),xt.aa=0,xt.D.ya=xt.ya,xt.D.aa=xt.aa,xt.Aa==2&&(xt.D.aa+=bn),xt.R=16*bn,xt.B=8*bn,bn=(Gn=ni[xt.L])*xt.R,Gn=Gn/2*xt.B,xt.sa=cn,xt.ta=xn+bn,xt.qa=xt.sa,xt.ra=xt.ta+16*fe*xt.R+Gn,xt.Ha=xt.qa,xt.Ia=xt.ra+8*fe*xt.B+Gn,xt.$c=0,xn+=$e,xt.mb=pn?cn:null,xt.nb=pn?xn:null,wt(xn+pn<=xt.Fc+xt.Vb),nu(xt),se(xt.Ac,xt.Bc,0,Pe),fe=1}}if(fe){if(Rt.ka=0,Rt.y=xt.sa,Rt.O=xt.ta,Rt.f=xt.qa,Rt.N=xt.ra,Rt.ea=xt.Ha,Rt.Vd=xt.Ia,Rt.fa=xt.R,Rt.Rc=xt.B,Rt.F=null,Rt.J=0,!Kl){for(fe=-255;255>=fe;++fe)Pl[255+fe]=0>fe?-fe:fe;for(fe=-1020;1020>=fe;++fe)mu[1020+fe]=-128>fe?-128:127<fe?127:fe;for(fe=-112;112>=fe;++fe)Oo[112+fe]=-16>fe?-16:15<fe?15:fe;for(fe=-255;510>=fe;++fe)Ca[255+fe]=0>fe?0:255<fe?255:fe;Kl=1}je=HA,an=EA,wn=Vc,Mi=bc,bi=rd,$n=Dh,br=Kd,Tr=gc,$r=lf,mo=rc,Jo=FA,Mo=uA,rs=QA,Ts=Gd,No=Lc,Js=jh,Ol=Zu,zl=Mc,Hh[0]=ph,Hh[1]=wd,Hh[2]=Zc,Hh[3]=Cd,Hh[4]=th,Hh[5]=sd,Hh[6]=Hd,Hh[7]=eh,Hh[8]=Pd,Hh[9]=Bd,NA[0]=ah,NA[1]=od,NA[2]=Ec,NA[3]=_d,NA[4]=kl,NA[5]=Sd,NA[6]=lA,hd[0]=Fc,hd[1]=Rd,hd[2]=Qd,hd[3]=$l,hd[4]=xa,hd[5]=su,hd[6]=sl,fe=1}else fe=0}fe&&(fe=function(Ri,wr){for(Ri.M=0;Ri.M<Ri.Va;++Ri.M){var Br,Ui=Ri.Jc[Ri.M&Ri.Xb],zi=Ri.m,Ir=Ri;for(Br=0;Br<Ir.za;++Br){var Jr=zi,eo=Ir,es=eo.Ac,Wo=eo.Bc+4*Br,Ks=eo.zc,ei=eo.ya[eo.aa+Br];if(eo.Qa.Bb?ei.$b=Ei(Jr,eo.Pa.jb[0])?2+Ei(Jr,eo.Pa.jb[2]):Ei(Jr,eo.Pa.jb[1]):ei.$b=0,eo.kc&&(ei.Ad=Ei(Jr,eo.Bd)),ei.Za=!Ei(Jr,145)+0,ei.Za){var fl=ei.Ob,Ll=0;for(eo=0;4>eo;++eo){var el,Ra=Ks[0+eo];for(el=0;4>el;++el){Ra=WA[es[Wo+el]][Ra];for(var Ul=Kg[Ei(Jr,Ra[0])];0<Ul;)Ul=Kg[2*Ul+Ei(Jr,Ra[Ul])];Ra=-Ul,es[Wo+el]=Ra}Ut(fl,Ll,es,Wo,4),Ll+=4,Ks[0+eo]=Ra}}else Ra=Ei(Jr,156)?Ei(Jr,128)?1:3:Ei(Jr,163)?2:0,ei.Ob[0]=Ra,se(es,Wo,Ra,4),se(Ks,0,Ra,4);ei.Dd=Ei(Jr,142)?Ei(Jr,114)?Ei(Jr,183)?1:3:2:0}if(Ir.m.Ka)return ia(Ri,7,"Premature end-of-partition0 encountered.");for(;Ri.ja<Ri.za;++Ri.ja){if(Ir=Ui,Jr=(zi=Ri).rb[zi.sb-1],es=zi.rb[zi.sb+zi.ja],Br=zi.ya[zi.aa+zi.ja],Wo=zi.kc?Br.Ad:0)Jr.la=es.la=0,Br.Za||(Jr.Na=es.Na=0),Br.Hc=0,Br.Gc=0,Br.ia=0;else{var ja,la;if(Jr=es,es=Ir,Wo=zi.Pa.Xc,Ks=zi.ya[zi.aa+zi.ja],ei=zi.pb[Ks.$b],eo=Ks.ad,fl=0,Ll=zi.rb[zi.sb-1],Ra=el=0,se(eo,fl,0,384),Ks.Za)var Ku=0,Md=Wo[3];else{Ul=Vt(16);var Fh=Jr.Na+Ll.Na;if(Fh=Cu(es,Wo[1],Fh,ei.Eb,0,Ul,0),Jr.Na=Ll.Na=(0<Fh)+0,1<Fh)je(Ul,0,eo,fl);else{var dd=Ul[0]+3>>3;for(Ul=0;256>Ul;Ul+=16)eo[fl+Ul]=dd}Ku=1,Md=Wo[0]}var Bu=15&Jr.la,Sh=15&Ll.la;for(Ul=0;4>Ul;++Ul){var Ad=1&Sh;for(dd=la=0;4>dd;++dd)Bu=Bu>>1|(Ad=(Fh=Cu(es,Md,Fh=Ad+(1&Bu),ei.Sc,Ku,eo,fl))>Ku)<<7,la=la<<2|(3<Fh?3:1<Fh?2:eo[fl+0]!=0),fl+=16;Bu>>=4,Sh=Sh>>1|Ad<<7,el=(el<<8|la)>>>0}for(Md=Bu,Ku=Sh>>4,ja=0;4>ja;ja+=2){for(la=0,Bu=Jr.la>>4+ja,Sh=Ll.la>>4+ja,Ul=0;2>Ul;++Ul){for(Ad=1&Sh,dd=0;2>dd;++dd)Fh=Ad+(1&Bu),Bu=Bu>>1|(Ad=0<(Fh=Cu(es,Wo[2],Fh,ei.Qc,0,eo,fl)))<<3,la=la<<2|(3<Fh?3:1<Fh?2:eo[fl+0]!=0),fl+=16;Bu>>=2,Sh=Sh>>1|Ad<<5}Ra|=la<<4*ja,Md|=Bu<<4<<ja,Ku|=(240&Sh)<<ja}Jr.la=Md,Ll.la=Ku,Ks.Hc=el,Ks.Gc=Ra,Ks.ia=43690&Ra?0:ei.ia,Wo=!(el|Ra)}if(0<zi.L&&(zi.wa[zi.Y+zi.ja]=zi.gd[Br.$b][Br.Za],zi.wa[zi.Y+zi.ja].La|=!Wo),Ir.Ka)return ia(Ri,7,"Premature end-of-file encountered.")}if(nu(Ri),zi=wr,Ir=1,Br=(Ui=Ri).D,Jr=0<Ui.L&&Ui.M>=Ui.zb&&Ui.M<=Ui.Va,Ui.Aa==0)t:{if(Br.M=Ui.M,Br.uc=Jr,dA(Ui,Br),Ir=1,Br=(la=Ui.D).Nb,Jr=(Ra=ni[Ui.L])*Ui.R,es=Ra/2*Ui.B,Ul=16*Br*Ui.R,dd=8*Br*Ui.B,Wo=Ui.sa,Ks=Ui.ta-Jr+Ul,ei=Ui.qa,eo=Ui.ra-es+dd,fl=Ui.Ha,Ll=Ui.Ia-es+dd,Sh=(Bu=la.M)==0,el=Bu>=Ui.Va-1,Ui.Aa==2&&dA(Ui,la),la.uc)for(Ad=(Fh=Ui).D.M,wt(Fh.D.uc),la=Fh.yb;la<Fh.Hb;++la){Ku=la,Md=Ad;var zh=(ac=(ih=Fh).D).Nb;ja=ih.R;var ac=ac.wa[ac.Y+Ku],Tc=ih.sa,Jd=ih.ta+16*zh*ja+16*Ku,kA=ac.dd,lc=ac.tc;if(lc!=0)if(wt(3<=lc),ih.L==1)0<Ku&&Js(Tc,Jd,ja,lc+4),ac.La&&zl(Tc,Jd,ja,lc),0<Md&&No(Tc,Jd,ja,lc+4),ac.La&&Ol(Tc,Jd,ja,lc);else{var lh=ih.B,$f=ih.qa,XA=ih.ra+8*zh*lh+8*Ku,uf=ih.Ha,ih=ih.Ia+8*zh*lh+8*Ku;zh=ac.ld,0<Ku&&(Tr(Tc,Jd,ja,lc+4,kA,zh),mo($f,XA,uf,ih,lh,lc+4,kA,zh)),ac.La&&(Mo(Tc,Jd,ja,lc,kA,zh),Ts($f,XA,uf,ih,lh,lc,kA,zh)),0<Md&&(br(Tc,Jd,ja,lc+4,kA,zh),$r($f,XA,uf,ih,lh,lc+4,kA,zh)),ac.La&&(Jo(Tc,Jd,ja,lc,kA,zh),rs($f,XA,uf,ih,lh,lc,kA,zh))}}if(Ui.ia&&alert("todo:DitherRow"),zi.put!=null){if(la=16*Bu,Bu=16*(Bu+1),Sh?(zi.y=Ui.sa,zi.O=Ui.ta+Ul,zi.f=Ui.qa,zi.N=Ui.ra+dd,zi.ea=Ui.Ha,zi.W=Ui.Ia+dd):(la-=Ra,zi.y=Wo,zi.O=Ks,zi.f=ei,zi.N=eo,zi.ea=fl,zi.W=Ll),el||(Bu-=Ra),Bu>zi.o&&(Bu=zi.o),zi.F=null,zi.J=null,Ui.Fa!=null&&0<Ui.Fa.length&&la<Bu&&(zi.J=KA(Ui,zi,la,Bu-la),zi.F=Ui.mb,zi.F==null&&zi.F.length==0)){Ir=ia(Ui,3,"Could not decode alpha data.");break t}la<zi.j&&(Ra=zi.j-la,la=zi.j,wt(!(1&Ra)),zi.O+=Ui.R*Ra,zi.N+=Ui.B*(Ra>>1),zi.W+=Ui.B*(Ra>>1),zi.F!=null&&(zi.J+=zi.width*Ra)),la<Bu&&(zi.O+=zi.v,zi.N+=zi.v>>1,zi.W+=zi.v>>1,zi.F!=null&&(zi.J+=zi.v),zi.ka=la-zi.j,zi.U=zi.va-zi.v,zi.T=Bu-la,Ir=zi.put(zi))}Br+1!=Ui.Ic||el||(Ut(Ui.sa,Ui.ta-Jr,Wo,Ks+16*Ui.R,Jr),Ut(Ui.qa,Ui.ra-es,ei,eo+8*Ui.B,es),Ut(Ui.Ha,Ui.Ia-es,fl,Ll+8*Ui.B,es))}if(!Ir)return ia(Ri,6,"Output aborted.")}return 1}(xt,Rt)),Rt.bc!=null&&Rt.bc(Rt),fe&=1}return fe?(xt.cb=0,fe):0}function Ou(xt,Rt,fe,Pe,$e){$e=xt[Rt+fe+32*Pe]+($e>>3),xt[Rt+fe+32*Pe]=-256&$e?0>$e?0:255:$e}function Wc(xt,Rt,fe,Pe,$e,pn){Ou(xt,Rt,0,fe,Pe+$e),Ou(xt,Rt,1,fe,Pe+pn),Ou(xt,Rt,2,fe,Pe-pn),Ou(xt,Rt,3,fe,Pe-$e)}function Un(xt){return(20091*xt>>16)+xt}function nc(xt,Rt,fe,Pe){var $e,pn=0,cn=Vt(16);for($e=0;4>$e;++$e){var xn=xt[Rt+0]+xt[Rt+8],bn=xt[Rt+0]-xt[Rt+8],Gn=(35468*xt[Rt+4]>>16)-Un(xt[Rt+12]),Bi=Un(xt[Rt+4])+(35468*xt[Rt+12]>>16);cn[pn+0]=xn+Bi,cn[pn+1]=bn+Gn,cn[pn+2]=bn-Gn,cn[pn+3]=xn-Bi,pn+=4,Rt++}for($e=pn=0;4>$e;++$e)xn=(xt=cn[pn+0]+4)+cn[pn+8],bn=xt-cn[pn+8],Gn=(35468*cn[pn+4]>>16)-Un(cn[pn+12]),Ou(fe,Pe,0,0,xn+(Bi=Un(cn[pn+4])+(35468*cn[pn+12]>>16))),Ou(fe,Pe,1,0,bn+Gn),Ou(fe,Pe,2,0,bn-Gn),Ou(fe,Pe,3,0,xn-Bi),pn++,Pe+=32}function Dh(xt,Rt,fe,Pe){var $e=xt[Rt+0]+4,pn=35468*xt[Rt+4]>>16,cn=Un(xt[Rt+4]),xn=35468*xt[Rt+1]>>16;Wc(fe,Pe,0,$e+cn,xt=Un(xt[Rt+1]),xn),Wc(fe,Pe,1,$e+pn,xt,xn),Wc(fe,Pe,2,$e-pn,xt,xn),Wc(fe,Pe,3,$e-cn,xt,xn)}function EA(xt,Rt,fe,Pe,$e){nc(xt,Rt,fe,Pe),$e&&nc(xt,Rt+16,fe,Pe+4)}function Vc(xt,Rt,fe,Pe){an(xt,Rt+0,fe,Pe,1),an(xt,Rt+32,fe,Pe+128,1)}function bc(xt,Rt,fe,Pe){var $e;for(xt=xt[Rt+0]+4,$e=0;4>$e;++$e)for(Rt=0;4>Rt;++Rt)Ou(fe,Pe,Rt,$e,xt)}function rd(xt,Rt,fe,Pe){xt[Rt+0]&&Mi(xt,Rt+0,fe,Pe),xt[Rt+16]&&Mi(xt,Rt+16,fe,Pe+4),xt[Rt+32]&&Mi(xt,Rt+32,fe,Pe+128),xt[Rt+48]&&Mi(xt,Rt+48,fe,Pe+128+4)}function HA(xt,Rt,fe,Pe){var $e,pn=Vt(16);for($e=0;4>$e;++$e){var cn=xt[Rt+0+$e]+xt[Rt+12+$e],xn=xt[Rt+4+$e]+xt[Rt+8+$e],bn=xt[Rt+4+$e]-xt[Rt+8+$e],Gn=xt[Rt+0+$e]-xt[Rt+12+$e];pn[0+$e]=cn+xn,pn[8+$e]=cn-xn,pn[4+$e]=Gn+bn,pn[12+$e]=Gn-bn}for($e=0;4>$e;++$e)cn=(xt=pn[0+4*$e]+3)+pn[3+4*$e],xn=pn[1+4*$e]+pn[2+4*$e],bn=pn[1+4*$e]-pn[2+4*$e],Gn=xt-pn[3+4*$e],fe[Pe+0]=cn+xn>>3,fe[Pe+16]=Gn+bn>>3,fe[Pe+32]=cn-xn>>3,fe[Pe+48]=Gn-bn>>3,Pe+=64}function gu(xt,Rt,fe){var Pe,$e=Rt-32,pn=sa,cn=255-xt[$e-1];for(Pe=0;Pe<fe;++Pe){var xn,bn=pn,Gn=cn+xt[Rt-1];for(xn=0;xn<fe;++xn)xt[Rt+xn]=bn[Gn+xt[$e+xn]];Rt+=32}}function wd(xt,Rt){gu(xt,Rt,4)}function Rd(xt,Rt){gu(xt,Rt,8)}function od(xt,Rt){gu(xt,Rt,16)}function Ec(xt,Rt){var fe;for(fe=0;16>fe;++fe)Ut(xt,Rt+32*fe,xt,Rt-32,16)}function _d(xt,Rt){var fe;for(fe=16;0<fe;--fe)se(xt,Rt,xt[Rt-1],16),Rt+=32}function xd(xt,Rt,fe){var Pe;for(Pe=0;16>Pe;++Pe)se(Rt,fe+32*Pe,xt,16)}function ah(xt,Rt){var fe,Pe=16;for(fe=0;16>fe;++fe)Pe+=xt[Rt-1+32*fe]+xt[Rt+fe-32];xd(Pe>>5,xt,Rt)}function kl(xt,Rt){var fe,Pe=8;for(fe=0;16>fe;++fe)Pe+=xt[Rt-1+32*fe];xd(Pe>>4,xt,Rt)}function Sd(xt,Rt){var fe,Pe=8;for(fe=0;16>fe;++fe)Pe+=xt[Rt+fe-32];xd(Pe>>4,xt,Rt)}function lA(xt,Rt){xd(128,xt,Rt)}function Xs(xt,Rt,fe){return xt+2*Rt+fe+2>>2}function Zc(xt,Rt){var fe,Pe=Rt-32;for(Pe=new Uint8Array([Xs(xt[Pe-1],xt[Pe+0],xt[Pe+1]),Xs(xt[Pe+0],xt[Pe+1],xt[Pe+2]),Xs(xt[Pe+1],xt[Pe+2],xt[Pe+3]),Xs(xt[Pe+2],xt[Pe+3],xt[Pe+4])]),fe=0;4>fe;++fe)Ut(xt,Rt+32*fe,Pe,0,Pe.length)}function Cd(xt,Rt){var fe=xt[Rt-1],Pe=xt[Rt-1+32],$e=xt[Rt-1+64],pn=xt[Rt-1+96];Ii(xt,Rt+0,16843009*Xs(xt[Rt-1-32],fe,Pe)),Ii(xt,Rt+32,16843009*Xs(fe,Pe,$e)),Ii(xt,Rt+64,16843009*Xs(Pe,$e,pn)),Ii(xt,Rt+96,16843009*Xs($e,pn,pn))}function ph(xt,Rt){var fe,Pe=4;for(fe=0;4>fe;++fe)Pe+=xt[Rt+fe-32]+xt[Rt-1+32*fe];for(Pe>>=3,fe=0;4>fe;++fe)se(xt,Rt+32*fe,Pe,4)}function th(xt,Rt){var fe=xt[Rt-1+0],Pe=xt[Rt-1+32],$e=xt[Rt-1+64],pn=xt[Rt-1-32],cn=xt[Rt+0-32],xn=xt[Rt+1-32],bn=xt[Rt+2-32],Gn=xt[Rt+3-32];xt[Rt+0+96]=Xs(Pe,$e,xt[Rt-1+96]),xt[Rt+1+96]=xt[Rt+0+64]=Xs(fe,Pe,$e),xt[Rt+2+96]=xt[Rt+1+64]=xt[Rt+0+32]=Xs(pn,fe,Pe),xt[Rt+3+96]=xt[Rt+2+64]=xt[Rt+1+32]=xt[Rt+0+0]=Xs(cn,pn,fe),xt[Rt+3+64]=xt[Rt+2+32]=xt[Rt+1+0]=Xs(xn,cn,pn),xt[Rt+3+32]=xt[Rt+2+0]=Xs(bn,xn,cn),xt[Rt+3+0]=Xs(Gn,bn,xn)}function Hd(xt,Rt){var fe=xt[Rt+1-32],Pe=xt[Rt+2-32],$e=xt[Rt+3-32],pn=xt[Rt+4-32],cn=xt[Rt+5-32],xn=xt[Rt+6-32],bn=xt[Rt+7-32];xt[Rt+0+0]=Xs(xt[Rt+0-32],fe,Pe),xt[Rt+1+0]=xt[Rt+0+32]=Xs(fe,Pe,$e),xt[Rt+2+0]=xt[Rt+1+32]=xt[Rt+0+64]=Xs(Pe,$e,pn),xt[Rt+3+0]=xt[Rt+2+32]=xt[Rt+1+64]=xt[Rt+0+96]=Xs($e,pn,cn),xt[Rt+3+32]=xt[Rt+2+64]=xt[Rt+1+96]=Xs(pn,cn,xn),xt[Rt+3+64]=xt[Rt+2+96]=Xs(cn,xn,bn),xt[Rt+3+96]=Xs(xn,bn,bn)}function sd(xt,Rt){var fe=xt[Rt-1+0],Pe=xt[Rt-1+32],$e=xt[Rt-1+64],pn=xt[Rt-1-32],cn=xt[Rt+0-32],xn=xt[Rt+1-32],bn=xt[Rt+2-32],Gn=xt[Rt+3-32];xt[Rt+0+0]=xt[Rt+1+64]=pn+cn+1>>1,xt[Rt+1+0]=xt[Rt+2+64]=cn+xn+1>>1,xt[Rt+2+0]=xt[Rt+3+64]=xn+bn+1>>1,xt[Rt+3+0]=bn+Gn+1>>1,xt[Rt+0+96]=Xs($e,Pe,fe),xt[Rt+0+64]=Xs(Pe,fe,pn),xt[Rt+0+32]=xt[Rt+1+96]=Xs(fe,pn,cn),xt[Rt+1+32]=xt[Rt+2+96]=Xs(pn,cn,xn),xt[Rt+2+32]=xt[Rt+3+96]=Xs(cn,xn,bn),xt[Rt+3+32]=Xs(xn,bn,Gn)}function eh(xt,Rt){var fe=xt[Rt+0-32],Pe=xt[Rt+1-32],$e=xt[Rt+2-32],pn=xt[Rt+3-32],cn=xt[Rt+4-32],xn=xt[Rt+5-32],bn=xt[Rt+6-32],Gn=xt[Rt+7-32];xt[Rt+0+0]=fe+Pe+1>>1,xt[Rt+1+0]=xt[Rt+0+64]=Pe+$e+1>>1,xt[Rt+2+0]=xt[Rt+1+64]=$e+pn+1>>1,xt[Rt+3+0]=xt[Rt+2+64]=pn+cn+1>>1,xt[Rt+0+32]=Xs(fe,Pe,$e),xt[Rt+1+32]=xt[Rt+0+96]=Xs(Pe,$e,pn),xt[Rt+2+32]=xt[Rt+1+96]=Xs($e,pn,cn),xt[Rt+3+32]=xt[Rt+2+96]=Xs(pn,cn,xn),xt[Rt+3+64]=Xs(cn,xn,bn),xt[Rt+3+96]=Xs(xn,bn,Gn)}function Bd(xt,Rt){var fe=xt[Rt-1+0],Pe=xt[Rt-1+32],$e=xt[Rt-1+64],pn=xt[Rt-1+96];xt[Rt+0+0]=fe+Pe+1>>1,xt[Rt+2+0]=xt[Rt+0+32]=Pe+$e+1>>1,xt[Rt+2+32]=xt[Rt+0+64]=$e+pn+1>>1,xt[Rt+1+0]=Xs(fe,Pe,$e),xt[Rt+3+0]=xt[Rt+1+32]=Xs(Pe,$e,pn),xt[Rt+3+32]=xt[Rt+1+64]=Xs($e,pn,pn),xt[Rt+3+64]=xt[Rt+2+64]=xt[Rt+0+96]=xt[Rt+1+96]=xt[Rt+2+96]=xt[Rt+3+96]=pn}function Pd(xt,Rt){var fe=xt[Rt-1+0],Pe=xt[Rt-1+32],$e=xt[Rt-1+64],pn=xt[Rt-1+96],cn=xt[Rt-1-32],xn=xt[Rt+0-32],bn=xt[Rt+1-32],Gn=xt[Rt+2-32];xt[Rt+0+0]=xt[Rt+2+32]=fe+cn+1>>1,xt[Rt+0+32]=xt[Rt+2+64]=Pe+fe+1>>1,xt[Rt+0+64]=xt[Rt+2+96]=$e+Pe+1>>1,xt[Rt+0+96]=pn+$e+1>>1,xt[Rt+3+0]=Xs(xn,bn,Gn),xt[Rt+2+0]=Xs(cn,xn,bn),xt[Rt+1+0]=xt[Rt+3+32]=Xs(fe,cn,xn),xt[Rt+1+32]=xt[Rt+3+64]=Xs(Pe,fe,cn),xt[Rt+1+64]=xt[Rt+3+96]=Xs($e,Pe,fe),xt[Rt+1+96]=Xs(pn,$e,Pe)}function Qd(xt,Rt){var fe;for(fe=0;8>fe;++fe)Ut(xt,Rt+32*fe,xt,Rt-32,8)}function $l(xt,Rt){var fe;for(fe=0;8>fe;++fe)se(xt,Rt,xt[Rt-1],8),Rt+=32}function iu(xt,Rt,fe){var Pe;for(Pe=0;8>Pe;++Pe)se(Rt,fe+32*Pe,xt,8)}function Fc(xt,Rt){var fe,Pe=8;for(fe=0;8>fe;++fe)Pe+=xt[Rt+fe-32]+xt[Rt-1+32*fe];iu(Pe>>4,xt,Rt)}function su(xt,Rt){var fe,Pe=4;for(fe=0;8>fe;++fe)Pe+=xt[Rt+fe-32];iu(Pe>>3,xt,Rt)}function xa(xt,Rt){var fe,Pe=4;for(fe=0;8>fe;++fe)Pe+=xt[Rt-1+32*fe];iu(Pe>>3,xt,Rt)}function sl(xt,Rt){iu(128,xt,Rt)}function Su(xt,Rt,fe){var Pe=xt[Rt-fe],$e=xt[Rt+0],pn=3*($e-Pe)+Dl[1020+xt[Rt-2*fe]-xt[Rt+fe]],cn=Xu[112+(pn+4>>3)];xt[Rt-fe]=sa[255+Pe+Xu[112+(pn+3>>3)]],xt[Rt+0]=sa[255+$e-cn]}function mh(xt,Rt,fe,Pe){var $e=xt[Rt+0],pn=xt[Rt+fe];return Qs[255+xt[Rt-2*fe]-xt[Rt-fe]]>Pe||Qs[255+pn-$e]>Pe}function vh(xt,Rt,fe,Pe){return 4*Qs[255+xt[Rt-fe]-xt[Rt+0]]+Qs[255+xt[Rt-2*fe]-xt[Rt+fe]]<=Pe}function zd(xt,Rt,fe,Pe,$e){var pn=xt[Rt-3*fe],cn=xt[Rt-2*fe],xn=xt[Rt-fe],bn=xt[Rt+0],Gn=xt[Rt+fe],Bi=xt[Rt+2*fe],Ni=xt[Rt+3*fe];return 4*Qs[255+xn-bn]+Qs[255+cn-Gn]>Pe?0:Qs[255+xt[Rt-4*fe]-pn]<=$e&&Qs[255+pn-cn]<=$e&&Qs[255+cn-xn]<=$e&&Qs[255+Ni-Bi]<=$e&&Qs[255+Bi-Gn]<=$e&&Qs[255+Gn-bn]<=$e}function Lc(xt,Rt,fe,Pe){var $e=2*Pe+1;for(Pe=0;16>Pe;++Pe)vh(xt,Rt+Pe,fe,$e)&&Su(xt,Rt+Pe,fe)}function jh(xt,Rt,fe,Pe){var $e=2*Pe+1;for(Pe=0;16>Pe;++Pe)vh(xt,Rt+Pe*fe,1,$e)&&Su(xt,Rt+Pe*fe,1)}function Zu(xt,Rt,fe,Pe){var $e;for($e=3;0<$e;--$e)Lc(xt,Rt+=4*fe,fe,Pe)}function Mc(xt,Rt,fe,Pe){var $e;for($e=3;0<$e;--$e)jh(xt,Rt+=4,fe,Pe)}function Xc(xt,Rt,fe,Pe,$e,pn,cn,xn){for(pn=2*pn+1;0<$e--;){if(zd(xt,Rt,fe,pn,cn))if(mh(xt,Rt,fe,xn))Su(xt,Rt,fe);else{var bn=xt,Gn=Rt,Bi=fe,Ni=bn[Gn-2*Bi],Yi=bn[Gn-Bi],Ri=bn[Gn+0],wr=bn[Gn+Bi],Br=bn[Gn+2*Bi],Ui=27*(Ir=Dl[1020+3*(Ri-Yi)+Dl[1020+Ni-wr]])+63>>7,zi=18*Ir+63>>7,Ir=9*Ir+63>>7;bn[Gn-3*Bi]=sa[255+bn[Gn-3*Bi]+Ir],bn[Gn-2*Bi]=sa[255+Ni+zi],bn[Gn-Bi]=sa[255+Yi+Ui],bn[Gn+0]=sa[255+Ri-Ui],bn[Gn+Bi]=sa[255+wr-zi],bn[Gn+2*Bi]=sa[255+Br-Ir]}Rt+=Pe}}function ic(xt,Rt,fe,Pe,$e,pn,cn,xn){for(pn=2*pn+1;0<$e--;){if(zd(xt,Rt,fe,pn,cn))if(mh(xt,Rt,fe,xn))Su(xt,Rt,fe);else{var bn=xt,Gn=Rt,Bi=fe,Ni=bn[Gn-Bi],Yi=bn[Gn+0],Ri=bn[Gn+Bi],wr=Xu[112+((Br=3*(Yi-Ni))+4>>3)],Br=Xu[112+(Br+3>>3)],Ui=wr+1>>1;bn[Gn-2*Bi]=sa[255+bn[Gn-2*Bi]+Ui],bn[Gn-Bi]=sa[255+Ni+Br],bn[Gn+0]=sa[255+Yi-wr],bn[Gn+Bi]=sa[255+Ri-Ui]}Rt+=Pe}}function Kd(xt,Rt,fe,Pe,$e,pn){Xc(xt,Rt,fe,1,16,Pe,$e,pn)}function gc(xt,Rt,fe,Pe,$e,pn){Xc(xt,Rt,1,fe,16,Pe,$e,pn)}function FA(xt,Rt,fe,Pe,$e,pn){var cn;for(cn=3;0<cn;--cn)ic(xt,Rt+=4*fe,fe,1,16,Pe,$e,pn)}function uA(xt,Rt,fe,Pe,$e,pn){var cn;for(cn=3;0<cn;--cn)ic(xt,Rt+=4,1,fe,16,Pe,$e,pn)}function lf(xt,Rt,fe,Pe,$e,pn,cn,xn){Xc(xt,Rt,$e,1,8,pn,cn,xn),Xc(fe,Pe,$e,1,8,pn,cn,xn)}function rc(xt,Rt,fe,Pe,$e,pn,cn,xn){Xc(xt,Rt,1,$e,8,pn,cn,xn),Xc(fe,Pe,1,$e,8,pn,cn,xn)}function QA(xt,Rt,fe,Pe,$e,pn,cn,xn){ic(xt,Rt+4*$e,$e,1,8,pn,cn,xn),ic(fe,Pe+4*$e,$e,1,8,pn,cn,xn)}function Gd(xt,Rt,fe,Pe,$e,pn,cn,xn){ic(xt,Rt+4,1,$e,8,pn,cn,xn),ic(fe,Pe+4,1,$e,8,pn,cn,xn)}function pc(){this.ba=new ss,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Lo,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function ad(){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 Uh(){this.ua=0,this.Wa=new Hn,this.vb=new Hn,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new ge,this.yc=new Jn}function zA(){this.xb=this.a=0,this.l=new Vu,this.ca=new ss,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new Te,this.Pb=0,this.wd=new Te,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Uh,this.ab=0,this.gc=pe(4,hA),this.Oc=0}function bd(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Vu,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Wd(xt,Rt,fe,Pe,$e,pn,cn){for(xt=xt==null?0:xt[Rt+0],Rt=0;Rt<cn;++Rt)$e[pn+Rt]=xt+fe[Pe+Rt]&255,xt=$e[pn+Rt]}function LA(xt,Rt,fe,Pe,$e,pn,cn){var xn;if(xt==null)Wd(null,null,fe,Pe,$e,pn,cn);else for(xn=0;xn<cn;++xn)$e[pn+xn]=xt[Rt+xn]+fe[Pe+xn]&255}function Nc(xt,Rt,fe,Pe,$e,pn,cn){if(xt==null)Wd(null,null,fe,Pe,$e,pn,cn);else{var xn,bn=xt[Rt+0],Gn=bn,Bi=bn;for(xn=0;xn<cn;++xn)Gn=Bi+(bn=xt[Rt+xn])-Gn,Bi=fe[Pe+xn]+(-256&Gn?0>Gn?0:255:Gn)&255,Gn=bn,$e[pn+xn]=Bi}}function KA(xt,Rt,fe,Pe){var $e=Rt.width,pn=Rt.o;if(wt(xt!=null&&Rt!=null),0>fe||0>=Pe||fe+Pe>pn)return null;if(!xt.Cc){if(xt.ga==null){var cn;if(xt.ga=new bd,(cn=xt.ga==null)||(cn=Rt.width*Rt.o,wt(xt.Gb.length==0),xt.Gb=Vt(cn),xt.Uc=0,xt.Gb==null?cn=0:(xt.mb=xt.Gb,xt.nb=xt.Uc,xt.rc=null,cn=1),cn=!cn),!cn){cn=xt.ga;var xn=xt.Fa,bn=xt.P,Gn=xt.qc,Bi=xt.mb,Ni=xt.nb,Yi=bn+1,Ri=Gn-1,wr=cn.l;if(wt(xn!=null&&Bi!=null&&Rt!=null),Qh[0]=null,Qh[1]=Wd,Qh[2]=LA,Qh[3]=Nc,cn.ca=Bi,cn.tb=Ni,cn.c=Rt.width,cn.i=Rt.height,wt(0<cn.c&&0<cn.i),1>=Gn)Rt=0;else if(cn.$a=xn[bn+0]>>0&3,cn.Z=xn[bn+0]>>2&3,cn.Lc=xn[bn+0]>>4&3,bn=xn[bn+0]>>6&3,0>cn.$a||1<cn.$a||4<=cn.Z||1<cn.Lc||bn)Rt=0;else if(wr.put=ea,wr.ac=Rs,wr.bc=Ql,wr.ma=cn,wr.width=Rt.width,wr.height=Rt.height,wr.Da=Rt.Da,wr.v=Rt.v,wr.va=Rt.va,wr.j=Rt.j,wr.o=Rt.o,cn.$a)t:{wt(cn.$a==1),Rt=Fa();e:for(;;){if(Rt==null){Rt=0;break t}if(wt(cn!=null),cn.mc=Rt,Rt.c=cn.c,Rt.i=cn.i,Rt.l=cn.l,Rt.l.ma=cn,Rt.l.width=cn.c,Rt.l.height=cn.i,Rt.a=0,un(Rt.m,xn,Yi,Ri),!El(cn.c,cn.i,1,Rt,null)||(Rt.ab==1&&Rt.gc[0].hc==3&&na(Rt.s)?(cn.ic=1,xn=Rt.c*Rt.i,Rt.Ta=null,Rt.Ua=0,Rt.V=Vt(xn),Rt.Ba=0,Rt.V==null?(Rt.a=1,Rt=0):Rt=1):(cn.ic=0,Rt=ku(Rt,cn.c)),!Rt))break e;Rt=1;break t}cn.mc=null,Rt=0}else Rt=Ri>=cn.c*cn.i;cn=!Rt}if(cn)return null;xt.ga.Lc!=1?xt.Ga=0:Pe=pn-fe}wt(xt.ga!=null),wt(fe+Pe<=pn);t:{if(Rt=(xn=xt.ga).c,pn=xn.l.o,xn.$a==0){if(Yi=xt.rc,Ri=xt.Vc,wr=xt.Fa,bn=xt.P+1+fe*Rt,Gn=xt.mb,Bi=xt.nb+fe*Rt,wt(bn<=xt.P+xt.qc),xn.Z!=0)for(wt(Qh[xn.Z]!=null),cn=0;cn<Pe;++cn)Qh[xn.Z](Yi,Ri,wr,bn,Gn,Bi,Rt),Yi=Gn,Ri=Bi,Bi+=Rt,bn+=Rt;else for(cn=0;cn<Pe;++cn)Ut(Gn,Bi,wr,bn,Rt),Yi=Gn,Ri=Bi,Bi+=Rt,bn+=Rt;xt.rc=Yi,xt.Vc=Ri}else{if(wt(xn.mc!=null),Rt=fe+Pe,wt((cn=xn.mc)!=null),wt(Rt<=cn.i),cn.C>=Rt)Rt=1;else if(xn.ic||lr(),xn.ic){xn=cn.V,Yi=cn.Ba,Ri=cn.c;var Br=cn.i,Ui=(wr=1,bn=cn.$/Ri,Gn=cn.$%Ri,Bi=cn.m,Ni=cn.s,cn.$),zi=Ri*Br,Ir=Ri*Rt,Jr=Ni.wc,eo=Ui<Ir?Oa(Ni,Gn,bn):null;wt(Ui<=zi),wt(Rt<=Br),wt(na(Ni));e:for(;;){for(;!Bi.h&&Ui<Ir;){if(Gn&Jr||(eo=Oa(Ni,Gn,bn)),wt(eo!=null),Xn(Bi),256>(Br=ml(eo.G[0],eo.H[0],Bi)))xn[Yi+Ui]=Br,++Ui,++Gn>=Ri&&(Gn=0,++bn<=Rt&&!(bn%16)&&Za(cn,bn));else{if(!(280>Br)){wr=0;break e}Br=Xl(Br-256,Bi);var es,Wo=ml(eo.G[4],eo.H[4],Bi);if(Xn(Bi),!(Ui>=(Wo=fa(Ri,Wo=Xl(Wo,Bi)))&&zi-Ui>=Br)){wr=0;break e}for(es=0;es<Br;++es)xn[Yi+Ui+es]=xn[Yi+Ui+es-Wo];for(Ui+=Br,Gn+=Br;Gn>=Ri;)Gn-=Ri,++bn<=Rt&&!(bn%16)&&Za(cn,bn);Ui<Ir&&Gn&Jr&&(eo=Oa(Ni,Gn,bn))}wt(Bi.h==mn(Bi))}Za(cn,bn>Rt?Rt:bn);break e}!wr||Bi.h&&Ui<zi?(wr=0,cn.a=Bi.h?5:3):cn.$=Ui,Rt=wr}else Rt=ol(cn,cn.V,cn.Ba,cn.c,cn.i,Rt,fu);if(!Rt){Pe=0;break t}}fe+Pe>=pn&&(xt.Cc=1),Pe=1}if(!Pe)return null;if(xt.Cc&&((Pe=xt.ga)!=null&&(Pe.mc=null),xt.ga=null,0<xt.Ga))return alert("todo:WebPDequantizeLevels"),null}return xt.nb+fe*$e}function Ae(xt,Rt,fe,Pe,$e,pn){for(;0<$e--;){var cn,xn=xt,bn=Rt+(fe?1:0),Gn=xt,Bi=Rt+(fe?0:3);for(cn=0;cn<Pe;++cn){var Ni=Gn[Bi+4*cn];Ni!=255&&(Ni*=32897,xn[bn+4*cn+0]=xn[bn+4*cn+0]*Ni>>23,xn[bn+4*cn+1]=xn[bn+4*cn+1]*Ni>>23,xn[bn+4*cn+2]=xn[bn+4*cn+2]*Ni>>23)}Rt+=pn}}function vn(xt,Rt,fe,Pe,$e){for(;0<Pe--;){var pn;for(pn=0;pn<fe;++pn){var cn=xt[Rt+2*pn+0],xn=15&(Gn=xt[Rt+2*pn+1]),bn=4369*xn,Gn=(240&Gn|Gn>>4)*bn>>16;xt[Rt+2*pn+0]=(240&cn|cn>>4)*bn>>16&240|(15&cn|cn<<4)*bn>>16>>4&15,xt[Rt+2*pn+1]=240&Gn|xn}Rt+=$e}}function vi(xt,Rt,fe,Pe,$e,pn,cn,xn){var bn,Gn,Bi=255;for(Gn=0;Gn<$e;++Gn){for(bn=0;bn<Pe;++bn){var Ni=xt[Rt+bn];pn[cn+4*bn]=Ni,Bi&=Ni}Rt+=fe,cn+=xn}return Bi!=255}function _i(xt,Rt,fe,Pe,$e){var pn;for(pn=0;pn<$e;++pn)fe[Pe+pn]=xt[Rt+pn]>>8}function lr(){Al=Ae,Xa=vn,Ia=vi,za=_i}function Hr(xt,Rt,fe){ki[xt]=function(Pe,$e,pn,cn,xn,bn,Gn,Bi,Ni,Yi,Ri,wr,Br,Ui,zi,Ir,Jr){var eo,es=Jr-1>>1,Wo=xn[bn+0]|Gn[Bi+0]<<16,Ks=Ni[Yi+0]|Ri[wr+0]<<16;wt(Pe!=null);var ei=3*Wo+Ks+131074>>2;for(Rt(Pe[$e+0],255&ei,ei>>16,Br,Ui),pn!=null&&(ei=3*Ks+Wo+131074>>2,Rt(pn[cn+0],255&ei,ei>>16,zi,Ir)),eo=1;eo<=es;++eo){var fl=xn[bn+eo]|Gn[Bi+eo]<<16,Ll=Ni[Yi+eo]|Ri[wr+eo]<<16,el=Wo+fl+Ks+Ll+524296,Ra=el+2*(fl+Ks)>>3;ei=Ra+Wo>>1,Wo=(el=el+2*(Wo+Ll)>>3)+fl>>1,Rt(Pe[$e+2*eo-1],255&ei,ei>>16,Br,Ui+(2*eo-1)*fe),Rt(Pe[$e+2*eo-0],255&Wo,Wo>>16,Br,Ui+(2*eo-0)*fe),pn!=null&&(ei=el+Ks>>1,Wo=Ra+Ll>>1,Rt(pn[cn+2*eo-1],255&ei,ei>>16,zi,Ir+(2*eo-1)*fe),Rt(pn[cn+2*eo+0],255&Wo,Wo>>16,zi,Ir+(2*eo+0)*fe)),Wo=fl,Ks=Ll}1&Jr||(ei=3*Wo+Ks+131074>>2,Rt(Pe[$e+Jr-1],255&ei,ei>>16,Br,Ui+(Jr-1)*fe),pn!=null&&(ei=3*Ks+Wo+131074>>2,Rt(pn[cn+Jr-1],255&ei,ei>>16,zi,Ir+(Jr-1)*fe)))}}function fo(){vc[hh]=yc,vc[lu]=xp,vc[Yd]=ZA,vc[Eh]=wf,vc[nh]=Us,vc[wh]=Gg,vc[jl]=Sp,vc[zu]=xp,vc[$c]=wf,vc[Fd]=Us,vc[Cg]=Gg}function fs(xt){return xt&~Wg?0>xt?0:255:xt>>bg}function Ws(xt,Rt){return fs((19077*xt>>8)+(26149*Rt>>8)-14234)}function Da(xt,Rt,fe){return fs((19077*xt>>8)-(6419*Rt>>8)-(13320*fe>>8)+8708)}function ba(xt,Rt){return fs((19077*xt>>8)+(33050*Rt>>8)-17685)}function Sl(xt,Rt,fe,Pe,$e){Pe[$e+0]=Ws(xt,fe),Pe[$e+1]=Da(xt,Rt,fe),Pe[$e+2]=ba(xt,Rt)}function js(xt,Rt,fe,Pe,$e){Pe[$e+0]=ba(xt,Rt),Pe[$e+1]=Da(xt,Rt,fe),Pe[$e+2]=Ws(xt,fe)}function au(xt,Rt,fe,Pe,$e){var pn=Da(xt,Rt,fe);Rt=pn<<3&224|ba(xt,Rt)>>3,Pe[$e+0]=248&Ws(xt,fe)|pn>>5,Pe[$e+1]=Rt}function pu(xt,Rt,fe,Pe,$e){var pn=240&ba(xt,Rt)|15;Pe[$e+0]=240&Ws(xt,fe)|Da(xt,Rt,fe)>>4,Pe[$e+1]=pn}function dl(xt,Rt,fe,Pe,$e){Pe[$e+0]=255,Sl(xt,Rt,fe,Pe,$e+1)}function Fl(xt,Rt,fe,Pe,$e){js(xt,Rt,fe,Pe,$e),Pe[$e+3]=255}function yh(xt,Rt,fe,Pe,$e){Sl(xt,Rt,fe,Pe,$e),Pe[$e+3]=255}function bh(xt,Rt){return 0>xt?0:xt>Rt?Rt:xt}function oc(xt,Rt,fe){ki[xt]=function(Pe,$e,pn,cn,xn,bn,Gn,Bi,Ni){for(var Yi=Bi+(-2&Ni)*fe;Bi!=Yi;)Rt(Pe[$e+0],pn[cn+0],xn[bn+0],Gn,Bi),Rt(Pe[$e+1],pn[cn+0],xn[bn+0],Gn,Bi+fe),$e+=2,++cn,++bn,Bi+=2*fe;1&Ni&&Rt(Pe[$e+0],pn[cn+0],xn[bn+0],Gn,Bi)}}function Vd(xt,Rt,fe){return fe==0?xt==0?Rt==0?6:5:Rt==0?4:0:fe}function cA(xt,Rt,fe,Pe,$e){switch(xt>>>30){case 3:an(Rt,fe,Pe,$e,0);break;case 2:$n(Rt,fe,Pe,$e);break;case 1:Mi(Rt,fe,Pe,$e)}}function dA(xt,Rt){var fe,Pe,$e=Rt.M,pn=Rt.Nb,cn=xt.oc,xn=xt.pc+40,bn=xt.oc,Gn=xt.pc+584,Bi=xt.oc,Ni=xt.pc+600;for(fe=0;16>fe;++fe)cn[xn+32*fe-1]=129;for(fe=0;8>fe;++fe)bn[Gn+32*fe-1]=129,Bi[Ni+32*fe-1]=129;for(0<$e?cn[xn-1-32]=bn[Gn-1-32]=Bi[Ni-1-32]=129:(se(cn,xn-32-1,127,21),se(bn,Gn-32-1,127,9),se(Bi,Ni-32-1,127,9)),Pe=0;Pe<xt.za;++Pe){var Yi=Rt.ya[Rt.aa+Pe];if(0<Pe){for(fe=-1;16>fe;++fe)Ut(cn,xn+32*fe-4,cn,xn+32*fe+12,4);for(fe=-1;8>fe;++fe)Ut(bn,Gn+32*fe-4,bn,Gn+32*fe+4,4),Ut(Bi,Ni+32*fe-4,Bi,Ni+32*fe+4,4)}var Ri=xt.Gd,wr=xt.Hd+Pe,Br=Yi.ad,Ui=Yi.Hc;if(0<$e&&(Ut(cn,xn-32,Ri[wr].y,0,16),Ut(bn,Gn-32,Ri[wr].f,0,8),Ut(Bi,Ni-32,Ri[wr].ea,0,8)),Yi.Za){var zi=cn,Ir=xn-32+16;for(0<$e&&(Pe>=xt.za-1?se(zi,Ir,Ri[wr].y[15],4):Ut(zi,Ir,Ri[wr+1].y,0,4)),fe=0;4>fe;fe++)zi[Ir+128+fe]=zi[Ir+256+fe]=zi[Ir+384+fe]=zi[Ir+0+fe];for(fe=0;16>fe;++fe,Ui<<=2)zi=cn,Ir=xn+Ln[fe],Hh[Yi.Ob[fe]](zi,Ir),cA(Ui,Br,16*+fe,zi,Ir)}else if(zi=Vd(Pe,$e,Yi.Ob[0]),NA[zi](cn,xn),Ui!=0)for(fe=0;16>fe;++fe,Ui<<=2)cA(Ui,Br,16*+fe,cn,xn+Ln[fe]);for(fe=Yi.Gc,zi=Vd(Pe,$e,Yi.Dd),hd[zi](bn,Gn),hd[zi](Bi,Ni),Ui=Br,zi=bn,Ir=Gn,255&(Yi=fe>>0)&&(170&Yi?wn(Ui,256,zi,Ir):bi(Ui,256,zi,Ir)),Yi=Bi,Ui=Ni,255&(fe>>=8)&&(170&fe?wn(Br,320,Yi,Ui):bi(Br,320,Yi,Ui)),$e<xt.Ub-1&&(Ut(Ri[wr].y,0,cn,xn+480,16),Ut(Ri[wr].f,0,bn,Gn+224,8),Ut(Ri[wr].ea,0,Bi,Ni+224,8)),fe=8*pn*xt.B,Ri=xt.sa,wr=xt.ta+16*Pe+16*pn*xt.R,Br=xt.qa,Yi=xt.ra+8*Pe+fe,Ui=xt.Ha,zi=xt.Ia+8*Pe+fe,fe=0;16>fe;++fe)Ut(Ri,wr+fe*xt.R,cn,xn+32*fe,16);for(fe=0;8>fe;++fe)Ut(Br,Yi+fe*xt.B,bn,Gn+32*fe,8),Ut(Ui,zi+fe*xt.B,Bi,Ni+32*fe,8)}}function AA(xt,Rt,fe,Pe,$e,pn,cn,xn,bn){var Gn=[0],Bi=[0],Ni=0,Yi=bn!=null?bn.kd:0,Ri=bn!=null?bn:new ad;if(xt==null||12>fe)return 7;Ri.data=xt,Ri.w=Rt,Ri.ha=fe,Rt=[Rt],fe=[fe],Ri.gb=[Ri.gb];t:{var wr=Rt,Br=fe,Ui=Ri.gb;if(wt(xt!=null),wt(Br!=null),wt(Ui!=null),Ui[0]=0,12<=Br[0]&&!Ft(xt,wr[0],"RIFF")){if(Ft(xt,wr[0]+8,"WEBP")){Ui=3;break t}var zi=dr(xt,wr[0]+4);if(12>zi||4294967286<zi){Ui=3;break t}if(Yi&&zi>Br[0]-8){Ui=7;break t}Ui[0]=zi,wr[0]+=12,Br[0]-=12}Ui=0}if(Ui!=0)return Ui;for(zi=0<Ri.gb[0],fe=fe[0];;){t:{var Ir=xt;Br=Rt,Ui=fe;var Jr=Gn,eo=Bi,es=wr=[0];if((ei=Ni=[Ni])[0]=0,8>Ui[0])Ui=7;else{if(!Ft(Ir,Br[0],"VP8X")){if(dr(Ir,Br[0]+4)!=10){Ui=3;break t}if(18>Ui[0]){Ui=7;break t}var Wo=dr(Ir,Br[0]+8),Ks=1+ir(Ir,Br[0]+12);if(2147483648<=Ks*(Ir=1+ir(Ir,Br[0]+15))){Ui=3;break t}es!=null&&(es[0]=Wo),Jr!=null&&(Jr[0]=Ks),eo!=null&&(eo[0]=Ir),Br[0]+=18,Ui[0]-=18,ei[0]=1}Ui=0}}if(Ni=Ni[0],wr=wr[0],Ui!=0)return Ui;if(Br=!!(2&wr),!zi&&Ni)return 3;if(pn!=null&&(pn[0]=!!(16&wr)),cn!=null&&(cn[0]=Br),xn!=null&&(xn[0]=0),cn=Gn[0],wr=Bi[0],Ni&&Br&&bn==null){Ui=0;break}if(4>fe){Ui=7;break}if(zi&&Ni||!zi&&!Ni&&!Ft(xt,Rt[0],"ALPH")){fe=[fe],Ri.na=[Ri.na],Ri.P=[Ri.P],Ri.Sa=[Ri.Sa];t:{Wo=xt,Ui=Rt,zi=fe;var ei=Ri.gb;Jr=Ri.na,eo=Ri.P,es=Ri.Sa,Ks=22,wt(Wo!=null),wt(zi!=null),Ir=Ui[0];var fl=zi[0];for(wt(Jr!=null),wt(es!=null),Jr[0]=null,eo[0]=null,es[0]=0;;){if(Ui[0]=Ir,zi[0]=fl,8>fl){Ui=7;break t}var Ll=dr(Wo,Ir+4);if(4294967286<Ll){Ui=3;break t}var el=8+Ll+1&-2;if(Ks+=el,0<ei&&Ks>ei){Ui=3;break t}if(!Ft(Wo,Ir,"VP8 ")||!Ft(Wo,Ir,"VP8L")){Ui=0;break t}if(fl[0]<el){Ui=7;break t}Ft(Wo,Ir,"ALPH")||(Jr[0]=Wo,eo[0]=Ir+8,es[0]=Ll),Ir+=el,fl-=el}}if(fe=fe[0],Ri.na=Ri.na[0],Ri.P=Ri.P[0],Ri.Sa=Ri.Sa[0],Ui!=0)break}fe=[fe],Ri.Ja=[Ri.Ja],Ri.xa=[Ri.xa];t:if(ei=xt,Ui=Rt,zi=fe,Jr=Ri.gb[0],eo=Ri.Ja,es=Ri.xa,Wo=Ui[0],Ir=!Ft(ei,Wo,"VP8 "),Ks=!Ft(ei,Wo,"VP8L"),wt(ei!=null),wt(zi!=null),wt(eo!=null),wt(es!=null),8>zi[0])Ui=7;else{if(Ir||Ks){if(ei=dr(ei,Wo+4),12<=Jr&&ei>Jr-12){Ui=3;break t}if(Yi&&ei>zi[0]-8){Ui=7;break t}eo[0]=ei,Ui[0]+=8,zi[0]-=8,es[0]=Ks}else es[0]=5<=zi[0]&&ei[Wo+0]==47&&!(ei[Wo+4]>>5),eo[0]=zi[0];Ui=0}if(fe=fe[0],Ri.Ja=Ri.Ja[0],Ri.xa=Ri.xa[0],Rt=Rt[0],Ui!=0)break;if(4294967286<Ri.Ja)return 3;if(xn==null||Br||(xn[0]=Ri.xa?2:1),cn=[cn],wr=[wr],Ri.xa){if(5>fe){Ui=7;break}xn=cn,Yi=wr,Br=pn,xt==null||5>fe?xt=0:5<=fe&&xt[Rt+0]==47&&!(xt[Rt+4]>>5)?(zi=[0],ei=[0],Jr=[0],un(eo=new Te,xt,Rt,fe),ds(eo,zi,ei,Jr)?(xn!=null&&(xn[0]=zi[0]),Yi!=null&&(Yi[0]=ei[0]),Br!=null&&(Br[0]=Jr[0]),xt=1):xt=0):xt=0}else{if(10>fe){Ui=7;break}xn=wr,xt==null||10>fe||!eu(xt,Rt+3,fe-3)?xt=0:(Yi=xt[Rt+0]|xt[Rt+1]<<8|xt[Rt+2]<<16,Br=16383&(xt[Rt+7]<<8|xt[Rt+6]),xt=16383&(xt[Rt+9]<<8|xt[Rt+8]),1&Yi||3<(Yi>>1&7)||!(Yi>>4&1)||Yi>>5>=Ri.Ja||!Br||!xt?xt=0:(cn&&(cn[0]=Br),xn&&(xn[0]=xt),xt=1))}if(!xt||(cn=cn[0],wr=wr[0],Ni&&(Gn[0]!=cn||Bi[0]!=wr)))return 3;bn!=null&&(bn[0]=Ri,bn.offset=Rt-bn.w,wt(4294967286>Rt-bn.w),wt(bn.offset==bn.ha-fe));break}return Ui==0||Ui==7&&Ni&&bn==null?(pn!=null&&(pn[0]|=Ri.na!=null&&0<Ri.na.length),Pe!=null&&(Pe[0]=cn),$e!=null&&($e[0]=wr),0):Ui}function Ic(xt,Rt,fe){var Pe=Rt.width,$e=Rt.height,pn=0,cn=0,xn=Pe,bn=$e;if(Rt.Da=xt!=null&&0<xt.Da,Rt.Da&&(xn=xt.cd,bn=xt.bd,pn=xt.v,cn=xt.j,11>fe||(pn&=-2,cn&=-2),0>pn||0>cn||0>=xn||0>=bn||pn+xn>Pe||cn+bn>$e))return 0;if(Rt.v=pn,Rt.j=cn,Rt.va=pn+xn,Rt.o=cn+bn,Rt.U=xn,Rt.T=bn,Rt.da=xt!=null&&0<xt.da,Rt.da){if(!no(xn,bn,fe=[xt.ib],pn=[xt.hb]))return 0;Rt.ib=fe[0],Rt.hb=pn[0]}return Rt.ob=xt!=null&&xt.ob,Rt.Kb=xt==null||!xt.Sd,Rt.da&&(Rt.ob=Rt.ib<3*Pe/4&&Rt.hb<3*$e/4,Rt.Kb=0),1}function Ed(xt){if(xt==null)return 2;if(11>xt.S){var Rt=xt.f.RGBA;Rt.fb+=(xt.height-1)*Rt.A,Rt.A=-Rt.A}else Rt=xt.f.kb,xt=xt.height,Rt.O+=(xt-1)*Rt.fa,Rt.fa=-Rt.fa,Rt.N+=(xt-1>>1)*Rt.Ab,Rt.Ab=-Rt.Ab,Rt.W+=(xt-1>>1)*Rt.Db,Rt.Db=-Rt.Db,Rt.F!=null&&(Rt.J+=(xt-1)*Rt.lb,Rt.lb=-Rt.lb);return 0}function kc(xt,Rt,fe,Pe){if(Pe==null||0>=xt||0>=Rt)return 2;if(fe!=null){if(fe.Da){var $e=fe.cd,pn=fe.bd,cn=-2&fe.v,xn=-2&fe.j;if(0>cn||0>xn||0>=$e||0>=pn||cn+$e>xt||xn+pn>Rt)return 2;xt=$e,Rt=pn}if(fe.da){if(!no(xt,Rt,$e=[fe.ib],pn=[fe.hb]))return 2;xt=$e[0],Rt=pn[0]}}Pe.width=xt,Pe.height=Rt;t:{var bn=Pe.width,Gn=Pe.height;if(xt=Pe.S,0>=bn||0>=Gn||!(xt>=hh&&13>xt))xt=2;else{if(0>=Pe.Rd&&Pe.sd==null){cn=pn=$e=Rt=0;var Bi=(xn=bn*Qi[xt])*Gn;if(11>xt||(pn=(Gn+1)/2*(Rt=(bn+1)/2),xt==12&&(cn=($e=bn)*Gn)),(Gn=Vt(Bi+2*pn+cn))==null){xt=1;break t}Pe.sd=Gn,11>xt?((bn=Pe.f.RGBA).eb=Gn,bn.fb=0,bn.A=xn,bn.size=Bi):((bn=Pe.f.kb).y=Gn,bn.O=0,bn.fa=xn,bn.Fd=Bi,bn.f=Gn,bn.N=0+Bi,bn.Ab=Rt,bn.Cd=pn,bn.ea=Gn,bn.W=0+Bi+pn,bn.Db=Rt,bn.Ed=pn,xt==12&&(bn.F=Gn,bn.J=0+Bi+2*pn),bn.Tc=cn,bn.lb=$e)}if(Rt=1,$e=Pe.S,pn=Pe.width,cn=Pe.height,$e>=hh&&13>$e)if(11>$e)xt=Pe.f.RGBA,Rt&=(xn=Math.abs(xt.A))*(cn-1)+pn<=xt.size,Rt&=xn>=pn*Qi[$e],Rt&=xt.eb!=null;else{xt=Pe.f.kb,xn=(pn+1)/2,Bi=(cn+1)/2,bn=Math.abs(xt.fa),Gn=Math.abs(xt.Ab);var Ni=Math.abs(xt.Db),Yi=Math.abs(xt.lb),Ri=Yi*(cn-1)+pn;Rt&=bn*(cn-1)+pn<=xt.Fd,Rt&=Gn*(Bi-1)+xn<=xt.Cd,Rt=(Rt&=Ni*(Bi-1)+xn<=xt.Ed)&bn>=pn&Gn>=xn&Ni>=xn,Rt&=xt.y!=null,Rt&=xt.f!=null,Rt&=xt.ea!=null,$e==12&&(Rt&=Yi>=pn,Rt&=Ri<=xt.Tc,Rt&=xt.F!=null)}else Rt=0;xt=Rt?0:2}}return xt!=0||fe!=null&&fe.fd&&(xt=Ed(Pe)),xt}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,Gl=32,Rh=8,Qu=[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];pr("Predictor0","PredictorAdd0"),ki.Predictor0=function(){return 4278190080},ki.Predictor1=function(xt){return xt},ki.Predictor2=function(xt,Rt,fe){return Rt[fe+0]},ki.Predictor3=function(xt,Rt,fe){return Rt[fe+1]},ki.Predictor4=function(xt,Rt,fe){return Rt[fe-1]},ki.Predictor5=function(xt,Rt,fe){return qi(qi(xt,Rt[fe+1]),Rt[fe+0])},ki.Predictor6=function(xt,Rt,fe){return qi(xt,Rt[fe-1])},ki.Predictor7=function(xt,Rt,fe){return qi(xt,Rt[fe+0])},ki.Predictor8=function(xt,Rt,fe){return qi(Rt[fe-1],Rt[fe+0])},ki.Predictor9=function(xt,Rt,fe){return qi(Rt[fe+0],Rt[fe+1])},ki.Predictor10=function(xt,Rt,fe){return qi(qi(xt,Rt[fe-1]),qi(Rt[fe+0],Rt[fe+1]))},ki.Predictor11=function(xt,Rt,fe){var Pe=Rt[fe+0];return 0>=po(Pe>>24&255,xt>>24&255,(Rt=Rt[fe-1])>>24&255)+po(Pe>>16&255,xt>>16&255,Rt>>16&255)+po(Pe>>8&255,xt>>8&255,Rt>>8&255)+po(255&Pe,255&xt,255&Rt)?Pe:xt},ki.Predictor12=function(xt,Rt,fe){var Pe=Rt[fe+0];return(Nr((xt>>24&255)+(Pe>>24&255)-((Rt=Rt[fe-1])>>24&255))<<24|Nr((xt>>16&255)+(Pe>>16&255)-(Rt>>16&255))<<16|Nr((xt>>8&255)+(Pe>>8&255)-(Rt>>8&255))<<8|Nr((255&xt)+(255&Pe)-(255&Rt)))>>>0},ki.Predictor13=function(xt,Rt,fe){var Pe=Rt[fe-1];return(oo((xt=qi(xt,Rt[fe+0]))>>24&255,Pe>>24&255)<<24|oo(xt>>16&255,Pe>>16&255)<<16|oo(xt>>8&255,Pe>>8&255)<<8|oo(xt>>0&255,Pe>>0&255))>>>0};var ld=ki.PredictorAdd0;ki.PredictorAdd1=So,pr("Predictor2","PredictorAdd2"),pr("Predictor3","PredictorAdd3"),pr("Predictor4","PredictorAdd4"),pr("Predictor5","PredictorAdd5"),pr("Predictor6","PredictorAdd6"),pr("Predictor7","PredictorAdd7"),pr("Predictor8","PredictorAdd8"),pr("Predictor9","PredictorAdd9"),pr("Predictor10","PredictorAdd10"),pr("Predictor11","PredictorAdd11"),pr("Predictor12","PredictorAdd12"),pr("Predictor13","PredictorAdd13");var Tl=ki.PredictorAdd2;hs("ColorIndexInverseTransform","MapARGB","32b",function(xt){return xt>>8&255},function(xt){return xt}),hs("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(xt){return xt},function(xt){return xt>>8&255});var Xd,Fu=ki.ColorIndexInverseTransform,sc=ki.MapARGB,$d=ki.VP8LColorIndexInverseTransformAlpha,it=ki.MapAlpha,st=ki.VP8LPredictorsAdd=[];st.length=16,(ki.VP8LPredictors=[]).length=16,(ki.VP8LPredictorsAdd_C=[]).length=16,(ki.VP8LPredictors_C=[]).length=16;var vt,gt,Bt,te,xe,Ue,je,an,$n,wn,Mi,bi,br,Tr,$r,mo,Jo,Mo,rs,Ts,No,Js,Ol,zl,Al,Xa,Ia,za,Pl=Vt(511),mu=Vt(2041),Oo=Vt(225),Ca=Vt(767),Kl=0,Dl=mu,Xu=Oo,sa=Ca,Qs=Pl,hh=0,lu=1,Yd=2,Eh=3,nh=4,wh=5,jl=6,zu=7,$c=8,Fd=9,Cg=10,_h=[2,3,7],Bg=[3,3,11],ud=[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],Ld=[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],Cu=null,xh=[[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]]]],Xf=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],NA=[],Hh=[],hd=[],Pg=1,Yc=2,Qh=[],vc=[];Hr("UpsampleRgbLinePair",Sl,3),Hr("UpsampleBgrLinePair",js,3),Hr("UpsampleRgbaLinePair",yh,4),Hr("UpsampleBgraLinePair",Fl,4),Hr("UpsampleArgbLinePair",dl,4),Hr("UpsampleRgba4444LinePair",pu,2),Hr("UpsampleRgb565LinePair",au,2);var yc=ki.UpsampleRgbLinePair,ZA=ki.UpsampleBgrLinePair,xp=ki.UpsampleRgbaLinePair,wf=ki.UpsampleBgraLinePair,Us=ki.UpsampleArgbLinePair,Gg=ki.UpsampleRgba4444LinePair,Sp=ki.UpsampleRgb565LinePair,xf=16,IA=1<<xf-1,gA=-227,cd=482,bg=6,Wg=(256<<bg)-1,Eg=0,Dt=Vt(256),Tt=Vt(256),Qt=Vt(256),Ht=Vt(256),Be=Vt(cd-gA),Je=Vt(cd-gA);oc("YuvToRgbRow",Sl,3),oc("YuvToBgrRow",js,3),oc("YuvToRgbaRow",yh,4),oc("YuvToBgraRow",Fl,4),oc("YuvToArgbRow",dl,4),oc("YuvToRgba4444Row",pu,2),oc("YuvToRgb565Row",au,2);var Ln=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],ni=[0,2,8],jn=[8,7,6,4,4,2,2,2,1,1,1,1],Di=1;this.WebPDecodeRGBA=function(xt,Rt,fe,Pe,$e){var pn=lu,cn=new pc,xn=new ss;cn.ba=xn,xn.S=pn,xn.width=[xn.width],xn.height=[xn.height];var bn=xn.width,Gn=xn.height,Bi=new cs;if(Bi==null||xt==null)var Ni=2;else wt(Bi!=null),Ni=AA(xt,Rt,fe,Bi.width,Bi.height,Bi.Pd,Bi.Qd,Bi.format,null);if(Ni!=0?bn=0:(bn!=null&&(bn[0]=Bi.width[0]),Gn!=null&&(Gn[0]=Bi.height[0]),bn=1),bn){xn.width=xn.width[0],xn.height=xn.height[0],Pe!=null&&(Pe[0]=xn.width),$e!=null&&($e[0]=xn.height);t:{if(Pe=new Vu,($e=new ad).data=xt,$e.w=Rt,$e.ha=fe,$e.kd=1,Rt=[0],wt($e!=null),((xt=AA($e.data,$e.w,$e.ha,null,null,null,Rt,null,$e))==0||xt==7)&&Rt[0]&&(xt=4),(Rt=xt)==0){if(wt(cn!=null),Pe.data=$e.data,Pe.w=$e.w+$e.offset,Pe.ha=$e.ha-$e.offset,Pe.put=ea,Pe.ac=Rs,Pe.bc=Ql,Pe.ma=cn,$e.xa){if((xt=Fa())==null){cn=1;break t}if(function(Yi,Ri){var wr=[0],Br=[0],Ui=[0];e:for(;;){if(Yi==null)return 0;if(Ri==null)return Yi.a=2,0;if(Yi.l=Ri,Yi.a=0,un(Yi.m,Ri.data,Ri.w,Ri.ha),!ds(Yi.m,wr,Br,Ui)){Yi.a=3;break e}if(Yi.xb=Yc,Ri.width=wr[0],Ri.height=Br[0],!El(wr[0],Br[0],1,Yi,null))break e;return 1}return wt(Yi.a!=0),0}(xt,Pe)){if(Pe=(Rt=kc(Pe.width,Pe.height,cn.Oa,cn.ba))==0){e:{Pe=xt;n:for(;;){if(Pe==null){Pe=0;break e}if(wt(Pe.s.yc!=null),wt(Pe.s.Ya!=null),wt(0<Pe.s.Wb),wt((fe=Pe.l)!=null),wt(($e=fe.ma)!=null),Pe.xb!=0){if(Pe.ca=$e.ba,Pe.tb=$e.tb,wt(Pe.ca!=null),!Ic($e.Oa,fe,Eh)){Pe.a=2;break n}if(!ku(Pe,fe.width)||fe.da)break n;if((fe.da||Ds(Pe.ca.S))&&lr(),11>Pe.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),Pe.ca.f.kb.F!=null&&lr()),Pe.Pb&&0<Pe.s.ua&&Pe.s.vb.X==null&&!Xr(Pe.s.vb,Pe.s.Wa.Xa)){Pe.a=1;break n}Pe.xb=0}if(!ol(Pe,Pe.V,Pe.Ba,Pe.c,Pe.i,fe.o,wa))break n;$e.Dc=Pe.Ma,Pe=1;break e}wt(Pe.a!=0),Pe=0}Pe=!Pe}Pe&&(Rt=xt.a)}else Rt=xt.a}else{if((xt=new La)==null){cn=1;break t}if(xt.Fa=$e.na,xt.P=$e.P,xt.qc=$e.Sa,vl(xt,Pe)){if((Rt=kc(Pe.width,Pe.height,cn.Oa,cn.ba))==0){if(xt.Aa=0,fe=cn.Oa,wt(($e=xt)!=null),fe!=null){if(0<(bn=0>(bn=fe.Md)?0:100<bn?255:255*bn/100)){for(Gn=Bi=0;4>Gn;++Gn)12>(Ni=$e.pb[Gn]).lc&&(Ni.ia=bn*jn[0>Ni.lc?0:Ni.lc]>>3),Bi|=Ni.ia;Bi&&(alert("todo:VP8InitRandom"),$e.ia=1)}$e.Ga=fe.Id,100<$e.Ga?$e.Ga=100:0>$e.Ga&&($e.Ga=0)}Hu(xt,Pe)||(Rt=xt.a)}}else Rt=xt.a}Rt==0&&cn.Oa!=null&&cn.Oa.fd&&(Rt=Ed(cn.ba))}cn=Rt}pn=cn!=0?null:11>pn?xn.f.RGBA.eb:xn.f.kb.y}else pn=null;return pn};var Qi=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function Ye(ki,yr){for(var Kr="",Kn=0;Kn<4;Kn++)Kr+=String.fromCharCode(ki[yr++]);return Kr}function gn(ki,yr){return(ki[yr+0]<<0|ki[yr+1]<<8|ki[yr+2]<<16)>>>0}function fn(ki,yr){return(ki[yr+0]<<0|ki[yr+1]<<8|ki[yr+2]<<16|ki[yr+3]<<24)>>>0}new Ee;var In=[0],Qe=[0],ci=[],Yn=new Ee,mi=Et,Rn=function(ki,yr){var Kr={},Kn=0,Jn=!1,Wi=0,ge=0;if(Kr.frames=[],!function(ln,mn,Fn,Xn){for(var li=0;li<Xn;li++)if(ln[mn+li]!=Fn.charCodeAt(li))return!0;return!1}(ki,yr,"RIFF",4)){for(fn(ki,yr+=4),yr+=8;yr<ki.length;){var Ce=Ye(ki,yr),Ve=fn(ki,yr+=4);yr+=4;var en=Ve+(1&Ve);switch(Ce){case"VP8 ":case"VP8L":Kr.frames[Kn]===void 0&&(Kr.frames[Kn]={}),(Dn=Kr.frames[Kn]).src_off=Jn?ge:yr-8,Dn.src_size=Wi+Ve+8,Kn++,Jn&&(Jn=!1,Wi=0,ge=0);break;case"VP8X":(Dn=Kr.header={}).feature_flags=ki[yr];var un=yr+4;Dn.canvas_width=1+gn(ki,un),un+=3,Dn.canvas_height=1+gn(ki,un),un+=3;break;case"ALPH":Jn=!0,Wi=en+8,ge=yr-8;break;case"ANIM":(Dn=Kr.header).bgcolor=fn(ki,yr),un=yr+4,Dn.loop_count=(qn=ki)[(Te=un)+0]<<0|qn[Te+1]<<8,un+=2;break;case"ANMF":var hn,Dn;(Dn=Kr.frames[Kn]={}).offset_x=2*gn(ki,yr),yr+=3,Dn.offset_y=2*gn(ki,yr),yr+=3,Dn.width=1+gn(ki,yr),yr+=3,Dn.height=1+gn(ki,yr),yr+=3,Dn.duration=gn(ki,yr),yr+=3,hn=ki[yr++],Dn.dispose=1&hn,Dn.blend=hn>>1&1}Ce!="ANMF"&&(yr+=en)}var qn,Te;return Kr}}(mi,0);Rn.response=mi,Rn.rgbaoutput=!0,Rn.dataurl=!1;var Ai=Rn.header?Rn.header:null,Hi=Rn.frames?Rn.frames:null;if(Ai){Ai.loop_counter=Ai.loop_count,In=[Ai.canvas_height],Qe=[Ai.canvas_width];for(var sr=0;sr<Hi.length&&Hi[sr].blend!=0;sr++);}var Er=Hi[0],to=Yn.WebPDecodeRGBA(mi,Er.src_off,Er.src_size,Qe,In);Er.rgba=to,Er.imgwidth=Qe[0],Er.imgheight=In[0];for(var gr=0;gr<Qe[0]*In[0]*4;gr++)ci[gr]=to[gr];return this.width=Qe,this.height=In,this.data=ci,this}(function(Et){var wt=function(){return typeof Tn=="function"},Ft=function(In,Qe,ci,Yn){var mi=4,Rn=pe;switch(Yn){case Et.image_compression.FAST:mi=1,Rn=Vt;break;case Et.image_compression.MEDIUM:mi=6,Rn=ye;break;case Et.image_compression.SLOW:mi=9,Rn=Ee}In=Ut(In,Qe,ci,Rn);var Ai=Tn(In,{level:mi});return Et.__addimage__.arrayBufferToBinaryString(Ai)},Ut=function(In,Qe,ci,Yn){for(var mi,Rn,Ai,Hi=In.length/Qe,sr=new Uint8Array(In.length+Hi),Er=gn(),to=0;to<Hi;to+=1){if(Ai=to*Qe,mi=In.subarray(Ai,Ai+Qe),Yn)sr.set(Yn(mi,ci,Rn),Ai+to);else{for(var gr,ki=Er.length,yr=[];gr<ki;gr+=1)yr[gr]=Er[gr](mi,ci,Rn);var Kr=fn(yr.concat());sr.set(yr[Kr],Ai+to)}Rn=mi}return sr},se=function(In){var Qe=Array.apply([],In);return Qe.unshift(0),Qe},Vt=function(In,Qe){var ci,Yn=[],mi=In.length;Yn[0]=1;for(var Rn=0;Rn<mi;Rn+=1)ci=In[Rn-Qe]||0,Yn[Rn+1]=In[Rn]-ci+256&255;return Yn},pe=function(In,Qe,ci){var Yn,mi=[],Rn=In.length;mi[0]=2;for(var Ai=0;Ai<Rn;Ai+=1)Yn=ci&&ci[Ai]||0,mi[Ai+1]=In[Ai]-Yn+256&255;return mi},ye=function(In,Qe,ci){var Yn,mi,Rn=[],Ai=In.length;Rn[0]=3;for(var Hi=0;Hi<Ai;Hi+=1)Yn=In[Hi-Qe]||0,mi=ci&&ci[Hi]||0,Rn[Hi+1]=In[Hi]+256-(Yn+mi>>>1)&255;return Rn},Ee=function(In,Qe,ci){var Yn,mi,Rn,Ai,Hi=[],sr=In.length;Hi[0]=4;for(var Er=0;Er<sr;Er+=1)Yn=In[Er-Qe]||0,mi=ci&&ci[Er]||0,Rn=ci&&ci[Er-Qe]||0,Ai=Ye(Yn,mi,Rn),Hi[Er+1]=In[Er]-Ai+256&255;return Hi},Ye=function(In,Qe,ci){if(In===Qe&&Qe===ci)return In;var Yn=Math.abs(Qe-ci),mi=Math.abs(In-ci),Rn=Math.abs(In+Qe-ci-ci);return Yn<=mi&&Yn<=Rn?In:mi<=Rn?Qe:ci},gn=function(){return[se,Vt,pe,ye,Ee]},fn=function(In){var Qe=In.map(function(ci){return ci.reduce(function(Yn,mi){return Yn+Math.abs(mi)},0)});return Qe.indexOf(Math.min.apply(null,Qe))};Et.processPNG=function(In,Qe,ci,Yn){var mi,Rn,Ai,Hi,sr,Er,to,gr,ki,yr,Kr,Kn,Jn,Wi,ge,Ce=this.decode.FLATE_DECODE,Ve="";if(this.__addimage__.isArrayBuffer(In)&&(In=new Uint8Array(In)),this.__addimage__.isArrayBufferView(In)){if(In=(Ai=new sA(In)).imgData,Rn=Ai.bits,mi=Ai.colorSpace,sr=Ai.colors,[4,6].indexOf(Ai.colorType)!==-1){if(Ai.bits===8){ki=(gr=Ai.pixelBitlength==32?new Uint32Array(Ai.decodePixels().buffer):Ai.pixelBitlength==16?new Uint16Array(Ai.decodePixels().buffer):new Uint8Array(Ai.decodePixels().buffer)).length,Kr=new Uint8Array(ki*Ai.colors),yr=new Uint8Array(ki);var en,un=Ai.pixelBitlength-Ai.bits;for(Wi=0,ge=0;Wi<ki;Wi++){for(Jn=gr[Wi],en=0;en<un;)Kr[ge++]=Jn>>>en&255,en+=Ai.bits;yr[Wi]=Jn>>>en&255}}if(Ai.bits===16){ki=(gr=new Uint32Array(Ai.decodePixels().buffer)).length,Kr=new Uint8Array(ki*(32/Ai.pixelBitlength)*Ai.colors),yr=new Uint8Array(ki*(32/Ai.pixelBitlength)),Kn=Ai.colors>1,Wi=0,ge=0;for(var hn=0;Wi<ki;)Jn=gr[Wi++],Kr[ge++]=Jn>>>0&255,Kn&&(Kr[ge++]=Jn>>>16&255,Jn=gr[Wi++],Kr[ge++]=Jn>>>0&255),yr[hn++]=Jn>>>16&255;Rn=8}Yn!==Et.image_compression.NONE&&wt()?(In=Ft(Kr,Ai.width*Ai.colors,Ai.colors,Yn),to=Ft(yr,Ai.width,1,Yn)):(In=Kr,to=yr,Ce=void 0)}if(Ai.colorType===3&&(mi=this.color_spaces.INDEXED,Er=Ai.palette,Ai.transparency.indexed)){var Dn=Ai.transparency.indexed,qn=0;for(Wi=0,ki=Dn.length;Wi<ki;++Wi)qn+=Dn[Wi];if((qn/=255)===ki-1&&Dn.indexOf(0)!==-1)Hi=[Dn.indexOf(0)];else if(qn!==ki){for(gr=Ai.decodePixels(),yr=new Uint8Array(gr.length),Wi=0,ki=gr.length;Wi<ki;Wi++)yr[Wi]=Dn[gr[Wi]];to=Ft(yr,Ai.width,1)}}var Te=function(ln){var mn;switch(ln){case Et.image_compression.FAST:mn=11;break;case Et.image_compression.MEDIUM:mn=13;break;case Et.image_compression.SLOW:mn=14;break;default:mn=12}return mn}(Yn);return Ce===this.decode.FLATE_DECODE&&(Ve="/Predictor "+Te+" "),Ve+="/Colors "+sr+" /BitsPerComponent "+Rn+" /Columns "+Ai.width,(this.__addimage__.isArrayBuffer(In)||this.__addimage__.isArrayBufferView(In))&&(In=this.__addimage__.arrayBufferToBinaryString(In)),(to&&this.__addimage__.isArrayBuffer(to)||this.__addimage__.isArrayBufferView(to))&&(to=this.__addimage__.arrayBufferToBinaryString(to)),{alias:ci,data:In,index:Qe,filter:Ce,decodeParameters:Ve,transparency:Hi,palette:Er,sMask:to,predictor:Te,width:Ai.width,height:Ai.height,bitsPerComponent:Rn,colorSpace:mi}}}})(Ho.API),function(Et){Et.processGIF89A=function(wt,Ft,Ut,se){var Vt=new En(wt),pe=Vt.width,ye=Vt.height,Ee=[];Vt.decodeAndBlitFrameRGBA(0,Ee);var Ye={data:Ee,width:pe,height:ye},gn=new aA(100).encode(Ye,100);return Et.processJPEG.call(this,gn,Ft,Ut,se)},Et.processGIF87A=Et.processGIF89A}(Ho.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 Et=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(Et);for(var wt=0;wt<Et;wt++){var Ft=this.datav.getUint8(this.pos++,!0),Ut=this.datav.getUint8(this.pos++,!0),se=this.datav.getUint8(this.pos++,!0),Vt=this.datav.getUint8(this.pos++,!0);this.palette[wt]={red:se,green:Ut,blue:Ft,quad:Vt}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},tc.prototype.parseBGR=function(){this.pos=this.offset;try{var Et="bit"+this.bitPP,wt=this.width*this.height*4;this.data=new Uint8Array(wt),this[Et]()}catch(Ft){Bo.log("bit decode error:"+Ft)}},tc.prototype.bit1=function(){var Et,wt=Math.ceil(this.width/8),Ft=wt%4;for(Et=this.height-1;Et>=0;Et--){for(var Ut=this.bottom_up?Et:this.height-1-Et,se=0;se<wt;se++)for(var Vt=this.datav.getUint8(this.pos++,!0),pe=Ut*this.width*4+8*se*4,ye=0;ye<8&&8*se+ye<this.width;ye++){var Ee=this.palette[Vt>>7-ye&1];this.data[pe+4*ye]=Ee.blue,this.data[pe+4*ye+1]=Ee.green,this.data[pe+4*ye+2]=Ee.red,this.data[pe+4*ye+3]=255}Ft!==0&&(this.pos+=4-Ft)}},tc.prototype.bit4=function(){for(var Et=Math.ceil(this.width/2),wt=Et%4,Ft=this.height-1;Ft>=0;Ft--){for(var Ut=this.bottom_up?Ft:this.height-1-Ft,se=0;se<Et;se++){var Vt=this.datav.getUint8(this.pos++,!0),pe=Ut*this.width*4+2*se*4,ye=Vt>>4,Ee=15&Vt,Ye=this.palette[ye];if(this.data[pe]=Ye.blue,this.data[pe+1]=Ye.green,this.data[pe+2]=Ye.red,this.data[pe+3]=255,2*se+1>=this.width)break;Ye=this.palette[Ee],this.data[pe+4]=Ye.blue,this.data[pe+4+1]=Ye.green,this.data[pe+4+2]=Ye.red,this.data[pe+4+3]=255}wt!==0&&(this.pos+=4-wt)}},tc.prototype.bit8=function(){for(var Et=this.width%4,wt=this.height-1;wt>=0;wt--){for(var Ft=this.bottom_up?wt:this.height-1-wt,Ut=0;Ut<this.width;Ut++){var se=this.datav.getUint8(this.pos++,!0),Vt=Ft*this.width*4+4*Ut;if(se<this.palette.length){var pe=this.palette[se];this.data[Vt]=pe.red,this.data[Vt+1]=pe.green,this.data[Vt+2]=pe.blue,this.data[Vt+3]=255}else this.data[Vt]=255,this.data[Vt+1]=255,this.data[Vt+2]=255,this.data[Vt+3]=255}Et!==0&&(this.pos+=4-Et)}},tc.prototype.bit15=function(){for(var Et=this.width%3,wt=parseInt("11111",2),Ft=this.height-1;Ft>=0;Ft--){for(var Ut=this.bottom_up?Ft:this.height-1-Ft,se=0;se<this.width;se++){var Vt=this.datav.getUint16(this.pos,!0);this.pos+=2;var pe=(Vt&wt)/wt*255|0,ye=(Vt>>5&wt)/wt*255|0,Ee=(Vt>>10&wt)/wt*255|0,Ye=Vt>>15?255:0,gn=Ut*this.width*4+4*se;this.data[gn]=Ee,this.data[gn+1]=ye,this.data[gn+2]=pe,this.data[gn+3]=Ye}this.pos+=Et}},tc.prototype.bit16=function(){for(var Et=this.width%3,wt=parseInt("11111",2),Ft=parseInt("111111",2),Ut=this.height-1;Ut>=0;Ut--){for(var se=this.bottom_up?Ut:this.height-1-Ut,Vt=0;Vt<this.width;Vt++){var pe=this.datav.getUint16(this.pos,!0);this.pos+=2;var ye=(pe&wt)/wt*255|0,Ee=(pe>>5&Ft)/Ft*255|0,Ye=(pe>>11)/wt*255|0,gn=se*this.width*4+4*Vt;this.data[gn]=Ye,this.data[gn+1]=Ee,this.data[gn+2]=ye,this.data[gn+3]=255}this.pos+=Et}},tc.prototype.bit24=function(){for(var Et=this.height-1;Et>=0;Et--){for(var wt=this.bottom_up?Et:this.height-1-Et,Ft=0;Ft<this.width;Ft++){var Ut=this.datav.getUint8(this.pos++,!0),se=this.datav.getUint8(this.pos++,!0),Vt=this.datav.getUint8(this.pos++,!0),pe=wt*this.width*4+4*Ft;this.data[pe]=Vt,this.data[pe+1]=se,this.data[pe+2]=Ut,this.data[pe+3]=255}this.pos+=this.width%4}},tc.prototype.bit32=function(){for(var Et=this.height-1;Et>=0;Et--)for(var wt=this.bottom_up?Et:this.height-1-Et,Ft=0;Ft<this.width;Ft++){var Ut=this.datav.getUint8(this.pos++,!0),se=this.datav.getUint8(this.pos++,!0),Vt=this.datav.getUint8(this.pos++,!0),pe=this.datav.getUint8(this.pos++,!0),ye=wt*this.width*4+4*Ft;this.data[ye]=Vt,this.data[ye+1]=se,this.data[ye+2]=Ut,this.data[ye+3]=pe}},tc.prototype.getData=function(){return this.data},function(Et){Et.processBMP=function(wt,Ft,Ut,se){var Vt=new tc(wt,!1),pe=Vt.width,ye=Vt.height,Ee={data:Vt.getData(),width:pe,height:ye},Ye=new aA(100).encode(Ee,100);return Et.processJPEG.call(this,Ye,Ft,Ut,se)}}(Ho.API),Ru.prototype.getData=function(){return this.data},function(Et){Et.processWEBP=function(wt,Ft,Ut,se){var Vt=new Ru(wt),pe=Vt.width,ye=Vt.height,Ee={data:Vt.getData(),width:pe,height:ye},Ye=new aA(100).encode(Ee,100);return Et.processJPEG.call(this,Ye,Ft,Ut,se)}}(Ho.API),Ho.API.processRGBA=function(Et,wt,Ft){for(var Ut=Et.data,se=Ut.length,Vt=new Uint8Array(se/4*3),pe=new Uint8Array(se/4),ye=0,Ee=0,Ye=0;Ye<se;Ye+=4){var gn=Ut[Ye],fn=Ut[Ye+1],In=Ut[Ye+2],Qe=Ut[Ye+3];Vt[ye++]=gn,Vt[ye++]=fn,Vt[ye++]=In,pe[Ee++]=Qe}var ci=this.__addimage__.arrayBufferToBinaryString(Vt);return{alpha:this.__addimage__.arrayBufferToBinaryString(pe),data:ci,index:wt,alias:Ft,colorSpace:"DeviceRGB",bitsPerComponent:8,width:Et.width,height:Et.height}},Ho.API.setLanguage=function(Et){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"}[Et]!==void 0&&(this.internal.languageSettings.languageCode=Et,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},hl=Ho.API,Ud=hl.getCharWidthsArray=function(Et,wt){var Ft,Ut,se=(wt=wt||{}).font||this.internal.getFont(),Vt=wt.fontSize||this.internal.getFontSize(),pe=wt.charSpace||this.internal.getCharSpace(),ye=wt.widths?wt.widths:se.metadata.Unicode.widths,Ee=ye.fof?ye.fof:1,Ye=wt.kerning?wt.kerning:se.metadata.Unicode.kerning,gn=Ye.fof?Ye.fof:1,fn=wt.doKerning!==!1,In=0,Qe=Et.length,ci=0,Yn=ye[0]||Ee,mi=[];for(Ft=0;Ft<Qe;Ft++)Ut=Et.charCodeAt(Ft),typeof se.metadata.widthOfString=="function"?mi.push((se.metadata.widthOfGlyph(se.metadata.characterToGlyph(Ut))+pe*(1e3/Vt)||0)/1e3):(In=fn&&(0,Mt.Z)(Ye[Ut])==="object"&&!isNaN(parseInt(Ye[Ut][ci],10))?Ye[Ut][ci]/gn:0,mi.push((ye[Ut]||Yn)/Ee+In)),ci=Ut;return mi},nd=hl.getStringUnitWidth=function(Et,wt){var Ft=(wt=wt||{}).fontSize||this.internal.getFontSize(),Ut=wt.font||this.internal.getFont(),se=wt.charSpace||this.internal.getCharSpace();return hl.processArabic&&(Et=hl.processArabic(Et)),typeof Ut.metadata.widthOfString=="function"?Ut.metadata.widthOfString(Et,Ft,se)/Ft:Ud.apply(this,arguments).reduce(function(Vt,pe){return Vt+pe},0)},dh=function(Et,wt,Ft,Ut){for(var se=[],Vt=0,pe=Et.length,ye=0;Vt!==pe&&ye+wt[Vt]<Ft;)ye+=wt[Vt],Vt++;se.push(Et.slice(0,Vt));var Ee=Vt;for(ye=0;Vt!==pe;)ye+wt[Vt]>Ut&&(se.push(Et.slice(Ee,Vt)),ye=0,Ee=Vt),ye+=wt[Vt],Vt++;return Ee!==Vt&&se.push(Et.slice(Ee,Vt)),se},zo=function(Et,wt,Ft){Ft||(Ft={});var Ut,se,Vt,pe,ye,Ee,Ye,gn=[],fn=[gn],In=Ft.textIndent||0,Qe=0,ci=0,Yn=Et.split(" "),mi=Ud.apply(this,[" ",Ft])[0];if(Ee=Ft.lineIndent===-1?Yn[0].length+2:Ft.lineIndent||0){var Rn=Array(Ee).join(" "),Ai=[];Yn.map(function(sr){(sr=sr.split(/\s*\n/)).length>1?Ai=Ai.concat(sr.map(function(Er,to){return(to&&Er.length?`
|
|
|
`:"")+Er})):Ai.push(sr[0])}),Yn=Ai,Ee=nd.apply(this,[Rn,Ft])}for(Vt=0,pe=Yn.length;Vt<pe;Vt++){var Hi=0;if(Ut=Yn[Vt],Ee&&Ut[0]==`
|
|
|
`&&(Ut=Ut.substr(1),Hi=1),In+Qe+(ci=(se=Ud.apply(this,[Ut,Ft])).reduce(function(sr,Er){return sr+Er},0))>wt||Hi){if(ci>wt){for(ye=dh.apply(this,[Ut,se,wt-(In+Qe),wt]),gn.push(ye.shift()),gn=[ye.pop()];ye.length;)fn.push([ye.shift()]);ci=se.slice(Ut.length-(gn[0]?gn[0].length:0)).reduce(function(sr,Er){return sr+Er},0)}else gn=[Ut];fn.push(gn),In=ci+Ee,Qe=mi}else gn.push(Ut),In+=Qe+ci,Qe=mi}return Ye=Ee?function(sr,Er){return(Er?Rn:"")+sr.join(" ")}:function(sr){return sr.join(" ")},fn.map(Ye)},hl.splitTextToSize=function(Et,wt,Ft){var Ut,se=(Ft=Ft||{}).fontSize||this.internal.getFontSize(),Vt=function(gn){if(gn.widths&&gn.kerning)return{widths:gn.widths,kerning:gn.kerning};var fn=this.internal.getFont(gn.fontName,gn.fontStyle);return fn.metadata.Unicode?{widths:fn.metadata.Unicode.widths||{0:1},kerning:fn.metadata.Unicode.kerning||{}}:{font:fn.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,Ft);Ut=Array.isArray(Et)?Et:String(Et).split(/\r?\n/);var pe=1*this.internal.scaleFactor*wt/se;Vt.textIndent=Ft.textIndent?1*Ft.textIndent*this.internal.scaleFactor/se:0,Vt.lineIndent=Ft.lineIndent;var ye,Ee,Ye=[];for(ye=0,Ee=Ut.length;ye<Ee;ye++)Ye=Ye.concat(zo.apply(this,[Ut[ye],pe,Vt]));return Ye},function(Et){Et.__fontmetrics__=Et.__fontmetrics__||{};for(var wt="klmnopqrstuvwxyz",Ft={},Ut={},se=0;se<wt.length;se++)Ft[wt[se]]="0123456789abcdef"[se],Ut["0123456789abcdef"[se]]=wt[se];var Vt=function(fn){return"0x"+parseInt(fn,10).toString(16)},pe=Et.__fontmetrics__.compress=function(fn){var In,Qe,ci,Yn,mi=["{"];for(var Rn in fn){if(In=fn[Rn],isNaN(parseInt(Rn,10))?Qe="'"+Rn+"'":(Rn=parseInt(Rn,10),Qe=(Qe=Vt(Rn).slice(2)).slice(0,-1)+Ut[Qe.slice(-1)]),typeof In=="number")In<0?(ci=Vt(In).slice(3),Yn="-"):(ci=Vt(In).slice(2),Yn=""),ci=Yn+ci.slice(0,-1)+Ut[ci.slice(-1)];else{if((0,Mt.Z)(In)!=="object")throw new Error("Don't know what to do with value type "+(0,Mt.Z)(In)+".");ci=pe(In)}mi.push(Qe+ci)}return mi.push("}"),mi.join("")},ye=Et.__fontmetrics__.uncompress=function(fn){if(typeof fn!="string")throw new Error("Invalid argument passed to uncompress.");for(var In,Qe,ci,Yn,mi={},Rn=1,Ai=mi,Hi=[],sr="",Er="",to=fn.length-1,gr=1;gr<to;gr+=1)(Yn=fn[gr])=="'"?In?(ci=In.join(""),In=void 0):In=[]:In?In.push(Yn):Yn=="{"?(Hi.push([Ai,ci]),Ai={},ci=void 0):Yn=="}"?((Qe=Hi.pop())[0][Qe[1]]=Ai,ci=void 0,Ai=Qe[0]):Yn=="-"?Rn=-1:ci===void 0?Ft.hasOwnProperty(Yn)?(sr+=Ft[Yn],ci=parseInt(sr,16)*Rn,Rn=1,sr=""):sr+=Yn:Ft.hasOwnProperty(Yn)?(Er+=Ft[Yn],Ai[ci]=parseInt(Er,16)*Rn,Rn=1,ci=void 0,Er=""):Er+=Yn;return mi},Ee={codePages:["WinAnsiEncoding"],WinAnsiEncoding:ye("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},Ye={Unicode:{Courier:Ee,"Courier-Bold":Ee,"Courier-BoldOblique":Ee,"Courier-Oblique":Ee,Helvetica:Ee,"Helvetica-Bold":Ee,"Helvetica-BoldOblique":Ee,"Helvetica-Oblique":Ee,"Times-Roman":Ee,"Times-Bold":Ee,"Times-BoldItalic":Ee,"Times-Italic":Ee}},gn={Unicode:{"Courier-Oblique":ye("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":ye("{'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":ye("{'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:ye("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":ye("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":ye("{'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:ye("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:ye("{'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":ye("{'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:ye("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":ye("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":ye("{'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":ye("{'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":ye("{'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}}}")}};Et.events.push(["addFont",function(fn){var In=fn.font,Qe=gn.Unicode[In.postScriptName];Qe&&(In.metadata.Unicode={},In.metadata.Unicode.widths=Qe.widths,In.metadata.Unicode.kerning=Qe.kerning);var ci=Ye.Unicode[In.postScriptName];ci&&(In.metadata.Unicode.encoding=ci,In.encoding=ci.codePages[0])}])}(Ho.API),function(Et){var wt=function(Ft){for(var Ut=Ft.length,se=new Uint8Array(Ut),Vt=0;Vt<Ut;Vt++)se[Vt]=Ft.charCodeAt(Vt);return se};Et.API.events.push(["addFont",function(Ft){var Ut=void 0,se=Ft.font,Vt=Ft.instance;if(!se.isStandardFont){if(Vt===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+se.postScriptName+"').");if(typeof(Ut=Vt.existsFileInVFS(se.postScriptName)===!1?Vt.loadFile(se.postScriptName):Vt.getFileFromVFS(se.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+se.postScriptName+"').");(function(pe,ye){ye=/^\x00\x01\x00\x00/.test(ye)?wt(ye):wt(vs(ye)),pe.metadata=Et.API.TTFFont.open(ye),pe.metadata.Unicode=pe.metadata.Unicode||{encoding:{},kerning:{},widths:[]},pe.metadata.glyIdsUsed=[0]})(se,Ut)}}])}(Ho),function(Et){function wt(){return(Sr.canvg?Promise.resolve(Sr.canvg):bt.e(3754).then(bt.bind(bt,63754))).catch(function(Ft){return Promise.reject(new Error("Could not load canvg: "+Ft))}).then(function(Ft){return Ft.default?Ft.default:Ft})}Ho.API.addSvgAsImage=function(Ft,Ut,se,Vt,pe,ye,Ee,Ye){if(isNaN(Ut)||isNaN(se))throw Bo.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(Vt)||isNaN(pe))throw Bo.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var gn=document.createElement("canvas");gn.width=Vt,gn.height=pe;var fn=gn.getContext("2d");fn.fillStyle="#fff",fn.fillRect(0,0,gn.width,gn.height);var In={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},Qe=this;return wt().then(function(ci){return ci.fromString(fn,Ft,In)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(ci){return ci.render(In)}).then(function(){Qe.addImage(gn.toDataURL("image/jpeg",1),Ut,se,Vt,pe,Ee,Ye)})}}(),Ho.API.putTotalPages=function(Et){var wt,Ft=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(wt=new RegExp(Et,"g"),Ft=this.internal.getNumberOfPages()):(wt=new RegExp(this.pdfEscape16(Et,this.internal.getFont()),"g"),Ft=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var Ut=1;Ut<=this.internal.getNumberOfPages();Ut++)for(var se=0;se<this.internal.pages[Ut].length;se++)this.internal.pages[Ut][se]=this.internal.pages[Ut][se].replace(wt,Ft);return this},Ho.API.viewerPreferences=function(Et,wt){var Ft;Et=Et||{},wt=wt||!1;var Ut,se,Vt,pe={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}},ye=Object.keys(pe),Ee=[],Ye=0,gn=0,fn=0;function In(ci,Yn){var mi,Rn=!1;for(mi=0;mi<ci.length;mi+=1)ci[mi]===Yn&&(Rn=!0);return Rn}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(pe)),this.internal.viewerpreferences.isSubscribed=!1),Ft=this.internal.viewerpreferences.configuration,Et==="reset"||wt===!0){var Qe=ye.length;for(fn=0;fn<Qe;fn+=1)Ft[ye[fn]].value=Ft[ye[fn]].defaultValue,Ft[ye[fn]].explicitSet=!1}if((0,Mt.Z)(Et)==="object"){for(se in Et)if(Vt=Et[se],In(ye,se)&&Vt!==void 0){if(Ft[se].type==="boolean"&&typeof Vt=="boolean")Ft[se].value=Vt;else if(Ft[se].type==="name"&&In(Ft[se].valueSet,Vt))Ft[se].value=Vt;else if(Ft[se].type==="integer"&&Number.isInteger(Vt))Ft[se].value=Vt;else if(Ft[se].type==="array"){for(Ye=0;Ye<Vt.length;Ye+=1)if(Ut=!0,Vt[Ye].length===1&&typeof Vt[Ye][0]=="number")Ee.push(String(Vt[Ye]-1));else if(Vt[Ye].length>1){for(gn=0;gn<Vt[Ye].length;gn+=1)typeof Vt[Ye][gn]!="number"&&(Ut=!1);Ut===!0&&Ee.push([Vt[Ye][0]-1,Vt[Ye][1]-1].join(" "))}Ft[se].value="["+Ee.join(" ")+"]"}else Ft[se].value=Ft[se].defaultValue;Ft[se].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var ci,Yn=[];for(ci in Ft)Ft[ci].explicitSet===!0&&(Ft[ci].type==="name"?Yn.push("/"+ci+" /"+Ft[ci].value):Yn.push("/"+ci+" "+Ft[ci].value));Yn.length!==0&&this.internal.write(`/ViewerPreferences
|
|
|
<<
|
|
|
`+Yn.join(`
|
|
|
`)+`
|
|
|
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=Ft,this},function(Et){var wt=function(){var Ut='<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>',se=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),Vt=unescape(encodeURIComponent(Ut)),pe=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),ye=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),Ee=unescape(encodeURIComponent("</x:xmpmeta>")),Ye=Vt.length+pe.length+ye.length+se.length+Ee.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+Ye+" >>"),this.internal.write("stream"),this.internal.write(se+Vt+pe+ye+Ee),this.internal.write("endstream"),this.internal.write("endobj")},Ft=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};Et.addMetadata=function(Ut,se){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:Ut,namespaceuri:se||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",Ft),this.internal.events.subscribe("postPutResources",wt)),this}}(Ho.API),function(Et){var wt=Et.API,Ft=wt.pdfEscape16=function(Vt,pe){for(var ye,Ee=pe.metadata.Unicode.widths,Ye=["","0","00","000","0000"],gn=[""],fn=0,In=Vt.length;fn<In;++fn){if(ye=pe.metadata.characterToGlyph(Vt.charCodeAt(fn)),pe.metadata.glyIdsUsed.push(ye),pe.metadata.toUnicode[ye]=Vt.charCodeAt(fn),Ee.indexOf(ye)==-1&&(Ee.push(ye),Ee.push([parseInt(pe.metadata.widthOfGlyph(ye),10)])),ye=="0")return gn.join("");ye=ye.toString(16),gn.push(Ye[4-ye.length],ye)}return gn.join("")},Ut=function(Vt){var pe,ye,Ee,Ye,gn,fn,In;for(gn=`/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`,Ee=[],fn=0,In=(ye=Object.keys(Vt).sort(function(Qe,ci){return Qe-ci})).length;fn<In;fn++)pe=ye[fn],Ee.length>=100&&(gn+=`
|
|
|
`+Ee.length+` beginbfchar
|
|
|
`+Ee.join(`
|
|
|
`)+`
|
|
|
endbfchar`,Ee=[]),Vt[pe]!==void 0&&Vt[pe]!==null&&typeof Vt[pe].toString=="function"&&(Ye=("0000"+Vt[pe].toString(16)).slice(-4),pe=("0000"+(+pe).toString(16)).slice(-4),Ee.push("<"+pe+"><"+Ye+">"));return Ee.length&&(gn+=`
|
|
|
`+Ee.length+` beginbfchar
|
|
|
`+Ee.join(`
|
|
|
`)+`
|
|
|
endbfchar
|
|
|
`),gn+=`endcmap
|
|
|
CMapName currentdict /CMap defineresource pop
|
|
|
end
|
|
|
end`};wt.events.push(["putFont",function(Vt){(function(pe){var ye=pe.font,Ee=pe.out,Ye=pe.newObject,gn=pe.putStream;if(ye.metadata instanceof Et.API.TTFFont&&ye.encoding==="Identity-H"){for(var fn=ye.metadata.Unicode.widths,In=ye.metadata.subset.encode(ye.metadata.glyIdsUsed,1),Qe="",ci=0;ci<In.length;ci++)Qe+=String.fromCharCode(In[ci]);var Yn=Ye();gn({data:Qe,addLength1:!0,objectId:Yn}),Ee("endobj");var mi=Ye();gn({data:Ut(ye.metadata.toUnicode),addLength1:!0,objectId:mi}),Ee("endobj");var Rn=Ye();Ee("<<"),Ee("/Type /FontDescriptor"),Ee("/FontName /"+yo(ye.fontName)),Ee("/FontFile2 "+Yn+" 0 R"),Ee("/FontBBox "+Et.API.PDFObject.convert(ye.metadata.bbox)),Ee("/Flags "+ye.metadata.flags),Ee("/StemV "+ye.metadata.stemV),Ee("/ItalicAngle "+ye.metadata.italicAngle),Ee("/Ascent "+ye.metadata.ascender),Ee("/Descent "+ye.metadata.decender),Ee("/CapHeight "+ye.metadata.capHeight),Ee(">>"),Ee("endobj");var Ai=Ye();Ee("<<"),Ee("/Type /Font"),Ee("/BaseFont /"+yo(ye.fontName)),Ee("/FontDescriptor "+Rn+" 0 R"),Ee("/W "+Et.API.PDFObject.convert(fn)),Ee("/CIDToGIDMap /Identity"),Ee("/DW 1000"),Ee("/Subtype /CIDFontType2"),Ee("/CIDSystemInfo"),Ee("<<"),Ee("/Supplement 0"),Ee("/Registry (Adobe)"),Ee("/Ordering ("+ye.encoding+")"),Ee(">>"),Ee(">>"),Ee("endobj"),ye.objectNumber=Ye(),Ee("<<"),Ee("/Type /Font"),Ee("/Subtype /Type0"),Ee("/ToUnicode "+mi+" 0 R"),Ee("/BaseFont /"+yo(ye.fontName)),Ee("/Encoding /"+ye.encoding),Ee("/DescendantFonts ["+Ai+" 0 R]"),Ee(">>"),Ee("endobj"),ye.isAlreadyPutted=!0}})(Vt)}]),wt.events.push(["putFont",function(Vt){(function(pe){var ye=pe.font,Ee=pe.out,Ye=pe.newObject,gn=pe.putStream;if(ye.metadata instanceof Et.API.TTFFont&&ye.encoding==="WinAnsiEncoding"){for(var fn=ye.metadata.rawData,In="",Qe=0;Qe<fn.length;Qe++)In+=String.fromCharCode(fn[Qe]);var ci=Ye();gn({data:In,addLength1:!0,objectId:ci}),Ee("endobj");var Yn=Ye();gn({data:Ut(ye.metadata.toUnicode),addLength1:!0,objectId:Yn}),Ee("endobj");var mi=Ye();Ee("<<"),Ee("/Descent "+ye.metadata.decender),Ee("/CapHeight "+ye.metadata.capHeight),Ee("/StemV "+ye.metadata.stemV),Ee("/Type /FontDescriptor"),Ee("/FontFile2 "+ci+" 0 R"),Ee("/Flags 96"),Ee("/FontBBox "+Et.API.PDFObject.convert(ye.metadata.bbox)),Ee("/FontName /"+yo(ye.fontName)),Ee("/ItalicAngle "+ye.metadata.italicAngle),Ee("/Ascent "+ye.metadata.ascender),Ee(">>"),Ee("endobj"),ye.objectNumber=Ye();for(var Rn=0;Rn<ye.metadata.hmtx.widths.length;Rn++)ye.metadata.hmtx.widths[Rn]=parseInt(ye.metadata.hmtx.widths[Rn]*(1e3/ye.metadata.head.unitsPerEm));Ee("<</Subtype/TrueType/Type/Font/ToUnicode "+Yn+" 0 R/BaseFont/"+yo(ye.fontName)+"/FontDescriptor "+mi+" 0 R/Encoding/"+ye.encoding+" /FirstChar 29 /LastChar 255 /Widths "+Et.API.PDFObject.convert(ye.metadata.hmtx.widths)+">>"),Ee("endobj"),ye.isAlreadyPutted=!0}})(Vt)}]);var se=function(Vt){var pe,ye=Vt.text||"",Ee=Vt.x,Ye=Vt.y,gn=Vt.options||{},fn=Vt.mutex||{},In=fn.pdfEscape,Qe=fn.activeFontKey,ci=fn.fonts,Yn=Qe,mi="",Rn=0,Ai="",Hi=ci[Yn].encoding;if(ci[Yn].encoding!=="Identity-H")return{text:ye,x:Ee,y:Ye,options:gn,mutex:fn};for(Ai=ye,Yn=Qe,Array.isArray(ye)&&(Ai=ye[0]),Rn=0;Rn<Ai.length;Rn+=1)ci[Yn].metadata.hasOwnProperty("cmap")&&(pe=ci[Yn].metadata.cmap.unicode.codeMap[Ai[Rn].charCodeAt(0)]),pe||Ai[Rn].charCodeAt(0)<256&&ci[Yn].metadata.hasOwnProperty("Unicode")?mi+=Ai[Rn]:mi+="";var sr="";return parseInt(Yn.slice(1))<14||Hi==="WinAnsiEncoding"?sr=In(mi,Yn).split("").map(function(Er){return Er.charCodeAt(0).toString(16)}).join(""):Hi==="Identity-H"&&(sr=Ft(mi,ci[Yn])),fn.isHex=!0,{text:sr,x:Ee,y:Ye,options:gn,mutex:fn}};wt.events.push(["postProcessText",function(Vt){var pe=Vt.text||"",ye=[],Ee={text:pe,x:Vt.x,y:Vt.y,options:Vt.options,mutex:Vt.mutex};if(Array.isArray(pe)){var Ye=0;for(Ye=0;Ye<pe.length;Ye+=1)Array.isArray(pe[Ye])&&pe[Ye].length===3?ye.push([se(Object.assign({},Ee,{text:pe[Ye][0]})).text,pe[Ye][1],pe[Ye][2]]):ye.push(se(Object.assign({},Ee,{text:pe[Ye]})).text);Vt.text=ye}else Vt.text=se(Object.assign({},Ee,{text:pe})).text}])}(Ho),function(Et){var wt=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};Et.existsFileInVFS=function(Ft){return wt.call(this),this.internal.vFS[Ft]!==void 0},Et.addFileToVFS=function(Ft,Ut){return wt.call(this),this.internal.vFS[Ft]=Ut,this},Et.getFileFromVFS=function(Ft){return wt.call(this),this.internal.vFS[Ft]!==void 0?this.internal.vFS[Ft]:null}}(Ho.API),function(Et){Et.__bidiEngine__=Et.prototype.__bidiEngine__=function(Ut){var se,Vt,pe,ye,Ee,Ye,gn,fn=wt,In=[[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]],Qe=[[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]],ci={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},Yn={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},mi=["(",")","(","<",">","<","[","]","[","{","}","{","\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"],Rn=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)$/),Ai=!1,Hi=0;this.__bidiEngine__={};var sr=function(Kn){var Jn=Kn.charCodeAt(),Wi=Jn>>8,ge=Yn[Wi];return ge!==void 0?fn[256*ge+(255&Jn)]:Wi===252||Wi===253?"AL":Rn.test(Wi)?"L":Wi===8?"R":"N"},Er=function(Kn){for(var Jn,Wi=0;Wi<Kn.length;Wi++){if((Jn=sr(Kn.charAt(Wi)))==="L")return!1;if(Jn==="R")return!0}return!1},to=function(Kn,Jn,Wi,ge){var Ce,Ve,en,un,hn=Jn[ge];switch(hn){case"L":case"R":Ai=!1;break;case"N":case"AN":break;case"EN":Ai&&(hn="AN");break;case"AL":Ai=!0,hn="R";break;case"WS":hn="N";break;case"CS":ge<1||ge+1>=Jn.length||(Ce=Wi[ge-1])!=="EN"&&Ce!=="AN"||(Ve=Jn[ge+1])!=="EN"&&Ve!=="AN"?hn="N":Ai&&(Ve="AN"),hn=Ve===Ce?Ve:"N";break;case"ES":hn=(Ce=ge>0?Wi[ge-1]:"B")==="EN"&&ge+1<Jn.length&&Jn[ge+1]==="EN"?"EN":"N";break;case"ET":if(ge>0&&Wi[ge-1]==="EN"){hn="EN";break}if(Ai){hn="N";break}for(en=ge+1,un=Jn.length;en<un&&Jn[en]==="ET";)en++;hn=en<un&&Jn[en]==="EN"?"EN":"N";break;case"NSM":if(pe&&!ye){for(un=Jn.length,en=ge+1;en<un&&Jn[en]==="NSM";)en++;if(en<un){var Dn=Kn[ge],qn=Dn>=1425&&Dn<=2303||Dn===64286;if(Ce=Jn[en],qn&&(Ce==="R"||Ce==="AL")){hn="R";break}}}hn=ge<1||(Ce=Jn[ge-1])==="B"?"N":Wi[ge-1];break;case"B":Ai=!1,se=!0,hn=Hi;break;case"S":Vt=!0,hn="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":Ai=!1;break;case"BN":hn="N"}return hn},gr=function(Kn,Jn,Wi){var ge=Kn.split("");return Wi&&ki(ge,Wi,{hiLevel:Hi}),ge.reverse(),Jn&&Jn.reverse(),ge.join("")},ki=function(Kn,Jn,Wi){var ge,Ce,Ve,en,un,hn=-1,Dn=Kn.length,qn=0,Te=[],ln=Hi?Qe:In,mn=[];for(Ai=!1,se=!1,Vt=!1,Ce=0;Ce<Dn;Ce++)mn[Ce]=sr(Kn[Ce]);for(Ve=0;Ve<Dn;Ve++){if(un=qn,Te[Ve]=to(Kn,mn,Te,Ve),ge=240&(qn=ln[un][ci[Te[Ve]]]),qn&=15,Jn[Ve]=en=ln[qn][5],ge>0)if(ge===16){for(Ce=hn;Ce<Ve;Ce++)Jn[Ce]=1;hn=-1}else hn=-1;if(ln[qn][6])hn===-1&&(hn=Ve);else if(hn>-1){for(Ce=hn;Ce<Ve;Ce++)Jn[Ce]=en;hn=-1}mn[Ve]==="B"&&(Jn[Ve]=0),Wi.hiLevel|=en}Vt&&function(Fn,Xn,li){for(var si=0;si<li;si++)if(Fn[si]==="S"){Xn[si]=Hi;for(var Ei=si-1;Ei>=0&&Fn[Ei]==="WS";Ei--)Xn[Ei]=Hi}}(mn,Jn,Dn)},yr=function(Kn,Jn,Wi,ge,Ce){if(!(Ce.hiLevel<Kn)){if(Kn===1&&Hi===1&&!se)return Jn.reverse(),void(Wi&&Wi.reverse());for(var Ve,en,un,hn,Dn=Jn.length,qn=0;qn<Dn;){if(ge[qn]>=Kn){for(un=qn+1;un<Dn&&ge[un]>=Kn;)un++;for(hn=qn,en=un-1;hn<en;hn++,en--)Ve=Jn[hn],Jn[hn]=Jn[en],Jn[en]=Ve,Wi&&(Ve=Wi[hn],Wi[hn]=Wi[en],Wi[en]=Ve);qn=un}qn++}}},Kr=function(Kn,Jn,Wi){var ge=Kn.split(""),Ce={hiLevel:Hi};return Wi||(Wi=[]),ki(ge,Wi,Ce),function(Ve,en,un){if(un.hiLevel!==0&&gn)for(var hn,Dn=0;Dn<Ve.length;Dn++)en[Dn]===1&&(hn=mi.indexOf(Ve[Dn]))>=0&&(Ve[Dn]=mi[hn+1])}(ge,Wi,Ce),yr(2,ge,Jn,Wi,Ce),yr(1,ge,Jn,Wi,Ce),ge.join("")};return this.__bidiEngine__.doBidiReorder=function(Kn,Jn,Wi){if(function(Ce,Ve){if(Ve)for(var en=0;en<Ce.length;en++)Ve[en]=en;ye===void 0&&(ye=Er(Ce)),Ye===void 0&&(Ye=Er(Ce))}(Kn,Jn),pe||!Ee||Ye)if(pe&&Ee&&ye^Ye)Hi=ye?1:0,Kn=gr(Kn,Jn,Wi);else if(!pe&&Ee&&Ye)Hi=ye?1:0,Kn=Kr(Kn,Jn,Wi),Kn=gr(Kn,Jn);else if(!pe||ye||Ee||Ye){if(pe&&!Ee&&ye^Ye)Kn=gr(Kn,Jn),ye?(Hi=0,Kn=Kr(Kn,Jn,Wi)):(Hi=1,Kn=Kr(Kn,Jn,Wi),Kn=gr(Kn,Jn));else if(pe&&ye&&!Ee&&Ye)Hi=1,Kn=Kr(Kn,Jn,Wi),Kn=gr(Kn,Jn);else if(!pe&&!Ee&&ye^Ye){var ge=gn;ye?(Hi=1,Kn=Kr(Kn,Jn,Wi),Hi=0,gn=!1,Kn=Kr(Kn,Jn,Wi),gn=ge):(Hi=0,Kn=Kr(Kn,Jn,Wi),Kn=gr(Kn,Jn),Hi=1,gn=!1,Kn=Kr(Kn,Jn,Wi),gn=ge,Kn=gr(Kn,Jn))}}else Hi=0,Kn=Kr(Kn,Jn,Wi);else Hi=ye?1:0,Kn=Kr(Kn,Jn,Wi);return Kn},this.__bidiEngine__.setOptions=function(Kn){Kn&&(pe=Kn.isInputVisual,Ee=Kn.isOutputVisual,ye=Kn.isInputRtl,Ye=Kn.isOutputRtl,gn=Kn.isSymmetricSwapping)},this.__bidiEngine__.setOptions(Ut),this.__bidiEngine__};var wt=["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"],Ft=new Et.__bidiEngine__({isInputVisual:!0});Et.API.events.push(["postProcessText",function(Ut){var se=Ut.text;Ut.x,Ut.y;var Vt=Ut.options||{};Ut.mutex,Vt.lang;var pe=[];if(Vt.isInputVisual=typeof Vt.isInputVisual!="boolean"||Vt.isInputVisual,Ft.setOptions(Vt),Object.prototype.toString.call(se)==="[object Array]"){var ye=0;for(pe=[],ye=0;ye<se.length;ye+=1)Object.prototype.toString.call(se[ye])==="[object Array]"?pe.push([Ft.doBidiReorder(se[ye][0]),se[ye][1],se[ye][2]]):pe.push([Ft.doBidiReorder(se[ye])]);Ut.text=pe}else Ut.text=Ft.doBidiReorder(se);Ft.setOptions({isInputVisual:!0})}])}(Ho),Ho.API.TTFFont=function(){function Et(wt){var Ft;if(this.rawData=wt,Ft=this.contents=new Ah(wt),this.contents.pos=4,Ft.readString(4)==="ttcf")throw new Error("TTCF not supported.");Ft.pos=0,this.parse(),this.subset=new Hl(this),this.registerTTF()}return Et.open=function(wt){return new Et(wt)},Et.prototype.parse=function(){return this.directory=new _A(this.contents),this.head=new As(this),this.name=new wl(this),this.cmap=new Gu(this),this.toUnicode={},this.hhea=new Bl(this),this.maxp=new Th(this),this.hmtx=new wu(this),this.post=new Au(this),this.os2=new oa(this),this.loca=new pl(this),this.glyf=new Ma(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]},Et.prototype.registerTTF=function(){var wt,Ft,Ut,se,Vt;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var pe,ye,Ee,Ye;for(Ye=[],pe=0,ye=(Ee=this.bbox).length;pe<ye;pe++)wt=Ee[pe],Ye.push(Math.round(wt*this.scaleFactor));return Ye}.call(this),this.stemV=0,this.post.exists?(Ut=255&(se=this.post.italic_angle),32768&(Ft=se>>16)&&(Ft=-(1+(65535^Ft))),this.italicAngle=+(Ft+"."+Ut)):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=(Vt=this.familyClass)===1||Vt===2||Vt===3||Vt===4||Vt===5||Vt===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")},Et.prototype.characterToGlyph=function(wt){var Ft;return((Ft=this.cmap.unicode)!=null?Ft.codeMap[wt]:void 0)||0},Et.prototype.widthOfGlyph=function(wt){var Ft;return Ft=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(wt).advance*Ft},Et.prototype.widthOfString=function(wt,Ft,Ut){var se,Vt,pe,ye;for(pe=0,Vt=0,ye=(wt=""+wt).length;0<=ye?Vt<ye:Vt>ye;Vt=0<=ye?++Vt:--Vt)se=wt.charCodeAt(Vt),pe+=this.widthOfGlyph(this.characterToGlyph(se))+Ut*(1e3/Ft)||0;return pe*(Ft/1e3)},Et.prototype.lineHeight=function(wt,Ft){var Ut;return Ft==null&&(Ft=!1),Ut=Ft?this.lineGap:0,(this.ascender+Ut-this.decender)/1e3*wt},Et}();var _u,Ah=function(){function Et(wt){this.data=wt!=null?wt:[],this.pos=0,this.length=this.data.length}return Et.prototype.readByte=function(){return this.data[this.pos++]},Et.prototype.writeByte=function(wt){return this.data[this.pos++]=wt},Et.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},Et.prototype.writeUInt32=function(wt){return this.writeByte(wt>>>24&255),this.writeByte(wt>>16&255),this.writeByte(wt>>8&255),this.writeByte(255&wt)},Et.prototype.readInt32=function(){var wt;return(wt=this.readUInt32())>=2147483648?wt-4294967296:wt},Et.prototype.writeInt32=function(wt){return wt<0&&(wt+=4294967296),this.writeUInt32(wt)},Et.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},Et.prototype.writeUInt16=function(wt){return this.writeByte(wt>>8&255),this.writeByte(255&wt)},Et.prototype.readInt16=function(){var wt;return(wt=this.readUInt16())>=32768?wt-65536:wt},Et.prototype.writeInt16=function(wt){return wt<0&&(wt+=65536),this.writeUInt16(wt)},Et.prototype.readString=function(wt){var Ft,Ut;for(Ut=[],Ft=0;0<=wt?Ft<wt:Ft>wt;Ft=0<=wt?++Ft:--Ft)Ut[Ft]=String.fromCharCode(this.readByte());return Ut.join("")},Et.prototype.writeString=function(wt){var Ft,Ut,se;for(se=[],Ft=0,Ut=wt.length;0<=Ut?Ft<Ut:Ft>Ut;Ft=0<=Ut?++Ft:--Ft)se.push(this.writeByte(wt.charCodeAt(Ft)));return se},Et.prototype.readShort=function(){return this.readInt16()},Et.prototype.writeShort=function(wt){return this.writeInt16(wt)},Et.prototype.readLongLong=function(){var wt,Ft,Ut,se,Vt,pe,ye,Ee;return wt=this.readByte(),Ft=this.readByte(),Ut=this.readByte(),se=this.readByte(),Vt=this.readByte(),pe=this.readByte(),ye=this.readByte(),Ee=this.readByte(),128&wt?-1*(72057594037927940*(255^wt)+281474976710656*(255^Ft)+1099511627776*(255^Ut)+4294967296*(255^se)+16777216*(255^Vt)+65536*(255^pe)+256*(255^ye)+(255^Ee)+1):72057594037927940*wt+281474976710656*Ft+1099511627776*Ut+4294967296*se+16777216*Vt+65536*pe+256*ye+Ee},Et.prototype.writeLongLong=function(wt){var Ft,Ut;return Ft=Math.floor(wt/4294967296),Ut=4294967295&wt,this.writeByte(Ft>>24&255),this.writeByte(Ft>>16&255),this.writeByte(Ft>>8&255),this.writeByte(255&Ft),this.writeByte(Ut>>24&255),this.writeByte(Ut>>16&255),this.writeByte(Ut>>8&255),this.writeByte(255&Ut)},Et.prototype.readInt=function(){return this.readInt32()},Et.prototype.writeInt=function(wt){return this.writeInt32(wt)},Et.prototype.read=function(wt){var Ft,Ut;for(Ft=[],Ut=0;0<=wt?Ut<wt:Ut>wt;Ut=0<=wt?++Ut:--Ut)Ft.push(this.readByte());return Ft},Et.prototype.write=function(wt){var Ft,Ut,se,Vt;for(Vt=[],Ut=0,se=wt.length;Ut<se;Ut++)Ft=wt[Ut],Vt.push(this.writeByte(Ft));return Vt},Et}(),_A=function(){var Et;function wt(Ft){var Ut,se,Vt;for(this.scalarType=Ft.readInt(),this.tableCount=Ft.readShort(),this.searchRange=Ft.readShort(),this.entrySelector=Ft.readShort(),this.rangeShift=Ft.readShort(),this.tables={},se=0,Vt=this.tableCount;0<=Vt?se<Vt:se>Vt;se=0<=Vt?++se:--se)Ut={tag:Ft.readString(4),checksum:Ft.readInt(),offset:Ft.readInt(),length:Ft.readInt()},this.tables[Ut.tag]=Ut}return wt.prototype.encode=function(Ft){var Ut,se,Vt,pe,ye,Ee,Ye,gn,fn,In,Qe,ci,Yn;for(Yn in Qe=Object.keys(Ft).length,Ee=Math.log(2),fn=16*Math.floor(Math.log(Qe)/Ee),pe=Math.floor(fn/Ee),gn=16*Qe-fn,(se=new Ah).writeInt(this.scalarType),se.writeShort(Qe),se.writeShort(fn),se.writeShort(pe),se.writeShort(gn),Vt=16*Qe,Ye=se.pos+Vt,ye=null,ci=[],Ft)for(In=Ft[Yn],se.writeString(Yn),se.writeInt(Et(In)),se.writeInt(Ye),se.writeInt(In.length),ci=ci.concat(In),Yn==="head"&&(ye=Ye),Ye+=In.length;Ye%4;)ci.push(0),Ye++;return se.write(ci),Ut=2981146554-Et(se.data),se.pos=ye+8,se.writeUInt32(Ut),se.data},Et=function(Ft){var Ut,se,Vt,pe;for(Ft=yd.call(Ft);Ft.length%4;)Ft.push(0);for(Vt=new Ah(Ft),se=0,Ut=0,pe=Ft.length;Ut<pe;Ut=Ut+=4)se+=Vt.readUInt32();return 4294967295&se},wt}(),id={}.hasOwnProperty,tl=function(Et,wt){for(var Ft in wt)id.call(wt,Ft)&&(Et[Ft]=wt[Ft]);function Ut(){this.constructor=Et}return Ut.prototype=wt.prototype,Et.prototype=new Ut,Et.__super__=wt.prototype,Et};_u=function(){function Et(wt){var Ft;this.file=wt,Ft=this.file.directory.tables[this.tag],this.exists=!!Ft,Ft&&(this.offset=Ft.offset,this.length=Ft.length,this.parse(this.file.contents))}return Et.prototype.parse=function(){},Et.prototype.encode=function(){},Et.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},Et}();var As=function(Et){function wt(){return wt.__super__.constructor.apply(this,arguments)}return tl(wt,_u),wt.prototype.tag="head",wt.prototype.parse=function(Ft){return Ft.pos=this.offset,this.version=Ft.readInt(),this.revision=Ft.readInt(),this.checkSumAdjustment=Ft.readInt(),this.magicNumber=Ft.readInt(),this.flags=Ft.readShort(),this.unitsPerEm=Ft.readShort(),this.created=Ft.readLongLong(),this.modified=Ft.readLongLong(),this.xMin=Ft.readShort(),this.yMin=Ft.readShort(),this.xMax=Ft.readShort(),this.yMax=Ft.readShort(),this.macStyle=Ft.readShort(),this.lowestRecPPEM=Ft.readShort(),this.fontDirectionHint=Ft.readShort(),this.indexToLocFormat=Ft.readShort(),this.glyphDataFormat=Ft.readShort()},wt.prototype.encode=function(Ft){var Ut;return(Ut=new Ah).writeInt(this.version),Ut.writeInt(this.revision),Ut.writeInt(this.checkSumAdjustment),Ut.writeInt(this.magicNumber),Ut.writeShort(this.flags),Ut.writeShort(this.unitsPerEm),Ut.writeLongLong(this.created),Ut.writeLongLong(this.modified),Ut.writeShort(this.xMin),Ut.writeShort(this.yMin),Ut.writeShort(this.xMax),Ut.writeShort(this.yMax),Ut.writeShort(this.macStyle),Ut.writeShort(this.lowestRecPPEM),Ut.writeShort(this.fontDirectionHint),Ut.writeShort(Ft),Ut.writeShort(this.glyphDataFormat),Ut.data},wt}(),Ju=function(){function Et(wt,Ft){var Ut,se,Vt,pe,ye,Ee,Ye,gn,fn,In,Qe,ci,Yn,mi,Rn,Ai,Hi;switch(this.platformID=wt.readUInt16(),this.encodingID=wt.readShort(),this.offset=Ft+wt.readInt(),fn=wt.pos,wt.pos=this.offset,this.format=wt.readUInt16(),this.length=wt.readUInt16(),this.language=wt.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(Ee=0;Ee<256;++Ee)this.codeMap[Ee]=wt.readByte();break;case 4:for(Qe=wt.readUInt16(),In=Qe/2,wt.pos+=6,Vt=function(){var sr,Er;for(Er=[],Ee=sr=0;0<=In?sr<In:sr>In;Ee=0<=In?++sr:--sr)Er.push(wt.readUInt16());return Er}(),wt.pos+=2,Yn=function(){var sr,Er;for(Er=[],Ee=sr=0;0<=In?sr<In:sr>In;Ee=0<=In?++sr:--sr)Er.push(wt.readUInt16());return Er}(),Ye=function(){var sr,Er;for(Er=[],Ee=sr=0;0<=In?sr<In:sr>In;Ee=0<=In?++sr:--sr)Er.push(wt.readUInt16());return Er}(),gn=function(){var sr,Er;for(Er=[],Ee=sr=0;0<=In?sr<In:sr>In;Ee=0<=In?++sr:--sr)Er.push(wt.readUInt16());return Er}(),se=(this.length-wt.pos+this.offset)/2,ye=function(){var sr,Er;for(Er=[],Ee=sr=0;0<=se?sr<se:sr>se;Ee=0<=se?++sr:--sr)Er.push(wt.readUInt16());return Er}(),Ee=Rn=0,Hi=Vt.length;Rn<Hi;Ee=++Rn)for(mi=Vt[Ee],Ut=Ai=ci=Yn[Ee];ci<=mi?Ai<=mi:Ai>=mi;Ut=ci<=mi?++Ai:--Ai)gn[Ee]===0?pe=Ut+Ye[Ee]:(pe=ye[gn[Ee]/2+(Ut-ci)-(In-Ee)]||0)!==0&&(pe+=Ye[Ee]),this.codeMap[Ut]=65535&pe}wt.pos=fn}return Et.encode=function(wt,Ft){var Ut,se,Vt,pe,ye,Ee,Ye,gn,fn,In,Qe,ci,Yn,mi,Rn,Ai,Hi,sr,Er,to,gr,ki,yr,Kr,Kn,Jn,Wi,ge,Ce,Ve,en,un,hn,Dn,qn,Te,ln,mn,Fn,Xn,li,si,Ei,Ii,Xi,ir;switch(ge=new Ah,pe=Object.keys(wt).sort(function(dr,Xr){return dr-Xr}),Ft){case"macroman":for(Yn=0,mi=function(){var dr=[];for(ci=0;ci<256;++ci)dr.push(0);return dr}(),Ai={0:0},Vt={},Ce=0,hn=pe.length;Ce<hn;Ce++)Ai[Ei=wt[se=pe[Ce]]]==null&&(Ai[Ei]=++Yn),Vt[se]={old:wt[se],new:Ai[wt[se]]},mi[se]=Ai[wt[se]];return ge.writeUInt16(1),ge.writeUInt16(0),ge.writeUInt32(12),ge.writeUInt16(0),ge.writeUInt16(262),ge.writeUInt16(0),ge.write(mi),{charMap:Vt,subtable:ge.data,maxGlyphID:Yn+1};case"unicode":for(Jn=[],fn=[],Hi=0,Ai={},Ut={},Rn=Ye=null,Ve=0,Dn=pe.length;Ve<Dn;Ve++)Ai[Er=wt[se=pe[Ve]]]==null&&(Ai[Er]=++Hi),Ut[se]={old:Er,new:Ai[Er]},ye=Ai[Er]-se,Rn!=null&&ye===Ye||(Rn&&fn.push(Rn),Jn.push(se),Ye=ye),Rn=se;for(Rn&&fn.push(Rn),fn.push(65535),Jn.push(65535),Kr=2*(yr=Jn.length),ki=2*Math.pow(Math.log(yr)/Math.LN2,2),In=Math.log(ki/2)/Math.LN2,gr=2*yr-ki,Ee=[],to=[],Qe=[],ci=en=0,qn=Jn.length;en<qn;ci=++en){if(Kn=Jn[ci],gn=fn[ci],Kn===65535){Ee.push(0),to.push(0);break}if(Kn-(Wi=Ut[Kn].new)>=32768)for(Ee.push(0),to.push(2*(Qe.length+yr-ci)),se=un=Kn;Kn<=gn?un<=gn:un>=gn;se=Kn<=gn?++un:--un)Qe.push(Ut[se].new);else Ee.push(Wi-Kn),to.push(0)}for(ge.writeUInt16(3),ge.writeUInt16(1),ge.writeUInt32(12),ge.writeUInt16(4),ge.writeUInt16(16+8*yr+2*Qe.length),ge.writeUInt16(0),ge.writeUInt16(Kr),ge.writeUInt16(ki),ge.writeUInt16(In),ge.writeUInt16(gr),li=0,Te=fn.length;li<Te;li++)se=fn[li],ge.writeUInt16(se);for(ge.writeUInt16(0),si=0,ln=Jn.length;si<ln;si++)se=Jn[si],ge.writeUInt16(se);for(Ii=0,mn=Ee.length;Ii<mn;Ii++)ye=Ee[Ii],ge.writeUInt16(ye);for(Xi=0,Fn=to.length;Xi<Fn;Xi++)sr=to[Xi],ge.writeUInt16(sr);for(ir=0,Xn=Qe.length;ir<Xn;ir++)Yn=Qe[ir],ge.writeUInt16(Yn);return{charMap:Ut,subtable:ge.data,maxGlyphID:Hi+1}}},Et}(),Gu=function(Et){function wt(){return wt.__super__.constructor.apply(this,arguments)}return tl(wt,_u),wt.prototype.tag="cmap",wt.prototype.parse=function(Ft){var Ut,se,Vt;for(Ft.pos=this.offset,this.version=Ft.readUInt16(),Vt=Ft.readUInt16(),this.tables=[],this.unicode=null,se=0;0<=Vt?se<Vt:se>Vt;se=0<=Vt?++se:--se)Ut=new Ju(Ft,this.offset),this.tables.push(Ut),Ut.isUnicode&&this.unicode==null&&(this.unicode=Ut);return!0},wt.encode=function(Ft,Ut){var se,Vt;return Ut==null&&(Ut="macroman"),se=Ju.encode(Ft,Ut),(Vt=new Ah).writeUInt16(0),Vt.writeUInt16(1),se.table=Vt.data.concat(se.subtable),se},wt}(),Bl=function(Et){function wt(){return wt.__super__.constructor.apply(this,arguments)}return tl(wt,_u),wt.prototype.tag="hhea",wt.prototype.parse=function(Ft){return Ft.pos=this.offset,this.version=Ft.readInt(),this.ascender=Ft.readShort(),this.decender=Ft.readShort(),this.lineGap=Ft.readShort(),this.advanceWidthMax=Ft.readShort(),this.minLeftSideBearing=Ft.readShort(),this.minRightSideBearing=Ft.readShort(),this.xMaxExtent=Ft.readShort(),this.caretSlopeRise=Ft.readShort(),this.caretSlopeRun=Ft.readShort(),this.caretOffset=Ft.readShort(),Ft.pos+=8,this.metricDataFormat=Ft.readShort(),this.numberOfMetrics=Ft.readUInt16()},wt}(),oa=function(Et){function wt(){return wt.__super__.constructor.apply(this,arguments)}return tl(wt,_u),wt.prototype.tag="OS/2",wt.prototype.parse=function(Ft){if(Ft.pos=this.offset,this.version=Ft.readUInt16(),this.averageCharWidth=Ft.readShort(),this.weightClass=Ft.readUInt16(),this.widthClass=Ft.readUInt16(),this.type=Ft.readShort(),this.ySubscriptXSize=Ft.readShort(),this.ySubscriptYSize=Ft.readShort(),this.ySubscriptXOffset=Ft.readShort(),this.ySubscriptYOffset=Ft.readShort(),this.ySuperscriptXSize=Ft.readShort(),this.ySuperscriptYSize=Ft.readShort(),this.ySuperscriptXOffset=Ft.readShort(),this.ySuperscriptYOffset=Ft.readShort(),this.yStrikeoutSize=Ft.readShort(),this.yStrikeoutPosition=Ft.readShort(),this.familyClass=Ft.readShort(),this.panose=function(){var Ut,se;for(se=[],Ut=0;Ut<10;++Ut)se.push(Ft.readByte());return se}(),this.charRange=function(){var Ut,se;for(se=[],Ut=0;Ut<4;++Ut)se.push(Ft.readInt());return se}(),this.vendorID=Ft.readString(4),this.selection=Ft.readShort(),this.firstCharIndex=Ft.readShort(),this.lastCharIndex=Ft.readShort(),this.version>0&&(this.ascent=Ft.readShort(),this.descent=Ft.readShort(),this.lineGap=Ft.readShort(),this.winAscent=Ft.readShort(),this.winDescent=Ft.readShort(),this.codePageRange=function(){var Ut,se;for(se=[],Ut=0;Ut<2;Ut=++Ut)se.push(Ft.readInt());return se}(),this.version>1))return this.xHeight=Ft.readShort(),this.capHeight=Ft.readShort(),this.defaultChar=Ft.readShort(),this.breakChar=Ft.readShort(),this.maxContext=Ft.readShort()},wt}(),Au=function(Et){function wt(){return wt.__super__.constructor.apply(this,arguments)}return tl(wt,_u),wt.prototype.tag="post",wt.prototype.parse=function(Ft){var Ut,se,Vt;switch(Ft.pos=this.offset,this.format=Ft.readInt(),this.italicAngle=Ft.readInt(),this.underlinePosition=Ft.readShort(),this.underlineThickness=Ft.readShort(),this.isFixedPitch=Ft.readInt(),this.minMemType42=Ft.readInt(),this.maxMemType42=Ft.readInt(),this.minMemType1=Ft.readInt(),this.maxMemType1=Ft.readInt(),this.format){case 65536:break;case 131072:var pe;for(se=Ft.readUInt16(),this.glyphNameIndex=[],pe=0;0<=se?pe<se:pe>se;pe=0<=se?++pe:--pe)this.glyphNameIndex.push(Ft.readUInt16());for(this.names=[],Vt=[];Ft.pos<this.offset+this.length;)Ut=Ft.readByte(),Vt.push(this.names.push(Ft.readString(Ut)));return Vt;case 151552:return se=Ft.readUInt16(),this.offsets=Ft.read(se);case 196608:break;case 262144:return this.map=function(){var ye,Ee,Ye;for(Ye=[],pe=ye=0,Ee=this.file.maxp.numGlyphs;0<=Ee?ye<Ee:ye>Ee;pe=0<=Ee?++ye:--ye)Ye.push(Ft.readUInt32());return Ye}.call(this)}},wt}(),fh=function(Et,wt){this.raw=Et,this.length=Et.length,this.platformID=wt.platformID,this.encodingID=wt.encodingID,this.languageID=wt.languageID},wl=function(Et){function wt(){return wt.__super__.constructor.apply(this,arguments)}return tl(wt,_u),wt.prototype.tag="name",wt.prototype.parse=function(Ft){var Ut,se,Vt,pe,ye,Ee,Ye,gn,fn,In,Qe;for(Ft.pos=this.offset,Ft.readShort(),Ut=Ft.readShort(),Ee=Ft.readShort(),se=[],pe=0;0<=Ut?pe<Ut:pe>Ut;pe=0<=Ut?++pe:--pe)se.push({platformID:Ft.readShort(),encodingID:Ft.readShort(),languageID:Ft.readShort(),nameID:Ft.readShort(),length:Ft.readShort(),offset:this.offset+Ee+Ft.readShort()});for(Ye={},pe=fn=0,In=se.length;fn<In;pe=++fn)Vt=se[pe],Ft.pos=Vt.offset,gn=Ft.readString(Vt.length),ye=new fh(gn,Vt),Ye[Qe=Vt.nameID]==null&&(Ye[Qe]=[]),Ye[Vt.nameID].push(ye);this.strings=Ye,this.copyright=Ye[0],this.fontFamily=Ye[1],this.fontSubfamily=Ye[2],this.uniqueSubfamily=Ye[3],this.fontName=Ye[4],this.version=Ye[5];try{this.postscriptName=Ye[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(ci){this.postscriptName=Ye[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=Ye[7],this.manufacturer=Ye[8],this.designer=Ye[9],this.description=Ye[10],this.vendorUrl=Ye[11],this.designerUrl=Ye[12],this.license=Ye[13],this.licenseUrl=Ye[14],this.preferredFamily=Ye[15],this.preferredSubfamily=Ye[17],this.compatibleFull=Ye[18],this.sampleText=Ye[19]},wt}(),Th=function(Et){function wt(){return wt.__super__.constructor.apply(this,arguments)}return tl(wt,_u),wt.prototype.tag="maxp",wt.prototype.parse=function(Ft){return Ft.pos=this.offset,this.version=Ft.readInt(),this.numGlyphs=Ft.readUInt16(),this.maxPoints=Ft.readUInt16(),this.maxContours=Ft.readUInt16(),this.maxCompositePoints=Ft.readUInt16(),this.maxComponentContours=Ft.readUInt16(),this.maxZones=Ft.readUInt16(),this.maxTwilightPoints=Ft.readUInt16(),this.maxStorage=Ft.readUInt16(),this.maxFunctionDefs=Ft.readUInt16(),this.maxInstructionDefs=Ft.readUInt16(),this.maxStackElements=Ft.readUInt16(),this.maxSizeOfInstructions=Ft.readUInt16(),this.maxComponentElements=Ft.readUInt16(),this.maxComponentDepth=Ft.readUInt16()},wt}(),wu=function(Et){function wt(){return wt.__super__.constructor.apply(this,arguments)}return tl(wt,_u),wt.prototype.tag="hmtx",wt.prototype.parse=function(Ft){var Ut,se,Vt,pe,ye,Ee,Ye;for(Ft.pos=this.offset,this.metrics=[],Ut=0,Ee=this.file.hhea.numberOfMetrics;0<=Ee?Ut<Ee:Ut>Ee;Ut=0<=Ee?++Ut:--Ut)this.metrics.push({advance:Ft.readUInt16(),lsb:Ft.readInt16()});for(Vt=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var gn,fn;for(fn=[],Ut=gn=0;0<=Vt?gn<Vt:gn>Vt;Ut=0<=Vt?++gn:--gn)fn.push(Ft.readInt16());return fn}(),this.widths=function(){var gn,fn,In,Qe;for(Qe=[],gn=0,fn=(In=this.metrics).length;gn<fn;gn++)pe=In[gn],Qe.push(pe.advance);return Qe}.call(this),se=this.widths[this.widths.length-1],Ye=[],Ut=ye=0;0<=Vt?ye<Vt:ye>Vt;Ut=0<=Vt?++ye:--ye)Ye.push(this.widths.push(se));return Ye},wt.prototype.forGlyph=function(Ft){return Ft in this.metrics?this.metrics[Ft]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[Ft-this.metrics.length]}},wt}(),yd=[].slice,Ma=function(Et){function wt(){return wt.__super__.constructor.apply(this,arguments)}return tl(wt,_u),wt.prototype.tag="glyf",wt.prototype.parse=function(){return this.cache={}},wt.prototype.glyphFor=function(Ft){var Ut,se,Vt,pe,ye,Ee,Ye,gn,fn,In;return Ft in this.cache?this.cache[Ft]:(pe=this.file.loca,Ut=this.file.contents,se=pe.indexOf(Ft),(Vt=pe.lengthOf(Ft))===0?this.cache[Ft]=null:(Ut.pos=this.offset+se,ye=(Ee=new Ah(Ut.read(Vt))).readShort(),gn=Ee.readShort(),In=Ee.readShort(),Ye=Ee.readShort(),fn=Ee.readShort(),this.cache[Ft]=ye===-1?new Na(Ee,gn,In,Ye,fn):new qu(Ee,ye,gn,In,Ye,fn),this.cache[Ft]))},wt.prototype.encode=function(Ft,Ut,se){var Vt,pe,ye,Ee,Ye;for(ye=[],pe=[],Ee=0,Ye=Ut.length;Ee<Ye;Ee++)Vt=Ft[Ut[Ee]],pe.push(ye.length),Vt&&(ye=ye.concat(Vt.encode(se)));return pe.push(ye.length),{table:ye,offsets:pe}},wt}(),qu=function(){function Et(wt,Ft,Ut,se,Vt,pe){this.raw=wt,this.numberOfContours=Ft,this.xMin=Ut,this.yMin=se,this.xMax=Vt,this.yMax=pe,this.compound=!1}return Et.prototype.encode=function(){return this.raw.data},Et}(),Na=function(){function Et(wt,Ft,Ut,se,Vt){var pe,ye;for(this.raw=wt,this.xMin=Ft,this.yMin=Ut,this.xMax=se,this.yMax=Vt,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],pe=this.raw;ye=pe.readShort(),this.glyphOffsets.push(pe.pos),this.glyphIDs.push(pe.readUInt16()),32&ye;)pe.pos+=1&ye?4:2,128&ye?pe.pos+=8:64&ye?pe.pos+=4:8&ye&&(pe.pos+=2)}return Et.prototype.encode=function(){var wt,Ft,Ut;for(Ft=new Ah(yd.call(this.raw.data)),wt=0,Ut=this.glyphIDs.length;wt<Ut;++wt)Ft.pos=this.glyphOffsets[wt];return Ft.data},Et}(),pl=function(Et){function wt(){return wt.__super__.constructor.apply(this,arguments)}return tl(wt,_u),wt.prototype.tag="loca",wt.prototype.parse=function(Ft){var Ut,se;return Ft.pos=this.offset,Ut=this.file.head.indexToLocFormat,this.offsets=Ut===0?function(){var Vt,pe;for(pe=[],se=0,Vt=this.length;se<Vt;se+=2)pe.push(2*Ft.readUInt16());return pe}.call(this):function(){var Vt,pe;for(pe=[],se=0,Vt=this.length;se<Vt;se+=4)pe.push(Ft.readUInt32());return pe}.call(this)},wt.prototype.indexOf=function(Ft){return this.offsets[Ft]},wt.prototype.lengthOf=function(Ft){return this.offsets[Ft+1]-this.offsets[Ft]},wt.prototype.encode=function(Ft,Ut){for(var se=new Uint32Array(this.offsets.length),Vt=0,pe=0,ye=0;ye<se.length;++ye)if(se[ye]=Vt,pe<Ut.length&&Ut[pe]==ye){++pe,se[ye]=Vt;var Ee=this.offsets[ye],Ye=this.offsets[ye+1]-Ee;Ye>0&&(Vt+=Ye)}for(var gn=new Array(4*se.length),fn=0;fn<se.length;++fn)gn[4*fn+3]=255&se[fn],gn[4*fn+2]=(65280&se[fn])>>8,gn[4*fn+1]=(16711680&se[fn])>>16,gn[4*fn]=(4278190080&se[fn])>>24;return gn},wt}(),Hl=function(){function Et(wt){this.font=wt,this.subset={},this.unicodes={},this.next=33}return Et.prototype.generateCmap=function(){var wt,Ft,Ut,se,Vt;for(Ft in se=this.font.cmap.tables[0].codeMap,wt={},Vt=this.subset)Ut=Vt[Ft],wt[Ft]=se[Ut];return wt},Et.prototype.glyphsFor=function(wt){var Ft,Ut,se,Vt,pe,ye,Ee;for(se={},pe=0,ye=wt.length;pe<ye;pe++)se[Vt=wt[pe]]=this.font.glyf.glyphFor(Vt);for(Vt in Ft=[],se)(Ut=se[Vt])!=null&&Ut.compound&&Ft.push.apply(Ft,Ut.glyphIDs);if(Ft.length>0)for(Vt in Ee=this.glyphsFor(Ft))Ut=Ee[Vt],se[Vt]=Ut;return se},Et.prototype.encode=function(wt,Ft){var Ut,se,Vt,pe,ye,Ee,Ye,gn,fn,In,Qe,ci,Yn,mi,Rn;for(se in Ut=Gu.encode(this.generateCmap(),"unicode"),pe=this.glyphsFor(wt),Qe={0:0},Rn=Ut.charMap)Qe[(Ee=Rn[se]).old]=Ee.new;for(ci in In=Ut.maxGlyphID,pe)ci in Qe||(Qe[ci]=In++);return gn=function(Ai){var Hi,sr;for(Hi in sr={},Ai)sr[Ai[Hi]]=Hi;return sr}(Qe),fn=Object.keys(gn).sort(function(Ai,Hi){return Ai-Hi}),Yn=function(){var Ai,Hi,sr;for(sr=[],Ai=0,Hi=fn.length;Ai<Hi;Ai++)ye=fn[Ai],sr.push(gn[ye]);return sr}(),Vt=this.font.glyf.encode(pe,Yn,Qe),Ye=this.font.loca.encode(Vt.offsets,Yn),mi={cmap:this.font.cmap.raw(),glyf:Vt.table,loca:Ye,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(Ft)},this.font.os2.exists&&(mi["OS/2"]=this.font.os2.raw()),this.font.directory.encode(mi)},Et}();Ho.API.PDFObject=function(){var Et;function wt(){}return Et=function(Ft,Ut){return(Array(Ut+1).join("0")+Ft).slice(-Ut)},wt.convert=function(Ft){var Ut,se,Vt,pe;if(Array.isArray(Ft))return"["+function(){var ye,Ee,Ye;for(Ye=[],ye=0,Ee=Ft.length;ye<Ee;ye++)Ut=Ft[ye],Ye.push(wt.convert(Ut));return Ye}().join(" ")+"]";if(typeof Ft=="string")return"/"+Ft;if(Ft!=null&&Ft.isString)return"("+Ft+")";if(Ft instanceof Date)return"(D:"+Et(Ft.getUTCFullYear(),4)+Et(Ft.getUTCMonth(),2)+Et(Ft.getUTCDate(),2)+Et(Ft.getUTCHours(),2)+Et(Ft.getUTCMinutes(),2)+Et(Ft.getUTCSeconds(),2)+"Z)";if({}.toString.call(Ft)==="[object Object]"){for(se in Vt=["<<"],Ft)pe=Ft[se],Vt.push("/"+se+" "+wt.convert(pe));return Vt.push(">>"),Vt.join(`
|
|
|
`)}return""+Ft},wt}()},86129:function(hi,Cn,bt){var Mt=bt(19208).lW,ce=bt(97671);(function(ie){hi.exports=ie()})(function(){return function ie(Ie,ee,Zt){function Nt(Pt,re){if(!ee[Pt]){if(!Ie[Pt]){var Kt=void 0;if(!re&&Kt)return require(Pt,!0);if(jt)return jt(Pt,!0);var Yt=new Error("Cannot find module '"+Pt+"'");throw Yt.code="MODULE_NOT_FOUND",Yt}var Ct=ee[Pt]={exports:{}};Ie[Pt][0].call(Ct.exports,function(et){var tt=Ie[Pt][1][et];return Nt(tt||et)},Ct,Ct.exports,ie,Ie,ee,Zt)}return ee[Pt].exports}for(var jt=void 0,qt=0;qt<Zt.length;qt++)Nt(Zt[qt]);return Nt}({1:[function(ie,Ie,ee){"use strict";var Zt=ie("./utils"),Nt=ie("./support"),jt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";ee.encode=function(qt){for(var Pt,re,Kt,Yt,Ct,et,tt,lt=[],rt=0,ht=qt.length,dt=ht,St=Zt.getTypeOf(qt)!=="string";rt<qt.length;)dt=ht-rt,Kt=St?(Pt=qt[rt++],re=rt<ht?qt[rt++]:0,rt<ht?qt[rt++]:0):(Pt=qt.charCodeAt(rt++),re=rt<ht?qt.charCodeAt(rt++):0,rt<ht?qt.charCodeAt(rt++):0),Yt=Pt>>2,Ct=(3&Pt)<<4|re>>4,et=1<dt?(15&re)<<2|Kt>>6:64,tt=2<dt?63&Kt:64,lt.push(jt.charAt(Yt)+jt.charAt(Ct)+jt.charAt(et)+jt.charAt(tt));return lt.join("")},ee.decode=function(qt){var Pt,re,Kt,Yt,Ct,et,tt=0,lt=0,rt="data:";if(qt.substr(0,rt.length)===rt)throw new Error("Invalid base64 input, it looks like a data url.");var ht,dt=3*(qt=qt.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(qt.charAt(qt.length-1)===jt.charAt(64)&&dt--,qt.charAt(qt.length-2)===jt.charAt(64)&&dt--,dt%1!=0)throw new Error("Invalid base64 input, bad content length.");for(ht=Nt.uint8array?new Uint8Array(0|dt):new Array(0|dt);tt<qt.length;)Pt=jt.indexOf(qt.charAt(tt++))<<2|(Yt=jt.indexOf(qt.charAt(tt++)))>>4,re=(15&Yt)<<4|(Ct=jt.indexOf(qt.charAt(tt++)))>>2,Kt=(3&Ct)<<6|(et=jt.indexOf(qt.charAt(tt++))),ht[lt++]=Pt,Ct!==64&&(ht[lt++]=re),et!==64&&(ht[lt++]=Kt);return ht}},{"./support":30,"./utils":32}],2:[function(ie,Ie,ee){"use strict";var Zt=ie("./external"),Nt=ie("./stream/DataWorker"),jt=ie("./stream/Crc32Probe"),qt=ie("./stream/DataLengthProbe");function Pt(re,Kt,Yt,Ct,et){this.compressedSize=re,this.uncompressedSize=Kt,this.crc32=Yt,this.compression=Ct,this.compressedContent=et}Pt.prototype={getContentWorker:function(){var re=new Nt(Zt.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new qt("data_length")),Kt=this;return re.on("end",function(){if(this.streamInfo.data_length!==Kt.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),re},getCompressedWorker:function(){return new Nt(Zt.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},Pt.createWorkerFrom=function(re,Kt,Yt){return re.pipe(new jt).pipe(new qt("uncompressedSize")).pipe(Kt.compressWorker(Yt)).pipe(new qt("compressedSize")).withStreamInfo("compression",Kt)},Ie.exports=Pt},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(ie,Ie,ee){"use strict";var Zt=ie("./stream/GenericWorker");ee.STORE={magic:"\0\0",compressWorker:function(){return new Zt("STORE compression")},uncompressWorker:function(){return new Zt("STORE decompression")}},ee.DEFLATE=ie("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(ie,Ie,ee){"use strict";var Zt=ie("./utils"),Nt=function(){for(var jt,qt=[],Pt=0;Pt<256;Pt++){jt=Pt;for(var re=0;re<8;re++)jt=1&jt?3988292384^jt>>>1:jt>>>1;qt[Pt]=jt}return qt}();Ie.exports=function(jt,qt){return jt!==void 0&&jt.length?Zt.getTypeOf(jt)!=="string"?function(Pt,re,Kt,Yt){var Ct=Nt,et=Yt+Kt;Pt^=-1;for(var tt=Yt;tt<et;tt++)Pt=Pt>>>8^Ct[255&(Pt^re[tt])];return-1^Pt}(0|qt,jt,jt.length,0):function(Pt,re,Kt,Yt){var Ct=Nt,et=Yt+Kt;Pt^=-1;for(var tt=Yt;tt<et;tt++)Pt=Pt>>>8^Ct[255&(Pt^re.charCodeAt(tt))];return-1^Pt}(0|qt,jt,jt.length,0):0}},{"./utils":32}],5:[function(ie,Ie,ee){"use strict";ee.base64=!1,ee.binary=!1,ee.dir=!1,ee.createFolders=!0,ee.date=null,ee.compression=null,ee.compressionOptions=null,ee.comment=null,ee.unixPermissions=null,ee.dosPermissions=null},{}],6:[function(ie,Ie,ee){"use strict";var Zt=null;Zt=typeof Promise!="undefined"?Promise:ie("lie"),Ie.exports={Promise:Zt}},{lie:37}],7:[function(ie,Ie,ee){"use strict";var Zt=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",Nt=ie("pako"),jt=ie("./utils"),qt=ie("./stream/GenericWorker"),Pt=Zt?"uint8array":"array";function re(Kt,Yt){qt.call(this,"FlateWorker/"+Kt),this._pako=null,this._pakoAction=Kt,this._pakoOptions=Yt,this.meta={}}ee.magic="\b\0",jt.inherits(re,qt),re.prototype.processChunk=function(Kt){this.meta=Kt.meta,this._pako===null&&this._createPako(),this._pako.push(jt.transformTo(Pt,Kt.data),!1)},re.prototype.flush=function(){qt.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},re.prototype.cleanUp=function(){qt.prototype.cleanUp.call(this),this._pako=null},re.prototype._createPako=function(){this._pako=new Nt[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var Kt=this;this._pako.onData=function(Yt){Kt.push({data:Yt,meta:Kt.meta})}},ee.compressWorker=function(Kt){return new re("Deflate",Kt)},ee.uncompressWorker=function(){return new re("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(ie,Ie,ee){"use strict";function Zt(Ct,et){var tt,lt="";for(tt=0;tt<et;tt++)lt+=String.fromCharCode(255&Ct),Ct>>>=8;return lt}function Nt(Ct,et,tt,lt,rt,ht){var dt,St,It=Ct.file,_t=Ct.compression,Gt=ht!==Pt.utf8encode,oe=jt.transformTo("string",ht(It.name)),ue=jt.transformTo("string",Pt.utf8encode(It.name)),de=It.comment,be=jt.transformTo("string",ht(de)),Jt=jt.transformTo("string",Pt.utf8encode(de)),Ke=ue.length!==It.name.length,Wt=Jt.length!==de.length,Ge="",He="",Me="",We=It.dir,_e=It.date,ve={crc32:0,compressedSize:0,uncompressedSize:0};et&&!tt||(ve.crc32=Ct.crc32,ve.compressedSize=Ct.compressedSize,ve.uncompressedSize=Ct.uncompressedSize);var ne=0;et&&(ne|=8),Gt||!Ke&&!Wt||(ne|=2048);var Se=0,Pn=0;We&&(Se|=16),rt==="UNIX"?(Pn=798,Se|=function(Xe,Nn){var Zn=Xe;return Xe||(Zn=Nn?16893:33204),(65535&Zn)<<16}(It.unixPermissions,We)):(Pn=20,Se|=function(Xe){return 63&(Xe||0)}(It.dosPermissions)),dt=_e.getUTCHours(),dt<<=6,dt|=_e.getUTCMinutes(),dt<<=5,dt|=_e.getUTCSeconds()/2,St=_e.getUTCFullYear()-1980,St<<=4,St|=_e.getUTCMonth()+1,St<<=5,St|=_e.getUTCDate(),Ke&&(He=Zt(1,1)+Zt(re(oe),4)+ue,Ge+="up"+Zt(He.length,2)+He),Wt&&(Me=Zt(1,1)+Zt(re(be),4)+Jt,Ge+="uc"+Zt(Me.length,2)+Me);var Mn="";return Mn+=`
|
|
|
\0`,Mn+=Zt(ne,2),Mn+=_t.magic,Mn+=Zt(dt,2),Mn+=Zt(St,2),Mn+=Zt(ve.crc32,4),Mn+=Zt(ve.compressedSize,4),Mn+=Zt(ve.uncompressedSize,4),Mn+=Zt(oe.length,2),Mn+=Zt(Ge.length,2),{fileRecord:Kt.LOCAL_FILE_HEADER+Mn+oe+Ge,dirRecord:Kt.CENTRAL_FILE_HEADER+Zt(Pn,2)+Mn+Zt(be.length,2)+"\0\0\0\0"+Zt(Se,4)+Zt(lt,4)+oe+Ge+be}}var jt=ie("../utils"),qt=ie("../stream/GenericWorker"),Pt=ie("../utf8"),re=ie("../crc32"),Kt=ie("../signature");function Yt(Ct,et,tt,lt){qt.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=et,this.zipPlatform=tt,this.encodeFileName=lt,this.streamFiles=Ct,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}jt.inherits(Yt,qt),Yt.prototype.push=function(Ct){var et=Ct.meta.percent||0,tt=this.entriesCount,lt=this._sources.length;this.accumulate?this.contentBuffer.push(Ct):(this.bytesWritten+=Ct.data.length,qt.prototype.push.call(this,{data:Ct.data,meta:{currentFile:this.currentFile,percent:tt?(et+100*(tt-lt-1))/tt:100}}))},Yt.prototype.openedSource=function(Ct){this.currentSourceOffset=this.bytesWritten,this.currentFile=Ct.file.name;var et=this.streamFiles&&!Ct.file.dir;if(et){var tt=Nt(Ct,et,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:tt.fileRecord,meta:{percent:0}})}else this.accumulate=!0},Yt.prototype.closedSource=function(Ct){this.accumulate=!1;var et=this.streamFiles&&!Ct.file.dir,tt=Nt(Ct,et,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(tt.dirRecord),et)this.push({data:function(lt){return Kt.DATA_DESCRIPTOR+Zt(lt.crc32,4)+Zt(lt.compressedSize,4)+Zt(lt.uncompressedSize,4)}(Ct),meta:{percent:100}});else for(this.push({data:tt.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},Yt.prototype.flush=function(){for(var Ct=this.bytesWritten,et=0;et<this.dirRecords.length;et++)this.push({data:this.dirRecords[et],meta:{percent:100}});var tt=this.bytesWritten-Ct,lt=function(rt,ht,dt,St,It){var _t=jt.transformTo("string",It(St));return Kt.CENTRAL_DIRECTORY_END+"\0\0\0\0"+Zt(rt,2)+Zt(rt,2)+Zt(ht,4)+Zt(dt,4)+Zt(_t.length,2)+_t}(this.dirRecords.length,tt,Ct,this.zipComment,this.encodeFileName);this.push({data:lt,meta:{percent:100}})},Yt.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},Yt.prototype.registerPrevious=function(Ct){this._sources.push(Ct);var et=this;return Ct.on("data",function(tt){et.processChunk(tt)}),Ct.on("end",function(){et.closedSource(et.previous.streamInfo),et._sources.length?et.prepareNextSource():et.end()}),Ct.on("error",function(tt){et.error(tt)}),this},Yt.prototype.resume=function(){return!!qt.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},Yt.prototype.error=function(Ct){var et=this._sources;if(!qt.prototype.error.call(this,Ct))return!1;for(var tt=0;tt<et.length;tt++)try{et[tt].error(Ct)}catch(lt){}return!0},Yt.prototype.lock=function(){qt.prototype.lock.call(this);for(var Ct=this._sources,et=0;et<Ct.length;et++)Ct[et].lock()},Ie.exports=Yt},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(ie,Ie,ee){"use strict";var Zt=ie("../compressions"),Nt=ie("./ZipFileWorker");ee.generateWorker=function(jt,qt,Pt){var re=new Nt(qt.streamFiles,Pt,qt.platform,qt.encodeFileName),Kt=0;try{jt.forEach(function(Yt,Ct){Kt++;var et=function(ht,dt){var St=ht||dt,It=Zt[St];if(!It)throw new Error(St+" is not a valid compression method !");return It}(Ct.options.compression,qt.compression),tt=Ct.options.compressionOptions||qt.compressionOptions||{},lt=Ct.dir,rt=Ct.date;Ct._compressWorker(et,tt).withStreamInfo("file",{name:Yt,dir:lt,date:rt,comment:Ct.comment||"",unixPermissions:Ct.unixPermissions,dosPermissions:Ct.dosPermissions}).pipe(re)}),re.entriesCount=Kt}catch(Yt){re.error(Yt)}return re}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(ie,Ie,ee){"use strict";function Zt(){if(!(this instanceof Zt))return new Zt;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 Nt=new Zt;for(var jt in this)typeof this[jt]!="function"&&(Nt[jt]=this[jt]);return Nt}}(Zt.prototype=ie("./object")).loadAsync=ie("./load"),Zt.support=ie("./support"),Zt.defaults=ie("./defaults"),Zt.version="3.10.1",Zt.loadAsync=function(Nt,jt){return new Zt().loadAsync(Nt,jt)},Zt.external=ie("./external"),Ie.exports=Zt},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(ie,Ie,ee){"use strict";var Zt=ie("./utils"),Nt=ie("./external"),jt=ie("./utf8"),qt=ie("./zipEntries"),Pt=ie("./stream/Crc32Probe"),re=ie("./nodejsUtils");function Kt(Yt){return new Nt.Promise(function(Ct,et){var tt=Yt.decompressed.getContentWorker().pipe(new Pt);tt.on("error",function(lt){et(lt)}).on("end",function(){tt.streamInfo.crc32!==Yt.decompressed.crc32?et(new Error("Corrupted zip : CRC32 mismatch")):Ct()}).resume()})}Ie.exports=function(Yt,Ct){var et=this;return Ct=Zt.extend(Ct||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:jt.utf8decode}),re.isNode&&re.isStream(Yt)?Nt.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):Zt.prepareContent("the loaded zip file",Yt,!0,Ct.optimizedBinaryString,Ct.base64).then(function(tt){var lt=new qt(Ct);return lt.load(tt),lt}).then(function(tt){var lt=[Nt.Promise.resolve(tt)],rt=tt.files;if(Ct.checkCRC32)for(var ht=0;ht<rt.length;ht++)lt.push(Kt(rt[ht]));return Nt.Promise.all(lt)}).then(function(tt){for(var lt=tt.shift(),rt=lt.files,ht=0;ht<rt.length;ht++){var dt=rt[ht],St=dt.fileNameStr,It=Zt.resolve(dt.fileNameStr);et.file(It,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:Ct.createFolders}),dt.dir||(et.file(It).unsafeOriginalName=St)}return lt.zipComment.length&&(et.comment=lt.zipComment),et})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(ie,Ie,ee){"use strict";var Zt=ie("../utils"),Nt=ie("../stream/GenericWorker");function jt(qt,Pt){Nt.call(this,"Nodejs stream input adapter for "+qt),this._upstreamEnded=!1,this._bindStream(Pt)}Zt.inherits(jt,Nt),jt.prototype._bindStream=function(qt){var Pt=this;(this._stream=qt).pause(),qt.on("data",function(re){Pt.push({data:re,meta:{percent:0}})}).on("error",function(re){Pt.isPaused?this.generatedError=re:Pt.error(re)}).on("end",function(){Pt.isPaused?Pt._upstreamEnded=!0:Pt.end()})},jt.prototype.pause=function(){return!!Nt.prototype.pause.call(this)&&(this._stream.pause(),!0)},jt.prototype.resume=function(){return!!Nt.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},Ie.exports=jt},{"../stream/GenericWorker":28,"../utils":32}],13:[function(ie,Ie,ee){"use strict";var Zt=ie("readable-stream").Readable;function Nt(jt,qt,Pt){Zt.call(this,qt),this._helper=jt;var re=this;jt.on("data",function(Kt,Yt){re.push(Kt)||re._helper.pause(),Pt&&Pt(Yt)}).on("error",function(Kt){re.emit("error",Kt)}).on("end",function(){re.push(null)})}ie("../utils").inherits(Nt,Zt),Nt.prototype._read=function(){this._helper.resume()},Ie.exports=Nt},{"../utils":32,"readable-stream":16}],14:[function(ie,Ie,ee){"use strict";Ie.exports={isNode:typeof Mt!="undefined",newBufferFrom:function(Zt,Nt){if(Mt.from&&Mt.from!==Uint8Array.from)return Mt.from(Zt,Nt);if(typeof Zt=="number")throw new Error('The "data" argument must not be a number');return new Mt(Zt,Nt)},allocBuffer:function(Zt){if(Mt.alloc)return Mt.alloc(Zt);var Nt=new Mt(Zt);return Nt.fill(0),Nt},isBuffer:function(Zt){return Mt.isBuffer(Zt)},isStream:function(Zt){return Zt&&typeof Zt.on=="function"&&typeof Zt.pause=="function"&&typeof Zt.resume=="function"}}},{}],15:[function(ie,Ie,ee){"use strict";function Zt(It,_t,Gt){var oe,ue=jt.getTypeOf(_t),de=jt.extend(Gt||{},re);de.date=de.date||new Date,de.compression!==null&&(de.compression=de.compression.toUpperCase()),typeof de.unixPermissions=="string"&&(de.unixPermissions=parseInt(de.unixPermissions,8)),de.unixPermissions&&16384&de.unixPermissions&&(de.dir=!0),de.dosPermissions&&16&de.dosPermissions&&(de.dir=!0),de.dir&&(It=rt(It)),de.createFolders&&(oe=lt(It))&&ht.call(this,oe,!0);var be=ue==="string"&&de.binary===!1&&de.base64===!1;Gt&&Gt.binary!==void 0||(de.binary=!be),(_t instanceof Kt&&_t.uncompressedSize===0||de.dir||!_t||_t.length===0)&&(de.base64=!1,de.binary=!0,_t="",de.compression="STORE",ue="string");var Jt=null;Jt=_t instanceof Kt||_t instanceof qt?_t:et.isNode&&et.isStream(_t)?new tt(It,_t):jt.prepareContent(It,_t,de.binary,de.optimizedBinaryString,de.base64);var Ke=new Yt(It,Jt,de);this.files[It]=Ke}var Nt=ie("./utf8"),jt=ie("./utils"),qt=ie("./stream/GenericWorker"),Pt=ie("./stream/StreamHelper"),re=ie("./defaults"),Kt=ie("./compressedObject"),Yt=ie("./zipObject"),Ct=ie("./generate"),et=ie("./nodejsUtils"),tt=ie("./nodejs/NodejsStreamInputAdapter"),lt=function(It){It.slice(-1)==="/"&&(It=It.substring(0,It.length-1));var _t=It.lastIndexOf("/");return 0<_t?It.substring(0,_t):""},rt=function(It){return It.slice(-1)!=="/"&&(It+="/"),It},ht=function(It,_t){return _t=_t!==void 0?_t:re.createFolders,It=rt(It),this.files[It]||Zt.call(this,It,null,{dir:!0,createFolders:_t}),this.files[It]};function dt(It){return Object.prototype.toString.call(It)==="[object RegExp]"}var St={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(It){var _t,Gt,oe;for(_t in this.files)oe=this.files[_t],(Gt=_t.slice(this.root.length,_t.length))&&_t.slice(0,this.root.length)===this.root&&It(Gt,oe)},filter:function(It){var _t=[];return this.forEach(function(Gt,oe){It(Gt,oe)&&_t.push(oe)}),_t},file:function(It,_t,Gt){if(arguments.length!==1)return It=this.root+It,Zt.call(this,It,_t,Gt),this;if(dt(It)){var oe=It;return this.filter(function(de,be){return!be.dir&&oe.test(de)})}var ue=this.files[this.root+It];return ue&&!ue.dir?ue:null},folder:function(It){if(!It)return this;if(dt(It))return this.filter(function(ue,de){return de.dir&&It.test(ue)});var _t=this.root+It,Gt=ht.call(this,_t),oe=this.clone();return oe.root=Gt.name,oe},remove:function(It){It=this.root+It;var _t=this.files[It];if(_t||(It.slice(-1)!=="/"&&(It+="/"),_t=this.files[It]),_t&&!_t.dir)delete this.files[It];else for(var Gt=this.filter(function(ue,de){return de.name.slice(0,It.length)===It}),oe=0;oe<Gt.length;oe++)delete this.files[Gt[oe].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(It){var _t,Gt={};try{if((Gt=jt.extend(It||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:Nt.utf8encode})).type=Gt.type.toLowerCase(),Gt.compression=Gt.compression.toUpperCase(),Gt.type==="binarystring"&&(Gt.type="string"),!Gt.type)throw new Error("No output type specified.");jt.checkSupport(Gt.type),Gt.platform!=="darwin"&&Gt.platform!=="freebsd"&&Gt.platform!=="linux"&&Gt.platform!=="sunos"||(Gt.platform="UNIX"),Gt.platform==="win32"&&(Gt.platform="DOS");var oe=Gt.comment||this.comment||"";_t=Ct.generateWorker(this,Gt,oe)}catch(ue){(_t=new qt("error")).error(ue)}return new Pt(_t,Gt.type||"string",Gt.mimeType)},generateAsync:function(It,_t){return this.generateInternalStream(It).accumulate(_t)},generateNodeStream:function(It,_t){return(It=It||{}).type||(It.type="nodebuffer"),this.generateInternalStream(It).toNodejsStream(_t)}};Ie.exports=St},{"./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(ie,Ie,ee){"use strict";Ie.exports=ie("stream")},{stream:void 0}],17:[function(ie,Ie,ee){"use strict";var Zt=ie("./DataReader");function Nt(jt){Zt.call(this,jt);for(var qt=0;qt<this.data.length;qt++)jt[qt]=255&jt[qt]}ie("../utils").inherits(Nt,Zt),Nt.prototype.byteAt=function(jt){return this.data[this.zero+jt]},Nt.prototype.lastIndexOfSignature=function(jt){for(var qt=jt.charCodeAt(0),Pt=jt.charCodeAt(1),re=jt.charCodeAt(2),Kt=jt.charCodeAt(3),Yt=this.length-4;0<=Yt;--Yt)if(this.data[Yt]===qt&&this.data[Yt+1]===Pt&&this.data[Yt+2]===re&&this.data[Yt+3]===Kt)return Yt-this.zero;return-1},Nt.prototype.readAndCheckSignature=function(jt){var qt=jt.charCodeAt(0),Pt=jt.charCodeAt(1),re=jt.charCodeAt(2),Kt=jt.charCodeAt(3),Yt=this.readData(4);return qt===Yt[0]&&Pt===Yt[1]&&re===Yt[2]&&Kt===Yt[3]},Nt.prototype.readData=function(jt){if(this.checkOffset(jt),jt===0)return[];var qt=this.data.slice(this.zero+this.index,this.zero+this.index+jt);return this.index+=jt,qt},Ie.exports=Nt},{"../utils":32,"./DataReader":18}],18:[function(ie,Ie,ee){"use strict";var Zt=ie("../utils");function Nt(jt){this.data=jt,this.length=jt.length,this.index=0,this.zero=0}Nt.prototype={checkOffset:function(jt){this.checkIndex(this.index+jt)},checkIndex:function(jt){if(this.length<this.zero+jt||jt<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+jt+"). Corrupted zip ?")},setIndex:function(jt){this.checkIndex(jt),this.index=jt},skip:function(jt){this.setIndex(this.index+jt)},byteAt:function(){},readInt:function(jt){var qt,Pt=0;for(this.checkOffset(jt),qt=this.index+jt-1;qt>=this.index;qt--)Pt=(Pt<<8)+this.byteAt(qt);return this.index+=jt,Pt},readString:function(jt){return Zt.transformTo("string",this.readData(jt))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var jt=this.readInt(4);return new Date(Date.UTC(1980+(jt>>25&127),(jt>>21&15)-1,jt>>16&31,jt>>11&31,jt>>5&63,(31&jt)<<1))}},Ie.exports=Nt},{"../utils":32}],19:[function(ie,Ie,ee){"use strict";var Zt=ie("./Uint8ArrayReader");function Nt(jt){Zt.call(this,jt)}ie("../utils").inherits(Nt,Zt),Nt.prototype.readData=function(jt){this.checkOffset(jt);var qt=this.data.slice(this.zero+this.index,this.zero+this.index+jt);return this.index+=jt,qt},Ie.exports=Nt},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(ie,Ie,ee){"use strict";var Zt=ie("./DataReader");function Nt(jt){Zt.call(this,jt)}ie("../utils").inherits(Nt,Zt),Nt.prototype.byteAt=function(jt){return this.data.charCodeAt(this.zero+jt)},Nt.prototype.lastIndexOfSignature=function(jt){return this.data.lastIndexOf(jt)-this.zero},Nt.prototype.readAndCheckSignature=function(jt){return jt===this.readData(4)},Nt.prototype.readData=function(jt){this.checkOffset(jt);var qt=this.data.slice(this.zero+this.index,this.zero+this.index+jt);return this.index+=jt,qt},Ie.exports=Nt},{"../utils":32,"./DataReader":18}],21:[function(ie,Ie,ee){"use strict";var Zt=ie("./ArrayReader");function Nt(jt){Zt.call(this,jt)}ie("../utils").inherits(Nt,Zt),Nt.prototype.readData=function(jt){if(this.checkOffset(jt),jt===0)return new Uint8Array(0);var qt=this.data.subarray(this.zero+this.index,this.zero+this.index+jt);return this.index+=jt,qt},Ie.exports=Nt},{"../utils":32,"./ArrayReader":17}],22:[function(ie,Ie,ee){"use strict";var Zt=ie("../utils"),Nt=ie("../support"),jt=ie("./ArrayReader"),qt=ie("./StringReader"),Pt=ie("./NodeBufferReader"),re=ie("./Uint8ArrayReader");Ie.exports=function(Kt){var Yt=Zt.getTypeOf(Kt);return Zt.checkSupport(Yt),Yt!=="string"||Nt.uint8array?Yt==="nodebuffer"?new Pt(Kt):Nt.uint8array?new re(Zt.transformTo("uint8array",Kt)):new jt(Zt.transformTo("array",Kt)):new qt(Kt)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(ie,Ie,ee){"use strict";ee.LOCAL_FILE_HEADER="PK",ee.CENTRAL_FILE_HEADER="PK",ee.CENTRAL_DIRECTORY_END="PK",ee.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",ee.ZIP64_CENTRAL_DIRECTORY_END="PK",ee.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(ie,Ie,ee){"use strict";var Zt=ie("./GenericWorker"),Nt=ie("../utils");function jt(qt){Zt.call(this,"ConvertWorker to "+qt),this.destType=qt}Nt.inherits(jt,Zt),jt.prototype.processChunk=function(qt){this.push({data:Nt.transformTo(this.destType,qt.data),meta:qt.meta})},Ie.exports=jt},{"../utils":32,"./GenericWorker":28}],25:[function(ie,Ie,ee){"use strict";var Zt=ie("./GenericWorker"),Nt=ie("../crc32");function jt(){Zt.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}ie("../utils").inherits(jt,Zt),jt.prototype.processChunk=function(qt){this.streamInfo.crc32=Nt(qt.data,this.streamInfo.crc32||0),this.push(qt)},Ie.exports=jt},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(ie,Ie,ee){"use strict";var Zt=ie("../utils"),Nt=ie("./GenericWorker");function jt(qt){Nt.call(this,"DataLengthProbe for "+qt),this.propName=qt,this.withStreamInfo(qt,0)}Zt.inherits(jt,Nt),jt.prototype.processChunk=function(qt){if(qt){var Pt=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=Pt+qt.data.length}Nt.prototype.processChunk.call(this,qt)},Ie.exports=jt},{"../utils":32,"./GenericWorker":28}],27:[function(ie,Ie,ee){"use strict";var Zt=ie("../utils"),Nt=ie("./GenericWorker");function jt(qt){Nt.call(this,"DataWorker");var Pt=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,qt.then(function(re){Pt.dataIsReady=!0,Pt.data=re,Pt.max=re&&re.length||0,Pt.type=Zt.getTypeOf(re),Pt.isPaused||Pt._tickAndRepeat()},function(re){Pt.error(re)})}Zt.inherits(jt,Nt),jt.prototype.cleanUp=function(){Nt.prototype.cleanUp.call(this),this.data=null},jt.prototype.resume=function(){return!!Nt.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,Zt.delay(this._tickAndRepeat,[],this)),!0)},jt.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(Zt.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},jt.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var qt=null,Pt=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":qt=this.data.substring(this.index,Pt);break;case"uint8array":qt=this.data.subarray(this.index,Pt);break;case"array":case"nodebuffer":qt=this.data.slice(this.index,Pt)}return this.index=Pt,this.push({data:qt,meta:{percent:this.max?this.index/this.max*100:0}})},Ie.exports=jt},{"../utils":32,"./GenericWorker":28}],28:[function(ie,Ie,ee){"use strict";function Zt(Nt){this.name=Nt||"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}Zt.prototype={push:function(Nt){this.emit("data",Nt)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(Nt){this.emit("error",Nt)}return!0},error:function(Nt){return!this.isFinished&&(this.isPaused?this.generatedError=Nt:(this.isFinished=!0,this.emit("error",Nt),this.previous&&this.previous.error(Nt),this.cleanUp()),!0)},on:function(Nt,jt){return this._listeners[Nt].push(jt),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(Nt,jt){if(this._listeners[Nt])for(var qt=0;qt<this._listeners[Nt].length;qt++)this._listeners[Nt][qt].call(this,jt)},pipe:function(Nt){return Nt.registerPrevious(this)},registerPrevious:function(Nt){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=Nt.streamInfo,this.mergeStreamInfo(),this.previous=Nt;var jt=this;return Nt.on("data",function(qt){jt.processChunk(qt)}),Nt.on("end",function(){jt.end()}),Nt.on("error",function(qt){jt.error(qt)}),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 Nt=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),Nt=!0),this.previous&&this.previous.resume(),!Nt},flush:function(){},processChunk:function(Nt){this.push(Nt)},withStreamInfo:function(Nt,jt){return this.extraStreamInfo[Nt]=jt,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var Nt in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,Nt)&&(this.streamInfo[Nt]=this.extraStreamInfo[Nt])},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 Nt="Worker "+this.name;return this.previous?this.previous+" -> "+Nt:Nt}},Ie.exports=Zt},{}],29:[function(ie,Ie,ee){"use strict";var Zt=ie("../utils"),Nt=ie("./ConvertWorker"),jt=ie("./GenericWorker"),qt=ie("../base64"),Pt=ie("../support"),re=ie("../external"),Kt=null;if(Pt.nodestream)try{Kt=ie("../nodejs/NodejsStreamOutputAdapter")}catch(et){}function Yt(et,tt){return new re.Promise(function(lt,rt){var ht=[],dt=et._internalType,St=et._outputType,It=et._mimeType;et.on("data",function(_t,Gt){ht.push(_t),tt&&tt(Gt)}).on("error",function(_t){ht=[],rt(_t)}).on("end",function(){try{var _t=function(Gt,oe,ue){switch(Gt){case"blob":return Zt.newBlob(Zt.transformTo("arraybuffer",oe),ue);case"base64":return qt.encode(oe);default:return Zt.transformTo(Gt,oe)}}(St,function(Gt,oe){var ue,de=0,be=null,Jt=0;for(ue=0;ue<oe.length;ue++)Jt+=oe[ue].length;switch(Gt){case"string":return oe.join("");case"array":return Array.prototype.concat.apply([],oe);case"uint8array":for(be=new Uint8Array(Jt),ue=0;ue<oe.length;ue++)be.set(oe[ue],de),de+=oe[ue].length;return be;case"nodebuffer":return Mt.concat(oe);default:throw new Error("concat : unsupported type '"+Gt+"'")}}(dt,ht),It);lt(_t)}catch(Gt){rt(Gt)}ht=[]}).resume()})}function Ct(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,Zt.checkSupport(rt),this._worker=et.pipe(new Nt(rt)),et.lock()}catch(ht){this._worker=new jt("error"),this._worker.error(ht)}}Ct.prototype={accumulate:function(et){return Yt(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(){Zt.delay(tt,arguments,lt)}),this},resume:function(){return Zt.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(et){if(Zt.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new Kt(this,{objectMode:this._outputType!=="nodebuffer"},et)}},Ie.exports=Ct},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(ie,Ie,ee){"use strict";if(ee.base64=!0,ee.array=!0,ee.string=!0,ee.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",ee.nodebuffer=typeof Mt!="undefined",ee.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")ee.blob=!1;else{var Zt=new ArrayBuffer(0);try{ee.blob=new Blob([Zt],{type:"application/zip"}).size===0}catch(jt){try{var Nt=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);Nt.append(Zt),ee.blob=Nt.getBlob("application/zip").size===0}catch(qt){ee.blob=!1}}}try{ee.nodestream=!!ie("readable-stream").Readable}catch(jt){ee.nodestream=!1}},{"readable-stream":16}],31:[function(ie,Ie,ee){"use strict";for(var Zt=ie("./utils"),Nt=ie("./support"),jt=ie("./nodejsUtils"),qt=ie("./stream/GenericWorker"),Pt=new Array(256),re=0;re<256;re++)Pt[re]=252<=re?6:248<=re?5:240<=re?4:224<=re?3:192<=re?2:1;Pt[254]=Pt[254]=1;function Kt(){qt.call(this,"utf-8 decode"),this.leftOver=null}function Yt(){qt.call(this,"utf-8 encode")}ee.utf8encode=function(Ct){return Nt.nodebuffer?jt.newBufferFrom(Ct,"utf-8"):function(et){var tt,lt,rt,ht,dt,St=et.length,It=0;for(ht=0;ht<St;ht++)(64512&(lt=et.charCodeAt(ht)))==55296&&ht+1<St&&(64512&(rt=et.charCodeAt(ht+1)))==56320&&(lt=65536+(lt-55296<<10)+(rt-56320),ht++),It+=lt<128?1:lt<2048?2:lt<65536?3:4;for(tt=Nt.uint8array?new Uint8Array(It):new Array(It),ht=dt=0;dt<It;ht++)(64512&(lt=et.charCodeAt(ht)))==55296&&ht+1<St&&(64512&(rt=et.charCodeAt(ht+1)))==56320&&(lt=65536+(lt-55296<<10)+(rt-56320),ht++),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}(Ct)},ee.utf8decode=function(Ct){return Nt.nodebuffer?Zt.transformTo("nodebuffer",Ct).toString("utf-8"):function(et){var tt,lt,rt,ht,dt=et.length,St=new Array(2*dt);for(tt=lt=0;tt<dt;)if((rt=et[tt++])<128)St[lt++]=rt;else if(4<(ht=Pt[rt]))St[lt++]=65533,tt+=ht-1;else{for(rt&=ht===2?31:ht===3?15:7;1<ht&&tt<dt;)rt=rt<<6|63&et[tt++],ht--;1<ht?St[lt++]=65533:rt<65536?St[lt++]=rt:(rt-=65536,St[lt++]=55296|rt>>10&1023,St[lt++]=56320|1023&rt)}return St.length!==lt&&(St.subarray?St=St.subarray(0,lt):St.length=lt),Zt.applyFromCharCode(St)}(Ct=Zt.transformTo(Nt.uint8array?"uint8array":"array",Ct))},Zt.inherits(Kt,qt),Kt.prototype.processChunk=function(Ct){var et=Zt.transformTo(Nt.uint8array?"uint8array":"array",Ct.data);if(this.leftOver&&this.leftOver.length){if(Nt.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(ht,dt){var St;for((dt=dt||ht.length)>ht.length&&(dt=ht.length),St=dt-1;0<=St&&(192&ht[St])==128;)St--;return St<0||St===0?dt:St+Pt[ht[St]]>dt?St:dt}(et),rt=et;lt!==et.length&&(Nt.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:ee.utf8decode(rt),meta:Ct.meta})},Kt.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:ee.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},ee.Utf8DecodeWorker=Kt,Zt.inherits(Yt,qt),Yt.prototype.processChunk=function(Ct){this.push({data:ee.utf8encode(Ct.data),meta:Ct.meta})},ee.Utf8EncodeWorker=Yt},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(ie,Ie,ee){"use strict";var Zt=ie("./support"),Nt=ie("./base64"),jt=ie("./nodejsUtils"),qt=ie("./external");function Pt(tt){return tt}function re(tt,lt){for(var rt=0;rt<tt.length;++rt)lt[rt]=255&tt.charCodeAt(rt);return lt}ie("setimmediate"),ee.newBlob=function(tt,lt){ee.checkSupport("blob");try{return new Blob([tt],{type:lt})}catch(ht){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 Kt={stringifyByChunk:function(tt,lt,rt){var ht=[],dt=0,St=tt.length;if(St<=rt)return String.fromCharCode.apply(null,tt);for(;dt<St;)lt==="array"||lt==="nodebuffer"?ht.push(String.fromCharCode.apply(null,tt.slice(dt,Math.min(dt+rt,St)))):ht.push(String.fromCharCode.apply(null,tt.subarray(dt,Math.min(dt+rt,St)))),dt+=rt;return ht.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 Zt.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(tt){return!1}}(),nodebuffer:function(){try{return Zt.nodebuffer&&String.fromCharCode.apply(null,jt.allocBuffer(1)).length===1}catch(tt){return!1}}()}};function Yt(tt){var lt=65536,rt=ee.getTypeOf(tt),ht=!0;if(rt==="uint8array"?ht=Kt.applyCanBeUsed.uint8array:rt==="nodebuffer"&&(ht=Kt.applyCanBeUsed.nodebuffer),ht)for(;1<lt;)try{return Kt.stringifyByChunk(tt,rt,lt)}catch(dt){lt=Math.floor(lt/2)}return Kt.stringifyByChar(tt)}function Ct(tt,lt){for(var rt=0;rt<tt.length;rt++)lt[rt]=tt[rt];return lt}ee.applyFromCharCode=Yt;var et={};et.string={string:Pt,array:function(tt){return re(tt,new Array(tt.length))},arraybuffer:function(tt){return et.string.uint8array(tt).buffer},uint8array:function(tt){return re(tt,new Uint8Array(tt.length))},nodebuffer:function(tt){return re(tt,jt.allocBuffer(tt.length))}},et.array={string:Yt,array:Pt,arraybuffer:function(tt){return new Uint8Array(tt).buffer},uint8array:function(tt){return new Uint8Array(tt)},nodebuffer:function(tt){return jt.newBufferFrom(tt)}},et.arraybuffer={string:function(tt){return Yt(new Uint8Array(tt))},array:function(tt){return Ct(new Uint8Array(tt),new Array(tt.byteLength))},arraybuffer:Pt,uint8array:function(tt){return new Uint8Array(tt)},nodebuffer:function(tt){return jt.newBufferFrom(new Uint8Array(tt))}},et.uint8array={string:Yt,array:function(tt){return Ct(tt,new Array(tt.length))},arraybuffer:function(tt){return tt.buffer},uint8array:Pt,nodebuffer:function(tt){return jt.newBufferFrom(tt)}},et.nodebuffer={string:Yt,array:function(tt){return Ct(tt,new Array(tt.length))},arraybuffer:function(tt){return et.nodebuffer.uint8array(tt).buffer},uint8array:function(tt){return Ct(tt,new Uint8Array(tt.length))},nodebuffer:Pt},ee.transformTo=function(tt,lt){if(lt=lt||"",!tt)return lt;ee.checkSupport(tt);var rt=ee.getTypeOf(lt);return et[rt][tt](lt)},ee.resolve=function(tt){for(var lt=tt.split("/"),rt=[],ht=0;ht<lt.length;ht++){var dt=lt[ht];dt==="."||dt===""&&ht!==0&&ht!==lt.length-1||(dt===".."?rt.pop():rt.push(dt))}return rt.join("/")},ee.getTypeOf=function(tt){return typeof tt=="string"?"string":Object.prototype.toString.call(tt)==="[object Array]"?"array":Zt.nodebuffer&&jt.isBuffer(tt)?"nodebuffer":Zt.uint8array&&tt instanceof Uint8Array?"uint8array":Zt.arraybuffer&&tt instanceof ArrayBuffer?"arraybuffer":void 0},ee.checkSupport=function(tt){if(!Zt[tt.toLowerCase()])throw new Error(tt+" is not supported by this platform")},ee.MAX_VALUE_16BITS=65535,ee.MAX_VALUE_32BITS=-1,ee.pretty=function(tt){var lt,rt,ht="";for(rt=0;rt<(tt||"").length;rt++)ht+="\\x"+((lt=tt.charCodeAt(rt))<16?"0":"")+lt.toString(16).toUpperCase();return ht},ee.delay=function(tt,lt,rt){setImmediate(function(){tt.apply(rt||null,lt||[])})},ee.inherits=function(tt,lt){function rt(){}rt.prototype=lt.prototype,tt.prototype=new rt},ee.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},ee.prepareContent=function(tt,lt,rt,ht,dt){return qt.Promise.resolve(lt).then(function(St){return Zt.blob&&(St instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(St))!==-1)&&typeof FileReader!="undefined"?new qt.Promise(function(It,_t){var Gt=new FileReader;Gt.onload=function(oe){It(oe.target.result)},Gt.onerror=function(oe){_t(oe.target.error)},Gt.readAsArrayBuffer(St)}):St}).then(function(St){var It=ee.getTypeOf(St);return It?(It==="arraybuffer"?St=ee.transformTo("uint8array",St):It==="string"&&(dt?St=Nt.decode(St):rt&&ht!==!0&&(St=function(_t){return re(_t,Zt.uint8array?new Uint8Array(_t.length):new Array(_t.length))}(St))),St):qt.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(ie,Ie,ee){"use strict";var Zt=ie("./reader/readerFor"),Nt=ie("./utils"),jt=ie("./signature"),qt=ie("./zipEntry"),Pt=ie("./support");function re(Kt){this.files=[],this.loadOptions=Kt}re.prototype={checkSignature:function(Kt){if(!this.reader.readAndCheckSignature(Kt)){this.reader.index-=4;var Yt=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+Nt.pretty(Yt)+", expected "+Nt.pretty(Kt)+")")}},isSignature:function(Kt,Yt){var Ct=this.reader.index;this.reader.setIndex(Kt);var et=this.reader.readString(4)===Yt;return this.reader.setIndex(Ct),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 Kt=this.reader.readData(this.zipCommentLength),Yt=Pt.uint8array?"uint8array":"array",Ct=Nt.transformTo(Yt,Kt);this.zipComment=this.loadOptions.decodeFileName(Ct)},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 Kt,Yt,Ct,et=this.zip64EndOfCentralSize-44;0<et;)Kt=this.reader.readInt(2),Yt=this.reader.readInt(4),Ct=this.reader.readData(Yt),this.zip64ExtensibleData[Kt]={id:Kt,length:Yt,value:Ct}},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 Kt,Yt;for(Kt=0;Kt<this.files.length;Kt++)Yt=this.files[Kt],this.reader.setIndex(Yt.localHeaderOffset),this.checkSignature(jt.LOCAL_FILE_HEADER),Yt.readLocalPart(this.reader),Yt.handleUTF8(),Yt.processAttributes()},readCentralDir:function(){var Kt;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(jt.CENTRAL_FILE_HEADER);)(Kt=new qt({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(Kt);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 Kt=this.reader.lastIndexOfSignature(jt.CENTRAL_DIRECTORY_END);if(Kt<0)throw this.isSignature(0,jt.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(Kt);var Yt=Kt;if(this.checkSignature(jt.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===Nt.MAX_VALUE_16BITS||this.diskWithCentralDirStart===Nt.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===Nt.MAX_VALUE_16BITS||this.centralDirRecords===Nt.MAX_VALUE_16BITS||this.centralDirSize===Nt.MAX_VALUE_32BITS||this.centralDirOffset===Nt.MAX_VALUE_32BITS){if(this.zip64=!0,(Kt=this.reader.lastIndexOfSignature(jt.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(Kt),this.checkSignature(jt.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,jt.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(jt.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(jt.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var Ct=this.centralDirOffset+this.centralDirSize;this.zip64&&(Ct+=20,Ct+=12+this.zip64EndOfCentralSize);var et=Yt-Ct;if(0<et)this.isSignature(Yt,jt.CENTRAL_FILE_HEADER)||(this.reader.zero=et);else if(et<0)throw new Error("Corrupted zip: missing "+Math.abs(et)+" bytes.")},prepareReader:function(Kt){this.reader=Zt(Kt)},load:function(Kt){this.prepareReader(Kt),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},Ie.exports=re},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(ie,Ie,ee){"use strict";var Zt=ie("./reader/readerFor"),Nt=ie("./utils"),jt=ie("./compressedObject"),qt=ie("./crc32"),Pt=ie("./utf8"),re=ie("./compressions"),Kt=ie("./support");function Yt(Ct,et){this.options=Ct,this.loadOptions=et}Yt.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(Ct){var et,tt;if(Ct.skip(22),this.fileNameLength=Ct.readInt(2),tt=Ct.readInt(2),this.fileName=Ct.readData(this.fileNameLength),Ct.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 re)if(Object.prototype.hasOwnProperty.call(re,rt)&&re[rt].magic===lt)return re[rt];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+Nt.pretty(this.compressionMethod)+" unknown (inner file : "+Nt.transformTo("string",this.fileName)+")");this.decompressed=new jt(this.compressedSize,this.uncompressedSize,this.crc32,et,Ct.readData(this.compressedSize))},readCentralPart:function(Ct){this.versionMadeBy=Ct.readInt(2),Ct.skip(2),this.bitFlag=Ct.readInt(2),this.compressionMethod=Ct.readString(2),this.date=Ct.readDate(),this.crc32=Ct.readInt(4),this.compressedSize=Ct.readInt(4),this.uncompressedSize=Ct.readInt(4);var et=Ct.readInt(2);if(this.extraFieldsLength=Ct.readInt(2),this.fileCommentLength=Ct.readInt(2),this.diskNumberStart=Ct.readInt(2),this.internalFileAttributes=Ct.readInt(2),this.externalFileAttributes=Ct.readInt(4),this.localHeaderOffset=Ct.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");Ct.skip(et),this.readExtraFields(Ct),this.parseZIP64ExtraField(Ct),this.fileComment=Ct.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var Ct=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),Ct==0&&(this.dosPermissions=63&this.externalFileAttributes),Ct==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var Ct=Zt(this.extraFields[1].value);this.uncompressedSize===Nt.MAX_VALUE_32BITS&&(this.uncompressedSize=Ct.readInt(8)),this.compressedSize===Nt.MAX_VALUE_32BITS&&(this.compressedSize=Ct.readInt(8)),this.localHeaderOffset===Nt.MAX_VALUE_32BITS&&(this.localHeaderOffset=Ct.readInt(8)),this.diskNumberStart===Nt.MAX_VALUE_32BITS&&(this.diskNumberStart=Ct.readInt(4))}},readExtraFields:function(Ct){var et,tt,lt,rt=Ct.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});Ct.index+4<rt;)et=Ct.readInt(2),tt=Ct.readInt(2),lt=Ct.readData(tt),this.extraFields[et]={id:et,length:tt,value:lt};Ct.setIndex(rt)},handleUTF8:function(){var Ct=Kt.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=Pt.utf8decode(this.fileName),this.fileCommentStr=Pt.utf8decode(this.fileComment);else{var et=this.findExtraFieldUnicodePath();if(et!==null)this.fileNameStr=et;else{var tt=Nt.transformTo(Ct,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(tt)}var lt=this.findExtraFieldUnicodeComment();if(lt!==null)this.fileCommentStr=lt;else{var rt=Nt.transformTo(Ct,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(rt)}}},findExtraFieldUnicodePath:function(){var Ct=this.extraFields[28789];if(Ct){var et=Zt(Ct.value);return et.readInt(1)!==1||qt(this.fileName)!==et.readInt(4)?null:Pt.utf8decode(et.readData(Ct.length-5))}return null},findExtraFieldUnicodeComment:function(){var Ct=this.extraFields[25461];if(Ct){var et=Zt(Ct.value);return et.readInt(1)!==1||qt(this.fileComment)!==et.readInt(4)?null:Pt.utf8decode(et.readData(Ct.length-5))}return null}},Ie.exports=Yt},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(ie,Ie,ee){"use strict";function Zt(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 Nt=ie("./stream/StreamHelper"),jt=ie("./stream/DataWorker"),qt=ie("./utf8"),Pt=ie("./compressedObject"),re=ie("./stream/GenericWorker");Zt.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 ht=!this._dataBinary;ht&&!rt&&(tt=tt.pipe(new qt.Utf8EncodeWorker)),!ht&&rt&&(tt=tt.pipe(new qt.Utf8DecodeWorker))}catch(dt){(tt=new re("error")).error(dt)}return new Nt(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 Pt&&this._data.compression.magic===et.magic)return this._data.getCompressedWorker();var lt=this._decompressWorker();return this._dataBinary||(lt=lt.pipe(new qt.Utf8EncodeWorker)),Pt.createWorkerFrom(lt,et,tt)},_decompressWorker:function(){return this._data instanceof Pt?this._data.getContentWorker():this._data instanceof re?this._data:new jt(this._data)}};for(var Kt=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],Yt=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},Ct=0;Ct<Kt.length;Ct++)Zt.prototype[Kt[Ct]]=Yt;Ie.exports=Zt},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(ie,Ie,ee){(function(Zt){"use strict";var Nt,jt,qt=Zt.MutationObserver||Zt.WebKitMutationObserver;if(qt){var Pt=0,re=new qt(et),Kt=Zt.document.createTextNode("");re.observe(Kt,{characterData:!0}),Nt=function(){Kt.data=Pt=++Pt%2}}else if(Zt.setImmediate||Zt.MessageChannel===void 0)Nt="document"in Zt&&"onreadystatechange"in Zt.document.createElement("script")?function(){var tt=Zt.document.createElement("script");tt.onreadystatechange=function(){et(),tt.onreadystatechange=null,tt.parentNode.removeChild(tt),tt=null},Zt.document.documentElement.appendChild(tt)}:function(){setTimeout(et,0)};else{var Yt=new Zt.MessageChannel;Yt.port1.onmessage=et,Nt=function(){Yt.port2.postMessage(0)}}var Ct=[];function et(){var tt,lt;jt=!0;for(var rt=Ct.length;rt;){for(lt=Ct,Ct=[],tt=-1;++tt<rt;)lt[tt]();rt=Ct.length}jt=!1}Ie.exports=function(tt){Ct.push(tt)!==1||jt||Nt()}}).call(this,typeof bt.g!="undefined"?bt.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(ie,Ie,ee){"use strict";var Zt=ie("immediate");function Nt(){}var jt={},qt=["REJECTED"],Pt=["FULFILLED"],re=["PENDING"];function Kt(rt){if(typeof rt!="function")throw new TypeError("resolver must be a function");this.state=re,this.queue=[],this.outcome=void 0,rt!==Nt&&tt(this,rt)}function Yt(rt,ht,dt){this.promise=rt,typeof ht=="function"&&(this.onFulfilled=ht,this.callFulfilled=this.otherCallFulfilled),typeof dt=="function"&&(this.onRejected=dt,this.callRejected=this.otherCallRejected)}function Ct(rt,ht,dt){Zt(function(){var St;try{St=ht(dt)}catch(It){return jt.reject(rt,It)}St===rt?jt.reject(rt,new TypeError("Cannot resolve promise with itself")):jt.resolve(rt,St)})}function et(rt){var ht=rt&&rt.then;if(rt&&(typeof rt=="object"||typeof rt=="function")&&typeof ht=="function")return function(){ht.apply(rt,arguments)}}function tt(rt,ht){var dt=!1;function St(Gt){dt||(dt=!0,jt.reject(rt,Gt))}function It(Gt){dt||(dt=!0,jt.resolve(rt,Gt))}var _t=lt(function(){ht(It,St)});_t.status==="error"&&St(_t.value)}function lt(rt,ht){var dt={};try{dt.value=rt(ht),dt.status="success"}catch(St){dt.status="error",dt.value=St}return dt}(Ie.exports=Kt).prototype.finally=function(rt){if(typeof rt!="function")return this;var ht=this.constructor;return this.then(function(dt){return ht.resolve(rt()).then(function(){return dt})},function(dt){return ht.resolve(rt()).then(function(){throw dt})})},Kt.prototype.catch=function(rt){return this.then(null,rt)},Kt.prototype.then=function(rt,ht){if(typeof rt!="function"&&this.state===Pt||typeof ht!="function"&&this.state===qt)return this;var dt=new this.constructor(Nt);return this.state!==re?Ct(dt,this.state===Pt?rt:ht,this.outcome):this.queue.push(new Yt(dt,rt,ht)),dt},Yt.prototype.callFulfilled=function(rt){jt.resolve(this.promise,rt)},Yt.prototype.otherCallFulfilled=function(rt){Ct(this.promise,this.onFulfilled,rt)},Yt.prototype.callRejected=function(rt){jt.reject(this.promise,rt)},Yt.prototype.otherCallRejected=function(rt){Ct(this.promise,this.onRejected,rt)},jt.resolve=function(rt,ht){var dt=lt(et,ht);if(dt.status==="error")return jt.reject(rt,dt.value);var St=dt.value;if(St)tt(rt,St);else{rt.state=Pt,rt.outcome=ht;for(var It=-1,_t=rt.queue.length;++It<_t;)rt.queue[It].callFulfilled(ht)}return rt},jt.reject=function(rt,ht){rt.state=qt,rt.outcome=ht;for(var dt=-1,St=rt.queue.length;++dt<St;)rt.queue[dt].callRejected(ht);return rt},Kt.resolve=function(rt){return rt instanceof this?rt:jt.resolve(new this(Nt),rt)},Kt.reject=function(rt){var ht=new this(Nt);return jt.reject(ht,rt)},Kt.all=function(rt){var ht=this;if(Object.prototype.toString.call(rt)!=="[object Array]")return this.reject(new TypeError("must be an array"));var dt=rt.length,St=!1;if(!dt)return this.resolve([]);for(var It=new Array(dt),_t=0,Gt=-1,oe=new this(Nt);++Gt<dt;)ue(rt[Gt],Gt);return oe;function ue(de,be){ht.resolve(de).then(function(Jt){It[be]=Jt,++_t!==dt||St||(St=!0,jt.resolve(oe,It))},function(Jt){St||(St=!0,jt.reject(oe,Jt))})}},Kt.race=function(rt){var ht=this;if(Object.prototype.toString.call(rt)!=="[object Array]")return this.reject(new TypeError("must be an array"));var dt=rt.length,St=!1;if(!dt)return this.resolve([]);for(var It=-1,_t=new this(Nt);++It<dt;)Gt=rt[It],ht.resolve(Gt).then(function(oe){St||(St=!0,jt.resolve(_t,oe))},function(oe){St||(St=!0,jt.reject(_t,oe))});var Gt;return _t}},{immediate:36}],38:[function(ie,Ie,ee){"use strict";var Zt={};(0,ie("./lib/utils/common").assign)(Zt,ie("./lib/deflate"),ie("./lib/inflate"),ie("./lib/zlib/constants")),Ie.exports=Zt},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(ie,Ie,ee){"use strict";var Zt=ie("./zlib/deflate"),Nt=ie("./utils/common"),jt=ie("./utils/strings"),qt=ie("./zlib/messages"),Pt=ie("./zlib/zstream"),re=Object.prototype.toString,Kt=0,Yt=-1,Ct=0,et=8;function tt(rt){if(!(this instanceof tt))return new tt(rt);this.options=Nt.assign({level:Yt,method:et,chunkSize:16384,windowBits:15,memLevel:8,strategy:Ct,to:""},rt||{});var ht=this.options;ht.raw&&0<ht.windowBits?ht.windowBits=-ht.windowBits:ht.gzip&&0<ht.windowBits&&ht.windowBits<16&&(ht.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Pt,this.strm.avail_out=0;var dt=Zt.deflateInit2(this.strm,ht.level,ht.method,ht.windowBits,ht.memLevel,ht.strategy);if(dt!==Kt)throw new Error(qt[dt]);if(ht.header&&Zt.deflateSetHeader(this.strm,ht.header),ht.dictionary){var St;if(St=typeof ht.dictionary=="string"?jt.string2buf(ht.dictionary):re.call(ht.dictionary)==="[object ArrayBuffer]"?new Uint8Array(ht.dictionary):ht.dictionary,(dt=Zt.deflateSetDictionary(this.strm,St))!==Kt)throw new Error(qt[dt]);this._dict_set=!0}}function lt(rt,ht){var dt=new tt(ht);if(dt.push(rt,!0),dt.err)throw dt.msg||qt[dt.err];return dt.result}tt.prototype.push=function(rt,ht){var dt,St,It=this.strm,_t=this.options.chunkSize;if(this.ended)return!1;St=ht===~~ht?ht:ht===!0?4:0,typeof rt=="string"?It.input=jt.string2buf(rt):re.call(rt)==="[object ArrayBuffer]"?It.input=new Uint8Array(rt):It.input=rt,It.next_in=0,It.avail_in=It.input.length;do{if(It.avail_out===0&&(It.output=new Nt.Buf8(_t),It.next_out=0,It.avail_out=_t),(dt=Zt.deflate(It,St))!==1&&dt!==Kt)return this.onEnd(dt),!(this.ended=!0);It.avail_out!==0&&(It.avail_in!==0||St!==4&&St!==2)||(this.options.to==="string"?this.onData(jt.buf2binstring(Nt.shrinkBuf(It.output,It.next_out))):this.onData(Nt.shrinkBuf(It.output,It.next_out)))}while((0<It.avail_in||It.avail_out===0)&&dt!==1);return St===4?(dt=Zt.deflateEnd(this.strm),this.onEnd(dt),this.ended=!0,dt===Kt):St!==2||(this.onEnd(Kt),!(It.avail_out=0))},tt.prototype.onData=function(rt){this.chunks.push(rt)},tt.prototype.onEnd=function(rt){rt===Kt&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Nt.flattenChunks(this.chunks)),this.chunks=[],this.err=rt,this.msg=this.strm.msg},ee.Deflate=tt,ee.deflate=lt,ee.deflateRaw=function(rt,ht){return(ht=ht||{}).raw=!0,lt(rt,ht)},ee.gzip=function(rt,ht){return(ht=ht||{}).gzip=!0,lt(rt,ht)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(ie,Ie,ee){"use strict";var Zt=ie("./zlib/inflate"),Nt=ie("./utils/common"),jt=ie("./utils/strings"),qt=ie("./zlib/constants"),Pt=ie("./zlib/messages"),re=ie("./zlib/zstream"),Kt=ie("./zlib/gzheader"),Yt=Object.prototype.toString;function Ct(tt){if(!(this instanceof Ct))return new Ct(tt);this.options=Nt.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 re,this.strm.avail_out=0;var rt=Zt.inflateInit2(this.strm,lt.windowBits);if(rt!==qt.Z_OK)throw new Error(Pt[rt]);this.header=new Kt,Zt.inflateGetHeader(this.strm,this.header)}function et(tt,lt){var rt=new Ct(lt);if(rt.push(tt,!0),rt.err)throw rt.msg||Pt[rt.err];return rt.result}Ct.prototype.push=function(tt,lt){var rt,ht,dt,St,It,_t,Gt=this.strm,oe=this.options.chunkSize,ue=this.options.dictionary,de=!1;if(this.ended)return!1;ht=lt===~~lt?lt:lt===!0?qt.Z_FINISH:qt.Z_NO_FLUSH,typeof tt=="string"?Gt.input=jt.binstring2buf(tt):Yt.call(tt)==="[object ArrayBuffer]"?Gt.input=new Uint8Array(tt):Gt.input=tt,Gt.next_in=0,Gt.avail_in=Gt.input.length;do{if(Gt.avail_out===0&&(Gt.output=new Nt.Buf8(oe),Gt.next_out=0,Gt.avail_out=oe),(rt=Zt.inflate(Gt,qt.Z_NO_FLUSH))===qt.Z_NEED_DICT&&ue&&(_t=typeof ue=="string"?jt.string2buf(ue):Yt.call(ue)==="[object ArrayBuffer]"?new Uint8Array(ue):ue,rt=Zt.inflateSetDictionary(this.strm,_t)),rt===qt.Z_BUF_ERROR&&de===!0&&(rt=qt.Z_OK,de=!1),rt!==qt.Z_STREAM_END&&rt!==qt.Z_OK)return this.onEnd(rt),!(this.ended=!0);Gt.next_out&&(Gt.avail_out!==0&&rt!==qt.Z_STREAM_END&&(Gt.avail_in!==0||ht!==qt.Z_FINISH&&ht!==qt.Z_SYNC_FLUSH)||(this.options.to==="string"?(dt=jt.utf8border(Gt.output,Gt.next_out),St=Gt.next_out-dt,It=jt.buf2string(Gt.output,dt),Gt.next_out=St,Gt.avail_out=oe-St,St&&Nt.arraySet(Gt.output,Gt.output,dt,St,0),this.onData(It)):this.onData(Nt.shrinkBuf(Gt.output,Gt.next_out)))),Gt.avail_in===0&&Gt.avail_out===0&&(de=!0)}while((0<Gt.avail_in||Gt.avail_out===0)&&rt!==qt.Z_STREAM_END);return rt===qt.Z_STREAM_END&&(ht=qt.Z_FINISH),ht===qt.Z_FINISH?(rt=Zt.inflateEnd(this.strm),this.onEnd(rt),this.ended=!0,rt===qt.Z_OK):ht!==qt.Z_SYNC_FLUSH||(this.onEnd(qt.Z_OK),!(Gt.avail_out=0))},Ct.prototype.onData=function(tt){this.chunks.push(tt)},Ct.prototype.onEnd=function(tt){tt===qt.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Nt.flattenChunks(this.chunks)),this.chunks=[],this.err=tt,this.msg=this.strm.msg},ee.Inflate=Ct,ee.inflate=et,ee.inflateRaw=function(tt,lt){return(lt=lt||{}).raw=!0,et(tt,lt)},ee.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(ie,Ie,ee){"use strict";var Zt=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";ee.assign=function(qt){for(var Pt=Array.prototype.slice.call(arguments,1);Pt.length;){var re=Pt.shift();if(re){if(typeof re!="object")throw new TypeError(re+"must be non-object");for(var Kt in re)re.hasOwnProperty(Kt)&&(qt[Kt]=re[Kt])}}return qt},ee.shrinkBuf=function(qt,Pt){return qt.length===Pt?qt:qt.subarray?qt.subarray(0,Pt):(qt.length=Pt,qt)};var Nt={arraySet:function(qt,Pt,re,Kt,Yt){if(Pt.subarray&&qt.subarray)qt.set(Pt.subarray(re,re+Kt),Yt);else for(var Ct=0;Ct<Kt;Ct++)qt[Yt+Ct]=Pt[re+Ct]},flattenChunks:function(qt){var Pt,re,Kt,Yt,Ct,et;for(Pt=Kt=0,re=qt.length;Pt<re;Pt++)Kt+=qt[Pt].length;for(et=new Uint8Array(Kt),Pt=Yt=0,re=qt.length;Pt<re;Pt++)Ct=qt[Pt],et.set(Ct,Yt),Yt+=Ct.length;return et}},jt={arraySet:function(qt,Pt,re,Kt,Yt){for(var Ct=0;Ct<Kt;Ct++)qt[Yt+Ct]=Pt[re+Ct]},flattenChunks:function(qt){return[].concat.apply([],qt)}};ee.setTyped=function(qt){qt?(ee.Buf8=Uint8Array,ee.Buf16=Uint16Array,ee.Buf32=Int32Array,ee.assign(ee,Nt)):(ee.Buf8=Array,ee.Buf16=Array,ee.Buf32=Array,ee.assign(ee,jt))},ee.setTyped(Zt)},{}],42:[function(ie,Ie,ee){"use strict";var Zt=ie("./common"),Nt=!0,jt=!0;try{String.fromCharCode.apply(null,[0])}catch(Kt){Nt=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(Kt){jt=!1}for(var qt=new Zt.Buf8(256),Pt=0;Pt<256;Pt++)qt[Pt]=252<=Pt?6:248<=Pt?5:240<=Pt?4:224<=Pt?3:192<=Pt?2:1;function re(Kt,Yt){if(Yt<65537&&(Kt.subarray&&jt||!Kt.subarray&&Nt))return String.fromCharCode.apply(null,Zt.shrinkBuf(Kt,Yt));for(var Ct="",et=0;et<Yt;et++)Ct+=String.fromCharCode(Kt[et]);return Ct}qt[254]=qt[254]=1,ee.string2buf=function(Kt){var Yt,Ct,et,tt,lt,rt=Kt.length,ht=0;for(tt=0;tt<rt;tt++)(64512&(Ct=Kt.charCodeAt(tt)))==55296&&tt+1<rt&&(64512&(et=Kt.charCodeAt(tt+1)))==56320&&(Ct=65536+(Ct-55296<<10)+(et-56320),tt++),ht+=Ct<128?1:Ct<2048?2:Ct<65536?3:4;for(Yt=new Zt.Buf8(ht),tt=lt=0;lt<ht;tt++)(64512&(Ct=Kt.charCodeAt(tt)))==55296&&tt+1<rt&&(64512&(et=Kt.charCodeAt(tt+1)))==56320&&(Ct=65536+(Ct-55296<<10)+(et-56320),tt++),Ct<128?Yt[lt++]=Ct:(Ct<2048?Yt[lt++]=192|Ct>>>6:(Ct<65536?Yt[lt++]=224|Ct>>>12:(Yt[lt++]=240|Ct>>>18,Yt[lt++]=128|Ct>>>12&63),Yt[lt++]=128|Ct>>>6&63),Yt[lt++]=128|63&Ct);return Yt},ee.buf2binstring=function(Kt){return re(Kt,Kt.length)},ee.binstring2buf=function(Kt){for(var Yt=new Zt.Buf8(Kt.length),Ct=0,et=Yt.length;Ct<et;Ct++)Yt[Ct]=Kt.charCodeAt(Ct);return Yt},ee.buf2string=function(Kt,Yt){var Ct,et,tt,lt,rt=Yt||Kt.length,ht=new Array(2*rt);for(Ct=et=0;Ct<rt;)if((tt=Kt[Ct++])<128)ht[et++]=tt;else if(4<(lt=qt[tt]))ht[et++]=65533,Ct+=lt-1;else{for(tt&=lt===2?31:lt===3?15:7;1<lt&&Ct<rt;)tt=tt<<6|63&Kt[Ct++],lt--;1<lt?ht[et++]=65533:tt<65536?ht[et++]=tt:(tt-=65536,ht[et++]=55296|tt>>10&1023,ht[et++]=56320|1023&tt)}return re(ht,et)},ee.utf8border=function(Kt,Yt){var Ct;for((Yt=Yt||Kt.length)>Kt.length&&(Yt=Kt.length),Ct=Yt-1;0<=Ct&&(192&Kt[Ct])==128;)Ct--;return Ct<0||Ct===0?Yt:Ct+qt[Kt[Ct]]>Yt?Ct:Yt}},{"./common":41}],43:[function(ie,Ie,ee){"use strict";Ie.exports=function(Zt,Nt,jt,qt){for(var Pt=65535&Zt|0,re=Zt>>>16&65535|0,Kt=0;jt!==0;){for(jt-=Kt=2e3<jt?2e3:jt;re=re+(Pt=Pt+Nt[qt++]|0)|0,--Kt;);Pt%=65521,re%=65521}return Pt|re<<16|0}},{}],44:[function(ie,Ie,ee){"use strict";Ie.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(ie,Ie,ee){"use strict";var Zt=function(){for(var Nt,jt=[],qt=0;qt<256;qt++){Nt=qt;for(var Pt=0;Pt<8;Pt++)Nt=1&Nt?3988292384^Nt>>>1:Nt>>>1;jt[qt]=Nt}return jt}();Ie.exports=function(Nt,jt,qt,Pt){var re=Zt,Kt=Pt+qt;Nt^=-1;for(var Yt=Pt;Yt<Kt;Yt++)Nt=Nt>>>8^re[255&(Nt^jt[Yt])];return-1^Nt}},{}],46:[function(ie,Ie,ee){"use strict";var Zt,Nt=ie("../utils/common"),jt=ie("./trees"),qt=ie("./adler32"),Pt=ie("./crc32"),re=ie("./messages"),Kt=0,Yt=4,Ct=0,et=-2,tt=-1,lt=4,rt=2,ht=8,dt=9,St=286,It=30,_t=19,Gt=2*St+1,oe=15,ue=3,de=258,be=de+ue+1,Jt=42,Ke=113,Wt=1,Ge=2,He=3,Me=4;function We(Lt,Ot){return Lt.msg=re[Ot],Ot}function _e(Lt){return(Lt<<1)-(4<Lt?9:0)}function ve(Lt){for(var Ot=Lt.length;0<=--Ot;)Lt[Ot]=0}function ne(Lt){var Ot=Lt.state,mt=Ot.pending;mt>Lt.avail_out&&(mt=Lt.avail_out),mt!==0&&(Nt.arraySet(Lt.output,Ot.pending_buf,Ot.pending_out,mt,Lt.next_out),Lt.next_out+=mt,Ot.pending_out+=mt,Lt.total_out+=mt,Lt.avail_out-=mt,Ot.pending-=mt,Ot.pending===0&&(Ot.pending_out=0))}function Se(Lt,Ot){jt._tr_flush_block(Lt,0<=Lt.block_start?Lt.block_start:-1,Lt.strstart-Lt.block_start,Ot),Lt.block_start=Lt.strstart,ne(Lt.strm)}function Pn(Lt,Ot){Lt.pending_buf[Lt.pending++]=Ot}function Mn(Lt,Ot){Lt.pending_buf[Lt.pending++]=Ot>>>8&255,Lt.pending_buf[Lt.pending++]=255&Ot}function Xe(Lt,Ot){var mt,ft,pt=Lt.max_chain_length,At=Lt.strstart,le=Lt.prev_length,we=Lt.nice_match,ae=Lt.strstart>Lt.w_size-be?Lt.strstart-(Lt.w_size-be):0,me=Lt.window,Re=Lt.w_mask,Oe=Lt.prev,ke=Lt.strstart+de,rn=me[At+le-1],Vn=me[At+le];Lt.prev_length>=Lt.good_match&&(pt>>=2),we>Lt.lookahead&&(we=Lt.lookahead);do if(me[(mt=Ot)+le]===Vn&&me[mt+le-1]===rn&&me[mt]===me[At]&&me[++mt]===me[At+1]){At+=2,mt++;do;while(me[++At]===me[++mt]&&me[++At]===me[++mt]&&me[++At]===me[++mt]&&me[++At]===me[++mt]&&me[++At]===me[++mt]&&me[++At]===me[++mt]&&me[++At]===me[++mt]&&me[++At]===me[++mt]&&At<ke);if(ft=de-(ke-At),At=ke-de,le<ft){if(Lt.match_start=Ot,we<=(le=ft))break;rn=me[At+le-1],Vn=me[At+le]}}while((Ot=Oe[Ot&Re])>ae&&--pt!=0);return le<=Lt.lookahead?le:Lt.lookahead}function Nn(Lt){var Ot,mt,ft,pt,At,le,we,ae,me,Re,Oe=Lt.w_size;do{if(pt=Lt.window_size-Lt.lookahead-Lt.strstart,Lt.strstart>=Oe+(Oe-be)){for(Nt.arraySet(Lt.window,Lt.window,Oe,Oe,0),Lt.match_start-=Oe,Lt.strstart-=Oe,Lt.block_start-=Oe,Ot=mt=Lt.hash_size;ft=Lt.head[--Ot],Lt.head[Ot]=Oe<=ft?ft-Oe:0,--mt;);for(Ot=mt=Oe;ft=Lt.prev[--Ot],Lt.prev[Ot]=Oe<=ft?ft-Oe:0,--mt;);pt+=Oe}if(Lt.strm.avail_in===0)break;if(le=Lt.strm,we=Lt.window,ae=Lt.strstart+Lt.lookahead,me=pt,Re=void 0,Re=le.avail_in,me<Re&&(Re=me),mt=Re===0?0:(le.avail_in-=Re,Nt.arraySet(we,le.input,le.next_in,Re,ae),le.state.wrap===1?le.adler=qt(le.adler,we,Re,ae):le.state.wrap===2&&(le.adler=Pt(le.adler,we,Re,ae)),le.next_in+=Re,le.total_in+=Re,Re),Lt.lookahead+=mt,Lt.lookahead+Lt.insert>=ue)for(At=Lt.strstart-Lt.insert,Lt.ins_h=Lt.window[At],Lt.ins_h=(Lt.ins_h<<Lt.hash_shift^Lt.window[At+1])&Lt.hash_mask;Lt.insert&&(Lt.ins_h=(Lt.ins_h<<Lt.hash_shift^Lt.window[At+ue-1])&Lt.hash_mask,Lt.prev[At&Lt.w_mask]=Lt.head[Lt.ins_h],Lt.head[Lt.ins_h]=At,At++,Lt.insert--,!(Lt.lookahead+Lt.insert<ue)););}while(Lt.lookahead<be&&Lt.strm.avail_in!==0)}function Zn(Lt,Ot){for(var mt,ft;;){if(Lt.lookahead<be){if(Nn(Lt),Lt.lookahead<be&&Ot===Kt)return Wt;if(Lt.lookahead===0)break}if(mt=0,Lt.lookahead>=ue&&(Lt.ins_h=(Lt.ins_h<<Lt.hash_shift^Lt.window[Lt.strstart+ue-1])&Lt.hash_mask,mt=Lt.prev[Lt.strstart&Lt.w_mask]=Lt.head[Lt.ins_h],Lt.head[Lt.ins_h]=Lt.strstart),mt!==0&&Lt.strstart-mt<=Lt.w_size-be&&(Lt.match_length=Xe(Lt,mt)),Lt.match_length>=ue)if(ft=jt._tr_tally(Lt,Lt.strstart-Lt.match_start,Lt.match_length-ue),Lt.lookahead-=Lt.match_length,Lt.match_length<=Lt.max_lazy_match&&Lt.lookahead>=ue){for(Lt.match_length--;Lt.strstart++,Lt.ins_h=(Lt.ins_h<<Lt.hash_shift^Lt.window[Lt.strstart+ue-1])&Lt.hash_mask,mt=Lt.prev[Lt.strstart&Lt.w_mask]=Lt.head[Lt.ins_h],Lt.head[Lt.ins_h]=Lt.strstart,--Lt.match_length!=0;);Lt.strstart++}else Lt.strstart+=Lt.match_length,Lt.match_length=0,Lt.ins_h=Lt.window[Lt.strstart],Lt.ins_h=(Lt.ins_h<<Lt.hash_shift^Lt.window[Lt.strstart+1])&Lt.hash_mask;else ft=jt._tr_tally(Lt,0,Lt.window[Lt.strstart]),Lt.lookahead--,Lt.strstart++;if(ft&&(Se(Lt,!1),Lt.strm.avail_out===0))return Wt}return Lt.insert=Lt.strstart<ue-1?Lt.strstart:ue-1,Ot===Yt?(Se(Lt,!0),Lt.strm.avail_out===0?He:Me):Lt.last_lit&&(Se(Lt,!1),Lt.strm.avail_out===0)?Wt:Ge}function fi(Lt,Ot){for(var mt,ft,pt;;){if(Lt.lookahead<be){if(Nn(Lt),Lt.lookahead<be&&Ot===Kt)return Wt;if(Lt.lookahead===0)break}if(mt=0,Lt.lookahead>=ue&&(Lt.ins_h=(Lt.ins_h<<Lt.hash_shift^Lt.window[Lt.strstart+ue-1])&Lt.hash_mask,mt=Lt.prev[Lt.strstart&Lt.w_mask]=Lt.head[Lt.ins_h],Lt.head[Lt.ins_h]=Lt.strstart),Lt.prev_length=Lt.match_length,Lt.prev_match=Lt.match_start,Lt.match_length=ue-1,mt!==0&&Lt.prev_length<Lt.max_lazy_match&&Lt.strstart-mt<=Lt.w_size-be&&(Lt.match_length=Xe(Lt,mt),Lt.match_length<=5&&(Lt.strategy===1||Lt.match_length===ue&&4096<Lt.strstart-Lt.match_start)&&(Lt.match_length=ue-1)),Lt.prev_length>=ue&&Lt.match_length<=Lt.prev_length){for(pt=Lt.strstart+Lt.lookahead-ue,ft=jt._tr_tally(Lt,Lt.strstart-1-Lt.prev_match,Lt.prev_length-ue),Lt.lookahead-=Lt.prev_length-1,Lt.prev_length-=2;++Lt.strstart<=pt&&(Lt.ins_h=(Lt.ins_h<<Lt.hash_shift^Lt.window[Lt.strstart+ue-1])&Lt.hash_mask,mt=Lt.prev[Lt.strstart&Lt.w_mask]=Lt.head[Lt.ins_h],Lt.head[Lt.ins_h]=Lt.strstart),--Lt.prev_length!=0;);if(Lt.match_available=0,Lt.match_length=ue-1,Lt.strstart++,ft&&(Se(Lt,!1),Lt.strm.avail_out===0))return Wt}else if(Lt.match_available){if((ft=jt._tr_tally(Lt,0,Lt.window[Lt.strstart-1]))&&Se(Lt,!1),Lt.strstart++,Lt.lookahead--,Lt.strm.avail_out===0)return Wt}else Lt.match_available=1,Lt.strstart++,Lt.lookahead--}return Lt.match_available&&(ft=jt._tr_tally(Lt,0,Lt.window[Lt.strstart-1]),Lt.match_available=0),Lt.insert=Lt.strstart<ue-1?Lt.strstart:ue-1,Ot===Yt?(Se(Lt,!0),Lt.strm.avail_out===0?He:Me):Lt.last_lit&&(Se(Lt,!1),Lt.strm.avail_out===0)?Wt:Ge}function zn(Lt,Ot,mt,ft,pt){this.good_length=Lt,this.max_lazy=Ot,this.nice_length=mt,this.max_chain=ft,this.func=pt}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=ht,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 Nt.Buf16(2*Gt),this.dyn_dtree=new Nt.Buf16(2*(2*It+1)),this.bl_tree=new Nt.Buf16(2*(2*_t+1)),ve(this.dyn_ltree),ve(this.dyn_dtree),ve(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Nt.Buf16(oe+1),this.heap=new Nt.Buf16(2*St+1),ve(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Nt.Buf16(2*St+1),ve(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 nn(Lt){var Ot;return Lt&&Lt.state?(Lt.total_in=Lt.total_out=0,Lt.data_type=rt,(Ot=Lt.state).pending=0,Ot.pending_out=0,Ot.wrap<0&&(Ot.wrap=-Ot.wrap),Ot.status=Ot.wrap?Jt:Ke,Lt.adler=Ot.wrap===2?0:1,Ot.last_flush=Kt,jt._tr_init(Ot),Ct):We(Lt,et)}function Fi(Lt){var Ot=nn(Lt);return Ot===Ct&&function(mt){mt.window_size=2*mt.w_size,ve(mt.head),mt.max_lazy_match=Zt[mt.level].max_lazy,mt.good_match=Zt[mt.level].good_length,mt.nice_match=Zt[mt.level].nice_length,mt.max_chain_length=Zt[mt.level].max_chain,mt.strstart=0,mt.block_start=0,mt.lookahead=0,mt.insert=0,mt.match_length=mt.prev_length=ue-1,mt.match_available=0,mt.ins_h=0}(Lt.state),Ot}function Ti(Lt,Ot,mt,ft,pt,At){if(!Lt)return et;var le=1;if(Ot===tt&&(Ot=6),ft<0?(le=0,ft=-ft):15<ft&&(le=2,ft-=16),pt<1||dt<pt||mt!==ht||ft<8||15<ft||Ot<0||9<Ot||At<0||lt<At)return We(Lt,et);ft===8&&(ft=9);var we=new Si;return(Lt.state=we).strm=Lt,we.wrap=le,we.gzhead=null,we.w_bits=ft,we.w_size=1<<we.w_bits,we.w_mask=we.w_size-1,we.hash_bits=pt+7,we.hash_size=1<<we.hash_bits,we.hash_mask=we.hash_size-1,we.hash_shift=~~((we.hash_bits+ue-1)/ue),we.window=new Nt.Buf8(2*we.w_size),we.head=new Nt.Buf16(we.hash_size),we.prev=new Nt.Buf16(we.w_size),we.lit_bufsize=1<<pt+6,we.pending_buf_size=4*we.lit_bufsize,we.pending_buf=new Nt.Buf8(we.pending_buf_size),we.d_buf=1*we.lit_bufsize,we.l_buf=3*we.lit_bufsize,we.level=Ot,we.strategy=At,we.method=mt,Fi(Lt)}Zt=[new zn(0,0,0,0,function(Lt,Ot){var mt=65535;for(mt>Lt.pending_buf_size-5&&(mt=Lt.pending_buf_size-5);;){if(Lt.lookahead<=1){if(Nn(Lt),Lt.lookahead===0&&Ot===Kt)return Wt;if(Lt.lookahead===0)break}Lt.strstart+=Lt.lookahead,Lt.lookahead=0;var ft=Lt.block_start+mt;if((Lt.strstart===0||Lt.strstart>=ft)&&(Lt.lookahead=Lt.strstart-ft,Lt.strstart=ft,Se(Lt,!1),Lt.strm.avail_out===0)||Lt.strstart-Lt.block_start>=Lt.w_size-be&&(Se(Lt,!1),Lt.strm.avail_out===0))return Wt}return Lt.insert=0,Ot===Yt?(Se(Lt,!0),Lt.strm.avail_out===0?He:Me):(Lt.strstart>Lt.block_start&&(Se(Lt,!1),Lt.strm.avail_out),Wt)}),new zn(4,4,8,4,Zn),new zn(4,5,16,8,Zn),new zn(4,6,32,32,Zn),new zn(4,4,16,16,fi),new zn(8,16,32,32,fi),new zn(8,16,128,128,fi),new zn(8,32,128,256,fi),new zn(32,128,258,1024,fi),new zn(32,258,258,4096,fi)],ee.deflateInit=function(Lt,Ot){return Ti(Lt,Ot,ht,15,8,0)},ee.deflateInit2=Ti,ee.deflateReset=Fi,ee.deflateResetKeep=nn,ee.deflateSetHeader=function(Lt,Ot){return Lt&&Lt.state?Lt.state.wrap!==2?et:(Lt.state.gzhead=Ot,Ct):et},ee.deflate=function(Lt,Ot){var mt,ft,pt,At;if(!Lt||!Lt.state||5<Ot||Ot<0)return Lt?We(Lt,et):et;if(ft=Lt.state,!Lt.output||!Lt.input&&Lt.avail_in!==0||ft.status===666&&Ot!==Yt)return We(Lt,Lt.avail_out===0?-5:et);if(ft.strm=Lt,mt=ft.last_flush,ft.last_flush=Ot,ft.status===Jt)if(ft.wrap===2)Lt.adler=0,Pn(ft,31),Pn(ft,139),Pn(ft,8),ft.gzhead?(Pn(ft,(ft.gzhead.text?1:0)+(ft.gzhead.hcrc?2:0)+(ft.gzhead.extra?4:0)+(ft.gzhead.name?8:0)+(ft.gzhead.comment?16:0)),Pn(ft,255&ft.gzhead.time),Pn(ft,ft.gzhead.time>>8&255),Pn(ft,ft.gzhead.time>>16&255),Pn(ft,ft.gzhead.time>>24&255),Pn(ft,ft.level===9?2:2<=ft.strategy||ft.level<2?4:0),Pn(ft,255&ft.gzhead.os),ft.gzhead.extra&&ft.gzhead.extra.length&&(Pn(ft,255&ft.gzhead.extra.length),Pn(ft,ft.gzhead.extra.length>>8&255)),ft.gzhead.hcrc&&(Lt.adler=Pt(Lt.adler,ft.pending_buf,ft.pending,0)),ft.gzindex=0,ft.status=69):(Pn(ft,0),Pn(ft,0),Pn(ft,0),Pn(ft,0),Pn(ft,0),Pn(ft,ft.level===9?2:2<=ft.strategy||ft.level<2?4:0),Pn(ft,3),ft.status=Ke);else{var le=ht+(ft.w_bits-8<<4)<<8;le|=(2<=ft.strategy||ft.level<2?0:ft.level<6?1:ft.level===6?2:3)<<6,ft.strstart!==0&&(le|=32),le+=31-le%31,ft.status=Ke,Mn(ft,le),ft.strstart!==0&&(Mn(ft,Lt.adler>>>16),Mn(ft,65535&Lt.adler)),Lt.adler=1}if(ft.status===69)if(ft.gzhead.extra){for(pt=ft.pending;ft.gzindex<(65535&ft.gzhead.extra.length)&&(ft.pending!==ft.pending_buf_size||(ft.gzhead.hcrc&&ft.pending>pt&&(Lt.adler=Pt(Lt.adler,ft.pending_buf,ft.pending-pt,pt)),ne(Lt),pt=ft.pending,ft.pending!==ft.pending_buf_size));)Pn(ft,255&ft.gzhead.extra[ft.gzindex]),ft.gzindex++;ft.gzhead.hcrc&&ft.pending>pt&&(Lt.adler=Pt(Lt.adler,ft.pending_buf,ft.pending-pt,pt)),ft.gzindex===ft.gzhead.extra.length&&(ft.gzindex=0,ft.status=73)}else ft.status=73;if(ft.status===73)if(ft.gzhead.name){pt=ft.pending;do{if(ft.pending===ft.pending_buf_size&&(ft.gzhead.hcrc&&ft.pending>pt&&(Lt.adler=Pt(Lt.adler,ft.pending_buf,ft.pending-pt,pt)),ne(Lt),pt=ft.pending,ft.pending===ft.pending_buf_size)){At=1;break}At=ft.gzindex<ft.gzhead.name.length?255&ft.gzhead.name.charCodeAt(ft.gzindex++):0,Pn(ft,At)}while(At!==0);ft.gzhead.hcrc&&ft.pending>pt&&(Lt.adler=Pt(Lt.adler,ft.pending_buf,ft.pending-pt,pt)),At===0&&(ft.gzindex=0,ft.status=91)}else ft.status=91;if(ft.status===91)if(ft.gzhead.comment){pt=ft.pending;do{if(ft.pending===ft.pending_buf_size&&(ft.gzhead.hcrc&&ft.pending>pt&&(Lt.adler=Pt(Lt.adler,ft.pending_buf,ft.pending-pt,pt)),ne(Lt),pt=ft.pending,ft.pending===ft.pending_buf_size)){At=1;break}At=ft.gzindex<ft.gzhead.comment.length?255&ft.gzhead.comment.charCodeAt(ft.gzindex++):0,Pn(ft,At)}while(At!==0);ft.gzhead.hcrc&&ft.pending>pt&&(Lt.adler=Pt(Lt.adler,ft.pending_buf,ft.pending-pt,pt)),At===0&&(ft.status=103)}else ft.status=103;if(ft.status===103&&(ft.gzhead.hcrc?(ft.pending+2>ft.pending_buf_size&&ne(Lt),ft.pending+2<=ft.pending_buf_size&&(Pn(ft,255&Lt.adler),Pn(ft,Lt.adler>>8&255),Lt.adler=0,ft.status=Ke)):ft.status=Ke),ft.pending!==0){if(ne(Lt),Lt.avail_out===0)return ft.last_flush=-1,Ct}else if(Lt.avail_in===0&&_e(Ot)<=_e(mt)&&Ot!==Yt)return We(Lt,-5);if(ft.status===666&&Lt.avail_in!==0)return We(Lt,-5);if(Lt.avail_in!==0||ft.lookahead!==0||Ot!==Kt&&ft.status!==666){var we=ft.strategy===2?function(ae,me){for(var Re;;){if(ae.lookahead===0&&(Nn(ae),ae.lookahead===0)){if(me===Kt)return Wt;break}if(ae.match_length=0,Re=jt._tr_tally(ae,0,ae.window[ae.strstart]),ae.lookahead--,ae.strstart++,Re&&(Se(ae,!1),ae.strm.avail_out===0))return Wt}return ae.insert=0,me===Yt?(Se(ae,!0),ae.strm.avail_out===0?He:Me):ae.last_lit&&(Se(ae,!1),ae.strm.avail_out===0)?Wt:Ge}(ft,Ot):ft.strategy===3?function(ae,me){for(var Re,Oe,ke,rn,Vn=ae.window;;){if(ae.lookahead<=de){if(Nn(ae),ae.lookahead<=de&&me===Kt)return Wt;if(ae.lookahead===0)break}if(ae.match_length=0,ae.lookahead>=ue&&0<ae.strstart&&(Oe=Vn[ke=ae.strstart-1])===Vn[++ke]&&Oe===Vn[++ke]&&Oe===Vn[++ke]){rn=ae.strstart+de;do;while(Oe===Vn[++ke]&&Oe===Vn[++ke]&&Oe===Vn[++ke]&&Oe===Vn[++ke]&&Oe===Vn[++ke]&&Oe===Vn[++ke]&&Oe===Vn[++ke]&&Oe===Vn[++ke]&&ke<rn);ae.match_length=de-(rn-ke),ae.match_length>ae.lookahead&&(ae.match_length=ae.lookahead)}if(ae.match_length>=ue?(Re=jt._tr_tally(ae,1,ae.match_length-ue),ae.lookahead-=ae.match_length,ae.strstart+=ae.match_length,ae.match_length=0):(Re=jt._tr_tally(ae,0,ae.window[ae.strstart]),ae.lookahead--,ae.strstart++),Re&&(Se(ae,!1),ae.strm.avail_out===0))return Wt}return ae.insert=0,me===Yt?(Se(ae,!0),ae.strm.avail_out===0?He:Me):ae.last_lit&&(Se(ae,!1),ae.strm.avail_out===0)?Wt:Ge}(ft,Ot):Zt[ft.level].func(ft,Ot);if(we!==He&&we!==Me||(ft.status=666),we===Wt||we===He)return Lt.avail_out===0&&(ft.last_flush=-1),Ct;if(we===Ge&&(Ot===1?jt._tr_align(ft):Ot!==5&&(jt._tr_stored_block(ft,0,0,!1),Ot===3&&(ve(ft.head),ft.lookahead===0&&(ft.strstart=0,ft.block_start=0,ft.insert=0))),ne(Lt),Lt.avail_out===0))return ft.last_flush=-1,Ct}return Ot!==Yt?Ct:ft.wrap<=0?1:(ft.wrap===2?(Pn(ft,255&Lt.adler),Pn(ft,Lt.adler>>8&255),Pn(ft,Lt.adler>>16&255),Pn(ft,Lt.adler>>24&255),Pn(ft,255&Lt.total_in),Pn(ft,Lt.total_in>>8&255),Pn(ft,Lt.total_in>>16&255),Pn(ft,Lt.total_in>>24&255)):(Mn(ft,Lt.adler>>>16),Mn(ft,65535&Lt.adler)),ne(Lt),0<ft.wrap&&(ft.wrap=-ft.wrap),ft.pending!==0?Ct:1)},ee.deflateEnd=function(Lt){var Ot;return Lt&&Lt.state?(Ot=Lt.state.status)!==Jt&&Ot!==69&&Ot!==73&&Ot!==91&&Ot!==103&&Ot!==Ke&&Ot!==666?We(Lt,et):(Lt.state=null,Ot===Ke?We(Lt,-3):Ct):et},ee.deflateSetDictionary=function(Lt,Ot){var mt,ft,pt,At,le,we,ae,me,Re=Ot.length;if(!Lt||!Lt.state||(At=(mt=Lt.state).wrap)===2||At===1&&mt.status!==Jt||mt.lookahead)return et;for(At===1&&(Lt.adler=qt(Lt.adler,Ot,Re,0)),mt.wrap=0,Re>=mt.w_size&&(At===0&&(ve(mt.head),mt.strstart=0,mt.block_start=0,mt.insert=0),me=new Nt.Buf8(mt.w_size),Nt.arraySet(me,Ot,Re-mt.w_size,mt.w_size,0),Ot=me,Re=mt.w_size),le=Lt.avail_in,we=Lt.next_in,ae=Lt.input,Lt.avail_in=Re,Lt.next_in=0,Lt.input=Ot,Nn(mt);mt.lookahead>=ue;){for(ft=mt.strstart,pt=mt.lookahead-(ue-1);mt.ins_h=(mt.ins_h<<mt.hash_shift^mt.window[ft+ue-1])&mt.hash_mask,mt.prev[ft&mt.w_mask]=mt.head[mt.ins_h],mt.head[mt.ins_h]=ft,ft++,--pt;);mt.strstart=ft,mt.lookahead=ue-1,Nn(mt)}return mt.strstart+=mt.lookahead,mt.block_start=mt.strstart,mt.insert=mt.lookahead,mt.lookahead=0,mt.match_length=mt.prev_length=ue-1,mt.match_available=0,Lt.next_in=we,Lt.input=ae,Lt.avail_in=le,mt.wrap=At,Ct},ee.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(ie,Ie,ee){"use strict";Ie.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(ie,Ie,ee){"use strict";Ie.exports=function(Zt,Nt){var jt,qt,Pt,re,Kt,Yt,Ct,et,tt,lt,rt,ht,dt,St,It,_t,Gt,oe,ue,de,be,Jt,Ke,Wt,Ge;jt=Zt.state,qt=Zt.next_in,Wt=Zt.input,Pt=qt+(Zt.avail_in-5),re=Zt.next_out,Ge=Zt.output,Kt=re-(Nt-Zt.avail_out),Yt=re+(Zt.avail_out-257),Ct=jt.dmax,et=jt.wsize,tt=jt.whave,lt=jt.wnext,rt=jt.window,ht=jt.hold,dt=jt.bits,St=jt.lencode,It=jt.distcode,_t=(1<<jt.lenbits)-1,Gt=(1<<jt.distbits)-1;t:do{dt<15&&(ht+=Wt[qt++]<<dt,dt+=8,ht+=Wt[qt++]<<dt,dt+=8),oe=St[ht&_t];e:for(;;){if(ht>>>=ue=oe>>>24,dt-=ue,(ue=oe>>>16&255)===0)Ge[re++]=65535&oe;else{if(!(16&ue)){if(!(64&ue)){oe=St[(65535&oe)+(ht&(1<<ue)-1)];continue e}if(32&ue){jt.mode=12;break t}Zt.msg="invalid literal/length code",jt.mode=30;break t}de=65535&oe,(ue&=15)&&(dt<ue&&(ht+=Wt[qt++]<<dt,dt+=8),de+=ht&(1<<ue)-1,ht>>>=ue,dt-=ue),dt<15&&(ht+=Wt[qt++]<<dt,dt+=8,ht+=Wt[qt++]<<dt,dt+=8),oe=It[ht&Gt];n:for(;;){if(ht>>>=ue=oe>>>24,dt-=ue,!(16&(ue=oe>>>16&255))){if(!(64&ue)){oe=It[(65535&oe)+(ht&(1<<ue)-1)];continue n}Zt.msg="invalid distance code",jt.mode=30;break t}if(be=65535&oe,dt<(ue&=15)&&(ht+=Wt[qt++]<<dt,(dt+=8)<ue&&(ht+=Wt[qt++]<<dt,dt+=8)),Ct<(be+=ht&(1<<ue)-1)){Zt.msg="invalid distance too far back",jt.mode=30;break t}if(ht>>>=ue,dt-=ue,(ue=re-Kt)<be){if(tt<(ue=be-ue)&&jt.sane){Zt.msg="invalid distance too far back",jt.mode=30;break t}if(Ke=rt,(Jt=0)===lt){if(Jt+=et-ue,ue<de){for(de-=ue;Ge[re++]=rt[Jt++],--ue;);Jt=re-be,Ke=Ge}}else if(lt<ue){if(Jt+=et+lt-ue,(ue-=lt)<de){for(de-=ue;Ge[re++]=rt[Jt++],--ue;);if(Jt=0,lt<de){for(de-=ue=lt;Ge[re++]=rt[Jt++],--ue;);Jt=re-be,Ke=Ge}}}else if(Jt+=lt-ue,ue<de){for(de-=ue;Ge[re++]=rt[Jt++],--ue;);Jt=re-be,Ke=Ge}for(;2<de;)Ge[re++]=Ke[Jt++],Ge[re++]=Ke[Jt++],Ge[re++]=Ke[Jt++],de-=3;de&&(Ge[re++]=Ke[Jt++],1<de&&(Ge[re++]=Ke[Jt++]))}else{for(Jt=re-be;Ge[re++]=Ge[Jt++],Ge[re++]=Ge[Jt++],Ge[re++]=Ge[Jt++],2<(de-=3););de&&(Ge[re++]=Ge[Jt++],1<de&&(Ge[re++]=Ge[Jt++]))}break}}break}}while(qt<Pt&&re<Yt);qt-=de=dt>>3,ht&=(1<<(dt-=de<<3))-1,Zt.next_in=qt,Zt.next_out=re,Zt.avail_in=qt<Pt?Pt-qt+5:5-(qt-Pt),Zt.avail_out=re<Yt?Yt-re+257:257-(re-Yt),jt.hold=ht,jt.bits=dt}},{}],49:[function(ie,Ie,ee){"use strict";var Zt=ie("../utils/common"),Nt=ie("./adler32"),jt=ie("./crc32"),qt=ie("./inffast"),Pt=ie("./inftrees"),re=1,Kt=2,Yt=0,Ct=-2,et=1,tt=852,lt=592;function rt(Jt){return(Jt>>>24&255)+(Jt>>>8&65280)+((65280&Jt)<<8)+((255&Jt)<<24)}function ht(){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 Zt.Buf16(320),this.work=new Zt.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function dt(Jt){var Ke;return Jt&&Jt.state?(Ke=Jt.state,Jt.total_in=Jt.total_out=Ke.total=0,Jt.msg="",Ke.wrap&&(Jt.adler=1&Ke.wrap),Ke.mode=et,Ke.last=0,Ke.havedict=0,Ke.dmax=32768,Ke.head=null,Ke.hold=0,Ke.bits=0,Ke.lencode=Ke.lendyn=new Zt.Buf32(tt),Ke.distcode=Ke.distdyn=new Zt.Buf32(lt),Ke.sane=1,Ke.back=-1,Yt):Ct}function St(Jt){var Ke;return Jt&&Jt.state?((Ke=Jt.state).wsize=0,Ke.whave=0,Ke.wnext=0,dt(Jt)):Ct}function It(Jt,Ke){var Wt,Ge;return Jt&&Jt.state?(Ge=Jt.state,Ke<0?(Wt=0,Ke=-Ke):(Wt=1+(Ke>>4),Ke<48&&(Ke&=15)),Ke&&(Ke<8||15<Ke)?Ct:(Ge.window!==null&&Ge.wbits!==Ke&&(Ge.window=null),Ge.wrap=Wt,Ge.wbits=Ke,St(Jt))):Ct}function _t(Jt,Ke){var Wt,Ge;return Jt?(Ge=new ht,(Jt.state=Ge).window=null,(Wt=It(Jt,Ke))!==Yt&&(Jt.state=null),Wt):Ct}var Gt,oe,ue=!0;function de(Jt){if(ue){var Ke;for(Gt=new Zt.Buf32(512),oe=new Zt.Buf32(32),Ke=0;Ke<144;)Jt.lens[Ke++]=8;for(;Ke<256;)Jt.lens[Ke++]=9;for(;Ke<280;)Jt.lens[Ke++]=7;for(;Ke<288;)Jt.lens[Ke++]=8;for(Pt(re,Jt.lens,0,288,Gt,0,Jt.work,{bits:9}),Ke=0;Ke<32;)Jt.lens[Ke++]=5;Pt(Kt,Jt.lens,0,32,oe,0,Jt.work,{bits:5}),ue=!1}Jt.lencode=Gt,Jt.lenbits=9,Jt.distcode=oe,Jt.distbits=5}function be(Jt,Ke,Wt,Ge){var He,Me=Jt.state;return Me.window===null&&(Me.wsize=1<<Me.wbits,Me.wnext=0,Me.whave=0,Me.window=new Zt.Buf8(Me.wsize)),Ge>=Me.wsize?(Zt.arraySet(Me.window,Ke,Wt-Me.wsize,Me.wsize,0),Me.wnext=0,Me.whave=Me.wsize):(Ge<(He=Me.wsize-Me.wnext)&&(He=Ge),Zt.arraySet(Me.window,Ke,Wt-Ge,He,Me.wnext),(Ge-=He)?(Zt.arraySet(Me.window,Ke,Wt-Ge,Ge,0),Me.wnext=Ge,Me.whave=Me.wsize):(Me.wnext+=He,Me.wnext===Me.wsize&&(Me.wnext=0),Me.whave<Me.wsize&&(Me.whave+=He))),0}ee.inflateReset=St,ee.inflateReset2=It,ee.inflateResetKeep=dt,ee.inflateInit=function(Jt){return _t(Jt,15)},ee.inflateInit2=_t,ee.inflate=function(Jt,Ke){var Wt,Ge,He,Me,We,_e,ve,ne,Se,Pn,Mn,Xe,Nn,Zn,fi,zn,Si,nn,Fi,Ti,Lt,Ot,mt,ft,pt=0,At=new Zt.Buf8(4),le=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Jt||!Jt.state||!Jt.output||!Jt.input&&Jt.avail_in!==0)return Ct;(Wt=Jt.state).mode===12&&(Wt.mode=13),We=Jt.next_out,He=Jt.output,ve=Jt.avail_out,Me=Jt.next_in,Ge=Jt.input,_e=Jt.avail_in,ne=Wt.hold,Se=Wt.bits,Pn=_e,Mn=ve,Ot=Yt;t:for(;;)switch(Wt.mode){case et:if(Wt.wrap===0){Wt.mode=13;break}for(;Se<16;){if(_e===0)break t;_e--,ne+=Ge[Me++]<<Se,Se+=8}if(2&Wt.wrap&&ne===35615){At[Wt.check=0]=255&ne,At[1]=ne>>>8&255,Wt.check=jt(Wt.check,At,2,0),Se=ne=0,Wt.mode=2;break}if(Wt.flags=0,Wt.head&&(Wt.head.done=!1),!(1&Wt.wrap)||(((255&ne)<<8)+(ne>>8))%31){Jt.msg="incorrect header check",Wt.mode=30;break}if((15&ne)!=8){Jt.msg="unknown compression method",Wt.mode=30;break}if(Se-=4,Lt=8+(15&(ne>>>=4)),Wt.wbits===0)Wt.wbits=Lt;else if(Lt>Wt.wbits){Jt.msg="invalid window size",Wt.mode=30;break}Wt.dmax=1<<Lt,Jt.adler=Wt.check=1,Wt.mode=512&ne?10:12,Se=ne=0;break;case 2:for(;Se<16;){if(_e===0)break t;_e--,ne+=Ge[Me++]<<Se,Se+=8}if(Wt.flags=ne,(255&Wt.flags)!=8){Jt.msg="unknown compression method",Wt.mode=30;break}if(57344&Wt.flags){Jt.msg="unknown header flags set",Wt.mode=30;break}Wt.head&&(Wt.head.text=ne>>8&1),512&Wt.flags&&(At[0]=255&ne,At[1]=ne>>>8&255,Wt.check=jt(Wt.check,At,2,0)),Se=ne=0,Wt.mode=3;case 3:for(;Se<32;){if(_e===0)break t;_e--,ne+=Ge[Me++]<<Se,Se+=8}Wt.head&&(Wt.head.time=ne),512&Wt.flags&&(At[0]=255&ne,At[1]=ne>>>8&255,At[2]=ne>>>16&255,At[3]=ne>>>24&255,Wt.check=jt(Wt.check,At,4,0)),Se=ne=0,Wt.mode=4;case 4:for(;Se<16;){if(_e===0)break t;_e--,ne+=Ge[Me++]<<Se,Se+=8}Wt.head&&(Wt.head.xflags=255&ne,Wt.head.os=ne>>8),512&Wt.flags&&(At[0]=255&ne,At[1]=ne>>>8&255,Wt.check=jt(Wt.check,At,2,0)),Se=ne=0,Wt.mode=5;case 5:if(1024&Wt.flags){for(;Se<16;){if(_e===0)break t;_e--,ne+=Ge[Me++]<<Se,Se+=8}Wt.length=ne,Wt.head&&(Wt.head.extra_len=ne),512&Wt.flags&&(At[0]=255&ne,At[1]=ne>>>8&255,Wt.check=jt(Wt.check,At,2,0)),Se=ne=0}else Wt.head&&(Wt.head.extra=null);Wt.mode=6;case 6:if(1024&Wt.flags&&(_e<(Xe=Wt.length)&&(Xe=_e),Xe&&(Wt.head&&(Lt=Wt.head.extra_len-Wt.length,Wt.head.extra||(Wt.head.extra=new Array(Wt.head.extra_len)),Zt.arraySet(Wt.head.extra,Ge,Me,Xe,Lt)),512&Wt.flags&&(Wt.check=jt(Wt.check,Ge,Xe,Me)),_e-=Xe,Me+=Xe,Wt.length-=Xe),Wt.length))break t;Wt.length=0,Wt.mode=7;case 7:if(2048&Wt.flags){if(_e===0)break t;for(Xe=0;Lt=Ge[Me+Xe++],Wt.head&&Lt&&Wt.length<65536&&(Wt.head.name+=String.fromCharCode(Lt)),Lt&&Xe<_e;);if(512&Wt.flags&&(Wt.check=jt(Wt.check,Ge,Xe,Me)),_e-=Xe,Me+=Xe,Lt)break t}else Wt.head&&(Wt.head.name=null);Wt.length=0,Wt.mode=8;case 8:if(4096&Wt.flags){if(_e===0)break t;for(Xe=0;Lt=Ge[Me+Xe++],Wt.head&&Lt&&Wt.length<65536&&(Wt.head.comment+=String.fromCharCode(Lt)),Lt&&Xe<_e;);if(512&Wt.flags&&(Wt.check=jt(Wt.check,Ge,Xe,Me)),_e-=Xe,Me+=Xe,Lt)break t}else Wt.head&&(Wt.head.comment=null);Wt.mode=9;case 9:if(512&Wt.flags){for(;Se<16;){if(_e===0)break t;_e--,ne+=Ge[Me++]<<Se,Se+=8}if(ne!==(65535&Wt.check)){Jt.msg="header crc mismatch",Wt.mode=30;break}Se=ne=0}Wt.head&&(Wt.head.hcrc=Wt.flags>>9&1,Wt.head.done=!0),Jt.adler=Wt.check=0,Wt.mode=12;break;case 10:for(;Se<32;){if(_e===0)break t;_e--,ne+=Ge[Me++]<<Se,Se+=8}Jt.adler=Wt.check=rt(ne),Se=ne=0,Wt.mode=11;case 11:if(Wt.havedict===0)return Jt.next_out=We,Jt.avail_out=ve,Jt.next_in=Me,Jt.avail_in=_e,Wt.hold=ne,Wt.bits=Se,2;Jt.adler=Wt.check=1,Wt.mode=12;case 12:if(Ke===5||Ke===6)break t;case 13:if(Wt.last){ne>>>=7&Se,Se-=7&Se,Wt.mode=27;break}for(;Se<3;){if(_e===0)break t;_e--,ne+=Ge[Me++]<<Se,Se+=8}switch(Wt.last=1&ne,Se-=1,3&(ne>>>=1)){case 0:Wt.mode=14;break;case 1:if(de(Wt),Wt.mode=20,Ke!==6)break;ne>>>=2,Se-=2;break t;case 2:Wt.mode=17;break;case 3:Jt.msg="invalid block type",Wt.mode=30}ne>>>=2,Se-=2;break;case 14:for(ne>>>=7&Se,Se-=7&Se;Se<32;){if(_e===0)break t;_e--,ne+=Ge[Me++]<<Se,Se+=8}if((65535&ne)!=(ne>>>16^65535)){Jt.msg="invalid stored block lengths",Wt.mode=30;break}if(Wt.length=65535&ne,Se=ne=0,Wt.mode=15,Ke===6)break t;case 15:Wt.mode=16;case 16:if(Xe=Wt.length){if(_e<Xe&&(Xe=_e),ve<Xe&&(Xe=ve),Xe===0)break t;Zt.arraySet(He,Ge,Me,Xe,We),_e-=Xe,Me+=Xe,ve-=Xe,We+=Xe,Wt.length-=Xe;break}Wt.mode=12;break;case 17:for(;Se<14;){if(_e===0)break t;_e--,ne+=Ge[Me++]<<Se,Se+=8}if(Wt.nlen=257+(31&ne),ne>>>=5,Se-=5,Wt.ndist=1+(31&ne),ne>>>=5,Se-=5,Wt.ncode=4+(15&ne),ne>>>=4,Se-=4,286<Wt.nlen||30<Wt.ndist){Jt.msg="too many length or distance symbols",Wt.mode=30;break}Wt.have=0,Wt.mode=18;case 18:for(;Wt.have<Wt.ncode;){for(;Se<3;){if(_e===0)break t;_e--,ne+=Ge[Me++]<<Se,Se+=8}Wt.lens[le[Wt.have++]]=7&ne,ne>>>=3,Se-=3}for(;Wt.have<19;)Wt.lens[le[Wt.have++]]=0;if(Wt.lencode=Wt.lendyn,Wt.lenbits=7,mt={bits:Wt.lenbits},Ot=Pt(0,Wt.lens,0,19,Wt.lencode,0,Wt.work,mt),Wt.lenbits=mt.bits,Ot){Jt.msg="invalid code lengths set",Wt.mode=30;break}Wt.have=0,Wt.mode=19;case 19:for(;Wt.have<Wt.nlen+Wt.ndist;){for(;zn=(pt=Wt.lencode[ne&(1<<Wt.lenbits)-1])>>>16&255,Si=65535&pt,!((fi=pt>>>24)<=Se);){if(_e===0)break t;_e--,ne+=Ge[Me++]<<Se,Se+=8}if(Si<16)ne>>>=fi,Se-=fi,Wt.lens[Wt.have++]=Si;else{if(Si===16){for(ft=fi+2;Se<ft;){if(_e===0)break t;_e--,ne+=Ge[Me++]<<Se,Se+=8}if(ne>>>=fi,Se-=fi,Wt.have===0){Jt.msg="invalid bit length repeat",Wt.mode=30;break}Lt=Wt.lens[Wt.have-1],Xe=3+(3&ne),ne>>>=2,Se-=2}else if(Si===17){for(ft=fi+3;Se<ft;){if(_e===0)break t;_e--,ne+=Ge[Me++]<<Se,Se+=8}Se-=fi,Lt=0,Xe=3+(7&(ne>>>=fi)),ne>>>=3,Se-=3}else{for(ft=fi+7;Se<ft;){if(_e===0)break t;_e--,ne+=Ge[Me++]<<Se,Se+=8}Se-=fi,Lt=0,Xe=11+(127&(ne>>>=fi)),ne>>>=7,Se-=7}if(Wt.have+Xe>Wt.nlen+Wt.ndist){Jt.msg="invalid bit length repeat",Wt.mode=30;break}for(;Xe--;)Wt.lens[Wt.have++]=Lt}}if(Wt.mode===30)break;if(Wt.lens[256]===0){Jt.msg="invalid code -- missing end-of-block",Wt.mode=30;break}if(Wt.lenbits=9,mt={bits:Wt.lenbits},Ot=Pt(re,Wt.lens,0,Wt.nlen,Wt.lencode,0,Wt.work,mt),Wt.lenbits=mt.bits,Ot){Jt.msg="invalid literal/lengths set",Wt.mode=30;break}if(Wt.distbits=6,Wt.distcode=Wt.distdyn,mt={bits:Wt.distbits},Ot=Pt(Kt,Wt.lens,Wt.nlen,Wt.ndist,Wt.distcode,0,Wt.work,mt),Wt.distbits=mt.bits,Ot){Jt.msg="invalid distances set",Wt.mode=30;break}if(Wt.mode=20,Ke===6)break t;case 20:Wt.mode=21;case 21:if(6<=_e&&258<=ve){Jt.next_out=We,Jt.avail_out=ve,Jt.next_in=Me,Jt.avail_in=_e,Wt.hold=ne,Wt.bits=Se,qt(Jt,Mn),We=Jt.next_out,He=Jt.output,ve=Jt.avail_out,Me=Jt.next_in,Ge=Jt.input,_e=Jt.avail_in,ne=Wt.hold,Se=Wt.bits,Wt.mode===12&&(Wt.back=-1);break}for(Wt.back=0;zn=(pt=Wt.lencode[ne&(1<<Wt.lenbits)-1])>>>16&255,Si=65535&pt,!((fi=pt>>>24)<=Se);){if(_e===0)break t;_e--,ne+=Ge[Me++]<<Se,Se+=8}if(zn&&!(240&zn)){for(nn=fi,Fi=zn,Ti=Si;zn=(pt=Wt.lencode[Ti+((ne&(1<<nn+Fi)-1)>>nn)])>>>16&255,Si=65535&pt,!(nn+(fi=pt>>>24)<=Se);){if(_e===0)break t;_e--,ne+=Ge[Me++]<<Se,Se+=8}ne>>>=nn,Se-=nn,Wt.back+=nn}if(ne>>>=fi,Se-=fi,Wt.back+=fi,Wt.length=Si,zn===0){Wt.mode=26;break}if(32&zn){Wt.back=-1,Wt.mode=12;break}if(64&zn){Jt.msg="invalid literal/length code",Wt.mode=30;break}Wt.extra=15&zn,Wt.mode=22;case 22:if(Wt.extra){for(ft=Wt.extra;Se<ft;){if(_e===0)break t;_e--,ne+=Ge[Me++]<<Se,Se+=8}Wt.length+=ne&(1<<Wt.extra)-1,ne>>>=Wt.extra,Se-=Wt.extra,Wt.back+=Wt.extra}Wt.was=Wt.length,Wt.mode=23;case 23:for(;zn=(pt=Wt.distcode[ne&(1<<Wt.distbits)-1])>>>16&255,Si=65535&pt,!((fi=pt>>>24)<=Se);){if(_e===0)break t;_e--,ne+=Ge[Me++]<<Se,Se+=8}if(!(240&zn)){for(nn=fi,Fi=zn,Ti=Si;zn=(pt=Wt.distcode[Ti+((ne&(1<<nn+Fi)-1)>>nn)])>>>16&255,Si=65535&pt,!(nn+(fi=pt>>>24)<=Se);){if(_e===0)break t;_e--,ne+=Ge[Me++]<<Se,Se+=8}ne>>>=nn,Se-=nn,Wt.back+=nn}if(ne>>>=fi,Se-=fi,Wt.back+=fi,64&zn){Jt.msg="invalid distance code",Wt.mode=30;break}Wt.offset=Si,Wt.extra=15&zn,Wt.mode=24;case 24:if(Wt.extra){for(ft=Wt.extra;Se<ft;){if(_e===0)break t;_e--,ne+=Ge[Me++]<<Se,Se+=8}Wt.offset+=ne&(1<<Wt.extra)-1,ne>>>=Wt.extra,Se-=Wt.extra,Wt.back+=Wt.extra}if(Wt.offset>Wt.dmax){Jt.msg="invalid distance too far back",Wt.mode=30;break}Wt.mode=25;case 25:if(ve===0)break t;if(Xe=Mn-ve,Wt.offset>Xe){if((Xe=Wt.offset-Xe)>Wt.whave&&Wt.sane){Jt.msg="invalid distance too far back",Wt.mode=30;break}Nn=Xe>Wt.wnext?(Xe-=Wt.wnext,Wt.wsize-Xe):Wt.wnext-Xe,Xe>Wt.length&&(Xe=Wt.length),Zn=Wt.window}else Zn=He,Nn=We-Wt.offset,Xe=Wt.length;for(ve<Xe&&(Xe=ve),ve-=Xe,Wt.length-=Xe;He[We++]=Zn[Nn++],--Xe;);Wt.length===0&&(Wt.mode=21);break;case 26:if(ve===0)break t;He[We++]=Wt.length,ve--,Wt.mode=21;break;case 27:if(Wt.wrap){for(;Se<32;){if(_e===0)break t;_e--,ne|=Ge[Me++]<<Se,Se+=8}if(Mn-=ve,Jt.total_out+=Mn,Wt.total+=Mn,Mn&&(Jt.adler=Wt.check=Wt.flags?jt(Wt.check,He,Mn,We-Mn):Nt(Wt.check,He,Mn,We-Mn)),Mn=ve,(Wt.flags?ne:rt(ne))!==Wt.check){Jt.msg="incorrect data check",Wt.mode=30;break}Se=ne=0}Wt.mode=28;case 28:if(Wt.wrap&&Wt.flags){for(;Se<32;){if(_e===0)break t;_e--,ne+=Ge[Me++]<<Se,Se+=8}if(ne!==(4294967295&Wt.total)){Jt.msg="incorrect length check",Wt.mode=30;break}Se=ne=0}Wt.mode=29;case 29:Ot=1;break t;case 30:Ot=-3;break t;case 31:return-4;case 32:default:return Ct}return Jt.next_out=We,Jt.avail_out=ve,Jt.next_in=Me,Jt.avail_in=_e,Wt.hold=ne,Wt.bits=Se,(Wt.wsize||Mn!==Jt.avail_out&&Wt.mode<30&&(Wt.mode<27||Ke!==4))&&be(Jt,Jt.output,Jt.next_out,Mn-Jt.avail_out)?(Wt.mode=31,-4):(Pn-=Jt.avail_in,Mn-=Jt.avail_out,Jt.total_in+=Pn,Jt.total_out+=Mn,Wt.total+=Mn,Wt.wrap&&Mn&&(Jt.adler=Wt.check=Wt.flags?jt(Wt.check,He,Mn,Jt.next_out-Mn):Nt(Wt.check,He,Mn,Jt.next_out-Mn)),Jt.data_type=Wt.bits+(Wt.last?64:0)+(Wt.mode===12?128:0)+(Wt.mode===20||Wt.mode===15?256:0),(Pn==0&&Mn===0||Ke===4)&&Ot===Yt&&(Ot=-5),Ot)},ee.inflateEnd=function(Jt){if(!Jt||!Jt.state)return Ct;var Ke=Jt.state;return Ke.window&&(Ke.window=null),Jt.state=null,Yt},ee.inflateGetHeader=function(Jt,Ke){var Wt;return Jt&&Jt.state&&2&(Wt=Jt.state).wrap?((Wt.head=Ke).done=!1,Yt):Ct},ee.inflateSetDictionary=function(Jt,Ke){var Wt,Ge=Ke.length;return Jt&&Jt.state?(Wt=Jt.state).wrap!==0&&Wt.mode!==11?Ct:Wt.mode===11&&Nt(1,Ke,Ge,0)!==Wt.check?-3:be(Jt,Ke,Ge,Ge)?(Wt.mode=31,-4):(Wt.havedict=1,Yt):Ct},ee.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(ie,Ie,ee){"use strict";var Zt=ie("../utils/common"),Nt=[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],jt=[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],qt=[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],Pt=[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];Ie.exports=function(re,Kt,Yt,Ct,et,tt,lt,rt){var ht,dt,St,It,_t,Gt,oe,ue,de,be=rt.bits,Jt=0,Ke=0,Wt=0,Ge=0,He=0,Me=0,We=0,_e=0,ve=0,ne=0,Se=null,Pn=0,Mn=new Zt.Buf16(16),Xe=new Zt.Buf16(16),Nn=null,Zn=0;for(Jt=0;Jt<=15;Jt++)Mn[Jt]=0;for(Ke=0;Ke<Ct;Ke++)Mn[Kt[Yt+Ke]]++;for(He=be,Ge=15;1<=Ge&&Mn[Ge]===0;Ge--);if(Ge<He&&(He=Ge),Ge===0)return et[tt++]=20971520,et[tt++]=20971520,rt.bits=1,0;for(Wt=1;Wt<Ge&&Mn[Wt]===0;Wt++);for(He<Wt&&(He=Wt),Jt=_e=1;Jt<=15;Jt++)if(_e<<=1,(_e-=Mn[Jt])<0)return-1;if(0<_e&&(re===0||Ge!==1))return-1;for(Xe[1]=0,Jt=1;Jt<15;Jt++)Xe[Jt+1]=Xe[Jt]+Mn[Jt];for(Ke=0;Ke<Ct;Ke++)Kt[Yt+Ke]!==0&&(lt[Xe[Kt[Yt+Ke]]++]=Ke);if(Gt=re===0?(Se=Nn=lt,19):re===1?(Se=Nt,Pn-=257,Nn=jt,Zn-=257,256):(Se=qt,Nn=Pt,-1),Jt=Wt,_t=tt,We=Ke=ne=0,St=-1,It=(ve=1<<(Me=He))-1,re===1&&852<ve||re===2&&592<ve)return 1;for(;;){for(oe=Jt-We,de=lt[Ke]<Gt?(ue=0,lt[Ke]):lt[Ke]>Gt?(ue=Nn[Zn+lt[Ke]],Se[Pn+lt[Ke]]):(ue=96,0),ht=1<<Jt-We,Wt=dt=1<<Me;et[_t+(ne>>We)+(dt-=ht)]=oe<<24|ue<<16|de|0,dt!==0;);for(ht=1<<Jt-1;ne&ht;)ht>>=1;if(ht!==0?(ne&=ht-1,ne+=ht):ne=0,Ke++,--Mn[Jt]==0){if(Jt===Ge)break;Jt=Kt[Yt+lt[Ke]]}if(He<Jt&&(ne&It)!==St){for(We===0&&(We=He),_t+=Wt,_e=1<<(Me=Jt-We);Me+We<Ge&&!((_e-=Mn[Me+We])<=0);)Me++,_e<<=1;if(ve+=1<<Me,re===1&&852<ve||re===2&&592<ve)return 1;et[St=ne&It]=He<<24|Me<<16|_t-tt|0}}return ne!==0&&(et[_t+ne]=Jt-We<<24|64<<16|0),rt.bits=He,0}},{"../utils/common":41}],51:[function(ie,Ie,ee){"use strict";Ie.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(ie,Ie,ee){"use strict";var Zt=ie("../utils/common"),Nt=0,jt=1;function qt(pt){for(var At=pt.length;0<=--At;)pt[At]=0}var Pt=0,re=29,Kt=256,Yt=Kt+1+re,Ct=30,et=19,tt=2*Yt+1,lt=15,rt=16,ht=7,dt=256,St=16,It=17,_t=18,Gt=[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],oe=[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],ue=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],de=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],be=new Array(2*(Yt+2));qt(be);var Jt=new Array(2*Ct);qt(Jt);var Ke=new Array(512);qt(Ke);var Wt=new Array(256);qt(Wt);var Ge=new Array(re);qt(Ge);var He,Me,We,_e=new Array(Ct);function ve(pt,At,le,we,ae){this.static_tree=pt,this.extra_bits=At,this.extra_base=le,this.elems=we,this.max_length=ae,this.has_stree=pt&&pt.length}function ne(pt,At){this.dyn_tree=pt,this.max_code=0,this.stat_desc=At}function Se(pt){return pt<256?Ke[pt]:Ke[256+(pt>>>7)]}function Pn(pt,At){pt.pending_buf[pt.pending++]=255&At,pt.pending_buf[pt.pending++]=At>>>8&255}function Mn(pt,At,le){pt.bi_valid>rt-le?(pt.bi_buf|=At<<pt.bi_valid&65535,Pn(pt,pt.bi_buf),pt.bi_buf=At>>rt-pt.bi_valid,pt.bi_valid+=le-rt):(pt.bi_buf|=At<<pt.bi_valid&65535,pt.bi_valid+=le)}function Xe(pt,At,le){Mn(pt,le[2*At],le[2*At+1])}function Nn(pt,At){for(var le=0;le|=1&pt,pt>>>=1,le<<=1,0<--At;);return le>>>1}function Zn(pt,At,le){var we,ae,me=new Array(lt+1),Re=0;for(we=1;we<=lt;we++)me[we]=Re=Re+le[we-1]<<1;for(ae=0;ae<=At;ae++){var Oe=pt[2*ae+1];Oe!==0&&(pt[2*ae]=Nn(me[Oe]++,Oe))}}function fi(pt){var At;for(At=0;At<Yt;At++)pt.dyn_ltree[2*At]=0;for(At=0;At<Ct;At++)pt.dyn_dtree[2*At]=0;for(At=0;At<et;At++)pt.bl_tree[2*At]=0;pt.dyn_ltree[2*dt]=1,pt.opt_len=pt.static_len=0,pt.last_lit=pt.matches=0}function zn(pt){8<pt.bi_valid?Pn(pt,pt.bi_buf):0<pt.bi_valid&&(pt.pending_buf[pt.pending++]=pt.bi_buf),pt.bi_buf=0,pt.bi_valid=0}function Si(pt,At,le,we){var ae=2*At,me=2*le;return pt[ae]<pt[me]||pt[ae]===pt[me]&&we[At]<=we[le]}function nn(pt,At,le){for(var we=pt.heap[le],ae=le<<1;ae<=pt.heap_len&&(ae<pt.heap_len&&Si(At,pt.heap[ae+1],pt.heap[ae],pt.depth)&&ae++,!Si(At,we,pt.heap[ae],pt.depth));)pt.heap[le]=pt.heap[ae],le=ae,ae<<=1;pt.heap[le]=we}function Fi(pt,At,le){var we,ae,me,Re,Oe=0;if(pt.last_lit!==0)for(;we=pt.pending_buf[pt.d_buf+2*Oe]<<8|pt.pending_buf[pt.d_buf+2*Oe+1],ae=pt.pending_buf[pt.l_buf+Oe],Oe++,we===0?Xe(pt,ae,At):(Xe(pt,(me=Wt[ae])+Kt+1,At),(Re=Gt[me])!==0&&Mn(pt,ae-=Ge[me],Re),Xe(pt,me=Se(--we),le),(Re=oe[me])!==0&&Mn(pt,we-=_e[me],Re)),Oe<pt.last_lit;);Xe(pt,dt,At)}function Ti(pt,At){var le,we,ae,me=At.dyn_tree,Re=At.stat_desc.static_tree,Oe=At.stat_desc.has_stree,ke=At.stat_desc.elems,rn=-1;for(pt.heap_len=0,pt.heap_max=tt,le=0;le<ke;le++)me[2*le]!==0?(pt.heap[++pt.heap_len]=rn=le,pt.depth[le]=0):me[2*le+1]=0;for(;pt.heap_len<2;)me[2*(ae=pt.heap[++pt.heap_len]=rn<2?++rn:0)]=1,pt.depth[ae]=0,pt.opt_len--,Oe&&(pt.static_len-=Re[2*ae+1]);for(At.max_code=rn,le=pt.heap_len>>1;1<=le;le--)nn(pt,me,le);for(ae=ke;le=pt.heap[1],pt.heap[1]=pt.heap[pt.heap_len--],nn(pt,me,1),we=pt.heap[1],pt.heap[--pt.heap_max]=le,pt.heap[--pt.heap_max]=we,me[2*ae]=me[2*le]+me[2*we],pt.depth[ae]=(pt.depth[le]>=pt.depth[we]?pt.depth[le]:pt.depth[we])+1,me[2*le+1]=me[2*we+1]=ae,pt.heap[1]=ae++,nn(pt,me,1),2<=pt.heap_len;);pt.heap[--pt.heap_max]=pt.heap[1],function(Vn,sn){var An,Bn,ii,_n,ji,cr,Ji=sn.dyn_tree,mr=sn.max_code,Mr=sn.stat_desc.static_tree,ao=sn.stat_desc.has_stree,Yr=sn.stat_desc.extra_bits,Zr=sn.stat_desc.extra_base,kr=sn.stat_desc.max_length,Gr=0;for(_n=0;_n<=lt;_n++)Vn.bl_count[_n]=0;for(Ji[2*Vn.heap[Vn.heap_max]+1]=0,An=Vn.heap_max+1;An<tt;An++)kr<(_n=Ji[2*Ji[2*(Bn=Vn.heap[An])+1]+1]+1)&&(_n=kr,Gr++),Ji[2*Bn+1]=_n,mr<Bn||(Vn.bl_count[_n]++,ji=0,Zr<=Bn&&(ji=Yr[Bn-Zr]),cr=Ji[2*Bn],Vn.opt_len+=cr*(_n+ji),ao&&(Vn.static_len+=cr*(Mr[2*Bn+1]+ji)));if(Gr!==0){do{for(_n=kr-1;Vn.bl_count[_n]===0;)_n--;Vn.bl_count[_n]--,Vn.bl_count[_n+1]+=2,Vn.bl_count[kr]--,Gr-=2}while(0<Gr);for(_n=kr;_n!==0;_n--)for(Bn=Vn.bl_count[_n];Bn!==0;)mr<(ii=Vn.heap[--An])||(Ji[2*ii+1]!==_n&&(Vn.opt_len+=(_n-Ji[2*ii+1])*Ji[2*ii],Ji[2*ii+1]=_n),Bn--)}}(pt,At),Zn(me,rn,pt.bl_count)}function Lt(pt,At,le){var we,ae,me=-1,Re=At[1],Oe=0,ke=7,rn=4;for(Re===0&&(ke=138,rn=3),At[2*(le+1)+1]=65535,we=0;we<=le;we++)ae=Re,Re=At[2*(we+1)+1],++Oe<ke&&ae===Re||(Oe<rn?pt.bl_tree[2*ae]+=Oe:ae!==0?(ae!==me&&pt.bl_tree[2*ae]++,pt.bl_tree[2*St]++):Oe<=10?pt.bl_tree[2*It]++:pt.bl_tree[2*_t]++,me=ae,rn=(Oe=0)===Re?(ke=138,3):ae===Re?(ke=6,3):(ke=7,4))}function Ot(pt,At,le){var we,ae,me=-1,Re=At[1],Oe=0,ke=7,rn=4;for(Re===0&&(ke=138,rn=3),we=0;we<=le;we++)if(ae=Re,Re=At[2*(we+1)+1],!(++Oe<ke&&ae===Re)){if(Oe<rn)for(;Xe(pt,ae,pt.bl_tree),--Oe!=0;);else ae!==0?(ae!==me&&(Xe(pt,ae,pt.bl_tree),Oe--),Xe(pt,St,pt.bl_tree),Mn(pt,Oe-3,2)):Oe<=10?(Xe(pt,It,pt.bl_tree),Mn(pt,Oe-3,3)):(Xe(pt,_t,pt.bl_tree),Mn(pt,Oe-11,7));me=ae,rn=(Oe=0)===Re?(ke=138,3):ae===Re?(ke=6,3):(ke=7,4)}}qt(_e);var mt=!1;function ft(pt,At,le,we){Mn(pt,(Pt<<1)+(we?1:0),3),function(ae,me,Re,Oe){zn(ae),Oe&&(Pn(ae,Re),Pn(ae,~Re)),Zt.arraySet(ae.pending_buf,ae.window,me,Re,ae.pending),ae.pending+=Re}(pt,At,le,!0)}ee._tr_init=function(pt){mt||(function(){var At,le,we,ae,me,Re=new Array(lt+1);for(ae=we=0;ae<re-1;ae++)for(Ge[ae]=we,At=0;At<1<<Gt[ae];At++)Wt[we++]=ae;for(Wt[we-1]=ae,ae=me=0;ae<16;ae++)for(_e[ae]=me,At=0;At<1<<oe[ae];At++)Ke[me++]=ae;for(me>>=7;ae<Ct;ae++)for(_e[ae]=me<<7,At=0;At<1<<oe[ae]-7;At++)Ke[256+me++]=ae;for(le=0;le<=lt;le++)Re[le]=0;for(At=0;At<=143;)be[2*At+1]=8,At++,Re[8]++;for(;At<=255;)be[2*At+1]=9,At++,Re[9]++;for(;At<=279;)be[2*At+1]=7,At++,Re[7]++;for(;At<=287;)be[2*At+1]=8,At++,Re[8]++;for(Zn(be,Yt+1,Re),At=0;At<Ct;At++)Jt[2*At+1]=5,Jt[2*At]=Nn(At,5);He=new ve(be,Gt,Kt+1,Yt,lt),Me=new ve(Jt,oe,0,Ct,lt),We=new ve(new Array(0),ue,0,et,ht)}(),mt=!0),pt.l_desc=new ne(pt.dyn_ltree,He),pt.d_desc=new ne(pt.dyn_dtree,Me),pt.bl_desc=new ne(pt.bl_tree,We),pt.bi_buf=0,pt.bi_valid=0,fi(pt)},ee._tr_stored_block=ft,ee._tr_flush_block=function(pt,At,le,we){var ae,me,Re=0;0<pt.level?(pt.strm.data_type===2&&(pt.strm.data_type=function(Oe){var ke,rn=4093624447;for(ke=0;ke<=31;ke++,rn>>>=1)if(1&rn&&Oe.dyn_ltree[2*ke]!==0)return Nt;if(Oe.dyn_ltree[18]!==0||Oe.dyn_ltree[20]!==0||Oe.dyn_ltree[26]!==0)return jt;for(ke=32;ke<Kt;ke++)if(Oe.dyn_ltree[2*ke]!==0)return jt;return Nt}(pt)),Ti(pt,pt.l_desc),Ti(pt,pt.d_desc),Re=function(Oe){var ke;for(Lt(Oe,Oe.dyn_ltree,Oe.l_desc.max_code),Lt(Oe,Oe.dyn_dtree,Oe.d_desc.max_code),Ti(Oe,Oe.bl_desc),ke=et-1;3<=ke&&Oe.bl_tree[2*de[ke]+1]===0;ke--);return Oe.opt_len+=3*(ke+1)+5+5+4,ke}(pt),ae=pt.opt_len+3+7>>>3,(me=pt.static_len+3+7>>>3)<=ae&&(ae=me)):ae=me=le+5,le+4<=ae&&At!==-1?ft(pt,At,le,we):pt.strategy===4||me===ae?(Mn(pt,2+(we?1:0),3),Fi(pt,be,Jt)):(Mn(pt,4+(we?1:0),3),function(Oe,ke,rn,Vn){var sn;for(Mn(Oe,ke-257,5),Mn(Oe,rn-1,5),Mn(Oe,Vn-4,4),sn=0;sn<Vn;sn++)Mn(Oe,Oe.bl_tree[2*de[sn]+1],3);Ot(Oe,Oe.dyn_ltree,ke-1),Ot(Oe,Oe.dyn_dtree,rn-1)}(pt,pt.l_desc.max_code+1,pt.d_desc.max_code+1,Re+1),Fi(pt,pt.dyn_ltree,pt.dyn_dtree)),fi(pt),we&&zn(pt)},ee._tr_tally=function(pt,At,le){return pt.pending_buf[pt.d_buf+2*pt.last_lit]=At>>>8&255,pt.pending_buf[pt.d_buf+2*pt.last_lit+1]=255&At,pt.pending_buf[pt.l_buf+pt.last_lit]=255&le,pt.last_lit++,At===0?pt.dyn_ltree[2*le]++:(pt.matches++,At--,pt.dyn_ltree[2*(Wt[le]+Kt+1)]++,pt.dyn_dtree[2*Se(At)]++),pt.last_lit===pt.lit_bufsize-1},ee._tr_align=function(pt){Mn(pt,2,3),Xe(pt,dt,be),function(At){At.bi_valid===16?(Pn(At,At.bi_buf),At.bi_buf=0,At.bi_valid=0):8<=At.bi_valid&&(At.pending_buf[At.pending++]=255&At.bi_buf,At.bi_buf>>=8,At.bi_valid-=8)}(pt)}},{"../utils/common":41}],53:[function(ie,Ie,ee){"use strict";Ie.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(ie,Ie,ee){(function(Zt){(function(Nt,jt){"use strict";if(!Nt.setImmediate){var qt,Pt,re,Kt,Yt=1,Ct={},et=!1,tt=Nt.document,lt=Object.getPrototypeOf&&Object.getPrototypeOf(Nt);lt=lt&<.setTimeout?lt:Nt,qt={}.toString.call(Nt.process)==="[object process]"?function(St){ce.nextTick(function(){ht(St)})}:function(){if(Nt.postMessage&&!Nt.importScripts){var St=!0,It=Nt.onmessage;return Nt.onmessage=function(){St=!1},Nt.postMessage("","*"),Nt.onmessage=It,St}}()?(Kt="setImmediate$"+Math.random()+"$",Nt.addEventListener?Nt.addEventListener("message",dt,!1):Nt.attachEvent("onmessage",dt),function(St){Nt.postMessage(Kt+St,"*")}):Nt.MessageChannel?((re=new MessageChannel).port1.onmessage=function(St){ht(St.data)},function(St){re.port2.postMessage(St)}):tt&&"onreadystatechange"in tt.createElement("script")?(Pt=tt.documentElement,function(St){var It=tt.createElement("script");It.onreadystatechange=function(){ht(St),It.onreadystatechange=null,Pt.removeChild(It),It=null},Pt.appendChild(It)}):function(St){setTimeout(ht,0,St)},lt.setImmediate=function(St){typeof St!="function"&&(St=new Function(""+St));for(var It=new Array(arguments.length-1),_t=0;_t<It.length;_t++)It[_t]=arguments[_t+1];var Gt={callback:St,args:It};return Ct[Yt]=Gt,qt(Yt),Yt++},lt.clearImmediate=rt}function rt(St){delete Ct[St]}function ht(St){if(et)setTimeout(ht,0,St);else{var It=Ct[St];if(It){et=!0;try{(function(_t){var Gt=_t.callback,oe=_t.args;switch(oe.length){case 0:Gt();break;case 1:Gt(oe[0]);break;case 2:Gt(oe[0],oe[1]);break;case 3:Gt(oe[0],oe[1],oe[2]);break;default:Gt.apply(jt,oe)}})(It)}finally{rt(St),et=!1}}}}function dt(St){St.source===Nt&&typeof St.data=="string"&&St.data.indexOf(Kt)===0&&ht(+St.data.slice(Kt.length))}})(typeof self=="undefined"?Zt===void 0?this:Zt:self)}).call(this,typeof bt.g!="undefined"?bt.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})},2859:function(hi,Cn,bt){"use strict";bt.d(Cn,{hP:function(){return Ti}});var Mt=function(Lt,Ot){return(Mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(mt,ft){mt.__proto__=ft}||function(mt,ft){for(var pt in ft)Object.prototype.hasOwnProperty.call(ft,pt)&&(mt[pt]=ft[pt])})(Lt,Ot)};function ce(Lt,Ot){function mt(){this.constructor=Lt}Mt(Lt,Ot),Lt.prototype=Ot===null?Object.create(Ot):(mt.prototype=Ot.prototype,new mt)}function ie(Lt,Ot,mt,ft){return new(mt||(mt=Promise))(function(pt,At){function le(me){try{ae(ft.next(me))}catch(Re){At(Re)}}function we(me){try{ae(ft.throw(me))}catch(Re){At(Re)}}function ae(me){var Re;me.done?pt(me.value):(Re=me.value,Re instanceof mt?Re:new mt(function(Oe){Oe(Re)})).then(le,we)}ae((ft=ft.apply(Lt,Ot||[])).next())})}function Ie(Lt,Ot){var mt,ft,pt,At,le={label:0,sent:function(){if(1&pt[0])throw pt[1];return pt[1]},trys:[],ops:[]};return At={next:we(0),throw:we(1),return:we(2)},typeof Symbol=="function"&&(At[Symbol.iterator]=function(){return this}),At;function we(ae){return function(me){return function(Re){if(mt)throw new TypeError("Generator is already executing.");for(;le;)try{if(mt=1,ft&&(pt=2&Re[0]?ft.return:Re[0]?ft.throw||((pt=ft.return)&&pt.call(ft),0):ft.next)&&!(pt=pt.call(ft,Re[1])).done)return pt;switch(ft=0,pt&&(Re=[2&Re[0],pt.value]),Re[0]){case 0:case 1:pt=Re;break;case 4:return le.label++,{value:Re[1],done:!1};case 5:le.label++,ft=Re[1],Re=[0];continue;case 7:Re=le.ops.pop(),le.trys.pop();continue;default:if(pt=le.trys,!((pt=pt.length>0&&pt[pt.length-1])||Re[0]!==6&&Re[0]!==2)){le=0;continue}if(Re[0]===3&&(!pt||Re[1]>pt[0]&&Re[1]<pt[3])){le.label=Re[1];break}if(Re[0]===6&&le.label<pt[1]){le.label=pt[1],pt=Re;break}if(pt&&le.label<pt[2]){le.label=pt[2],le.ops.push(Re);break}pt[2]&&le.ops.pop(),le.trys.pop();continue}Re=Ot.call(Lt,le)}catch(Oe){Re=[6,Oe],ft=0}finally{mt=pt=0}if(5&Re[0])throw Re[1];return{value:Re[0]?Re[1]:void 0,done:!0}}([ae,me])}}}function ee(){for(var Lt=0,Ot=0,mt=arguments.length;Ot<mt;Ot++)Lt+=arguments[Ot].length;var ft=Array(Lt),pt=0;for(Ot=0;Ot<mt;Ot++)for(var At=arguments[Ot],le=0,we=At.length;le<we;le++,pt++)ft[pt]=At[le];return ft}var Zt=function(){function Lt(){}return Lt.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Lt.setAttributes=function(Ot,mt){for(var ft=0,pt=mt;ft<pt.length;ft++){var At=pt[ft],le=At[0],we=At[1];Ot.setAttribute(le,we)}},Lt.createRect=function(Ot,mt,ft){var pt=document.createElementNS("http://www.w3.org/2000/svg","rect");return pt.setAttribute("width",Ot.toString()),pt.setAttribute("height",mt.toString()),ft&&Lt.setAttributes(pt,ft),pt},Lt.createLine=function(Ot,mt,ft,pt,At){var le=document.createElementNS("http://www.w3.org/2000/svg","line");return le.setAttribute("x1",Ot.toString()),le.setAttribute("y1",mt.toString()),le.setAttribute("x2",ft.toString()),le.setAttribute("y2",pt.toString()),At&&Lt.setAttributes(le,At),le},Lt.createPolygon=function(Ot,mt){var ft=document.createElementNS("http://www.w3.org/2000/svg","polygon");return ft.setAttribute("points",Ot),mt&&Lt.setAttributes(ft,mt),ft},Lt.createCircle=function(Ot,mt){var ft=document.createElementNS("http://www.w3.org/2000/svg","circle");return ft.setAttribute("cx",(Ot/2).toString()),ft.setAttribute("cy",(Ot/2).toString()),ft.setAttribute("r",Ot.toString()),mt&&Lt.setAttributes(ft,mt),ft},Lt.createEllipse=function(Ot,mt,ft){var pt=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return pt.setAttribute("cx",(Ot/2).toString()),pt.setAttribute("cy",(mt/2).toString()),pt.setAttribute("rx",(Ot/2).toString()),pt.setAttribute("ry",(mt/2).toString()),ft&&Lt.setAttributes(pt,ft),pt},Lt.createGroup=function(Ot){var mt=document.createElementNS("http://www.w3.org/2000/svg","g");return Ot&&Lt.setAttributes(mt,Ot),mt},Lt.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Lt.createMarker=function(Ot,mt,ft,pt,At,le,we){var ae=document.createElementNS("http://www.w3.org/2000/svg","marker");return Lt.setAttributes(ae,[["id",Ot],["orient",mt],["markerWidth",ft.toString()],["markerHeight",pt.toString()],["refX",At.toString()],["refY",le.toString()]]),ae.appendChild(we),ae},Lt.createText=function(Ot){var mt=document.createElementNS("http://www.w3.org/2000/svg","text");return mt.setAttribute("x","0"),mt.setAttribute("y","0"),Ot&&Lt.setAttributes(mt,Ot),mt},Lt.createTSpan=function(Ot,mt){var ft=document.createElementNS("http://www.w3.org/2000/svg","tspan");return ft.textContent=Ot,mt&&Lt.setAttributes(ft,mt),ft},Lt.createImage=function(Ot){var mt=document.createElementNS("http://www.w3.org/2000/svg","image");return Ot&&Lt.setAttributes(mt,Ot),mt},Lt.createPoint=function(Ot,mt){var ft=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return ft.x=Ot,ft.y=mt,ft},Lt.createPath=function(Ot,mt){var ft=document.createElementNS("http://www.w3.org/2000/svg","path");return ft.setAttribute("d",Ot),mt&&Lt.setAttributes(ft,mt),ft},Lt}(),Nt=function(){function Lt(){}return Lt.addKey=function(Ot){Lt.key=Ot},Object.defineProperty(Lt,"isLicensed",{get:function(){return!!Lt.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Lt.key)},enumerable:!1,configurable:!0}),Lt}(),jt=function(){function Lt(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Lt.prototype.rasterize=function(Ot,mt,ft){var pt=this;return new Promise(function(At){var le=ft!==void 0?ft:document.createElement("canvas");Ot===null&&(pt.markersOnly=!0,pt.naturalSize=!1);var we=document.createElementNS("http://www.w3.org/2000/svg","svg");we.setAttribute("xmlns","http://www.w3.org/2000/svg"),we.setAttribute("width",mt.width.baseVal.valueAsString),we.setAttribute("height",mt.height.baseVal.valueAsString),we.setAttribute("viewBox","0 0 "+mt.viewBox.baseVal.width.toString()+" "+mt.viewBox.baseVal.height.toString()),we.innerHTML=mt.innerHTML,pt.naturalSize===!0?(we.width.baseVal.value=Ot.naturalWidth,we.height.baseVal.value=Ot.naturalHeight):pt.width!==void 0&&pt.height!==void 0&&(we.width.baseVal.value=pt.width,we.height.baseVal.value=pt.height),le.width=we.width.baseVal.value,le.height=we.height.baseVal.value;var ae=we.outerHTML,me=le.getContext("2d");pt.markersOnly!==!0&&me.drawImage(Ot,0,0,le.width,le.height);var Re=window.URL,Oe=new Image(le.width,le.height);Oe.setAttribute("crossOrigin","anonymous");var ke=new Blob([ae],{type:"image/svg+xml"}),rn=Re.createObjectURL(ke);Oe.onload=function(){me.drawImage(Oe,0,0),Re.revokeObjectURL(rn);var Vn=le.toDataURL(pt.imageType,pt.imageQuality);At(Vn)},Oe.src=rn})},Lt}(),qt=function(){},Pt=function(){function Lt(Ot){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Ot+"_"}return Object.defineProperty(Lt.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.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(Lt.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Lt.prototype.addClass=function(Ot){return this.styleSheet===void 0&&this.addStyleSheet(),Ot.name=""+this.classNamePrefix+Ot.localName,this.classes.push(Ot),this.styleSheet.sheet.insertRule("."+Ot.name+" {"+Ot.style+"}",this.styleSheet.sheet.cssRules.length),Ot},Lt.prototype.addRule=function(Ot){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(Ot),this.styleSheet.sheet.insertRule(Ot.selector+" {"+Ot.style+"}",this.styleSheet.sheet.cssRules.length)},Lt.prototype.addStyleSheet=function(){var Ot;this.styleSheet=document.createElement("style"),((Ot=this.styleSheetRoot)!==null&&Ot!==void 0?Ot:document.head).appendChild(this.styleSheet),this.addRule(new re("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new re("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new re("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new Kt("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new Kt("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},Lt.prototype.removeStyleSheet=function(){var Ot;this.styleSheet&&(((Ot=this.styleSheetRoot)!==null&&Ot!==void 0?Ot:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Lt}(),re=function(Lt,Ot){this.selector=Lt,this.style=Ot},Kt=function(Lt,Ot){this.localName=Lt,this.style=Ot},Yt=function(){function Lt(Ot,mt,ft,pt,At){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Ot,this.displayMode=mt,this.markerItems=ft,this.uiStyleSettings=pt,this.styles=At,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Lt.prototype.show=function(Ot){var mt=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Ot,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var ft=document.createElement("div");ft.className=this.toolbarBlockStyleClass.name,ft.style.whiteSpace="nowrap",this.uiContainer.appendChild(ft),this.addActionButton(ft,'<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(ft,'<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(ft,'<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(ft,'<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(ft,'<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(ft,'<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(ft,'<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(ft,'<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(At){var le=document.createElement("div");le.className=""+mt.toolbarButtonStyleClass.name,le.setAttribute("data-type-name",At.typeName),le.innerHTML=At.icon,le.addEventListener("click",function(){mt.markerToolbarButtonClicked(le,At)}),mt.buttons.push(le),mt.markerButtons.push(le)}),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 pt=document.createElement("div");pt.className=this.toolbarBlockStyleClass.name,pt.style.whiteSpace="nowrap",pt.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(pt),this.addActionButton(pt,'<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(pt,'<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()},Lt.prototype.addButtonClickListener=function(Ot){this.buttonClickListeners.push(Ot)},Lt.prototype.removeButtonClickListener=function(Ot){this.buttonClickListeners.indexOf(Ot)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Ot),1)},Lt.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Lt.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Ot=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var mt=0;mt<this.markerButtons.length;mt++)mt<Ot||mt===Ot&&this.markerButtons.length-1===Ot?this.markerButtonBlock.appendChild(this.markerButtons[mt]):(mt===Ot&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[mt]))}},Lt.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")},Lt.prototype.resetButtonStyles=function(){var Ot=this;this.buttons.forEach(function(mt){mt.className=mt.className.replace(Ot.uiStyleSettings.toolbarButtonStyleColorsClassName?Ot.uiStyleSettings.toolbarButtonStyleColorsClassName:Ot.toolbarButtonStyleColorsClass.name,"").trim(),mt.className=mt.className.replace(Ot.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Ot.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Ot.toolbarActiveButtonStyleColorsClass.name,"").trim(),mt.className+=" "+(Ot.uiStyleSettings.toolbarButtonStyleColorsClassName?Ot.uiStyleSettings.toolbarButtonStyleColorsClassName:Ot.toolbarButtonStyleColorsClass.name)})},Lt.prototype.addActionButton=function(Ot,mt,ft){var pt=this,At=document.createElement("div");switch(At.className=""+this.toolbarButtonStyleClass.name,At.innerHTML=mt,At.setAttribute("data-action",ft),At.addEventListener("click",function(){pt.actionToolbarButtonClicked(At,ft)}),ft){case"select":At.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":At.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":At.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":At.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":At.style.fill=this.uiStyleSettings.closeButtonColor}Ot.appendChild(At),this.buttons.push(At)},Lt.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Kt("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 Kt("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Kt("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Kt("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 Kt("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var Ot=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Kt("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*Ot)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*Ot)+`px;
|
|
|
padding: `+Ot+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Kt("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Kt("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new re("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new re("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},Lt.prototype.markerToolbarButtonClicked=function(Ot,mt){this.setActiveButton(Ot),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ft){return ft("marker",mt)}),this.markerButtonOverflowBlock.style.display="none"},Lt.prototype.actionToolbarButtonClicked=function(Ot,mt){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ft){return ft("action",mt)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Lt.prototype.setActiveButton=function(Ot){this.resetButtonStyles(),Ot.className=Ot.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Ot.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Lt.prototype.setActiveMarkerButton=function(Ot){var mt=this.markerButtons.find(function(ft){return ft.getAttribute("data-type-name")===Ot});mt&&this.setActiveButton(mt)},Lt.prototype.setCurrentMarker=function(Ot){var mt=this;this.currentMarker=Ot,this.buttons.filter(function(ft){return/delete|notes/.test(ft.getAttribute("data-action"))}).forEach(function(ft){mt.currentMarker===void 0?(ft.style.fillOpacity="0.4",ft.style.pointerEvents="none"):(ft.style.fillOpacity="1",ft.style.pointerEvents="all")})},Lt}(),Ct=function(){function Lt(Ot,mt,ft,pt){this.panels=[],this.panelButtons=[],this.markerjsContainer=Ot,this.displayMode=mt,this.uiStyleSettings=ft,this.styles=pt,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Lt.prototype.addStyles=function(){var Ot;this.toolboxStyleClass=this.styles.addClass(new Kt("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 Kt("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var mt=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Kt("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Kt("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Kt("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 Kt("toolbox-panel-row_colors",`
|
|
|
background-color: `+((Ot=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Ot!==void 0?Ot:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Kt("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*mt)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*mt)+`px;
|
|
|
padding: `+mt+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Kt("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Kt("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new re("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new re("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},Lt.prototype.show=function(Ot){var mt;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Ot,this.uiContainer.className=this.toolboxStyleClass.name+" "+((mt=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&mt!==void 0?mt:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Lt.prototype.setPanelButtons=function(Ot){var mt,ft,pt=this;this.panels=Ot,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((mt=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&mt!==void 0?mt:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((ft=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&ft!==void 0?ft:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(At){var le;At.uiStyleSettings=pt.uiStyleSettings;var we=document.createElement("div");we.className=pt.toolboxButtonStyleClass.name+" "+((le=pt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&le!==void 0?le:pt.toolboxButtonStyleColorsClass.name),we.innerHTML=At.icon,we.title=At.title,we.addEventListener("click",function(){pt.panelButtonClick(At)}),pt.panelButtons.push(we),pt.buttonRow.appendChild(we)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Lt.prototype.panelButtonClick=function(Ot){var mt=this,ft=-1;if(Ot!==this.activePanel){ft=this.panels.indexOf(Ot),this.panelRow.innerHTML="";var pt=Ot.getUi();pt.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(pt),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=Ot}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){mt.displayMode==="inline"?mt.panelRow.style.display="none":mt.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(At,le){var we,ae;At.className=mt.toolboxButtonStyleClass.name+" "+(le===ft?""+((we=mt.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&we!==void 0?we:mt.toolboxActiveButtonStyleColorsClass.name):""+((ae=mt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ae!==void 0?ae:mt.toolboxButtonStyleColorsClass.name))})},Lt}(),et=function(Lt,Ot){this.title=Lt,this.icon=Ot},tt=function(Lt){function Ot(mt,ft,pt,At){var le=Lt.call(this,mt,At||'<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 le.colors=[],le.addTransparent=!1,le.colorBoxes=[],le.colors=ft,le.currentColor=pt,le.setCurrentColor=le.setCurrentColor.bind(le),le.getColorBox=le.getColorBox.bind(le),le}return ce(Ot,Lt),Ot.prototype.getUi=function(){var mt=this,ft=document.createElement("div");return ft.style.overflow="hidden",ft.style.whiteSpace="nowrap",this.colors.forEach(function(pt){var At=mt.getColorBox(pt);ft.appendChild(At),mt.colorBoxes.push(At)}),ft},Ot.prototype.getColorBox=function(mt){var ft=this,pt=this.uiStyleSettings.toolbarHeight/4,At=this.uiStyleSettings.toolbarHeight-pt,le=document.createElement("div");le.style.display="inline-block",le.style.boxSizing="content-box",le.style.width=At-2+"px",le.style.height=At-2+"px",le.style.padding="1px",le.style.marginRight="2px",le.style.marginBottom="2px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderRadius=(At+2)/2+"px",le.style.borderColor=mt===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ft.setCurrentColor(mt,le)});var we=document.createElement("div");return we.style.display="inline-block",we.style.width=At-2+"px",we.style.height=At-2+"px",we.style.backgroundColor=mt,we.style.borderRadius=At/2+"px",mt==="transparent"&&(we.style.fill=this.uiStyleSettings.toolboxAccentColor,we.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>`),le.appendChild(we),le},Ot.prototype.setCurrentColor=function(mt,ft){var pt=this;this.currentColor=mt,this.colorBoxes.forEach(function(At){At.style.borderColor=At===ft?pt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(mt)},Ot}(et),lt=function(){function Lt(Ot,mt,ft){this._state="new",this._isSelected=!1,this._container=Ot,this._overlayContainer=mt,this.globalSettings=ft,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Lt.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Lt.prototype.ownsTarget=function(Ot){return!1},Object.defineProperty(Lt.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Lt.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Lt.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Lt.prototype.pointerDown=function(Ot,mt){},Lt.prototype.dblClick=function(Ot,mt){},Lt.prototype.manipulate=function(Ot){},Lt.prototype.pointerUp=function(Ot){this.stateChanged()},Lt.prototype.dispose=function(){},Lt.prototype.addMarkerVisualToContainer=function(Ot){this.container.childNodes.length>0?this.container.insertBefore(Ot,this.container.childNodes[0]):this.container.appendChild(Ot)},Lt.prototype.getState=function(){return{typeName:Lt.typeName,state:this.state,notes:this.notes}},Lt.prototype.restoreState=function(Ot){this._state=Ot.state,this.notes=Ot.notes},Lt.prototype.scale=function(Ot,mt){},Lt.prototype.colorChanged=function(Ot){this.onColorChanged&&this.onColorChanged(Ot),this.stateChanged()},Lt.prototype.fillColorChanged=function(Ot){this.onFillColorChanged&&this.onFillColorChanged(Ot),this.stateChanged()},Lt.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Ot=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Ot.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Ot)&&this.onStateChanged(this)}},Lt.typeName="MarkerBase",Lt}(),rt=function(){function Lt(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Lt.prototype.findGripByVisual=function(Ot){return this.topLeft.ownsTarget(Ot)?this.topLeft:this.topCenter.ownsTarget(Ot)?this.topCenter:this.topRight.ownsTarget(Ot)?this.topRight:this.centerLeft.ownsTarget(Ot)?this.centerLeft:this.centerRight.ownsTarget(Ot)?this.centerRight:this.bottomLeft.ownsTarget(Ot)?this.bottomLeft:this.bottomCenter.ownsTarget(Ot)?this.bottomCenter:this.bottomRight.ownsTarget(Ot)?this.bottomRight:void 0},Lt}(),ht=function(){function Lt(){this.GRIP_SIZE=10,this.visual=Zt.createGroup(),this.visual.appendChild(Zt.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Zt.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Lt.prototype.ownsTarget=function(Ot){return Ot===this.visual||Ot===this.visual.childNodes[0]||Ot===this.visual.childNodes[1]},Lt}(),dt=function(){function Lt(){}return Lt.toITransformMatrix=function(Ot){return{a:Ot.a,b:Ot.b,c:Ot.c,d:Ot.d,e:Ot.e,f:Ot.f}},Lt.toSVGMatrix=function(Ot,mt){return Ot.a=mt.a,Ot.b=mt.b,Ot.c=mt.c,Ot.d=mt.d,Ot.e=mt.e,Ot.f=mt.f,Ot},Lt}(),St=function(Lt){function Ot(mt,ft,pt){var At=Lt.call(this,mt,ft,pt)||this;return At.left=0,At.top=0,At.width=0,At.height=0,At.defaultSize={x:50,y:20},At.offsetX=0,At.offsetY=0,At.rotationAngle=0,At.CB_DISTANCE=10,At._suppressMarkerCreateEvent=!1,At.container.transform.baseVal.appendItem(Zt.createTransform()),At.setupControlBox(),At}return ce(Ot,Lt),Object.defineProperty(Ot.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"visual",{get:function(){return this._visual},set:function(mt){this._visual=mt;var ft=Zt.createTransform();this._visual.transform.baseVal.appendItem(ft)},enumerable:!1,configurable:!0}),Ot.prototype.ownsTarget=function(mt){return!!Lt.prototype.ownsTarget.call(this,mt)||!!(this.controlGrips.findGripByVisual(mt)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(mt))},Ot.prototype.pointerDown=function(mt,ft){Lt.prototype.pointerDown.call(this,mt,ft),this.state==="new"&&(this.left=mt.x,this.top=mt.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var pt=this.unrotatePoint(mt);if(this.manipulationStartX=pt.x,this.manipulationStartY=pt.y,this.offsetX=pt.x-this.left,this.offsetY=pt.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(ft),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ft)){this.activeGrip=this.rotatorGrip;var At=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=At.x-this.width/2,this.top=At.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var le=this.container.transform.baseVal.getItem(0);le.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(le,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Ot.prototype.pointerUp=function(mt){var ft=this.state;Lt.prototype.pointerUp.call(this,mt),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(mt),this._state="select",ft==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Ot.prototype.moveVisual=function(mt){this.visual.style.transform="translate("+mt.x+"px, "+mt.y+"px)"},Ot.prototype.manipulate=function(mt){var ft=this.unrotatePoint(mt);this.state==="creating"?this.resize(mt):this.state==="move"?(this.left=this.manipulationStartLeft+(ft.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(ft.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(ft):this.state==="rotate"&&this.rotate(mt)},Ot.prototype.resize=function(mt){var ft=this.manipulationStartLeft,pt=this.manipulationStartWidth,At=this.manipulationStartTop,le=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:ft=this.manipulationStartLeft+mt.x-this.manipulationStartX,pt=this.manipulationStartWidth+this.manipulationStartLeft-ft;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:pt=this.manipulationStartWidth+mt.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:At=this.manipulationStartTop+mt.y-this.manipulationStartY,le=this.manipulationStartHeight+this.manipulationStartTop-At;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:le=this.manipulationStartHeight+mt.y-this.manipulationStartY}pt>=0?(this.left=ft,this.width=pt):(this.left=ft+pt,this.width=-pt),le>=0?(this.top=At,this.height=le):(this.top=At+le,this.height=-le),this.setSize()},Ot.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Ot.prototype.rotate=function(mt){if(Math.abs(mt.x-this.centerX)>.1){var ft=Math.sign(mt.x-this.centerX);this.rotationAngle=180*Math.atan((mt.y-this.centerY)/(mt.x-this.centerX))/Math.PI+90*ft,this.applyRotation()}},Ot.prototype.applyRotation=function(){var mt=this.container.transform.baseVal.getItem(0);mt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(mt,0)},Ot.prototype.rotatePoint=function(mt){if(this.rotationAngle===0)return mt;var ft=this.container.getCTM(),pt=Zt.createPoint(mt.x,mt.y);return{x:(pt=pt.matrixTransform(ft)).x,y:pt.y}},Ot.prototype.unrotatePoint=function(mt){if(this.rotationAngle===0)return mt;var ft=this.container.getCTM();ft=ft.inverse();var pt=Zt.createPoint(mt.x,mt.y);return{x:(pt=pt.matrixTransform(ft)).x,y:pt.y}},Ot.prototype.select=function(){Lt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Ot.prototype.deselect=function(){Lt.prototype.deselect.call(this),this.controlBox.style.display="none"},Ot.prototype.setupControlBox=function(){this.controlBox=Zt.createGroup();var mt=Zt.createTransform();mt.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(mt),this.container.appendChild(this.controlBox),this.controlRect=Zt.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=Zt.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 rt,this.addControlGrips(),this.controlBox.style.display="none"},Ot.prototype.adjustControlBox=function(){var mt=this.controlBox.transform.baseVal.getItem(0);mt.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(mt,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()},Ot.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()},Ot.prototype.createGrip=function(){var mt=new ht;return mt.visual.transform.baseVal.appendItem(Zt.createTransform()),this.controlBox.appendChild(mt.visual),mt},Ot.prototype.positionGrips=function(){var mt=this.controlGrips.topLeft.GRIP_SIZE,ft=-mt/2,pt=ft,At=(this.width+this.CB_DISTANCE)/2-mt/2,le=(this.height+this.CB_DISTANCE)/2-mt/2,we=this.height+this.CB_DISTANCE-mt/2,ae=this.width+this.CB_DISTANCE-mt/2;this.positionGrip(this.controlGrips.topLeft.visual,ft,pt),this.positionGrip(this.controlGrips.topCenter.visual,At,pt),this.positionGrip(this.controlGrips.topRight.visual,ae,pt),this.positionGrip(this.controlGrips.centerLeft.visual,ft,le),this.positionGrip(this.controlGrips.centerRight.visual,ae,le),this.positionGrip(this.controlGrips.bottomLeft.visual,ft,we),this.positionGrip(this.controlGrips.bottomCenter.visual,At,we),this.positionGrip(this.controlGrips.bottomRight.visual,ae,we),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,At,pt-3*this.CB_DISTANCE)},Ot.prototype.positionGrip=function(mt,ft,pt){var At=mt.transform.baseVal.getItem(0);At.setTranslate(ft,pt),mt.transform.baseVal.replaceItem(At,0)},Ot.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Ot.prototype.showControlBox=function(){this.controlBox.style.display=""},Ot.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:dt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:dt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Lt.prototype.getState.call(this))},Ot.prototype.restoreState=function(mt){Lt.prototype.restoreState.call(this,mt);var ft=mt;this.left=ft.left,this.top=ft.top,this.width=ft.width,this.height=ft.height,this.rotationAngle=ft.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(dt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ft.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(dt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ft.containerTransformMatrix))},Ot.prototype.scale=function(mt,ft){Lt.prototype.scale.call(this,mt,ft);var pt=this.rotatePoint({x:this.left,y:this.top}),At=this.unrotatePoint({x:pt.x*mt,y:pt.y*ft});this.left=At.x,this.top=At.y,this.width=this.width*mt,this.height=this.height*ft,this.adjustControlBox()},Ot}(lt),It=function(Lt){function Ot(mt,ft,pt){var At=Lt.call(this,mt,ft,pt)||this;return At.fillColor="transparent",At.strokeColor="transparent",At.strokeWidth=0,At.strokeDasharray="",At.opacity=1,At.setStrokeColor=At.setStrokeColor.bind(At),At.setFillColor=At.setFillColor.bind(At),At.setStrokeWidth=At.setStrokeWidth.bind(At),At.setStrokeDasharray=At.setStrokeDasharray.bind(At),At.createVisual=At.createVisual.bind(At),At}return ce(Ot,Lt),Ot.prototype.ownsTarget=function(mt){return!(!Lt.prototype.ownsTarget.call(this,mt)&&mt!==this.visual)},Ot.prototype.createVisual=function(){this.visual=Zt.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)},Ot.prototype.pointerDown=function(mt,ft){Lt.prototype.pointerDown.call(this,mt,ft),this.state==="new"&&(this.createVisual(),this.moveVisual(mt),this._state="creating")},Ot.prototype.manipulate=function(mt){Lt.prototype.manipulate.call(this,mt)},Ot.prototype.resize=function(mt){Lt.prototype.resize.call(this,mt),this.setSize()},Ot.prototype.setSize=function(){Lt.prototype.setSize.call(this),Zt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Ot.prototype.pointerUp=function(mt){Lt.prototype.pointerUp.call(this,mt),this.setSize()},Ot.prototype.setStrokeColor=function(mt){this.strokeColor=mt,this.visual&&Zt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(mt),this.stateChanged()},Ot.prototype.setFillColor=function(mt){this.fillColor=mt,this.visual&&Zt.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Ot.prototype.setStrokeWidth=function(mt){this.strokeWidth=mt,this.visual&&Zt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ot.prototype.setStrokeDasharray=function(mt){this.strokeDasharray=mt,this.visual&&Zt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Ot.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Lt.prototype.getState.call(this))},Ot.prototype.restoreState=function(mt){var ft=mt;this.fillColor=ft.fillColor,this.strokeColor=ft.strokeColor,this.strokeWidth=ft.strokeWidth,this.strokeDasharray=ft.strokeDasharray,this.opacity=ft.opacity,this.createVisual(),Lt.prototype.restoreState.call(this,mt),this.setSize()},Ot.prototype.scale=function(mt,ft){Lt.prototype.scale.call(this,mt,ft),this.setSize()},Ot.title="Rectangle marker",Ot}(St),_t=function(Lt){function Ot(mt,ft,pt,At){var le=Lt.call(this,mt,At||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return le.widths=[],le.widthBoxes=[],le.widths=ft,le.currentWidth=pt,le.setCurrentWidth=le.setCurrentWidth.bind(le),le}return ce(Ot,Lt),Ot.prototype.getUi=function(){var mt=this,ft=document.createElement("div");return ft.style.display="flex",ft.style.overflow="hidden",ft.style.flexGrow="2",this.widths.forEach(function(pt){var At=document.createElement("div");At.style.display="flex",At.style.flexGrow="2",At.style.alignItems="center",At.style.justifyContent="space-between",At.style.padding="5px",At.style.borderWidth="2px",At.style.borderStyle="solid",At.style.borderColor=pt===mt.currentWidth?mt.uiStyleSettings.toolboxAccentColor:"transparent",At.addEventListener("click",function(){mt.setCurrentWidth(pt,At)}),ft.appendChild(At);var le=document.createElement("div");le.innerText=pt.toString(),le.style.marginRight="5px",At.appendChild(le);var we=document.createElement("div");we.style.minHeight="20px",we.style.flexGrow="2",we.style.display="flex",we.style.alignItems="center";var ae=document.createElement("hr");ae.style.minWidth="20px",ae.style.border="0px",ae.style.borderTop=pt+"px solid "+mt.uiStyleSettings.toolboxColor,ae.style.flexGrow="2",we.appendChild(ae),At.appendChild(we),mt.widthBoxes.push(At)}),ft},Ot.prototype.setCurrentWidth=function(mt,ft){var pt=this;this.currentWidth=mt,this.widthBoxes.forEach(function(At){At.style.borderColor=At===ft?pt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Ot}(et),Gt=function(Lt){function Ot(mt,ft,pt,At){var le=Lt.call(this,mt,At||'<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 le.styles=[],le.styleBoxes=[],le.styles=ft,le.currentStyle=pt,le.setCurrentStyle=le.setCurrentStyle.bind(le),le}return ce(Ot,Lt),Ot.prototype.getUi=function(){var mt=this,ft=document.createElement("div");return ft.style.display="flex",ft.style.overflow="hidden",ft.style.flexGrow="2",this.styles.forEach(function(pt){var At=document.createElement("div");At.style.display="flex",At.style.alignItems="center",At.style.justifyContent="space-between",At.style.padding="5px",At.style.borderWidth="2px",At.style.borderStyle="solid",At.style.overflow="hidden",At.style.maxWidth=100/mt.styles.length-5+"%",At.style.borderColor=pt===mt.currentStyle?mt.uiStyleSettings.toolboxAccentColor:"transparent",At.addEventListener("click",function(){mt.setCurrentStyle(pt,At)}),ft.appendChild(At);var le=document.createElement("div");le.style.minHeight="20px",le.style.flexGrow="2",le.style.overflow="hidden";var we=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+mt.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(pt!==""?'stroke-dasharray="'+pt+'"':"")+` />
|
|
|
</svg>`;le.innerHTML=we,At.appendChild(le),mt.styleBoxes.push(At)}),ft},Ot.prototype.setCurrentStyle=function(mt,ft){var pt=this;this.currentStyle=mt,this.styleBoxes.forEach(function(At){At.style.borderColor=At===ft?pt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Ot}(et),oe=function(Lt){function Ot(mt,ft,pt){var At=Lt.call(this,mt,ft,pt)||this;return At.strokeColor=pt.defaultColor,At.strokeWidth=pt.defaultStrokeWidth,At.strokeDasharray=pt.defaultStrokeDasharray,At.strokePanel=new tt("Line color",pt.defaultColorSet,pt.defaultColor),At.strokePanel.onColorChanged=At.setStrokeColor,At.strokeWidthPanel=new _t("Line width",pt.defaultStrokeWidths,pt.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new Gt("Line style",pt.defaultStrokeDasharrays,pt.defaultStrokeDasharray),At.strokeStylePanel.onStyleChanged=At.setStrokeDasharray,At}return ce(Ot,Lt),Object.defineProperty(Ot.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ot.prototype.getState=function(){var mt=Lt.prototype.getState.call(this);return mt.typeName=Ot.typeName,mt},Ot.typeName="FrameMarker",Ot.title="Frame marker",Ot.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Ot}(It),ue=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"},de=function(Lt){function Ot(mt,ft,pt){var At=Lt.call(this,mt,ft,pt)||this;return At.x1=0,At.y1=0,At.x2=0,At.y2=0,At.defaultLength=50,At.manipulationStartX=0,At.manipulationStartY=0,At.manipulationStartX1=0,At.manipulationStartY1=0,At.manipulationStartX2=0,At.manipulationStartY2=0,At.setupControlBox(),At}return ce(Ot,Lt),Ot.prototype.ownsTarget=function(mt){return!!Lt.prototype.ownsTarget.call(this,mt)||!(!this.grip1.ownsTarget(mt)&&!this.grip2.ownsTarget(mt))},Ot.prototype.pointerDown=function(mt,ft){Lt.prototype.pointerDown.call(this,mt,ft),this.manipulationStartX=mt.x,this.manipulationStartY=mt.y,this.state==="new"&&(this.x1=mt.x,this.y1=mt.y,this.x2=mt.x,this.y2=mt.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(ft)?this.activeGrip=this.grip1:this.grip2.ownsTarget(ft)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Ot.prototype.pointerUp=function(mt){var ft=this.state;Lt.prototype.pointerUp.call(this,mt),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(mt),this._state="select",ft==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Ot.prototype.adjustVisual=function(){},Ot.prototype.manipulate=function(mt){this.state==="creating"?this.resize(mt):this.state==="move"?(this.x1=this.manipulationStartX1+mt.x-this.manipulationStartX,this.y1=this.manipulationStartY1+mt.y-this.manipulationStartY,this.x2=this.manipulationStartX2+mt.x-this.manipulationStartX,this.y2=this.manipulationStartY2+mt.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(mt)},Ot.prototype.resize=function(mt){switch(this.activeGrip){case this.grip1:this.x1=mt.x,this.y1=mt.y;break;case this.grip2:case void 0:this.x2=mt.x,this.y2=mt.y}this.adjustVisual(),this.adjustControlBox()},Ot.prototype.select=function(){Lt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Ot.prototype.deselect=function(){Lt.prototype.deselect.call(this),this.controlBox.style.display="none"},Ot.prototype.setupControlBox=function(){this.controlBox=Zt.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Ot.prototype.adjustControlBox=function(){this.positionGrips()},Ot.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Ot.prototype.createGrip=function(){var mt=new ht;return mt.visual.transform.baseVal.appendItem(Zt.createTransform()),this.controlBox.appendChild(mt.visual),mt},Ot.prototype.positionGrips=function(){var mt=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-mt/2,this.y1-mt/2),this.positionGrip(this.grip2.visual,this.x2-mt/2,this.y2-mt/2)},Ot.prototype.positionGrip=function(mt,ft,pt){var At=mt.transform.baseVal.getItem(0);At.setTranslate(ft,pt),mt.transform.baseVal.replaceItem(At,0)},Ot.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Lt.prototype.getState.call(this))},Ot.prototype.restoreState=function(mt){Lt.prototype.restoreState.call(this,mt);var ft=mt;this.x1=ft.x1,this.y1=ft.y1,this.x2=ft.x2,this.y2=ft.y2},Ot.prototype.scale=function(mt,ft){Lt.prototype.scale.call(this,mt,ft),this.x1=this.x1*mt,this.y1=this.y1*ft,this.x2=this.x2*mt,this.y2=this.y2*ft,this.adjustVisual(),this.adjustControlBox()},Ot}(lt),be=function(Lt){function Ot(mt,ft,pt){var At=Lt.call(this,mt,ft,pt)||this;return At.strokeColor="transparent",At.strokeWidth=0,At.strokeDasharray="",At.setStrokeColor=At.setStrokeColor.bind(At),At.setStrokeWidth=At.setStrokeWidth.bind(At),At.setStrokeDasharray=At.setStrokeDasharray.bind(At),At.strokeColor=pt.defaultColor,At.strokeWidth=pt.defaultStrokeWidth,At.strokeDasharray=pt.defaultStrokeDasharray,At.strokePanel=new tt("Line color",pt.defaultColorSet,pt.defaultColor),At.strokePanel.onColorChanged=At.setStrokeColor,At.strokeWidthPanel=new _t("Line width",pt.defaultStrokeWidths,pt.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new Gt("Line style",pt.defaultStrokeDasharrays,pt.defaultStrokeDasharray),At.strokeStylePanel.onStyleChanged=At.setStrokeDasharray,At}return ce(Ot,Lt),Ot.prototype.ownsTarget=function(mt){return!(!Lt.prototype.ownsTarget.call(this,mt)&&mt!==this.visual&&mt!==this.selectorLine&&mt!==this.visibleLine)},Ot.prototype.createVisual=function(){this.visual=Zt.createGroup(),this.selectorLine=Zt.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Zt.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)},Ot.prototype.pointerDown=function(mt,ft){Lt.prototype.pointerDown.call(this,mt,ft),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Ot.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()),Zt.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Zt.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Zt.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Ot.prototype.setStrokeColor=function(mt){this.strokeColor=mt,this.adjustVisual(),this.colorChanged(mt)},Ot.prototype.setStrokeWidth=function(mt){this.strokeWidth=mt,this.adjustVisual()},Ot.prototype.setStrokeDasharray=function(mt){this.strokeDasharray=mt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Ot.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ot.prototype.getState=function(){var mt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Lt.prototype.getState.call(this));return mt.typeName=Ot.typeName,mt},Ot.prototype.restoreState=function(mt){Lt.prototype.restoreState.call(this,mt);var ft=mt;this.strokeColor=ft.strokeColor,this.strokeWidth=ft.strokeWidth,this.strokeDasharray=ft.strokeDasharray,this.createVisual(),this.adjustVisual()},Ot.typeName="LineMarker",Ot.title="Line marker",Ot.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',Ot}(de),Jt=function(Lt){function Ot(mt,ft,pt,At){var le=Lt.call(this,mt,At||'<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 le.fonts=[],le.fontBoxes=[],le.fonts=ft,le.currentFont=pt,le.setCurrentFont=le.setCurrentFont.bind(le),le}return ce(Ot,Lt),Ot.prototype.getUi=function(){var mt=this,ft=document.createElement("div");return ft.style.overflow="hidden",ft.style.flexGrow="2",this.fonts.forEach(function(pt){var At=document.createElement("div");At.style.display="inline-block",At.style.alignItems="center",At.style.justifyContent="space-between",At.style.padding="5px",At.style.borderWidth="2px",At.style.borderStyle="solid",At.style.overflow="hidden",At.style.maxWidth=100/mt.fonts.length-5+"%",At.style.borderColor=pt===mt.currentFont?mt.uiStyleSettings.toolboxAccentColor:"transparent",At.addEventListener("click",function(){mt.setCurrentFont(pt,At)}),ft.appendChild(At);var le=document.createElement("div");le.style.display="flex",le.style.minHeight="20px",le.style.flexGrow="2",le.style.fontFamily=pt,le.style.overflow="hidden";var we=document.createElement("div");we.style.whiteSpace="nowrap",we.style.overflow="hidden",we.style.textOverflow="ellipsis",we.innerHTML="The quick brown fox jumps over the lazy dog",le.appendChild(we),At.appendChild(le),mt.fontBoxes.push(At)}),ft},Ot.prototype.setCurrentFont=function(mt,ft){var pt=this;this.currentFont=mt,this.fontBoxes.forEach(function(At){At.style.borderColor=At===ft?pt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Ot}(et),Ke=function(Lt){function Ot(mt,ft,pt){var At=Lt.call(this,mt,ft,pt)||this;return At.color="transparent",At.padding=5,At.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",At.text=At.DEFAULT_TEXT,At.isMoved=!1,At.color=pt.defaultColor,At.fontFamily=pt.defaultFontFamily,At.defaultSize={x:100,y:30},At.setColor=At.setColor.bind(At),At.setFont=At.setFont.bind(At),At.renderText=At.renderText.bind(At),At.sizeText=At.sizeText.bind(At),At.textEditDivClicked=At.textEditDivClicked.bind(At),At.showTextEditor=At.showTextEditor.bind(At),At.setSize=At.setSize.bind(At),At.positionTextEditor=At.positionTextEditor.bind(At),At.colorPanel=new tt("Color",pt.defaultColorSet,pt.defaultColor),At.colorPanel.onColorChanged=At.setColor,At.fontFamilyPanel=new Jt("Font",pt.defaultFontFamilies,pt.defaultFontFamily),At.fontFamilyPanel.onFontChanged=At.setFont,At}return ce(Ot,Lt),Ot.prototype.ownsTarget=function(mt){if(Lt.prototype.ownsTarget.call(this,mt)||mt===this.visual||mt===this.textElement||mt===this.bgRectangle)return!0;var ft=!1;return this.textElement.childNodes.forEach(function(pt){pt===mt&&(ft=!0)}),ft},Ot.prototype.createVisual=function(){this.visual=Zt.createGroup(),this.bgRectangle=Zt.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Zt.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Zt.createTransform()),this.textElement.transform.baseVal.appendItem(Zt.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Ot.prototype.pointerDown=function(mt,ft){Lt.prototype.pointerDown.call(this,mt,ft),this.isMoved=!1,this.pointerDownPoint=mt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(mt),this._state="creating")},Ot.prototype.renderText=function(){var mt=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(ft){mt.textElement.appendChild(Zt.createTSpan(ft.trim()===""?" ":ft.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Ot.prototype.getTextScale=function(){var mt=this.textElement.getBBox(),ft=1;if(mt.width>0&&mt.height>0){var pt=(1*this.width-this.width*this.padding*2/100)/mt.width,At=(1*this.height-this.height*this.padding*2/100)/mt.height;ft=Math.min(pt,At)}return ft},Ot.prototype.getTextPosition=function(mt){var ft=this.textElement.getBBox(),pt=0,At=0;return ft.width>0&&ft.height>0&&(pt=(this.width-ft.width*mt)/2,At=this.height/2-ft.height*mt/2),{x:pt,y:At}},Ot.prototype.sizeText=function(){var mt=this.textElement.getBBox(),ft=this.getTextScale(),pt=this.getTextPosition(ft);pt.y-=mt.y*ft,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+pt.x+"px, "+pt.y+"px) scale("+ft+", "+ft+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(pt.x,pt.y),this.textElement.transform.baseVal.getItem(1).setScale(ft,ft))},Ot.prototype.manipulate=function(mt){Lt.prototype.manipulate.call(this,mt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(mt.x-this.pointerDownPoint.x)>5||Math.abs(mt.y-this.pointerDownPoint.y)>5)},Ot.prototype.resize=function(mt){Lt.prototype.resize.call(this,mt),this.isMoved=!0,this.setSize(),this.sizeText()},Ot.prototype.setSize=function(){Lt.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Zt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Zt.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Ot.prototype.pointerUp=function(mt){var ft=this.state;ft==="creating"&&(this._suppressMarkerCreateEvent=!0),Lt.prototype.pointerUp.call(this,mt),this.setSize(),(ft==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Ot.prototype.showTextEditor=function(){var mt=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(ft){ft.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var ft=Number.parseFloat(mt.textEditor.style.fontSize);mt.textEditor.clientWidth>=Number.parseInt(mt.textEditor.style.maxWidth)&&ft>.9;)ft-=.1,mt.textEditor.style.fontSize=Math.max(ft,.9)+"em"}),this.textEditor.addEventListener("keyup",function(ft){ft.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(ft){if(ft.clipboardData){var pt=ft.clipboardData.getData("text"),At=window.getSelection();if(!At.rangeCount)return!1;At.deleteFromDocument(),At.getRangeAt(0).insertNode(document.createTextNode(pt)),ft.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){mt.textEditDivClicked(mt.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Ot.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var mt=this.getTextScale(),ft=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),pt=this.textElement.getBBox(),At={x:pt.width*mt,y:pt.height*mt};ft.x-=At.x/2,ft.y-=At.y/2,this.textEditor.style.top=ft.y+"px",this.textEditor.style.left=ft.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-ft.x+"px",this.textEditor.style.fontSize=Math.max(16*mt,12)+"px",this.textElement.style.display="none"}},Ot.prototype.textEditDivClicked=function(mt){this.text=mt.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Ot.prototype.select=function(){Lt.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Ot.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Lt.prototype.deselect.call(this)},Ot.prototype.dblClick=function(mt,ft){Lt.prototype.dblClick.call(this,mt,ft),this.showTextEditor()},Ot.prototype.setColor=function(mt){this.textElement&&Zt.setAttributes(this.textElement,[["fill",mt]]),this.color=mt,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(mt)},Ot.prototype.setFont=function(mt){this.textElement&&Zt.setAttributes(this.textElement,[["font-family",mt]]),this.fontFamily=mt,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Ot.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Ot.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Ot.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Ot.prototype.getState=function(){var mt=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Lt.prototype.getState.call(this));return mt.typeName=Ot.typeName,mt},Ot.prototype.restoreState=function(mt){var ft=mt;this.color=ft.color,this.fontFamily=ft.fontFamily,this.padding=ft.padding,this.text=ft.text,this.createVisual(),Lt.prototype.restoreState.call(this,mt),this.setSize()},Ot.prototype.scale=function(mt,ft){Lt.prototype.scale.call(this,mt,ft),this.setSize(),this.sizeText(),this.positionTextEditor()},Ot.typeName="TextMarker",Ot.title="Text marker",Ot.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>',Ot}(St),Wt=function(Lt){function Ot(mt,ft,pt){var At=Lt.call(this,mt,ft,pt)||this;return At.color="transparent",At.lineWidth=3,At.drawing=!1,At.pixelRatio=1,At.color=pt.defaultColor,At.lineWidth=pt.defaultStrokeWidth,At.pixelRatio=pt.freehandPixelRatio,At.setColor=At.setColor.bind(At),At.addCanvas=At.addCanvas.bind(At),At.finishCreation=At.finishCreation.bind(At),At.setLineWidth=At.setLineWidth.bind(At),At.colorPanel=new tt("Color",pt.defaultColorSet,pt.defaultColor),At.colorPanel.onColorChanged=At.setColor,At.lineWidthPanel=new _t("Line width",pt.defaultStrokeWidths,pt.defaultStrokeWidth),At.lineWidthPanel.onWidthChanged=At.setLineWidth,At}return ce(Ot,Lt),Ot.prototype.ownsTarget=function(mt){return!(!Lt.prototype.ownsTarget.call(this,mt)&&mt!==this.visual&&mt!==this.drawingImage)},Ot.prototype.createVisual=function(){this.visual=Zt.createGroup(),this.drawingImage=Zt.createImage(),this.visual.appendChild(this.drawingImage);var mt=Zt.createTransform();this.visual.transform.baseVal.appendItem(mt),this.addMarkerVisualToContainer(this.visual)},Ot.prototype.pointerDown=function(mt,ft){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(mt.x,mt.y),this.drawing=!0):Lt.prototype.pointerDown.call(this,mt,ft)},Ot.prototype.manipulate=function(mt){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(mt.x,mt.y),this.canvasContext.stroke()):Lt.prototype.manipulate.call(this,mt)},Ot.prototype.resize=function(mt){Lt.prototype.resize.call(this,mt),Zt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Zt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Ot.prototype.pointerUp=function(mt){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Lt.prototype.pointerUp.call(this,mt)},Ot.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)},Ot.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Lt.prototype.select.call(this)},Ot.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Lt.prototype.deselect.call(this)},Ot.prototype.finishCreation=function(){for(var mt=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),ft=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],pt=ft[0],At=ft[1],le=ft[2],we=ft[3],ae=!1,me=0;me<this.canvasElement.height;me++)for(var Re=0;Re<this.canvasElement.width;Re++)mt.data[me*this.canvasElement.width*4+4*Re+3]>0&&(ae=!0,me<At&&(At=me),Re<pt&&(pt=Re),me>we&&(we=me),Re>le&&(le=Re));if(ae){this.left=pt/this.pixelRatio,this.top=At/this.pixelRatio,this.width=(le-pt)/this.pixelRatio,this.height=(we-At)/this.pixelRatio;var Oe=document.createElement("canvas");Oe.width=le-pt,Oe.height=we-At,Oe.getContext("2d").putImageData(this.canvasContext.getImageData(pt,At,le-pt,we-At),0,0),this.drawingImgUrl=Oe.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Ot.prototype.setDrawingImage=function(){Zt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Zt.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Ot.prototype.setColor=function(mt){this.color=mt,this.colorChanged(mt)},Ot.prototype.setLineWidth=function(mt){this.lineWidth=mt},Object.defineProperty(Ot.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Ot.prototype.getState=function(){var mt=Object.assign({drawingImgUrl:this.drawingImgUrl},Lt.prototype.getState.call(this));return mt.typeName=Ot.typeName,mt},Ot.prototype.restoreState=function(mt){this.createVisual(),Lt.prototype.restoreState.call(this,mt),this.drawingImgUrl=mt.drawingImgUrl,this.setDrawingImage()},Ot.prototype.scale=function(mt,ft){Lt.prototype.scale.call(this,mt,ft),this.setDrawingImage()},Ot.typeName="FreehandMarker",Ot.title="Freehand marker",Ot.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>',Ot}(St),Ge=function(Lt){function Ot(mt,ft,pt){var At=Lt.call(this,mt,pt||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return At.typeBoxes=[],At.currentType=ft,At.setCurrentType=At.setCurrentType.bind(At),At}return ce(Ot,Lt),Ot.prototype.getUi=function(){var mt=this,ft=document.createElement("div");ft.style.display="flex",ft.style.overflow="hidden",ft.style.flexGrow="2";for(var pt=function(we){var ae="both";switch(we){case 0:ae="both";break;case 1:ae="start";break;case 2:ae="end";break;case 3:ae="none"}var me=document.createElement("div");if(me.style.display="flex",me.style.flexGrow="2",me.style.alignItems="center",me.style.justifyContent="space-between",me.style.padding="5px",me.style.borderWidth="2px",me.style.borderStyle="solid",me.style.borderColor=ae===At.currentType?At.uiStyleSettings.toolboxAccentColor:"transparent",me.addEventListener("click",function(){mt.setCurrentType(ae,me)}),ft.appendChild(me),ae==="both"||ae==="start"){var Re=document.createElement("div");Re.style.display="flex",Re.style.alignItems="center",Re.style.minHeight="20px",Re.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="`+(At.uiStyleSettings!==void 0?At.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Re.style.marginLeft="5px",me.appendChild(Re)}var Oe=document.createElement("div");Oe.style.display="flex",Oe.style.alignItems="center",Oe.style.minHeight="20px",Oe.style.flexGrow="2";var ke=document.createElement("hr");if(ke.style.minWidth="20px",ke.style.border="0px",ke.style.borderTop="3px solid "+(At.uiStyleSettings!==void 0?At.uiStyleSettings.toolboxColor:"#eeeeee"),ke.style.flexGrow="2",Oe.appendChild(ke),me.appendChild(Oe),ae==="both"||ae==="end"){var rn=document.createElement("div");rn.style.display="flex",rn.style.alignItems="center",rn.style.minHeight="20px",rn.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="`+(At.uiStyleSettings!==void 0?At.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,rn.style.marginRight="5px",me.appendChild(rn)}At.typeBoxes.push(me)},At=this,le=0;le<4;le++)pt(le);return ft},Ot.prototype.setCurrentType=function(mt,ft){var pt=this;this.currentType=mt,this.typeBoxes.forEach(function(At){At.style.borderColor=At===ft?pt.uiStyleSettings!==void 0?pt.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Ot}(et),He=function(Lt){function Ot(mt,ft,pt){var At=Lt.call(this,mt,ft,pt)||this;return At.arrowType="end",At.arrowBaseHeight=10,At.arrowBaseWidth=10,At.getArrowPoints=At.getArrowPoints.bind(At),At.setArrowType=At.setArrowType.bind(At),At.arrowTypePanel=new Ge("Arrow type","end"),At.arrowTypePanel.onArrowTypeChanged=At.setArrowType,At}return ce(Ot,Lt),Ot.prototype.ownsTarget=function(mt){return!(!Lt.prototype.ownsTarget.call(this,mt)&&mt!==this.arrow1&&mt!==this.arrow2)},Ot.prototype.getArrowPoints=function(mt,ft){var pt=this.arrowBaseWidth+2*this.strokeWidth,At=this.arrowBaseHeight+2*this.strokeWidth;return mt-pt/2+","+(ft+At/2)+" "+mt+","+(ft-At/2)+" "+(mt+pt/2)+","+(ft+At/2)},Ot.prototype.createTips=function(){this.arrow1=Zt.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Zt.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Zt.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Zt.createTransform()),this.visual.appendChild(this.arrow2)},Ot.prototype.pointerDown=function(mt,ft){Lt.prototype.pointerDown.call(this,mt,ft),this.state==="creating"&&this.createTips()},Ot.prototype.adjustVisual=function(){if(Lt.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",Zt.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Zt.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var mt=0;Math.abs(this.x1-this.x2)>.1&&(mt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var ft=this.arrow1.transform.baseVal.getItem(0);ft.setRotate(mt,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ft,0);var pt=this.arrow2.transform.baseVal.getItem(0);pt.setRotate(mt+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(pt,0)}},Ot.prototype.setArrowType=function(mt){this.arrowType=mt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Ot.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Ot.prototype.getState=function(){var mt=Object.assign({arrowType:this.arrowType},Lt.prototype.getState.call(this));return mt.typeName=Ot.typeName,mt},Ot.prototype.restoreState=function(mt){Lt.prototype.restoreState.call(this,mt);var ft=mt;this.arrowType=ft.arrowType,this.createTips(),this.adjustVisual()},Ot.typeName="ArrowMarker",Ot.title="Arrow marker",Ot.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',Ot}(be),Me=function(Lt){function Ot(mt,ft,pt){var At=Lt.call(this,mt,ft,pt)||this;return At.fillColor=pt.defaultFillColor,At.strokeWidth=0,At.fillPanel=new tt("Color",pt.defaultColorSet,pt.defaultFillColor),At.fillPanel.onColorChanged=At.setFillColor,At}return ce(Ot,Lt),Object.defineProperty(Ot.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Ot.prototype.getState=function(){var mt=Lt.prototype.getState.call(this);return mt.typeName=Ot.typeName,mt},Ot.typeName="CoverMarker",Ot.title="Cover marker",Ot.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Ot}(It),We=function(Lt){function Ot(mt,ft,pt,At){var le=Lt.call(this,mt,At||'<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 le.opacities=[],le.opacityBoxes=[],le.opacities=ft,le.currentOpacity=pt,le.setCurrentOpacity=le.setCurrentOpacity.bind(le),le}return ce(Ot,Lt),Ot.prototype.getUi=function(){var mt=this,ft=document.createElement("div");return ft.style.display="flex",ft.style.overflow="hidden",ft.style.flexGrow="2",ft.style.justifyContent="space-between",this.opacities.forEach(function(pt){var At=document.createElement("div");At.style.display="flex",At.style.alignItems="center",At.style.justifyContent="center",At.style.padding="5px",At.style.borderWidth="2px",At.style.borderStyle="solid",At.style.borderColor=pt===mt.currentOpacity?mt.uiStyleSettings.toolboxAccentColor:"transparent",At.addEventListener("click",function(){mt.setCurrentOpacity(pt,At)}),ft.appendChild(At);var le=document.createElement("div");le.innerText=100*pt+"%",At.appendChild(le),mt.opacityBoxes.push(At)}),ft},Ot.prototype.setCurrentOpacity=function(mt,ft){var pt=this;this.currentOpacity=mt,this.opacityBoxes.forEach(function(At){At.style.borderColor=At===ft?pt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Ot}(et),_e=function(Lt){function Ot(mt,ft,pt){var At=Lt.call(this,mt,ft,pt)||this;return At.setOpacity=At.setOpacity.bind(At),At.fillColor=pt.defaultHighlightColor,At.strokeWidth=0,At.opacity=pt.defaultHighlightOpacity,At.fillPanel=new tt("Color",pt.defaultColorSet,At.fillColor),At.fillPanel.onColorChanged=At.setFillColor,At.opacityPanel=new We("Opacity",pt.defaultOpacitySteps,At.opacity),At.opacityPanel.onOpacityChanged=At.setOpacity,At}return ce(Ot,Lt),Ot.prototype.setOpacity=function(mt){this.opacity=mt,this.visual&&Zt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Ot.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Ot.prototype.getState=function(){var mt=Lt.prototype.getState.call(this);return mt.typeName=Ot.typeName,mt},Ot.typeName="HighlightMarker",Ot.title="Highlight marker",Ot.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>',Ot}(Me),ve='<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>',ne='<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>',Se=function(Lt){function Ot(mt,ft,pt){var At=Lt.call(this,mt,ft,pt)||this;return At.bgColor="transparent",At.tipPosition={x:0,y:0},At.tipBase1Position={x:0,y:0},At.tipBase2Position={x:0,y:0},At.tipMoving=!1,At.color=pt.defaultStrokeColor,At.bgColor=pt.defaultFillColor,At.fontFamily=pt.defaultFontFamily,At.defaultSize={x:100,y:30},At.setBgColor=At.setBgColor.bind(At),At.getTipPoints=At.getTipPoints.bind(At),At.positionTip=At.positionTip.bind(At),At.setTipPoints=At.setTipPoints.bind(At),At.colorPanel=new tt("Text color",pt.defaultColorSet,At.color,ve),At.colorPanel.onColorChanged=At.setColor,At.bgColorPanel=new tt("Fill color",pt.defaultColorSet,At.bgColor,ne),At.bgColorPanel.onColorChanged=At.setBgColor,At.fontFamilyPanel=new Jt("Font",pt.defaultFontFamilies,pt.defaultFontFamily),At.fontFamilyPanel.onFontChanged=At.setFont,At.tipGrip=new ht,At.tipGrip.visual.transform.baseVal.appendItem(Zt.createTransform()),At.controlBox.appendChild(At.tipGrip.visual),At}return ce(Ot,Lt),Ot.prototype.ownsTarget=function(mt){return Lt.prototype.ownsTarget.call(this,mt)||this.tipGrip.ownsTarget(mt)||this.tip===mt},Ot.prototype.createTip=function(){Zt.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Zt.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Ot.prototype.pointerDown=function(mt,ft){this.state==="new"&&Lt.prototype.pointerDown.call(this,mt,ft),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ft)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Lt.prototype.pointerDown.call(this,mt,ft)},Ot.prototype.pointerUp=function(mt){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Lt.prototype.pointerUp.call(this,mt);else{var ft=this.state==="creating";Lt.prototype.pointerUp.call(this,mt),this.setTipPoints(ft),this.positionTip()}},Ot.prototype.manipulate=function(mt){if(this.tipMoving){var ft=this.unrotatePoint(mt);this.tipPosition={x:ft.x-this.manipulationStartLeft,y:ft.y-this.manipulationStartTop},this.positionTip()}else Lt.prototype.manipulate.call(this,mt)},Ot.prototype.setBgColor=function(mt){this.bgRectangle&&this.tip&&(Zt.setAttributes(this.bgRectangle,[["fill",mt]]),Zt.setAttributes(this.tip,[["fill",mt]])),this.bgColor=mt,this.fillColorChanged(mt)},Ot.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},Ot.prototype.setTipPoints=function(mt){mt===void 0&&(mt=!1);var ft=Math.min(this.height/2,15),pt=this.height/5;mt&&(this.tipPosition={x:ft+pt/2,y:this.height+20});var At=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?At<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(pt=this.width/5,ft=Math.min(this.width/2,15),this.tipBase1Position={x:ft,y:0},this.tipBase2Position={x:ft+pt,y:0}):(this.tipBase1Position={x:0,y:ft},this.tipBase2Position={x:0,y:ft+pt}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?At<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(pt=this.width/5,ft=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ft-pt,y:0},this.tipBase2Position={x:this.width-ft,y:0}):(this.tipBase1Position={x:this.width,y:ft},this.tipBase2Position={x:this.width,y:ft+pt}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?At<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(pt=this.width/5,ft=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ft-pt,y:this.height},this.tipBase2Position={x:this.width-ft,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-ft-pt},this.tipBase2Position={x:this.width,y:this.height-ft}):At<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(pt=this.width/5,ft=Math.min(this.width/2,15),this.tipBase1Position={x:ft,y:this.height},this.tipBase2Position={x:ft+pt,y:this.height}):(this.tipBase1Position={x:0,y:this.height-ft},this.tipBase2Position={x:0,y:this.height-ft-pt})},Ot.prototype.resize=function(mt){Lt.prototype.resize.call(this,mt),this.positionTip()},Ot.prototype.positionTip=function(){Zt.setAttributes(this.tip,[["points",this.getTipPoints()]]);var mt=this.tipGrip.visual.transform.baseVal.getItem(0);mt.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(mt,0)},Object.defineProperty(Ot.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Ot.prototype.select=function(){this.positionTip(),Lt.prototype.select.call(this)},Ot.prototype.getState=function(){var mt=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Lt.prototype.getState.call(this));return mt.typeName=Ot.typeName,mt},Ot.prototype.restoreState=function(mt){var ft=mt;this.bgColor=ft.bgColor,this.tipPosition=ft.tipPosition,Lt.prototype.restoreState.call(this,mt),this.createTip(),this.setTipPoints()},Ot.prototype.scale=function(mt,ft){Lt.prototype.scale.call(this,mt,ft),this.tipPosition={x:this.tipPosition.x*mt,y:this.tipPosition.y*ft},this.positionTip()},Ot.typeName="CalloutMarker",Ot.title="Callout marker",Ot.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>',Ot}(Ke),Pn=function(Lt){function Ot(mt,ft,pt){var At=Lt.call(this,mt,ft,pt)||this;return At.fillColor="transparent",At.strokeColor="transparent",At.strokeWidth=0,At.strokeDasharray="",At.opacity=1,At.strokeColor=pt.defaultColor,At.strokeWidth=pt.defaultStrokeWidth,At.strokeDasharray=pt.defaultStrokeDasharray,At.fillColor=pt.defaultFillColor,At.setStrokeColor=At.setStrokeColor.bind(At),At.setFillColor=At.setFillColor.bind(At),At.setStrokeWidth=At.setStrokeWidth.bind(At),At.setStrokeDasharray=At.setStrokeDasharray.bind(At),At.setOpacity=At.setOpacity.bind(At),At.createVisual=At.createVisual.bind(At),At.strokePanel=new tt("Line color",ee(pt.defaultColorSet,["transparent"]),pt.defaultColor),At.strokePanel.onColorChanged=At.setStrokeColor,At.fillPanel=new tt("Fill color",ee(pt.defaultColorSet,["transparent"]),At.fillColor,ne),At.fillPanel.onColorChanged=At.setFillColor,At.strokeWidthPanel=new _t("Line width",pt.defaultStrokeWidths,pt.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new Gt("Line style",pt.defaultStrokeDasharrays,pt.defaultStrokeDasharray),At.strokeStylePanel.onStyleChanged=At.setStrokeDasharray,At.opacityPanel=new We("Opacity",pt.defaultOpacitySteps,At.opacity),At.opacityPanel.onOpacityChanged=At.setOpacity,At}return ce(Ot,Lt),Ot.prototype.ownsTarget=function(mt){return!(!Lt.prototype.ownsTarget.call(this,mt)&&mt!==this.visual)},Ot.prototype.createVisual=function(){this.visual=Zt.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)},Ot.prototype.pointerDown=function(mt,ft){Lt.prototype.pointerDown.call(this,mt,ft),this.state==="new"&&(this.createVisual(),this.moveVisual(mt),this._state="creating")},Ot.prototype.manipulate=function(mt){Lt.prototype.manipulate.call(this,mt)},Ot.prototype.resize=function(mt){Lt.prototype.resize.call(this,mt),this.setSize()},Ot.prototype.setSize=function(){Lt.prototype.setSize.call(this),Zt.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},Ot.prototype.pointerUp=function(mt){Lt.prototype.pointerUp.call(this,mt),this.setSize()},Ot.prototype.setStrokeColor=function(mt){this.strokeColor=mt,this.visual&&Zt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(mt),this.stateChanged()},Ot.prototype.setFillColor=function(mt){this.fillColor=mt,this.visual&&Zt.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(mt),this.stateChanged()},Ot.prototype.setStrokeWidth=function(mt){this.strokeWidth=mt,this.visual&&Zt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ot.prototype.setStrokeDasharray=function(mt){this.strokeDasharray=mt,this.visual&&Zt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Ot.prototype.setOpacity=function(mt){this.opacity=mt,this.visual&&Zt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Ot.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Ot.prototype.getState=function(){var mt=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Lt.prototype.getState.call(this));return mt.typeName=Ot.typeName,mt},Ot.prototype.restoreState=function(mt){var ft=mt;this.fillColor=ft.fillColor,this.strokeColor=ft.strokeColor,this.strokeWidth=ft.strokeWidth,this.strokeDasharray=ft.strokeDasharray,this.opacity=ft.opacity,this.createVisual(),Lt.prototype.restoreState.call(this,mt),this.setSize()},Ot.prototype.scale=function(mt,ft){Lt.prototype.scale.call(this,mt,ft),this.setSize()},Ot.typeName="EllipseMarker",Ot.title="Ellipse marker",Ot.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>',Ot}(St),Mn=function(Lt){function Ot(mt,ft,pt){return Lt.call(this,mt,ft,pt)||this}return ce(Ot,Lt),Object.defineProperty(Ot.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Ot.prototype.ownsTarget=function(mt){return!(!Lt.prototype.ownsTarget.call(this,mt)&&mt!==this.tip1&&mt!==this.tip2)},Ot.prototype.createTips=function(){this.tip1=Zt.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(Zt.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Zt.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(Zt.createTransform()),this.visual.appendChild(this.tip2)},Ot.prototype.pointerDown=function(mt,ft){Lt.prototype.pointerDown.call(this,mt,ft),this.state==="creating"&&this.createTips()},Ot.prototype.adjustVisual=function(){if(Lt.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Zt.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()]]),Zt.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 mt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ft=this.tip1.transform.baseVal.getItem(0);ft.setRotate(mt,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ft,0);var pt=this.tip2.transform.baseVal.getItem(0);pt.setRotate(mt+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(pt,0)}},Object.defineProperty(Ot.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ot.prototype.getState=function(){var mt=Lt.prototype.getState.call(this);return mt.typeName=Ot.typeName,mt},Ot.prototype.restoreState=function(mt){Lt.prototype.restoreState.call(this,mt),this.createTips(),this.adjustVisual()},Ot.typeName="MeasurementMarker",Ot.title="Measurement marker",Ot.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>',Ot}(be),Xe=function(Lt){function Ot(mt,ft,pt){var At=Lt.call(this,mt,ft,pt)||this;return At.strokePanel.colors=pt.defaultColorSet,At.fillColor="transparent",At}return ce(Ot,Lt),Object.defineProperty(Ot.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ot.prototype.getState=function(){var mt=Lt.prototype.getState.call(this);return mt.typeName=Ot.typeName,mt},Ot.typeName="EllipseFrameMarker",Ot.title="Ellipse frame marker",Ot.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>',Ot}(Pn),Nn=function(){function Lt(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Lt.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Lt.prototype.addUndoStep=function(Ot){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Ot)||(this.undoStack.push(Ot),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Ot)&&this.redoStack.splice(0,this.redoStack.length))},Lt.prototype.replaceLastUndoStep=function(Ot){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Ot)},Lt.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Lt.prototype.undo=function(){if(this.undoStack.length>1){var Ot=this.undoStack.pop();return Ot!==void 0&&this.redoStack.push(Ot),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Lt.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Lt}(),Zn=function(Lt){function Ot(mt,ft,pt){var At=Lt.call(this,mt,ft,pt)||this;return At.strokeColor="transparent",At.strokeWidth=0,At.strokeDasharray="",At.curveX=0,At.curveY=0,At.manipulationStartCurveX=0,At.manipulationStartCurveY=0,At.setStrokeColor=At.setStrokeColor.bind(At),At.setStrokeWidth=At.setStrokeWidth.bind(At),At.setStrokeDasharray=At.setStrokeDasharray.bind(At),At.positionGrips=At.positionGrips.bind(At),At.addControlGrips=At.addControlGrips.bind(At),At.adjustVisual=At.adjustVisual.bind(At),At.setupControlBox=At.setupControlBox.bind(At),At.resize=At.resize.bind(At),At.strokeColor=pt.defaultColor,At.strokeWidth=pt.defaultStrokeWidth,At.strokeDasharray=pt.defaultStrokeDasharray,At.strokePanel=new tt("Line color",pt.defaultColorSet,pt.defaultColor),At.strokePanel.onColorChanged=At.setStrokeColor,At.strokeWidthPanel=new _t("Line width",pt.defaultStrokeWidths,pt.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new Gt("Line style",pt.defaultStrokeDasharrays,pt.defaultStrokeDasharray),At.strokeStylePanel.onStyleChanged=At.setStrokeDasharray,At}return ce(Ot,Lt),Ot.prototype.ownsTarget=function(mt){return!(!Lt.prototype.ownsTarget.call(this,mt)&&mt!==this.visual&&mt!==this.selectorCurve&&mt!==this.visibleCurve&&!this.curveGrip.ownsTarget(mt))},Ot.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Ot.prototype.createVisual=function(){this.visual=Zt.createGroup(),this.selectorCurve=Zt.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Zt.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)},Ot.prototype.pointerDown=function(mt,ft){Lt.prototype.pointerDown.call(this,mt,ft),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=mt.x,this.curveY=mt.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(ft)&&(this.activeGrip=this.curveGrip,this._state="resize")},Ot.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Zt.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Zt.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Zt.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Ot.prototype.setupControlBox=function(){Lt.prototype.setupControlBox.call(this),this.curveControlLine1=Zt.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Zt.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)},Ot.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Lt.prototype.addControlGrips.call(this)},Ot.prototype.positionGrips=function(){Lt.prototype.positionGrips.call(this);var mt=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-mt/2,this.curveY-mt/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()))},Ot.prototype.manipulate=function(mt){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+mt.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+mt.y-this.manipulationStartY),Lt.prototype.manipulate.call(this,mt)},Ot.prototype.resize=function(mt){this.activeGrip===this.curveGrip&&(this.curveX=mt.x,this.curveY=mt.y),Lt.prototype.resize.call(this,mt),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Ot.prototype.setStrokeColor=function(mt){this.strokeColor=mt,this.adjustVisual(),this.colorChanged(mt)},Ot.prototype.setStrokeWidth=function(mt){this.strokeWidth=mt,this.adjustVisual()},Ot.prototype.setStrokeDasharray=function(mt){this.strokeDasharray=mt,this.adjustVisual()},Ot.prototype.scale=function(mt,ft){this.curveX=this.curveX*mt,this.curveY=this.curveY*ft,Lt.prototype.scale.call(this,mt,ft)},Object.defineProperty(Ot.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ot.prototype.getState=function(){var mt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Lt.prototype.getState.call(this));return mt.typeName=Ot.typeName,mt},Ot.prototype.restoreState=function(mt){Lt.prototype.restoreState.call(this,mt);var ft=mt;this.strokeColor=ft.strokeColor,this.strokeWidth=ft.strokeWidth,this.strokeDasharray=ft.strokeDasharray,this.curveX=ft.curveX,this.curveY=ft.curveY,this.createVisual(),this.adjustVisual()},Ot.typeName="CurveMarker",Ot.title="Curve marker",Ot.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>',Ot}(de),fi=function(Lt){function Ot(mt,ft,pt){var At=Lt.call(this,mt,ft,pt)||this;return At.fillColor="transparent",At.strokeColor="transparent",At.strokeWidth=0,At.strokeDasharray="",At.textColor="transparent",At.fontSize="1rem",At.isMoved=!1,At.captionText="Caption",At.PADDING=5,At.captionBoxWidth=0,At.captionBoxHeight=0,At.strokeColor=pt.defaultColor,At.strokeWidth=pt.defaultStrokeWidth,At.strokeDasharray=pt.defaultStrokeDasharray,At.fillColor=pt.defaultFillColor,At.textColor=pt.defaultStrokeColor,At.fontFamily=pt.defaultFontFamily,At.fontSize=pt.defaultCaptionFontSize,At.captionText=pt.defaultCaptionText,At.setStrokeColor=At.setStrokeColor.bind(At),At.setFillColor=At.setFillColor.bind(At),At.setStrokeWidth=At.setStrokeWidth.bind(At),At.setStrokeDasharray=At.setStrokeDasharray.bind(At),At.createVisual=At.createVisual.bind(At),At.sizeCaption=At.sizeCaption.bind(At),At.setCaptionText=At.setCaptionText.bind(At),At.showTextEditor=At.showTextEditor.bind(At),At.positionTextEditor=At.positionTextEditor.bind(At),At.finishTextEditing=At.finishTextEditing.bind(At),At.setFont=At.setFont.bind(At),At.setTextColor=At.setTextColor.bind(At),At.strokePanel=new tt("Line color",ee(pt.defaultColorSet,["transparent"]),At.strokeColor),At.strokePanel.onColorChanged=At.setStrokeColor,At.fillPanel=new tt("Fill color",ee(pt.defaultColorSet,["transparent"]),At.fillColor,ne),At.fillPanel.onColorChanged=At.setFillColor,At.strokeWidthPanel=new _t("Line width",pt.defaultStrokeWidths,pt.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new Gt("Line style",pt.defaultStrokeDasharrays,pt.defaultStrokeDasharray),At.strokeStylePanel.onStyleChanged=At.setStrokeDasharray,At.fontFamilyPanel=new Jt("Font",pt.defaultFontFamilies,pt.defaultFontFamily),At.fontFamilyPanel.onFontChanged=At.setFont,At.textColorPanel=new tt("Text color",pt.defaultColorSet,At.textColor,ve),At.textColorPanel.onColorChanged=At.setTextColor,At}return ce(Ot,Lt),Ot.prototype.ownsTarget=function(mt){return!(!Lt.prototype.ownsTarget.call(this,mt)&&mt!==this.visual&&mt!==this.frame&&mt!==this.captionBg&&mt!==this.captionElement)},Ot.prototype.createVisual=function(){this.visual=Zt.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Zt.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Zt.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=Zt.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()},Ot.prototype.setCaptionText=function(mt){this.captionText=mt,this.captionElement.textContent=this.captionText,this.sizeCaption()},Ot.prototype.pointerDown=function(mt,ft){Lt.prototype.pointerDown.call(this,mt,ft),this.isMoved=!1,this.pointerDownPoint=mt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(mt),this._state="creating")},Ot.prototype.manipulate=function(mt){Lt.prototype.manipulate.call(this,mt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(mt.x-this.pointerDownPoint.x)>5||Math.abs(mt.y-this.pointerDownPoint.y)>5)},Ot.prototype.resize=function(mt){Lt.prototype.resize.call(this,mt),this.setSize()},Ot.prototype.sizeCaption=function(){var mt=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=mt.width+2*this.PADDING,this.captionBoxHeight=mt.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Zt.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')"]]),Zt.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')"]])},Ot.prototype.showTextEditor=function(){var mt=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(ft){ft.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(ft){ft.key==="Enter"&&mt.finishTextEditing(mt.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(ft){ft.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){mt.finishTextEditing(mt.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){mt.finishTextEditing(mt.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Ot.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"))},Ot.prototype.finishTextEditing=function(mt){this.setCaptionText(mt.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Ot.prototype.setFont=function(mt){this.captionElement&&Zt.setAttributes(this.captionElement,[["font-family",mt]]),this.fontFamily=mt,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Ot.prototype.setTextColor=function(mt){this.captionElement&&Zt.setAttributes(this.captionElement,[["fill",mt]]),this.textColor=mt,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Ot.prototype.setSize=function(){Lt.prototype.setSize.call(this),Zt.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Ot.prototype.pointerUp=function(mt){Lt.prototype.pointerUp.call(this,mt),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Ot.prototype.dblClick=function(mt,ft){Lt.prototype.dblClick.call(this,mt,ft),this.showTextEditor()},Ot.prototype.setStrokeColor=function(mt){this.strokeColor=mt,this.frame&&Zt.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(mt),this.stateChanged()},Ot.prototype.setFillColor=function(mt){this.fillColor=mt,this.captionBg&&Zt.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(mt),this.stateChanged()},Ot.prototype.setStrokeWidth=function(mt){this.strokeWidth=mt,this.frame&&Zt.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ot.prototype.setStrokeDasharray=function(mt){this.strokeDasharray=mt,this.frame&&Zt.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Ot.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Ot.prototype.getState=function(){var mt=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},Lt.prototype.getState.call(this));return mt.typeName=this.typeName,mt},Ot.prototype.restoreState=function(mt){var ft=mt;this.fillColor=ft.fillColor,this.strokeColor=ft.strokeColor,this.strokeWidth=ft.strokeWidth,this.strokeDasharray=ft.strokeDasharray,this.textColor=ft.textColor,this.fontFamily=ft.fontFamily,this.captionText=ft.captionText,this.fontSize=ft.fontSize,this.createVisual(),Lt.prototype.restoreState.call(this,mt),this.setSize()},Ot.prototype.scale=function(mt,ft){Lt.prototype.scale.call(this,mt,ft),this.setSize()},Ot.typeName="CaptionFrameMarker",Ot.title="Caption frame marker",Ot.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>',Ot}(St),zn=function(){function Lt(Ot,mt){mt===void 0&&(mt=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Ot,this.cancelable=mt}return Object.defineProperty(Lt.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Lt.prototype.preventDefault=function(){this._defaultPrevented=!0},Lt}(),Si=function(Lt){function Ot(mt,ft,pt){var At=Lt.call(this,mt,!1)||this;return At.dataUrl=ft,At.state=pt,At}return ce(Ot,Lt),Ot}(zn),nn=function(Lt){function Ot(mt,ft,pt){pt===void 0&&(pt=!1);var At=Lt.call(this,mt,pt)||this;return At.marker=ft,At}return ce(Ot,Lt),Ot}(zn),Fi=function(){function Lt(){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 Lt.prototype.addEventListener=function(Ot,mt){this[Ot].push(mt)},Lt.prototype.removeEventListener=function(Ot,mt){var ft=this[Ot].indexOf(mt);ft>-1&&this[Ot].splice(ft,1)},Lt}(),Ti=function(){function Lt(Ot){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new ue,this._isOpen=!1,this.undoRedoManager=new Nn,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 Fi,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Lt.instanceCounter++,this.styles=new Pt(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Ot,this.targetRoot=document.body,this.width=Ot.clientWidth,this.height=Ot.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(Lt.prototype,"ALL_MARKER_TYPES",{get:function(){return[oe,Wt,He,Ke,Xe,Pn,_e,Se,Mn,Me,be,Zn,fi]},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[oe,Wt,He,Ke,Pn,_e,Se]},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.prototype,"BASIC_MARKER_TYPES",{get:function(){return[oe,Wt,He,Ke,_e]},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Ot){var mt=this;this._availableMarkerTypes.splice(0),Ot.forEach(function(ft){if(typeof ft=="string"){var pt=mt.ALL_MARKER_TYPES.find(function(At){return At.typeName===ft});pt!==void 0&&mt._availableMarkerTypes.push(pt)}else mt._availableMarkerTypes.push(ft)})},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Ot){this._zoomLevel=Ot,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(Lt.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Lt.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Nt.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Lt.prototype.show=function(){var Ot=this;this.styles.styleSheetRoot===void 0&&qt.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=qt.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(mt){return mt(new zn(Ot))})},Lt.prototype.render=function(){return ie(this,void 0,void 0,function(){var Ot;return Ie(this,function(mt){switch(mt.label){case 0:return this.setCurrentMarker(),(Ot=new jt).naturalSize=this.renderAtNaturalSize,Ot.imageType=this.renderImageType,Ot.imageQuality=this.renderImageQuality,Ot.markersOnly=this.renderMarkersOnly,Ot.width=this.renderWidth,Ot.height=this.renderHeight,[4,Ot.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return mt.sent(),[4,Ot.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,mt.sent()]}})})},Lt.prototype.close=function(Ot){var mt=this;if(Ot===void 0&&(Ot=!1),this.isOpen){var ft=!1;Ot||this.eventListeners.beforeclose.forEach(function(pt){var At=new zn(mt,!0);pt(At),At.defaultPrevented&&(ft=!0)}),ft||(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(pt){return pt(new zn(mt))}),this.detachEvents(),this._isOpen=!1)}},Lt.prototype.addMarkersToToolbar=function(){for(var Ot,mt=[],ft=0;ft<arguments.length;ft++)mt[ft]=arguments[ft];(Ot=this._availableMarkerTypes).push.apply(Ot,mt)},Lt.prototype.addRenderEventListener=function(Ot){this.addEventListener("render",function(mt){Ot(mt.dataUrl,mt.state)})},Lt.prototype.removeRenderEventListener=function(Ot){},Lt.prototype.addCloseEventListener=function(Ot){this.addEventListener("close",function(){Ot()})},Lt.prototype.removeCloseEventListener=function(Ot){},Lt.prototype.setupResizeObserver=function(){var Ot=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){Ot.resize(Ot.target.clientWidth,Ot.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return Ot.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Lt.prototype.onPopupTargetResize=function(){var Ot=1*this.target.clientWidth/this.target.clientHeight,mt=this.editorCanvas.clientWidth/Ot>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Ot:this.editorCanvas.clientWidth,ft=mt<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Ot;this.resize(mt,ft)},Lt.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Lt.prototype.resize=function(Ot,mt){this._isResizing=!0;var ft=Ot/this.imageWidth,pt=mt/this.imageHeight;this.imageWidth=Math.round(Ot),this.imageHeight=Math.round(mt),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(ft,pt),this._isResizing=!1},Lt.prototype.scaleMarkers=function(Ot,mt){var ft,pt=this;this._currentMarker&&this._currentMarker instanceof Ke?this._currentMarker.scale(Ot,mt):(ft=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(At){At!==pt._currentMarker&&At.scale(Ot,mt)}),ft!==void 0&&this.setCurrentMarker(ft)},Lt.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"},Lt.prototype.setTopLeft=function(){var Ot=this.editingTarget.getBoundingClientRect(),mt=this.editorCanvas.getBoundingClientRect();this.left=Ot.left-mt.left,this.top=Ot.top-mt.top},Lt.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)},Lt.prototype.addDefs=function(){for(var Ot,mt=[],ft=0;ft<arguments.length;ft++)mt[ft]=arguments[ft];this.defs=Zt.createDefs(),this.addDefsToImage(),(Ot=this.defs).append.apply(Ot,mt)},Lt.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Lt.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)},Lt.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Lt.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Lt.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)},Lt.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Lt.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)},Lt.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 Ot=document.createElement("a");Ot.href="https://markerjs.com/",Ot.target="_blank",Ot.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>',Ot.title="Powered by marker.js",Ot.style.display="grid",Ot.style.alignItems="center",Ot.style.justifyItems="center",Ot.style.padding="3px",Ot.style.width="20px",Ot.style.height="20px",this.logoUI.appendChild(Ot),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Lt.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")},Lt.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"},Lt.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Lt.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 Ot=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=Ot+"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 Yt(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 Ct(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Lt.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Lt.prototype.removeMarker=function(Ot){this.markerImage.removeChild(Ot.container),this.markers.indexOf(Ot)>-1&&this.markers.splice(this.markers.indexOf(Ot),1),Ot.dispose()},Lt.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())},Lt.prototype.toolbarButtonClicked=function(Ot,mt){if(Ot==="marker"&&mt!==void 0)this.createNewMarker(mt);else if(Ot==="action")switch(mt){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()}},Lt.prototype.deleteSelectedMarker=function(){var Ot=this;if(this._currentMarker!==void 0){var mt=!1;if(this.eventListeners.markerbeforedelete.forEach(function(pt){var At=new nn(Ot,Ot._currentMarker,!0);pt(At),At.defaultPrevented&&(mt=!0)}),!mt){var ft=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(pt){return pt(new nn(Ot,ft))})}}},Lt.prototype.clear=function(){var Ot=this,mt=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(le){var we=new nn(Ot,void 0,!0);le(we),we.defaultPrevented&&(mt=!0)}),!mt)){this.setCurrentMarker();for(var ft=function(le){var we=pt.markers[le];pt.setCurrentMarker(pt.markers[le]),pt._currentMarker.dispose(),pt.markerImage.removeChild(pt._currentMarker.container),pt.markers.splice(pt.markers.indexOf(pt._currentMarker),1),pt.eventListeners.markerdelete.forEach(function(ae){return ae(new nn(Ot,we))})},pt=this,At=this.markers.length-1;At>=0;At--)ft(At);this.addUndoStep()}},Object.defineProperty(Lt.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Lt.prototype.showNotesEditor=function(){var Ot;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=(Ot=this._currentMarker.notes)!==null&&Ot!==void 0?Ot:"",this.overlayContainer.appendChild(this.notesArea))},Lt.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)},Lt.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Lt.prototype.addUndoStep=function(){var Ot=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var mt=this.getState(),ft=this.undoRedoManager.getLastUndoStep();if(!ft||ft.width===mt.width&&ft.height===mt.height){var pt=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(mt),pt<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(At){return At(new zn(Ot))})}else this.undoRedoManager.replaceLastUndoStep(mt),this.eventListeners.statechange.forEach(function(At){return At(new zn(Ot))})}},Lt.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Lt.prototype.undoStep=function(){var Ot=this,mt=this.undoRedoManager.undo();mt!==void 0&&(this.restoreState(mt),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ft){return ft(new zn(Ot))}))},Lt.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Lt.prototype.redoStep=function(){var Ot=this,mt=this.undoRedoManager.redo();mt!==void 0&&(this.restoreState(mt),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ft){return ft(new zn(Ot))}))},Lt.prototype.stepZoom=function(){var Ot=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Ot<this.zoomSteps.length-1?this.zoomSteps[Ot+1]:this.zoomSteps[0]},Lt.prototype.panTo=function(Ot){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Ot.x,top:this.prevPanPoint.y-Ot.y}),this.prevPanPoint=Ot},Lt.prototype.startRenderAndClose=function(){return ie(this,void 0,void 0,function(){var Ot,mt,ft=this;return Ie(this,function(pt){switch(pt.label){case 0:return[4,this.render()];case 1:return Ot=pt.sent(),mt=this.getState(),this.eventListeners.render.forEach(function(At){return At(new Si(ft,Ot,mt))}),this.close(!0),[2]}})})},Lt.prototype.getState=function(Ot){Ot===!0&&this.setCurrentMarker();var mt={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(ft){return mt.markers.push(ft.getState())}),mt},Lt.prototype.restoreState=function(Ot){var mt=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Ot.markers.forEach(function(ft){var pt=mt._availableMarkerTypes.find(function(le){return le.typeName===ft.typeName});if(pt!==void 0){var At=mt.addNewMarker(pt);At.restoreState(ft),mt.markers.push(At)}}),Ot.width&&Ot.height&&(Ot.width!==this.imageWidth||Ot.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/Ot.width,this.imageHeight/Ot.height),this.eventListeners.restorestate.forEach(function(ft){return ft(new zn(mt))})},Lt.prototype.addNewMarker=function(Ot){var mt=Zt.createGroup();return this.markerImage.appendChild(mt),new Ot(mt,this.overlayContainer,this.settings)},Lt.prototype.createNewMarker=function(Ot){var mt,ft=this;(mt=typeof Ot=="string"?this._availableMarkerTypes.find(function(pt){return pt.typeName===Ot}):Ot)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(mt),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(mt.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(pt){return pt(new nn(ft,ft._currentMarker))}))},Lt.prototype.markerCreated=function(Ot){var mt=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Ot),this.setCurrentMarker(Ot),Ot instanceof Wt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Wt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(ft){return ft(new nn(mt,mt._currentMarker))})},Lt.prototype.colorChanged=function(Ot){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Ot,this.settings.defaultStrokeColor=Ot)},Lt.prototype.fillColorChanged=function(Ot){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Ot)},Lt.prototype.markerStateChanged=function(Ot){var mt=this;this.eventListeners.markerchange.forEach(function(ft){return ft(new nn(mt,Ot))})},Lt.prototype.setCurrentMarker=function(Ot){var mt=this;this._currentMarker!==Ot&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(ft){return ft(new nn(mt,mt._currentMarker))})),this._currentMarker=Ot,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(ft){return ft(new nn(mt,mt._currentMarker))}))},Lt.prototype.onPointerDown=function(Ot){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||Ot.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var mt=this.markers.find(function(ft){return ft.ownsTarget(Ot.target)});mt!==void 0?(this.setCurrentMarker(mt),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Ot.clientX,Ot.clientY),Ot.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:Ot.clientX,y:Ot.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Ot.clientX,Ot.clientY))},Lt.prototype.onDblClick=function(Ot){if(this._isFocused||this.focus(),this.mode==="select"){var mt=this.markers.find(function(ft){return ft.ownsTarget(Ot.target)});mt!==void 0&&mt!==this._currentMarker&&this.setCurrentMarker(mt),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Ot.clientX,Ot.clientY),Ot.target):this.setCurrentMarker()}},Lt.prototype.onPointerMove=function(Ot){this.touchPoints!==1&&Ot.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||Ot.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(Ot.clientX,Ot.clientY)):this.zoomLevel>1&&this.panTo({x:Ot.clientX,y:Ot.clientY}))},Lt.prototype.onPointerUp=function(Ot){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Ot.clientX,Ot.clientY)),this.isDragging=!1,this.addUndoStep()},Lt.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Lt.prototype.onKeyUp=function(Ot){this._currentMarker===void 0||this.notesArea!==void 0||Ot.key!=="Delete"&&Ot.key!=="Backspace"||this.deleteSelectedMarker()},Lt.prototype.clientToLocalCoordinates=function(Ot,mt){var ft=this.markerImage.getBoundingClientRect();return{x:(Ot-ft.left)/this.zoomLevel,y:(mt-ft.top)/this.zoomLevel}},Lt.prototype.onWindowResize=function(){this.positionUI()},Lt.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Ot=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Ot+"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()},Lt.prototype.addLicenseKey=function(Ot){Nt.addKey(Ot)},Lt.prototype.addEventListener=function(Ot,mt){this.eventListeners.addEventListener(Ot,mt)},Lt.prototype.removeEventListener=function(Ot,mt){this.eventListeners.removeEventListener(Ot,mt)},Lt.prototype.renderState=function(Ot){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Ot),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Lt.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Lt.prototype.focus=function(){var Ot=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(mt){return mt(new zn(Ot))}))},Lt.prototype.blur=function(){var Ot=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(mt){return mt(new zn(Ot))}))},Lt.instanceCounter=0,Lt}()},17115:function(hi,Cn,bt){"use strict";bt.d(Cn,{ZP:function(){return Nt}});var Mt=bt(72071),ce=bt(59301),ie=bt(47273),Ie=0,ee=(0,ie.Z)();function Zt(){var jt;return ee?(jt=Ie,Ie+=1):jt="TEST_OR_SSR",jt}function Nt(jt){var qt=ce.useState(),Pt=(0,Mt.Z)(qt,2),re=Pt[0],Kt=Pt[1];return ce.useEffect(function(){Kt("rc_select_".concat(Zt()))},[]),jt||re}},77861:function(hi,Cn,bt){"use strict";bt.d(Cn,{Ac:function(){return rn},Xo:function(){return Yr},Wx:function(){return kr},ZP:function(){return yi},lk:function(){return St}});var Mt=bt(96663),ce=bt(19127),ie=bt(90493),Ie=bt(44127),ee=bt(72071),Zt=bt(6620),Nt=bt(20135),jt=bt(18929),qt=bt(48736),Pt=bt(59301),re=bt(92310),Kt=bt.n(re),Yt=bt(34280),Ct=bt(49658),et=bt(10228),tt=bt(8654),lt=function(Le){var yn=Le.className,Qn=Le.customizeIcon,wi=Le.customizeIconProps,Oi=Le.onMouseDown,qe=Le.onClick,oi=Le.children,Pi;return typeof Qn=="function"?Pi=Qn(wi):Pi=Qn,Pt.createElement("span",{className:yn,onMouseDown:function(On){On.preventDefault(),Oi&&Oi(On)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:qe,"aria-hidden":!0},Pi!==void 0?Pi:Pt.createElement("span",{className:Kt()(yn.split(/\s+/).map(function(er){return"".concat(er,"-icon")}))},oi))},rt=lt;function ht(dn,Le,yn,Qn,wi){var Oi=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,qe=arguments.length>6?arguments[6]:void 0,oi=arguments.length>7?arguments[7]:void 0,Pi=Pt.useMemo(function(){if((0,Nt.Z)(Qn)==="object")return Qn.clearIcon;if(wi)return wi},[Qn,wi]),er=Pt.useMemo(function(){return!!(!Oi&&Qn&&(yn.length||qe)&&!(oi==="combobox"&&qe===""))},[Qn,Oi,yn.length,qe,oi]);return{allowClear:er,clearIcon:Pt.createElement(rt,{className:"".concat(dn,"-clear"),onMouseDown:Le,customizeIcon:Pi},"\xD7")}}var dt=Pt.createContext(null);function St(){return Pt.useContext(dt)}function It(){var dn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Le=Pt.useState(!1),yn=(0,ee.Z)(Le,2),Qn=yn[0],wi=yn[1],Oi=Pt.useRef(null),qe=function(){window.clearTimeout(Oi.current)};Pt.useEffect(function(){return qe},[]);var oi=function(er,On){qe(),Oi.current=window.setTimeout(function(){wi(er),On&&On()},dn)};return[Qn,oi,qe]}function _t(){var dn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Le=Pt.useRef(null),yn=Pt.useRef(null);Pt.useEffect(function(){return function(){window.clearTimeout(yn.current)}},[]);function Qn(wi){(wi||Le.current===null)&&(Le.current=wi),window.clearTimeout(yn.current),yn.current=window.setTimeout(function(){Le.current=null},dn)}return[function(){return Le.current},Qn]}function Gt(dn,Le,yn,Qn){var wi=Pt.useRef(null);wi.current={open:Le,triggerOpen:yn,customizedTrigger:Qn},Pt.useEffect(function(){function Oi(qe){var oi;if(!((oi=wi.current)!==null&&oi!==void 0&&oi.customizedTrigger)){var Pi=qe.target;Pi.shadowRoot&&qe.composed&&(Pi=qe.composedPath()[0]||Pi),wi.current.open&&dn().filter(function(er){return er}).every(function(er){return!er.contains(Pi)&&er!==Pi})&&wi.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Oi),function(){return window.removeEventListener("mousedown",Oi)}},[])}var oe=bt(26112),ue=bt(11780),de=function(Le,yn){var Qn,wi,Oi=Le.prefixCls,qe=Le.id,oi=Le.inputElement,Pi=Le.disabled,er=Le.tabIndex,On=Le.autoFocus,ui=Le.autoComplete,Cr=Le.editable,or=Le.activeDescendantId,zr=Le.value,ar=Le.maxLength,Lr=Le.onKeyDown,nr=Le.onMouseDown,Pr=Le.onChange,io=Le.onPaste,Uo=Le.onCompositionStart,gi=Le.onCompositionEnd,Qo=Le.open,ps=Le.attrs,$o=oi||Pt.createElement("input",null),pi=$o,ur=pi.ref,Ur=pi.props,uo=Ur.onKeyDown,qr=Ur.onChange,ko=Ur.onMouseDown,di=Ur.onCompositionStart,Co=Ur.onCompositionEnd,jr=Ur.style;return(0,qt.Kp)(!("maxLength"in $o.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),$o=Pt.cloneElement($o,(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({type:"search"},Ur),{},{id:qe,ref:(0,tt.sQ)(yn,ur),disabled:Pi,tabIndex:er,autoComplete:ui||"off",autoFocus:On,className:Kt()("".concat(Oi,"-selection-search-input"),(Qn=$o)===null||Qn===void 0||(wi=Qn.props)===null||wi===void 0?void 0:wi.className),role:"combobox","aria-label":"Search","aria-expanded":Qo||!1,"aria-haspopup":"listbox","aria-owns":"".concat(qe,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(qe,"_list"),"aria-activedescendant":Qo?or:void 0},ps),{},{value:Cr?zr:"",maxLength:ar,readOnly:!Cr,unselectable:Cr?null:"on",style:(0,Ie.Z)((0,Ie.Z)({},jr),{},{opacity:Cr?null:0}),onKeyDown:function(Ci){Lr(Ci),uo&&uo(Ci)},onMouseDown:function(Ci){nr(Ci),ko&&ko(Ci)},onChange:function(Ci){Pr(Ci),qr&&qr(Ci)},onCompositionStart:function(Ci){Uo(Ci),di&&di(Ci)},onCompositionEnd:function(Ci){gi(Ci),Co&&Co(Ci)},onPaste:io})),$o},be=Pt.forwardRef(de);be.displayName="Input";var Jt=be;function Ke(dn){return Array.isArray(dn)?dn:dn!==void 0?[dn]:[]}var Wt=typeof window!="undefined"&&window.document&&window.document.documentElement,Ge=Wt;function He(dn){return dn!=null}function Me(dn){return!dn&&dn!==0}function We(dn){return["string","number"].includes((0,Nt.Z)(dn))}function _e(dn){var Le=void 0;return dn&&(We(dn.title)?Le=dn.title.toString():We(dn.label)&&(Le=dn.label.toString())),Le}function ve(dn,Le){Ge?Pt.useLayoutEffect(dn,Le):Pt.useEffect(dn,Le)}function ne(dn){var Le;return(Le=dn.key)!==null&&Le!==void 0?Le:dn.value}var Se=function(Le){Le.preventDefault(),Le.stopPropagation()},Pn=function(Le){var yn=Le.id,Qn=Le.prefixCls,wi=Le.values,Oi=Le.open,qe=Le.searchValue,oi=Le.autoClearSearchValue,Pi=Le.inputRef,er=Le.placeholder,On=Le.disabled,ui=Le.mode,Cr=Le.showSearch,or=Le.autoFocus,zr=Le.autoComplete,ar=Le.activeDescendantId,Lr=Le.tabIndex,nr=Le.removeIcon,Pr=Le.maxTagCount,io=Le.maxTagTextLength,Uo=Le.maxTagPlaceholder,gi=Uo===void 0?function(ls){return"+ ".concat(ls.length," ...")}:Uo,Qo=Le.tagRender,ps=Le.onToggleOpen,$o=Le.onRemove,pi=Le.onInputChange,ur=Le.onInputPaste,Ur=Le.onInputKeyDown,uo=Le.onInputMouseDown,qr=Le.onInputCompositionStart,ko=Le.onInputCompositionEnd,di=Pt.useRef(null),Co=(0,Pt.useState)(0),jr=(0,ee.Z)(Co,2),Sr=jr[0],Ci=jr[1],Bo=(0,Pt.useState)(!1),xi=(0,ee.Z)(Bo,2),Yo=xi[0],ha=xi[1],vs="".concat(Qn,"-selection"),da=Oi||ui==="multiple"&&oi===!1||ui==="tags"?qe:"",ta=ui==="tags"||ui==="multiple"&&oi===!1||Cr&&(Oi||Yo);ve(function(){Ci(di.current.scrollWidth)},[da]);function To(ls,ra,al,ll,bl){return Pt.createElement("span",{className:Kt()("".concat(vs,"-item"),(0,ie.Z)({},"".concat(vs,"-item-disabled"),al)),title:_e(ls)},Pt.createElement("span",{className:"".concat(vs,"-item-content")},ra),ll&&Pt.createElement(rt,{className:"".concat(vs,"-item-remove"),onMouseDown:Se,onClick:bl,customizeIcon:nr},"\xD7"))}function Ro(ls,ra,al,ll,bl){var is=function(Es){Se(Es),ps(!Oi)};return Pt.createElement("span",{onMouseDown:is},Qo({label:ra,value:ls,disabled:al,closable:ll,onClose:bl}))}function us(ls){var ra=ls.disabled,al=ls.label,ll=ls.value,bl=!On&&!ra,is=al;if(typeof io=="number"&&(typeof al=="string"||typeof al=="number")){var Vo=String(is);Vo.length>io&&(is="".concat(Vo.slice(0,io),"..."))}var Es=function(Vs){Vs&&Vs.stopPropagation(),$o(ls)};return typeof Qo=="function"?Ro(ll,is,ra,bl,Es):To(ls,is,ra,bl,Es)}function os(ls){var ra=typeof gi=="function"?gi(ls):gi;return To({title:ra},ra,!1)}var xr=Pt.createElement("div",{className:"".concat(vs,"-search"),style:{width:Sr},onFocus:function(){ha(!0)},onBlur:function(){ha(!1)}},Pt.createElement(Jt,{ref:Pi,open:Oi,prefixCls:Qn,id:yn,inputElement:null,disabled:On,autoFocus:or,autoComplete:zr,editable:ta,activeDescendantId:ar,value:da,onKeyDown:Ur,onMouseDown:uo,onChange:pi,onPaste:ur,onCompositionStart:qr,onCompositionEnd:ko,tabIndex:Lr,attrs:(0,oe.Z)(Le,!0)}),Pt.createElement("span",{ref:di,className:"".concat(vs,"-search-mirror"),"aria-hidden":!0},da,"\xA0")),Ne=Pt.createElement(ue.Z,{prefixCls:"".concat(vs,"-overflow"),data:wi,renderItem:us,renderRest:os,suffix:xr,itemKey:ne,maxCount:Pr});return Pt.createElement(Pt.Fragment,null,Ne,!wi.length&&!da&&Pt.createElement("span",{className:"".concat(vs,"-placeholder")},er))},Mn=Pn,Xe=function(Le){var yn=Le.inputElement,Qn=Le.prefixCls,wi=Le.id,Oi=Le.inputRef,qe=Le.disabled,oi=Le.autoFocus,Pi=Le.autoComplete,er=Le.activeDescendantId,On=Le.mode,ui=Le.open,Cr=Le.values,or=Le.placeholder,zr=Le.tabIndex,ar=Le.showSearch,Lr=Le.searchValue,nr=Le.activeValue,Pr=Le.maxLength,io=Le.onInputKeyDown,Uo=Le.onInputMouseDown,gi=Le.onInputChange,Qo=Le.onInputPaste,ps=Le.onInputCompositionStart,$o=Le.onInputCompositionEnd,pi=Le.title,ur=Pt.useState(!1),Ur=(0,ee.Z)(ur,2),uo=Ur[0],qr=Ur[1],ko=On==="combobox",di=ko||ar,Co=Cr[0],jr=Lr||"";ko&&nr&&!uo&&(jr=nr),Pt.useEffect(function(){ko&&qr(!1)},[ko,nr]);var Sr=On!=="combobox"&&!ui&&!ar?!1:!!jr,Ci=pi===void 0?_e(Co):pi,Bo=function(){if(Co)return null;var Yo=Sr?{visibility:"hidden"}:void 0;return Pt.createElement("span",{className:"".concat(Qn,"-selection-placeholder"),style:Yo},or)};return Pt.createElement(Pt.Fragment,null,Pt.createElement("span",{className:"".concat(Qn,"-selection-search")},Pt.createElement(Jt,{ref:Oi,prefixCls:Qn,id:wi,open:ui,inputElement:yn,disabled:qe,autoFocus:oi,autoComplete:Pi,editable:di,activeDescendantId:er,value:jr,onKeyDown:io,onMouseDown:Uo,onChange:function(Yo){qr(!0),gi(Yo)},onPaste:Qo,onCompositionStart:ps,onCompositionEnd:$o,tabIndex:zr,attrs:(0,oe.Z)(Le,!0),maxLength:ko?Pr:void 0})),!ko&&Co?Pt.createElement("span",{className:"".concat(Qn,"-selection-item"),title:Ci,style:Sr?{visibility:"hidden"}:void 0},Co.label):null,Bo())},Nn=Xe;function Zn(dn){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(dn)}var fi=function(Le,yn){var Qn=(0,Pt.useRef)(null),wi=(0,Pt.useRef)(!1),Oi=Le.prefixCls,qe=Le.open,oi=Le.mode,Pi=Le.showSearch,er=Le.tokenWithEnter,On=Le.autoClearSearchValue,ui=Le.onSearch,Cr=Le.onSearchSubmit,or=Le.onToggleOpen,zr=Le.onInputKeyDown,ar=Le.domRef;Pt.useImperativeHandle(yn,function(){return{focus:function(){Qn.current.focus()},blur:function(){Qn.current.blur()}}});var Lr=_t(0),nr=(0,ee.Z)(Lr,2),Pr=nr[0],io=nr[1],Uo=function(jr){var Sr=jr.which;(Sr===et.Z.UP||Sr===et.Z.DOWN)&&jr.preventDefault(),zr&&zr(jr),Sr===et.Z.ENTER&&oi==="tags"&&!wi.current&&!qe&&(Cr==null||Cr(jr.target.value)),Zn(Sr)&&or(!0)},gi=function(){io(!0)},Qo=(0,Pt.useRef)(null),ps=function(jr){ui(jr,!0,wi.current)!==!1&&or(!0)},$o=function(){wi.current=!0},pi=function(jr){wi.current=!1,oi!=="combobox"&&ps(jr.target.value)},ur=function(jr){var Sr=jr.target.value;if(er&&Qo.current&&/[\r\n]/.test(Qo.current)){var Ci=Qo.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Sr=Sr.replace(Ci,Qo.current)}Qo.current=null,ps(Sr)},Ur=function(jr){var Sr=jr.clipboardData,Ci=Sr.getData("text");Qo.current=Ci},uo=function(jr){var Sr=jr.target;if(Sr!==Qn.current){var Ci=document.body.style.msTouchAction!==void 0;Ci?setTimeout(function(){Qn.current.focus()}):Qn.current.focus()}},qr=function(jr){var Sr=Pr();jr.target!==Qn.current&&!Sr&&oi!=="combobox"&&jr.preventDefault(),(oi!=="combobox"&&(!Pi||!Sr)||!qe)&&(qe&&On!==!1&&ui("",!0,!1),or())},ko={inputRef:Qn,onInputKeyDown:Uo,onInputMouseDown:gi,onInputChange:ur,onInputPaste:Ur,onInputCompositionStart:$o,onInputCompositionEnd:pi},di=oi==="multiple"||oi==="tags"?Pt.createElement(Mn,(0,Mt.Z)({},Le,ko)):Pt.createElement(Nn,(0,Mt.Z)({},Le,ko));return Pt.createElement("div",{ref:ar,className:"".concat(Oi,"-selector"),onClick:uo,onMouseDown:qr},di)},zn=Pt.forwardRef(fi);zn.displayName="Selector";var Si=zn,nn=bt(35593),Fi=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Ti=function(Le){var yn=Le===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:yn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:yn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:yn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:yn,adjustY:1},htmlRegion:"scroll"}}},Lt=function(Le,yn){var Qn=Le.prefixCls,wi=Le.disabled,Oi=Le.visible,qe=Le.children,oi=Le.popupElement,Pi=Le.animation,er=Le.transitionName,On=Le.dropdownStyle,ui=Le.dropdownClassName,Cr=Le.direction,or=Cr===void 0?"ltr":Cr,zr=Le.placement,ar=Le.builtinPlacements,Lr=Le.dropdownMatchSelectWidth,nr=Le.dropdownRender,Pr=Le.dropdownAlign,io=Le.getPopupContainer,Uo=Le.empty,gi=Le.getTriggerDOMNode,Qo=Le.onPopupVisibleChange,ps=Le.onPopupMouseEnter,$o=(0,Zt.Z)(Le,Fi),pi="".concat(Qn,"-dropdown"),ur=oi;nr&&(ur=nr(oi));var Ur=Pt.useMemo(function(){return ar||Ti(Lr)},[ar,Lr]),uo=Pi?"".concat(pi,"-").concat(Pi):er,qr=typeof Lr=="number",ko=Pt.useMemo(function(){return qr?null:Lr===!1?"minWidth":"width"},[Lr,qr]),di=On;qr&&(di=(0,Ie.Z)((0,Ie.Z)({},di),{},{width:Lr}));var Co=Pt.useRef(null);return Pt.useImperativeHandle(yn,function(){return{getPopupElement:function(){return Co.current}}}),Pt.createElement(nn.Z,(0,Mt.Z)({},$o,{showAction:Qo?["click"]:[],hideAction:Qo?["click"]:[],popupPlacement:zr||(or==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Ur,prefixCls:pi,popupTransitionName:uo,popup:Pt.createElement("div",{ref:Co,onMouseEnter:ps},ur),stretch:ko,popupAlign:Pr,popupVisible:Oi,getPopupContainer:io,popupClassName:Kt()(ui,(0,ie.Z)({},"".concat(pi,"-empty"),Uo)),popupStyle:di,getTriggerDOMNode:gi,onPopupVisibleChange:Qo}),qe)},Ot=Pt.forwardRef(Lt);Ot.displayName="SelectTrigger";var mt=Ot,ft=bt(4537);function pt(dn,Le){var yn=dn.key,Qn;return"value"in dn&&(Qn=dn.value),yn!=null?yn:Qn!==void 0?Qn:"rc-index-key-".concat(Le)}function At(dn,Le){var yn=dn||{},Qn=yn.label,wi=yn.value,Oi=yn.options,qe=yn.groupLabel,oi=Qn||(Le?"children":"label");return{label:oi,value:wi||"value",options:Oi||"options",groupLabel:qe||oi}}function le(dn){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},yn=Le.fieldNames,Qn=Le.childrenAsData,wi=[],Oi=At(yn,!1),qe=Oi.label,oi=Oi.value,Pi=Oi.options,er=Oi.groupLabel;function On(ui,Cr){ui.forEach(function(or){if(Cr||!(Pi in or)){var zr=or[oi];wi.push({key:pt(or,wi.length),groupOption:Cr,data:or,label:or[qe],value:zr})}else{var ar=or[er];ar===void 0&&Qn&&(ar=or.label),wi.push({key:pt(or,wi.length),group:!0,data:or,label:ar}),On(or[Pi],!0)}})}return On(dn,!1),wi}function we(dn){var Le=(0,Ie.Z)({},dn);return"props"in Le||Object.defineProperty(Le,"props",{get:function(){return(0,qt.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Le}}),Le}function ae(dn,Le){if(!Le||!Le.length)return null;var yn=!1;function Qn(Oi,qe){var oi=(0,ft.Z)(qe),Pi=oi[0],er=oi.slice(1);if(!Pi)return[Oi];var On=Oi.split(Pi);return yn=yn||On.length>1,On.reduce(function(ui,Cr){return[].concat((0,ce.Z)(ui),(0,ce.Z)(Qn(Cr,er)))},[]).filter(function(ui){return ui})}var wi=Qn(dn,Le);return yn?wi:null}var me=["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"],Re=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Oe(dn){return dn==="tags"||dn==="multiple"}var ke=Pt.forwardRef(function(dn,Le){var yn,Qn,wi=dn.id,Oi=dn.prefixCls,qe=dn.className,oi=dn.showSearch,Pi=dn.tagRender,er=dn.direction,On=dn.omitDomProps,ui=dn.displayValues,Cr=dn.onDisplayValuesChange,or=dn.emptyOptions,zr=dn.notFoundContent,ar=zr===void 0?"Not Found":zr,Lr=dn.onClear,nr=dn.mode,Pr=dn.disabled,io=dn.loading,Uo=dn.getInputElement,gi=dn.getRawInputElement,Qo=dn.open,ps=dn.defaultOpen,$o=dn.onDropdownVisibleChange,pi=dn.activeValue,ur=dn.onActiveValueChange,Ur=dn.activeDescendantId,uo=dn.searchValue,qr=dn.autoClearSearchValue,ko=dn.onSearch,di=dn.onSearchSplit,Co=dn.tokenSeparators,jr=dn.allowClear,Sr=dn.suffixIcon,Ci=dn.clearIcon,Bo=dn.OptionList,xi=dn.animation,Yo=dn.transitionName,ha=dn.dropdownStyle,vs=dn.dropdownClassName,da=dn.dropdownMatchSelectWidth,ta=dn.dropdownRender,To=dn.dropdownAlign,Ro=dn.placement,us=dn.builtinPlacements,os=dn.getPopupContainer,xr=dn.showAction,Ne=xr===void 0?[]:xr,ls=dn.onFocus,ra=dn.onBlur,al=dn.onKeyUp,ll=dn.onKeyDown,bl=dn.onMouseDown,is=(0,Zt.Z)(dn,me),Vo=Oe(nr),Es=(oi!==void 0?oi:Vo)||nr==="combobox",Zo=(0,Ie.Z)({},is);Re.forEach(function(Bs){delete Zo[Bs]}),On==null||On.forEach(function(Bs){delete Zo[Bs]});var Vs=Pt.useState(!1),yl=(0,ee.Z)(Vs,2),Ao=yl[0],yo=yl[1];Pt.useEffect(function(){yo((0,Ct.Z)())},[]);var Zi=Pt.useRef(null),bo=Pt.useRef(null),xs=Pt.useRef(null),ca=Pt.useRef(null),aa=Pt.useRef(null),Ho=It(),Zs=(0,ee.Z)(Ho,3),ka=Zs[0],Ml=Zs[1],Ga=Zs[2];Pt.useImperativeHandle(Le,function(){var Bs,ya;return{focus:(Bs=ca.current)===null||Bs===void 0?void 0:Bs.focus,blur:(ya=ca.current)===null||ya===void 0?void 0:ya.blur,scrollTo:function(Ja){var rl;return(rl=aa.current)===null||rl===void 0?void 0:rl.scrollTo(Ja)}}});var Ss=Pt.useMemo(function(){var Bs;if(nr!=="combobox")return uo;var ya=(Bs=ui[0])===null||Bs===void 0?void 0:Bs.value;return typeof ya=="string"||typeof ya=="number"?String(ya):""},[uo,nr,ui]),ai=nr==="combobox"&&typeof Uo=="function"&&Uo()||null,Ta=typeof gi=="function"&&gi(),dc=(0,tt.x1)(bo,Ta==null||(yn=Ta.props)===null||yn===void 0?void 0:yn.ref),hu=Pt.useState(!1),kh=(0,ee.Z)(hu,2),Wr=kh[0],zs=kh[1];(0,Yt.Z)(function(){zs(!0)},[]);var Ms=(0,jt.Z)(!1,{defaultValue:ps,value:Qo}),Cs=(0,ee.Z)(Ms,2),Gs=Cs[0],cu=Cs[1],qo=Wr?Gs:!1,_s=!ar&∨(Pr||_s&&qo&&nr==="combobox")&&(qo=!1);var ms=_s?!1:qo,Rr=Pt.useCallback(function(Bs){var ya=Bs!==void 0?Bs:!qo;Pr||(cu(ya),qo!==ya&&($o==null||$o(ya)))},[Pr,qo,cu,$o]),ul=Pt.useMemo(function(){return(Co||[]).some(function(Bs){return[`
|
|
|
`,`\r
|
|
|
`].includes(Bs)})},[Co]),Os=function(ya,Nu,Ja){var rl=!0,Ha=ya;ur==null||ur(null);var Aa=Ja?null:ae(ya,Co);return nr!=="combobox"&&Aa&&(Ha="",di==null||di(Aa),Rr(!1),rl=!1),ko&&Ss!==Ha&&ko(Ha,{source:Nu?"typing":"effect"}),rl},yu=function(ya){!ya||!ya.trim()||ko(ya,{source:"submit"})};Pt.useEffect(function(){!qo&&!Vo&&nr!=="combobox"&&Os("",!1,!1)},[qo]),Pt.useEffect(function(){Gs&&Pr&&cu(!1),Pr&&Ml(!1)},[Pr]);var Uu=_t(),Vl=(0,ee.Z)(Uu,2),fr=Vl[0],Wa=Vl[1],nl=function(ya){var Nu=fr(),Ja=ya.which;if(Ja===et.Z.ENTER&&(nr!=="combobox"&&ya.preventDefault(),qo||Rr(!0)),Wa(!!Ss),Ja===et.Z.BACKSPACE&&!Nu&&Vo&&!Ss&&ui.length){for(var rl=(0,ce.Z)(ui),Ha=null,Aa=rl.length-1;Aa>=0;Aa-=1){var qa=rl[Aa];if(!qa.disabled){rl.splice(Aa,1),Ha=qa;break}}Ha&&Cr(rl,{type:"remove",values:[Ha]})}for(var Nl=arguments.length,Ac=new Array(Nl>1?Nl-1:0),rh=1;rh<Nl;rh++)Ac[rh-1]=arguments[rh];if(qo&&aa.current){var hl;(hl=aa.current).onKeyDown.apply(hl,[ya].concat(Ac))}ll==null||ll.apply(void 0,[ya].concat(Ac))},Cl=function(ya){for(var Nu=arguments.length,Ja=new Array(Nu>1?Nu-1:0),rl=1;rl<Nu;rl++)Ja[rl-1]=arguments[rl];if(qo&&aa.current){var Ha;(Ha=aa.current).onKeyUp.apply(Ha,[ya].concat(Ja))}al==null||al.apply(void 0,[ya].concat(Ja))},ru=function(ya){var Nu=ui.filter(function(Ja){return Ja!==ya});Cr(Nu,{type:"remove",values:[ya]})},$a=Pt.useRef(!1),Fo=function(){Ml(!0),Pr||(ls&&!$a.current&&ls.apply(void 0,arguments),Ne.includes("focus")&&Rr(!0)),$a.current=!0},Ua=function(){Ml(!1,function(){$a.current=!1,Rr(!1)}),!Pr&&(Ss&&(nr==="tags"?ko(Ss,{source:"submit"}):nr==="multiple"&&ko("",{source:"blur"})),ra&&ra.apply(void 0,arguments))},Ya=[];Pt.useEffect(function(){return function(){Ya.forEach(function(Bs){return clearTimeout(Bs)}),Ya.splice(0,Ya.length)}},[]);var ou=function(ya){var Nu,Ja=ya.target,rl=(Nu=xs.current)===null||Nu===void 0?void 0:Nu.getPopupElement();if(rl&&rl.contains(Ja)){var Ha=setTimeout(function(){var Ac=Ya.indexOf(Ha);if(Ac!==-1&&Ya.splice(Ac,1),Ga(),!Ao&&!rl.contains(document.activeElement)){var rh;(rh=ca.current)===null||rh===void 0||rh.focus()}});Ya.push(Ha)}for(var Aa=arguments.length,qa=new Array(Aa>1?Aa-1:0),Nl=1;Nl<Aa;Nl++)qa[Nl-1]=arguments[Nl];bl==null||bl.apply(void 0,[ya].concat(qa))},Zl=Pt.useState({}),Pu=(0,ee.Z)(Zl,2),bu=Pu[1];function du(){bu({})}var tu;Ta&&(tu=function(ya){Rr(ya)}),Gt(function(){var Bs;return[Zi.current,(Bs=xs.current)===null||Bs===void 0?void 0:Bs.getPopupElement()]},ms,Rr,!!Ta);var Go=Pt.useMemo(function(){return(0,Ie.Z)((0,Ie.Z)({},dn),{},{notFoundContent:ar,open:qo,triggerOpen:ms,id:wi,showSearch:Es,multiple:Vo,toggleOpen:Rr})},[dn,ar,ms,qo,wi,Es,Vo,Rr]),Dd=!!Sr||io,Eu;Dd&&(Eu=Pt.createElement(rt,{className:Kt()("".concat(Oi,"-arrow"),(0,ie.Z)({},"".concat(Oi,"-arrow-loading"),io)),customizeIcon:Sr,customizeIconProps:{loading:io,searchValue:Ss,open:qo,focused:ka,showSearch:Es}}));var vd=function(){var ya;Lr==null||Lr(),(ya=ca.current)===null||ya===void 0||ya.focus(),Cr([],{type:"clear",values:ui}),Os("",!1,!1)},Bh=ht(Oi,vd,ui,jr,Ci,Pr,Ss,nr),qh=Bh.allowClear,il=Bh.clearIcon,ch=Pt.createElement(Bo,{ref:aa}),jd=Kt()(Oi,qe,(Qn={},(0,ie.Z)(Qn,"".concat(Oi,"-focused"),ka),(0,ie.Z)(Qn,"".concat(Oi,"-multiple"),Vo),(0,ie.Z)(Qn,"".concat(Oi,"-single"),!Vo),(0,ie.Z)(Qn,"".concat(Oi,"-allow-clear"),jr),(0,ie.Z)(Qn,"".concat(Oi,"-show-arrow"),Dd),(0,ie.Z)(Qn,"".concat(Oi,"-disabled"),Pr),(0,ie.Z)(Qn,"".concat(Oi,"-loading"),io),(0,ie.Z)(Qn,"".concat(Oi,"-open"),qo),(0,ie.Z)(Qn,"".concat(Oi,"-customize-input"),ai),(0,ie.Z)(Qn,"".concat(Oi,"-show-search"),Es),Qn)),Kc=Pt.createElement(mt,{ref:xs,disabled:Pr,prefixCls:Oi,visible:ms,popupElement:ch,animation:xi,transitionName:Yo,dropdownStyle:ha,dropdownClassName:vs,direction:er,dropdownMatchSelectWidth:da,dropdownRender:ta,dropdownAlign:To,placement:Ro,builtinPlacements:us,getPopupContainer:os,empty:or,getTriggerDOMNode:function(){return bo.current},onPopupVisibleChange:tu,onPopupMouseEnter:du},Ta?Pt.cloneElement(Ta,{ref:dc}):Pt.createElement(Si,(0,Mt.Z)({},dn,{domRef:bo,prefixCls:Oi,inputElement:ai,ref:ca,id:wi,showSearch:Es,autoClearSearchValue:qr,mode:nr,activeDescendantId:Ur,tagRender:Pi,values:ui,open:qo,onToggleOpen:Rr,activeValue:pi,searchValue:Ss,onSearch:Os,onSearchSubmit:yu,onRemove:ru,tokenWithEnter:ul}))),Gc;return Ta?Gc=Kc:Gc=Pt.createElement("div",(0,Mt.Z)({className:jd},Zo,{ref:Zi,onMouseDown:ou,onKeyDown:nl,onKeyUp:Cl,onFocus:Fo,onBlur:Ua}),ka&&!qo&&Pt.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(ui.map(function(Bs){var ya=Bs.label,Nu=Bs.value;return["number","string"].includes((0,Nt.Z)(ya))?ya:Nu}).join(", "))),Kc,Eu,qh&&il),Pt.createElement(dt.Provider,{value:Go},Gc)}),rn=ke,Vn=function(dn,Le){var yn=Pt.useRef({values:new Map,options:new Map}),Qn=Pt.useMemo(function(){var Oi=yn.current,qe=Oi.values,oi=Oi.options,Pi=dn.map(function(ui){if(ui.label===void 0){var Cr;return(0,Ie.Z)((0,Ie.Z)({},ui),{},{label:(Cr=qe.get(ui.value))===null||Cr===void 0?void 0:Cr.label})}return ui}),er=new Map,On=new Map;return Pi.forEach(function(ui){er.set(ui.value,ui),On.set(ui.value,Le.get(ui.value)||oi.get(ui.value))}),yn.current.values=er,yn.current.options=On,Pi},[dn,Le]),wi=Pt.useCallback(function(Oi){return Le.get(Oi)||yn.current.options.get(Oi)},[Le]);return[Qn,wi]};function sn(dn,Le){return Ke(dn).join("").toUpperCase().includes(Le)}var An=function(dn,Le,yn,Qn,wi){return Pt.useMemo(function(){if(!yn||Qn===!1)return dn;var Oi=Le.options,qe=Le.label,oi=Le.value,Pi=[],er=typeof Qn=="function",On=yn.toUpperCase(),ui=er?Qn:function(or,zr){return wi?sn(zr[wi],On):zr[Oi]?sn(zr[qe!=="children"?qe:"label"],On):sn(zr[oi],On)},Cr=er?function(or){return we(or)}:function(or){return or};return dn.forEach(function(or){if(or[Oi]){var zr=ui(yn,Cr(or));if(zr)Pi.push(or);else{var ar=or[Oi].filter(function(Lr){return ui(yn,Cr(Lr))});ar.length&&Pi.push((0,Ie.Z)((0,Ie.Z)({},or),{},(0,ie.Z)({},Oi,ar)))}return}ui(yn,Cr(or))&&Pi.push(or)}),Pi},[dn,Qn,wi,yn,Le])},Bn=bt(17115),ii=bt(11592),_n=["children","value"],ji=["children"];function cr(dn){var Le=dn,yn=Le.key,Qn=Le.props,wi=Qn.children,Oi=Qn.value,qe=(0,Zt.Z)(Qn,_n);return(0,Ie.Z)({key:yn,value:Oi!==void 0?Oi:yn,children:wi},qe)}function Ji(dn){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,ii.Z)(dn).map(function(yn,Qn){if(!Pt.isValidElement(yn)||!yn.type)return null;var wi=yn,Oi=wi.type.isSelectOptGroup,qe=wi.key,oi=wi.props,Pi=oi.children,er=(0,Zt.Z)(oi,ji);return Le||!Oi?cr(yn):(0,Ie.Z)((0,Ie.Z)({key:"__RC_SELECT_GRP__".concat(qe===null?Qn:qe,"__"),label:qe},er),{},{options:Ji(Pi)})}).filter(function(yn){return yn})}function mr(dn,Le,yn,Qn,wi){return Pt.useMemo(function(){var Oi=dn,qe=!dn;qe&&(Oi=Ji(Le));var oi=new Map,Pi=new Map,er=function(Cr,or,zr){zr&&typeof zr=="string"&&Cr.set(or[zr],or)};function On(ui){for(var Cr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,or=0;or<ui.length;or+=1){var zr=ui[or];!zr[yn.options]||Cr?(oi.set(zr[yn.value],zr),er(Pi,zr,yn.label),er(Pi,zr,Qn),er(Pi,zr,wi)):On(zr[yn.options],!0)}}return On(Oi),{options:Oi,valueOptions:oi,labelOptions:Pi}},[dn,Le,yn,Qn,wi])}function Mr(dn){var Le=Pt.useRef();Le.current=dn;var yn=Pt.useCallback(function(){return Le.current.apply(Le,arguments)},[]);return yn}var ao=function(){return null};ao.isSelectOptGroup=!0;var Yr=ao,Zr=function(){return null};Zr.isSelectOption=!0;var kr=Zr,Gr=bt(80547),lo=bt(2738),_o=bt(24916),ns=Pt.createContext(null),co=ns;function ys(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var jo=["disabled","title","children","style","className"];function $t(dn){return typeof dn=="string"||typeof dn=="number"}var ri=function(Le,yn){var Qn=St(),wi=Qn.prefixCls,Oi=Qn.id,qe=Qn.open,oi=Qn.multiple,Pi=Qn.mode,er=Qn.searchValue,On=Qn.toggleOpen,ui=Qn.notFoundContent,Cr=Qn.onPopupScroll,or=Pt.useContext(co),zr=or.flattenOptions,ar=or.onActiveValue,Lr=or.defaultActiveFirstOption,nr=or.onSelect,Pr=or.menuItemSelectedIcon,io=or.rawValues,Uo=or.fieldNames,gi=or.virtual,Qo=or.direction,ps=or.listHeight,$o=or.listItemHeight,pi="".concat(wi,"-item"),ur=(0,Gr.Z)(function(){return zr},[qe,zr],function(To,Ro){return Ro[0]&&To[1]!==Ro[1]}),Ur=Pt.useRef(null),uo=function(Ro){Ro.preventDefault()},qr=function(Ro){Ur.current&&Ur.current.scrollTo(typeof Ro=="number"?{index:Ro}:Ro)},ko=function(Ro){for(var us=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,os=ur.length,xr=0;xr<os;xr+=1){var Ne=(Ro+xr*us+os)%os,ls=ur[Ne],ra=ls.group,al=ls.data;if(!ra&&!al.disabled)return Ne}return-1},di=Pt.useState(function(){return ko(0)}),Co=(0,ee.Z)(di,2),jr=Co[0],Sr=Co[1],Ci=function(Ro){var us=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Sr(Ro);var os={source:us?"keyboard":"mouse"},xr=ur[Ro];if(!xr){ar(null,-1,os);return}ar(xr.value,Ro,os)};(0,Pt.useEffect)(function(){Ci(Lr!==!1?ko(0):-1)},[ur.length,er]);var Bo=Pt.useCallback(function(To){return io.has(To)&&Pi!=="combobox"},[Pi,(0,ce.Z)(io).toString(),io.size]);(0,Pt.useEffect)(function(){var To=setTimeout(function(){if(!oi&&qe&&io.size===1){var us=Array.from(io)[0],os=ur.findIndex(function(xr){var Ne=xr.data;return Ne.value===us});os!==-1&&(Ci(os),qr(os))}});if(qe){var Ro;(Ro=Ur.current)===null||Ro===void 0||Ro.scrollTo(void 0)}return function(){return clearTimeout(To)}},[qe,er,zr.length]);var xi=function(Ro){Ro!==void 0&&nr(Ro,{selected:!io.has(Ro)}),oi||On(!1)};if(Pt.useImperativeHandle(yn,function(){return{onKeyDown:function(Ro){var us=Ro.which,os=Ro.ctrlKey;switch(us){case et.Z.N:case et.Z.P:case et.Z.UP:case et.Z.DOWN:{var xr=0;if(us===et.Z.UP?xr=-1:us===et.Z.DOWN?xr=1:ys()&&os&&(us===et.Z.N?xr=1:us===et.Z.P&&(xr=-1)),xr!==0){var Ne=ko(jr+xr,xr);qr(Ne),Ci(Ne,!0)}break}case et.Z.ENTER:{var ls=ur[jr];ls&&!ls.data.disabled?xi(ls.value):xi(void 0),qe&&Ro.preventDefault();break}case et.Z.ESC:On(!1),qe&&Ro.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Ro){qr(Ro)}}}),ur.length===0)return Pt.createElement("div",{role:"listbox",id:"".concat(Oi,"_list"),className:"".concat(pi,"-empty"),onMouseDown:uo},ui);var Yo=Object.keys(Uo).map(function(To){return Uo[To]}),ha=function(Ro){return Ro.label};function vs(To,Ro){var us=To.group;return{role:us?"presentation":"option",id:"".concat(Oi,"_list_").concat(Ro)}}var da=function(Ro){var us=ur[Ro];if(!us)return null;var os=us.data||{},xr=os.value,Ne=us.group,ls=(0,oe.Z)(os,!0),ra=ha(us);return us?Pt.createElement("div",(0,Mt.Z)({"aria-label":typeof ra=="string"&&!Ne?ra:null},ls,{key:Ro},vs(us,Ro),{"aria-selected":Bo(xr)}),xr):null},ta={role:"listbox",id:"".concat(Oi,"_list")};return Pt.createElement(Pt.Fragment,null,gi&&Pt.createElement("div",(0,Mt.Z)({},ta,{style:{height:0,width:0,overflow:"hidden"}}),da(jr-1),da(jr),da(jr+1)),Pt.createElement(_o.Z,{itemKey:"key",ref:Ur,data:ur,height:ps,itemHeight:$o,fullHeight:!1,onMouseDown:uo,onScroll:Cr,virtual:gi,direction:Qo,innerProps:gi?null:ta},function(To,Ro){var us,os=To.group,xr=To.groupOption,Ne=To.data,ls=To.label,ra=To.value,al=Ne.key;if(os){var ll,bl=(ll=Ne.title)!==null&&ll!==void 0?ll:$t(ls)?ls.toString():void 0;return Pt.createElement("div",{className:Kt()(pi,"".concat(pi,"-group")),title:bl},ls!==void 0?ls:al)}var is=Ne.disabled,Vo=Ne.title,Es=Ne.children,Zo=Ne.style,Vs=Ne.className,yl=(0,Zt.Z)(Ne,jo),Ao=(0,lo.Z)(yl,Yo),yo=Bo(ra),Zi="".concat(pi,"-option"),bo=Kt()(pi,Zi,Vs,(us={},(0,ie.Z)(us,"".concat(Zi,"-grouped"),xr),(0,ie.Z)(us,"".concat(Zi,"-active"),jr===Ro&&!is),(0,ie.Z)(us,"".concat(Zi,"-disabled"),is),(0,ie.Z)(us,"".concat(Zi,"-selected"),yo),us)),xs=ha(To),ca=!Pr||typeof Pr=="function"||yo,aa=typeof xs=="number"?xs:xs||ra,Ho=$t(aa)?aa.toString():void 0;return Vo!==void 0&&(Ho=Vo),Pt.createElement("div",(0,Mt.Z)({},(0,oe.Z)(Ao),gi?{}:vs(To,Ro),{"aria-selected":yo,className:bo,title:Ho,onMouseMove:function(){jr===Ro||is||Ci(Ro)},onClick:function(){is||xi(ra)},style:Zo}),Pt.createElement("div",{className:"".concat(Zi,"-content")},aa),Pt.isValidElement(Pr)||yo,ca&&Pt.createElement(rt,{className:"".concat(pi,"-option-state"),customizeIcon:Pr,customizeIconProps:{isSelected:yo}},yo?"\u2713":null))}))},ws=Pt.forwardRef(ri);ws.displayName="OptionList";var Is=ws;function ma(dn){var Le=dn.mode,yn=dn.options,Qn=dn.children,wi=dn.backfill,Oi=dn.allowClear,qe=dn.placeholder,oi=dn.getInputElement,Pi=dn.showSearch,er=dn.onSearch,On=dn.defaultOpen,ui=dn.autoFocus,Cr=dn.labelInValue,or=dn.value,zr=dn.inputValue,ar=dn.optionLabelProp,Lr=isMultiple(Le),nr=Pi!==void 0?Pi:Lr||Le==="combobox",Pr=yn||convertChildrenToData(Qn);if(warning(Le!=="tags"||Pr.every(function(Qo){return!Qo.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Le==="tags"||Le==="combobox"){var io=Pr.some(function(Qo){return Qo.options?Qo.options.some(function(ps){return typeof("value"in ps?ps.value:ps.key)=="number"}):typeof("value"in Qo?Qo.value:Qo.key)=="number"});warning(!io,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Le!=="combobox"||!ar,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Le==="combobox"||!wi,"`backfill` only works with `combobox` mode."),warning(Le==="combobox"||!oi,"`getInputElement` only work with `combobox` mode."),noteOnce(Le!=="combobox"||!oi||!Oi||!qe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),er&&!nr&&Le!=="combobox"&&Le!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!On||ui,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),or!=null){var Uo=toArray(or);warning(!Cr||Uo.every(function(Qo){return _typeof(Qo)==="object"&&("key"in Qo||"value"in Qo)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Lr||Array.isArray(or),"`value` should be array when `mode` is `multiple` or `tags`")}if(Qn){var gi=null;toNodeArray(Qn).some(function(Qo){if(!React.isValidElement(Qo)||!Qo.type)return!1;var ps=Qo,$o=ps.type;if($o.isSelectOption)return!1;if($o.isSelectOptGroup){var pi=toNodeArray(Qo.props.children).every(function(ur){return!React.isValidElement(ur)||!Qo.type||ur.type.isSelectOption?!0:(gi=ur.type,!1)});return!pi}return gi=$o,!0}),gi&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(gi.displayName||gi.name||gi,"`.")),warning(zr===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function va(dn,Le){if(dn){var yn=function Qn(wi){for(var Oi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qe=0;qe<wi.length;qe++){var oi=wi[qe];if(oi[Le==null?void 0:Le.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Oi&&Array.isArray(oi[Le==null?void 0:Le.options])&&Qn(oi[Le==null?void 0:Le.options],!0))break}};yn(dn)}}var qs=null,_r=["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"],Dr=["inputValue"];function kn(dn){return!dn||(0,Nt.Z)(dn)!=="object"}var Tn=Pt.forwardRef(function(dn,Le){var yn=dn.id,Qn=dn.mode,wi=dn.prefixCls,Oi=wi===void 0?"rc-select":wi,qe=dn.backfill,oi=dn.fieldNames,Pi=dn.inputValue,er=dn.searchValue,On=dn.onSearch,ui=dn.autoClearSearchValue,Cr=ui===void 0?!0:ui,or=dn.onSelect,zr=dn.onDeselect,ar=dn.dropdownMatchSelectWidth,Lr=ar===void 0?!0:ar,nr=dn.filterOption,Pr=dn.filterSort,io=dn.optionFilterProp,Uo=dn.optionLabelProp,gi=dn.options,Qo=dn.children,ps=dn.defaultActiveFirstOption,$o=dn.menuItemSelectedIcon,pi=dn.virtual,ur=dn.direction,Ur=dn.listHeight,uo=Ur===void 0?200:Ur,qr=dn.listItemHeight,ko=qr===void 0?20:qr,di=dn.value,Co=dn.defaultValue,jr=dn.labelInValue,Sr=dn.onChange,Ci=(0,Zt.Z)(dn,_r),Bo=(0,Bn.ZP)(yn),xi=Oe(Qn),Yo=!!(!gi&&Qo),ha=Pt.useMemo(function(){return nr===void 0&&Qn==="combobox"?!1:nr},[nr,Qn]),vs=Pt.useMemo(function(){return At(oi,Yo)},[JSON.stringify(oi),Yo]),da=(0,jt.Z)("",{value:er!==void 0?er:Pi,postState:function(_s){return _s||""}}),ta=(0,ee.Z)(da,2),To=ta[0],Ro=ta[1],us=mr(gi,Qo,vs,io,Uo),os=us.valueOptions,xr=us.labelOptions,Ne=us.options,ls=Pt.useCallback(function(qo){var _s=Ke(qo);return _s.map(function(ms){var Rr,ul,Os,yu,Uu;if(kn(ms))Rr=ms;else{var Vl;Os=ms.key,ul=ms.label,Rr=(Vl=ms.value)!==null&&Vl!==void 0?Vl:Os}var fr=os.get(Rr);if(fr){var Wa;if(ul===void 0&&(ul=fr==null?void 0:fr[Uo||vs.label]),Os===void 0&&(Os=(Wa=fr==null?void 0:fr.key)!==null&&Wa!==void 0?Wa:Rr),yu=fr==null?void 0:fr.disabled,Uu=fr==null?void 0:fr.title,0)var nl}return{label:ul,value:Rr,key:Os,disabled:yu,title:Uu}})},[vs,Uo,os]),ra=(0,jt.Z)(Co,{value:di}),al=(0,ee.Z)(ra,2),ll=al[0],bl=al[1],is=Pt.useMemo(function(){var qo,_s=ls(ll);return Qn==="combobox"&&Me((qo=_s[0])===null||qo===void 0?void 0:qo.value)?[]:_s},[ll,ls,Qn]),Vo=Vn(is,os),Es=(0,ee.Z)(Vo,2),Zo=Es[0],Vs=Es[1],yl=Pt.useMemo(function(){if(!Qn&&Zo.length===1){var qo=Zo[0];if(qo.value===null&&(qo.label===null||qo.label===void 0))return[]}return Zo.map(function(_s){var ms;return(0,Ie.Z)((0,Ie.Z)({},_s),{},{label:(ms=_s.label)!==null&&ms!==void 0?ms:_s.value})})},[Qn,Zo]),Ao=Pt.useMemo(function(){return new Set(Zo.map(function(qo){return qo.value}))},[Zo]);Pt.useEffect(function(){if(Qn==="combobox"){var qo,_s=(qo=Zo[0])===null||qo===void 0?void 0:qo.value;Ro(He(_s)?String(_s):"")}},[Zo]);var yo=Mr(function(qo,_s){var ms,Rr=_s!=null?_s:qo;return ms={},(0,ie.Z)(ms,vs.value,qo),(0,ie.Z)(ms,vs.label,Rr),ms}),Zi=Pt.useMemo(function(){if(Qn!=="tags")return Ne;var qo=(0,ce.Z)(Ne),_s=function(Rr){return os.has(Rr)};return(0,ce.Z)(Zo).sort(function(ms,Rr){return ms.value<Rr.value?-1:1}).forEach(function(ms){var Rr=ms.value;_s(Rr)||qo.push(yo(Rr,ms.label))}),qo},[yo,Ne,os,Zo,Qn]),bo=An(Zi,vs,To,ha,io),xs=Pt.useMemo(function(){return Qn!=="tags"||!To||bo.some(function(qo){return qo[io||"value"]===To})||bo.some(function(qo){return qo[vs.value]===To})?bo:[yo(To)].concat((0,ce.Z)(bo))},[yo,io,Qn,bo,To,vs]),ca=Pt.useMemo(function(){return Pr?(0,ce.Z)(xs).sort(function(qo,_s){return Pr(qo,_s)}):xs},[xs,Pr]),aa=Pt.useMemo(function(){return le(ca,{fieldNames:vs,childrenAsData:Yo})},[ca,vs,Yo]),Ho=function(_s){var ms=ls(_s);if(bl(ms),Sr&&(ms.length!==Zo.length||ms.some(function(Os,yu){var Uu;return((Uu=Zo[yu])===null||Uu===void 0?void 0:Uu.value)!==(Os==null?void 0:Os.value)}))){var Rr=jr?ms:ms.map(function(Os){return Os.value}),ul=ms.map(function(Os){return we(Vs(Os.value))});Sr(xi?Rr:Rr[0],xi?ul:ul[0])}},Zs=Pt.useState(null),ka=(0,ee.Z)(Zs,2),Ml=ka[0],Ga=ka[1],Ss=Pt.useState(0),ai=(0,ee.Z)(Ss,2),Ta=ai[0],dc=ai[1],hu=ps!==void 0?ps:Qn!=="combobox",kh=Pt.useCallback(function(qo,_s){var ms=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Rr=ms.source,ul=Rr===void 0?"keyboard":Rr;dc(_s),qe&&Qn==="combobox"&&qo!==null&&ul==="keyboard"&&Ga(String(qo))},[qe,Qn]),Wr=function(_s,ms,Rr){var ul=function(){var $a,Fo=Vs(_s);return[jr?{label:Fo==null?void 0:Fo[vs.label],value:_s,key:($a=Fo==null?void 0:Fo.key)!==null&&$a!==void 0?$a:_s}:_s,we(Fo)]};if(ms&&or){var Os=ul(),yu=(0,ee.Z)(Os,2),Uu=yu[0],Vl=yu[1];or(Uu,Vl)}else if(!ms&&zr&&Rr!=="clear"){var fr=ul(),Wa=(0,ee.Z)(fr,2),nl=Wa[0],Cl=Wa[1];zr(nl,Cl)}},zs=Mr(function(qo,_s){var ms,Rr=xi?_s.selected:!0;Rr?ms=xi?[].concat((0,ce.Z)(Zo),[qo]):[qo]:ms=Zo.filter(function(ul){return ul.value!==qo}),Ho(ms),Wr(qo,Rr),Qn==="combobox"?Ga(""):(!Oe||Cr)&&(Ro(""),Ga(""))}),Ms=function(_s,ms){Ho(_s);var Rr=ms.type,ul=ms.values;(Rr==="remove"||Rr==="clear")&&ul.forEach(function(Os){Wr(Os.value,!1,Rr)})},Cs=function(_s,ms){if(Ro(_s),Ga(null),ms.source==="submit"){var Rr=(_s||"").trim();if(Rr){var ul=Array.from(new Set([].concat((0,ce.Z)(Ao),[Rr])));Ho(ul),Wr(Rr,!0),Ro("")}return}ms.source!=="blur"&&(Qn==="combobox"&&Ho(_s),On==null||On(_s))},Gs=function(_s){var ms=_s;Qn!=="tags"&&(ms=_s.map(function(ul){var Os=xr.get(ul);return Os==null?void 0:Os.value}).filter(function(ul){return ul!==void 0}));var Rr=Array.from(new Set([].concat((0,ce.Z)(Ao),(0,ce.Z)(ms))));Ho(Rr),Rr.forEach(function(ul){Wr(ul,!0)})},cu=Pt.useMemo(function(){var qo=pi!==!1&&Lr!==!1;return(0,Ie.Z)((0,Ie.Z)({},us),{},{flattenOptions:aa,onActiveValue:kh,defaultActiveFirstOption:hu,onSelect:zs,menuItemSelectedIcon:$o,rawValues:Ao,fieldNames:vs,virtual:qo,direction:ur,listHeight:uo,listItemHeight:ko,childrenAsData:Yo})},[us,aa,kh,hu,zs,$o,Ao,vs,pi,Lr,uo,ko,Yo]);return Pt.createElement(co.Provider,{value:cu},Pt.createElement(rn,(0,Mt.Z)({},Ci,{id:Bo,prefixCls:Oi,ref:Le,omitDomProps:Dr,mode:Qn,displayValues:yl,onDisplayValuesChange:Ms,direction:ur,searchValue:To,onSearch:Cs,autoClearSearchValue:Cr,onSearchSplit:Gs,dropdownMatchSelectWidth:Lr,OptionList:Is,emptyOptions:!aa.length,activeValue:Ml,activeDescendantId:"".concat(Bo,"_list_").concat(Ta)})))}),De=Tn;De.Option=kr,De.OptGroup=Yr;var ti=De,yi=ti},9296:function(hi,Cn,bt){"use strict";bt.r(Cn),bt.d(Cn,{ResizableTextArea:function(){return be},default:function(){return Me}});var Mt=bt(96663),ce=bt(44127),ie=bt(90493),Ie=bt(20135),ee=bt(72071),Zt=bt(6620),Nt=bt(19127),jt=bt(92310),qt=bt.n(jt),Pt=bt(93681),re=bt(5643),Kt=bt(18929),Yt=bt(59301),Ct=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"],ht={},dt;function St(We){var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ve=We.getAttribute("id")||We.getAttribute("data-reactid")||We.getAttribute("name");if(_e&&ht[ve])return ht[ve];var ne=window.getComputedStyle(We),Se=ne.getPropertyValue("box-sizing")||ne.getPropertyValue("-moz-box-sizing")||ne.getPropertyValue("-webkit-box-sizing"),Pn=parseFloat(ne.getPropertyValue("padding-bottom"))+parseFloat(ne.getPropertyValue("padding-top")),Mn=parseFloat(ne.getPropertyValue("border-bottom-width"))+parseFloat(ne.getPropertyValue("border-top-width")),Xe=rt.map(function(Zn){return"".concat(Zn,":").concat(ne.getPropertyValue(Zn))}).join(";"),Nn={sizingStyle:Xe,paddingSize:Pn,borderSize:Mn,boxSizing:Se};return _e&&ve&&(ht[ve]=Nn),Nn}function It(We){var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ne=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)),We.getAttribute("wrap")?dt.setAttribute("wrap",We.getAttribute("wrap")):dt.removeAttribute("wrap");var Se=St(We,_e),Pn=Se.paddingSize,Mn=Se.borderSize,Xe=Se.boxSizing,Nn=Se.sizingStyle;dt.setAttribute("style","".concat(Nn,";").concat(lt)),dt.value=We.value||We.placeholder||"";var Zn=void 0,fi=void 0,zn,Si=dt.scrollHeight;if(Xe==="border-box"?Si+=Mn:Xe==="content-box"&&(Si-=Pn),ve!==null||ne!==null){dt.value=" ";var nn=dt.scrollHeight-Pn;ve!==null&&(Zn=nn*ve,Xe==="border-box"&&(Zn=Zn+Pn+Mn),Si=Math.max(Zn,Si)),ne!==null&&(fi=nn*ne,Xe==="border-box"&&(fi=fi+Pn+Mn),zn=Si>fi?"":"hidden",Si=Math.min(fi,Si))}var Fi={height:Si,overflowY:zn,resize:"none"};return Zn&&(Fi.minHeight=Zn),fi&&(Fi.maxHeight=fi),Fi}var _t=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Gt=0,oe=1,ue=2,de=Yt.forwardRef(function(We,_e){var ve=We,ne=ve.prefixCls,Se=ve.onPressEnter,Pn=ve.defaultValue,Mn=ve.value,Xe=ve.autoSize,Nn=ve.onResize,Zn=ve.className,fi=ve.style,zn=ve.disabled,Si=ve.onChange,nn=ve.onInternalAutoSize,Fi=(0,Zt.Z)(ve,_t),Ti=(0,Kt.Z)(Pn,{value:Mn,postState:function(Yr){return Yr!=null?Yr:""}}),Lt=(0,ee.Z)(Ti,2),Ot=Lt[0],mt=Lt[1],ft=function(Yr){mt(Yr.target.value),Si==null||Si(Yr)},pt=Yt.useRef();Yt.useImperativeHandle(_e,function(){return{textArea:pt.current}});var At=Yt.useMemo(function(){return Xe&&(0,Ie.Z)(Xe)==="object"?[Xe.minRows,Xe.maxRows]:[]},[Xe]),le=(0,ee.Z)(At,2),we=le[0],ae=le[1],me=!!Xe,Re=function(){try{if(document.activeElement===pt.current){var Yr=pt.current,Zr=Yr.selectionStart,kr=Yr.selectionEnd,Gr=Yr.scrollTop;pt.current.setSelectionRange(Zr,kr),pt.current.scrollTop=Gr}}catch(lo){}},Oe=Yt.useState(ue),ke=(0,ee.Z)(Oe,2),rn=ke[0],Vn=ke[1],sn=Yt.useState(),An=(0,ee.Z)(sn,2),Bn=An[0],ii=An[1],_n=function(){Vn(Gt)};(0,et.Z)(function(){me&&_n()},[Mn,we,ae,me]),(0,et.Z)(function(){if(rn===Gt)Vn(oe);else if(rn===oe){var ao=It(pt.current,!1,we,ae);Vn(ue),ii(ao)}else Re()},[rn]);var ji=Yt.useRef(),cr=function(){tt.Z.cancel(ji.current)},Ji=function(Yr){rn===ue&&(Nn==null||Nn(Yr),Xe&&(cr(),ji.current=(0,tt.Z)(function(){_n()})))};Yt.useEffect(function(){return cr},[]);var mr=me?Bn:null,Mr=(0,ce.Z)((0,ce.Z)({},fi),mr);return(rn===Gt||rn===oe)&&(Mr.overflowY="hidden",Mr.overflowX="hidden"),Yt.createElement(Ct.Z,{onResize:Ji,disabled:!(Xe||Nn)},Yt.createElement("textarea",(0,Mt.Z)({},Fi,{ref:pt,style:Mr,className:qt()(ne,Zn,(0,ie.Z)({},"".concat(ne,"-disabled"),zn)),disabled:zn,value:Ot,onChange:ft})))}),be=de,Jt=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function Ke(We,_e){return(0,Nt.Z)(We||"").slice(0,_e).join("")}function Wt(We,_e,ve,ne){var Se=ve;return We?Se=Ke(ve,ne):(0,Nt.Z)(_e||"").length<ve.length&&(0,Nt.Z)(ve||"").length>ne&&(Se=_e),Se}var Ge=Yt.forwardRef(function(We,_e){var ve,ne=We.defaultValue,Se=We.value,Pn=We.onFocus,Mn=We.onBlur,Xe=We.onChange,Nn=We.allowClear,Zn=We.maxLength,fi=We.onCompositionStart,zn=We.onCompositionEnd,Si=We.suffix,nn=We.prefixCls,Fi=nn===void 0?"rc-textarea":nn,Ti=We.classes,Lt=We.showCount,Ot=We.className,mt=We.style,ft=We.disabled,pt=We.hidden,At=We.classNames,le=We.styles,we=We.onResize,ae=(0,Zt.Z)(We,Jt),me=(0,Kt.Z)(ne,{value:Se,defaultValue:ne}),Re=(0,ee.Z)(me,2),Oe=Re[0],ke=Re[1],rn=(0,Yt.useRef)(null),Vn=Yt.useState(!1),sn=(0,ee.Z)(Vn,2),An=sn[0],Bn=sn[1],ii=Yt.useState(!1),_n=(0,ee.Z)(ii,2),ji=_n[0],cr=_n[1],Ji=Yt.useRef(),mr=Yt.useRef(0),Mr=Yt.useState(null),ao=(0,ee.Z)(Mr,2),Yr=ao[0],Zr=ao[1],kr=function(){var kn;(kn=rn.current)===null||kn===void 0||kn.textArea.focus()};(0,Yt.useImperativeHandle)(_e,function(){return{resizableTextArea:rn.current,focus:kr,blur:function(){var kn;(kn=rn.current)===null||kn===void 0||kn.textArea.blur()}}}),(0,Yt.useEffect)(function(){Bn(function(Dr){return!ft&&Dr})},[ft]);var Gr=Number(Zn)>0,lo=function(kn){cr(!0),Ji.current=Oe,mr.current=kn.currentTarget.selectionStart,fi==null||fi(kn)},_o=function(kn){cr(!1);var Tn=kn.currentTarget.value;if(Gr){var De,ti=mr.current>=Zn+1||mr.current===((De=Ji.current)===null||De===void 0?void 0:De.length);Tn=Wt(ti,Ji.current,Tn,Zn)}Tn!==Oe&&(ke(Tn),(0,re.rJ)(kn.currentTarget,kn,Xe,Tn)),zn==null||zn(kn)},ns=function(kn){var Tn=kn.target.value;if(!ji&&Gr){var De=kn.target.selectionStart>=Zn+1||kn.target.selectionStart===Tn.length||!kn.target.selectionStart;Tn=Wt(De,Oe,Tn,Zn)}ke(Tn),(0,re.rJ)(kn.currentTarget,kn,Xe,Tn)},co=function(kn){var Tn=ae.onPressEnter,De=ae.onKeyDown;kn.key==="Enter"&&Tn&&Tn(kn),De==null||De(kn)},ys=function(kn){Bn(!0),Pn==null||Pn(kn)},jo=function(kn){Bn(!1),Mn==null||Mn(kn)},$t=function(kn){var Tn;ke(""),kr(),(0,re.rJ)((Tn=rn.current)===null||Tn===void 0?void 0:Tn.textArea,kn,Xe)},ri=(0,re.D7)(Oe);!ji&&Gr&&Se==null&&(ri=Ke(ri,Zn));var ws=Si,Is;if(Lt){var ma=(0,Nt.Z)(ri).length;(0,Ie.Z)(Lt)==="object"?Is=Lt.formatter({value:ri,count:ma,maxLength:Zn}):Is="".concat(ma).concat(Gr?" / ".concat(Zn):""),ws=Yt.createElement(Yt.Fragment,null,ws,Yt.createElement("span",{className:qt()("".concat(Fi,"-data-count"),At==null?void 0:At.count),style:le==null?void 0:le.count},Is))}var va=function(kn){var Tn;we==null||we(kn),(Tn=rn.current)!==null&&Tn!==void 0&&Tn.textArea.style.height&&Zr(!0)},qs=!ae.autoSize&&!Lt&&!Nn,_r=Yt.createElement(Pt.BaseInput,{value:ri,allowClear:Nn,handleReset:$t,suffix:ws,prefixCls:Fi,classes:{affixWrapper:qt()(Ti==null?void 0:Ti.affixWrapper,(ve={},(0,ie.Z)(ve,"".concat(Fi,"-show-count"),Lt),(0,ie.Z)(ve,"".concat(Fi,"-textarea-allow-clear"),Nn),ve))},disabled:ft,focused:An,className:Ot,style:(0,ce.Z)((0,ce.Z)({},mt),Yr&&!qs?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Is=="string"?Is:void 0}},hidden:pt,inputElement:Yt.createElement(be,(0,Mt.Z)({},ae,{onKeyDown:co,onChange:ns,onFocus:ys,onBlur:jo,onCompositionStart:lo,onCompositionEnd:_o,className:At==null?void 0:At.textarea,style:(0,ce.Z)((0,ce.Z)({},le==null?void 0:le.textarea),{},{resize:mt==null?void 0:mt.resize}),disabled:ft,prefixCls:Fi,onResize:va,ref:rn}))});return _r}),He=Ge,Me=He},39417:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return oe}});var Mt=bt(96663),ce=bt(90493),ie=bt(6620),Ie=bt(44127),ee=bt(52884),Zt=bt(95727),Nt=bt(89866),jt=bt(65711),qt=bt(85745),Pt=bt(92310),re=bt.n(Pt),Kt=bt(26112),Yt=bt(59301),Ct=bt(39378),et=function(de){for(var be=de.prefixCls,Jt=de.level,Ke=de.isStart,Wt=de.isEnd,Ge="".concat(be,"-indent-unit"),He=[],Me=0;Me<Jt;Me+=1){var We;He.push(Yt.createElement("span",{key:Me,className:re()(Ge,(We={},(0,ce.Z)(We,"".concat(Ge,"-start"),Ke[Me]),(0,ce.Z)(We,"".concat(Ge,"-end"),Wt[Me]),We))}))}return Yt.createElement("span",{"aria-hidden":"true",className:"".concat(be,"-indent")},He)},tt=Yt.memo(et),lt=bt(67841),rt=bt(71430),ht=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],dt="open",St="close",It="---",_t=function(ue){(0,jt.Z)(be,ue);var de=(0,qt.Z)(be);function be(){var Jt;(0,ee.Z)(this,be);for(var Ke=arguments.length,Wt=new Array(Ke),Ge=0;Ge<Ke;Ge++)Wt[Ge]=arguments[Ge];return Jt=de.call.apply(de,[this].concat(Wt)),Jt.state={dragNodeHighlight:!1},Jt.selectHandle=void 0,Jt.cacheIndent=void 0,Jt.onSelectorClick=function(He){var Me=Jt.props.context.onNodeClick;Me(He,(0,rt.F)(Jt.props)),Jt.isSelectable()?Jt.onSelect(He):Jt.onCheck(He)},Jt.onSelectorDoubleClick=function(He){var Me=Jt.props.context.onNodeDoubleClick;Me(He,(0,rt.F)(Jt.props))},Jt.onSelect=function(He){if(!Jt.isDisabled()){var Me=Jt.props.context.onNodeSelect;Me(He,(0,rt.F)(Jt.props))}},Jt.onCheck=function(He){if(!Jt.isDisabled()){var Me=Jt.props,We=Me.disableCheckbox,_e=Me.checked,ve=Jt.props.context.onNodeCheck;if(!(!Jt.isCheckable()||We)){var ne=!_e;ve(He,(0,rt.F)(Jt.props),ne)}}},Jt.onMouseEnter=function(He){var Me=Jt.props.context.onNodeMouseEnter;Me(He,(0,rt.F)(Jt.props))},Jt.onMouseLeave=function(He){var Me=Jt.props.context.onNodeMouseLeave;Me(He,(0,rt.F)(Jt.props))},Jt.onContextMenu=function(He){var Me=Jt.props.context.onNodeContextMenu;Me(He,(0,rt.F)(Jt.props))},Jt.onDragStart=function(He){var Me=Jt.props.context.onNodeDragStart;He.stopPropagation(),Jt.setState({dragNodeHighlight:!0}),Me(He,(0,Nt.Z)(Jt));try{He.dataTransfer.setData("text/plain","")}catch(We){}},Jt.onDragEnter=function(He){var Me=Jt.props.context.onNodeDragEnter;He.preventDefault(),He.stopPropagation(),Me(He,(0,Nt.Z)(Jt))},Jt.onDragOver=function(He){var Me=Jt.props.context.onNodeDragOver;He.preventDefault(),He.stopPropagation(),Me(He,(0,Nt.Z)(Jt))},Jt.onDragLeave=function(He){var Me=Jt.props.context.onNodeDragLeave;He.stopPropagation(),Me(He,(0,Nt.Z)(Jt))},Jt.onDragEnd=function(He){var Me=Jt.props.context.onNodeDragEnd;He.stopPropagation(),Jt.setState({dragNodeHighlight:!1}),Me(He,(0,Nt.Z)(Jt))},Jt.onDrop=function(He){var Me=Jt.props.context.onNodeDrop;He.preventDefault(),He.stopPropagation(),Jt.setState({dragNodeHighlight:!1}),Me(He,(0,Nt.Z)(Jt))},Jt.onExpand=function(He){var Me=Jt.props,We=Me.loading,_e=Me.context.onNodeExpand;We||_e(He,(0,rt.F)(Jt.props))},Jt.setSelectHandle=function(He){Jt.selectHandle=He},Jt.getNodeState=function(){var He=Jt.props.expanded;return Jt.isLeaf()?null:He?dt:St},Jt.hasChildren=function(){var He=Jt.props.eventKey,Me=Jt.props.context.keyEntities,We=(0,lt.Z)(Me,He)||{},_e=We.children;return!!(_e||[]).length},Jt.isLeaf=function(){var He=Jt.props,Me=He.isLeaf,We=He.loaded,_e=Jt.props.context.loadData,ve=Jt.hasChildren();return Me===!1?!1:Me||!_e&&!ve||_e&&We&&!ve},Jt.isDisabled=function(){var He=Jt.props.disabled,Me=Jt.props.context.disabled;return!!(Me||He)},Jt.isCheckable=function(){var He=Jt.props.checkable,Me=Jt.props.context.checkable;return!Me||He===!1?!1:Me},Jt.syncLoadData=function(He){var Me=He.expanded,We=He.loading,_e=He.loaded,ve=Jt.props.context,ne=ve.loadData,Se=ve.onNodeLoad;We||ne&&Me&&!Jt.isLeaf()&&!Jt.hasChildren()&&!_e&&Se((0,rt.F)(Jt.props))},Jt.isDraggable=function(){var He=Jt.props,Me=He.data,We=He.context.draggable;return!!(We&&(!We.nodeDraggable||We.nodeDraggable(Me)))},Jt.renderDragHandler=function(){var He=Jt.props.context,Me=He.draggable,We=He.prefixCls;return Me!=null&&Me.icon?Yt.createElement("span",{className:"".concat(We,"-draggable-icon")},Me.icon):null},Jt.renderSwitcherIconDom=function(He){var Me=Jt.props.switcherIcon,We=Jt.props.context.switcherIcon,_e=Me||We;return typeof _e=="function"?_e((0,Ie.Z)((0,Ie.Z)({},Jt.props),{},{isLeaf:He})):_e},Jt.renderSwitcher=function(){var He=Jt.props.expanded,Me=Jt.props.context.prefixCls;if(Jt.isLeaf()){var We=Jt.renderSwitcherIconDom(!0);return We!==!1?Yt.createElement("span",{className:re()("".concat(Me,"-switcher"),"".concat(Me,"-switcher-noop"))},We):null}var _e=re()("".concat(Me,"-switcher"),"".concat(Me,"-switcher_").concat(He?dt:St)),ve=Jt.renderSwitcherIconDom(!1);return ve!==!1?Yt.createElement("span",{onClick:Jt.onExpand,className:_e},ve):null},Jt.renderCheckbox=function(){var He=Jt.props,Me=He.checked,We=He.halfChecked,_e=He.disableCheckbox,ve=Jt.props.context.prefixCls,ne=Jt.isDisabled(),Se=Jt.isCheckable();if(!Se)return null;var Pn=typeof Se!="boolean"?Se:null;return Yt.createElement("span",{className:re()("".concat(ve,"-checkbox"),Me&&"".concat(ve,"-checkbox-checked"),!Me&&We&&"".concat(ve,"-checkbox-indeterminate"),(ne||_e)&&"".concat(ve,"-checkbox-disabled")),onClick:Jt.onCheck},Pn)},Jt.renderIcon=function(){var He=Jt.props.loading,Me=Jt.props.context.prefixCls;return Yt.createElement("span",{className:re()("".concat(Me,"-iconEle"),"".concat(Me,"-icon__").concat(Jt.getNodeState()||"docu"),He&&"".concat(Me,"-icon_loading"))})},Jt.renderSelector=function(){var He=Jt.state.dragNodeHighlight,Me=Jt.props,We=Me.title,_e=We===void 0?It:We,ve=Me.selected,ne=Me.icon,Se=Me.loading,Pn=Me.data,Mn=Jt.props.context,Xe=Mn.prefixCls,Nn=Mn.showIcon,Zn=Mn.icon,fi=Mn.loadData,zn=Mn.titleRender,Si=Jt.isDisabled(),nn="".concat(Xe,"-node-content-wrapper"),Fi;if(Nn){var Ti=ne||Zn;Fi=Ti?Yt.createElement("span",{className:re()("".concat(Xe,"-iconEle"),"".concat(Xe,"-icon__customize"))},typeof Ti=="function"?Ti(Jt.props):Ti):Jt.renderIcon()}else fi&&Se&&(Fi=Jt.renderIcon());var Lt;typeof _e=="function"?Lt=_e(Pn):zn?Lt=zn(Pn):Lt=_e;var Ot=Yt.createElement("span",{className:"".concat(Xe,"-title")},Lt);return Yt.createElement("span",{ref:Jt.setSelectHandle,title:typeof _e=="string"?_e:"",className:re()("".concat(nn),"".concat(nn,"-").concat(Jt.getNodeState()||"normal"),!Si&&(ve||He)&&"".concat(Xe,"-node-selected")),onMouseEnter:Jt.onMouseEnter,onMouseLeave:Jt.onMouseLeave,onContextMenu:Jt.onContextMenu,onClick:Jt.onSelectorClick,onDoubleClick:Jt.onSelectorDoubleClick},Fi,Ot,Jt.renderDropIndicator())},Jt.renderDropIndicator=function(){var He=Jt.props,Me=He.disabled,We=He.eventKey,_e=Jt.props.context,ve=_e.draggable,ne=_e.dropLevelOffset,Se=_e.dropPosition,Pn=_e.prefixCls,Mn=_e.indent,Xe=_e.dropIndicatorRender,Nn=_e.dragOverNodeKey,Zn=_e.direction,fi=!!ve,zn=!Me&&fi&&Nn===We,Si=Mn!=null?Mn:Jt.cacheIndent;return Jt.cacheIndent=Mn,zn?Xe({dropPosition:Se,dropLevelOffset:ne,indent:Si,prefixCls:Pn,direction:Zn}):null},Jt}return(0,Zt.Z)(be,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Ke=this.props.selectable,Wt=this.props.context.selectable;return typeof Ke=="boolean"?Ke:Wt}},{key:"render",value:function(){var Ke,Wt=this.props,Ge=Wt.eventKey,He=Wt.className,Me=Wt.style,We=Wt.dragOver,_e=Wt.dragOverGapTop,ve=Wt.dragOverGapBottom,ne=Wt.isLeaf,Se=Wt.isStart,Pn=Wt.isEnd,Mn=Wt.expanded,Xe=Wt.selected,Nn=Wt.checked,Zn=Wt.halfChecked,fi=Wt.loading,zn=Wt.domRef,Si=Wt.active,nn=Wt.data,Fi=Wt.onMouseMove,Ti=Wt.selectable,Lt=(0,ie.Z)(Wt,ht),Ot=this.props.context,mt=Ot.prefixCls,ft=Ot.filterTreeNode,pt=Ot.keyEntities,At=Ot.dropContainerKey,le=Ot.dropTargetKey,we=Ot.draggingNodeKey,ae=this.isDisabled(),me=(0,Kt.Z)(Lt,{aria:!0,data:!0}),Re=(0,lt.Z)(pt,Ge)||{},Oe=Re.level,ke=Pn[Pn.length-1],rn=this.isDraggable(),Vn=!ae&&rn,sn=we===Ge,An=Ti!==void 0?{"aria-selected":!!Ti}:void 0;return Yt.createElement("div",(0,Mt.Z)({ref:zn,className:re()(He,"".concat(mt,"-treenode"),(Ke={},(0,ce.Z)(Ke,"".concat(mt,"-treenode-disabled"),ae),(0,ce.Z)(Ke,"".concat(mt,"-treenode-switcher-").concat(Mn?"open":"close"),!ne),(0,ce.Z)(Ke,"".concat(mt,"-treenode-checkbox-checked"),Nn),(0,ce.Z)(Ke,"".concat(mt,"-treenode-checkbox-indeterminate"),Zn),(0,ce.Z)(Ke,"".concat(mt,"-treenode-selected"),Xe),(0,ce.Z)(Ke,"".concat(mt,"-treenode-loading"),fi),(0,ce.Z)(Ke,"".concat(mt,"-treenode-active"),Si),(0,ce.Z)(Ke,"".concat(mt,"-treenode-leaf-last"),ke),(0,ce.Z)(Ke,"".concat(mt,"-treenode-draggable"),rn),(0,ce.Z)(Ke,"dragging",sn),(0,ce.Z)(Ke,"drop-target",le===Ge),(0,ce.Z)(Ke,"drop-container",At===Ge),(0,ce.Z)(Ke,"drag-over",!ae&&We),(0,ce.Z)(Ke,"drag-over-gap-top",!ae&&_e),(0,ce.Z)(Ke,"drag-over-gap-bottom",!ae&&ve),(0,ce.Z)(Ke,"filter-node",ft&&ft((0,rt.F)(this.props))),Ke)),style:Me,draggable:Vn,"aria-grabbed":sn,onDragStart:Vn?this.onDragStart:void 0,onDragEnter:rn?this.onDragEnter:void 0,onDragOver:rn?this.onDragOver:void 0,onDragLeave:rn?this.onDragLeave:void 0,onDrop:rn?this.onDrop:void 0,onDragEnd:rn?this.onDragEnd:void 0,onMouseMove:Fi},An,me),Yt.createElement(tt,{prefixCls:mt,level:Oe,isStart:Se,isEnd:Pn}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),be}(Yt.Component),Gt=function(de){return Yt.createElement(Ct.k.Consumer,null,function(be){return Yt.createElement(_t,(0,Mt.Z)({},de,{context:be}))})};Gt.displayName="TreeNode",Gt.isTreeNode=1;var oe=Gt},39378:function(hi,Cn,bt){"use strict";bt.d(Cn,{k:function(){return ce}});var Mt=bt(59301),ce=Mt.createContext(null)},43858:function(hi,Cn,bt){"use strict";bt.d(Cn,{O:function(){return oe.Z},Z:function(){return Ot}});var Mt=bt(96663),ce=bt(90493),ie=bt(20135),Ie=bt(44127),ee=bt(19127),Zt=bt(52884),Nt=bt(95727),jt=bt(89866),qt=bt(65711),Pt=bt(85745),re=bt(92310),Kt=bt.n(re),Yt=bt(10228),Ct=bt(26112),et=bt(48736),tt=bt(59301),lt=bt(39378);function rt(mt){var ft=mt.dropPosition,pt=mt.dropLevelOffset,At=mt.indent,le={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(ft){case-1:le.top=0,le.left=-pt*At;break;case 1:le.bottom=0,le.left=-pt*At;break;case 0:le.bottom=0,le.left=At;break}return tt.createElement("div",{style:le})}function ht(mt){if(mt==null)throw new TypeError("Cannot destructure "+mt)}var dt=bt(72071),St=bt(6620),It=bt(34280),_t=bt(24916),Gt=bt(77900),oe=bt(39417);function ue(mt,ft){var pt=tt.useState(!1),At=(0,dt.Z)(pt,2),le=At[0],we=At[1];tt.useLayoutEffect(function(){if(le)return mt(),function(){ft()}},[le]),tt.useLayoutEffect(function(){return we(!0),function(){we(!1)}},[])}var de=bt(71430),be=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Jt=function(ft,pt){var At=ft.className,le=ft.style,we=ft.motion,ae=ft.motionNodes,me=ft.motionType,Re=ft.onMotionStart,Oe=ft.onMotionEnd,ke=ft.active,rn=ft.treeNodeRequiredProps,Vn=(0,St.Z)(ft,be),sn=tt.useState(!0),An=(0,dt.Z)(sn,2),Bn=An[0],ii=An[1],_n=tt.useContext(lt.k),ji=_n.prefixCls,cr=ae&&me!=="hide";(0,It.Z)(function(){ae&&cr!==Bn&&ii(cr)},[ae]);var Ji=function(){ae&&Re()},mr=tt.useRef(!1),Mr=function(){ae&&!mr.current&&(mr.current=!0,Oe())};ue(Ji,Mr);var ao=function(Zr){cr===Zr&&Mr()};return ae?tt.createElement(Gt.default,(0,Mt.Z)({ref:pt,visible:Bn},we,{motionAppear:me==="show",onVisibleChanged:ao}),function(Yr,Zr){var kr=Yr.className,Gr=Yr.style;return tt.createElement("div",{ref:Zr,className:Kt()("".concat(ji,"-treenode-motion"),kr),style:Gr},ae.map(function(lo){var _o=(0,Mt.Z)({},(ht(lo.data),lo.data)),ns=lo.title,co=lo.key,ys=lo.isStart,jo=lo.isEnd;delete _o.children;var $t=(0,de.H8)(co,rn);return tt.createElement(oe.Z,(0,Mt.Z)({},_o,$t,{title:ns,active:ke,data:lo.data,key:co,isStart:ys,isEnd:jo}))}))}):tt.createElement(oe.Z,(0,Mt.Z)({domRef:pt,className:At,style:le},Vn,{active:ke}))};Jt.displayName="MotionTreeNode";var Ke=tt.forwardRef(Jt),Wt=Ke;function Ge(){var mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],pt=mt.length,At=ft.length;if(Math.abs(pt-At)!==1)return{add:!1,key:null};function le(we,ae){var me=new Map;we.forEach(function(Oe){me.set(Oe,!0)});var Re=ae.filter(function(Oe){return!me.has(Oe)});return Re.length===1?Re[0]:null}return pt<At?{add:!0,key:le(mt,ft)}:{add:!1,key:le(ft,mt)}}function He(mt,ft,pt){var At=mt.findIndex(function(me){return me.key===pt}),le=mt[At+1],we=ft.findIndex(function(me){return me.key===pt});if(le){var ae=ft.findIndex(function(me){return me.key===le.key});return ft.slice(we+1,ae)}return ft.slice(we+1)}var Me=["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"],We={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},_e=function(){},ve="RC_TREE_MOTION_".concat(Math.random()),ne={key:ve},Se={key:ve,level:0,index:0,pos:"0",node:ne,nodes:[ne]},Pn={parent:null,children:[],pos:Se.pos,data:ne,title:null,key:ve,isStart:[],isEnd:[]};function Mn(mt,ft,pt,At){return ft===!1||!pt?mt:mt.slice(0,Math.ceil(pt/At)+1)}function Xe(mt){var ft=mt.key,pt=mt.pos;return(0,de.km)(ft,pt)}function Nn(mt){for(var ft=String(mt.data.key),pt=mt;pt.parent;)pt=pt.parent,ft="".concat(pt.data.key," > ").concat(ft);return ft}var Zn=tt.forwardRef(function(mt,ft){var pt=mt.prefixCls,At=mt.data,le=mt.selectable,we=mt.checkable,ae=mt.expandedKeys,me=mt.selectedKeys,Re=mt.checkedKeys,Oe=mt.loadedKeys,ke=mt.loadingKeys,rn=mt.halfCheckedKeys,Vn=mt.keyEntities,sn=mt.disabled,An=mt.dragging,Bn=mt.dragOverNodeKey,ii=mt.dropPosition,_n=mt.motion,ji=mt.height,cr=mt.itemHeight,Ji=mt.virtual,mr=mt.focusable,Mr=mt.activeItem,ao=mt.focused,Yr=mt.tabIndex,Zr=mt.onKeyDown,kr=mt.onFocus,Gr=mt.onBlur,lo=mt.onActiveChange,_o=mt.onListChangeStart,ns=mt.onListChangeEnd,co=(0,St.Z)(mt,Me),ys=tt.useRef(null),jo=tt.useRef(null);tt.useImperativeHandle(ft,function(){return{scrollTo:function(ui){ys.current.scrollTo(ui)},getIndentWidth:function(){return jo.current.offsetWidth}}});var $t=tt.useState(ae),ri=(0,dt.Z)($t,2),ws=ri[0],Is=ri[1],ma=tt.useState(At),va=(0,dt.Z)(ma,2),qs=va[0],_r=va[1],Dr=tt.useState(At),kn=(0,dt.Z)(Dr,2),Tn=kn[0],De=kn[1],ti=tt.useState([]),yi=(0,dt.Z)(ti,2),dn=yi[0],Le=yi[1],yn=tt.useState(null),Qn=(0,dt.Z)(yn,2),wi=Qn[0],Oi=Qn[1],qe=tt.useRef(At);qe.current=At;function oi(){var On=qe.current;_r(On),De(On),Le([]),Oi(null),ns()}(0,It.Z)(function(){Is(ae);var On=Ge(ws,ae);if(On.key!==null)if(On.add){var ui=qs.findIndex(function(nr){var Pr=nr.key;return Pr===On.key}),Cr=Mn(He(qs,At,On.key),Ji,ji,cr),or=qs.slice();or.splice(ui+1,0,Pn),De(or),Le(Cr),Oi("show")}else{var zr=At.findIndex(function(nr){var Pr=nr.key;return Pr===On.key}),ar=Mn(He(At,qs,On.key),Ji,ji,cr),Lr=At.slice();Lr.splice(zr+1,0,Pn),De(Lr),Le(ar),Oi("hide")}else qs!==At&&(_r(At),De(At))},[ae,At]),tt.useEffect(function(){An||oi()},[An]);var Pi=_n?Tn:At,er={expandedKeys:ae,selectedKeys:me,loadedKeys:Oe,loadingKeys:ke,checkedKeys:Re,halfCheckedKeys:rn,dragOverNodeKey:Bn,dropPosition:ii,keyEntities:Vn};return tt.createElement(tt.Fragment,null,ao&&Mr&&tt.createElement("span",{style:We,"aria-live":"assertive"},Nn(Mr)),tt.createElement("div",null,tt.createElement("input",{style:We,disabled:mr===!1||sn,tabIndex:mr!==!1?Yr:null,onKeyDown:Zr,onFocus:kr,onBlur:Gr,value:"",onChange:_e,"aria-label":"for screen reader"})),tt.createElement("div",{className:"".concat(pt,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},tt.createElement("div",{className:"".concat(pt,"-indent")},tt.createElement("div",{ref:jo,className:"".concat(pt,"-indent-unit")}))),tt.createElement(_t.Z,(0,Mt.Z)({},co,{data:Pi,itemKey:Xe,height:ji,fullHeight:!1,virtual:Ji,itemHeight:cr,prefixCls:"".concat(pt,"-list"),ref:ys,onVisibleChange:function(ui,Cr){var or=new Set(ui),zr=Cr.filter(function(ar){return!or.has(ar)});zr.some(function(ar){return Xe(ar)===ve})&&oi()}}),function(On){var ui=On.pos,Cr=(0,Mt.Z)({},(ht(On.data),On.data)),or=On.title,zr=On.key,ar=On.isStart,Lr=On.isEnd,nr=(0,de.km)(zr,ui);delete Cr.key,delete Cr.children;var Pr=(0,de.H8)(nr,er);return tt.createElement(Wt,(0,Mt.Z)({},Cr,Pr,{title:or,active:!!Mr&&zr===Mr.key,pos:ui,data:On.data,isStart:ar,isEnd:Lr,motion:_n,motionNodes:zr===ve?dn:null,motionType:wi,onMotionStart:_o,onMotionEnd:oi,treeNodeRequiredProps:er,onMouseMove:function(){lo(null)}}))}))});Zn.displayName="NodeList";var fi=Zn,zn=bt(35654),Si=bt(90782),nn=bt(67841),Fi=10,Ti=function(mt){(0,qt.Z)(pt,mt);var ft=(0,Pt.Z)(pt);function pt(){var At;(0,Zt.Z)(this,pt);for(var le=arguments.length,we=new Array(le),ae=0;ae<le;ae++)we[ae]=arguments[ae];return At=ft.call.apply(ft,[this].concat(we)),At.destroyed=!1,At.delayedDragEnterLogic=void 0,At.loadingRetryTimes={},At.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,de.w$)()},At.dragStartMousePosition=null,At.dragNode=void 0,At.currentMouseOverDroppableNodeKey=null,At.listRef=tt.createRef(),At.onNodeDragStart=function(me,Re){var Oe=At.state,ke=Oe.expandedKeys,rn=Oe.keyEntities,Vn=At.props.onDragStart,sn=Re.props.eventKey;At.dragNode=Re,At.dragStartMousePosition={x:me.clientX,y:me.clientY};var An=(0,zn._5)(ke,sn);At.setState({draggingNodeKey:sn,dragChildrenKeys:(0,zn.wA)(sn,rn),indent:At.listRef.current.getIndentWidth()}),At.setExpandedKeys(An),window.addEventListener("dragend",At.onWindowDragEnd),Vn==null||Vn({event:me,node:(0,de.F)(Re.props)})},At.onNodeDragEnter=function(me,Re){var Oe=At.state,ke=Oe.expandedKeys,rn=Oe.keyEntities,Vn=Oe.dragChildrenKeys,sn=Oe.flattenNodes,An=Oe.indent,Bn=At.props,ii=Bn.onDragEnter,_n=Bn.onExpand,ji=Bn.allowDrop,cr=Bn.direction,Ji=Re.props,mr=Ji.pos,Mr=Ji.eventKey,ao=(0,jt.Z)(At),Yr=ao.dragNode;if(At.currentMouseOverDroppableNodeKey!==Mr&&(At.currentMouseOverDroppableNodeKey=Mr),!Yr){At.resetDragState();return}var Zr=(0,zn.OM)(me,Yr,Re,An,At.dragStartMousePosition,ji,sn,rn,ke,cr),kr=Zr.dropPosition,Gr=Zr.dropLevelOffset,lo=Zr.dropTargetKey,_o=Zr.dropContainerKey,ns=Zr.dropTargetPos,co=Zr.dropAllowed,ys=Zr.dragOverNodeKey;if(Vn.indexOf(lo)!==-1||!co){At.resetDragState();return}if(At.delayedDragEnterLogic||(At.delayedDragEnterLogic={}),Object.keys(At.delayedDragEnterLogic).forEach(function(jo){clearTimeout(At.delayedDragEnterLogic[jo])}),Yr.props.eventKey!==Re.props.eventKey&&(me.persist(),At.delayedDragEnterLogic[mr]=window.setTimeout(function(){if(At.state.draggingNodeKey!==null){var jo=(0,ee.Z)(ke),$t=(0,nn.Z)(rn,Re.props.eventKey);$t&&($t.children||[]).length&&(jo=(0,zn.L0)(ke,Re.props.eventKey)),"expandedKeys"in At.props||At.setExpandedKeys(jo),_n==null||_n(jo,{node:(0,de.F)(Re.props),expanded:!0,nativeEvent:me.nativeEvent})}},800)),Yr.props.eventKey===lo&&Gr===0){At.resetDragState();return}At.setState({dragOverNodeKey:ys,dropPosition:kr,dropLevelOffset:Gr,dropTargetKey:lo,dropContainerKey:_o,dropTargetPos:ns,dropAllowed:co}),ii==null||ii({event:me,node:(0,de.F)(Re.props),expandedKeys:ke})},At.onNodeDragOver=function(me,Re){var Oe=At.state,ke=Oe.dragChildrenKeys,rn=Oe.flattenNodes,Vn=Oe.keyEntities,sn=Oe.expandedKeys,An=Oe.indent,Bn=At.props,ii=Bn.onDragOver,_n=Bn.allowDrop,ji=Bn.direction,cr=(0,jt.Z)(At),Ji=cr.dragNode;if(Ji){var mr=(0,zn.OM)(me,Ji,Re,An,At.dragStartMousePosition,_n,rn,Vn,sn,ji),Mr=mr.dropPosition,ao=mr.dropLevelOffset,Yr=mr.dropTargetKey,Zr=mr.dropContainerKey,kr=mr.dropAllowed,Gr=mr.dropTargetPos,lo=mr.dragOverNodeKey;ke.indexOf(Yr)!==-1||!kr||(Ji.props.eventKey===Yr&&ao===0?At.state.dropPosition===null&&At.state.dropLevelOffset===null&&At.state.dropTargetKey===null&&At.state.dropContainerKey===null&&At.state.dropTargetPos===null&&At.state.dropAllowed===!1&&At.state.dragOverNodeKey===null||At.resetDragState():Mr===At.state.dropPosition&&ao===At.state.dropLevelOffset&&Yr===At.state.dropTargetKey&&Zr===At.state.dropContainerKey&&Gr===At.state.dropTargetPos&&kr===At.state.dropAllowed&&lo===At.state.dragOverNodeKey||At.setState({dropPosition:Mr,dropLevelOffset:ao,dropTargetKey:Yr,dropContainerKey:Zr,dropTargetPos:Gr,dropAllowed:kr,dragOverNodeKey:lo}),ii==null||ii({event:me,node:(0,de.F)(Re.props)}))}},At.onNodeDragLeave=function(me,Re){At.currentMouseOverDroppableNodeKey===Re.props.eventKey&&!me.currentTarget.contains(me.relatedTarget)&&(At.resetDragState(),At.currentMouseOverDroppableNodeKey=null);var Oe=At.props.onDragLeave;Oe==null||Oe({event:me,node:(0,de.F)(Re.props)})},At.onWindowDragEnd=function(me){At.onNodeDragEnd(me,null,!0),window.removeEventListener("dragend",At.onWindowDragEnd)},At.onNodeDragEnd=function(me,Re){var Oe=At.props.onDragEnd;At.setState({dragOverNodeKey:null}),At.cleanDragState(),Oe==null||Oe({event:me,node:(0,de.F)(Re.props)}),At.dragNode=null,window.removeEventListener("dragend",At.onWindowDragEnd)},At.onNodeDrop=function(me,Re){var Oe,ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,rn=At.state,Vn=rn.dragChildrenKeys,sn=rn.dropPosition,An=rn.dropTargetKey,Bn=rn.dropTargetPos,ii=rn.dropAllowed;if(ii){var _n=At.props.onDrop;if(At.setState({dragOverNodeKey:null}),At.cleanDragState(),An!==null){var ji=(0,Ie.Z)((0,Ie.Z)({},(0,de.H8)(An,At.getTreeNodeRequiredProps())),{},{active:((Oe=At.getActiveItem())===null||Oe===void 0?void 0:Oe.key)===An,data:(0,nn.Z)(At.state.keyEntities,An).node}),cr=Vn.indexOf(An)!==-1;(0,et.ZP)(!cr,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Ji=(0,zn.yx)(Bn),mr={event:me,node:(0,de.F)(ji),dragNode:At.dragNode?(0,de.F)(At.dragNode.props):null,dragNodesKeys:[At.dragNode.props.eventKey].concat(Vn),dropToGap:sn!==0,dropPosition:sn+Number(Ji[Ji.length-1])};ke||_n==null||_n(mr),At.dragNode=null}}},At.cleanDragState=function(){var me=At.state.draggingNodeKey;me!==null&&At.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),At.dragStartMousePosition=null,At.currentMouseOverDroppableNodeKey=null},At.triggerExpandActionExpand=function(me,Re){var Oe=At.state,ke=Oe.expandedKeys,rn=Oe.flattenNodes,Vn=Re.expanded,sn=Re.key,An=Re.isLeaf;if(!(An||me.shiftKey||me.metaKey||me.ctrlKey)){var Bn=rn.filter(function(_n){return _n.key===sn})[0],ii=(0,de.F)((0,Ie.Z)((0,Ie.Z)({},(0,de.H8)(sn,At.getTreeNodeRequiredProps())),{},{data:Bn.data}));At.setExpandedKeys(Vn?(0,zn._5)(ke,sn):(0,zn.L0)(ke,sn)),At.onNodeExpand(me,ii)}},At.onNodeClick=function(me,Re){var Oe=At.props,ke=Oe.onClick,rn=Oe.expandAction;rn==="click"&&At.triggerExpandActionExpand(me,Re),ke==null||ke(me,Re)},At.onNodeDoubleClick=function(me,Re){var Oe=At.props,ke=Oe.onDoubleClick,rn=Oe.expandAction;rn==="doubleClick"&&At.triggerExpandActionExpand(me,Re),ke==null||ke(me,Re)},At.onNodeSelect=function(me,Re){var Oe=At.state.selectedKeys,ke=At.state,rn=ke.keyEntities,Vn=ke.fieldNames,sn=At.props,An=sn.onSelect,Bn=sn.multiple,ii=Re.selected,_n=Re[Vn.key],ji=!ii;ji?Bn?Oe=(0,zn.L0)(Oe,_n):Oe=[_n]:Oe=(0,zn._5)(Oe,_n);var cr=Oe.map(function(Ji){var mr=(0,nn.Z)(rn,Ji);return mr?mr.node:null}).filter(function(Ji){return Ji});At.setUncontrolledState({selectedKeys:Oe}),An==null||An(Oe,{event:"select",selected:ji,node:Re,selectedNodes:cr,nativeEvent:me.nativeEvent})},At.onNodeCheck=function(me,Re,Oe){var ke=At.state,rn=ke.keyEntities,Vn=ke.checkedKeys,sn=ke.halfCheckedKeys,An=At.props,Bn=An.checkStrictly,ii=An.onCheck,_n=Re.key,ji,cr={event:"check",node:Re,checked:Oe,nativeEvent:me.nativeEvent};if(Bn){var Ji=Oe?(0,zn.L0)(Vn,_n):(0,zn._5)(Vn,_n),mr=(0,zn._5)(sn,_n);ji={checked:Ji,halfChecked:mr},cr.checkedNodes=Ji.map(function(Gr){return(0,nn.Z)(rn,Gr)}).filter(function(Gr){return Gr}).map(function(Gr){return Gr.node}),At.setUncontrolledState({checkedKeys:Ji})}else{var Mr=(0,Si.S)([].concat((0,ee.Z)(Vn),[_n]),!0,rn),ao=Mr.checkedKeys,Yr=Mr.halfCheckedKeys;if(!Oe){var Zr=new Set(ao);Zr.delete(_n);var kr=(0,Si.S)(Array.from(Zr),{checked:!1,halfCheckedKeys:Yr},rn);ao=kr.checkedKeys,Yr=kr.halfCheckedKeys}ji=ao,cr.checkedNodes=[],cr.checkedNodesPositions=[],cr.halfCheckedKeys=Yr,ao.forEach(function(Gr){var lo=(0,nn.Z)(rn,Gr);if(lo){var _o=lo.node,ns=lo.pos;cr.checkedNodes.push(_o),cr.checkedNodesPositions.push({node:_o,pos:ns})}}),At.setUncontrolledState({checkedKeys:ao},!1,{halfCheckedKeys:Yr})}ii==null||ii(ji,cr)},At.onNodeLoad=function(me){var Re=me.key,Oe=new Promise(function(ke,rn){At.setState(function(Vn){var sn=Vn.loadedKeys,An=sn===void 0?[]:sn,Bn=Vn.loadingKeys,ii=Bn===void 0?[]:Bn,_n=At.props,ji=_n.loadData,cr=_n.onLoad;if(!ji||An.indexOf(Re)!==-1||ii.indexOf(Re)!==-1)return null;var Ji=ji(me);return Ji.then(function(){var mr=At.state.loadedKeys,Mr=(0,zn.L0)(mr,Re);cr==null||cr(Mr,{event:"load",node:me}),At.setUncontrolledState({loadedKeys:Mr}),At.setState(function(ao){return{loadingKeys:(0,zn._5)(ao.loadingKeys,Re)}}),ke()}).catch(function(mr){if(At.setState(function(ao){return{loadingKeys:(0,zn._5)(ao.loadingKeys,Re)}}),At.loadingRetryTimes[Re]=(At.loadingRetryTimes[Re]||0)+1,At.loadingRetryTimes[Re]>=Fi){var Mr=At.state.loadedKeys;(0,et.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),At.setUncontrolledState({loadedKeys:(0,zn.L0)(Mr,Re)}),ke()}rn(mr)}),{loadingKeys:(0,zn.L0)(ii,Re)}})});return Oe.catch(function(){}),Oe},At.onNodeMouseEnter=function(me,Re){var Oe=At.props.onMouseEnter;Oe==null||Oe({event:me,node:Re})},At.onNodeMouseLeave=function(me,Re){var Oe=At.props.onMouseLeave;Oe==null||Oe({event:me,node:Re})},At.onNodeContextMenu=function(me,Re){var Oe=At.props.onRightClick;Oe&&(me.preventDefault(),Oe({event:me,node:Re}))},At.onFocus=function(){var me=At.props.onFocus;At.setState({focused:!0});for(var Re=arguments.length,Oe=new Array(Re),ke=0;ke<Re;ke++)Oe[ke]=arguments[ke];me==null||me.apply(void 0,Oe)},At.onBlur=function(){var me=At.props.onBlur;At.setState({focused:!1}),At.onActiveChange(null);for(var Re=arguments.length,Oe=new Array(Re),ke=0;ke<Re;ke++)Oe[ke]=arguments[ke];me==null||me.apply(void 0,Oe)},At.getTreeNodeRequiredProps=function(){var me=At.state,Re=me.expandedKeys,Oe=me.selectedKeys,ke=me.loadedKeys,rn=me.loadingKeys,Vn=me.checkedKeys,sn=me.halfCheckedKeys,An=me.dragOverNodeKey,Bn=me.dropPosition,ii=me.keyEntities;return{expandedKeys:Re||[],selectedKeys:Oe||[],loadedKeys:ke||[],loadingKeys:rn||[],checkedKeys:Vn||[],halfCheckedKeys:sn||[],dragOverNodeKey:An,dropPosition:Bn,keyEntities:ii}},At.setExpandedKeys=function(me){var Re=At.state,Oe=Re.treeData,ke=Re.fieldNames,rn=(0,de.oH)(Oe,me,ke);At.setUncontrolledState({expandedKeys:me,flattenNodes:rn},!0)},At.onNodeExpand=function(me,Re){var Oe=At.state.expandedKeys,ke=At.state,rn=ke.listChanging,Vn=ke.fieldNames,sn=At.props,An=sn.onExpand,Bn=sn.loadData,ii=Re.expanded,_n=Re[Vn.key];if(!rn){var ji=Oe.indexOf(_n),cr=!ii;if((0,et.ZP)(ii&&ji!==-1||!ii&&ji===-1,"Expand state not sync with index check"),cr?Oe=(0,zn.L0)(Oe,_n):Oe=(0,zn._5)(Oe,_n),At.setExpandedKeys(Oe),An==null||An(Oe,{node:Re,expanded:cr,nativeEvent:me.nativeEvent}),cr&&Bn){var Ji=At.onNodeLoad(Re);Ji&&Ji.then(function(){var mr=(0,de.oH)(At.state.treeData,Oe,Vn);At.setUncontrolledState({flattenNodes:mr})}).catch(function(){var mr=At.state.expandedKeys,Mr=(0,zn._5)(mr,_n);At.setExpandedKeys(Mr)})}}},At.onListChangeStart=function(){At.setUncontrolledState({listChanging:!0})},At.onListChangeEnd=function(){setTimeout(function(){At.setUncontrolledState({listChanging:!1})})},At.onActiveChange=function(me){var Re=At.state.activeKey,Oe=At.props.onActiveChange;Re!==me&&(At.setState({activeKey:me}),me!==null&&At.scrollTo({key:me}),Oe==null||Oe(me))},At.getActiveItem=function(){var me=At.state,Re=me.activeKey,Oe=me.flattenNodes;return Re===null?null:Oe.find(function(ke){var rn=ke.key;return rn===Re})||null},At.offsetActiveKey=function(me){var Re=At.state,Oe=Re.flattenNodes,ke=Re.activeKey,rn=Oe.findIndex(function(An){var Bn=An.key;return Bn===ke});rn===-1&&me<0&&(rn=Oe.length),rn=(rn+me+Oe.length)%Oe.length;var Vn=Oe[rn];if(Vn){var sn=Vn.key;At.onActiveChange(sn)}else At.onActiveChange(null)},At.onKeyDown=function(me){var Re=At.state,Oe=Re.activeKey,ke=Re.expandedKeys,rn=Re.checkedKeys,Vn=Re.fieldNames,sn=At.props,An=sn.onKeyDown,Bn=sn.checkable,ii=sn.selectable;switch(me.which){case Yt.Z.UP:{At.offsetActiveKey(-1),me.preventDefault();break}case Yt.Z.DOWN:{At.offsetActiveKey(1),me.preventDefault();break}}var _n=At.getActiveItem();if(_n&&_n.data){var ji=At.getTreeNodeRequiredProps(),cr=_n.data.isLeaf===!1||!!(_n.data[Vn.children]||[]).length,Ji=(0,de.F)((0,Ie.Z)((0,Ie.Z)({},(0,de.H8)(Oe,ji)),{},{data:_n.data,active:!0}));switch(me.which){case Yt.Z.LEFT:{cr&&ke.includes(Oe)?At.onNodeExpand({},Ji):_n.parent&&At.onActiveChange(_n.parent.key),me.preventDefault();break}case Yt.Z.RIGHT:{cr&&!ke.includes(Oe)?At.onNodeExpand({},Ji):_n.children&&_n.children.length&&At.onActiveChange(_n.children[0].key),me.preventDefault();break}case Yt.Z.ENTER:case Yt.Z.SPACE:{Bn&&!Ji.disabled&&Ji.checkable!==!1&&!Ji.disableCheckbox?At.onNodeCheck({},Ji,!rn.includes(Oe)):!Bn&&ii&&!Ji.disabled&&Ji.selectable!==!1&&At.onNodeSelect({},Ji);break}}}An==null||An(me)},At.setUncontrolledState=function(me){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!At.destroyed){var ke=!1,rn=!0,Vn={};Object.keys(me).forEach(function(sn){if(sn in At.props){rn=!1;return}ke=!0,Vn[sn]=me[sn]}),ke&&(!Re||rn)&&At.setState((0,Ie.Z)((0,Ie.Z)({},Vn),Oe))}},At.scrollTo=function(me){At.listRef.current.scrollTo(me)},At}return(0,Nt.Z)(pt,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var le=this.props.activeKey;le!==void 0&&le!==this.state.activeKey&&(this.setState({activeKey:le}),le!==null&&this.scrollTo({key:le}))}},{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 le,we=this.state,ae=we.focused,me=we.flattenNodes,Re=we.keyEntities,Oe=we.draggingNodeKey,ke=we.activeKey,rn=we.dropLevelOffset,Vn=we.dropContainerKey,sn=we.dropTargetKey,An=we.dropPosition,Bn=we.dragOverNodeKey,ii=we.indent,_n=this.props,ji=_n.prefixCls,cr=_n.className,Ji=_n.style,mr=_n.showLine,Mr=_n.focusable,ao=_n.tabIndex,Yr=ao===void 0?0:ao,Zr=_n.selectable,kr=_n.showIcon,Gr=_n.icon,lo=_n.switcherIcon,_o=_n.draggable,ns=_n.checkable,co=_n.checkStrictly,ys=_n.disabled,jo=_n.motion,$t=_n.loadData,ri=_n.filterTreeNode,ws=_n.height,Is=_n.itemHeight,ma=_n.virtual,va=_n.titleRender,qs=_n.dropIndicatorRender,_r=_n.onContextMenu,Dr=_n.onScroll,kn=_n.direction,Tn=_n.rootClassName,De=_n.rootStyle,ti=(0,Ct.Z)(this.props,{aria:!0,data:!0}),yi;return _o&&((0,ie.Z)(_o)==="object"?yi=_o:typeof _o=="function"?yi={nodeDraggable:_o}:yi={}),tt.createElement(lt.k.Provider,{value:{prefixCls:ji,selectable:Zr,showIcon:kr,icon:Gr,switcherIcon:lo,draggable:yi,draggingNodeKey:Oe,checkable:ns,checkStrictly:co,disabled:ys,keyEntities:Re,dropLevelOffset:rn,dropContainerKey:Vn,dropTargetKey:sn,dropPosition:An,dragOverNodeKey:Bn,indent:ii,direction:kn,dropIndicatorRender:qs,loadData:$t,filterTreeNode:ri,titleRender:va,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:Kt()(ji,cr,Tn,(le={},(0,ce.Z)(le,"".concat(ji,"-show-line"),mr),(0,ce.Z)(le,"".concat(ji,"-focused"),ae),(0,ce.Z)(le,"".concat(ji,"-active-focused"),ke!==null),le)),style:De},tt.createElement(fi,(0,Mt.Z)({ref:this.listRef,prefixCls:ji,style:Ji,data:me,disabled:ys,selectable:Zr,checkable:!!ns,motion:jo,dragging:Oe!==null,height:ws,itemHeight:Is,virtual:ma,focusable:Mr,focused:ae,tabIndex:Yr,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:_r,onScroll:Dr},this.getTreeNodeRequiredProps(),ti))))}}],[{key:"getDerivedStateFromProps",value:function(le,we){var ae=we.prevProps,me={prevProps:le};function Re(Mr){return!ae&&Mr in le||ae&&ae[Mr]!==le[Mr]}var Oe,ke=we.fieldNames;if(Re("fieldNames")&&(ke=(0,de.w$)(le.fieldNames),me.fieldNames=ke),Re("treeData")?Oe=le.treeData:Re("children")&&((0,et.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Oe=(0,de.zn)(le.children)),Oe){me.treeData=Oe;var rn=(0,de.I8)(Oe,{fieldNames:ke});me.keyEntities=(0,Ie.Z)((0,ce.Z)({},ve,Se),rn.keyEntities)}var Vn=me.keyEntities||we.keyEntities;if(Re("expandedKeys")||ae&&Re("autoExpandParent"))me.expandedKeys=le.autoExpandParent||!ae&&le.defaultExpandParent?(0,zn.r7)(le.expandedKeys,Vn):le.expandedKeys;else if(!ae&&le.defaultExpandAll){var sn=(0,Ie.Z)({},Vn);delete sn[ve],me.expandedKeys=Object.keys(sn).map(function(Mr){return sn[Mr].key})}else!ae&&le.defaultExpandedKeys&&(me.expandedKeys=le.autoExpandParent||le.defaultExpandParent?(0,zn.r7)(le.defaultExpandedKeys,Vn):le.defaultExpandedKeys);if(me.expandedKeys||delete me.expandedKeys,Oe||me.expandedKeys){var An=(0,de.oH)(Oe||we.treeData,me.expandedKeys||we.expandedKeys,ke);me.flattenNodes=An}if(le.selectable&&(Re("selectedKeys")?me.selectedKeys=(0,zn.BT)(le.selectedKeys,le):!ae&&le.defaultSelectedKeys&&(me.selectedKeys=(0,zn.BT)(le.defaultSelectedKeys,le))),le.checkable){var Bn;if(Re("checkedKeys")?Bn=(0,zn.E6)(le.checkedKeys)||{}:!ae&&le.defaultCheckedKeys?Bn=(0,zn.E6)(le.defaultCheckedKeys)||{}:Oe&&(Bn=(0,zn.E6)(le.checkedKeys)||{checkedKeys:we.checkedKeys,halfCheckedKeys:we.halfCheckedKeys}),Bn){var ii=Bn,_n=ii.checkedKeys,ji=_n===void 0?[]:_n,cr=ii.halfCheckedKeys,Ji=cr===void 0?[]:cr;if(!le.checkStrictly){var mr=(0,Si.S)(ji,!0,Vn);ji=mr.checkedKeys,Ji=mr.halfCheckedKeys}me.checkedKeys=ji,me.halfCheckedKeys=Ji}}return Re("loadedKeys")&&(me.loadedKeys=le.loadedKeys),me}}]),pt}(tt.Component);Ti.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},Ti.TreeNode=oe.Z;var Lt=Ti,Ot=Lt},35654:function(hi,Cn,bt){"use strict";bt.d(Cn,{BT:function(){return tt},E6:function(){return ht},L0:function(){return Pt},OM:function(){return et},_5:function(){return qt},r7:function(){return dt},wA:function(){return Kt},yx:function(){return re}});var Mt=bt(19127),ce=bt(20135),ie=bt(48736),Ie=bt(59301),ee=bt(39417),Zt=bt(67841),Nt=bt(71430),jt=null;function qt(St,It){if(!St)return[];var _t=St.slice(),Gt=_t.indexOf(It);return Gt>=0&&_t.splice(Gt,1),_t}function Pt(St,It){var _t=(St||[]).slice();return _t.indexOf(It)===-1&&_t.push(It),_t}function re(St){return St.split("-")}function Kt(St,It){var _t=[],Gt=(0,Zt.Z)(It,St);function oe(){var ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ue.forEach(function(de){var be=de.key,Jt=de.children;_t.push(be),oe(Jt)})}return oe(Gt.children),_t}function Yt(St){if(St.parent){var It=re(St.pos);return Number(It[It.length-1])===St.parent.children.length-1}return!1}function Ct(St){var It=re(St.pos);return Number(It[It.length-1])===0}function et(St,It,_t,Gt,oe,ue,de,be,Jt,Ke){var Wt,Ge=St.clientX,He=St.clientY,Me=St.target.getBoundingClientRect(),We=Me.top,_e=Me.height,ve=(Ke==="rtl"?-1:1)*(((oe==null?void 0:oe.x)||0)-Ge),ne=(ve-12)/Gt,Se=(0,Zt.Z)(be,_t.props.eventKey);if(He<We+_e/2){var Pn=de.findIndex(function(Ot){return Ot.key===Se.key}),Mn=Pn<=0?0:Pn-1,Xe=de[Mn].key;Se=(0,Zt.Z)(be,Xe)}var Nn=Se.key,Zn=Se,fi=Se.key,zn=0,Si=0;if(!Jt.includes(Nn))for(var nn=0;nn<ne&&Yt(Se);nn+=1)Se=Se.parent,Si+=1;var Fi=It.props.data,Ti=Se.node,Lt=!0;return Ct(Se)&&Se.level===0&&He<We+_e/2&&ue({dragNode:Fi,dropNode:Ti,dropPosition:-1})&&Se.key===_t.props.eventKey?zn=-1:(Zn.children||[]).length&&Jt.includes(fi)?ue({dragNode:Fi,dropNode:Ti,dropPosition:0})?zn=0:Lt=!1:Si===0?ne>-1.5?ue({dragNode:Fi,dropNode:Ti,dropPosition:1})?zn=1:Lt=!1:ue({dragNode:Fi,dropNode:Ti,dropPosition:0})?zn=0:ue({dragNode:Fi,dropNode:Ti,dropPosition:1})?zn=1:Lt=!1:ue({dragNode:Fi,dropNode:Ti,dropPosition:1})?zn=1:Lt=!1,{dropPosition:zn,dropLevelOffset:Si,dropTargetKey:Se.key,dropTargetPos:Se.pos,dragOverNodeKey:fi,dropContainerKey:zn===0?null:((Wt=Se.parent)===null||Wt===void 0?void 0:Wt.key)||null,dropAllowed:Lt}}function tt(St,It){if(St){var _t=It.multiple;return _t?St.slice():St.length?[St[0]]:St}}var lt=function(It){return It};function rt(St,It){if(!St)return[];var _t=It||{},Gt=_t.processProps,oe=Gt===void 0?lt:Gt,ue=Array.isArray(St)?St:[St];return ue.map(function(de){var be=de.children,Jt=_objectWithoutProperties(de,jt),Ke=rt(be,It);return React.createElement(TreeNode,_extends({key:Jt.key},oe(Jt)),Ke)})}function ht(St){if(!St)return null;var It;if(Array.isArray(St))It={checkedKeys:St,halfCheckedKeys:void 0};else if((0,ce.Z)(St)==="object")It={checkedKeys:St.checked||void 0,halfCheckedKeys:St.halfChecked||void 0};else return(0,ie.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return It}function dt(St,It){var _t=new Set;function Gt(oe){if(!_t.has(oe)){var ue=(0,Zt.Z)(It,oe);if(ue){_t.add(oe);var de=ue.parent,be=ue.node;be.disabled||de&&Gt(de.key)}}}return(St||[]).forEach(function(oe){Gt(oe)}),(0,Mt.Z)(_t)}},90782:function(hi,Cn,bt){"use strict";bt.d(Cn,{S:function(){return Nt}});var Mt=bt(48736),ce=bt(67841);function ie(jt,qt){var Pt=new Set;return jt.forEach(function(re){qt.has(re)||Pt.add(re)}),Pt}function Ie(jt){var qt=jt||{},Pt=qt.disabled,re=qt.disableCheckbox,Kt=qt.checkable;return!!(Pt||re)||Kt===!1}function ee(jt,qt,Pt,re){for(var Kt=new Set(jt),Yt=new Set,Ct=0;Ct<=Pt;Ct+=1){var et=qt.get(Ct)||new Set;et.forEach(function(ht){var dt=ht.key,St=ht.node,It=ht.children,_t=It===void 0?[]:It;Kt.has(dt)&&!re(St)&&_t.filter(function(Gt){return!re(Gt.node)}).forEach(function(Gt){Kt.add(Gt.key)})})}for(var tt=new Set,lt=Pt;lt>=0;lt-=1){var rt=qt.get(lt)||new Set;rt.forEach(function(ht){var dt=ht.parent,St=ht.node;if(!(re(St)||!ht.parent||tt.has(ht.parent.key))){if(re(ht.parent.node)){tt.add(dt.key);return}var It=!0,_t=!1;(dt.children||[]).filter(function(Gt){return!re(Gt.node)}).forEach(function(Gt){var oe=Gt.key,ue=Kt.has(oe);It&&!ue&&(It=!1),!_t&&(ue||Yt.has(oe))&&(_t=!0)}),It&&Kt.add(dt.key),_t&&Yt.add(dt.key),tt.add(dt.key)}})}return{checkedKeys:Array.from(Kt),halfCheckedKeys:Array.from(ie(Yt,Kt))}}function Zt(jt,qt,Pt,re,Kt){for(var Yt=new Set(jt),Ct=new Set(qt),et=0;et<=re;et+=1){var tt=Pt.get(et)||new Set;tt.forEach(function(dt){var St=dt.key,It=dt.node,_t=dt.children,Gt=_t===void 0?[]:_t;!Yt.has(St)&&!Ct.has(St)&&!Kt(It)&&Gt.filter(function(oe){return!Kt(oe.node)}).forEach(function(oe){Yt.delete(oe.key)})})}Ct=new Set;for(var lt=new Set,rt=re;rt>=0;rt-=1){var ht=Pt.get(rt)||new Set;ht.forEach(function(dt){var St=dt.parent,It=dt.node;if(!(Kt(It)||!dt.parent||lt.has(dt.parent.key))){if(Kt(dt.parent.node)){lt.add(St.key);return}var _t=!0,Gt=!1;(St.children||[]).filter(function(oe){return!Kt(oe.node)}).forEach(function(oe){var ue=oe.key,de=Yt.has(ue);_t&&!de&&(_t=!1),!Gt&&(de||Ct.has(ue))&&(Gt=!0)}),_t||Yt.delete(St.key),Gt&&Ct.add(St.key),lt.add(St.key)}})}return{checkedKeys:Array.from(Yt),halfCheckedKeys:Array.from(ie(Ct,Yt))}}function Nt(jt,qt,Pt,re){var Kt=[],Yt;re?Yt=re:Yt=Ie;var Ct=new Set(jt.filter(function(rt){var ht=!!(0,ce.Z)(Pt,rt);return ht||Kt.push(rt),ht})),et=new Map,tt=0;Object.keys(Pt).forEach(function(rt){var ht=Pt[rt],dt=ht.level,St=et.get(dt);St||(St=new Set,et.set(dt,St)),St.add(ht),tt=Math.max(tt,dt)}),(0,Mt.ZP)(!Kt.length,"Tree missing follow keys: ".concat(Kt.slice(0,100).map(function(rt){return"'".concat(rt,"'")}).join(", ")));var lt;return qt===!0?lt=ee(Ct,et,tt,Yt):lt=Zt(Ct,qt.halfCheckedKeys,et,tt,Yt),lt}},67841:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return Mt}});function Mt(ce,ie){return ce[ie]}},71430:function(hi,Cn,bt){"use strict";bt.d(Cn,{F:function(){return dt},H8:function(){return ht},I8:function(){return rt},km:function(){return Kt},oH:function(){return tt},w$:function(){return Yt},zn:function(){return et}});var Mt=bt(20135),ce=bt(19127),ie=bt(44127),Ie=bt(6620),ee=bt(11592),Zt=bt(2738),Nt=bt(48736),jt=bt(67841),qt=["children"];function Pt(St,It){return"".concat(St,"-").concat(It)}function re(St){return St&&St.type&&St.type.isTreeNode}function Kt(St,It){return St!=null?St:It}function Yt(St){var It=St||{},_t=It.title,Gt=It._title,oe=It.key,ue=It.children,de=_t||"title";return{title:de,_title:Gt||[de],key:oe||"key",children:ue||"children"}}function Ct(St,It){var _t=new Map;function Gt(oe){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(oe||[]).forEach(function(de){var be=de[It.key],Jt=de[It.children];warning(be!=null,"Tree node must have a certain key: [".concat(ue).concat(be,"]"));var Ke=String(be);warning(!_t.has(Ke)||be===null||be===void 0,"Same 'key' exist in the Tree: ".concat(Ke)),_t.set(Ke,!0),Gt(Jt,"".concat(ue).concat(Ke," > "))})}Gt(St)}function et(St){function It(_t){var Gt=(0,ee.Z)(_t);return Gt.map(function(oe){if(!re(oe))return(0,Nt.ZP)(!oe,"Tree/TreeNode can only accept TreeNode as children."),null;var ue=oe.key,de=oe.props,be=de.children,Jt=(0,Ie.Z)(de,qt),Ke=(0,ie.Z)({key:ue},Jt),Wt=It(be);return Wt.length&&(Ke.children=Wt),Ke}).filter(function(oe){return oe})}return It(St)}function tt(St,It,_t){var Gt=Yt(_t),oe=Gt._title,ue=Gt.key,de=Gt.children,be=new Set(It===!0?[]:It),Jt=[];function Ke(Wt){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Wt.map(function(He,Me){for(var We=Pt(Ge?Ge.pos:"0",Me),_e=Kt(He[ue],We),ve,ne=0;ne<oe.length;ne+=1){var Se=oe[ne];if(He[Se]!==void 0){ve=He[Se];break}}var Pn=(0,ie.Z)((0,ie.Z)({},(0,Zt.Z)(He,[].concat((0,ce.Z)(oe),[ue,de]))),{},{title:ve,key:_e,parent:Ge,pos:We,children:null,data:He,isStart:[].concat((0,ce.Z)(Ge?Ge.isStart:[]),[Me===0]),isEnd:[].concat((0,ce.Z)(Ge?Ge.isEnd:[]),[Me===Wt.length-1])});return Jt.push(Pn),It===!0||be.has(_e)?Pn.children=Ke(He[de]||[],Pn):Pn.children=[],Pn})}return Ke(St),Jt}function lt(St,It,_t){var Gt={};(0,Mt.Z)(_t)==="object"?Gt=_t:Gt={externalGetKey:_t},Gt=Gt||{};var oe=Gt,ue=oe.childrenPropName,de=oe.externalGetKey,be=oe.fieldNames,Jt=Yt(be),Ke=Jt.key,Wt=Jt.children,Ge=ue||Wt,He;de?typeof de=="string"?He=function(_e){return _e[de]}:typeof de=="function"&&(He=function(_e){return de(_e)}):He=function(_e,ve){return Kt(_e[Ke],ve)};function Me(We,_e,ve,ne){var Se=We?We[Ge]:St,Pn=We?Pt(ve.pos,_e):"0",Mn=We?[].concat((0,ce.Z)(ne),[We]):[];if(We){var Xe=He(We,Pn),Nn={node:We,index:_e,pos:Pn,key:Xe,parentPos:ve.node?ve.pos:null,level:ve.level+1,nodes:Mn};It(Nn)}Se&&Se.forEach(function(Zn,fi){Me(Zn,fi,{node:We,pos:Pn,level:ve?ve.level+1:-1},Mn)})}Me(null)}function rt(St){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_t=It.initWrapper,Gt=It.processEntity,oe=It.onProcessFinished,ue=It.externalGetKey,de=It.childrenPropName,be=It.fieldNames,Jt=arguments.length>2?arguments[2]:void 0,Ke=ue||Jt,Wt={},Ge={},He={posEntities:Wt,keyEntities:Ge};return _t&&(He=_t(He)||He),lt(St,function(Me){var We=Me.node,_e=Me.index,ve=Me.pos,ne=Me.key,Se=Me.parentPos,Pn=Me.level,Mn=Me.nodes,Xe={node:We,nodes:Mn,index:_e,key:ne,pos:ve,level:Pn},Nn=Kt(ne,ve);Wt[ve]=Xe,Ge[Nn]=Xe,Xe.parent=Wt[Se],Xe.parent&&(Xe.parent.children=Xe.parent.children||[],Xe.parent.children.push(Xe)),Gt&&Gt(Xe,He)},{externalGetKey:Ke,childrenPropName:de,fieldNames:be}),oe&&oe(He),He}function ht(St,It){var _t=It.expandedKeys,Gt=It.selectedKeys,oe=It.loadedKeys,ue=It.loadingKeys,de=It.checkedKeys,be=It.halfCheckedKeys,Jt=It.dragOverNodeKey,Ke=It.dropPosition,Wt=It.keyEntities,Ge=(0,jt.Z)(Wt,St),He={eventKey:St,expanded:_t.indexOf(St)!==-1,selected:Gt.indexOf(St)!==-1,loaded:oe.indexOf(St)!==-1,loading:ue.indexOf(St)!==-1,checked:de.indexOf(St)!==-1,halfChecked:be.indexOf(St)!==-1,pos:String(Ge?Ge.pos:""),dragOver:Jt===St&&Ke===0,dragOverGapTop:Jt===St&&Ke===-1,dragOverGapBottom:Jt===St&&Ke===1};return He}function dt(St){var It=St.data,_t=St.expanded,Gt=St.selected,oe=St.checked,ue=St.loaded,de=St.loading,be=St.halfChecked,Jt=St.dragOver,Ke=St.dragOverGapTop,Wt=St.dragOverGapBottom,Ge=St.pos,He=St.active,Me=St.eventKey,We=(0,ie.Z)((0,ie.Z)({},It),{},{expanded:_t,selected:Gt,checked:oe,loaded:ue,loading:de,halfChecked:be,dragOver:Jt,dragOverGapTop:Ke,dragOverGapBottom:Wt,pos:Ge,active:He,key:Me});return"props"in We||Object.defineProperty(We,"props",{get:function(){return(0,Nt.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),St}}),We}},8224:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return ce}});var Mt=bt(4676);function ce(ie,Ie,ee,Zt){var Nt=Mt.unstable_batchedUpdates?function(qt){Mt.unstable_batchedUpdates(ee,qt)}:ee;return ie!=null&&ie.addEventListener&&ie.addEventListener(Ie,Nt,Zt),{remove:function(){ie!=null&&ie.removeEventListener&&ie.removeEventListener(Ie,Nt,Zt)}}}},55468:function(hi,Cn,bt){"use strict";bt.d(Cn,{g1:function(){return re},os:function(){return Yt}});var Mt=/margin|padding|width|height|max|min|offset/,ce={left:!0,top:!0},ie={cssFloat:1,styleFloat:1,float:1};function Ie(Ct){return Ct.nodeType===1?Ct.ownerDocument.defaultView.getComputedStyle(Ct,null):{}}function ee(Ct,et,tt){if(et=et.toLowerCase(),tt==="auto"){if(et==="height")return Ct.offsetHeight;if(et==="width")return Ct.offsetWidth}return et in ce||(ce[et]=Mt.test(et)),ce[et]?parseFloat(tt)||0:tt}function Zt(Ct,et){var tt=arguments.length,lt=Ie(Ct);return et=ie[et]?"cssFloat"in Ct.style?"cssFloat":"styleFloat":et,tt===1?lt:ee(Ct,et,lt[et]||Ct.style[et])}function Nt(Ct,et,tt){var lt=arguments.length;if(et=ie[et]?"cssFloat"in Ct.style?"cssFloat":"styleFloat":et,lt===3)return typeof tt=="number"&&Mt.test(et)&&(tt="".concat(tt,"px")),Ct.style[et]=tt,tt;for(var rt in et)et.hasOwnProperty(rt)&&Nt(Ct,rt,et[rt]);return Ie(Ct)}function jt(Ct){return Ct===document.body?document.documentElement.clientWidth:Ct.offsetWidth}function qt(Ct){return Ct===document.body?window.innerHeight||document.documentElement.clientHeight:Ct.offsetHeight}function Pt(){var Ct=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),et=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Ct,height:et}}function re(){var Ct=document.documentElement.clientWidth,et=window.innerHeight||document.documentElement.clientHeight;return{width:Ct,height:et}}function Kt(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Yt(Ct){var et=Ct.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(hi,Cn,bt){"use strict";bt.d(Cn,{G:function(){return Ie}});var Mt=bt(47273),ce=function(Zt){if((0,Mt.Z)()&&window.document.documentElement){var Nt=Array.isArray(Zt)?Zt:[Zt],jt=window.document.documentElement;return Nt.some(function(qt){return qt in jt.style})}return!1},ie=function(Zt,Nt){if(!ce(Zt))return!1;var jt=document.createElement("div"),qt=jt.style[Zt];return jt.style[Zt]=Nt,jt.style[Zt]!==qt};function Ie(ee,Zt){return!Array.isArray(ee)&&Zt!==void 0?ie(ee,Zt):ce(ee)}},24916:function(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return Ti}});var Mt=bt(96663),ce=bt(20135),ie=bt(44127),Ie=bt(90493),ee=bt(72071),Zt=bt(6620),Nt=bt(92310),jt=bt.n(Nt),qt=bt(29301),Pt=bt(70425),re=bt(34280),Kt=bt(59301),Yt=bt(4676),Ct=Kt.forwardRef(function(Lt,Ot){var mt=Lt.height,ft=Lt.offsetY,pt=Lt.offsetX,At=Lt.children,le=Lt.prefixCls,we=Lt.onInnerResize,ae=Lt.innerProps,me=Lt.rtl,Re=Lt.extra,Oe={},ke={display:"flex",flexDirection:"column"};return ft!==void 0&&(Oe={height:mt,position:"relative",overflow:"hidden"},ke=(0,ie.Z)((0,ie.Z)({},ke),{},(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({transform:"translateY(".concat(ft,"px)")},me?"marginRight":"marginLeft",-pt),"position","absolute"),"left",0),"right",0),"top",0))),Kt.createElement("div",{style:Oe},Kt.createElement(qt.Z,{onResize:function(Vn){var sn=Vn.offsetHeight;sn&&we&&we()}},Kt.createElement("div",(0,Mt.Z)({style:ke,className:jt()((0,Ie.Z)({},"".concat(le,"-holder-inner"),le)),ref:Ot},ae),At,Re)))});Ct.displayName="Filler";var et=Ct;function tt(Lt){var Ot=Lt.children,mt=Lt.setRef,ft=Kt.useCallback(function(pt){mt(pt)},[]);return Kt.cloneElement(Ot,{ref:ft})}function lt(Lt,Ot,mt,ft,pt,At,le,we){var ae=we.getKey;return Lt.slice(Ot,mt+1).map(function(me,Re){var Oe=Ot+Re,ke=le(me,Oe,{style:{width:ft},offsetX:pt}),rn=ae(me);return Kt.createElement(tt,{key:rn,setRef:function(sn){return At(me,sn)}},ke)})}function rt(Lt,Ot,mt,ft){var pt=mt-Lt,At=Ot-mt,le=Math.min(pt,At)*2;if(ft<=le){var we=Math.floor(ft/2);return ft%2?mt+we+1:mt-we}return pt>At?mt-(ft-At):mt+(ft-pt)}function ht(Lt,Ot,mt){var ft=Lt.length,pt=Ot.length,At,le;if(ft===0&&pt===0)return null;ft<pt?(At=Lt,le=Ot):(At=Ot,le=Lt);var we={__EMPTY_ITEM__:!0};function ae(Vn){return Vn!==void 0?mt(Vn):we}for(var me=null,Re=Math.abs(ft-pt)!==1,Oe=0;Oe<le.length;Oe+=1){var ke=ae(At[Oe]),rn=ae(le[Oe]);if(ke!==rn){me=Oe,Re=Re||ke!==ae(le[Oe+1]);break}}return me===null?null:{index:me,multiple:Re}}function dt(Lt,Ot,mt){var ft=Kt.useState(Lt),pt=(0,ee.Z)(ft,2),At=pt[0],le=pt[1],we=Kt.useState(null),ae=(0,ee.Z)(we,2),me=ae[0],Re=ae[1];return Kt.useEffect(function(){var Oe=ht(At||[],Lt||[],Ot);(Oe==null?void 0:Oe.index)!==void 0&&(mt==null||mt(Oe.index),Re(Lt[Oe.index])),le(Lt)},[Lt]),[me]}var St=bt(16089),It=(typeof navigator=="undefined"?"undefined":(0,ce.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),_t=It,Gt=function(Lt,Ot,mt,ft){var pt=(0,Kt.useRef)(!1),At=(0,Kt.useRef)(null);function le(){clearTimeout(At.current),pt.current=!0,At.current=setTimeout(function(){pt.current=!1},50)}var we=(0,Kt.useRef)({top:Lt,bottom:Ot,left:mt,right:ft});return we.current.top=Lt,we.current.bottom=Ot,we.current.left=mt,we.current.right=ft,function(ae,me){var Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Oe=ae?me<0&&we.current.left||me>0&&we.current.right:me<0&&we.current.top||me>0&&we.current.bottom;return Re&&Oe?(clearTimeout(At.current),pt.current=!1):(!Oe||pt.current)&&le(),!pt.current&&Oe}};function oe(Lt,Ot,mt,ft,pt,At,le){var we=(0,Kt.useRef)(0),ae=(0,Kt.useRef)(null),me=(0,Kt.useRef)(null),Re=(0,Kt.useRef)(!1),Oe=Gt(Ot,mt,ft,pt);function ke(ii,_n){if(St.Z.cancel(ae.current),!Oe(!1,_n)){var ji=ii;if(!ji._virtualHandled)ji._virtualHandled=!0;else return;we.current+=_n,me.current=_n,_t||ji.preventDefault(),ae.current=(0,St.Z)(function(){var cr=Re.current?10:1;le(we.current*cr,!1),we.current=0})}}function rn(ii,_n){le(_n,!0),_t||ii.preventDefault()}var Vn=(0,Kt.useRef)(null),sn=(0,Kt.useRef)(null);function An(ii){if(Lt){St.Z.cancel(sn.current),sn.current=(0,St.Z)(function(){Vn.current=null},2);var _n=ii.deltaX,ji=ii.deltaY,cr=ii.shiftKey,Ji=_n,mr=ji;(Vn.current==="sx"||!Vn.current&&cr&&ji&&!_n)&&(Ji=ji,mr=0,Vn.current="sx");var Mr=Math.abs(Ji),ao=Math.abs(mr);Vn.current===null&&(Vn.current=At&&Mr>ao?"x":"y"),Vn.current==="y"?ke(ii,mr):rn(ii,Ji)}}function Bn(ii){Lt&&(Re.current=ii.detail===me.current)}return[An,Bn]}function ue(Lt,Ot,mt,ft){var pt=Kt.useMemo(function(){return[new Map,[]]},[Lt,mt.id,ft]),At=(0,ee.Z)(pt,2),le=At[0],we=At[1],ae=function(Re){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Re,ke=le.get(Re),rn=le.get(Oe);if(ke===void 0||rn===void 0)for(var Vn=Lt.length,sn=we.length;sn<Vn;sn+=1){var An,Bn=Lt[sn],ii=Ot(Bn);le.set(ii,sn);var _n=(An=mt.get(ii))!==null&&An!==void 0?An:ft;if(we[sn]=(we[sn-1]||0)+_n,ii===Re&&(ke=sn),ii===Oe&&(rn=sn),ke!==void 0&&rn!==void 0)break}return{top:we[ke-1]||0,bottom:we[rn]}};return ae}var de=bt(52884),be=bt(95727),Jt=function(){function Lt(){(0,de.Z)(this,Lt),(0,Ie.Z)(this,"maps",void 0),(0,Ie.Z)(this,"id",0),(0,Ie.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,be.Z)(Lt,[{key:"set",value:function(mt,ft){this.maps[mt]=ft,this.id+=1,this.diffKeys.add(mt)}},{key:"get",value:function(mt){return this.maps[mt]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),Lt}(),Ke=Jt;function Wt(Lt){var Ot=parseFloat(Lt);return isNaN(Ot)?0:Ot}function Ge(Lt,Ot,mt){var ft=Kt.useState(0),pt=(0,ee.Z)(ft,2),At=pt[0],le=pt[1],we=(0,Kt.useRef)(new Map),ae=(0,Kt.useRef)(new Ke),me=(0,Kt.useRef)(0);function Re(){me.current+=1}function Oe(){var rn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Re();var Vn=function(){var Bn=!1;we.current.forEach(function(ii,_n){if(ii&&ii.offsetParent){var ji=ii.offsetHeight,cr=getComputedStyle(ii),Ji=cr.marginTop,mr=cr.marginBottom,Mr=Wt(Ji),ao=Wt(mr),Yr=ji+Mr+ao;ae.current.get(_n)!==Yr&&(ae.current.set(_n,Yr),Bn=!0)}}),Bn&&le(function(ii){return ii+1})};if(rn)Vn();else{me.current+=1;var sn=me.current;Promise.resolve().then(function(){sn===me.current&&Vn()})}}function ke(rn,Vn){var sn=Lt(rn),An=we.current.get(sn);Vn?(we.current.set(sn,Vn),Oe()):we.current.delete(sn),!An!=!Vn&&(Vn?Ot==null||Ot(rn):mt==null||mt(rn))}return(0,Kt.useEffect)(function(){return Re},[]),[ke,Oe,ae.current,At]}var He=14/15;function Me(Lt,Ot,mt){var ft=(0,Kt.useRef)(!1),pt=(0,Kt.useRef)(0),At=(0,Kt.useRef)(0),le=(0,Kt.useRef)(null),we=(0,Kt.useRef)(null),ae,me=function(rn){if(ft.current){var Vn=Math.ceil(rn.touches[0].pageX),sn=Math.ceil(rn.touches[0].pageY),An=pt.current-Vn,Bn=At.current-sn,ii=Math.abs(An)>Math.abs(Bn);ii?pt.current=Vn:At.current=sn;var _n=mt(ii,ii?An:Bn,!1,rn);_n&&rn.preventDefault(),clearInterval(we.current),_n&&(we.current=setInterval(function(){ii?An*=He:Bn*=He;var ji=Math.floor(ii?An:Bn);(!mt(ii,ji,!0)||Math.abs(ji)<=.1)&&clearInterval(we.current)},16))}},Re=function(){ft.current=!1,ae()},Oe=function(rn){ae(),rn.touches.length===1&&!ft.current&&(ft.current=!0,pt.current=Math.ceil(rn.touches[0].pageX),At.current=Math.ceil(rn.touches[0].pageY),le.current=rn.target,le.current.addEventListener("touchmove",me,{passive:!1}),le.current.addEventListener("touchend",Re,{passive:!0}))};ae=function(){le.current&&(le.current.removeEventListener("touchmove",me),le.current.removeEventListener("touchend",Re))},(0,re.Z)(function(){return Lt&&Ot.current.addEventListener("touchstart",Oe,{passive:!0}),function(){var ke;(ke=Ot.current)===null||ke===void 0||ke.removeEventListener("touchstart",Oe),ae(),clearInterval(we.current)}},[Lt])}function We(Lt){return Math.floor(Math.pow(Lt,.5))}function _e(Lt,Ot){var mt="touches"in Lt?Lt.touches[0]:Lt;return mt[Ot?"pageX":"pageY"]-window[Ot?"scrollX":"scrollY"]}function ve(Lt,Ot,mt){Kt.useEffect(function(){var ft=Ot.current;if(Lt&&ft){var pt=!1,At,le,we=function(){St.Z.cancel(At)},ae=function ke(){we(),At=(0,St.Z)(function(){mt(le),ke()})},me=function(rn){if(!rn.target.draggable){var Vn=rn;Vn._virtualHandled||(Vn._virtualHandled=!0,pt=!0)}},Re=function(){pt=!1,we()},Oe=function(rn){if(pt){var Vn=_e(rn,!1),sn=ft.getBoundingClientRect(),An=sn.top,Bn=sn.bottom;if(Vn<=An){var ii=An-Vn;le=-We(ii),ae()}else if(Vn>=Bn){var _n=Vn-Bn;le=We(_n),ae()}else we()}};return ft.addEventListener("mousedown",me),ft.ownerDocument.addEventListener("mouseup",Re),ft.ownerDocument.addEventListener("mousemove",Oe),function(){ft.removeEventListener("mousedown",me),ft.ownerDocument.removeEventListener("mouseup",Re),ft.ownerDocument.removeEventListener("mousemove",Oe),we()}}},[Lt])}var ne=10;function Se(Lt,Ot,mt,ft,pt,At,le,we){var ae=Kt.useRef(),me=Kt.useState(null),Re=(0,ee.Z)(me,2),Oe=Re[0],ke=Re[1];return(0,re.Z)(function(){if(Oe&&Oe.times<ne){if(!Lt.current){ke(function(jo){return(0,ie.Z)({},jo)});return}At();var rn=Oe.targetAlign,Vn=Oe.originAlign,sn=Oe.index,An=Oe.offset,Bn=Lt.current.clientHeight,ii=!1,_n=rn,ji=null;if(Bn){for(var cr=rn||Vn,Ji=0,mr=0,Mr=0,ao=Math.min(Ot.length-1,sn),Yr=0;Yr<=ao;Yr+=1){var Zr=pt(Ot[Yr]);mr=Ji;var kr=mt.get(Zr);Mr=mr+(kr===void 0?ft:kr),Ji=Mr}for(var Gr=cr==="top"?An:Bn-An,lo=ao;lo>=0;lo-=1){var _o=pt(Ot[lo]),ns=mt.get(_o);if(ns===void 0){ii=!0;break}if(Gr-=ns,Gr<=0)break}switch(cr){case"top":ji=mr-An;break;case"bottom":ji=Mr-Bn+An;break;default:{var co=Lt.current.scrollTop,ys=co+Bn;mr<co?_n="top":Mr>ys&&(_n="bottom")}}ji!==null&&le(ji),ji!==Oe.lastTop&&(ii=!0)}ii&&ke((0,ie.Z)((0,ie.Z)({},Oe),{},{times:Oe.times+1,targetAlign:_n,lastTop:ji}))}},[Oe,Lt.current]),function(rn){if(rn==null){we();return}if(St.Z.cancel(ae.current),typeof rn=="number")le(rn);else if(rn&&(0,ce.Z)(rn)==="object"){var Vn,sn=rn.align;"index"in rn?Vn=rn.index:Vn=Ot.findIndex(function(ii){return pt(ii)===rn.key});var An=rn.offset,Bn=An===void 0?0:An;ke({times:0,index:Vn,offset:Bn,originAlign:sn})}}}var Pn=Kt.forwardRef(function(Lt,Ot){var mt=Lt.prefixCls,ft=Lt.rtl,pt=Lt.scrollOffset,At=Lt.scrollRange,le=Lt.onStartMove,we=Lt.onStopMove,ae=Lt.onScroll,me=Lt.horizontal,Re=Lt.spinSize,Oe=Lt.containerSize,ke=Lt.style,rn=Lt.thumbStyle,Vn=Lt.showScrollBar,sn=Kt.useState(!1),An=(0,ee.Z)(sn,2),Bn=An[0],ii=An[1],_n=Kt.useState(null),ji=(0,ee.Z)(_n,2),cr=ji[0],Ji=ji[1],mr=Kt.useState(null),Mr=(0,ee.Z)(mr,2),ao=Mr[0],Yr=Mr[1],Zr=!ft,kr=Kt.useRef(),Gr=Kt.useRef(),lo=Kt.useState(Vn),_o=(0,ee.Z)(lo,2),ns=_o[0],co=_o[1],ys=Kt.useRef(),jo=function(){Vn===!0||Vn===!1||(clearTimeout(ys.current),co(!0),ys.current=setTimeout(function(){co(!1)},3e3))},$t=At-Oe||0,ri=Oe-Re||0,ws=Kt.useMemo(function(){if(pt===0||$t===0)return 0;var De=pt/$t;return De*ri},[pt,$t,ri]),Is=function(ti){ti.stopPropagation(),ti.preventDefault()},ma=Kt.useRef({top:ws,dragging:Bn,pageY:cr,startTop:ao});ma.current={top:ws,dragging:Bn,pageY:cr,startTop:ao};var va=function(ti){ii(!0),Ji(_e(ti,me)),Yr(ma.current.top),le(),ti.stopPropagation(),ti.preventDefault()};Kt.useEffect(function(){var De=function(Le){Le.preventDefault()},ti=kr.current,yi=Gr.current;return ti.addEventListener("touchstart",De,{passive:!1}),yi.addEventListener("touchstart",va,{passive:!1}),function(){ti.removeEventListener("touchstart",De),yi.removeEventListener("touchstart",va)}},[]);var qs=Kt.useRef();qs.current=$t;var _r=Kt.useRef();_r.current=ri,Kt.useEffect(function(){if(Bn){var De,ti=function(Le){var yn=ma.current,Qn=yn.dragging,wi=yn.pageY,Oi=yn.startTop;St.Z.cancel(De);var qe=kr.current.getBoundingClientRect(),oi=Oe/(me?qe.width:qe.height);if(Qn){var Pi=(_e(Le,me)-wi)*oi,er=Oi;!Zr&&me?er-=Pi:er+=Pi;var On=qs.current,ui=_r.current,Cr=ui?er/ui:0,or=Math.ceil(Cr*On);or=Math.max(or,0),or=Math.min(or,On),De=(0,St.Z)(function(){ae(or,me)})}},yi=function(){ii(!1),we()};return window.addEventListener("mousemove",ti,{passive:!0}),window.addEventListener("touchmove",ti,{passive:!0}),window.addEventListener("mouseup",yi,{passive:!0}),window.addEventListener("touchend",yi,{passive:!0}),function(){window.removeEventListener("mousemove",ti),window.removeEventListener("touchmove",ti),window.removeEventListener("mouseup",yi),window.removeEventListener("touchend",yi),St.Z.cancel(De)}}},[Bn]),Kt.useEffect(function(){return jo(),function(){clearTimeout(ys.current)}},[pt]),Kt.useImperativeHandle(Ot,function(){return{delayHidden:jo}});var Dr="".concat(mt,"-scrollbar"),kn={position:"absolute",visibility:ns?null:"hidden"},Tn={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return me?(kn.height=8,kn.left=0,kn.right=0,kn.bottom=0,Tn.height="100%",Tn.width=Re,Zr?Tn.left=ws:Tn.right=ws):(kn.width=8,kn.top=0,kn.bottom=0,Zr?kn.right=0:kn.left=0,Tn.width="100%",Tn.height=Re,Tn.top=ws),Kt.createElement("div",{ref:kr,className:jt()(Dr,(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},"".concat(Dr,"-horizontal"),me),"".concat(Dr,"-vertical"),!me),"".concat(Dr,"-visible"),ns)),style:(0,ie.Z)((0,ie.Z)({},kn),ke),onMouseDown:Is,onMouseMove:jo},Kt.createElement("div",{ref:Gr,className:jt()("".concat(Dr,"-thumb"),(0,Ie.Z)({},"".concat(Dr,"-thumb-moving"),Bn)),style:(0,ie.Z)((0,ie.Z)({},Tn),rn),onMouseDown:va}))}),Mn=Pn,Xe=20;function Nn(){var Lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,mt=Lt/Ot*Lt;return isNaN(mt)&&(mt=0),mt=Math.max(mt,Xe),Math.floor(mt)}var Zn=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],fi=[],zn={overflowY:"auto",overflowAnchor:"none"};function Si(Lt,Ot){var mt=Lt.prefixCls,ft=mt===void 0?"rc-virtual-list":mt,pt=Lt.className,At=Lt.height,le=Lt.itemHeight,we=Lt.fullHeight,ae=we===void 0?!0:we,me=Lt.style,Re=Lt.data,Oe=Lt.children,ke=Lt.itemKey,rn=Lt.virtual,Vn=Lt.direction,sn=Lt.scrollWidth,An=Lt.component,Bn=An===void 0?"div":An,ii=Lt.onScroll,_n=Lt.onVirtualScroll,ji=Lt.onVisibleChange,cr=Lt.innerProps,Ji=Lt.extraRender,mr=Lt.styles,Mr=Lt.showScrollBar,ao=Mr===void 0?"optional":Mr,Yr=(0,Zt.Z)(Lt,Zn),Zr=Kt.useCallback(function(is){return typeof ke=="function"?ke(is):is==null?void 0:is[ke]},[ke]),kr=Ge(Zr,null,null),Gr=(0,ee.Z)(kr,4),lo=Gr[0],_o=Gr[1],ns=Gr[2],co=Gr[3],ys=!!(rn!==!1&&At&&le),jo=Kt.useMemo(function(){return Object.values(ns.maps).reduce(function(is,Vo){return is+Vo},0)},[ns.id,ns.maps]),$t=ys&&Re&&(Math.max(le*Re.length,jo)>At||!!sn),ri=Vn==="rtl",ws=jt()(ft,(0,Ie.Z)({},"".concat(ft,"-rtl"),ri),pt),Is=Re||fi,ma=(0,Kt.useRef)(),va=(0,Kt.useRef)(),qs=(0,Kt.useRef)(),_r=(0,Kt.useState)(0),Dr=(0,ee.Z)(_r,2),kn=Dr[0],Tn=Dr[1],De=(0,Kt.useState)(0),ti=(0,ee.Z)(De,2),yi=ti[0],dn=ti[1],Le=(0,Kt.useState)(!1),yn=(0,ee.Z)(Le,2),Qn=yn[0],wi=yn[1],Oi=function(){wi(!0)},qe=function(){wi(!1)},oi={getKey:Zr};function Pi(is){Tn(function(Vo){var Es;typeof is=="function"?Es=is(Vo):Es=is;var Zo=ko(Es);return ma.current.scrollTop=Zo,Zo})}var er=(0,Kt.useRef)({start:0,end:Is.length}),On=(0,Kt.useRef)(),ui=dt(Is,Zr),Cr=(0,ee.Z)(ui,1),or=Cr[0];On.current=or;var zr=Kt.useMemo(function(){if(!ys)return{scrollHeight:void 0,start:0,end:Is.length-1,offset:void 0};if(!$t){var is;return{scrollHeight:((is=va.current)===null||is===void 0?void 0:is.offsetHeight)||0,start:0,end:Is.length-1,offset:void 0}}for(var Vo=0,Es,Zo,Vs,yl=Is.length,Ao=0;Ao<yl;Ao+=1){var yo=Is[Ao],Zi=Zr(yo),bo=ns.get(Zi),xs=Vo+(bo===void 0?le:bo);xs>=kn&&Es===void 0&&(Es=Ao,Zo=Vo),xs>kn+At&&Vs===void 0&&(Vs=Ao),Vo=xs}return Es===void 0&&(Es=0,Zo=0,Vs=Math.ceil(At/le)),Vs===void 0&&(Vs=Is.length-1),Vs=Math.min(Vs+1,Is.length-1),{scrollHeight:Vo,start:Es,end:Vs,offset:Zo}},[$t,ys,kn,Is,co,At]),ar=zr.scrollHeight,Lr=zr.start,nr=zr.end,Pr=zr.offset;er.current.start=Lr,er.current.end=nr,Kt.useLayoutEffect(function(){var is=ns.getRecord();if(is.size===1){var Vo=Array.from(is)[0],Es=Is[Lr];if(Es){var Zo=Zr(Es);if(Zo===Vo){var Vs=ns.get(Vo),yl=Vs-le;Pi(function(Ao){return Ao+yl})}}}ns.resetRecord()},[ar]);var io=Kt.useState({width:0,height:At}),Uo=(0,ee.Z)(io,2),gi=Uo[0],Qo=Uo[1],ps=function(Vo){Qo({width:Vo.offsetWidth,height:Vo.offsetHeight})},$o=(0,Kt.useRef)(),pi=(0,Kt.useRef)(),ur=Kt.useMemo(function(){return Nn(gi.width,sn)},[gi.width,sn]),Ur=Kt.useMemo(function(){return Nn(gi.height,ar)},[gi.height,ar]),uo=ar-At,qr=(0,Kt.useRef)(uo);qr.current=uo;function ko(is){var Vo=is;return Number.isNaN(qr.current)||(Vo=Math.min(Vo,qr.current)),Vo=Math.max(Vo,0),Vo}var di=kn<=0,Co=kn>=uo,jr=yi<=0,Sr=yi>=sn,Ci=Gt(di,Co,jr,Sr),Bo=function(){return{x:ri?-yi:yi,y:kn}},xi=(0,Kt.useRef)(Bo()),Yo=(0,Pt.useEvent)(function(is){if(_n){var Vo=(0,ie.Z)((0,ie.Z)({},Bo()),is);(xi.current.x!==Vo.x||xi.current.y!==Vo.y)&&(_n(Vo),xi.current=Vo)}});function ha(is,Vo){var Es=is;Vo?((0,Yt.flushSync)(function(){dn(Es)}),Yo()):Pi(Es)}function vs(is){var Vo=is.currentTarget.scrollTop;Vo!==kn&&Pi(Vo),ii==null||ii(is),Yo()}var da=function(Vo){var Es=Vo,Zo=sn?sn-gi.width:0;return Es=Math.max(Es,0),Es=Math.min(Es,Zo),Es},ta=(0,Pt.useEvent)(function(is,Vo){Vo?((0,Yt.flushSync)(function(){dn(function(Es){var Zo=Es+(ri?-is:is);return da(Zo)})}),Yo()):Pi(function(Es){var Zo=Es+is;return Zo})}),To=oe(ys,di,Co,jr,Sr,!!sn,ta),Ro=(0,ee.Z)(To,2),us=Ro[0],os=Ro[1];Me(ys,ma,function(is,Vo,Es,Zo){var Vs=Zo;return Ci(is,Vo,Es)?!1:!Vs||!Vs._virtualHandled?(Vs&&(Vs._virtualHandled=!0),us({preventDefault:function(){},deltaX:is?Vo:0,deltaY:is?0:Vo}),!0):!1}),ve($t,ma,function(is){Pi(function(Vo){return Vo+is})}),(0,re.Z)(function(){function is(Es){var Zo=di&&Es.detail<0,Vs=Co&&Es.detail>0;ys&&!Zo&&!Vs&&Es.preventDefault()}var Vo=ma.current;return Vo.addEventListener("wheel",us,{passive:!1}),Vo.addEventListener("DOMMouseScroll",os,{passive:!0}),Vo.addEventListener("MozMousePixelScroll",is,{passive:!1}),function(){Vo.removeEventListener("wheel",us),Vo.removeEventListener("DOMMouseScroll",os),Vo.removeEventListener("MozMousePixelScroll",is)}},[ys,di,Co]),(0,re.Z)(function(){if(sn){var is=da(yi);dn(is),Yo({x:is})}},[gi.width,sn]);var xr=function(){var Vo,Es;(Vo=$o.current)===null||Vo===void 0||Vo.delayHidden(),(Es=pi.current)===null||Es===void 0||Es.delayHidden()},Ne=Se(ma,Is,ns,le,Zr,function(){return _o(!0)},Pi,xr);Kt.useImperativeHandle(Ot,function(){return{nativeElement:qs.current,getScrollInfo:Bo,scrollTo:function(Vo){function Es(Zo){return Zo&&(0,ce.Z)(Zo)==="object"&&("left"in Zo||"top"in Zo)}Es(Vo)?(Vo.left!==void 0&&dn(da(Vo.left)),Ne(Vo.top)):Ne(Vo)}}}),(0,re.Z)(function(){if(ji){var is=Is.slice(Lr,nr+1);ji(is,Is)}},[Lr,nr,Is]);var ls=ue(Is,Zr,ns,le),ra=Ji==null?void 0:Ji({start:Lr,end:nr,virtual:$t,offsetX:yi,offsetY:Pr,rtl:ri,getSize:ls}),al=lt(Is,Lr,nr,sn,yi,lo,Oe,oi),ll=null;At&&(ll=(0,ie.Z)((0,Ie.Z)({},ae?"height":"maxHeight",At),zn),ys&&(ll.overflowY="hidden",sn&&(ll.overflowX="hidden"),Qn&&(ll.pointerEvents="none")));var bl={};return ri&&(bl.dir="rtl"),Kt.createElement("div",(0,Mt.Z)({ref:qs,style:(0,ie.Z)((0,ie.Z)({},me),{},{position:"relative"}),className:ws},bl,Yr),Kt.createElement(qt.Z,{onResize:ps},Kt.createElement(Bn,{className:"".concat(ft,"-holder"),style:ll,ref:ma,onScroll:vs,onMouseEnter:xr},Kt.createElement(et,{prefixCls:ft,height:ar,offsetX:yi,offsetY:Pr,scrollWidth:sn,onInnerResize:_o,ref:va,innerProps:cr,rtl:ri,extra:ra},al))),$t&&ar>At&&Kt.createElement(Mn,{ref:$o,prefixCls:ft,scrollOffset:kn,scrollRange:ar,rtl:ri,onScroll:ha,onStartMove:Oi,onStopMove:qe,spinSize:Ur,containerSize:gi.height,style:mr==null?void 0:mr.verticalScrollBar,thumbStyle:mr==null?void 0:mr.verticalScrollBarThumb,showScrollBar:ao}),$t&&sn>gi.width&&Kt.createElement(Mn,{ref:pi,prefixCls:ft,scrollOffset:yi,scrollRange:sn,rtl:ri,onScroll:ha,onStartMove:Oi,onStopMove:qe,spinSize:ur,containerSize:gi.width,horizontal:!0,style:mr==null?void 0:mr.horizontalScrollBar,thumbStyle:mr==null?void 0:mr.horizontalScrollBarThumb,showScrollBar:ao}))}var nn=Kt.forwardRef(Si);nn.displayName="List";var Fi=nn,Ti=Fi},2637:function(hi,Cn,bt){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Object.defineProperty(Cn,"DraggableCore",{enumerable:!0,get:function(){return jt.default}}),Cn.default=void 0;var Mt=Kt(bt(59301)),ce=Pt(bt(12708)),ie=Pt(bt(4676)),Ie=Pt(bt(57780)),ee=bt(13957),Zt=bt(60976),Nt=bt(36641),jt=Pt(bt(80486)),qt=Pt(bt(94187));function Pt(rt){return rt&&rt.__esModule?rt:{default:rt}}function re(rt){if(typeof WeakMap!="function")return null;var ht=new WeakMap,dt=new WeakMap;return(re=function(St){return St?dt:ht})(rt)}function Kt(rt,ht){if(!ht&&rt&&rt.__esModule)return rt;if(rt===null||typeof rt!="object"&&typeof rt!="function")return{default:rt};var dt=re(ht);if(dt&&dt.has(rt))return dt.get(rt);var St={},It=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _t in rt)if(_t!=="default"&&Object.prototype.hasOwnProperty.call(rt,_t)){var Gt=It?Object.getOwnPropertyDescriptor(rt,_t):null;Gt&&(Gt.get||Gt.set)?Object.defineProperty(St,_t,Gt):St[_t]=rt[_t]}return St.default=rt,dt&&dt.set(rt,St),St}function Yt(){return Yt=Object.assign?Object.assign.bind():function(rt){for(var ht=1;ht<arguments.length;ht++){var dt=arguments[ht];for(var St in dt)Object.prototype.hasOwnProperty.call(dt,St)&&(rt[St]=dt[St])}return rt},Yt.apply(this,arguments)}function Ct(rt,ht,dt){return ht=et(ht),ht in rt?Object.defineProperty(rt,ht,{value:dt,enumerable:!0,configurable:!0,writable:!0}):rt[ht]=dt,rt}function et(rt){var ht=tt(rt,"string");return typeof ht=="symbol"?ht:String(ht)}function tt(rt,ht){if(typeof rt!="object"||rt===null)return rt;var dt=rt[Symbol.toPrimitive];if(dt!==void 0){var St=dt.call(rt,ht||"default");if(typeof St!="object")return St;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ht==="string"?String:Number)(rt)}class lt extends Mt.Component{static getDerivedStateFromProps(ht,dt){let{position:St}=ht,{prevPropsPosition:It}=dt;return St&&(!It||St.x!==It.x||St.y!==It.y)?((0,qt.default)("Draggable: getDerivedStateFromProps %j",{position:St,prevPropsPosition:It}),{x:St.x,y:St.y,prevPropsPosition:Sg({},St)}):null}constructor(ht){super(ht),Ct(this,"onDragStart",(dt,St)=>{if((0,qt.default)("Draggable: onDragStart: %j",St),this.props.onStart(dt,(0,Zt.createDraggableData)(this,St))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),Ct(this,"onDrag",(dt,St)=>{if(!this.state.dragging)return!1;(0,qt.default)("Draggable: onDrag: %j",St);const It=(0,Zt.createDraggableData)(this,St),_t={x:It.x,y:It.y,slackX:0,slackY:0};if(this.props.bounds){const{x:oe,y:ue}=_t;_t.x+=this.state.slackX,_t.y+=this.state.slackY;const[de,be]=(0,Zt.getBoundPosition)(this,_t.x,_t.y);_t.x=de,_t.y=be,_t.slackX=this.state.slackX+(oe-_t.x),_t.slackY=this.state.slackY+(ue-_t.y),It.x=_t.x,It.y=_t.y,It.deltaX=_t.x-this.state.x,It.deltaY=_t.y-this.state.y}if(this.props.onDrag(dt,It)===!1)return!1;this.setState(_t)}),Ct(this,"onDragStop",(dt,St)=>{if(!this.state.dragging||this.props.onStop(dt,(0,Zt.createDraggableData)(this,St))===!1)return!1;(0,qt.default)("Draggable: onDragStop: %j",St);const _t={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:oe,y:ue}=this.props.position;_t.x=oe,_t.y=ue}this.setState(_t)}),this.state={dragging:!1,dragged:!1,x:ht.position?ht.position.x:ht.defaultPosition.x,y:ht.position?ht.position.y:ht.defaultPosition.y,prevPropsPosition:Sg({},ht.position),slackX:0,slackY:0,isElementSVG:!1},ht.position&&!(ht.onDrag||ht.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 ht,dt;return(ht=(dt=this.props)===null||dt===void 0||(dt=dt.nodeRef)===null||dt===void 0?void 0:dt.current)!==null&&ht!==void 0?ht:ie.default.findDOMNode(this)}render(){const ve=this.props,{axis:ht,bounds:dt,children:St,defaultPosition:It,defaultClassName:_t,defaultClassNameDragging:Gt,defaultClassNameDragged:oe,position:ue,positionOffset:de,scale:be}=ve,Jt=Pw(ve,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"]);let Ke={},Wt=null;const He=!!!ue||this.state.dragging,Me=ue||It,We={x:(0,Zt.canDragX)(this)&&He?this.state.x:Me.x,y:(0,Zt.canDragY)(this)&&He?this.state.y:Me.y};this.state.isElementSVG?Wt=(0,ee.createSVGTransform)(We,de):Ke=(0,ee.createCSSTransform)(We,de);const _e=(0,Ie.default)(St.props.className||"",_t,{[Gt]:this.state.dragging,[oe]:this.state.dragged});return Mt.createElement(jt.default,Yt({},Jt,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),Mt.cloneElement(Mt.Children.only(St),{className:_e,style:Sg(Sg({},St.props.style),Ke),transform:Wt}))}}Cn.default=lt,Ct(lt,"displayName","Draggable"),Ct(lt,"propTypes",Iy(Sg({},jt.default.propTypes),{axis:ce.default.oneOf(["both","x","y","none"]),bounds:ce.default.oneOfType([ce.default.shape({left:ce.default.number,right:ce.default.number,top:ce.default.number,bottom:ce.default.number}),ce.default.string,ce.default.oneOf([!1])]),defaultClassName:ce.default.string,defaultClassNameDragging:ce.default.string,defaultClassNameDragged:ce.default.string,defaultPosition:ce.default.shape({x:ce.default.number,y:ce.default.number}),positionOffset:ce.default.shape({x:ce.default.oneOfType([ce.default.number,ce.default.string]),y:ce.default.oneOfType([ce.default.number,ce.default.string])}),position:ce.default.shape({x:ce.default.number,y:ce.default.number}),className:Nt.dontSetMe,style:Nt.dontSetMe,transform:Nt.dontSetMe})),Ct(lt,"defaultProps",Iy(Sg({},jt.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(hi,Cn,bt){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.default=void 0;var Mt=Pt(bt(59301)),ce=jt(bt(12708)),ie=jt(bt(4676)),Ie=bt(13957),ee=bt(60976),Zt=bt(36641),Nt=jt(bt(94187));function jt(lt){return lt&<.__esModule?lt:{default:lt}}function qt(lt){if(typeof WeakMap!="function")return null;var rt=new WeakMap,ht=new WeakMap;return(qt=function(dt){return dt?ht:rt})(lt)}function Pt(lt,rt){if(!rt&<&<.__esModule)return lt;if(lt===null||typeof lt!="object"&&typeof lt!="function")return{default:lt};var ht=qt(rt);if(ht&&ht.has(lt))return ht.get(lt);var dt={},St=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var It in lt)if(It!=="default"&&Object.prototype.hasOwnProperty.call(lt,It)){var _t=St?Object.getOwnPropertyDescriptor(lt,It):null;_t&&(_t.get||_t.set)?Object.defineProperty(dt,It,_t):dt[It]=lt[It]}return dt.default=lt,ht&&ht.set(lt,dt),dt}function re(lt,rt,ht){return rt=Kt(rt),rt in lt?Object.defineProperty(lt,rt,{value:ht,enumerable:!0,configurable:!0,writable:!0}):lt[rt]=ht,lt}function Kt(lt){var rt=Yt(lt,"string");return typeof rt=="symbol"?rt:String(rt)}function Yt(lt,rt){if(typeof lt!="object"||lt===null)return lt;var ht=lt[Symbol.toPrimitive];if(ht!==void 0){var dt=ht.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 Ct={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let et=Ct.mouse;class tt extends Mt.Component{constructor(){super(...arguments),re(this,"dragging",!1),re(this,"lastX",NaN),re(this,"lastY",NaN),re(this,"touchIdentifier",null),re(this,"mounted",!1),re(this,"handleDragStart",rt=>{if(this.props.onMouseDown(rt),!this.props.allowAnyClick&&typeof rt.button=="number"&&rt.button!==0)return!1;const ht=this.findDOMNode();if(!ht||!ht.ownerDocument||!ht.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:dt}=ht;if(this.props.disabled||!(rt.target instanceof dt.defaultView.Node)||this.props.handle&&!(0,Ie.matchesSelectorAndParentsTo)(rt.target,this.props.handle,ht)||this.props.cancel&&(0,Ie.matchesSelectorAndParentsTo)(rt.target,this.props.cancel,ht))return;rt.type==="touchstart"&&rt.preventDefault();const St=(0,Ie.getTouchIdentifier)(rt);this.touchIdentifier=St;const It=(0,ee.getControlPosition)(rt,St,this);if(It==null)return;const{x:_t,y:Gt}=It,oe=(0,ee.createCoreData)(this,_t,Gt);(0,Nt.default)("DraggableCore: handleDragStart: %j",oe),(0,Nt.default)("calling",this.props.onStart),!(this.props.onStart(rt,oe)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,Ie.addUserSelectStyles)(dt),this.dragging=!0,this.lastX=_t,this.lastY=Gt,(0,Ie.addEvent)(dt,et.move,this.handleDrag),(0,Ie.addEvent)(dt,et.stop,this.handleDragStop))}),re(this,"handleDrag",rt=>{const ht=(0,ee.getControlPosition)(rt,this.touchIdentifier,this);if(ht==null)return;let{x:dt,y:St}=ht;if(Array.isArray(this.props.grid)){let Gt=dt-this.lastX,oe=St-this.lastY;if([Gt,oe]=(0,ee.snapToGrid)(this.props.grid,Gt,oe),!Gt&&!oe)return;dt=this.lastX+Gt,St=this.lastY+oe}const It=(0,ee.createCoreData)(this,dt,St);if((0,Nt.default)("DraggableCore: handleDrag: %j",It),this.props.onDrag(rt,It)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch(Gt){const oe=document.createEvent("MouseEvents");oe.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(oe)}return}this.lastX=dt,this.lastY=St}),re(this,"handleDragStop",rt=>{if(!this.dragging)return;const ht=(0,ee.getControlPosition)(rt,this.touchIdentifier,this);if(ht==null)return;let{x:dt,y:St}=ht;if(Array.isArray(this.props.grid)){let oe=dt-this.lastX||0,ue=St-this.lastY||0;[oe,ue]=(0,ee.snapToGrid)(this.props.grid,oe,ue),dt=this.lastX+oe,St=this.lastY+ue}const It=(0,ee.createCoreData)(this,dt,St);if(this.props.onStop(rt,It)===!1||this.mounted===!1)return!1;const Gt=this.findDOMNode();Gt&&this.props.enableUserSelectHack&&(0,Ie.removeUserSelectStyles)(Gt.ownerDocument),(0,Nt.default)("DraggableCore: handleDragStop: %j",It),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,Gt&&((0,Nt.default)("DraggableCore: Removing handlers"),(0,Ie.removeEvent)(Gt.ownerDocument,et.move,this.handleDrag),(0,Ie.removeEvent)(Gt.ownerDocument,et.stop,this.handleDragStop))}),re(this,"onMouseDown",rt=>(et=Ct.mouse,this.handleDragStart(rt))),re(this,"onMouseUp",rt=>(et=Ct.mouse,this.handleDragStop(rt))),re(this,"onTouchStart",rt=>(et=Ct.touch,this.handleDragStart(rt))),re(this,"onTouchEnd",rt=>(et=Ct.touch,this.handleDragStop(rt)))}componentDidMount(){this.mounted=!0;const rt=this.findDOMNode();rt&&(0,Ie.addEvent)(rt,Ct.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const rt=this.findDOMNode();if(rt){const{ownerDocument:ht}=rt;(0,Ie.removeEvent)(ht,Ct.mouse.move,this.handleDrag),(0,Ie.removeEvent)(ht,Ct.touch.move,this.handleDrag),(0,Ie.removeEvent)(ht,Ct.mouse.stop,this.handleDragStop),(0,Ie.removeEvent)(ht,Ct.touch.stop,this.handleDragStop),(0,Ie.removeEvent)(rt,Ct.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,Ie.removeUserSelectStyles)(ht)}}findDOMNode(){var rt,ht;return(rt=this.props)!==null&&rt!==void 0&&rt.nodeRef?(ht=this.props)===null||ht===void 0||(ht=ht.nodeRef)===null||ht===void 0?void 0:ht.current:ie.default.findDOMNode(this)}render(){return Mt.cloneElement(Mt.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}Cn.default=tt,re(tt,"displayName","DraggableCore"),re(tt,"propTypes",{allowAnyClick:ce.default.bool,children:ce.default.node.isRequired,disabled:ce.default.bool,enableUserSelectHack:ce.default.bool,offsetParent:function(lt,rt){if(lt[rt]&<[rt].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:ce.default.arrayOf(ce.default.number),handle:ce.default.string,cancel:ce.default.string,nodeRef:ce.default.object,onStart:ce.default.func,onDrag:ce.default.func,onStop:ce.default.func,onMouseDown:ce.default.func,scale:ce.default.number,className:Zt.dontSetMe,style:Zt.dontSetMe,transform:Zt.dontSetMe}),re(tt,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},12911:function(hi,Cn,bt){"use strict";const{default:Mt,DraggableCore:ce}=bt(2637);hi.exports=Mt,hi.exports.default=Mt,hi.exports.DraggableCore=ce},13957:function(hi,Cn,bt){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.addClassName=It,Cn.addEvent=jt,Cn.addUserSelectStyles=dt,Cn.createCSSTransform=et,Cn.createSVGTransform=tt,Cn.getTouch=rt,Cn.getTouchIdentifier=ht,Cn.getTranslation=lt,Cn.innerHeight=Kt,Cn.innerWidth=Yt,Cn.matchesSelector=Zt,Cn.matchesSelectorAndParentsTo=Nt,Cn.offsetXYFromParent=Ct,Cn.outerHeight=Pt,Cn.outerWidth=re,Cn.removeClassName=_t,Cn.removeEvent=qt,Cn.removeUserSelectStyles=St;var Mt=bt(36641),ce=Ie(bt(32092));function ie(Gt){if(typeof WeakMap!="function")return null;var oe=new WeakMap,ue=new WeakMap;return(ie=function(de){return de?ue:oe})(Gt)}function Ie(Gt,oe){if(!oe&&Gt&&Gt.__esModule)return Gt;if(Gt===null||typeof Gt!="object"&&typeof Gt!="function")return{default:Gt};var ue=ie(oe);if(ue&&ue.has(Gt))return ue.get(Gt);var de={},be=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Jt in Gt)if(Jt!=="default"&&Object.prototype.hasOwnProperty.call(Gt,Jt)){var Ke=be?Object.getOwnPropertyDescriptor(Gt,Jt):null;Ke&&(Ke.get||Ke.set)?Object.defineProperty(de,Jt,Ke):de[Jt]=Gt[Jt]}return de.default=Gt,ue&&ue.set(Gt,de),de}let ee="";function Zt(Gt,oe){return ee||(ee=(0,Mt.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(ue){return(0,Mt.isFunction)(Gt[ue])})),(0,Mt.isFunction)(Gt[ee])?Gt[ee](oe):!1}function Nt(Gt,oe,ue){let de=Gt;do{if(Zt(de,oe))return!0;if(de===ue)return!1;de=de.parentNode}while(de);return!1}function jt(Gt,oe,ue,de){if(!Gt)return;const be=Sg({capture:!0},de);Gt.addEventListener?Gt.addEventListener(oe,ue,be):Gt.attachEvent?Gt.attachEvent("on"+oe,ue):Gt["on"+oe]=ue}function qt(Gt,oe,ue,de){if(!Gt)return;const be=Sg({capture:!0},de);Gt.removeEventListener?Gt.removeEventListener(oe,ue,be):Gt.detachEvent?Gt.detachEvent("on"+oe,ue):Gt["on"+oe]=null}function Pt(Gt){let oe=Gt.clientHeight;const ue=Gt.ownerDocument.defaultView.getComputedStyle(Gt);return oe+=(0,Mt.int)(ue.borderTopWidth),oe+=(0,Mt.int)(ue.borderBottomWidth),oe}function re(Gt){let oe=Gt.clientWidth;const ue=Gt.ownerDocument.defaultView.getComputedStyle(Gt);return oe+=(0,Mt.int)(ue.borderLeftWidth),oe+=(0,Mt.int)(ue.borderRightWidth),oe}function Kt(Gt){let oe=Gt.clientHeight;const ue=Gt.ownerDocument.defaultView.getComputedStyle(Gt);return oe-=(0,Mt.int)(ue.paddingTop),oe-=(0,Mt.int)(ue.paddingBottom),oe}function Yt(Gt){let oe=Gt.clientWidth;const ue=Gt.ownerDocument.defaultView.getComputedStyle(Gt);return oe-=(0,Mt.int)(ue.paddingLeft),oe-=(0,Mt.int)(ue.paddingRight),oe}function Ct(Gt,oe,ue){const be=oe===oe.ownerDocument.body?{left:0,top:0}:oe.getBoundingClientRect(),Jt=(Gt.clientX+oe.scrollLeft-be.left)/ue,Ke=(Gt.clientY+oe.scrollTop-be.top)/ue;return{x:Jt,y:Ke}}function et(Gt,oe){const ue=lt(Gt,oe,"px");return{[(0,ce.browserPrefixToKey)("transform",ce.default)]:ue}}function tt(Gt,oe){return lt(Gt,oe,"")}function lt(Gt,oe,ue){let{x:de,y:be}=Gt,Jt="translate(".concat(de).concat(ue,",").concat(be).concat(ue,")");if(oe){const Ke="".concat(typeof oe.x=="string"?oe.x:oe.x+ue),Wt="".concat(typeof oe.y=="string"?oe.y:oe.y+ue);Jt="translate(".concat(Ke,", ").concat(Wt,")")+Jt}return Jt}function rt(Gt,oe){return Gt.targetTouches&&(0,Mt.findInArray)(Gt.targetTouches,ue=>oe===ue.identifier)||Gt.changedTouches&&(0,Mt.findInArray)(Gt.changedTouches,ue=>oe===ue.identifier)}function ht(Gt){if(Gt.targetTouches&&Gt.targetTouches[0])return Gt.targetTouches[0].identifier;if(Gt.changedTouches&&Gt.changedTouches[0])return Gt.changedTouches[0].identifier}function dt(Gt){if(!Gt)return;let oe=Gt.getElementById("react-draggable-style-el");oe||(oe=Gt.createElement("style"),oe.type="text/css",oe.id="react-draggable-style-el",oe.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
|
`,oe.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
|
`,Gt.getElementsByTagName("head")[0].appendChild(oe)),Gt.body&&It(Gt.body,"react-draggable-transparent-selection")}function St(Gt){if(Gt)try{if(Gt.body&&_t(Gt.body,"react-draggable-transparent-selection"),Gt.selection)Gt.selection.empty();else{const oe=(Gt.defaultView||window).getSelection();oe&&oe.type!=="Caret"&&oe.removeAllRanges()}}catch(oe){}}function It(Gt,oe){Gt.classList?Gt.classList.add(oe):Gt.className.match(new RegExp("(?:^|\\s)".concat(oe,"(?!\\S)")))||(Gt.className+=" ".concat(oe))}function _t(Gt,oe){Gt.classList?Gt.classList.remove(oe):Gt.className=Gt.className.replace(new RegExp("(?:^|\\s)".concat(oe,"(?!\\S)"),"g"),"")}},32092:function(hi,Cn){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.browserPrefixToKey=ce,Cn.browserPrefixToStyle=ie,Cn.default=void 0,Cn.getPrefix=Mt;const bt=["Moz","Webkit","O","ms"];function Mt(){var Zt;let Nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";const jt=(Zt=window.document)===null||Zt===void 0||(Zt=Zt.documentElement)===null||Zt===void 0?void 0:Zt.style;if(!jt||Nt in jt)return"";for(let qt=0;qt<bt.length;qt++)if(ce(Nt,bt[qt])in jt)return bt[qt];return""}function ce(Zt,Nt){return Nt?"".concat(Nt).concat(Ie(Zt)):Zt}function ie(Zt,Nt){return Nt?"-".concat(Nt.toLowerCase(),"-").concat(Zt):Zt}function Ie(Zt){let Nt="",jt=!0;for(let qt=0;qt<Zt.length;qt++)jt?(Nt+=Zt[qt].toUpperCase(),jt=!1):Zt[qt]==="-"?jt=!0:Nt+=Zt[qt];return Nt}var ee=Cn.default=Mt()},94187:function(hi,Cn){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.default=bt;function bt(){}},60976:function(hi,Cn,bt){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.canDragX=ee,Cn.canDragY=Zt,Cn.createCoreData=jt,Cn.createDraggableData=qt,Cn.getBoundPosition=ie,Cn.getControlPosition=Nt,Cn.snapToGrid=Ie;var Mt=bt(36641),ce=bt(13957);function ie(Kt,Yt,Ct){if(!Kt.props.bounds)return[Yt,Ct];let{bounds:et}=Kt.props;et=typeof et=="string"?et:Pt(et);const tt=re(Kt);if(typeof et=="string"){const{ownerDocument:lt}=tt,rt=lt.defaultView;let ht;if(et==="parent"?ht=tt.parentNode:ht=lt.querySelector(et),!(ht instanceof rt.HTMLElement))throw new Error('Bounds selector "'+et+'" could not find an element.');const dt=ht,St=rt.getComputedStyle(tt),It=rt.getComputedStyle(dt);et={left:-tt.offsetLeft+(0,Mt.int)(It.paddingLeft)+(0,Mt.int)(St.marginLeft),top:-tt.offsetTop+(0,Mt.int)(It.paddingTop)+(0,Mt.int)(St.marginTop),right:(0,ce.innerWidth)(dt)-(0,ce.outerWidth)(tt)-tt.offsetLeft+(0,Mt.int)(It.paddingRight)-(0,Mt.int)(St.marginRight),bottom:(0,ce.innerHeight)(dt)-(0,ce.outerHeight)(tt)-tt.offsetTop+(0,Mt.int)(It.paddingBottom)-(0,Mt.int)(St.marginBottom)}}return(0,Mt.isNum)(et.right)&&(Yt=Math.min(Yt,et.right)),(0,Mt.isNum)(et.bottom)&&(Ct=Math.min(Ct,et.bottom)),(0,Mt.isNum)(et.left)&&(Yt=Math.max(Yt,et.left)),(0,Mt.isNum)(et.top)&&(Ct=Math.max(Ct,et.top)),[Yt,Ct]}function Ie(Kt,Yt,Ct){const et=Math.round(Yt/Kt[0])*Kt[0],tt=Math.round(Ct/Kt[1])*Kt[1];return[et,tt]}function ee(Kt){return Kt.props.axis==="both"||Kt.props.axis==="x"}function Zt(Kt){return Kt.props.axis==="both"||Kt.props.axis==="y"}function Nt(Kt,Yt,Ct){const et=typeof Yt=="number"?(0,ce.getTouch)(Kt,Yt):null;if(typeof Yt=="number"&&!et)return null;const tt=re(Ct),lt=Ct.props.offsetParent||tt.offsetParent||tt.ownerDocument.body;return(0,ce.offsetXYFromParent)(et||Kt,lt,Ct.props.scale)}function jt(Kt,Yt,Ct){const et=!(0,Mt.isNum)(Kt.lastX),tt=re(Kt);return et?{node:tt,deltaX:0,deltaY:0,lastX:Yt,lastY:Ct,x:Yt,y:Ct}:{node:tt,deltaX:Yt-Kt.lastX,deltaY:Ct-Kt.lastY,lastX:Kt.lastX,lastY:Kt.lastY,x:Yt,y:Ct}}function qt(Kt,Yt){const Ct=Kt.props.scale;return{node:Yt.node,x:Kt.state.x+Yt.deltaX/Ct,y:Kt.state.y+Yt.deltaY/Ct,deltaX:Yt.deltaX/Ct,deltaY:Yt.deltaY/Ct,lastX:Kt.state.x,lastY:Kt.state.y}}function Pt(Kt){return{left:Kt.left,top:Kt.top,right:Kt.right,bottom:Kt.bottom}}function re(Kt){const Yt=Kt.findDOMNode();if(!Yt)throw new Error("<DraggableCore>: Unmounted during event!");return Yt}},36641:function(hi,Cn){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.dontSetMe=Ie,Cn.findInArray=bt,Cn.int=ie,Cn.isFunction=Mt,Cn.isNum=ce;function bt(ee,Zt){for(let Nt=0,jt=ee.length;Nt<jt;Nt++)if(Zt.apply(Zt,[ee[Nt],Nt,ee]))return ee[Nt]}function Mt(ee){return typeof ee=="function"||Object.prototype.toString.call(ee)==="[object Function]"}function ce(ee){return typeof ee=="number"&&!isNaN(ee)}function ie(ee){return parseInt(ee,10)}function Ie(ee,Zt,Nt){if(ee[Zt])return new Error("Invalid prop ".concat(Zt," passed to ").concat(Nt," - do not set this, set it on the child."))}},27774:function(hi,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 Mt="size-sensor-object";Cn.SensorClassName=Mt;var ce="-1";Cn.SensorTabIndex=ce},79301:function(hi,Cn){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.default=void 0;var bt=function(ce){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,Ie=null;return function(){for(var ee=this,Zt=arguments.length,Nt=new Array(Zt),jt=0;jt<Zt;jt++)Nt[jt]=arguments[jt];clearTimeout(Ie),Ie=setTimeout(function(){ce.apply(ee,Nt)},ie)}};Cn.default=bt},79789:function(hi,Cn){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.default=void 0;var bt=1,Mt=function(){return"".concat(bt++)};Cn.default=Mt},47242:function(hi,Cn,bt){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.ver=Cn.clear=Cn.bind=void 0;var Mt=bt(95270),ce=function(Zt,Nt){var jt=(0,Mt.getSensor)(Zt);return jt.bind(Nt),function(){jt.unbind(Nt)}};Cn.bind=ce;var ie=function(Zt){var Nt=(0,Mt.getSensor)(Zt);(0,Mt.removeSensor)(Nt)};Cn.clear=ie;var Ie="1.0.2";Cn.ver=Ie},95270:function(hi,Cn,bt){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.removeSensor=Cn.getSensor=Cn.Sensors=void 0;var Mt=Ie(bt(79789)),ce=bt(57829),ie=bt(27774);function Ie(qt){return qt&&qt.__esModule?qt:{default:qt}}var ee={};Cn.Sensors=ee;function Zt(qt){qt&&ee[qt]&&delete ee[qt]}var Nt=function(Pt){var re=Pt.getAttribute(ie.SizeSensorId);if(re&&ee[re])return ee[re];var Kt=(0,Mt.default)();Pt.setAttribute(ie.SizeSensorId,Kt);var Yt=(0,ce.createSensor)(Pt,function(){return Zt(Kt)});return ee[Kt]=Yt,Yt};Cn.getSensor=Nt;var jt=function(Pt){var re=Pt.element.getAttribute(ie.SizeSensorId);Pt.destroy(),Zt(re)};Cn.removeSensor=jt},57829:function(hi,Cn,bt){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.createSensor=void 0;var Mt=bt(20953),ce=bt(55202),ie=typeof ResizeObserver!="undefined"?ce.createSensor:Mt.createSensor;Cn.createSensor=ie},20953:function(hi,Cn,bt){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.createSensor=void 0;var Mt=ie(bt(79301)),ce=bt(27774);function ie(ee){return ee&&ee.__esModule?ee:{default:ee}}var Ie=function(Zt,Nt){var jt=void 0,qt=[],Pt=function(){getComputedStyle(Zt).position==="static"&&(Zt.style.position="relative");var tt=document.createElement("object");return tt.onload=function(){tt.contentDocument.defaultView.addEventListener("resize",re),re()},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",ce.SensorClassName),tt.setAttribute("tabindex",ce.SensorTabIndex),tt.type="text/html",Zt.appendChild(tt),tt.data="about:blank",tt},re=(0,Mt.default)(function(){qt.forEach(function(et){et(Zt)})}),Kt=function(tt){jt||(jt=Pt()),qt.indexOf(tt)===-1&&qt.push(tt)},Yt=function(){jt&&jt.parentNode&&(jt.contentDocument&&jt.contentDocument.defaultView.removeEventListener("resize",re),jt.parentNode.removeChild(jt),Zt.removeAttribute(ce.SizeSensorId),jt=void 0,qt=[],Nt&&Nt())},Ct=function(tt){var lt=qt.indexOf(tt);lt!==-1&&qt.splice(lt,1),qt.length===0&&jt&&Yt()};return{element:Zt,bind:Kt,destroy:Yt,unbind:Ct}};Cn.createSensor=Ie},55202:function(hi,Cn,bt){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.createSensor=void 0;var Mt=bt(27774),ce=ie(bt(79301));function ie(ee){return ee&&ee.__esModule?ee:{default:ee}}var Ie=function(Zt,Nt){var jt=void 0,qt=[],Pt=(0,ce.default)(function(){qt.forEach(function(et){et(Zt)})}),re=function(){var tt=new ResizeObserver(Pt);return tt.observe(Zt),Pt(),tt},Kt=function(tt){jt||(jt=re()),qt.indexOf(tt)===-1&&qt.push(tt)},Yt=function(){jt.disconnect(),qt=[],jt=void 0,Zt.removeAttribute(Mt.SizeSensorId),Nt&&Nt()},Ct=function(tt){var lt=qt.indexOf(tt);lt!==-1&&qt.splice(lt,1),qt.length===0&&jt&&Yt()};return{element:Zt,bind:Kt,destroy:Yt,unbind:Ct}};Cn.createSensor=Ie},93314:function(hi){"use strict";hi.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(hi){"use strict";hi.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(hi){"use strict";hi.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(hi){"use strict";hi.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(hi,Cn,bt){"use strict";bt.d(Cn,{Z:function(){return jt}});const Mt=qt=>typeof qt=="object"&&qt!=null&&qt.nodeType===1,ce=(qt,Pt)=>(!Pt||qt!=="hidden")&&qt!=="visible"&&qt!=="clip",ie=(qt,Pt)=>{if(qt.clientHeight<qt.scrollHeight||qt.clientWidth<qt.scrollWidth){const re=getComputedStyle(qt,null);return ce(re.overflowY,Pt)||ce(re.overflowX,Pt)||(Kt=>{const Yt=(Ct=>{if(!Ct.ownerDocument||!Ct.ownerDocument.defaultView)return null;try{return Ct.ownerDocument.defaultView.frameElement}catch(et){return null}})(Kt);return!!Yt&&(Yt.clientHeight<Kt.scrollHeight||Yt.clientWidth<Kt.scrollWidth)})(qt)}return!1},Ie=(qt,Pt,re,Kt,Yt,Ct,et,tt)=>Ct<qt&&et>Pt||Ct>qt&&et<Pt?0:Ct<=qt&&tt<=re||et>=Pt&&tt>=re?Ct-qt-Kt:et>Pt&&tt<re||Ct<qt&&tt>re?et-Pt+Yt:0,ee=qt=>{const Pt=qt.parentElement;return Pt==null?qt.getRootNode().host||null:Pt},Zt=(qt,Pt)=>{var re,Kt,Yt,Ct;if(typeof document=="undefined")return[];const{scrollMode:et,block:tt,inline:lt,boundary:rt,skipOverflowHiddenElements:ht}=Pt,dt=typeof rt=="function"?rt:Mn=>Mn!==rt;if(!Mt(qt))throw new TypeError("Invalid target");const St=document.scrollingElement||document.documentElement,It=[];let _t=qt;for(;Mt(_t)&&dt(_t);){if(_t=ee(_t),_t===St){It.push(_t);break}_t!=null&&_t===document.body&&ie(_t)&&!ie(document.documentElement)||_t!=null&&ie(_t,ht)&&It.push(_t)}const Gt=(Kt=(re=window.visualViewport)==null?void 0:re.width)!=null?Kt:innerWidth,oe=(Ct=(Yt=window.visualViewport)==null?void 0:Yt.height)!=null?Ct:innerHeight,{scrollX:ue,scrollY:de}=window,{height:be,width:Jt,top:Ke,right:Wt,bottom:Ge,left:He}=qt.getBoundingClientRect(),{top:Me,right:We,bottom:_e,left:ve}=(Mn=>{const Xe=window.getComputedStyle(Mn);return{top:parseFloat(Xe.scrollMarginTop)||0,right:parseFloat(Xe.scrollMarginRight)||0,bottom:parseFloat(Xe.scrollMarginBottom)||0,left:parseFloat(Xe.scrollMarginLeft)||0}})(qt);let ne=tt==="start"||tt==="nearest"?Ke-Me:tt==="end"?Ge+_e:Ke+be/2-Me+_e,Se=lt==="center"?He+Jt/2-ve+We:lt==="end"?Wt+We:He-ve;const Pn=[];for(let Mn=0;Mn<It.length;Mn++){const Xe=It[Mn],{height:Nn,width:Zn,top:fi,right:zn,bottom:Si,left:nn}=Xe.getBoundingClientRect();if(et==="if-needed"&&Ke>=0&&He>=0&&Ge<=oe&&Wt<=Gt&&(Xe===St&&!ie(Xe)||Ke>=fi&&Ge<=Si&&He>=nn&&Wt<=zn))return Pn;const Fi=getComputedStyle(Xe),Ti=parseInt(Fi.borderLeftWidth,10),Lt=parseInt(Fi.borderTopWidth,10),Ot=parseInt(Fi.borderRightWidth,10),mt=parseInt(Fi.borderBottomWidth,10);let ft=0,pt=0;const At="offsetWidth"in Xe?Xe.offsetWidth-Xe.clientWidth-Ti-Ot:0,le="offsetHeight"in Xe?Xe.offsetHeight-Xe.clientHeight-Lt-mt:0,we="offsetWidth"in Xe?Xe.offsetWidth===0?0:Zn/Xe.offsetWidth:0,ae="offsetHeight"in Xe?Xe.offsetHeight===0?0:Nn/Xe.offsetHeight:0;if(St===Xe)ft=tt==="start"?ne:tt==="end"?ne-oe:tt==="nearest"?Ie(de,de+oe,oe,Lt,mt,de+ne,de+ne+be,be):ne-oe/2,pt=lt==="start"?Se:lt==="center"?Se-Gt/2:lt==="end"?Se-Gt:Ie(ue,ue+Gt,Gt,Ti,Ot,ue+Se,ue+Se+Jt,Jt),ft=Math.max(0,ft+de),pt=Math.max(0,pt+ue);else{ft=tt==="start"?ne-fi-Lt:tt==="end"?ne-Si+mt+le:tt==="nearest"?Ie(fi,Si,Nn,Lt,mt+le,ne,ne+be,be):ne-(fi+Nn/2)+le/2,pt=lt==="start"?Se-nn-Ti:lt==="center"?Se-(nn+Zn/2)+At/2:lt==="end"?Se-zn+Ot+At:Ie(nn,zn,Zn,Ti,Ot+At,Se,Se+Jt,Jt);const{scrollLeft:me,scrollTop:Re}=Xe;ft=ae===0?0:Math.max(0,Math.min(Re+ft/ae,Xe.scrollHeight-Nn/ae+le)),pt=we===0?0:Math.max(0,Math.min(me+pt/we,Xe.scrollWidth-Zn/we+At)),ne+=Re-ft,Se+=me-pt}Pn.push({el:Xe,top:ft,left:pt})}return Pn},Nt=qt=>qt===!1?{block:"end",inline:"nearest"}:(Pt=>Pt===Object(Pt)&&Object.keys(Pt).length!==0)(qt)?qt:{block:"start",inline:"nearest"};function jt(qt,Pt){if(!qt.isConnected||!(Yt=>{let Ct=Yt;for(;Ct&&Ct.parentNode;){if(Ct.parentNode===document)return!0;Ct=Ct.parentNode instanceof ShadowRoot?Ct.parentNode.host:Ct.parentNode}return!1})(qt))return;const re=(Yt=>{const Ct=window.getComputedStyle(Yt);return{top:parseFloat(Ct.scrollMarginTop)||0,right:parseFloat(Ct.scrollMarginRight)||0,bottom:parseFloat(Ct.scrollMarginBottom)||0,left:parseFloat(Ct.scrollMarginLeft)||0}})(qt);if((Yt=>typeof Yt=="object"&&typeof Yt.behavior=="function")(Pt))return Pt.behavior(Zt(qt,Pt));const Kt=typeof Pt=="boolean"||Pt==null?void 0:Pt.behavior;for(const{el:Yt,top:Ct,left:et}of Zt(qt,Nt(Pt))){const tt=Ct-re.top+re.bottom,lt=et-re.left+re.right;Yt.scroll({top:tt,left:lt,behavior:Kt})}}}}]);
|
|
|
}()); |